Newer
Older
smartwell_front / mock / deviceManage / device.js
const deviceList = [
  {
    'bfzt': '0',
    'bfztName': '撤防',
    'communication': '3,4',
    'concenCode': '',
    'concenId': '',
    'deptName': '燃气集团总公司',
    'deptid': '24',
    'installHeight': '123',
    'devcode': '342021000001',
    'deviceName': '',
    'deviceType': '12',
    'deviceTypeName': '开挖监测仪',
    'id': '1476131375777120257',
    'installDate': '2021-12-29',
    'modelId': '19',
    'modelName': 'BIRMM-RTU100N',
    'onlineState': '1',
    'onlineStateName': '在线',
    'position': 'test001位置',
    'ts': '2021-12-29',
    'valid': '1',
    'watchType': '燃气泄漏',
    'wellCode': 'test001',
    'wellId': '4453'
  },
  {
    'bfzt': '0',
    'bfztName': '撤防',
    'communication': '3,4',
    'concenCode': '',
    'concenId': '',
    'deptName': '燃气集团总公司',
    'deptid': '24',
    'installHeight': '123',
    'devcode': '342021000001',
    'deviceName': '',
    'deviceType': '12',
    'deviceTypeName': '井盖状态监测仪',
    'id': '1476131375777120257',
    'installDate': '2021-12-29',
    'modelId': '19',
    'modelName': 'BIRMM-RTU100N',
    'onlineState': '1',
    'onlineStateName': '在线',
    'position': 'test001位置',
    'ts': '2021-12-29',
    'valid': '1',
    'watchType': '燃气泄漏',
    'wellCode': 'test001',
    'wellId': '4453'
  },
  {
    'bfzt': '0',
    'bfztName': '撤防',
    'communication': '3,4',
    'concenCode': '',
    'concenId': '',
    'deptName': '燃气集团总公司',
    'deptid': '24',
    'installHeight': '123',
    'devcode': '342021000001',
    'deviceName': '',
    'deviceType': '12',
    'deviceTypeName': '液位监测仪',
    'id': '1476131375777120257',
    'installDate': '2021-12-29',
    'modelId': '19',
    'modelName': 'BIRMM-RTU100N',
    'onlineState': '1',
    'onlineStateName': '在线',
    'position': 'test001位置',
    'ts': '2021-12-29',
    'valid': '1',
    'watchType': '燃气泄漏',
    'wellCode': 'test001',
    'wellId': '4453'
  },
  {
    'bfzt': '0',
    'bfztName': '撤防',
    'communication': '3,4',
    'concenCode': '',
    'concenId': '',
    'deptName': '燃气集团总公司',
    'deptid': '24',
    'installHeight': '123',
    'devcode': '342021000001',
    'deviceName': '',
    'deviceType': '12',
    'deviceTypeName': '燃气智能监测终端',
    'id': '1476131375777120257',
    'installDate': '2021-12-29',
    'modelId': '19',
    'modelName': 'BIRMM-RTU100N',
    'onlineState': '1',
    'onlineStateName': '在线',
    'position': 'test001位置',
    'ts': '2021-12-29',
    'valid': '1',
    'watchType': '燃气泄漏',
    'wellCode': 'test001',
    'wellId': '4453'
  },
  {
    'bfzt': '0',
    'bfztName': '撤防',
    'communication': '3,4',
    'concenCode': '',
    'concenId': '',
    'deptName': '燃气集团总公司',
    'deptid': '24',
    'installHeight': '123',
    'devcode': '342021000001',
    'deviceName': '',
    'deviceType': '12',
    'deviceTypeName': '噪声记录仪',
    'id': '1476131375777120257',
    'installDate': '2021-12-29',
    'modelId': '19',
    'modelName': 'BIRMM-RTU100N',
    'onlineState': '1',
    'onlineStateName': '在线',
    'position': 'test001位置',
    'ts': '2021-12-29',
    'valid': '1',
    'watchType': '燃气泄漏',
    'wellCode': 'test001',
    'wellId': '4453'
  },
  {
    'bfzt': '0',
    'bfztName': '撤防',
    'communication': '3,4',
    'concenCode': '',
    'concenId': '',
    'deptName': '燃气集团总公司',
    'deptid': '24',
    'installHeight': '123',
    'devcode': '342021000001',
    'deviceName': '',
    'deviceType': '12',
    'deviceTypeName': '有害气体监测仪',
    'id': '1476131375777120257',
    'installDate': '2021-12-29',
    'modelId': '19',
    'modelName': 'BIRMM-RTU100N',
    'onlineState': '1',
    'onlineStateName': '在线',
    'position': 'test001位置',
    'ts': '2021-12-29',
    'valid': '1',
    'watchType': '燃气泄漏',
    'wellCode': 'test001',
    'wellId': '4453'
  },
  {
    'bfzt': '0',
    'bfztName': '撤防',
    'communication': '3,4',
    'concenCode': '',
    'concenId': '',
    'deptName': '燃气集团总公司',
    'deptid': '24',
    'installHeight': '123',
    'devcode': '342021000001',
    'deviceName': '',
    'deviceType': '12',
    'deviceTypeName': '温湿度监测仪',
    'id': '1476131375777120257',
    'installDate': '2021-12-29',
    'modelId': '19',
    'modelName': 'BIRMM-RTU100N',
    'onlineState': '1',
    'onlineStateName': '在线',
    'position': 'test001位置',
    'ts': '2021-12-29',
    'valid': '1',
    'watchType': '燃气泄漏',
    'wellCode': 'test001',
    'wellId': '4453'
  },
  {
    'bfzt': '0',
    'bfztName': '撤防',
    'communication': '3,4',
    'concenCode': '',
    'concenId': '',
    'deptName': '燃气集团总公司',
    'deptid': '24',
    'installHeight': '123',
    'devcode': '342021000001',
    'deviceName': '',
    'deviceType': '12',
    'deviceTypeName': '井盖定位监测仪',
    'id': '1476131375777120257',
    'installDate': '2021-12-29',
    'modelId': '19',
    'modelName': 'BIRMM-RTU100N',
    'onlineState': '1',
    'onlineStateName': '在线',
    'position': 'test001位置',
    'ts': '2021-12-29',
    'valid': '1',
    'watchType': '燃气泄漏',
    'wellCode': 'test001',
    'wellId': '4453'
  },
  {
    'bfzt': '0',
    'bfztName': '撤防',
    'communication': '3,4',
    'concenCode': '',
    'concenId': '',
    'deptName': '燃气集团总公司',
    'deptid': '24',
    'installHeight': '123',
    'devcode': '342021000001',
    'deviceName': '',
    'deviceType': '12',
    'deviceTypeName': '燃气智能终端(一体化)',
    'id': '1476131375777120257',
    'installDate': '2021-12-29',
    'modelId': '19',
    'modelName': 'BIRMM-RTU100N',
    'onlineState': '1',
    'onlineStateName': '在线',
    'position': 'test001位置',
    'ts': '2021-12-29',
    'valid': '1',
    'watchType': '燃气泄漏',
    'wellCode': 'test001',
    'wellId': '4453'
  },
  {
    'bfzt': '0',
    'bfztName': '撤防',
    'communication': '3,4',
    'concenCode': '',
    'concenId': '',
    'deptName': '燃气集团总公司',
    'deptid': '24',
    'installHeight': '123',
    'devcode': '342021000001',
    'deviceName': '',
    'deviceType': '12',
    'deviceTypeName': '管盯',
    'id': '1476131375777120257',
    'installDate': '2021-12-29',
    'modelId': '19',
    'modelName': 'BIRMM-RTU100N',
    'onlineState': '1',
    'onlineStateName': '在线',
    'position': 'test001位置',
    'ts': '2021-12-29',
    'valid': '1',
    'watchType': '燃气泄漏',
    'wellCode': 'test001',
    'wellId': '4453'
  }
]
const deviceStaticsList = [
  {
    'deptName': '燃气集团总公司',
    'deviceCount': '11',
    'deptid': '24'
  },
  {
    'deptName': '煤气公司',
    'deviceCount': '2',
    'deptid': '24'
  },
  {
    'deptName': '电力公司',
    'deviceCount': '11',
    'deptid': '24'
  }

]
const deviceOnlineList = [
  {
    'deviceType': '井盖状态监测仪',
    'online': 1,
    'offline': 9
  },
  {
    'deviceType': '燃气智能监测终端',
    'online': 1,
    'offline': 2
  },
  {
    'deviceType': '管盯',
    'online': 1,
    'offline': 6
  }

]
const deviceOfflineList = [
  {
    'deviceId': '2313221',
    'deviceType': 'fsdf32113',
    'deviceTypeName': '井盖状态检测仪',
    'wellId': 'test1321',
    'wellCode': 'test3134',
    'coordinateX': '原始经度84',
    'coordinateY': '原始纬度84',
    'latBaidu': '百度坐标纬度',
    'lngBaidu': '百度坐标经度',
    'latGaode': '高德坐标纬度',
    'lngGaode': '高德坐标经度',
    'position': '位置',
    'lastTime': '2022/04/12',
    'offlineDays': '21'
  },
  {
    'deviceId': '2313221',
    'deviceType': 'fsdf32113',
    'deviceTypeName': '井盖状态检测仪',
    'wellId': 'test1321',
    'wellCode': 'test3134',
    'coordinateX': '原始经度84',
    'coordinateY': '原始纬度84',
    'latBaidu': '百度坐标纬度',
    'lngBaidu': '百度坐标经度',
    'latGaode': '高德坐标纬度',
    'lngGaode': '高德坐标经度',
    'position': '位置',
    'lastTime': '2022/04/12',
    'offlineDays': '21'
  },
  {
    'deviceId': '2313221',
    'deviceType': 'fsdf32113',
    'deviceTypeName': '井盖状态检测仪',
    'wellId': 'test1321',
    'wellCode': 'test3134',
    'coordinateX': '原始经度84',
    'coordinateY': '原始纬度84',
    'latBaidu': '百度坐标纬度',
    'lngBaidu': '百度坐标经度',
    'latGaode': '高德坐标纬度',
    'lngGaode': '高德坐标经度',
    'position': '位置',
    'lastTime': '2022/04/12',
    'offlineDays': '21'
  },
  {
    'deviceId': '2313221',
    'deviceType': 'fsdf32113',
    'deviceTypeName': '井盖状态检测仪',
    'wellId': 'test1321',
    'wellCode': 'test3134',
    'coordinateX': '原始经度84',
    'coordinateY': '原始纬度84',
    'latBaidu': '百度坐标纬度',
    'lngBaidu': '百度坐标经度',
    'latGaode': '高德坐标纬度',
    'lngGaode': '高德坐标经度',
    'position': '位置',
    'lastTime': '2022/04/12',
    'offlineDays': '21'
  },
  {
    'deviceId': '2313221',
    'deviceType': 'fsdf32113',
    'deviceTypeName': '井盖状态检测仪',
    'wellId': 'test1321',
    'wellCode': 'test3134',
    'coordinateX': '原始经度84',
    'coordinateY': '原始纬度84',
    'latBaidu': '百度坐标纬度',
    'lngBaidu': '百度坐标经度',
    'latGaode': '高德坐标纬度',
    'lngGaode': '高德坐标经度',
    'position': '位置',
    'lastTime': '2022/04/12',
    'offlineDays': '21'
  },
  {
    'deviceId': '2313221',
    'deviceType': 'fsdf32113',
    'deviceTypeName': '井盖状态检测仪',
    'wellId': 'test1321',
    'wellCode': 'test3134',
    'coordinateX': '原始经度84',
    'coordinateY': '原始纬度84',
    'latBaidu': '百度坐标纬度',
    'lngBaidu': '百度坐标经度',
    'latGaode': '高德坐标纬度',
    'lngGaode': '高德坐标经度',
    'position': '位置',
    'lastTime': '2022/04/12',
    'offlineDays': '21'
  },
  {
    'deviceId': '2313221',
    'deviceType': 'fsdf32113',
    'deviceTypeName': '井盖状态检测仪',
    'wellId': 'test1321',
    'wellCode': 'test3134',
    'coordinateX': '原始经度84',
    'coordinateY': '原始纬度84',
    'latBaidu': '百度坐标纬度',
    'lngBaidu': '百度坐标经度',
    'latGaode': '高德坐标纬度',
    'lngGaode': '高德坐标经度',
    'position': '位置',
    'lastTime': '2022/04/12',
    'offlineDays': '21'
  },
  {
    'deviceId': '2313221',
    'deviceType': 'fsdf32113',
    'deviceTypeName': '井盖状态检测仪',
    'wellId': 'test1321',
    'wellCode': 'test3134',
    'coordinateX': '原始经度84',
    'coordinateY': '原始纬度84',
    'latBaidu': '百度坐标纬度',
    'lngBaidu': '百度坐标经度',
    'latGaode': '高德坐标纬度',
    'lngGaode': '高德坐标经度',
    'position': '位置',
    'lastTime': '2022/04/12',
    'offlineDays': '21'
  },
  {
    'deviceId': '2313221',
    'deviceType': 'fsdf32113',
    'deviceTypeName': '井盖状态检测仪',
    'wellId': 'test1321',
    'wellCode': 'test3134',
    'coordinateX': '原始经度84',
    'coordinateY': '原始纬度84',
    'latBaidu': '百度坐标纬度',
    'lngBaidu': '百度坐标经度',
    'latGaode': '高德坐标纬度',
    'lngGaode': '高德坐标经度',
    'position': '位置',
    'lastTime': '2022/04/12',
    'offlineDays': '21'
  },
  {
    'deviceId': '2313221',
    'deviceType': 'fsdf32113',
    'deviceTypeName': '井盖状态检测仪',
    'wellId': 'test1321',
    'wellCode': 'test3134',
    'coordinateX': '原始经度84',
    'coordinateY': '原始纬度84',
    'latBaidu': '百度坐标纬度',
    'lngBaidu': '百度坐标经度',
    'latGaode': '高德坐标纬度',
    'lngGaode': '高德坐标经度',
    'position': '位置',
    'lastTime': '2022/04/12',
    'offlineDays': '21'
  },
  {
    'deviceId': '2313221',
    'deviceType': 'fsdf32113',
    'deviceTypeName': '井盖状态检测仪',
    'wellId': 'test1321',
    'wellCode': 'test3134',
    'coordinateX': '原始经度84',
    'coordinateY': '原始纬度84',
    'latBaidu': '百度坐标纬度',
    'lngBaidu': '百度坐标经度',
    'latGaode': '高德坐标纬度',
    'lngGaode': '高德坐标经度',
    'position': '位置',
    'lastTime': '2022/04/12',
    'offlineDays': '21'
  },
  {
    'deviceId': '2313221',
    'deviceType': 'fsdf32113',
    'deviceTypeName': '井盖状态检测仪',
    'wellId': 'test1321',
    'wellCode': 'test3134',
    'coordinateX': '原始经度84',
    'coordinateY': '原始纬度84',
    'latBaidu': '百度坐标纬度',
    'lngBaidu': '百度坐标经度',
    'latGaode': '高德坐标纬度',
    'lngGaode': '高德坐标经度',
    'position': '位置',
    'lastTime': '2022/04/12',
    'offlineDays': '21'
  },
  {
    'deviceId': '2313221',
    'deviceType': 'fsdf32113',
    'deviceTypeName': '井盖状态检测仪',
    'wellId': 'test1321',
    'wellCode': 'test3134',
    'coordinateX': '原始经度84',
    'coordinateY': '原始纬度84',
    'latBaidu': '百度坐标纬度',
    'lngBaidu': '百度坐标经度',
    'latGaode': '高德坐标纬度',
    'lngGaode': '高德坐标经度',
    'position': '位置',
    'lastTime': '2022/04/12',
    'offlineDays': '21'
  },
  {
    'deviceId': '2313221',
    'deviceType': 'fsdf32113',
    'deviceTypeName': '井盖状态检测仪',
    'wellId': 'test1321',
    'wellCode': 'test3134',
    'coordinateX': '原始经度84',
    'coordinateY': '原始纬度84',
    'latBaidu': '百度坐标纬度',
    'lngBaidu': '百度坐标经度',
    'latGaode': '高德坐标纬度',
    'lngGaode': '高德坐标经度',
    'position': '位置',
    'lastTime': '2022/04/12',
    'offlineDays': '21'
  },
  {
    'deviceId': '2313221',
    'deviceType': 'fsdf32113',
    'deviceTypeName': '井盖状态检测仪',
    'wellId': 'test1321',
    'wellCode': 'test3134',
    'coordinateX': '原始经度84',
    'coordinateY': '原始纬度84',
    'latBaidu': '百度坐标纬度',
    'lngBaidu': '百度坐标经度',
    'latGaode': '高德坐标纬度',
    'lngGaode': '高德坐标经度',
    'position': '位置',
    'lastTime': '2022/04/12',
    'offlineDays': '21'
  },
  {
    'deviceId': '2313221',
    'deviceType': 'fsdf32113',
    'deviceTypeName': '井盖状态检测仪',
    'wellId': 'test1321',
    'wellCode': 'test3134',
    'coordinateX': '原始经度84',
    'coordinateY': '原始纬度84',
    'latBaidu': '百度坐标纬度',
    'lngBaidu': '百度坐标经度',
    'latGaode': '高德坐标纬度',
    'lngGaode': '高德坐标经度',
    'position': '位置',
    'lastTime': '2022/04/12',
    'offlineDays': '21'
  },
  {
    'deviceId': '2313221',
    'deviceType': 'fsdf32113',
    'deviceTypeName': '井盖状态检测仪',
    'wellId': 'test1321',
    'wellCode': 'test3134',
    'coordinateX': '原始经度84',
    'coordinateY': '原始纬度84',
    'latBaidu': '百度坐标纬度',
    'lngBaidu': '百度坐标经度',
    'latGaode': '高德坐标纬度',
    'lngGaode': '高德坐标经度',
    'position': '位置',
    'lastTime': '2022/04/12',
    'offlineDays': '21'
  },
  {
    'deviceId': '2313221',
    'deviceType': 'fsdf32113',
    'deviceTypeName': '井盖状态检测仪',
    'wellId': 'test1321',
    'wellCode': 'test3134',
    'coordinateX': '原始经度84',
    'coordinateY': '原始纬度84',
    'latBaidu': '百度坐标纬度',
    'lngBaidu': '百度坐标经度',
    'latGaode': '高德坐标纬度',
    'lngGaode': '高德坐标经度',
    'position': '位置',
    'lastTime': '2022/04/12',
    'offlineDays': '21'
  },
  {
    'deviceId': '2313221',
    'deviceType': 'fsdf32113',
    'deviceTypeName': '井盖状态检测仪',
    'wellId': 'test1321',
    'wellCode': 'test3134',
    'coordinateX': '原始经度84',
    'coordinateY': '原始纬度84',
    'latBaidu': '百度坐标纬度',
    'lngBaidu': '百度坐标经度',
    'latGaode': '高德坐标纬度',
    'lngGaode': '高德坐标经度',
    'position': '位置',
    'lastTime': '2022/04/12',
    'offlineDays': '21'
  },
  {
    'deviceId': '2313221',
    'deviceType': 'fsdf32113',
    'deviceTypeName': '井盖状态检测仪',
    'wellId': 'test1321',
    'wellCode': 'test3134',
    'coordinateX': '原始经度84',
    'coordinateY': '原始纬度84',
    'latBaidu': '百度坐标纬度',
    'lngBaidu': '百度坐标经度',
    'latGaode': '高德坐标纬度',
    'lngGaode': '高德坐标经度',
    'position': '位置',
    'lastTime': '2022/04/12',
    'offlineDays': '21'
  }
]
module.exports = [
  // mock get all routes form server
  {
    url: '/device/list',
    type: 'get',
    response: _ => {
      return {
        code: 200,
        data: deviceList,
        message: '请求成功',
        success: true
      }
    }
  },
  {
    url: '/statics/deviceStaticsByDept',
    type: 'get',
    response: _ => {
      return {
        code: 200,
        data: deviceStaticsList,
        message: '请求成功',
        success: true
      }
    }
  },
  {
    url: '/statics/deviceCountByOnlineStatus',
    type: 'get',
    response: _ => {
      return {
        code: 200,
        data: deviceOnlineList,
        message: '请求成功',
        success: true
      }
    }
  },
  {
    url: '/device/offlineListPage',
    type: 'get',
    response: _ => {
      return {
        code: 200,
        'total': 120,
        data: deviceOfflineList,
        message: '请求成功',
        success: true
      }
    }
  }
]