From 6a0110feb3eb6515447c5a477f20eeaaaabb328b Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期日, 26 九月 2021 15:10:07 +0800 Subject: [PATCH] 2021-09-26 --- src/menu/components/card/data-card/options.jsx | 23 +++++++++++++++++++++-- 1 files changed, 21 insertions(+), 2 deletions(-) diff --git a/src/menu/components/card/data-card/options.jsx b/src/menu/components/card/data-card/options.jsx index 1fe4d59..f86434a 100644 --- a/src/menu/components/card/data-card/options.jsx +++ b/src/menu/components/card/data-card/options.jsx @@ -1,12 +1,20 @@ +import { fromJS } from 'immutable' +import MenuUtils from '@/utils/utils-custom.js' + /** * @description Wrap琛ㄥ崟閰嶇疆淇℃伅 */ -export default function (wrap, subtype, columns) { +export default function (wrap, subtype, columns, id) { let appType = sessionStorage.getItem('appType') let MenuType = '' + let menu = fromJS(window.GLOB.customMenu).toJS() - if (window.GLOB.customMenu.parentId === 'BillPrintTemp') { + if (menu.parentId === 'BillPrintTemp') { MenuType = 'billPrint' + } + let modules = [] + if (subtype === 'propcard') { + modules = MenuUtils.getSupModules(menu.components, id) || [] } let roleList = sessionStorage.getItem('sysRoles') @@ -61,6 +69,7 @@ ], controlFields: [ {field: 'goback', values: ['dynamic']}, + {field: 'supModule', values: ['static']}, ], forbid: subtype !== 'propcard' }, @@ -183,6 +192,16 @@ forbid: subtype !== 'propcard' || appType !== 'mob' }, { + type: 'cascader', + field: 'supModule', + label: '涓婄骇缁勪欢', + initval: wrap.supModule || [], + required: false, + options: modules, + allowClear: true, + forbid: subtype !== 'propcard' + }, + { type: 'multiselect', field: 'blacklist', label: '榛戝悕鍗�', -- Gitblit v1.8.0