Forráskód Böngészése

Revert "echarts分页"

This reverts commit df910d1bbb0fabbdb0cfc4581d40fb2f0a3ab58c.
qinhouyu 8 hónapja
szülő
commit
7465466453
1 módosított fájl, 6 hozzáadás és 16 törlés
  1. 6 16
      screen-demo/src/views/templateInstance.vue

+ 6 - 16
screen-demo/src/views/templateInstance.vue

@@ -111,11 +111,10 @@
         </div>
         <div id="echarts2" style="width: 100%; height: 47vh">
         </div>
-        <div class="jl-page" style="width: 200px; overflow: auto; white-space: nowrap;">
+        <div class="jl-page">
           <span>&lt;</span>
-          <span v-for="(index) in (total)" :key="index" style="display: inline-block;">
-            <b class="on" @click="selectPage(index)">{{index}}</b>
-           </span>
+          <b class="on">1</b>
+
           <span>&gt;</span>
         </div>
       </div>
@@ -291,7 +290,7 @@ export default {
       end:'',
       trees: [],
       currentPage1: 1,
-      total: [],
+      total: 0,
       timeX: [],
       list:[],
       // activeMode: "satellite", // 默认地图图层类型
@@ -849,14 +848,9 @@ export default {
       })
 
     },
-    //分页查数据 echarts
-    selectPage(page){
-      console.log("页数",page)
-      this.btnMethod(this.selectedButton,page)
-    },
-    btnMethod(num,page){
+    btnMethod(num){
       this.selectedButton = num
-      let param = {"areaBoxNum":this.areaBoxNum,pageSize:9,pageNum:page?page:1};
+      let param = {"areaBoxNum":this.areaBoxNum};
       if (num == 0 || !num) {
         this.$requestSDK(
             "/jilin-devloper/jilin/getEvenAreaCompletion",
@@ -864,11 +858,7 @@ export default {
             {},
             "post"
         ).then(res => {
-          this.total = []
           let result = res.rows;
-          for (let i = 0; i < res.total/9; i++) {
-            this.total.push(i+1)
-          }
           let keys1 = result.map(item => item.regionName) ;
           // let keys2 = result.map(item => item.realNum );
           let keys2 = result.map(item => item.allNum);