columns.js 837 Bytes
Newer Older
TZW's avatar
TZW committed
1 2
function getcolumns(setdrawer) {
  return [
TZW's avatar
TZW committed
3 4 5 6 7 8 9 10 11
    {
      title: '单号类型',
      dataIndex: 'noTypeName',
      key: 'noTypeId',
      valueType: 'select',
      options: { path: '/base/bmNoType/queryAllSelect', params: {} },
      formItemProps: {
        rules: [
          {
TZW's avatar
TZW committed
12
            required: true,
TZW's avatar
TZW committed
13 14 15 16 17
            message: '此项为必填项',
          },
        ],
      },
    },
TZW's avatar
TZW committed
18 19 20 21
    {
      title: '预览',
      dataIndex: 'ruleNames',
      key: 'ruleNames',
TZW's avatar
TZW committed
22
      search: false,
TZW's avatar
TZW committed
23
      formItemProps: { rules: [{ required: true, message: '此项为必填项' }] },
wuhao's avatar
wuhao committed
24 25 26 27 28 29
      hideInForm: true,
    },
    {
      title: '规则配置',
      dataIndex: 'nrList',
      hideInTable: true,
TZW's avatar
TZW committed
30
      search: false,
wuhao's avatar
wuhao committed
31 32 33 34
      valueType: 'diyrules',
      colProps: {
        span: 24,
      },
TZW's avatar
TZW committed
35 36 37 38 39
    },
  ];
}

export default getcolumns;