From f895e8af9e6a393f71fec0dc26fdf1b9b6616cb4 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 11 十二月 2020 18:53:04 +0800 Subject: [PATCH] 2020-12-11 --- src/templates/zshare/formconfig.jsx | 34 ++++++++++++++++++++++++++++++---- 1 files changed, 30 insertions(+), 4 deletions(-) diff --git a/src/templates/zshare/formconfig.jsx b/src/templates/zshare/formconfig.jsx index 2af3c33..cc26757 100644 --- a/src/templates/zshare/formconfig.jsx +++ b/src/templates/zshare/formconfig.jsx @@ -1814,11 +1814,12 @@ * @description 鑾峰彇琛ㄥ崟閰嶇疆淇℃伅 * @param {*} card // 琛ㄥ崟瀵硅薄 * @param {*} inputfields // 鍙叧鑱旇〃鍗� + * @param {*} tabfields // 鍙垏鎹㈣〃鍗� * @param {*} linkableFields // 鍙叧鑱旇〃鍗� * @param {*} linksupFields // 涓婄骇琛ㄥ崟 * @param {*} subtable // 鏄惁涓哄瓙琛ㄨ〃鍗� */ -export function getModalForm (card, inputfields, linkableFields, linksupFields, subtable = false) { +export function getModalForm (card, inputfields = [], tabfields = [], linkableFields, linksupFields, subtable = false) { let roleList = sessionStorage.getItem('sysRoles') if (roleList) { try { @@ -2356,8 +2357,8 @@ { type: 'text', key: 'tooltip', - label: '琛ㄥ崟娉ㄩ噴', - tooltip: '榧犳爣鎮诞浜庢彁绀烘枃瀛椾笂鏂规椂锛屾樉绀烘敞閲娿��', + label: '鎮诞鎻愮ず', + tooltip: '榧犳爣鎮诞浜庢彁绀烘枃瀛椾笂鏂规椂锛屾樉绀烘彁绀轰俊鎭��', initVal: card.tooltip || '', required: false }, @@ -2365,11 +2366,36 @@ type: 'text', key: 'emptyText', label: '绌哄�兼枃鏈�', - tooltip: '绌哄�肩殑鎻愮ず鏂囨湰锛岄粯璁や负銆婄┖銆嬨��', + tooltip: '绌哄�肩殑鎻愮ず鏂囨湰锛岄�夋嫨璁剧疆绌哄�兼椂鏈夋晥锛岄粯璁ゅ�间负銆婄┖銆嬨��', initVal: card.emptyText || '', required: false }, { + type: 'radio', + key: 'enter', + label: '鍥炶溅浜嬩欢', + initVal: (card.type === 'text' || card.type === 'number') ? (card.enter || 'sub') : (card.enter || 'false'), + tooltip: '鐐瑰嚮Enter閿紝鎴栨枃鏈被琛ㄥ崟杈撳叆鍥炶溅绗︺��', + options: [{ + value: 'sub', + text: '鎻愪氦' + }, { + value: 'tab', + text: '鍒囨崲' + }, { + value: 'false', + text: '鏃犲姩浣�' + }] + }, + { + type: 'select', + key: 'tabField', + label: '鍒囨崲瀛楁', + initVal: card.tabField || '', + options: tabfields, + required: false + }, + { type: 'multiselect', key: 'blacklist', label: Formdict['header.form.blacklist'], -- Gitblit v1.8.0