king
2021-06-22 29432c9167e3fcdf83f35d0bb9dbe9acb7c7ffbf
src/menu/components/share/actioncomponent/formconfig.jsx
@@ -198,7 +198,7 @@
      label: '链接方式',
      initVal: card.open || 'blank',
      required: true,
      forbid: !isApp,
      forbid: sessionStorage.getItem('appType') === 'pc',
      options: [{
        value: 'blank',
        text: '新窗口'
@@ -520,19 +520,19 @@
      type: 'select',
      key: 'controlField',
      label: '控制字段',
      tooltip: '显示控制字段,可根据行数据控制按钮是否显示。',
      tooltip: '禁用控制字段,可根据数据控制按钮是否禁用。',
      initVal: card.controlField || '',
      required: false,
      forbid: card.$type !== 'tableButton',
      // forbid: card.$type !== 'tableButton',
      options: [{label: '无', field: ''}, ...columns]
    },
    {
      type: 'text',
      key: 'controlVal',
      label: '控制值',
      tooltip: '当选择控制字段,且字段值与控制值相等时,按钮会隐藏,多个值用逗号分隔。',
      tooltip: '当选择控制字段,且字段值与控制值相等时,按钮会禁用,多个值用逗号分隔。',
      initVal: card.controlVal || '',
      forbid: card.$type !== 'tableButton',
      // forbid: card.$type !== 'tableButton',
      required: false
    }
  ]