Shan9312 8 달 전
부모
커밋
5327ab73c3
4개의 변경된 파일20개의 추가작업 그리고 4개의 파일을 삭제
  1. BIN
      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

BIN
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

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.