columns.js 1.21 KB
Newer Older
wuhao's avatar
wuhao committed
1 2 3
function getcolumns(setdrawer) {
  return [
    {
TZW's avatar
TZW committed
4 5
      title: '组织名称',
      dataIndex: 'title',
TZW's avatar
TZW committed
6
      width: 180,
TZW's avatar
TZW committed
7
      key: 'departmentName',
wuhao's avatar
wuhao committed
8 9 10
      formItemProps: {
        rules: [
          {
TZW's avatar
TZW committed
11
            required: true,
wuhao's avatar
wuhao committed
12 13 14 15 16 17
            message: '此项为必填项',
          },
        ],
      },
    },
    {
TZW's avatar
TZW committed
18
      title: '组织类型',
TZW's avatar
TZW committed
19
      width: 180,
TZW's avatar
TZW committed
20 21 22
      dataIndex: 'departmentTypeName',
      key: 'departmentTypeName',
      valueType: 'input',
wuhao's avatar
wuhao committed
23
      search: false,
TZW's avatar
TZW committed
24 25 26
      fieldProps: {
        disabled: true,
      },
wuhao's avatar
wuhao committed
27 28
    },
    {
TZW's avatar
TZW committed
29
      title: '组织代码',
TZW's avatar
TZW committed
30
      width: 180,
TZW's avatar
TZW committed
31 32
      dataIndex: 'departmentCode',
      key: 'departmentCode',
wuhao's avatar
wuhao committed
33 34 35 36 37 38 39 40 41 42
      formItemProps: {
        rules: [
          {
            required: false,
            message: '此项为必填项',
          },
        ],
      },
    },
    {
TZW's avatar
TZW committed
43
      title: '上级组织',
TZW's avatar
TZW committed
44
      width: 180,
TZW's avatar
TZW committed
45 46
      dataIndex: 'parentKey',
      key: 'parentKey',
wuhao's avatar
wuhao committed
47 48 49 50 51 52 53 54 55
      formItemProps: {
        rules: [
          {
            required: false,
            message: '此项为必填项',
          },
        ],
      },
      fieldProps: {
TZW's avatar
TZW committed
56 57
        placeholder: '请输入',
        disabled: true,
wuhao's avatar
wuhao committed
58
      },
TZW's avatar
TZW committed
59
      search: false,
wuhao's avatar
wuhao committed
60 61 62 63 64
    },
  ];
}

export default getcolumns;