From 1b0fd0a20d54068f0f4716177780e00a75b860ef Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 10 一月 2020 17:12:34 +0800 Subject: [PATCH] 2020-01-10 --- src/templates/comtableconfig/index.jsx | 61 ++++++++++++++++++++++-------- 1 files changed, 44 insertions(+), 17 deletions(-) diff --git a/src/templates/comtableconfig/index.jsx b/src/templates/comtableconfig/index.jsx index f4ab260..89d3e62 100644 --- a/src/templates/comtableconfig/index.jsx +++ b/src/templates/comtableconfig/index.jsx @@ -289,7 +289,7 @@ * @description 缁勪欢閿�姣侊紝娓呴櫎state鏇存柊 */ componentWillUnmount () { - this.setState = (state, callback) => { + this.setState = () => { return } } @@ -652,18 +652,40 @@ readonly: false }, { - type: 'text', - key: 'interface', - label: this.state.dict['header.form.interface'], - initVal: card.interface, + type: 'radio', + key: 'sysInterface', + label: this.state.dict['header.form.sysInterface'], + initVal: card.sysInterface || 'false', required: true, - readonly: false + options: [{ + value: 'true', + text: this.state.dict['header.form.true'] + }, { + value: 'false', + text: this.state.dict['header.form.false'] + }] }, { type: 'text', key: 'outerFunc', label: this.state.dict['header.form.outerFunc'], initVal: card.outerFunc, + required: false, + readonly: false + }, + { + type: 'text', + key: 'interface', + label: this.state.dict['header.form.interface'], + initVal: card.sysInterface === 'true' ? (window.GLOB.mainSystemApi || window.GLOB.subSystemApi) : card.interface, + required: true, + readonly: card.sysInterface === 'true' + }, + { + type: 'text', + key: 'callbackFunc', + label: this.state.dict['header.form.callbackFunc'], + initVal: card.callbackFunc, required: false, readonly: false }, @@ -682,20 +704,23 @@ }] }, { - type: 'text', - key: 'callbackFunc', - label: this.state.dict['header.form.callbackFunc'], - initVal: card.callbackFunc, - required: false, - readonly: false - }, - { type: 'select', key: 'Ot', label: this.state.dict['header.form.isRequired'], initVal: card.Ot || 'requiredSgl', required: true, options: [] + }, + { + type: 'select', + key: 'tabTemplate', + label: '鏍囩妯℃澘', + initVal: card.tabTemplate || 'formTab', + required: true, + options: [{ + value: 'formTab', + text: '甯︽爣绛捐〃鍗�' + }] }, { type: 'select', @@ -2582,12 +2607,14 @@ let _type = type if (type === 'button' && btn.OpenType === 'popview') { _type = 'tab' + } else if (type === 'button' && (btn.OpenType === 'tab' || btn.OpenType === 'blank')) { + _type = 'tabview' } - if (_type === 'button') { - uuid = btn.uuid - } else { + if (_type === 'tab') { uuid = btn.linkTab + } else { + uuid = btn.uuid } Api.getSystemConfig({ -- Gitblit v1.8.0