浏览代码

[Wip 0000] 显示屏避灾路线

houzekong 1 月之前
父节点
当前提交
c27ab3f544
共有 1 个文件被更改,包括 8 次插入1 次删除
  1. 8 1
      src/views/vent/monitorManager/ledMonitor/led.api.ts

+ 8 - 1
src/views/vent/monitorManager/ledMonitor/led.api.ts

@@ -11,7 +11,14 @@ enum Api {
  * 列表接口
  * 列表接口
  * @param params
  * @param params
  */
  */
-export const list = (params) => defHttp.get({ url: Api.list, params: { strtype: 'led_PH21', ...params } });
+export const list = (params) =>
+  defHttp.get({ url: Api.list, params: { strtype: 'led_PH21', ...params } }).then((r) => {
+    r.records.forEach((e) => {
+      const temp = e.deviceId;
+      e.deviceId = e.id;
+      e.id = temp;
+    });
+  });
 
 
 export const changeProgram = (params) => defHttp.post({ url: Api.changeProgram, params });
 export const changeProgram = (params) => defHttp.post({ url: Api.changeProgram, params });
 export const stopVoice = (params) => defHttp.post({ url: Api.stopVoice, params });
 export const stopVoice = (params) => defHttp.post({ url: Api.stopVoice, params });