he wei
2024-04-28 95b6ff658140ee5cb390084f609305a63d2408e8
U 设备告警相关修改
3个文件已修改
50 ■■■■ 已修改文件
src/assets/js/api.js 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/alarmMager/deviceHistoryquery.vue 17 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/alarmMager/deviceTimequery.vue 17 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/assets/js/api.js
@@ -61,6 +61,22 @@
}
/**
 * 根据维护区查询机房站点 (含包机组) 对象
 * battInf/searchStationNameInGroup
 * {
 * stationName1 省
 * }
*/
export const roomsStation2 = (data) => {
  return axios({
    method: "GET",
    url: "battInf/searchStationNameInGroup2",
    params: data,
    data: null
  })
}
/**
 * 根据设备id查询电池组id (取第一个)
 * @param {*} devId 
 * @returns 
src/views/alarmMager/deviceHistoryquery.vue
@@ -159,7 +159,7 @@
</template>
<script>
import { searchProvince, roomsStation, getBattGroupIdByDevId } from "@/assets/js/api";
import { searchProvince, roomsStation2, getBattGroupIdByDevId } from "@/assets/js/api";
import {
  deviceRecord /* 告警记录 */,
  deviceArarmdel, historyDeviceLevelList /* 删除*/,
@@ -345,13 +345,20 @@
    },
    /* 机房站点 */
    async sesston(status) {
      const newss = await roomsStation({ stationName1: this.selectValue1 });
      const newss = await roomsStation2({ stationName1: this.selectValue1 });
      let res = newss.data;
      if (res.code) {
        let sesionsNews = res.data.map((item) => {
          const {
            stationName1,
            stationName2,
            stationName3,
            stationName5,
            stationId,
          } = item;
          return {
            label: item,
            value: item,
            label: `${stationName1}-${stationName2}-${stationName5}-${stationName3}`,
            value: stationId,
          };
        });
        let len = res.data.length;
@@ -380,7 +387,7 @@
          pageCurr: isExportFile?1:this.queryInfo.pageCurr,
          pageSize: isExportFile?this.total:this.queryInfo.pagesize,
        },
        stationName: this.selectValue2,
        stationId: this.selectValue2,
        stationName1: this.selectValue1,
      };
      this.historyLevelList(param);
src/views/alarmMager/deviceTimequery.vue
@@ -484,7 +484,7 @@
<script>
import {
  searchProvince,
  roomsStation,
  roomsStation2,
  getBattGroupIdByDevId,
} from "@/assets/js/api";
import {
@@ -883,15 +883,22 @@
    },
    /* 机房名称  */
    async deviceName(status) {
      const newDevicess = await roomsStation({
      const newDevicess = await roomsStation2({
        stationName1: this.selectValue1,
      });
      let res = newDevicess.data;
      if (res.code) {
        let sesionsNews = res.data.map((item) => {
          const {
            stationName1,
            stationName2,
            stationName3,
            stationName5,
            stationId,
          } = item;
          return {
            label: item,
            value: item,
            label: `${stationName1}-${stationName2}-${stationName5}-${stationName3}`,
            value: stationId,
          };
        });
        let len = res.data.length;
@@ -1098,7 +1105,7 @@
      }
      let params = {
        stationName1: this.selectValue1,
        stationName: this.selectValue2,
        stationId: this.selectValue2,
        almType: this.value,
        almIsConfirmed: 0,
        page: {