From a5f41b5d98f23d618dc7519c605ce943b114dfd5 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 13 十一月 2023 18:07:51 +0800 Subject: [PATCH] 2023-11-13 --- src/menu/components/form/simple-form/options.jsx | 28 +++++++++++++++++++++++++++- 1 files changed, 27 insertions(+), 1 deletions(-) diff --git a/src/menu/components/form/simple-form/options.jsx b/src/menu/components/form/simple-form/options.jsx index 1ace5c6..daa2192 100644 --- a/src/menu/components/form/simple-form/options.jsx +++ b/src/menu/components/form/simple-form/options.jsx @@ -45,6 +45,18 @@ } } + let interfaces = [] + if (menu.interfaces) { + menu.interfaces.forEach(item => { + if (item.status === 'true') { + interfaces.push({ + value: item.uuid, + label: item.name + }) + } + }) + } + let buttons = [] if (!wrap.enable || wrap.enable === 'true') { @@ -52,6 +64,9 @@ } if (wrap.closeEnable === 'true') { buttons.push('closeEnable') + } + if (wrap.resetEnable === 'true') { + buttons.push('resetEnable') } const wrapForm = [ @@ -91,16 +106,26 @@ 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 @@ -152,6 +177,7 @@ required: false, options: [ {value: 'enable', label: '鎻愪氦'}, + {value: 'resetEnable', label: '閲嶇疆'}, {value: 'closeEnable', label: '鍏抽棴'}, ], }, -- Gitblit v1.8.0