king
2025-04-16 6ffa9ed530f4b04af6b8dfc58cd526d53e7c9c1a
src/menu/components/form/formaction/formconfig.jsx
@@ -509,7 +509,8 @@
      initVal: card.syncComponent,
      tooltip: '执行成功后(或执行失败且存在刷新项时)需要刷新的组件。注:选择当前组件的上级组件无效,刷新上级组件请选择成功后“刷新上级组件 - 行”。',
      required: false,
      options: modules
      options: modules.length ? [...modules, {value: 'multiComponent', label: '多组件'}] : []
      // options: modules
    },
    {
      type: 'number',
@@ -577,6 +578,28 @@
        value: 'true',
        text: '刷新'
      }]
    },
    {
      type: 'table',
      key: 'syncComponents',
      label: '组件列表',
      initVal: card.syncComponents || [],
      required: true,
      actions: ['edit', 'del', 'add', 'move'],
      columns: [
        {
          title: '组件',
          dataIndex: 'syncComId',
          inputType: 'cascader',
          editable: true,
          unique: true,
          required: true,
          extends: [{key: 'label', value: 'label'}],
          width: '70%',
          render: (text, record) => record.label,
          options: modules
        }
      ]
    }
  ]
}