From c98e45bfac25e9110ad0383faac54a54d98ea9d5 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 18 十一月 2021 20:47:04 +0800 Subject: [PATCH] 2021-11-18 --- src/menu/components/card/data-card/options.jsx | 29 ++++++++++++++++++++++++----- 1 files changed, 24 insertions(+), 5 deletions(-) diff --git a/src/menu/components/card/data-card/options.jsx b/src/menu/components/card/data-card/options.jsx index 1fe4d59..2b629bb 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' }, @@ -69,7 +78,7 @@ field: 'pagestyle', label: '鍒嗛〉椋庢牸', initval: wrap.pagestyle || 'page', - tooltip: '鏁版嵁婧愰�夋嫨鍒嗛〉鏃舵湁鏁堛��', + tooltip: '鏁版嵁婧愰�夋嫨鍒嗛〉鏃舵湁鏁堛�傛敞锛氭粦鍔ㄥ姞杞藉彧鏈夌涓�涓湁鏁�', required: false, options: [ {value: 'page', label: '椤电爜'}, @@ -177,12 +186,22 @@ tooltip: '褰撴煡璇㈡暟鎹负绌烘椂锛岃繑鍥炰笂涓�鐣岄潰銆�', required: false, options: [ - {value: 'true', label: '鍔ㄦ��'}, - {value: 'false', label: '闈欐��'}, + {value: 'true', label: '鏄�'}, + {value: 'false', label: '鍚�'}, ], 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