king
2023-12-12 49f09cc6f8ff8c30a75ed1a9d6f510b69b73962a
src/menu/components/card/balcony/options.jsx
@@ -6,7 +6,8 @@
 */
export default function (wrap, buttons, columns) {
  let menu = window.GLOB.customMenu
  let MenuType = menu.parentId === 'BillPrintTemp' ? 'billPrint' : ''
  let isprint = sessionStorage.getItem('MenuType') === 'billPrint'
  let ispop = sessionStorage.getItem('editMenuType') === 'popview'
  let modules = MenuUtils.getLinkModules(menu.components) || []
  let supmodules = MenuUtils.getSupModules(menu.components, '', menu.interfaces)
@@ -33,10 +34,6 @@
    }
  } else {
    roleList = []
  }
  if (wrap.datatype === 'public' && MenuType === 'billPrint') {
    wrap.datatype = 'static'
  }
  const balconyWrapForm = [
@@ -69,7 +66,7 @@
      options: [
        {value: 'dynamic', label: '动态'},
        {value: 'static', label: '静态'},
        {value: 'public', label: '公共数据源', disabled: MenuType === 'billPrint'},
        {value: 'public', label: '公共数据源'},
      ],
      controlFields: [
        {field: 'empty', values: ['dynamic']},
@@ -128,7 +125,7 @@
        {field: 'syncModule', values: ['sync']},
        {field: 'checkAll', values: ['sync']},
      ],
      forbid: MenuType === 'billPrint'
      forbid: isprint
    },
    {
      type: 'cascader',
@@ -137,7 +134,8 @@
      initval: wrap.supModule || [],
      // tooltip: '当上级组件不存在或没有权限时,当前组件不显示。',
      required: true,
      options: supmodules
      options: supmodules,
      forbid: isprint
    },
    {
      type: 'radio',
@@ -149,7 +147,8 @@
      options: [
        {value: 'hidden', label: '选行'},
        {value: 'show', label: '始终'},
      ]
      ],
      forbid: isprint
    },
    {
      type: 'cascader',
@@ -158,7 +157,8 @@
      initval: wrap.syncModule || '',
      tooltip: '当同步组件不存在或没有权限时,当前组件不显示。',
      required: true,
      options: modules
      options: modules,
      forbid: isprint
    },
    {
      type: 'radio',
@@ -170,7 +170,8 @@
      options: [
        {value: 'hidden', label: '隐藏'},
        {value: 'show', label: '显示'},
      ]
      ],
      forbid: isprint
    },
    {
      type: 'radio',
@@ -205,7 +206,7 @@
        {value: 'content', label: '浮动卡'},
        {value: 'headerOrfooter', label: '页眉/页脚'},
      ],
      forbid: MenuType !== 'billPrint'
      forbid: !isprint
    },
    {
      type: 'radio',
@@ -214,10 +215,22 @@
      initval: wrap.permission || (!appType ? 'true' : 'false'),
      required: false,
      options: [
        {value: 'true', label: '启用'},
        {value: 'true', label: !appType ? '继承菜单' : '启用'},
        {value: 'false', label: '禁用'},
      ],
      forbid: sessionStorage.getItem('editMenuType') === 'popview'
      forbid: ispop || isprint
    },
    {
      type: 'radio',
      field: 'cacheLocal',
      label: '本地缓存',
      initval: wrap.cacheLocal || 'true',
      required: false,
      options: [
        {value: 'true', label: '继承菜单'},
        {value: 'false', label: '禁用'},
      ],
      forbid: ispop || isprint
    },
    {
      type: 'select',
@@ -226,7 +239,7 @@
      initval: wrap.linkbtn || '',
      required: false,
      options: buttons,
      forbid: MenuType === 'billPrint'
      forbid: isprint
    },
    {
      type: 'multiselect',
@@ -235,7 +248,7 @@
      initval: wrap.blacklist || [],
      required: false,
      options: roleList,
      forbid: !!appType
      forbid: !!appType || isprint
    },
  ]