hsshuxian пре 10 месеци
родитељ
комит
2170091a2b
1 измењених фајлова са 15 додато и 3 уклоњено
  1. 15 3
      ems-ui/src/views/mgr/powergrid.vue

+ 15 - 3
ems-ui/src/views/mgr/powergrid.vue

@@ -138,6 +138,7 @@ import BarChartBlock from '@/components/Block/charts/BarChartBlock.vue';
 import PieChartBlock from '@/components/Block/charts/PieChartBlock.vue';
 import { DateTool } from '@/utils/DateTool';
 import dayjs from 'dayjs';
+import data from "@/views/system/dict/data.vue";
 
 export default {
   name: 'PgSupplyH',
@@ -392,7 +393,7 @@ export default {
     // this.getList();
   },
   methods: {
-    // 查询区域列表
+   // 查询区域列表
     async getAreaList() {
       const {
         rows,
@@ -401,6 +402,7 @@ export default {
         pageNum: 1,
         pageSize: 10,
       });
+      console.log("列表!!!!!!!!!!!!!!",rows)
       this.areaOptions = rows;
     },
     tabClick() {
@@ -469,9 +471,14 @@ export default {
     getList() {
       this.loading = true;
       if (this.activeName === 'first') {
-        areaWithFacsCategory('W', '');
+        // areaWithFacsCategory('W', '');
+         areaWithFacsCategory('W', this.facsSubCategory).then(response => {
+          this.areaOptions = response.data
+          console.log("源网列表1111111111",this.areaOptions)
+        })
         listPgSupplyH(this.queryParams).then(response => {
           this.pgSupplyHList = response.rows;
+          console.log("rows",this.pgSupplyHList)
           this.total = response.total;
           this.loading = false;
         });
@@ -485,9 +492,14 @@ export default {
           this.pgSupplyTodayList = response.rows;
         });
       } else {
-        areaWithFacsCategory('E', '');
+        // areaWithFacsCategory('E', '');
+        areaWithFacsCategory('E', this.facsSubCategory).then(response => {
+          this.areaOptions = response.data
+          console.log("源网列表2222222",this.areaOptions)
+        })
         listPvSupplyH(this.queryParams).then(response => {
           this.pvSupplyHList = response.rows;
+          console.log("rows",this.pvSupplyHList)
           this.total = response.total;
           this.loading = false;
         });