Conformance: fix Activity sequence Sequence Mode rules.
This commit is contained in:
@@ -230,23 +230,7 @@ export default {
|
|||||||
*/
|
*/
|
||||||
async submit() {
|
async submit() {
|
||||||
let data;
|
let data;
|
||||||
let isMode = '';
|
|
||||||
switch (this.selectedMode) {
|
|
||||||
case 'Directly follows':
|
|
||||||
isMode = 'directly-follows';
|
|
||||||
break;
|
|
||||||
case 'Eventually follows':
|
|
||||||
isMode = 'eventually-follows';
|
|
||||||
break;
|
|
||||||
case 'Short loop(s)':
|
|
||||||
isMode = 'short-loops';
|
|
||||||
break;
|
|
||||||
case 'Self loop(s)':
|
|
||||||
isMode = 'self-loops';
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
};
|
|
||||||
this.selectDurationTime = {
|
this.selectDurationTime = {
|
||||||
min: this.selectTimeRangeMin,
|
min: this.selectTimeRangeMin,
|
||||||
max: this.selectTimeRangeMax
|
max: this.selectTimeRangeMax
|
||||||
@@ -284,15 +268,36 @@ export default {
|
|||||||
};
|
};
|
||||||
break;
|
break;
|
||||||
case 'Sequence': // Activity Sequence 選 Sequence 的行為
|
case 'Sequence': // Activity Sequence 選 Sequence 的行為
|
||||||
if(this.listSeq.length < 2) return this.$toast.error('Select two or more.');
|
switch (this.selectedMode) {
|
||||||
else {
|
case 'Directly follows':
|
||||||
data = {
|
if(this.listSeq.length < 2) return this.$toast.error('Select two or more.');
|
||||||
type: isMode,
|
else data = {
|
||||||
task_seq: this.listSeq,
|
type: 'directly-follows',
|
||||||
};
|
task_seq: this.listSeq,
|
||||||
this.isSubmitReset();
|
};
|
||||||
this.isSubmitListSeq = this.listSeq;
|
break;
|
||||||
|
case 'Eventually follows':
|
||||||
|
if(this.listSeq.length < 2) return this.$toast.error('Select two or more.');
|
||||||
|
else data = {
|
||||||
|
type: 'eventually-follows',
|
||||||
|
task_seq: this.listSeq,
|
||||||
|
};
|
||||||
|
break;
|
||||||
|
case 'Short loop(s)':
|
||||||
|
data = {
|
||||||
|
type: 'short-loops',
|
||||||
|
};
|
||||||
|
break;
|
||||||
|
case 'Self loop(s)':
|
||||||
|
data = {
|
||||||
|
type: 'self-loops',
|
||||||
|
};
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
};
|
};
|
||||||
|
this.isSubmitReset();
|
||||||
|
this.isSubmitListSeq = this.listSeq;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -81,7 +81,6 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
selectCfmSeqSE: function() {
|
selectCfmSeqSE: function() {
|
||||||
let data = [];
|
let data = [];
|
||||||
console.log(this.selectCfmSeqStart);
|
|
||||||
if(this.selectCfmSeqStart) data.push(this.selectCfmSeqStart);
|
if(this.selectCfmSeqStart) data.push(this.selectCfmSeqStart);
|
||||||
if(this.selectCfmSeqEnd) data.push(this.selectCfmSeqEnd);
|
if(this.selectCfmSeqEnd) data.push(this.selectCfmSeqEnd);
|
||||||
data.sort((a, b) => {
|
data.sort((a, b) => {
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
<ActRadio :title="'End activity'" :select="isSubmitStartAndEnd?.[1].task" :data="cfmSeqEndData" :category="'cfmSeqEnd'" @selected-task="selectEnd" class="w-1/2" />
|
<ActRadio :title="'End activity'" :select="isSubmitStartAndEnd?.[1].task" :data="cfmSeqEndData" :category="'cfmSeqEnd'" @selected-task="selectEnd" class="w-1/2" />
|
||||||
</div>
|
</div>
|
||||||
<!-- actSeqDrag -->
|
<!-- actSeqDrag -->
|
||||||
<ActSeqDrag v-if="selectedRuleType === 'Activity sequence' && selectedActivitySequence === 'Sequence'" :data="conformanceTask" :listSeq="isSubmitListSeq" :isSubmit="isSubmit"></ActSeqDrag>
|
<ActSeqDrag v-if="selectedRuleType === 'Activity sequence' && selectedActivitySequence === 'Sequence' && (selectedMode === 'Directly follows' || selectedMode === 'Eventually follows')" :data="conformanceTask" :listSeq="isSubmitListSeq" :isSubmit="isSubmit"></ActSeqDrag>
|
||||||
<!-- Activity duration -->
|
<!-- Activity duration -->
|
||||||
<ActRadio v-if="selectedRuleType === 'Activity duration'" :title="'Activities include'" :select="isSubmitDurationData?.[0]" :data="conformanceTask" />
|
<ActRadio v-if="selectedRuleType === 'Activity duration'" :title="'Activities include'" :select="isSubmitDurationData?.[0]" :data="conformanceTask" />
|
||||||
<!-- Processing time -->
|
<!-- Processing time -->
|
||||||
|
|||||||
Reference in New Issue
Block a user