Newer
Older
smartwell_front / mock / deviceManage / device.js
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 = [
  {
    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
      }
    }
  }
]