Shan9312 8 月之前
父节点
当前提交
5327ab73c3
共有 4 个文件被更改,包括 20 次插入4 次删除
  1. 二进制
      dist-现代牧业-20240627.zip
  2. 0 0
      dist/index.html
  3. 7 2
      src/views/report/vehiclRateTotal/index.vue
  4. 13 2
      src/views/report/vehiclUtilizaRate/index.vue

二进制
dist-现代牧业-20240627.zip


文件差异内容过多而无法显示
+ 0 - 0
dist/index.html


+ 7 - 2
src/views/report/vehiclRateTotal/index.vue

@@ -15,12 +15,13 @@
         placeholder="牧场"
         class="filter-item"
         style="width: 120px"
+        @change="chosePasture"
       >
         <el-option
           v-for="item in findAllPasture"
           :key="item.id"
           :label="item.name"
-          :value="item.name"
+          :value="item.id"
         />
       </el-select>
       <el-input
@@ -170,7 +171,7 @@ export default {
           width: '80'
         },
         {
-          label: `运转率\n(截止导出日期)`,
+          label: `运转率`,
           prop: 'runningRate',
           width: '140'
         }
@@ -182,6 +183,10 @@ export default {
     this.getTableList()
   },
   methods: {
+    // 点击
+    chosePasture(val) {
+      this.getdataListParm.pastureId = val
+    },
     // 点击搜索
     handlerSerch() {
       this.getdataListParm.pagecount = 10

+ 13 - 2
src/views/report/vehiclUtilizaRate/index.vue

@@ -15,6 +15,7 @@
         placeholder="牧场"
         class="filter-item"
         style="width: 120px"
+        @change="chosePasture"
       >
         <el-option
           v-for="item in findAllPasture"
@@ -170,9 +171,9 @@ export default {
           width: '80'
         },
         {
-          label: `运转率\n(截止导出日期)`,
+          label: `运转率`,
           prop: 'runningRate',
-          width: '140'
+          width: '150'
         }
       ]
     }
@@ -182,6 +183,16 @@ export default {
     this.getTableList()
   },
   methods: {
+    // 点击
+    chosePasture(val) {
+      const arr = this.findAllPasture.filter((item) => {
+        if ((item.name = val)) {
+          return item
+        }
+      })
+      console.log(val, arr, 'hss')
+      this.getdataListParm.pastureId = arr[0].id
+    },
     // 点击搜索
     handlerSerch() {
       this.getdataListParm.pagecount = 10

部分文件因为文件数量过多而无法显示