export const modeType = [
  { value: "xf", label: "消防自动报警系统" },
  { value: "cs", label: "厂商系统" },
  { value: "spjk", label: "视频监控系统" }
]

export const modeTypeForm = {
  xf: [
    { label: "厂商ID", prop: "csid", type: "input" },
    { label: "所属地市州代码", prop: "ssszdm", type: "input" },
    { label: "系统ID", prop: "wlpzbsbid", type: "input" },
    { label: "系统类型", prop: "xtlx", type: "input" },
    { label: "用传源地址", prop: "ydz", type: "input" },
    { label: "用传目标地址", prop: "mbdz", type: "input" },
    { label: "数据单元标识符", prop: "sjdybsf", type: "input" },
    { label: "状态", prop: "yxjlzt", type: "input" },
    { label: "部件类型", prop: "bjlx", type: "input" },
    { label: "部件地址", prop: "bjdz", type: "input" },
    { label: "部件编码", prop: "bjbm", type: "input" },
    { label: "分区号", prop: "ssfq", type: "input" },
    { label: "回路号", prop: "sshl", type: "input" },
    { label: "部件说明", prop: "bjsm", type: "input" },
    { label: "模拟量值", prop: "mllz", type: "input" },
    { label: "模拟量单位", prop: "mlldw", type: "input" },
    { label: "时间戳", prop: "sjc", type: "date", format: "yyyy-MM-dd HH:mm:ss" }
  ],
  cs: [
    { label: "厂商ID", prop: "djmy", type: "input" },
    // { label: "时间戳", prop: "sjc", type: "date", format: "yyyy-MM-dd HH:mm:ss" }
  ],
  spjk: [
    { label: "厂商ID", prop: "csid", type: "input" },
    { label: "所属地市州代码", prop: "ssszdm", type: "input" },
    { label: "摄像头注册代码", prop: "zcdm", type: "input" },
    { label: "告警类型", prop: "gjlx", type: "input" },
    { label: "告警类型名称", prop: "gjlxmc", type: "input" },
    { label: "告警时间", prop: "gjsj", type: "date", format: "yyyy-MM-dd HH:mm:ss" },
    { label: "告警信息", prop: "gjxx", type: "input" },
    { label: "附件（多个）", prop: "fj", type: "file" }
  ]
}

export const API = {
  xf: {
    submit: "/mosty-wljc/sbglXfbj/validateRecord",
    method: "post"
  },
  cs: {
    submit: "/mosty-wljc/djcs/existByDjmy",
    method: "get"
  }
}

