function getcolumns(setdrawer) {
  return [
    {
      title: '设备类型',
      dataIndex: 'title',
      key: 'title',
      formItemProps: {
        rules: [
          {
            required: true,
            message: '此项为必填项',
          },
        ],
      },
    },
    {
      title: '上级类型',
      // dataIndex: 'parentId',
      dataIndex: 'parentKey',
      key: 'parentKey',
      hideInTable: true,
      // hideInForm: true,
      formItemProps: {
        rules: [
          {
            required: false,
            message: '此项为必填项',
          },
        ],
      },
      fieldProps: {
        placeholder: '请输入',
        disabled: true,
      },
      search: false,
    },
    {
      title: '备注',
      dataIndex: 'remark',
      formItemProps: {
        rules: [
          {
            required: false,
            message: '此项为必填项',
          },
        ],
      },

      search: false,
    },
  ];
}

export default getcolumns;
