king
2021-08-31 72419e2f826031a158173f46d723a672064e37cd
src/menu/components/card/balcony/options.jsx
@@ -8,6 +8,7 @@
  let modules = MenuUtils.getLinkModules(fromJS(window.GLOB.customMenu).toJS().components) || []
  let supmodules = MenuUtils.getSupModules(fromJS(window.GLOB.customMenu).toJS().components, '') || []
  let roleList = sessionStorage.getItem('sysRoles')
  let appType = sessionStorage.getItem('appType')
  if (roleList) {
    try {
@@ -75,6 +76,7 @@
      field: 'supModule',
      label: '上级组件',
      initval: wrap.supModule || '',
      // tooltip: '当上级组件不存在或没有权限时,当前组件不显示。',
      required: true,
      options: supmodules
    },
@@ -82,8 +84,8 @@
      type: 'radio',
      field: 'supControl',
      label: '显示控制',
      tooltip: '当前组件在主表选中行时显示,还是始终显示。',
      initval: wrap.supControl || 'show',
      tooltip: '当前组件在主表选中行时显示,还是始终显示。',
      required: false,
      options: [
        {value: 'hidden', label: '选行'},
@@ -95,6 +97,7 @@
      field: 'syncModule',
      label: '同步组件',
      initval: wrap.syncModule || '',
      tooltip: '当同步组件不存在或没有权限时,当前组件不显示。',
      required: true,
      options: modules
    },
@@ -206,9 +209,10 @@
      type: 'multiselect',
      field: 'blacklist',
      label: '黑名单',
      initval: wrap.blacklist || '',
      initval: wrap.blacklist || [],
      required: false,
      options: roleList
      options: roleList,
      forbid: !!appType
    },
  ]