Conformance: Have activity & Activity sequence done.
This commit is contained in:
@@ -236,7 +236,6 @@ export default {
|
|||||||
max: this.selectTimeRangeMax
|
max: this.selectTimeRangeMax
|
||||||
};
|
};
|
||||||
this.$emitter.emit('timeRangeMaxMin', this.selectDurationTime);
|
this.$emitter.emit('timeRangeMaxMin', this.selectDurationTime);
|
||||||
console.log('this.selectDurationTime', this.selectDurationTime);
|
|
||||||
|
|
||||||
switch (this.selectedRuleType) {
|
switch (this.selectedRuleType) {
|
||||||
case 'Have activity': // Rule Type 選 Have activity 的行為
|
case 'Have activity': // Rule Type 選 Have activity 的行為
|
||||||
@@ -255,17 +254,17 @@ export default {
|
|||||||
case 'Activity sequence': // Rule Type 選 Activity sequence 的行為
|
case 'Activity sequence': // Rule Type 選 Activity sequence 的行為
|
||||||
switch (this.selectedActivitySequence) {
|
switch (this.selectedActivitySequence) {
|
||||||
case 'Start & End': // Activity Sequence 選 Start & End 的行為
|
case 'Start & End': // Activity Sequence 選 Start & End 的行為
|
||||||
if(this.selectConformanceStartAndEnd === null || this.selectConformanceStartAndEnd.length === 0) return this.$toast.error('Both Start and End must be selected.');
|
if(this.selectCfmSeqStart === null || this.selectCfmSeqEnd === null) return this.$toast.error('Both Start and End must be selected.');
|
||||||
else {
|
else {
|
||||||
data = {
|
data = {
|
||||||
type: 'start-end',
|
type: 'start-end',
|
||||||
starts_with: this.selectConformanceStartAndEnd[0],
|
starts_with: this.selectCfmSeqStart,
|
||||||
ends_with: this.selectConformanceStartAndEnd[1],
|
ends_with: this.selectCfmSeqEnd,
|
||||||
};
|
};
|
||||||
this.isSubmitReset();
|
this.isSubmitReset();
|
||||||
this.isSubmitStartAndEnd = [
|
this.isSubmitStartAndEnd = [
|
||||||
{category: 'Start', task: this.selectConformanceStartAndEnd[0]},
|
{category: 'Start', task: this.selectCfmSeqStart},
|
||||||
{category: 'End', task: this.selectConformanceStartAndEnd[1]},
|
{category: 'End', task: this.selectCfmSeqEnd},
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -238,6 +238,10 @@ export default {
|
|||||||
this.isEndSelected = null;
|
this.isEndSelected = null;
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
this.$emitter.on('reset', data => {
|
||||||
|
this.isStartSelected = data;
|
||||||
|
this.isEndSelected = data;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ export default {
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.datadata = this.select;
|
this.datadata = this.select;
|
||||||
|
this.$emitter.on('reset', data => this.datadata = data);
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ export default {
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.data = this.select;
|
this.data = this.select;
|
||||||
|
this.$emitter.on('reset', data => this.data = data);
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -99,7 +99,6 @@ export default {
|
|||||||
caseData: function() {
|
caseData: function() {
|
||||||
if(this.infiniteData !== null){
|
if(this.infiniteData !== null){
|
||||||
const data = JSON.parse(JSON.stringify(this.infiniteData)); // 深拷貝原始 cases 的內容
|
const data = JSON.parse(JSON.stringify(this.infiniteData)); // 深拷貝原始 cases 的內容
|
||||||
console.log(data);
|
|
||||||
data.forEach(item => {
|
data.forEach(item => {
|
||||||
item.facets.forEach((facet, index) => {
|
item.facets.forEach((facet, index) => {
|
||||||
item[`fac_${index}`] = facet.value; // 建立新的 key-value pair
|
item[`fac_${index}`] = facet.value; // 建立新的 key-value pair
|
||||||
|
|||||||
Reference in New Issue
Block a user