Surpriseplus
2022-11-12 50f52beb0ed100105166f62027cd0b15e6b596dc
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) {