| | |
| | | } |
| | | |
| | | /** |
| | | * 根据维护区查询机房站点 (含包机组) 对象 |
| | | * battInf/searchStationNameInGroup |
| | | * { |
| | | * stationName1 省 |
| | | * } |
| | | */ |
| | | export const roomsStation2 = (data) => { |
| | | return axios({ |
| | | method: "GET", |
| | | url: "battInf/searchStationNameInGroup2", |
| | | params: data, |
| | | data: null |
| | | }) |
| | | } |
| | | |
| | | /** |
| | | * 根据设备id查询电池组id (取第一个) |
| | | * @param {*} devId |
| | | * @returns |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { searchProvince, roomsStation, getBattGroupIdByDevId } from "@/assets/js/api"; |
| | | import { searchProvince, roomsStation2, getBattGroupIdByDevId } from "@/assets/js/api"; |
| | | import { |
| | | deviceRecord /* 告警记录 */, |
| | | deviceArarmdel, historyDeviceLevelList /* 删除*/, |
| | |
| | | }, |
| | | /* 机房站点 */ |
| | | 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; |
| | |
| | | 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); |
| | |
| | | <script> |
| | | import { |
| | | searchProvince, |
| | | roomsStation, |
| | | roomsStation2, |
| | | getBattGroupIdByDevId, |
| | | } from "@/assets/js/api"; |
| | | import { |
| | |
| | | }, |
| | | /* 机房名称 */ |
| | | 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; |
| | |
| | | } |
| | | let params = { |
| | | stationName1: this.selectValue1, |
| | | stationName: this.selectValue2, |
| | | stationId: this.selectValue2, |
| | | almType: this.value, |
| | | almIsConfirmed: 0, |
| | | page: { |