refactor duration.js
This commit is contained in:
@@ -1259,6 +1259,29 @@ export default {
|
||||
checkActivityDuration() {
|
||||
return !this.selectDurationData?.length;
|
||||
},
|
||||
/**
|
||||
* 檢查活動序列的邏輯
|
||||
* @returns {boolean} 是否禁用按鈕
|
||||
*/
|
||||
checkActivitySequence() {
|
||||
switch (this.selectedActivitySequence) {
|
||||
case 'Start & End':
|
||||
return checkStartAndEndSequence(this.selectCfmSeqStart, this.selectCfmSeqEnd);
|
||||
case 'Sequence':
|
||||
return checkSequenceMode(this.selectedMode);
|
||||
default:
|
||||
return true;
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 檢查 Start & End 活動序列
|
||||
* @param {string} start 活動開始
|
||||
* @param {string} end 活動結束
|
||||
* @returns {boolean} 是否禁用按鈕
|
||||
*/
|
||||
checkStartAndEndSequence(start, end) {
|
||||
return !(start && end);
|
||||
},
|
||||
checkProcessingTime() {
|
||||
let disabled = true;
|
||||
switch (this.selectedProcessScope) {
|
||||
|
||||
Reference in New Issue
Block a user