Browse Source

折线图

Shan9312 2 months ago
parent
commit
34724af529

+ 2 - 1
src/views/cost/diesel/index.vue

@@ -573,7 +573,7 @@ export default {
         parammaps: {
           startTime: startTime,
           endTime: endTime,
-          pastureName: this.pastureName.toString(),
+          pastureName: this.getdataListParm.parammaps.pastureName || Cookies.get('pasturename'),
         },
       }
       GetReportform(datas).then(response => {
@@ -1028,6 +1028,7 @@ export default {
     },
     changePastureName(item) {
       this.getDepartParam.parammaps.pastureId = this.findAllPasture.find(obj => obj.name == item).id
+      this.getdataListParm.parammaps.pastureName = item
       this.getdataListParm.parammaps.deptName = ''
       this.getDepartDownList()
     },

+ 2 - 0
src/views/cost/elec/index.vue

@@ -990,6 +990,8 @@ export default {
     changePastureName(item) {
       this.getDepartParam.parammaps.pastureId = this.findAllPasture.find(obj => obj.name == item).id
       this.getdataListParm.parammaps.departName = ''
+      // this.getdataListParm.parammaps.pastureName = item
+      this.getdataListParm.parammaps.pastureName = item
       this.getDepartDownList()
     },
     form_search() {

+ 1 - 0
src/views/cost/water/index.vue

@@ -1005,6 +1005,7 @@ export default {
     changePastureName(item) {
       this.getDepartParam.parammaps.pastureId = this.findAllPasture.find(obj => obj.name == item).id
       this.getdataListParm.parammaps.departName = ''
+          this.getdataListParm.parammaps.pastureName = item
       this.getDepartDownList()
     },
     form_search() {