From 50f52beb0ed100105166f62027cd0b15e6b596dc Mon Sep 17 00:00:00 2001
From: Surpriseplus <845948745@qq.com>
Date: 星期六, 12 十一月 2022 15:02:01 +0800
Subject: [PATCH] 重新

---
 src/components/MapView/mapMenuPop.vue |   44 +++++++++++++++++++++++++++++++++++---------
 1 files changed, 35 insertions(+), 9 deletions(-)

diff --git a/src/components/MapView/mapMenuPop.vue b/src/components/MapView/mapMenuPop.vue
index 63e3749..2b4d2f9 100644
--- a/src/components/MapView/mapMenuPop.vue
+++ b/src/components/MapView/mapMenuPop.vue
@@ -14,11 +14,19 @@
     <div class="rightBox">
       <div class="rightTitle">
         <span>绠¢亾</span>
-        <el-link :underline="false" class="boxClose"
+        <el-link :underline="false" @click="closeMenPop" class="boxClose"
           ><i class="el-icon-close"></i>
         </el-link>
+        <el-link :underline="false" class="boxClose"
+          ><i class="el-icon-download"></i>
+        </el-link>
       </div>
-      <el-table :data="tableData" height="220">
+      <el-table
+        :data="tableData"
+        @selection-change="handleSelectionChange"
+        height="240"
+      >
+        <el-table-column type="selection" width="55" />
         <el-table-column align="center" type="index" label="搴忓彿" width="50" />
         <el-table-column label="瀹氫綅" width="100" align="center">
           <template slot-scope="scope">
@@ -39,16 +47,16 @@
         ></el-table-column>
       </el-table>
       <div class="rightPage">
-        <!-- <el-pagination
+        <el-pagination
           @size-change="handleSizeChange"
           @current-change="handleCurrentChange"
           :current-page="listPage.pageIndex"
           :page-sizes="[10, 20, 30, 40]"
           :page-size="listPage.pageSize"
           layout="total, sizes, prev, pager, next, jumper"
-          :total="listPage.pageCount"
+          :total="count"
         >
-        </el-pagination> -->
+        </el-pagination>
       </div>
     </div>
   </div>
@@ -68,8 +76,8 @@
       listPage: {
         pageSize: 10,
         pageIndex: 1,
-        pageCount: 0,
       },
+      count: 0,
       attributeData: [],
       option: [],
       tableData: [],
@@ -86,14 +94,33 @@
       domainsLayer: [],
       optionx: [],
       imagePoint: null,
+      multipleSelection: [],
     };
   },
   methods: {
+    handleSelectionChange(val) {
+      this.multipleSelection = val;
+    },
+    handleSizeChange(val) {
+      this.listdata.pageSize = val;
+      this.listdata.pageIndex = 1;
+      this.getTableData();
+    },
+    handleCurrentChange(val) {
+      this.listdata.pageIndex = val;
+      this.getTableData();
+    },
+    closeMenPop() {
+      sgworld.Creator.SimpleGraphic.clear();
+      this.$store.state.mapPopBoolean = false;
+      this.$store.state.mapPopBoxFlag = null;
+    },
     startTableMssage() {
       this.listdata.pageIndex = 1;
       this.listdata.pageSize = 10;
       this.listdata.name = null;
       this.option = [];
+      this.multipleSelection = [];
     },
     setTableAll() {
       this.startTableMssage();
@@ -101,7 +128,6 @@
       this.querylayer = this.$store.state.mapSpaceQueryLayer;
       this.option = this.$store.state.mapSpaceQueryLayer;
       this.listdata.name = this.option[0].entity;
-
       this.getTableDateHidder();
     },
     async getTableDateHidder() {
@@ -174,6 +200,7 @@
       }
     },
     setTableChange(res) {
+      this.multipleSelection = [];
       this.listdata.pageIndex = 1;
       this.listdata.pageSize = 10;
       this.listdata.name = res.entity;
@@ -181,13 +208,12 @@
     },
     async getTableData() {
       this.tableData = [];
-
       const data = await dataQuerySelectByPage(this.listdata);
       if (data.code != 200) {
         this.$message.error('鍒楄〃璋冪敤澶辫触');
       }
-      debugger;
       var val_Data = data.result;
+      this.count = data.count;
       for (var i in val_Data) {
         var valste = val_Data[i];
         for (var j in this.optionx) {

--
Gitblit v1.9.3