From 25bf481493bcf18fca79e4d250f9c91dedf832e5 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 02 四月 2024 15:15:58 +0800 Subject: [PATCH] 2024-04-02 --- src/menu/components/share/actioncomponent/formconfig.jsx | 126 ++++++++++++++++++++++++++++++++++++++++- 1 files changed, 122 insertions(+), 4 deletions(-) diff --git a/src/menu/components/share/actioncomponent/formconfig.jsx b/src/menu/components/share/actioncomponent/formconfig.jsx index 5b0f0bd..e37705d 100644 --- a/src/menu/components/share/actioncomponent/formconfig.jsx +++ b/src/menu/components/share/actioncomponent/formconfig.jsx @@ -499,7 +499,7 @@ initVal: card.linkmenu || (isApp ? '' : []), required: true, extendName: 'MenuNo', - options: isApp ? appMenus : menulist + options: isApp ? appMenus : (menulist.length ? [...menulist, {value: 'multiMenu', label: '澶氳彍鍗�'}] : []) }, { type: 'text', @@ -1354,7 +1354,7 @@ type: 'radio', key: 'permission', label: '鏉冮檺楠岃瘉', - initVal: setting.permission || 'true', + initVal: card.permission || 'true', required: false, options: [ {value: 'true', text: '缁ф壙鑿滃崟'}, @@ -1505,6 +1505,65 @@ width: '70%', render: (text, record) => record.label, options: modules + } + ] + }, + { + type: 'radio', + key: 'sysId', + label: '鑷畾涔塈D', + initVal: card.sysId || '', + tooltip: '涓嶉�夎鎸夐挳鍙湪鍓嶇鐢熸垚ID鍊�(32浣�)锛屼綔涓哄悗缁彍鍗曠殑BID锛屽瓨鍦ㄦ爣璁版椂锛孖D鍊煎悗灏嗘嫾鎺ユ爣璁板�笺��', + required: false, + options: [{ + value: '', + text: '绌�' + }, { + value: 'js', + text: '鍓嶇鐢熸垚' + }] + }, + { + type: 'text', + key: 'sign', + label: '鏍囪', + initVal: card.sign || '', + required: false + }, + { + type: 'table', + key: 'multiMenus', + label: '鑿滃崟鍒楄〃', + initVal: card.multiMenus || [], + required: true, + actions: ['edit', 'del', 'add', 'move'], + columns: [ + { + title: '鍚嶇О', + dataIndex: 'name', + inputType: 'text', + editable: true, + required: false, + width: '30%' + }, + { + title: '鑿滃崟', + dataIndex: 'menuId', + inputType: 'cascader', + editable: true, + required: true, + extends: [{key: 'label', value: 'label', mutilLabel: 'name'}], + width: '30%', + render: (text, record) => record.label, + options: menulist + }, + { + title: '鏍囪', + dataIndex: 'sign', + inputType: 'text', + editable: true, + required: false, + width: '20%' } ] }, @@ -1793,7 +1852,7 @@ initVal: card.linkmenu || [], required: true, extendName: 'MenuNo', - options: menulist + options: menulist.length ? [...menulist, {value: 'multiMenu', label: '澶氳彍鍗�'}] : [] }, { type: 'textarea', @@ -2478,7 +2537,7 @@ type: 'radio', key: 'permission', label: '鏉冮檺楠岃瘉', - initVal: setting.permission || 'true', + initVal: card.permission || 'true', required: false, options: [ {value: 'true', text: '鍚敤'}, @@ -2539,6 +2598,65 @@ }, { type: 'radio', + key: 'sysId', + label: '鑷畾涔塈D', + initVal: card.sysId || '', + tooltip: '涓嶉�夎鎸夐挳鍙湪鍓嶇鐢熸垚ID鍊�(32浣�)锛屼綔涓哄悗缁彍鍗曠殑BID锛屽瓨鍦ㄦ爣璁版椂锛孖D鍊煎悗灏嗘嫾鎺ユ爣璁板�笺��', + required: false, + options: [{ + value: '', + text: '绌�' + }, { + value: 'js', + text: '鍓嶇鐢熸垚' + }] + }, + { + type: 'text', + key: 'sign', + label: '鏍囪', + initVal: card.sign || '', + required: false + }, + { + type: 'table', + key: 'multiMenus', + label: '鑿滃崟鍒楄〃', + initVal: card.multiMenus || [], + required: true, + actions: ['edit', 'del', 'add', 'move'], + columns: [ + { + title: '鍚嶇О', + dataIndex: 'name', + inputType: 'text', + editable: true, + required: false, + width: '30%' + }, + { + title: '鑿滃崟', + dataIndex: 'menuId', + inputType: 'cascader', + editable: true, + required: true, + extends: [{key: 'label', value: 'label', mutilLabel: 'name'}], + width: '30%', + render: (text, record) => record.label, + options: menulist + }, + { + title: '鏍囪', + dataIndex: 'sign', + inputType: 'text', + editable: true, + required: false, + width: '20%' + } + ] + }, + { + type: 'radio', key: 'preHandle', label: '鑷畾涔夎剼鏈�', initVal: card.preHandle || 'false', -- Gitblit v1.8.0