From c7df5603e14b98d6f80da425fab31d30574ca417 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 22 一月 2021 19:10:18 +0800 Subject: [PATCH] 2021-01-22 --- src/templates/zshare/formconfig.jsx | 121 ++++++++++++++++++++++++++-------------- 1 files changed, 78 insertions(+), 43 deletions(-) diff --git a/src/templates/zshare/formconfig.jsx b/src/templates/zshare/formconfig.jsx index 274a605..fd7dfe4 100644 --- a/src/templates/zshare/formconfig.jsx +++ b/src/templates/zshare/formconfig.jsx @@ -723,23 +723,6 @@ label: Formdict['header.form.intertype'], initVal: card.intertype || 'system', required: true, - options: [{ - value: 'system', - text: Formdict['model.interface.system'] - }, { - value: 'inner', - text: Formdict['model.interface.inner'] - }, { - value: 'outer', - text: Formdict['model.interface.outer'] - }] - }, - { - type: 'select', - key: 'sqlType', - label: Formdict['header.form.action.type'], - initVal: card.sqlType || '', - required: true, options: [] }, { @@ -748,6 +731,14 @@ label: Formdict['model.form.tablename'], initVal: card.sql || config.setting.tableName || '', required: true + }, + { + type: 'radio', + key: 'sqlType', + label: Formdict['header.form.action.type'], + initVal: card.sqlType || '', + required: true, + options: [] }, { type: 'text', @@ -768,17 +759,17 @@ required: card.intertype === 'inner', readonly: false }, - { - type: 'select', - key: 'tabType', - label: Formdict['model.form.tabType'], - initVal: card.tabType || 'SubTable', - required: true, - options: [{ - value: 'SubTable', - text: Formdict['model.menu.tab.subtable'] - }] - }, + // { + // type: 'select', + // key: 'tabType', + // label: Formdict['model.form.tabType'], + // initVal: card.tabType || 'SubTable', + // required: true, + // options: [{ + // value: 'SubTable', + // text: Formdict['model.menu.tab.subtable'] + // }] + // }, { type: 'select', key: 'linkTab', @@ -856,6 +847,50 @@ readonly: card.sysInterface === 'true' }, { + type: 'radio', + key: 'method', + label: '璇锋眰鏂瑰紡', + initVal: card.method || 'post', + required: true, + options: [{ + value: 'get', + text: 'GET' + }, { + value: 'post', + text: 'POST' + }] + }, + { + type: 'text', + key: 'proInterface', + label: '姝e紡鍦板潃', + initVal: card.proInterface || '', + tooltip: '姝e紡绯荤粺鎵�浣跨敤鐨勬帴鍙e湴鍧�銆�', + required: false + }, + { + type: 'radio', + key: 'callbackType', + label: '鍥炶皟鏂瑰紡', + initVal: card.callbackType || 'default', + tooltip: '浣跨敤榛樿鏂瑰紡鎵ц鏃讹紝闇�瑕侀厤鍚堣鍒掍换鍔°��', + required: true, + options: [{ + value: 'default', + text: '榛樿鎵ц' + }, { + value: 'script', + text: '鑷畾涔夎剼鏈�' + }] + }, + { + type: 'text', + key: 'cbTable', + label: '鍥炶皟琛ㄥ悕', + initVal: card.cbTable || '', + required: true + }, + { type: 'text', key: 'callbackFunc', label: Formdict['header.form.callbackFunc'], @@ -864,7 +899,7 @@ readonly: false }, { - type: 'select', + type: 'radio', key: 'position', label: Formdict['header.form.position'], initVal: card.position || 'toolbar', @@ -1939,7 +1974,7 @@ type: 'text', key: 'initval', label: Formdict['header.form.initval'], - tooltip: '涓嬫媺澶氶�変笌澶氶�夋锛屾坊鍔犲涓垵濮嬪�艰浣跨敤鈥�,鈥濆彿鍒嗛殧銆�', + tooltip: '涓嬫媺澶氶�変笌澶氶�夋锛屾坊鍔犲涓垵濮嬪�艰浣跨敤鈥�,鈥濆彿鍒嗛殧銆傛敞锛氫笅鎷夐�夋嫨銆佽仈鍔ㄨ彍鍗曟垨鍗曢�夋涓�$first琛ㄧず閫夋嫨绗竴椤�', initVal: card.initval || '', required: false }, @@ -1956,14 +1991,14 @@ key: 'openVal', label: '寮�鍚��', initVal: card.openVal || '', - required: true + required: false }, { type: 'text', key: 'closeVal', label: '鍏抽棴鍊�', initVal: card.closeVal || '', - required: true + required: false }, { type: 'text', @@ -2466,17 +2501,17 @@ initVal: card.label || '', required: true }, - { - type: 'select', - key: 'type', - label: Formdict['model.form.tabType'], - initVal: card.type || 'SubTable', - required: true, - options: [{ - value: 'SubTable', - text: Formdict['model.menu.tab.subtable'] - }] - }, + // { + // type: 'select', + // key: 'type', + // label: Formdict['model.form.tabType'], + // initVal: card.type || 'SubTable', + // required: true, + // options: [{ + // value: 'SubTable', + // text: Formdict['model.menu.tab.subtable'] + // }] + // }, { type: 'select', key: 'linkTab', -- Gitblit v1.8.0