From 3ab48c2aea029329cd3b137911469b1e6eb40d47 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 04 七月 2024 15:33:50 +0800 Subject: [PATCH] 2024-07-04 --- src/menu/components/share/actioncomponent/formconfig.jsx | 35 +++++++++++++++++++++++++++-------- 1 files changed, 27 insertions(+), 8 deletions(-) diff --git a/src/menu/components/share/actioncomponent/formconfig.jsx b/src/menu/components/share/actioncomponent/formconfig.jsx index 4d90ee7..3b176a2 100644 --- a/src/menu/components/share/actioncomponent/formconfig.jsx +++ b/src/menu/components/share/actioncomponent/formconfig.jsx @@ -18,6 +18,11 @@ let type = '' let alltype = config.type + '_' + config.subtype + columns = columns.map(item => ({ + value: item.field, + text: `${item.label}锛�${item.field}锛塦 + })) + if (card.eleType === 'button') { type = 'card' } else if (config.subtype === 'datacard' || config.subtype === 'tablecard' || config.subtype === 'dualdatacard') { @@ -211,6 +216,7 @@ { value: 'copyurl', text: '澶嶅埗閾炬帴鍦板潃' }, { value: 'expPdf', text: '瀵煎嚭PDF' }, { value: 'shareLink', text: '鍒嗕韩閾炬帴' }, + { value: 'openLocation', text: '鎵撳紑鍦板浘'}, { value: 'logout', text: '閫�鍑�' }, { value: 'goBack', text: '杩斿洖' }, ] @@ -857,6 +863,25 @@ }] }, { + type: 'select', + key: 'nameField', + label: '浣嶇疆鍚嶅瓧娈�', + initVal: card.nameField || '', + tooltip: '鎵撳紑鍦板浘鏃跺彲灞曠ず浣嶇疆鍚嶄笌璇︾粏鍦板潃锛岃缁戝畾鏁版嵁婧愬瓧娈甸泦锛岀粡绾害璇蜂娇鐢╨atitude銆乴ongitude涓旂粡绾害涓嶅彲涓虹┖銆�', + required: false, + allowClear: true, + options: columns + }, + { + type: 'select', + key: 'addressField', + label: '鍦板潃瀛楁', + initVal: card.addressField || '', + required: false, + allowClear: true, + options: columns + }, + { type: 'radio', key: 'shortUrl', label: '鐭摼鎺�', @@ -1151,10 +1176,7 @@ required: false, allowClear: true, forbid: position !== 'line', - options: columns.map(item => ({ - value: item.field, - text: `${item.label}锛�${item.field}锛塦 - })) + options: columns }, { type: 'radio', @@ -1371,10 +1393,7 @@ initVal: card.controlField || '', required: true, allowClear: true, - options: columns.map(item => ({ - value: item.field, - text: `${item.label}锛�${item.field}锛塦 - })) + options: columns }, { type: 'text', -- Gitblit v1.8.0