| | |
| | | //校验超时监听器参数 |
| | | 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); |