Browse Source

站端数据查询风机逆变器的场站下拉框过滤

xusl 6 months ago
parent
commit
888a2b5e3e

+ 4 - 1
cpp-ui/src/views/stationDataQuery/inverterstatusdata/index.vue

@@ -201,7 +201,10 @@ export default {
       })
     },
     async getStationCode() {
-      await this.$axios({url: '/electricfield/all', method: 'get'}).then(response => {
+      const param = {
+        "type": 'E1',
+      }
+      await this.$axios.get('/electricfield/findByType',{params: param}).then(response => {
         this.stationList = response.data
         if (this.stationList.length > 0) {
           this.stationCode = this.stationList[0].value

+ 4 - 1
cpp-ui/src/views/stationDataQuery/windturbinestatusdata/index.vue

@@ -201,7 +201,10 @@ export default {
       })
     },
     async getStationCode() {
-      await this.$axios({url: '/electricfield/all', method: 'get'}).then(response => {
+      const param = {
+        "type": 'E2',
+      }
+      await this.$axios.get('/electricfield/findByType',{params: param}).then(response => {
         this.stationList = response.data
         if (this.stationList.length > 0) {
           this.stationCode = this.stationList[0].value