Blame view

src/api/work.js 1.57 KB
xiaomiao committed
1
import request from '@/utils/request'
任超 committed
2
let SERVER = JSON.parse(localStorage.getItem('ApiUrl'))
xiaomiao committed
3

任超 committed
4
class work {
xiaomiao committed
5
  // 登记类型总量
任超 committed
6
  async getDjlxtotal (data) {
xiaomiao committed
7 8 9 10 11 12 13
    return request({
      url: SERVER.SERVERAPI + '/rest/reg/work/getDjlxtotal',
      method: 'post',
      data
    })
  }
  // 登记业务量
任超 committed
14
  async getdjywltotal (data) {
xiaomiao committed
15 16 17 18 19 20 21
    return request({
      url: SERVER.SERVERAPI + '/rest/reg/work/getdjywltotal',
      method: 'post',
      data
    })
  }
  // 省厅汇交-区县接入
任超 committed
22
  async getsthjqxjrtotal (data) {
xiaomiao committed
23 24 25 26 27 28 29
    return request({
      url: SERVER.SERVERAPI + '/rest/reg/work/getsthjqxjrtotal',
      method: 'post',
      data
    })
  }
  // 地图区县总量统计,code区县编码,汉中为:A20
任超 committed
30
  async mapViews (code) {
xiaomiao committed
31 32 33 34 35 36 37 38
    return request({
      url: SERVER.SERVERAPI + '/rest/reg/work/mapViews',
      method: 'get',
      params: {
        code: code
      }
    })
  }
任超 committed
39 40
  // 数据趋势
  async dataTrend (code) {
xiaomiao committed
41 42 43 44 45 46 47 48
    return request({
      url: SERVER.SERVERAPI + '/rest/reg/work/dataTrend',
      method: 'get',
      params: {
        code: code
      }
    })
  }
任超 committed
49 50
  // 新建国有房屋信息
  async addhousetotal (code) {
xiaomiao committed
51 52 53 54 55 56 57 58
    return request({
      url: SERVER.SERVERAPI + '/rest/reg/work/addhousetotal',
      method: 'get',
      params: {
        code: code
      }
    })
  }
xiaomiao committed
59
  // 地图区县成功失败统计,code区县编码,汉中为:A20
任超 committed
60
  async submitViews (code) {
xiaomiao committed
61 62 63 64 65 66 67 68 69 70 71
    return request({
      url: SERVER.SERVERAPI + '/rest/reg/work/submitViews',
      method: 'get',
      params: {
        code: code
      }
    })
  }


}
任超 committed
72
export default new work()