export const columns = [
    {
      title: '资源编号',
      dataIndex: 'resourceNumber',
      width: 200,
    },
    {
        title: '资源名称',
        dataIndex: 'resourceName',
        width: 200,
      },
      {
        title: '坐标系名称',
        dataIndex: 'coordinateName',
        width: 200,
      },
      {
        title: '资源标签',
        dataIndex: 'resourceTags',
        width: 200,
      },
      {
        title: '发布人',
        dataIndex: 'publisher',
        width: 200,
      },
      {
        title: '发布时间',
        dataIndex: 'publisherTime',
        width: 200,
      },
      {
        title: '审核状态',
        dataIndex: 'auditStatus',
        width: 200,
      },
      {
        title: '审核人',
        dataIndex: 'reviewer',
        width: 200,
      },
      {
        title: '审核时间',
        dataIndex: 'reviewTime',
        width: 200,
      },
];

export const searchFormSchema = [
    {
        field: 'resourceTags',
        label: '资源标签',
        component: 'Select',
        componentProps: {
          options: [
            { label: '无', value: 0 },
          ],
        },
        colProps: { span: 6 },
      },
    {
        field: 'resourceName',
        label: '资源名称',
        component: 'Input',
        colProps: { span: 6 },
        componentProps: {
            maxLength: 255,
        },
    },
    {
        field: 'auditStatus',
        label: '审核状态',
        component: 'Select',
        componentProps: {
          options: [
            { label: '审核不通过', value: 2 },
            { label: '审核中', value: 1 },
            { label: '审核通过', value: 0 },
          ],
        },
        colProps: { span: 6 },
      },
]

// 新增表单配置
export const accountFormSchema = [
  {
    field: 'title',
    label: '',
    slot: 'title',
    component: 'Input',
  },
  {
    field: 'id',
    label: 'id',
    component: 'Input',
    show: false,
    componentProps: {
      maxLength: 36,
    },
  },
  {
    field: 'parentId',
    label: '服务类型',
    required: true,
    component: 'TreeSelect',
    colProps: { span: 12 },
    componentProps: {
      replaceFields: {
        title: 'name',
        key: 'id',
        value: 'id',
      },
      maxTagCount: 10,
      getPopupContainer: () => document.body,
    },
  },
  {
    field: 'parentId',
    label: '系统标签',
    required: true,
    component: 'TreeSelect',
    colProps: { span: 12 },
    componentProps: {
      replaceFields: {
        title: 'name',
        key: 'id',
        value: 'id',
      },
      maxTagCount: 10,
      getPopupContainer: () => document.body,
    },
  },
{
  field: 'lymc',
  label: '数据版本',
  component: 'Input',
  colProps: { span: 12 },
  componentProps: {
    placeholder: '请输入',
  },
},
{
  field: 'lymc',
  label: '运行状态',
  component: 'Input',
  colProps: { span: 12 },
  componentProps: {
    placeholder: '请输入',
  },
},
{
  field: 'lymc',
  label: '资源描述',
  component: 'Input',
  colProps: { span: 24 },
  componentProps: {
    placeholder: '请输入',
  },
},
{
  field: 'parentId',
  label: '责任处室',
  required: true,
  component: 'TreeSelect',
  colProps: { span: 12 },
  componentProps: {
    replaceFields: {
      title: 'name',
      key: 'id',
      value: 'id',
    },
    maxTagCount: 10,
    getPopupContainer: () => document.body,
  },
},
{
  field: 'lymc',
  label: '保管单位',
  component: 'TreeSelect',
  colProps: { span: 12 },
  componentProps: {
    replaceFields: {
      title: 'name',
      key: 'id',
      value: 'id',
    },
    maxTagCount: 10,
    getPopupContainer: () => document.body,
  },
},  {
  field: 'lymc',
  label: '密级',
  component: 'TreeSelect',
  colProps: { span: 12 },
  componentProps: {
    replaceFields: {
      title: 'name',
      key: 'id',
      value: 'id',
    },
    maxTagCount: 10,
    getPopupContainer: () => document.body,
  },
},  {
  field: 'lymc',
  label: '坐标系',
  component: 'TreeSelect',
  colProps: { span: 12 },
  componentProps: {
    replaceFields: {
      title: 'name',
      key: 'id',
      value: 'id',
    },
    maxTagCount: 10,
    getPopupContainer: () => document.body,
  },
},
{
  field: 'lymc',
  label: '数据范围',
  component: 'Input',
  colProps: { span: 12 },
  componentProps: {
    placeholder: '请输入',
  },
},
{
  field: 'lymc',
  label: '数据来源',
  component: 'Input',
  colProps: { span: 12 },
  componentProps: {
    placeholder: '请输入',
  },
},
{
  field: 'lymc',
  label: 'EPSC CODE',
  component: 'Input',
  colProps: { span: 24 },
  componentProps: {
    placeholder: '请输入',
  },
},

{
  field: 'sjms',
  label: '备注:',
  component: 'InputTextArea',
  colProps: { span: 24 },
  componentProps: {
    maxLength: 255,
    placeholder: '请输入备注',
  },
},

{
  field: 'status',
  label: "是否公开", //状态
  component: 'RadioButtonGroup',
  colProps: { span: 8 },
  defaultValue: '0',
  componentProps: {
    options: [
      { label: "是", value: '0' }, //启用
      { label:"否", value: '1' }, //禁用
    ],
  },
},

{
  field: 'status',
  label: "是否共享", //状态
  component: 'RadioButtonGroup',
  colProps: { span: 8 },
  defaultValue: '0',
  componentProps: {
    options: [
      { label: "是", value: '0' }, //启用
      { label:"否", value: '1' }, //禁用
    ],
  },
},

{
  field: 'status',
  label: "是否展开", //状态
  component: 'RadioButtonGroup',
  colProps: { span: 8 },
  defaultValue: '0',
  componentProps: {
    options: [
      { label: "是", value: '0' }, //启用
      { label:"否", value: '1' }, //禁用
    ],
  },
},

{
  field: 'file',
  label: '上传附件',
  slot: 'upload',
  required: true,
  component: 'Input',
  // componentProps: {
  //   maxLength: 255,
  // },
},
]


// 新增表单配置
export const accountFormSchema2 = [
  {
    field: 'title',
    label: '',
    slot: 'title',
    component: 'Input',
  },
  {
    field: 'id',
    label: 'id',
    component: 'Input',
    show: false,
    componentProps: {
      maxLength: 36,
    },
  },
]