let raw = {
  model: [
    {
      prop: "idx",
      label: "编号",
    },
    {
      prop: "name",
      label: "标题",
    },
    {
      prop: "thumb",
      label: "封面图片",
    },
    {
      prop: "createTime",
      label: "提交时间",
    },
  
    {
      prop: "display",
      label: "是否显示"
    },
  ],
  img:[
    {
      prop: "idx",
      label: "编号",
    },
    {
      prop: "name",
      label: "标题",
    },
    {
      prop: "thumb",
      label: "封面图片",
    },
    {
      prop: "createTime",
      label: "提交时间",
    },

    {
      prop: "display",
      label: "是否显示"
    },
  ],
  video:[
    {
      prop: "idx",
      label: "编号",
    },
    {
      prop: "name",
      label: "标题",
    },
    {
      prop: "thumb",
      label: "封面图片",
    },
    {
      prop: "createTime",
      label: "提交时间",
    },
    
    {
      prop: "display",
      label: "是否显示"
    },
  ],
  audio:[
    {
      prop: "idx",
      label: "编号",
    },
    {
      prop: "name",
      label: "标题",
    },
    {
      prop: "thumb",
      label: "封面图片",
    },
    {
      prop: "createTime",
      label: "提交时间",
    },
    
    {
      prop: "display",
      label: "是否显示"
    },
  ]
}

let menu = [
  {
    id: 'model',
    name: "模型管理",
  },
  {
    id: 'img',
    name: "图文管理",
  },
  {
    id: 'video',
    name: "视频管理",
  },
  {
    id: 'audio',
    name: "音频管理",
  },
];

let formKey = {
  model:{ 
    name:'',
    thumb:'',
    filePath:'',
    display: false,
    zone: 1
  },
  img:{ 
    name:'',
    thumb:'',
    filePath:'',
    display: false,
    indexId:'',
    zone: 1
  },
  video:{ 
    name:'',
    thumb:'',
    filePath:'',
    display: false,
    zone: 1
  },
  audio:{ 
    name:'',
    thumb:'',
    filePath:'',
    display: false,
    zone: 1
  }
}

let rules = {
  model:{
    name: [{ required: true, message: "请输入标题", trigger: "blur" }],
    thumb: [{ required: true, message: "请上传封面图片", trigger: "change" }],
    filePath: [{ required: true, message: "请上传模型文件", trigger: "change" }]
  },
  img:{ 
    name: [{ required: true, message: "请输入标题", trigger: "blur" }],
    thumb: [{ required: true, message: "请上传图片", trigger: "change" }],
    filePath: [{ required: true, message: "请上传图片", trigger: "change" }]
  },
  video:{ 
    name: [{ required: true, message: "请输入标题", trigger: "blur" }],
    thumb: [{ required: true, message: "请上传封面图片", trigger: "change" }],
    filePath: [{ required: true, message: "请上传视频文件", trigger: "change" }]
  },
  audio:{ 
    name: [{ required: true, message: "请输入标题", trigger: "blur" }],
    thumb: [{ required: true, message: "请上传封面图片", trigger: "change" }],
    filePath: [{ required: true, message: "请上传音频文件", trigger: "change" }]
  }
}


let menuStr = {
  'model':'模型',
  'img':'图片',
  'video':'视频',
  'audio':'音频',
}


export {
  raw,
  formKey,
  menu,
  rules,
  menuStr
}