|
@@ -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" min="0" class="input-with-select">
|
|
|
+ <el-input v-model="fixedDuration" style="max-width: 300px" type="number" min="1" class="input-with-select">
|
|
|
<template #append>
|
|
|
<el-select v-model="fixedDurationType" style="width: 115px">
|
|
|
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"></el-option>
|
|
@@ -77,6 +77,7 @@
|
|
|
<script>
|
|
|
import addNode from './addNode'
|
|
|
import { delayProcessSelfOptions } from './config'
|
|
|
+import { ElMessage } from 'element-plus'
|
|
|
const mapTip = {
|
|
|
d: '天',
|
|
|
h: '小时',
|
|
@@ -106,7 +107,7 @@ export default {
|
|
|
{ label: '分钟', value: 'm' }
|
|
|
],
|
|
|
// 固定时长 start
|
|
|
- fixedDuration: 0,
|
|
|
+ fixedDuration: 1,
|
|
|
fixedDurationType: 'm',
|
|
|
selectedLabel: '分钟',
|
|
|
// 固定时长 end
|
|
@@ -154,6 +155,9 @@ export default {
|
|
|
this.isEditTitle = false
|
|
|
},
|
|
|
save() {
|
|
|
+ if (this.form.delayType === '1' && !Number(this.fixedDuration)) {
|
|
|
+ return ElMessage.warning('等待时间数值最小为1')
|
|
|
+ }
|
|
|
this.form.extendConfig = {
|
|
|
time: this.form.delayType === '1' ? `${this.fixedDuration}:${this.fixedDurationType}` : `${this.automaticComputed}`
|
|
|
}
|