瀏覽代碼

[FE]更新服务接口文件

liuchang 4 年之前
父節點
當前提交
b01af74802
共有 1 個文件被更改,包括 6 次插入2 次删除
  1. 6 2
      security-protection-platform/src/api/system/index.js

+ 6 - 2
security-protection-platform/src/api/system/index.js

@ -34,6 +34,9 @@ const mappingDeviceResponse = {
34 34
  deviceTypeId: 'resourceToolType',
35 35
  imgUrl: 'toolPictureUrl'
36 36
}
37
const mappingMonitor = {
38
  id: 'MonitorId'
39
}
37 40
38 41
const api = {
39 42
  getSchedules () {
@ -112,8 +115,9 @@ const api = {
112 115
    return $default.post('/sp/resourceTool/modifyResourceTool', data).catch((err) => { return err })
113 116
  },
114 117
  // 监控终端列表查询
115
  getResourceTool(data) {
116
    return $default.get('/sp/resourceTool/queryPageResourceTool', data)
118
  getResourceTool(params) {
119
    params = keysMapping(params, mappingMonitor, false)
120
    return $default.get('/sp/resourceTool/queryPageResourceTool', {params})
117 121
  },
118 122
  getMonitorScene(orgId) {
119 123
    return $default.get(`/sp/monitorSceneManagement/queryPageMonitorScene?orgId=${orgId}`)