/*
 * @Author: tengmingxue 1473375109@qq.com
 * @Date: 2023-08-28 21:12:52
 * @LastEditors: tengmingxue 1473375109@qq.com
 * @LastEditTime: 2023-09-24 19:26:33
 * @FilePath: \xld-gis-admin\src\views\dataAdmin\dataAdmin\configProcess\configData.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */


export const columns = [
  {
    title: '流程业务',
    dataIndex: 'FLOWNAME',
  },
  {
    title: '版本',
    dataIndex: 'VERSION',
  },
  {
    title: '启用状态',
    dataIndex: 'STATUS',
    slots: { customRender: 'status' },
  },
  {
    title: '操作人',
    dataIndex: 'USERNAME',
  },
  {
    title: '操作时间',
    dataIndex: 'CREATETIME',
    slots: { customRender: 'pdate' },
  }
];

export const searchFormSchema = [
  {
    field: 'status',
    label: '启动状态',
    component: 'Select',
    componentProps: {
      options:
        [
          { label: '启用', value: 1 },
          { label: '停用', value: 0 },
        ],
    },
    colProps: { span: 6 },
  },
  {
    field: 'processName',
    label: '流程名称',
    component: 'Input',
    colProps: { span: 6 },
    componentProps: {
      maxLength: 255,
    },
  },
]

// 新增表单配置
export const accountFormSchema = []


// 新增表单配置
export const accountFormSchema2 = []

/**
 * 业务类型
*/
export const busType = [
  { value: '0', label: '地图资源上传' },
  { value: '1', label: '场景资源上传' },
  { value: '2', label: '文件资源上传' },
  { value: '3', label: '组件资源上传' },
  { value: '4', label: '地图资源授权' },
  { value: '5', label: '场景资源授权' },
  { value: '6', label: '文件资源授权' },
  { value: '7', label: '组件资源授权' },
  { value: '8', label: '接口授权' },
]

/**
 * 流程步骤字段
*/
export const stepColumns = [
  {
    title: '步骤序号',
    dataIndex: 'xh',
    width: '24%',
    align:'center',
  },
  {
    title: '步骤名称',
    dataIndex: 'name',
    width: '56%',
    align:'center',
  },
  {
    title: '操作',
    dataIndex: 'operation',
    width: '20%',
    align:'center',
    slots: { customRender: 'operation' },
  },
];
