Conformance: Activity sequence Start & End linkage done.

This commit is contained in:
chiayin
2023-08-30 14:19:20 +08:00
parent 1e49e11a1b
commit 187ce7afcc
6 changed files with 103 additions and 84 deletions

View File

@@ -69,8 +69,8 @@ export default {
visibleLeft: false,
selectConformanceTask: null,
selectConformanceStartAndEnd: null,
selectConformanceStart: null,
selectConformanceEnd: null,
selectCfmSeqStart: null,
selectCfmSeqEnd: null,
selectConformanceFrom: null,
selectConformanceTo: null,
listSeq: [],
@@ -165,8 +165,8 @@ export default {
// 不包含 this.selectDurationTime
this.selectConformanceTask = null; // Have activity
this.selectConformanceStartAndEnd = null; // Activity Sequence
this.selectConformanceStart = null;
this.selectConformanceEnd = null;
this.selectCfmSeqStart = null;
this.selectCfmSeqEnd = null;
this.selectConformanceFrom = null;
this.selectConformanceTo = null;
this.listSeq = [];
@@ -247,8 +247,10 @@ export default {
default:
break;
};
this.selectDurationTime.min = this.selectTimeRangeMin;
this.selectDurationTime.max = this.selectTimeRangeMax;
this.selectDurationTime = {
min: this.selectTimeRangeMin,
max: this.selectTimeRangeMax
};
switch (this.selectedRuleType) {
case 'Have activity': // Rule Type 選 Have activity 的行為
@@ -533,17 +535,12 @@ export default {
});
this.$emitter.on('actRadioData', (data) => {
switch (data.category) {
case 'Start':
this.selectConformanceStart = data.task;
// Activity sequence
case 'cfmSeqStart':
this.selectCfmSeqStart = data.task;
break;
case 'End':
this.selectConformanceEnd = data.task;
break;
case 'From':
this.selectConformanceFrom = data.task;
break;
case 'To':
this.selectConformanceTo = data.task;
case 'cfmSeqEnd':
this.selectCfmSeqEnd = data.task;
break;
// Processing time
case 'cfmPtEteStart':
@@ -636,9 +633,6 @@ export default {
};
break;
};
if(this.selectConformanceStart !== null && this.selectConformanceEnd !== null){
this.selectConformanceStartAndEnd = [this.selectConformanceStart, this.selectConformanceEnd];
};
});
this.$emitter.on('getListSequence', (data) => {
this.listSeq = data;