Newer
Older
cockpit_hxrq_front / src / api / pipe.js
StephanieGitHub on 3 Jun 2021 1 KB MOD:新增综合业务
/**
 * 管网专题
 */
import request from '@/utils/request'
import { getSignTimeStamp } from '@/utils/mathUtils'
import Vue from 'vue'

// 地震列表
export function getEarthquakeList(date) {
  const baseConfig = Vue.prototype.baseConfig
  const { sign, username, timestamp } = getSignTimeStamp()
  return request({
    url: baseConfig.biUrl + '/factdata/index/getData',
    method: 'post',
    data: {
      'showField': 'WD53_09,WD53_05,WD53_06,WD53_07,WD53_08,WD53_04',
      'dimId': '330ADFB6E38049F5A9E0C46E6CCC304D',
      'distinct': true,
      'type': 1,
      'conditionList': [
        [
          {
            'condition': '3',
            'key': 'WD53_04',
            'indexDimValues': date
          }
        ]
      ],
      'pageNo': null,
      'pageSize': null,
      'sign': sign,
      'name': username,
      'time': timestamp
    }
  })
}
// 巡线轨迹列表
export function getRoutesData(date) {
  const baseConfig = Vue.prototype.baseConfig
  const { sign, username, timestamp } = getSignTimeStamp()
  return request({
    url: baseConfig.biUrl + '/factdata/index/getData',
    method: 'post',
    data: {
      'showField': 'WD60_03,WD60_04,WD60_05,WD60_06,WD60_08,WD60_09,WD60_10,WD60_11,WD60_12,WD60_13',
      'dimId': '459DEBAD30C14366AA65C957BBA76B09',
      'type': 1,
      'conditionList': [
        [
          {
            'condition': '3',
            'key': 'WD60_04',
            'indexDimValues': date
          }
        ]
      ],
      'pageNo': null,
      'pageSize': null,
      'sign': sign,
      'name': username,
      'time': timestamp
    }
  })
}