Преглед на файлове

feat: 延时处理 100%

luoyali преди 1 година
родител
ревизия
5bbadbe5a3
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3 3
      src/components/scWorkflow/nodes/delayProcess.vue

+ 3 - 3
src/components/scWorkflow/nodes/delayProcess.vue

@@ -49,7 +49,7 @@
 						</el-form-item>
 
 						<el-form-item v-if="form.delayType === '1'">
-							<el-input v-model="fixedDuration" style="max-width: 300px" type="number" class="input-with-select">
+							<el-input v-model="fixedDuration" style="max-width: 300px" type="number" min="0" class="input-with-select">
 								<template #append>
 									<el-select v-model="fixedDurationType" style="width: 115px" @change="getLabelValue">
 										<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"></el-option>
@@ -146,7 +146,7 @@ export default {
 			}
 
 			if (extendConfig.length === 3) {
-				this.automaticComputed = extendConfig
+				this.automaticComputed = this.nodeConfig.extendConfig.time
 			}
 			this.drawer = true
 		},
@@ -176,7 +176,7 @@ export default {
 			if (nodeConfig.delayType === '1') {
 				return `等待${this.fixedDuration}${this.selectedLabel}`
 			} else if (nodeConfig.delayType === '2') {
-				return `至当天${this.automaticComputed}`
+				return !this.automaticComputed ? `至当天` : `至当天${this.automaticComputed}`
 			} else {
 				return false
 			}