Newer
Older
garbageClassificationFront / mock / sanitation / device.js
StephanieGitHub on 7 May 2021 3 KB first commit
const wastebinList = [
  { code: '45524', name: '垃圾桶1号', position: '高级小区', lng: '116.4', lat: '39.9', type: '1', typeName: '可回收垃圾桶', responsiblePerson: '张三', responsiblePersonTel: '13005482554', ts: '2020-01', notes: '无' },
  { code: '45525', name: '垃圾桶2号', position: '高级小区', lng: '116.4', lat: '39.9', type: '1', typeName: '可回收垃圾桶', responsiblePerson: '张三', responsiblePersonTel: '13005482554', ts: '2020-01', notes: '' },
  { code: '45526', name: '垃圾桶3号', position: '高级小区', lng: '116.4', lat: '39.9', type: '1', typeName: '可回收垃圾桶', responsiblePerson: '张三', responsiblePersonTel: '13005482554', ts: '2020-01', notes: '' }
]
const toiletList = [
  { code: '45524', name: '公厕1号', position: '大马路', lng: '116.4', lat: '39.9', owner: '环卫局', responsiblePerson: '张三', responsiblePersonTel: '13005482554', area: '24', ts: '2020-01', notes: '无' },
  { code: '45525', name: '公厕2号', position: '大马路', lng: '116.4', lat: '39.9', owner: '环卫局', responsiblePerson: '张三', responsiblePersonTel: '13005482554', area: '24', ts: '2020-01', notes: '' },
  { code: '45526', name: '公厕3号', position: '大马路', lng: '116.4', lat: '39.9', owner: '环卫局', responsiblePerson: '张三', responsiblePersonTel: '13005482554', area: '24', ts: '2020-01', notes: '' }
]
const transferstationList = [
  { code: '45524', name: '垃圾中转站1号', position: '马路边', lng: '116.4', lat: '39.9', owner: '环卫局', area: '25', capacity: '125', responsiblePerson: '张三', responsiblePersonTel: '13005482554', ts: '2020-01', notes: '无' },
  { code: '45525', name: '垃圾中转站2号', position: '马路边', lng: '116.4', lat: '39.9', owner: '环卫局', area: '25', capacity: '125', responsiblePerson: '张三', responsiblePersonTel: '13005482554', ts: '2020-01', notes: '' },
  { code: '45526', name: '垃圾中转站3号', position: '马路边', lng: '116.4', lat: '39.9', owner: '环卫局', area: '25', capacity: '125', responsiblePerson: '张三', responsiblePersonTel: '13005482554', ts: '2020-01', notes: '' }
]
const carList = [
  { carNumber: '赣C1475', name: '车辆1号', type: '1', typeName: '中型车', engine: '1542', useCompany: 'A公司', brand: 'A8L', capacity: '5', usePerson: '李四', usePersonTel: '131455145832', responsiblePerson: '张三', responsiblePersonTel: '13005482554', buyDate: '2020-01', registerDate: '2020-10', notes: '无' },
  { carNumber: '赣C1475', name: '车辆2号', type: '1', typeName: '中型车', engine: '1542', useCompany: 'A公司', brand: 'A8L', capacity: '5', usePerson: '李四', usePersonTel: '131455145832', responsiblePerson: '张三', responsiblePersonTel: '13005482554', buyDate: '2020-01', registerDate: '2020-10', notes: '' },
  { carNumber: '赣C1475', name: '车辆3号', type: '1', typeName: '中型车', engine: '1542', useCompany: 'A公司', brand: 'A8L', capacity: '5', usePerson: '李四', usePersonTel: '131455145832', responsiblePerson: '张三', responsiblePersonTel: '13005482554', buyDate: '2020-01', registerDate: '2020-10', notes: '' }
]
export default [
  {
    url: '/wastebin/listPage',
    type: 'get',
    response: _ => {
      return {
        code: 200,
        data: {
          rows: wastebinList,
          total: 5
        }
      }
    }
  },
  {
    url: '/toilet/listPage',
    type: 'get',
    response: _ => {
      return {
        code: 200,
        data: {
          rows: toiletList,
          total: 5
        }
      }
    }
  },
  {
    url: '/transferstation/listPage',
    type: 'get',
    response: _ => {
      return {
        code: 200,
        data: {
          rows: transferstationList,
          total: 5
        }
      }
    }
  },
  {
    url: '/car/listPage',
    type: 'get',
    response: _ => {
      return {
        code: 200,
        data: {
          rows: carList,
          total: 5
        }
      }
    }
  }
]