Issue #136: Done.
This commit is contained in:
@@ -67,7 +67,7 @@
|
|||||||
<!-- button -->
|
<!-- button -->
|
||||||
<div class="space-x-4 p-4 flex justify-center items-content border-t border-neutral-300">
|
<div class="space-x-4 p-4 flex justify-center items-content border-t border-neutral-300">
|
||||||
<button type="button" class="btn btn-sm btn-neutral" @click="reset">Clear</button>
|
<button type="button" class="btn btn-sm btn-neutral" @click="reset">Clear</button>
|
||||||
<button type="button" class="btn btn-sm btn-neutral" @click="submit">Apply</button>
|
<button type="button" class="btn btn-sm " @click="submit" :class="this.isDisabled ? 'btn-disable' : 'btn-neutral'" :disabled="isDisabledButton" >Apply</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- show bar -->
|
<!-- show bar -->
|
||||||
@@ -124,6 +124,7 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
isDisabled: true,
|
||||||
isShowBar: false,
|
isShowBar: false,
|
||||||
visibleLeft: false,
|
visibleLeft: false,
|
||||||
selectConformanceTask: null,
|
selectConformanceTask: null,
|
||||||
@@ -250,7 +251,146 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
notShowActList: function() {
|
notShowActList: function() {
|
||||||
return (this.selectedRuleType === 'Activity sequence' && this.selectedActivitySequence === 'Sequence' && (this.selectedMode === 'Short loop(s)' || this.selectedMode === 'Self loop(s)')) || (this.selectedRuleType === 'Processing time' && this.selectedProcessScope === 'End to end' && this.selectedActSeqMore === 'All') || (this.selectedRuleType === 'Waiting time' && this.selectedProcessScope === 'End to end' && this.selectedActSeqMore === 'All') || (this.selectedRuleType === 'Cycle time' && this.selectedProcessScope === 'End to end' && this.selectedActSeqMore === 'All')
|
return (this.selectedRuleType === 'Activity sequence' && this.selectedActivitySequence === 'Sequence' && (this.selectedMode === 'Short loop(s)' || this.selectedMode === 'Self loop(s)')) || (this.selectedRuleType === 'Processing time' && this.selectedProcessScope === 'End to end' && this.selectedActSeqMore === 'All') || (this.selectedRuleType === 'Waiting time' && this.selectedProcessScope === 'End to end' && this.selectedActSeqMore === 'All') || (this.selectedRuleType === 'Cycle time' && this.selectedProcessScope === 'End to end' && this.selectedActSeqMore === 'All')
|
||||||
}
|
},
|
||||||
|
/**
|
||||||
|
* Apply button is disabled or not
|
||||||
|
*/
|
||||||
|
isDisabledButton() {
|
||||||
|
let disabled = true;
|
||||||
|
switch (this.selectedRuleType) {
|
||||||
|
case 'Have activity': // Rule Type 選 Have activity 的行為
|
||||||
|
if(this.selectConformanceTask?.length) disabled = false;
|
||||||
|
break
|
||||||
|
case 'Activity sequence': // Rule Type 選 Activity sequence 的行為
|
||||||
|
switch (this.selectedActivitySequence) {
|
||||||
|
case 'Start & End': // Activity Sequence 選 Start & End 的行為
|
||||||
|
if(this.selectCfmSeqStart && this.selectCfmSeqEnd) disabled = false;
|
||||||
|
break;
|
||||||
|
case 'Sequence': // Activity Sequence 選 Sequence 的行為
|
||||||
|
switch (this.selectedMode) {
|
||||||
|
case 'Directly follows':
|
||||||
|
if(this.selectCfmSeqDirectly.length >= 2) disabled = false;
|
||||||
|
break;
|
||||||
|
case 'Eventually follows':
|
||||||
|
if(this.selectCfmSeqEventually.length >= 2) disabled = false;
|
||||||
|
break;
|
||||||
|
case 'Short loop(s)':
|
||||||
|
disabled = false;
|
||||||
|
break;
|
||||||
|
case 'Self loop(s)':
|
||||||
|
disabled = false;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
};
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case 'Activity duration': // Rule Type 選 Activity duration 的行為
|
||||||
|
if(this.selectDurationData?.length) disabled = false;
|
||||||
|
break;
|
||||||
|
case 'Processing time': // Rule Type 選 Processing time 的行為
|
||||||
|
switch (this.selectedProcessScope) {
|
||||||
|
case 'End to end':
|
||||||
|
switch (this.selectedActSeqMore) {
|
||||||
|
case 'All':
|
||||||
|
disabled = false;
|
||||||
|
break;
|
||||||
|
case 'Start':
|
||||||
|
if(this.selectCfmPtEteStart) disabled = false;
|
||||||
|
break;
|
||||||
|
case 'End':
|
||||||
|
if(this.selectCfmPtEteEnd) disabled = false;
|
||||||
|
break;
|
||||||
|
case 'Start & End':
|
||||||
|
if(this.selectCfmPtEteSEStart && this.selectCfmPtEteSEEnd) disabled = false;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
};
|
||||||
|
break;
|
||||||
|
case 'Partial':
|
||||||
|
switch (this.selectedActSeqFromTo) {
|
||||||
|
case 'From':
|
||||||
|
if(this.selectCfmPtPStart) disabled = false;
|
||||||
|
break;
|
||||||
|
case 'To':
|
||||||
|
if(this.selectCfmPtPEnd) disabled = false;
|
||||||
|
break;
|
||||||
|
case 'From & To':
|
||||||
|
if(this.selectCfmPtPSEStart && this.selectCfmPtPSEEnd) disabled = false;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
};
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
};
|
||||||
|
break;
|
||||||
|
case 'Waiting time': // Rule Type 選 Waiting time 的行為
|
||||||
|
switch (this.selectedProcessScope) {
|
||||||
|
case 'End to end':
|
||||||
|
switch (this.selectedActSeqMore) {
|
||||||
|
case 'All':
|
||||||
|
disabled = false;
|
||||||
|
break;
|
||||||
|
case 'Start':
|
||||||
|
if(this.selectCfmWtEteStart) disabled = false;
|
||||||
|
break;
|
||||||
|
case 'End':
|
||||||
|
if(this.selectCfmWtEteEnd) disabled = false;
|
||||||
|
break;
|
||||||
|
case 'Start & End':
|
||||||
|
if(this.selectCfmWtEteSEStart && this.selectCfmWtEteSEEnd) disabled = false;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
};
|
||||||
|
break;
|
||||||
|
case 'Partial':
|
||||||
|
switch (this.selectedActSeqFromTo) {
|
||||||
|
case 'From':
|
||||||
|
if(this.selectCfmWtPStart) disabled = false;
|
||||||
|
break;
|
||||||
|
case 'To':
|
||||||
|
if(this.selectCfmWtPEnd) disabled = false;
|
||||||
|
break;
|
||||||
|
case 'From & To':
|
||||||
|
if(this.selectCfmWtPSEStart && this.selectCfmWtPSEEnd) disabled = false;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
};
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
};
|
||||||
|
break;
|
||||||
|
case 'Cycle time': // Rule Type 選 Cycle time 的行為
|
||||||
|
switch (this.selectedActSeqMore) {
|
||||||
|
case 'All':
|
||||||
|
disabled = false;
|
||||||
|
break;
|
||||||
|
case 'Start':
|
||||||
|
if(this.selectCfmCtEteStart) disabled = false;
|
||||||
|
break;
|
||||||
|
case 'End':
|
||||||
|
if(this.selectCfmCtEteEnd) disabled = false;
|
||||||
|
break;
|
||||||
|
case 'Start & End':
|
||||||
|
if(this.selectCfmCtEteSEStart && this.selectCfmCtEteSEEnd) disabled = false;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
};
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
};
|
||||||
|
return this.isDisabled = disabled;
|
||||||
|
},
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
isSubmitData: function(newValue) {
|
isSubmitData: function(newValue) {
|
||||||
@@ -409,40 +549,33 @@ export default {
|
|||||||
|
|
||||||
switch (this.selectedRuleType) {
|
switch (this.selectedRuleType) {
|
||||||
case 'Have activity': // Rule Type 選 Have activity 的行為
|
case 'Have activity': // Rule Type 選 Have activity 的行為
|
||||||
if(!this.selectConformanceTask?.length) return this.$toast.error('Not selected.');
|
data = {
|
||||||
else {
|
type: 'contains-tasks',
|
||||||
data = {
|
tasks: this.selectConformanceTask,
|
||||||
type: 'contains-tasks',
|
};
|
||||||
tasks: this.selectConformanceTask,
|
// 其他 isSubmitData 為 null
|
||||||
};
|
this.isSubmitReset();
|
||||||
// 其他 isSubmitData 為 null
|
this.isSubmitTask = this.selectConformanceTask;
|
||||||
this.isSubmitReset();
|
|
||||||
this.isSubmitTask = this.selectConformanceTask;
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
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.selectCfmSeqStart === null || this.selectCfmSeqEnd === null) return this.$toast.error('Start and End activity must be selected.');
|
data = {
|
||||||
else {
|
type: 'start-end',
|
||||||
data = {
|
starts_with: this.selectCfmSeqStart,
|
||||||
type: 'start-end',
|
ends_with: this.selectCfmSeqEnd,
|
||||||
starts_with: this.selectCfmSeqStart,
|
|
||||||
ends_with: this.selectCfmSeqEnd,
|
|
||||||
};
|
|
||||||
this.isSubmitReset();
|
|
||||||
this.isSubmitStartAndEnd = [
|
|
||||||
{category: 'Start', task: this.selectCfmSeqStart},
|
|
||||||
{category: 'End', task: this.selectCfmSeqEnd},
|
|
||||||
];
|
|
||||||
this.isSubmitShowDataSeq = this.setSubmitShowData(this.selectCfmSeqStart, this.selectCfmSeqEnd);
|
|
||||||
};
|
};
|
||||||
|
this.isSubmitReset();
|
||||||
|
this.isSubmitStartAndEnd = [
|
||||||
|
{category: 'Start', task: this.selectCfmSeqStart},
|
||||||
|
{category: 'End', task: this.selectCfmSeqEnd},
|
||||||
|
];
|
||||||
|
this.isSubmitShowDataSeq = this.setSubmitShowData(this.selectCfmSeqStart, this.selectCfmSeqEnd);
|
||||||
break;
|
break;
|
||||||
case 'Sequence': // Activity Sequence 選 Sequence 的行為
|
case 'Sequence': // Activity Sequence 選 Sequence 的行為
|
||||||
switch (this.selectedMode) {
|
switch (this.selectedMode) {
|
||||||
case 'Directly follows':
|
case 'Directly follows':
|
||||||
if(this.selectCfmSeqDirectly.length < 2) return this.$toast.error('Select two or more.');
|
data = {
|
||||||
else data = {
|
|
||||||
type: 'directly-follows',
|
type: 'directly-follows',
|
||||||
task_seq: this.selectCfmSeqDirectly,
|
task_seq: this.selectCfmSeqDirectly,
|
||||||
};
|
};
|
||||||
@@ -450,8 +583,7 @@ export default {
|
|||||||
this.isSubmitCfmSeqDirectly = this.selectCfmSeqDirectly;
|
this.isSubmitCfmSeqDirectly = this.selectCfmSeqDirectly;
|
||||||
break;
|
break;
|
||||||
case 'Eventually follows':
|
case 'Eventually follows':
|
||||||
if(this.selectCfmSeqEventually.length < 2) return this.$toast.error('Select two or more.');
|
data = {
|
||||||
else data = {
|
|
||||||
type: 'eventually-follows',
|
type: 'eventually-follows',
|
||||||
task_seq: this.selectCfmSeqEventually,
|
task_seq: this.selectCfmSeqEventually,
|
||||||
};
|
};
|
||||||
@@ -476,18 +608,15 @@ export default {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'Activity duration': // Rule Type 選 Activity duration 的行為
|
case 'Activity duration': // Rule Type 選 Activity duration 的行為
|
||||||
if(!this.selectDurationData?.length) return this.$toast.error('Not selected.');
|
data = {
|
||||||
else {
|
type: 'task-duration',
|
||||||
data = {
|
task: this.selectDurationData[0],
|
||||||
type: 'task-duration',
|
min: this.selectDurationTime.min,
|
||||||
task: this.selectDurationData[0],
|
max: this.selectDurationTime.max,
|
||||||
min: this.selectDurationTime.min,
|
|
||||||
max: this.selectDurationTime.max,
|
|
||||||
};
|
|
||||||
this.isSubmitReset();
|
|
||||||
this.isSubmitDurationData = this.selectDurationData;
|
|
||||||
this.isSubmitDurationTime = this.selectDurationTime;
|
|
||||||
};
|
};
|
||||||
|
this.isSubmitReset();
|
||||||
|
this.isSubmitDurationData = this.selectDurationData;
|
||||||
|
this.isSubmitDurationTime = this.selectDurationTime;
|
||||||
break;
|
break;
|
||||||
case 'Processing time': // Rule Type 選 Processing time 的行為
|
case 'Processing time': // Rule Type 選 Processing time 的行為
|
||||||
switch (this.selectedProcessScope) {
|
switch (this.selectedProcessScope) {
|
||||||
@@ -503,55 +632,46 @@ export default {
|
|||||||
this.isSubmitTimeCfmPtEteAll = this.selectDurationTime;
|
this.isSubmitTimeCfmPtEteAll = this.selectDurationTime;
|
||||||
break;
|
break;
|
||||||
case 'Start':
|
case 'Start':
|
||||||
if(!this.selectCfmPtEteStart) return this.$toast.error('Not selected.');
|
data = {
|
||||||
else {
|
task: this.selectCfmPtEteStart,
|
||||||
data = {
|
min: this.selectDurationTime.min,
|
||||||
task: this.selectCfmPtEteStart,
|
max: this.selectDurationTime.max,
|
||||||
min: this.selectDurationTime.min,
|
type: 'processing-time-end-to-end-starts-with',
|
||||||
max: this.selectDurationTime.max,
|
};
|
||||||
type: 'processing-time-end-to-end-starts-with',
|
this.isSubmitReset();
|
||||||
};
|
this.isSubmitCfmPtEteStart = [
|
||||||
this.isSubmitReset();
|
{category: 'Start', task: this.selectCfmPtEteStart},
|
||||||
this.isSubmitCfmPtEteStart = [
|
];
|
||||||
{category: 'Start', task: this.selectCfmPtEteStart},
|
this.isSubmitTimeCfmPtEteStart = this.selectDurationTime;
|
||||||
];
|
|
||||||
this.isSubmitTimeCfmPtEteStart = this.selectDurationTime;
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case 'End':
|
case 'End':
|
||||||
if(!this.selectCfmPtEteEnd) return this.$toast.error('Not selected.');
|
data = {
|
||||||
else {
|
task: this.selectCfmPtEteEnd,
|
||||||
data = {
|
min: this.selectDurationTime.min,
|
||||||
task: this.selectCfmPtEteEnd,
|
max: this.selectDurationTime.max,
|
||||||
min: this.selectDurationTime.min,
|
type: 'processing-time-end-to-end-ends-with',
|
||||||
max: this.selectDurationTime.max,
|
};
|
||||||
type: 'processing-time-end-to-end-ends-with',
|
this.isSubmitReset();
|
||||||
};
|
this.isSubmitCfmPtEteEnd = [
|
||||||
this.isSubmitReset();
|
{category: 'End', task: this.selectCfmPtEteEnd},
|
||||||
this.isSubmitCfmPtEteEnd = [
|
];
|
||||||
{category: 'End', task: this.selectCfmPtEteEnd},
|
this.isSubmitTimeCfmPtEteEnd = this.selectDurationTime;
|
||||||
];
|
|
||||||
this.isSubmitTimeCfmPtEteEnd = this.selectDurationTime;
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case 'Start & End':
|
case 'Start & End':
|
||||||
if(!this.selectCfmPtEteSEStart || !this.selectCfmPtEteSEEnd) return this.$toast.error('Start and End activity must be selected.');
|
data = {
|
||||||
else {
|
start: this.selectCfmPtEteSEStart,
|
||||||
data = {
|
end: this.selectCfmPtEteSEEnd,
|
||||||
start: this.selectCfmPtEteSEStart,
|
min: this.selectDurationTime.min,
|
||||||
end: this.selectCfmPtEteSEEnd,
|
max: this.selectDurationTime.max,
|
||||||
min: this.selectDurationTime.min,
|
type: 'processing-time-end-to-end-start-end',
|
||||||
max: this.selectDurationTime.max,
|
};
|
||||||
type: 'processing-time-end-to-end-start-end',
|
this.isSubmitReset();
|
||||||
};
|
this.isSubmitCfmPtEteSE = [
|
||||||
this.isSubmitReset();
|
{category: 'Start', task: this.selectCfmPtEteSEStart},
|
||||||
this.isSubmitCfmPtEteSE = [
|
{category: 'End', task: this.selectCfmPtEteSEEnd},
|
||||||
{category: 'Start', task: this.selectCfmPtEteSEStart},
|
];
|
||||||
{category: 'End', task: this.selectCfmPtEteSEEnd},
|
this.isSubmitTimeCfmPtEteSE = this.selectDurationTime;
|
||||||
];
|
this.isSubmitShowDataPtEte = this.setSubmitShowData(this.selectCfmPtEteSEStart, this.selectCfmPtEteSEEnd);
|
||||||
this.isSubmitTimeCfmPtEteSE = this.selectDurationTime;
|
|
||||||
this.isSubmitShowDataPtEte = this.setSubmitShowData(this.selectCfmPtEteSEStart, this.selectCfmPtEteSEEnd);
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
@@ -560,55 +680,46 @@ export default {
|
|||||||
case 'Partial':
|
case 'Partial':
|
||||||
switch (this.selectedActSeqFromTo) {
|
switch (this.selectedActSeqFromTo) {
|
||||||
case 'From':
|
case 'From':
|
||||||
if(!this.selectCfmPtPStart) return this.$toast.error('Not selected.');
|
data = {
|
||||||
else {
|
task: this.selectCfmPtPStart,
|
||||||
data = {
|
min: this.selectDurationTime.min,
|
||||||
task: this.selectCfmPtPStart,
|
max: this.selectDurationTime.max,
|
||||||
min: this.selectDurationTime.min,
|
type: 'processing-time-partial-starts-with',
|
||||||
max: this.selectDurationTime.max,
|
};
|
||||||
type: 'processing-time-partial-starts-with',
|
this.isSubmitReset();
|
||||||
};
|
this.isSubmitCfmPtPStart = [
|
||||||
this.isSubmitReset();
|
{category: 'From', task: this.selectCfmPtPStart},
|
||||||
this.isSubmitCfmPtPStart = [
|
];
|
||||||
{category: 'From', task: this.selectCfmPtPStart},
|
this.isSubmitTimeCfmPtPStart = this.selectDurationTime;
|
||||||
];
|
|
||||||
this.isSubmitTimeCfmPtPStart = this.selectDurationTime;
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case 'To':
|
case 'To':
|
||||||
if(!this.selectCfmPtPEnd) return this.$toast.error('Not selected.');
|
data = {
|
||||||
else {
|
task: this.selectCfmPtPEnd,
|
||||||
data = {
|
min: this.selectDurationTime.min,
|
||||||
task: this.selectCfmPtPEnd,
|
max: this.selectDurationTime.max,
|
||||||
min: this.selectDurationTime.min,
|
type: 'processing-time-partial-ends-with',
|
||||||
max: this.selectDurationTime.max,
|
};
|
||||||
type: 'processing-time-partial-ends-with',
|
this.isSubmitReset();
|
||||||
};
|
this.isSubmitCfmPtPEnd = [
|
||||||
this.isSubmitReset();
|
{category: 'To', task: this.selectCfmPtPEnd},
|
||||||
this.isSubmitCfmPtPEnd = [
|
];
|
||||||
{category: 'To', task: this.selectCfmPtPEnd},
|
this.isSubmitTimeCfmPtPEnd = this.selectDurationTime;
|
||||||
];
|
|
||||||
this.isSubmitTimeCfmPtPEnd = this.selectDurationTime;
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case 'From & To':
|
case 'From & To':
|
||||||
if(!this.selectCfmPtPSEStart || !this.selectCfmPtPSEEnd) return this.$toast.error('From and To activity must be selected.');
|
data = {
|
||||||
else {
|
start: this.selectCfmPtPSEStart,
|
||||||
data = {
|
end: this.selectCfmPtPSEEnd,
|
||||||
start: this.selectCfmPtPSEStart,
|
min: this.selectDurationTime.min,
|
||||||
end: this.selectCfmPtPSEEnd,
|
max: this.selectDurationTime.max,
|
||||||
min: this.selectDurationTime.min,
|
type: 'processing-time-partial-start-end',
|
||||||
max: this.selectDurationTime.max,
|
};
|
||||||
type: 'processing-time-partial-start-end',
|
this.isSubmitReset();
|
||||||
};
|
this.isSubmitCfmPtPSE = [
|
||||||
this.isSubmitReset();
|
{category: 'From', task: this.selectCfmPtPSEStart},
|
||||||
this.isSubmitCfmPtPSE = [
|
{category: 'To', task: this.selectCfmPtPSEEnd},
|
||||||
{category: 'From', task: this.selectCfmPtPSEStart},
|
];
|
||||||
{category: 'To', task: this.selectCfmPtPSEEnd},
|
this.isSubmitTimeCfmPtPSE = this.selectDurationTime;
|
||||||
];
|
this.isSubmitShowDataPtP = this.setSubmitShowData(this.selectCfmPtPSEStart, this.selectCfmPtPSEEnd);
|
||||||
this.isSubmitTimeCfmPtPSE = this.selectDurationTime;
|
|
||||||
this.isSubmitShowDataPtP = this.setSubmitShowData(this.selectCfmPtPSEStart, this.selectCfmPtPSEEnd);
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
@@ -632,55 +743,46 @@ export default {
|
|||||||
this.isSubmitTimeCfmWtEteAll = this.selectDurationTime;
|
this.isSubmitTimeCfmWtEteAll = this.selectDurationTime;
|
||||||
break;
|
break;
|
||||||
case 'Start':
|
case 'Start':
|
||||||
if(!this.selectCfmWtEteStart) return this.$toast.error('Not selected.');
|
data = {
|
||||||
else {
|
task: this.selectCfmWtEteStart,
|
||||||
data = {
|
min: this.selectDurationTime.min,
|
||||||
task: this.selectCfmWtEteStart,
|
max: this.selectDurationTime.max,
|
||||||
min: this.selectDurationTime.min,
|
type: 'waiting-time-end-to-end-starts-with',
|
||||||
max: this.selectDurationTime.max,
|
};
|
||||||
type: 'waiting-time-end-to-end-starts-with',
|
this.isSubmitReset();
|
||||||
};
|
this.isSubmitCfmWtEteStart = [
|
||||||
this.isSubmitReset();
|
{category: 'Start', task: this.selectCfmWtEteStart},
|
||||||
this.isSubmitCfmWtEteStart = [
|
];
|
||||||
{category: 'Start', task: this.selectCfmWtEteStart},
|
this.isSubmitTimeCfmWtEteStart = this.selectDurationTime;
|
||||||
];
|
|
||||||
this.isSubmitTimeCfmWtEteStart = this.selectDurationTime;
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case 'End':
|
case 'End':
|
||||||
if(!this.selectCfmWtEteEnd) return this.$toast.error('Not selected.');
|
data = {
|
||||||
else {
|
task: this.selectCfmWtEteEnd,
|
||||||
data = {
|
min: this.selectDurationTime.min,
|
||||||
task: this.selectCfmWtEteEnd,
|
max: this.selectDurationTime.max,
|
||||||
min: this.selectDurationTime.min,
|
type: 'waiting-time-end-to-end-ends-with',
|
||||||
max: this.selectDurationTime.max,
|
};
|
||||||
type: 'waiting-time-end-to-end-ends-with',
|
this.isSubmitReset();
|
||||||
};
|
this.isSubmitCfmWtEteEnd = [
|
||||||
this.isSubmitReset();
|
{category: 'End', task: this.selectCfmWtEteEnd},
|
||||||
this.isSubmitCfmWtEteEnd = [
|
];
|
||||||
{category: 'End', task: this.selectCfmWtEteEnd},
|
this.isSubmitTimeCfmWtEteEnd = this.selectDurationTime;
|
||||||
];
|
|
||||||
this.isSubmitTimeCfmWtEteEnd = this.selectDurationTime;
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case 'Start & End':
|
case 'Start & End':
|
||||||
if(!this.selectCfmWtEteSEStart || !this.selectCfmWtEteSEEnd) return this.$toast.error('Start and End activity must be selected.');
|
data = {
|
||||||
else {
|
start: this.selectCfmWtEteSEStart,
|
||||||
data = {
|
end: this.selectCfmWtEteSEEnd,
|
||||||
start: this.selectCfmWtEteSEStart,
|
min: this.selectDurationTime.min,
|
||||||
end: this.selectCfmWtEteSEEnd,
|
max: this.selectDurationTime.max,
|
||||||
min: this.selectDurationTime.min,
|
type: 'waiting-time-end-to-end-start-end',
|
||||||
max: this.selectDurationTime.max,
|
};
|
||||||
type: 'waiting-time-end-to-end-start-end',
|
this.isSubmitReset();
|
||||||
};
|
this.isSubmitCfmWtEteSE = [
|
||||||
this.isSubmitReset();
|
{category: 'Start', task: this.selectCfmWtEteSEStart},
|
||||||
this.isSubmitCfmWtEteSE = [
|
{category: 'End', task: this.selectCfmWtEteSEEnd},
|
||||||
{category: 'Start', task: this.selectCfmWtEteSEStart},
|
];
|
||||||
{category: 'End', task: this.selectCfmWtEteSEEnd},
|
this.isSubmitTimeCfmWtEteSE = this.selectDurationTime;
|
||||||
];
|
this.isSubmitShowDataWtEte = this.setSubmitShowData(this.selectCfmWtEteSEStart, this.selectCfmWtEteSEEnd);
|
||||||
this.isSubmitTimeCfmWtEteSE = this.selectDurationTime;
|
|
||||||
this.isSubmitShowDataWtEte = this.setSubmitShowData(this.selectCfmWtEteSEStart, this.selectCfmWtEteSEEnd);
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
@@ -689,55 +791,46 @@ export default {
|
|||||||
case 'Partial':
|
case 'Partial':
|
||||||
switch (this.selectedActSeqFromTo) {
|
switch (this.selectedActSeqFromTo) {
|
||||||
case 'From':
|
case 'From':
|
||||||
if(!this.selectCfmWtPStart) return this.$toast.error('Not selected.');
|
data = {
|
||||||
else {
|
task: this.selectCfmWtPStart,
|
||||||
data = {
|
min: this.selectDurationTime.min,
|
||||||
task: this.selectCfmWtPStart,
|
max: this.selectDurationTime.max,
|
||||||
min: this.selectDurationTime.min,
|
type: 'waiting-time-partial-starts-with',
|
||||||
max: this.selectDurationTime.max,
|
};
|
||||||
type: 'waiting-time-partial-starts-with',
|
this.isSubmitReset();
|
||||||
};
|
this.isSubmitCfmWtPStart = [
|
||||||
this.isSubmitReset();
|
{category: 'From', task: this.selectCfmWtPStart},
|
||||||
this.isSubmitCfmWtPStart = [
|
];
|
||||||
{category: 'From', task: this.selectCfmWtPStart},
|
this.isSubmitTimeCfmWtPStart = this.selectDurationTime;
|
||||||
];
|
|
||||||
this.isSubmitTimeCfmWtPStart = this.selectDurationTime;
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case 'To':
|
case 'To':
|
||||||
if(!this.selectCfmWtPEnd) return this.$toast.error('Not selected.');
|
data = {
|
||||||
else {
|
task: this.selectCfmWtPEnd,
|
||||||
data = {
|
min: this.selectDurationTime.min,
|
||||||
task: this.selectCfmWtPEnd,
|
max: this.selectDurationTime.max,
|
||||||
min: this.selectDurationTime.min,
|
type: 'waiting-time-partial-ends-with',
|
||||||
max: this.selectDurationTime.max,
|
};
|
||||||
type: 'waiting-time-partial-ends-with',
|
this.isSubmitReset();
|
||||||
};
|
this.isSubmitCfmWtPEnd = [
|
||||||
this.isSubmitReset();
|
{category: 'To', task: this.selectCfmWtPEnd},
|
||||||
this.isSubmitCfmWtPEnd = [
|
];
|
||||||
{category: 'To', task: this.selectCfmWtPEnd},
|
this.isSubmitTimeCfmWtPEnd = this.selectDurationTime;
|
||||||
];
|
|
||||||
this.isSubmitTimeCfmWtPEnd = this.selectDurationTime;
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case 'From & To':
|
case 'From & To':
|
||||||
if(!this.selectCfmWtPSEStart || !this.selectCfmWtPSEEnd) return this.$toast.error('From and To activity must be selected.');
|
data = {
|
||||||
else {
|
start: this.selectCfmWtPSEStart,
|
||||||
data = {
|
end: this.selectCfmWtPSEEnd,
|
||||||
start: this.selectCfmWtPSEStart,
|
min: this.selectDurationTime.min,
|
||||||
end: this.selectCfmWtPSEEnd,
|
max: this.selectDurationTime.max,
|
||||||
min: this.selectDurationTime.min,
|
type: 'waiting-time-partial-start-end',
|
||||||
max: this.selectDurationTime.max,
|
};
|
||||||
type: 'waiting-time-partial-start-end',
|
this.isSubmitReset();
|
||||||
};
|
this.isSubmitCfmWtPSE = [
|
||||||
this.isSubmitReset();
|
{category: 'From', task: this.selectCfmWtPSEStart},
|
||||||
this.isSubmitCfmWtPSE = [
|
{category: 'To', task: this.selectCfmWtPSEEnd},
|
||||||
{category: 'From', task: this.selectCfmWtPSEStart},
|
];
|
||||||
{category: 'To', task: this.selectCfmWtPSEEnd},
|
this.isSubmitTimeCfmWtPSE = this.selectDurationTime;
|
||||||
];
|
this.isSubmitShowDataWtP = this.setSubmitShowData(this.selectCfmWtPSEStart, this.selectCfmWtPSEEnd);
|
||||||
this.isSubmitTimeCfmWtPSE = this.selectDurationTime;
|
|
||||||
this.isSubmitShowDataWtP = this.setSubmitShowData(this.selectCfmWtPSEStart, this.selectCfmWtPSEEnd);
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
@@ -759,8 +852,7 @@ export default {
|
|||||||
this.isSubmitTimeCfmCtEteAll = this.selectDurationTime;
|
this.isSubmitTimeCfmCtEteAll = this.selectDurationTime;
|
||||||
break;
|
break;
|
||||||
case 'Start':
|
case 'Start':
|
||||||
if(!this.selectCfmCtEteStart) return this.$toast.error('Not selected.');
|
data = {
|
||||||
else data = {
|
|
||||||
task: this.selectCfmCtEteStart,
|
task: this.selectCfmCtEteStart,
|
||||||
min: this.selectDurationTime.min,
|
min: this.selectDurationTime.min,
|
||||||
max: this.selectDurationTime.max,
|
max: this.selectDurationTime.max,
|
||||||
@@ -773,39 +865,33 @@ export default {
|
|||||||
this.isSubmitTimeCfmCtEteStart = this.selectDurationTime;
|
this.isSubmitTimeCfmCtEteStart = this.selectDurationTime;
|
||||||
break;
|
break;
|
||||||
case 'End':
|
case 'End':
|
||||||
if(!this.selectCfmCtEteEnd) return this.$toast.error('Not selected.');
|
data = {
|
||||||
else {
|
task: this.selectCfmCtEteEnd,
|
||||||
data = {
|
min: this.selectDurationTime.min,
|
||||||
task: this.selectCfmCtEteEnd,
|
max: this.selectDurationTime.max,
|
||||||
min: this.selectDurationTime.min,
|
type: 'cycle-time-end-to-end-ends-with',
|
||||||
max: this.selectDurationTime.max,
|
};
|
||||||
type: 'cycle-time-end-to-end-ends-with',
|
this.isSubmitReset();
|
||||||
};
|
this.isSubmitCfmCtEteEnd = [
|
||||||
this.isSubmitReset();
|
{category: 'End', task: this.selectCfmCtEteEnd},
|
||||||
this.isSubmitCfmCtEteEnd = [
|
];
|
||||||
{category: 'End', task: this.selectCfmCtEteEnd},
|
this.isSubmitTimeCfmCtEteEnd = this.selectDurationTime;
|
||||||
];
|
|
||||||
this.isSubmitTimeCfmCtEteEnd = this.selectDurationTime;
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case 'Start & End':
|
case 'Start & End':
|
||||||
if(!this.selectCfmCtEteSEStart || !this.selectCfmCtEteSEEnd) return this.$toast.error('Start and End activity must be selected.');
|
data = {
|
||||||
else {
|
start: this.selectCfmCtEteSEStart,
|
||||||
data = {
|
end: this.selectCfmCtEteSEEnd,
|
||||||
start: this.selectCfmCtEteSEStart,
|
min: this.selectDurationTime.min,
|
||||||
end: this.selectCfmCtEteSEEnd,
|
max: this.selectDurationTime.max,
|
||||||
min: this.selectDurationTime.min,
|
type: 'cycle-time-end-to-end-start-end',
|
||||||
max: this.selectDurationTime.max,
|
};
|
||||||
type: 'cycle-time-end-to-end-start-end',
|
this.isSubmitReset();
|
||||||
};
|
this.isSubmitCfmCtEteSE = [
|
||||||
this.isSubmitReset();
|
{category: 'Start', task: this.selectCfmCtEteSEStart},
|
||||||
this.isSubmitCfmCtEteSE = [
|
{category: 'End', task: this.selectCfmCtEteSEEnd},
|
||||||
{category: 'Start', task: this.selectCfmCtEteSEStart},
|
];
|
||||||
{category: 'End', task: this.selectCfmCtEteSEEnd},
|
this.isSubmitTimeCfmCtEteSE = this.selectDurationTime;
|
||||||
];
|
this.isSubmitShowDataCt = this.setSubmitShowData(this.selectCfmCtEteSEStart, this.selectCfmCtEteSEEnd);
|
||||||
this.isSubmitTimeCfmCtEteSE = this.selectDurationTime;
|
|
||||||
this.isSubmitShowDataCt = this.setSubmitShowData(this.selectCfmCtEteSEStart, this.selectCfmCtEteSEEnd);
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
@@ -947,23 +1033,24 @@ export default {
|
|||||||
});
|
});
|
||||||
this.$emitter.on('isRadioSeqChange', (data) => {
|
this.$emitter.on('isRadioSeqChange', (data) => {
|
||||||
if(data) {
|
if(data) {
|
||||||
this.selectConformanceStartAndEnd = null;
|
this.selectTimeReset();
|
||||||
this.selectCfmSeqDirectly = [];
|
|
||||||
this.selectCfmSeqEventually = [];
|
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
this.$emitter.on('isRadioProcessScopeChange', (data) => {
|
this.$emitter.on('isRadioProcessScopeChange', (data) => {
|
||||||
if(data) {
|
if(data) {
|
||||||
|
this.selectTimeReset();
|
||||||
this.selectDurationTime = { min: 0, max: 0};
|
this.selectDurationTime = { min: 0, max: 0};
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
this.$emitter.on('isRadioActSeqMoreChange', (data) => {
|
this.$emitter.on('isRadioActSeqMoreChange', (data) => {
|
||||||
if(data) {
|
if(data) {
|
||||||
|
this.selectTimeReset();
|
||||||
if(this.selectedActSeqMore !== 'All') this.selectDurationTime = { min: 0, max: 0};
|
if(this.selectedActSeqMore !== 'All') this.selectDurationTime = { min: 0, max: 0};
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
this.$emitter.on('isRadioActSeqFromToChange', (data) => {
|
this.$emitter.on('isRadioActSeqFromToChange', (data) => {
|
||||||
if(data) {
|
if(data) {
|
||||||
|
this.selectTimeReset();
|
||||||
this.selectDurationTime = { min: 0, max: 0};
|
this.selectDurationTime = { min: 0, max: 0};
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user