From d1f19b794216b37417e114b71c1cd7a2ac3d7748 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 02 三月 2023 01:14:29 +0800 Subject: [PATCH] 2023-03-02 --- src/templates/zshare/formconfig.jsx | 98 ++++++++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 92 insertions(+), 6 deletions(-) diff --git a/src/templates/zshare/formconfig.jsx b/src/templates/zshare/formconfig.jsx index d380c82..d211ba0 100644 --- a/src/templates/zshare/formconfig.jsx +++ b/src/templates/zshare/formconfig.jsx @@ -67,6 +67,7 @@ key: 'sysInterface', label: '绯荤粺鎺ュ彛', initVal: setting.sysInterface || 'false', + tooltip: '鍗曠偣鐧诲綍绯荤粺', required: false, readonly: false, options: [ @@ -485,6 +486,13 @@ key: 'urlField', label: '鍦板潃瀛楁', initVal: card.urlField || '', + required: true + }, + { + type: 'text', + key: 'colorField', + label: '鑹插�煎瓧娈�', + initVal: card.colorField || '', required: true }, { @@ -1118,6 +1126,7 @@ key: 'sysInterface', label: '绯荤粺鎺ュ彛', initVal: card.sysInterface || 'false', + tooltip: '鍗曠偣鐧诲綍绯荤粺', required: true, options: [{ value: 'true', @@ -1259,7 +1268,7 @@ key: 'execSuccess', label: '鎴愬姛鍚�', initVal: card.execSuccess || 'grid', - tooltip: '閫夋嫨鍒锋柊琛屾椂锛屽鏋滈�夋嫨澶氭潯鏁版嵁浼氬埛鏂拌〃鏍笺��', + tooltip: '閫夋嫨鍒锋柊琛屾椂锛屽鏋滈�夋嫨澶氭潯鏁版嵁浼氬埛鏂拌〃鏍笺�傚闇�璇煶鎾姤璇蜂互@speak@寮�澶达紝鎾姤鍐呭鎴栨枃浠舵斁缃簬<<>>涓��', required: true, options: [{ value: 'never', @@ -1278,7 +1287,7 @@ key: 'execError', label: '澶辫触鍚�', initVal: card.execError || 'never', - tooltip: '閫夋嫨鍒锋柊琛屾椂锛屽鏋滈�夋嫨澶氭潯鏁版嵁浼氬埛鏂拌〃鏍笺��', + tooltip: '閫夋嫨鍒锋柊琛屾椂锛屽鏋滈�夋嫨澶氭潯鏁版嵁浼氬埛鏂拌〃鏍笺�傚闇�璇煶鎾姤璇蜂互@speak@寮�澶达紝鎾姤鍐呭鎴栨枃浠舵斁缃簬<<>>涓��', required: true, options: [{ value: 'never', @@ -1438,7 +1447,7 @@ { type: 'radio', key: 'placement', - label: '鎶藉眽鏂瑰悜', + label: '寮瑰嚭鏂瑰悜', initVal: card.placement || 'right', required: false, options: [{ @@ -2374,12 +2383,12 @@ /** * @description 鑾峰彇琛ㄥ崟閰嶇疆淇℃伅 * @param {*} card // 琛ㄥ崟瀵硅薄 - * @param {*} inputfields // 鍙叧鑱旇〃鍗� + * @param {*} inputfields // 鍙啓鍏ヨ〃鍗� * @param {*} tabfields // 鍙垏鎹㈣〃鍗� * @param {*} linkableFields // 鍙叧鑱旇〃鍗� * @param {*} linksupFields // 涓婄骇琛ㄥ崟 */ -export function getModalForm (card, inputfields = [], tabfields = [], linkableFields, linksupFields) { +export function getModalForm (card, inputfields = [], tabfields = [], linkableFields, linksupFields, columns = []) { let appType = sessionStorage.getItem('appType') let roleList = sessionStorage.getItem('sysRoles') if (roleList) { @@ -2398,6 +2407,27 @@ } else { roleList = [] } + + inputfields = inputfields.map((item, index) => { + item.label = `${index + 1}銆�${item.field || ''}锛�${item.label}锛塦 + return item + }) + tabfields = tabfields.map((item, index) => { + item.label = `${index + 1}銆�${item.field || ''}锛�${item.label}锛塦 + return item + }) + + tabfields.unshift({field: '', label: '鍘熻〃鍗�'}) + + linkableFields = linkableFields.map((item, index) => { + item.label = `${index + 1}銆�${item.field || ''}锛�${item.label}锛塦 + return item + }) + + linksupFields = linksupFields.map((item, index) => { + item.label = `${index + 1}銆�${item.field || ''}锛�${item.label}锛塦 + return item + }) let _openType = [{ value: 'text', @@ -2578,7 +2608,8 @@ label: '瀛楁', initVal: card.field || '', required: true, - readonly: false + readonly: false, + options: columns }, { type: 'select', @@ -2688,6 +2719,13 @@ initVal: card.urlField || '', required: true, readonly: false + }, + { + type: 'text', + key: 'colorField', + label: '鑹插�煎瓧娈�', + initVal: card.colorField || '', + required: true }, { type: 'radio', @@ -3200,6 +3238,19 @@ }, { type: 'radio', + key: 'colorType', + label: '棰滆壊绫诲瀷', + initVal: card.colorType || 'hex', + options: [{ + value: 'hex', + text: '16杩涘埗' + }, { + value: 'rgba', + text: 'RGBA' + }] + }, + { + type: 'radio', key: 'allowHalf', label: '鍗婇��', initVal: card.allowHalf || 'false', @@ -3331,6 +3382,20 @@ }, { value: 'md5', text: 'md5鍔犲瘑' + }] + }, + { + type: 'radio', + key: 'inputType', + label: '鍔犲瘑鏄剧ず', + initVal: card.inputType || 'text', + required: false, + options: [{ + value: 'text', + text: '鍚�' + }, { + value: 'password', + text: '鏄�' }] }, { @@ -3665,6 +3730,15 @@ }, { type: 'text', + key: 'regularExtra', + label: '姝e垯鎵╁睍绗�', + initVal: card.regularExtra || '', + tooltip: '姝e垯楠岃瘉鏃跺厑璁告坊鍔犵殑鑷畾涔夊瓧绗︼紝鍖呮嫭~!@#$%^&*()_+:;{}<>,.-', + required: false, + readonly: false + }, + { + type: 'text', key: 'regularText', label: '姝e垯鎻愮ず', initVal: card.regularText || '', @@ -3778,6 +3852,18 @@ // forbid: appType !== 'mob' // }, { + type: 'radio', + key: 'empty', + label: '绌哄�奸殣钘�', + initVal: card.empty || 'show', + tooltip: '褰撻�夐」涓虹┖鏃讹紝闅愯棌璇ヨ〃鍗曘��', + required: false, + options: [ + {value: 'show', text: '鍚�'}, + {value: 'hidden', text: '鏄�'}, + ] + }, + { type: 'multiselect', key: 'blacklist', label: '榛戝悕鍗�', -- Gitblit v1.8.0