From 010fdcf8abd58bde5c1106db8ed8448effc75b4b Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 25 二月 2025 16:37:46 +0800 Subject: [PATCH] 2025-02-25 --- src/menu/components/group/normal-group/options.jsx | 153 ++++++++++++++++++++++++++++++++------------------ 1 files changed, 98 insertions(+), 55 deletions(-) diff --git a/src/menu/components/group/normal-group/options.jsx b/src/menu/components/group/normal-group/options.jsx index 9c6f2e6..abad0cf 100644 --- a/src/menu/components/group/normal-group/options.jsx +++ b/src/menu/components/group/normal-group/options.jsx @@ -1,7 +1,7 @@ /** * @description Wrap琛ㄥ崟閰嶇疆淇℃伅 */ -export default function (setting) { +export default function (setting, list) { let roleList = sessionStorage.getItem('sysRoles') let appType = sessionStorage.getItem('appType') @@ -16,6 +16,13 @@ } const settingForm = [ + { + type: 'text', + field: 'title', + label: '鏍囬', + initval: setting.title || '', + required: false + }, { type: 'text', field: 'name', @@ -36,62 +43,70 @@ required: true }, { - type: 'radio', - field: 'print', - label: '鎵撳嵃鎸夐挳', - initval: setting.print || 'false', + type: 'select', + field: 'bindPropId', + label: '鏄剧ず鐘舵�佺粦瀹�', + initval: setting.bindPropId || '', + tooltip: '鍒嗙粍鍙粦瀹氳鏈夌┖鍊奸殣钘忕殑灞炴�у崱锛屽綋灞炴�у崱闅愯棌鏃跺垎缁勪竴鍚岄殣钘忋��', required: false, - options: [ - {value: 'true', label: '鏄剧ず'}, - {value: 'false', label: '闅愯棌'}, - ], - controlFields: [ - {field: 'pageSize', values: ['true']}, - {field: 'pageLayout', values: ['true']}, - {field: 'syncModule', values: ['true']}, - {field: 'checkAll', values: ['true']}, - {field: 'hide', values: ['true']}, - ], + options: list, forbid: appType === 'mob' }, - { - type: 'radio', - field: 'pageSize', - label: '鎵撳嵃灏哄', - initval: setting.pageSize || 'A4', - required: true, - options: [ - {value: 'A3', label: 'A3'}, - {value: 'A4', label: 'A4'}, - {value: 'A5', label: 'A5'}, - ], - forbid: appType === 'mob' - }, - { - type: 'radio', - field: 'pageLayout', - label: '鎵撳嵃甯冨眬', - initval: setting.pageLayout || 'vertical', - required: true, - options: [ - {value: 'vertical', label: '绾靛悜'}, - {value: 'horizontal', label: '妯悜'}, - ], - forbid: appType === 'mob' - }, - { - type: 'checkbox', - field: 'hide', - label: '闅愯棌鍏冪礌', - initval: setting.hide || [], - tooltip: '鎵ц鎵撳嵃鏃堕渶瑕侀殣钘忕殑椤甸潰鍏冪礌銆�', - required: false, - options: [ - {value: 'search', label: '鎼滅储'}, - {value: 'button', label: '鎸夐挳'}, - ], - forbid: appType === 'mob' - }, + // { + // type: 'radio', + // field: 'print', + // label: '鎵撳嵃鎸夐挳', + // initval: setting.print || 'false', + // required: false, + // options: [ + // {value: 'true', label: '鏄剧ず'}, + // {value: 'false', label: '闅愯棌'}, + // ], + // controlFields: [ + // {field: 'pageSize', values: ['true']}, + // {field: 'pageLayout', values: ['true']}, + // {field: 'hide', values: ['true']}, + // ], + // forbid: appType === 'mob' + // }, + // { + // type: 'radio', + // field: 'pageSize', + // label: '鎵撳嵃灏哄', + // initval: setting.pageSize || 'A4', + // required: true, + // options: [ + // {value: 'A3', label: 'A3'}, + // {value: 'A4', label: 'A4'}, + // {value: 'A5', label: 'A5'}, + // ], + // forbid: appType === 'mob' + // }, + // { + // type: 'radio', + // field: 'pageLayout', + // label: '鎵撳嵃甯冨眬', + // initval: setting.pageLayout || 'vertical', + // required: true, + // options: [ + // {value: 'vertical', label: '绾靛悜'}, + // {value: 'horizontal', label: '妯悜'}, + // ], + // forbid: appType === 'mob' + // }, + // { + // type: 'checkbox', + // field: 'hide', + // label: '闅愯棌鍏冪礌', + // initval: setting.hide || [], + // tooltip: '鎵ц鎵撳嵃鏃堕渶瑕侀殣钘忕殑椤甸潰鍏冪礌銆�', + // required: false, + // options: [ + // {value: 'search', label: '鎼滅储'}, + // {value: 'button', label: '鎸夐挳'}, + // ], + // forbid: appType === 'mob' + // }, { type: 'radio', field: 'permission', @@ -102,7 +117,7 @@ {value: 'true', label: '鍚敤'}, {value: 'false', label: '绂佺敤'}, ], - forbid: !appType + forbid: !appType || sessionStorage.getItem('editMenuType') === 'popview' }, { type: 'radio', @@ -117,6 +132,34 @@ ] }, { + type: 'radio', + field: 'mergeAble', + label: '灞曞紑/鏀惰捣', + initval: setting.mergeAble || 'false', + tooltip: '鍚敤鏃讹紝缁勪欢鍙充笂瑙掑皢鍑虹幇灞曞紑/鏀惰捣鐨勫浘鏍囷紝鍙皢褰撳墠缁勪欢灞曞紑鎴栨敹璧枫��', + required: false, + options: [ + {value: 'true', label: '鍚敤'}, + {value: 'false', label: '绂佺敤'}, + ], + controlFields: [ + {field: 'ctrlNumber', values: ['true']}, + ], + forbid: appType === 'mob' + }, + { + type: 'number', + field: 'ctrlNumber', + label: '鎺у埗鏁�', + initval: setting.ctrlNumber || 1, + tooltip: '褰撶粍浠舵敹璧锋椂锛屽叾鍚庨渶瑕佸睍寮�鐨勭粍浠舵暟銆�', + min: 1, + max: 5, + precision: 0, + required: true, + forbid: appType === 'mob' + }, + { type: 'multiselect', field: 'blacklist', label: '榛戝悕鍗�', -- Gitblit v1.8.0