| | |
| | | let reRequired = {} |
| | | let reReadonly = {} |
| | | |
| | | reTooltip.interface = '' |
| | | reTooltip.proInterface = '正式系统所使用的接口地址。' |
| | | if (['pop', 'prompt', 'exec'].includes(openType)) { |
| | | let intertype = this.record.intertype |
| | | |
| | |
| | | } |
| | | reReadonly.interface = false |
| | | reRequired.interface = true |
| | | reTooltip.interface = `可使用变量@mywebsite@ (域名+虚拟目录)、@mydomain@ (域名),如:@mywebsite@/webapi/dostars 代表 ${window.GLOB.baseurl}webapi/dostars。` |
| | | reTooltip.proInterface += reTooltip.interface |
| | | } else if (intertype === 'outer') { |
| | | shows.push('procMode', 'sysInterface', 'outerFunc', 'callbackType') |
| | | if (this.record.procMode === 'system') { |
| | |
| | | url = btn.interface |
| | | } |
| | | |
| | | url = url.replace(/@mydomain@/ig, window.GLOB.location) |
| | | |
| | | let param = {} |
| | | |
| | |
| | | this.setState({ |
| | | value: nextProps.config.initval, |
| | | }) |
| | | if (config.linkFields && nextProps.config.initval) { |
| | | config.linkFields.forEach((m, i) => { |
| | | setTimeout(() => { |
| | | MKEmitter.emit('mkFP', m.uuid, nextProps.config.initval, 0) |
| | | }, (i + 1) * 70) |
| | | }) |
| | | } |
| | | } else if (option && typeof(option.value) !== typeof(value)) { |
| | | if (typeof(option.value) === 'number' && !isNaN(value)) { |
| | | this.setState({ |
| | |
| | | this.setState({ |
| | | value: nextProps.config.initval, |
| | | }) |
| | | if (config.linkFields && nextProps.config.initval) { |
| | | config.linkFields.forEach((m, i) => { |
| | | setTimeout(() => { |
| | | MKEmitter.emit('mkFP', m.uuid, nextProps.config.initval, 0) |
| | | }, (i + 1) * 70) |
| | | }) |
| | | } |
| | | } else if (option && typeof(option.value) !== typeof(value)) { |
| | | if (typeof(option.value) === 'number' && !isNaN(value)) { |
| | | this.setState({ |