Browse Source

Merge branch 'master' of http://172.16.90.201:3000/castgroup_forest/castgroup_bigscreen

wangcc 2 năm trước cách đây
mục cha
commit
b347d4bc21
1 tập tin đã thay đổi với 12 bổ sung6 xóa
  1. 12 6
      src/views/index.vue

+ 12 - 6
src/views/index.vue

@@ -3,7 +3,7 @@
  * @Author: wangcc
  * @Date: 2022-07-06 15:56:45
  * @LastEditors: gcz
- * @LastEditTime: 2022-11-03 14:07:20
+ * @LastEditTime: 2022-11-04 14:48:39
  * @FilePath: \ntbigscreen\src\views\index.vue
  * @Copyright: Copyright (c) 2016~2022 by wangcc, All Rights Reserved. 
 -->
@@ -350,7 +350,7 @@ export default {
   },
   mounted() {
     this.getPageData();
-    this.getRightScrollData();
+    // this.getRightScrollData();
     setInterval(() => {
       this.getPageData();
     }, 1160000);
@@ -468,9 +468,10 @@ export default {
       this.getPageData();
     },
     getPageData() {
-      debounce(this.debounceGetData, 300, false);
+      debounce(this.debounceGetData, 1000, true);
     },
     debounceGetData() {
+      console.log('请求数据');
       // console.log('page', this.$store.state.addr.page);
       // {text:'森林资源',en:'forest'},
       //   {text:'林木结构',en:'treeSpecies'},
@@ -585,7 +586,9 @@ export default {
         smallNumber: this.xiaobaninput,
         cityId: this.$store.state.addr.selectCity.areaId,
         countyId: this.$store.state.addr.selectDistrict.areaId,
-        townId: this.$store.state.addr.selectStreet.areaId
+        townId: this.$store.state.addr.selectStreet.areaId,
+        pageNum:1,
+        pageSize:50,
       };
       rightScrollData(param)
         .then((res) => {
@@ -623,7 +626,9 @@ export default {
         courseName: this.projectInput,
         cityId: this.$store.state.addr.selectCity.areaId,
         countyId: this.$store.state.addr.selectDistrict.areaId,
-        townId: this.$store.state.addr.selectStreet.areaId
+        townId: this.$store.state.addr.selectStreet.areaId,
+        pageNum:1,
+        pageSize:50,
       };
       projectList(param)
         .then((res) => {
@@ -1208,8 +1213,9 @@ export default {
       this.getPageData();
     },
     projectSearch() {
+      // console.log('projectSearch');
       this.getProjectScrollData();
-      this.getPageData();
+      // this.getPageData();
     },
     basesearch() {
       // console.log('xiaobansearch');