columns.js 805 Bytes
Newer Older
wuhao's avatar
wuhao committed
1
function getcolumns(setdrawer) {
TZW's avatar
TZW committed
2 3 4 5 6
  return [
    {
      title: '故障类型',
      dataIndex: 'faultType',
      key: 'faultType',
TZW's avatar
TZW committed
7 8 9 10 11 12 13 14
      formItemProps: {
        rules: [
          {
            required: true,
            message: '此项为必填项',
          },
        ],
      },
TZW's avatar
TZW committed
15 16
    },
    {
TZW's avatar
TZW committed
17
      title: '故障类型代码',
TZW's avatar
TZW committed
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
      dataIndex: 'faultCode',
      key: 'faultCode',
    },
    {
      title: '设备类型',
      dataIndex: 'equipmentTypeName',
      key: 'equipmentTypeId',
      valueType: 'treeSelect',
      options: {
        path: '/asset/equipmentType/queryTreeList',
        params: {},
      },
    },
    {
      title: '备注',
      dataIndex: 'remark',
      key: 'remark',
      valueType: 'textarea',
TZW's avatar
TZW committed
36
      search: false,
TZW's avatar
TZW committed
37 38 39 40
    },
  ];
}
export default getcolumns;