fix: Issues #217, start & end done.
This commit is contained in:
@@ -109,11 +109,11 @@ export default {
|
|||||||
return this.cfmPtPEnd.map(i => i.task);
|
return this.cfmPtPEnd.map(i => i.task);
|
||||||
},
|
},
|
||||||
cfmPtPSEStartData: function() {
|
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');
|
return this.isEndSelected ? this.setStartAndEndData(this.cfmPtPSE, 'end', this.task) : this.setTaskData(this.cfmPtPSE, 'start');
|
||||||
},
|
},
|
||||||
cfmPtPSEEndData: function() {
|
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');
|
return this.isStartSelected ? this.setStartAndEndData(this.cfmPtPSE, 'start', this.task) : this.setTaskData(this.cfmPtPSE, 'end');
|
||||||
},
|
},
|
||||||
// Waiting time
|
// Waiting time
|
||||||
@@ -161,6 +161,44 @@ export default {
|
|||||||
return this.isStartSelected ? this.setStartAndEndData(this.cfmCtEteSE, 'start', this.task) : this.setTaskData(this.cfmCtEteSE, 'end');
|
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: {
|
methods: {
|
||||||
/**
|
/**
|
||||||
* 設定 start and end 的 Radio Data
|
* 設定 start and end 的 Radio Data
|
||||||
|
|||||||
Reference in New Issue
Block a user