diff --git a/src/components/Discover/Conformance/ConformanceSidebar/ConformanceShowBar.vue b/src/components/Discover/Conformance/ConformanceSidebar/ConformanceShowBar.vue index 5a7fae0..5cf14fe 100644 --- a/src/components/Discover/Conformance/ConformanceSidebar/ConformanceShowBar.vue +++ b/src/components/Discover/Conformance/ConformanceSidebar/ConformanceShowBar.vue @@ -109,11 +109,11 @@ export default { return this.cfmPtPEnd.map(i => i.task); }, cfmPtPSEStartData: function() { - if(this.isSubmit && this.task === null)this.task = this.isSubmitShowDataPtP.task; + if(this.isSubmit && this.task === null) this.task = this.isSubmitShowDataPtP.task; return this.isEndSelected ? this.setStartAndEndData(this.cfmPtPSE, 'end', this.task) : this.setTaskData(this.cfmPtPSE, 'start'); }, cfmPtPSEEndData: function() { - if(this.isSubmit && this.task === null)this.task = this.isSubmitShowDataPtP.task; + if(this.isSubmit && this.task === null) this.task = this.isSubmitShowDataPtP.task; return this.isStartSelected ? this.setStartAndEndData(this.cfmPtPSE, 'start', this.task) : this.setTaskData(this.cfmPtPSE, 'end'); }, // Waiting time @@ -161,6 +161,44 @@ export default { return this.isStartSelected ? this.setStartAndEndData(this.cfmCtEteSE, 'start', this.task) : this.setTaskData(this.cfmCtEteSE, 'end'); }, }, + watch: { // 解決儲存後的 Rule 檔,無法重新更改規則之問題 + isSubmitShowDataSeq: { + handler: function(newValue) { + this.taskStart = newValue.taskStart; + this.taskEnd = newValue.taskEnd; + } + }, + isSubmitShowDataPtEte: { + handler: function(newValue) { + this.taskStart = newValue.taskStart; + this.taskEnd = newValue.taskEnd; + } + }, + isSubmitShowDataPtP: { + handler: function(newValue) { + this.taskStart = newValue.taskStart; + this.taskEnd = newValue.taskEnd; + } + }, + isSubmitShowDataWtEte: { + handler: function(newValue) { + this.taskStart = newValue.taskStart; + this.taskEnd = newValue.taskEnd; + } + }, + isSubmitShowDataWtP: { + handler: function(newValue) { + this.taskStart = newValue.taskStart; + this.taskEnd = newValue.taskEnd; + } + }, + isSubmitShowDataCt: { + handler: function(newValue) { + this.taskStart = newValue.taskStart; + this.taskEnd = newValue.taskEnd; + } + }, + }, methods: { /** * 設定 start and end 的 Radio Data