king
2023-05-22 43a517b80f2803e0dcf6658113520c4a14c8c17f
src/menu/components/card/double-data-card/options.jsx
@@ -3,13 +3,13 @@
 */
export default function (wrap, columns = [], setting) {
  let appType = sessionStorage.getItem('appType')
  let MenuType = ''
  let menu = window.GLOB.customMenu
  // let MenuType = ''
  // let menu = window.GLOB.customMenu
  let laypage = setting && setting.laypage !== 'false'
  if (menu.parentId === 'BillPrintTemp') {
    MenuType = 'billPrint'
  }
  // if (menu.parentId === 'BillPrintTemp') {
  //   MenuType = 'billPrint'
  // }
  let roleList = sessionStorage.getItem('sysRoles')
@@ -65,22 +65,22 @@
      precision: 0,
      required: true
    },
    {
      type: 'radio',
      field: 'layout',
      label: '卡片布局',
      initval: wrap.layout || 'grid',
      tooltip: appType === 'mob' ? '弹性布局时,滑动加载无效' : '',
      required: false,
      options: [
        {value: 'grid', label: '栅格布局'},
        {value: 'flex', label: '弹性布局'},
      ],
      controlFields: [
        {field: 'printHeight', values: ['flex']},
        {field: 'cardFloat', values: ['grid']},
      ]
    },
    // {
    //   type: 'radio',
    //   field: 'layout',
    //   label: '卡片布局',
    //   initval: wrap.layout || 'grid',
    //   tooltip: appType === 'mob' ? '弹性布局时,滑动加载无效' : '',
    //   required: false,
    //   options: [
    //     {value: 'grid', label: '栅格布局'},
    //     {value: 'flex', label: '弹性布局'},
    //   ],
    //   controlFields: [
    //     {field: 'printHeight', values: ['flex']},
    //     {field: 'cardFloat', values: ['grid']},
    //   ]
    // },
    {
      type: 'radio',
      field: 'pagestyle',
@@ -146,19 +146,6 @@
    },
    {
      type: 'radio',
      field: 'cardFloat',
      label: '对齐方式',
      initval: wrap.cardFloat || 'left',
      tooltip: '设置卡片的对齐方式。',
      required: false,
      options: [
        {value: 'left', label: '左对齐'},
        {value: 'center', label: '居中'},
        {value: 'right', label: '右对齐'},
      ],
    },
    {
      type: 'radio',
      field: 'parity',
      label: '奇偶背景',
      initval: wrap.parity || 'false',
@@ -169,15 +156,15 @@
        {value: 'true', label: '有'},
      ],
    },
    {
      type: 'number',
      field: 'printHeight',
      label: '换算高度',
      initval: wrap.printHeight || '',
      tooltip: '当前数据卡高度相当于几条数据。',
      required: false,
      forbid: MenuType !== 'billPrint'
    },
    // {
    //   type: 'number',
    //   field: 'printHeight',
    //   label: '换算高度',
    //   initval: wrap.printHeight || '',
    //   tooltip: '当前数据卡高度相当于几条数据。',
    //   required: false,
    //   forbid: MenuType !== 'billPrint'
    // },
    {
      type: 'radio',
      field: 'empty',
@@ -212,16 +199,47 @@
      required: false
    },
    {
      type: 'number',
      field: 'minWidth',
      label: '最小宽度',
      min: 0,
      max: 5000,
      precision: 0,
      initval: wrap.minWidth,
      tooltip: '设置卡片区域的最小宽度,显示区域小于此值将出现横向滚动。',
      required: false
    },
    {
      type: 'number',
      field: 'zHeight',
      label: '高度',
      min: 10,
      max: 5000,
      precision: 0,
      initval: wrap.zHeight,
      tooltip: '卡片区域高度,内容超出时纵向滚动。注:小于等于100时为高度的百分比,第一个扩展属性卡将定位在顶部。',
      required: false,
      forbid: appType === 'mob'
    },
    {
      type: 'color',
      field: 'zBColor',
      label: '边框颜色',
      initval: wrap.zBColor || 'transparent',
      tooltip: '卡片区域设置高度或最小宽度时,滚动区域边框的颜色。',
      required: false
    },
    {
      type: 'radio',
      field: 'permission',
      label: '权限验证',
      initval: wrap.permission || 'false',
      initval: wrap.permission || (!appType ? 'true' : 'false'),
      required: false,
      options: [
        {value: 'true', label: '启用'},
        {value: 'false', label: '禁用'},
      ],
      forbid: !appType || sessionStorage.getItem('editMenuType') === 'popview'
      forbid: sessionStorage.getItem('editMenuType') === 'popview'
    },
    {
      type: 'multiselect',