Conformance: StatusSidebar Have activity Clear button done.
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
<ConformanceTimeRange v-if="selectedRuleType === 'Activity duration' || selectedRuleType === 'Processing time' || selectedRuleType === 'Waiting time' || selectedRuleType === 'Cycle time'"></ConformanceTimeRange>
|
||||
</div>
|
||||
<!-- button -->
|
||||
{{ selectConformanceTask }}
|
||||
<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="submit">Apply</button>
|
||||
@@ -53,6 +54,7 @@ export default {
|
||||
return {
|
||||
isShowBar: false,
|
||||
visibleLeft: false,
|
||||
selectConformanceTask: null,
|
||||
}
|
||||
},
|
||||
components: {
|
||||
@@ -61,8 +63,23 @@ export default {
|
||||
ConformanceTimeRange,
|
||||
ConformanceSelectResult,
|
||||
},
|
||||
methods: {
|
||||
/**
|
||||
* @param {boolean} massage true | false 清空選項
|
||||
*/
|
||||
reset(massage) {
|
||||
// Have activity
|
||||
this.selectConformanceTask = null;
|
||||
this.$emitter.emit('reset', null);
|
||||
// 成功訊息
|
||||
massage ? this.$toast.success('Reset Success.') : null;
|
||||
},
|
||||
},
|
||||
created() {
|
||||
this.isShowBar = true;
|
||||
this.$emitter.on('actListData', (data) => {
|
||||
this.selectConformanceTask = data;
|
||||
})
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user