소스 검색

年代切换

maxiaoxiao 7 달 전
부모
커밋
6664166a95
1개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  1. 6 1
      src/views/farmlandProtection/gdzl/index.vue

+ 6 - 1
src/views/farmlandProtection/gdzl/index.vue

@@ -28,7 +28,7 @@
             v-model="nowyear"
             placeholder="请选择"
             size="mini"
-            @change="regionChange()"
+            @change="yearChange()"
           >
             <el-option
               v-for="item in yearList"
@@ -280,6 +280,11 @@ export default {
     unitChange() {
       this.setLnbh(this.lnbndata);
     },
+    yearChange() {
+      let yobj = this.yearList.find((y) => y.year == this.nowyear);
+      this.setImager(yobj);
+      this.regionChange();
+    },
     dlbmChange() {
       let nowtype = this.typeList.find((x) => x.id == this.dlbm);
       this.gtype = nowtype.label;