const rules = {
  name: [
    { required: true, message: "请输入店铺名称", trigger: "change" },
  ],
    image: [
    { required: true, message: "请上传店铺主图", trigger: "change" },
  ],
  area: [{ required: true, message: "请输入会议面积", trigger: "change" }],
  length: [{ required: true, message: "请输入会议长度", trigger: "change" }],
  capacity: [{ required: true, message: "请输入容纳人数", trigger: "change" }],
  price: [{ required: true, message: "请输入参考价", trigger: "change" }],

};

const formItem = {
  id: "",
  image:
  "http://hwpro.test241.wanyuhengtong.com/storage/default/20230607/6c4b040420fb5a1d01837d0f120d60ec5c92ea62.jpg",
  name: "测试会议室",
  area: "412",
  length: "3.9",
  capacity: "300",
  price: "20000",
};
const columns = [
  {
    prop:'index',
    label:'顺序',
    type:"index"
  },
  {
    prop:'image',
    label:'图片',
    _slot_: "image",
  },
  {
    prop:'name',
    label:'名称',
  },
  {
    prop:'area',
    label:'面积(m²)',
 
  },
  {
    prop:'length',
    label:'长度(m)',
 
  },
  {
    prop:"capacity",
    label:'容纳人数(人)',
  
  },
  {
    prop:"price",
    label:'参考价(元)',
   
  },

  {
    prop: "create_time",
    label: "创建时间",
    width: "145",
  },
  {
    prop: "",
    label: "操作",
    _add_: true,
    fixed: "right",
    width: "100",
    _noset_: true,
    _slot_: "operation",
  },
];
const parmValue = {
  page: 1, // 页码
  size: 999999, // 每页显示条数
  limit: 999999,
};

export { formItem, columns, rules, parmValue };
