/*
 *    Copyright (c) 2018-2025, cyweb All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 *
 */

export const stateList=[
  {
    label:'已检查',
    value:'1'
  },
  {
    label:'未检查',
    value:'0'
  }
]
export const tableOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  editBtn: false,
  delBtn: false,
  addBtn: false,
  dic: [],
  column: [

    {
        label: '设备名称',
        prop: 'assetId',
        search: true,
        type:"select",
        dicUrl: '/asset/checkdevice/list',
        props: {
          label: 'goodsName',
          value: 'id'
        },
        rules: [{
          required: true,
          message: '资产名称不能为空',
          trigger: 'blur'
        }]
    },
    {
      label: '学院',
      prop: 'deptCode',
      search: true,
      type:"select",
      dicUrl: '/basic/basicdept/getDeptList?secondFlag=1',
      editDisabled: true,
      editDisplay: false,
      addDisplay: false,
      props: {
        label: 'deptName',
        value: 'deptCode'
      },
      rules: [{
        required: true,
        message: '学院不能为空',
        trigger: 'blur'
      }]
    },
    {
      label: '所属区域',
      prop: 'buildId',
      type:"select",
      dicUrl: '/asset/checkbuilding/list',
      props:{
        label:'areaName',
        value:'id'
      },
      rules: [{
        required: true,
        message: '所属区域不能为空',
        trigger: 'blur'
      }],
      formSlot:true,
      // editDisabled: true,
      // editDisplay: false,
      // addDisplay: false,
    },
    {
      label: '检查时间',
      prop: 'createTime',
      type: 'datetime',
      format: 'yyyy-MM-dd HH:mm:ss',
      valueFormat: 'yyyy-MM-dd HH:mm:ss',
      rules: [{
        required: true,
        message: '检查时间时间不能为空',
        trigger: 'blur'
      }]
    },

	  {
      label: '检查情况图片',
      prop: 'imgs',
      slot: true,
      formslot: true,
      addDisplay:false,
      editDisplay:false,
      rules: [{
        required: true,
        message: '账号不能为空',
        trigger: 'blur'
      }]
    },
	  // {
    //   label: '是否检查',
    //   prop: 'state',
    //   type: 'select',
    //   search:true,
    //   dicData: stateList,
    //   rules: [{
    //     required: true,
    //     message: '类型不能为空',
    //     trigger: 'blur'
    //   }]
    // },
    {
      label: '备注',
      prop: 'remark',
      type: 'textarea',
    },
  ]
}
