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/subtableconfig/index.jsx | 24 +++++++++++++++++++----- 1 files changed, 19 insertions(+), 5 deletions(-) diff --git a/src/templates/subtableconfig/index.jsx b/src/templates/subtableconfig/index.jsx index 17e5f10..1735682 100644 --- a/src/templates/subtableconfig/index.jsx +++ b/src/templates/subtableconfig/index.jsx @@ -577,12 +577,18 @@ 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', @@ -594,6 +600,14 @@ }, { 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, -- Gitblit v1.8.0