| | |
| | | </el-drawer> |
| | | |
| | | <!-- 注入西段 编辑/创建 部分 --> |
| | | <el-dialog title="字段配置" :visible.sync="listenerFieldFormModelVisible" width="600px" append-to-body destroy-on-close> |
| | | <el-form :model="listenerFieldForm" label-width="96px" ref="listenerFieldFormRef" style="height: 136px" @submit.native.prevent> |
| | | <el-dialog title="字段配置" :visible.sync="listenerFieldFormModelVisible" :close-on-click-modal="false" width="600px" append-to-body destroy-on-close> |
| | | <el-form :model="listenerFieldForm" label-width="96px" ref="listenerFieldFormRef" @submit.native.prevent> |
| | | <el-form-item label="字段名称:" prop="name" :rules="{ required: true, trigger: ['blur', 'change'] }"> |
| | | <el-input v-model="listenerFieldForm.name" clearable /> |
| | | </el-form-item> |
| | |
| | | :rules="{ required: true, trigger: ['blur', 'change'] }" |
| | | > |
| | | <el-input v-model="listenerFieldForm.string" clearable /> |
| | | <el-alert |
| | | :closable="false" |
| | | title="赋码时间格式为:天-小时,例如:一天零3小时应配置为:1-3" |
| | | type="info"> |
| | | </el-alert> |
| | | </el-form-item> |
| | | <el-form-item |
| | | v-if="listenerFieldForm.fieldType === 'expression'" |
| | |
| | | //校验超时监听器参数 |
| | | if (this.listenerForm.class === 'com.ycl.listener.flowable.FlowableOverTimeListener') { |
| | | // 0-0 格式 |
| | | const regex = /^(\d{1,2})-(\d{1,2})$/; |
| | | const regex = /^(\d{1,3})-(\d{1,2})$/; |
| | | for (let i = 0; i < this.listenerForm.fields.length; i++) { |
| | | if (this.listenerForm.fields[i].name === '红码时长' || this.listenerForm.fields[i].name === '黄码时长') { |
| | | if (this.listenerForm.fields[i].name === '红码时长' || this.listenerForm.fields[i].name === '黄码时长' || this.listenerForm.fields[i].name === '办理期限') { |
| | | const match = this.listenerForm.fields[i].string.match(regex); |
| | | if (match) { |
| | | const hours1 = parseInt(match[1], 10); |