liuchang лет назад: 4
Родитель
Сommit
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}`)