| | |
| | | forbid: subtype !== 'propcard' && subtype !== 'datacard', |
| | | controlFields: [ |
| | | {field: 'emptyExec', notNull: true}, |
| | | {field: 'execDelay', notNull: true}, |
| | | ] |
| | | }, |
| | | { |
| | | type: 'number', |
| | | field: 'execDelay', |
| | | label: '执行延时', |
| | | initval: wrap.execDelay, |
| | | tooltip: '自动执行按钮的延时执行时间,单位毫秒。', |
| | | required: false, |
| | | forbid: subtype !== 'propcard' |
| | | }, |
| | | { |
| | | type: 'radio', |
| | | field: 'emptyExec', |
| | | label: '空值执行', |
| | |
| | | if (config.setting.supModule && config.wrap.datatype === 'static' && !data.$$BID) { |
| | | |
| | | } else if (btn) { |
| | | MKEmitter.emit('triggerBtnId', config.wrap.autoExec, data.$$empty ? [] : [data]) |
| | | if (config.wrap.execDelay) { |
| | | setTimeout(() => { |
| | | MKEmitter.emit('triggerBtnId', config.wrap.autoExec, data.$$empty ? [] : [data]) |
| | | }, config.wrap.execDelay) |
| | | } else { |
| | | MKEmitter.emit('triggerBtnId', config.wrap.autoExec, data.$$empty ? [] : [data]) |
| | | } |
| | | } else if (!times || times < 20) { |
| | | times = times ? times + 1 : 1 |
| | | this.autoTimer = setTimeout(() => { |