From c96108bd84050feb01b47db3f5cae96670fda435 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 30 十月 2024 12:54:24 +0800 Subject: [PATCH] 2024-10-30 --- src/menu/components/form/simple-form/options.jsx | 28 +++++++++++++++++++++++++--- 1 files changed, 25 insertions(+), 3 deletions(-) diff --git a/src/menu/components/form/simple-form/options.jsx b/src/menu/components/form/simple-form/options.jsx index 1ace5c6..ab8acc7 100644 --- a/src/menu/components/form/simple-form/options.jsx +++ b/src/menu/components/form/simple-form/options.jsx @@ -1,4 +1,4 @@ -import MenuUtils from '@/utils/utils-custom.js' +import MenuUtils, { getInterfaces } from '@/utils/utils-custom.js' /** * @description Wrap琛ㄥ崟閰嶇疆淇℃伅 @@ -45,6 +45,7 @@ } } + let interfaces = getInterfaces() let buttons = [] if (!wrap.enable || wrap.enable === 'true') { @@ -52,6 +53,9 @@ } if (wrap.closeEnable === 'true') { buttons.push('closeEnable') + } + if (wrap.resetEnable === 'true') { + buttons.push('resetEnable') } const wrapForm = [ @@ -91,17 +95,35 @@ options: [ {value: 'dynamic', label: '鍔ㄦ��'}, {value: 'static', label: '闈欐��'}, + {value: 'public', label: '鍏叡鏁版嵁婧�'}, ], controlFields: [ {field: 'empty', values: ['dynamic']}, {field: 'supModule', values: ['static']}, + {field: 'publicId', values: ['public']}, ] }, { type: 'select', + field: 'publicId', + label: '鏁版嵁婧�', + initval: wrap.publicId || '', + required: true, + options: interfaces + }, + { + type: 'select', field: 'focus', - label: '鐒︾偣', + label: '鍒濆鐒︾偣', initval: wrap.focus || '', + required: false, + options: fields + }, + { + type: 'select', + field: 'refocus', + label: '鍒锋柊鐒︾偣', + initval: wrap.refocus || '', required: false, options: fields }, @@ -152,6 +174,7 @@ required: false, options: [ {value: 'enable', label: '鎻愪氦'}, + {value: 'resetEnable', label: '閲嶇疆'}, {value: 'closeEnable', label: '鍏抽棴'}, ], }, @@ -210,7 +233,6 @@ initval: wrap.empty || 'show', tooltip: '褰撴煡璇㈡暟鎹负绌烘椂锛岄殣钘忚缁勪欢銆�', required: false, - skip: true, options: [ {value: 'show', label: '鍚�'}, {value: 'hidden', label: '鏄�'}, -- Gitblit v1.8.0