Newer
Older
smartwell_front / mock / warning / deviceStatics.js
yuexiaosheng on 23 Jun 2022 6 KB fix<main>:修改外观配置页面
const alarmStaticsByStatus = [
  {
    'alarmContent': '井盖开盖报警',
    'totalAlarm': 7,
    'cancelAlarm': 3
  },
  {
    'alarmContent': '液位超限报警',
    'totalAlarm': 3,
    'cancelAlarm': 9
  },
  {
    'alarmContent': '有害气体超标报警',
    'totalAlarm': 20,
    'cancelAlarm': 5
  }
]
const alarmStaticsByContent = [
  {
    'alarmWellData': 3,
    'alarmLiquidData': 6,
    'alarmHarmfulData': 9,
    'date': '2022年05月02日'
  },
  {
    'alarmWellData': 5,
    'alarmLiquidData': 3,
    'alarmHarmfulData': 8,
    'date': '2022年05月03日'
  },
  {
    'alarmWellData': 4,
    'alarmLiquidData': 1,
    'alarmHarmfulData': 6,
    'date': '2022年05月04日'
  },
  {
    'alarmWellData': 9,
    'alarmLiquidData': 0,
    'alarmHarmfulData': 4,
    'date': '2022年05月05日'
  },
  {
    'alarmWellData': 4,
    'alarmLiquidData': 3,
    'alarmHarmfulData': 0,
    'date': '2022年05月06日'
  }
]
const alarmWellListPage = [
  {
    'alarmType': '有害气体超标报警',
    'count': '9',
    'wellCode': '点位编号',
    'wellName': '点位名称',
    'deptid': '组织id',
    'deptName': '燃气公司',
    'alarmCount': '2',
    'coordinateX': '原始经度84',
    'coordinateY': '原始纬度84',
    'latBaidu': '百度坐标纬度',
    'lngBaidu': '百度坐标经度',
    'latGaode': '高德坐标纬度',
    'lngGaode': '高德坐标经度',
    'position': '位置'
  },
  {
    'alarmType': '有害气体超标报警',
    'count': '9',
    'wellCode': '点位编号',
    'wellName': '点位名称',
    'deptid': '组织id',
    'deptName': '燃气公司',
    'alarmCount': '4',
    'coordinateX': '原始经度84',
    'coordinateY': '原始纬度84',
    'latBaidu': '百度坐标纬度',
    'lngBaidu': '百度坐标经度',
    'latGaode': '高德坐标纬度',
    'lngGaode': '高德坐标经度',
    'position': '位置'
  },
  {
    'alarmType': '有害气体超标报警',
    'count': '9',
    'wellCode': '点位编号',
    'wellName': '点位名称',
    'deptid': '组织id',
    'deptName': '燃气公司',
    'alarmCount': '9',
    'coordinateX': '原始经度84',
    'coordinateY': '原始纬度84',
    'latBaidu': '百度坐标纬度',
    'lngBaidu': '百度坐标经度',
    'latGaode': '高德坐标纬度',
    'lngGaode': '高德坐标经度',
    'position': '位置'
  },
  {
    'alarmType': '有害气体超标报警',
    'count': '9',
    'wellCode': '点位编号',
    'wellName': '点位名称',
    'deptid': '组织id',
    'deptName': '燃气公司',
    'alarmCount': '19',
    'coordinateX': '原始经度84',
    'coordinateY': '原始纬度84',
    'latBaidu': '百度坐标纬度',
    'lngBaidu': '百度坐标经度',
    'latGaode': '高德坐标纬度',
    'lngGaode': '高德坐标经度',
    'position': '位置'
  },
  {
    'alarmType': '有害气体超标报警',
    'count': '9',
    'wellCode': '点位编号',
    'wellName': '点位名称',
    'deptid': '组织id',
    'deptName': '燃气公司',
    'alarmCount': '3',
    'coordinateX': '原始经度84',
    'coordinateY': '原始纬度84',
    'latBaidu': '百度坐标纬度',
    'lngBaidu': '百度坐标经度',
    'latGaode': '高德坐标纬度',
    'lngGaode': '高德坐标经度',
    'position': '位置'
  },
  {
    'alarmType': '有害气体超标报警',
    'count': '9',
    'wellCode': '点位编号',
    'wellName': '点位名称',
    'deptid': '组织id',
    'deptName': '燃气公司',
    'alarmCount': '6',
    'coordinateX': '原始经度84',
    'coordinateY': '原始纬度84',
    'latBaidu': '百度坐标纬度',
    'lngBaidu': '百度坐标经度',
    'latGaode': '高德坐标纬度',
    'lngGaode': '高德坐标经度',
    'position': '位置'
  },
  {
    'alarmType': '有害气体超标报警',
    'count': '9',
    'wellCode': '点位编号',
    'wellName': '点位名称',
    'deptid': '组织id',
    'deptName': '燃气公司',
    'alarmCount': '2',
    'coordinateX': '原始经度84',
    'coordinateY': '原始纬度84',
    'latBaidu': '百度坐标纬度',
    'lngBaidu': '百度坐标经度',
    'latGaode': '高德坐标纬度',
    'lngGaode': '高德坐标经度',
    'position': '位置'
  },
  {
    'alarmType': '有害气体超标报警',
    'count': '9',
    'wellCode': '点位编号',
    'wellName': '点位名称',
    'deptid': '组织id',
    'deptName': '燃气公司',
    'alarmCount': '12',
    'coordinateX': '原始经度84',
    'coordinateY': '原始纬度84',
    'latBaidu': '百度坐标纬度',
    'lngBaidu': '百度坐标经度',
    'latGaode': '高德坐标纬度',
    'lngGaode': '高德坐标经度',
    'position': '位置'
  },
  {
    'alarmType': '有害气体超标报警',
    'count': '9',
    'wellCode': '点位编号',
    'wellName': '点位名称',
    'deptid': '组织id',
    'deptName': '燃气公司',
    'alarmCount': '5',
    'coordinateX': '原始经度84',
    'coordinateY': '原始纬度84',
    'latBaidu': '百度坐标纬度',
    'lngBaidu': '百度坐标经度',
    'latGaode': '高德坐标纬度',
    'lngGaode': '高德坐标经度',
    'position': '位置'
  },
  {
    'alarmType': '有害气体超标报警',
    'count': '9',
    'wellCode': '点位编号',
    'wellName': '点位名称',
    'deptid': '组织id',
    'deptName': '燃气公司',
    'alarmCount': '7',
    'coordinateX': '原始经度84',
    'coordinateY': '原始纬度84',
    'latBaidu': '百度坐标纬度',
    'lngBaidu': '百度坐标经度',
    'latGaode': '高德坐标纬度',
    'lngGaode': '高德坐标经度',
    'position': '位置'
  },
  {
    'alarmType': '有害气体超标报警',
    'count': '9',
    'wellCode': '点位编号',
    'wellName': '点位名称',
    'deptid': '组织id',
    'deptName': '燃气公司',
    'alarmCount': '2',
    'coordinateX': '原始经度84',
    'coordinateY': '原始纬度84',
    'latBaidu': '百度坐标纬度',
    'lngBaidu': '百度坐标经度',
    'latGaode': '高德坐标纬度',
    'lngGaode': '高德坐标经度',
    'position': '位置'
  }
]
module.exports = [
  // mock get all routes form server
  {
    url: '/statics/alarmStaticsByStatus',
    type: 'get',
    response: _ => {
      return {
        code: 200,
        data: alarmStaticsByStatus,
        message: '请求成功',
        success: true
      }
    }
  },
  {
    url: '/statics/alarmStaticsByContent',
    type: 'get',
    response: _ => {
      return {
        code: 200,
        data: alarmStaticsByContent,
        message: '请求成功',
        success: true
      }
    }
  },
  {
    url: '/statics/alarmWellListPage',
    type: 'get',
    response: _ => {
      return {
        code: 200,
        'total': 11,
        data: alarmWellListPage,
        message: '请求成功',
        success: true
      }
    }
  }
]