管道基础大数据平台系统开发-【前端】-新系統界面
Surpriseplus
2023-02-20 b04816ec6bffbdc84dfe44aff256ec38f49e4dcf
src/components/MapView/mapMenuTop.vue
@@ -108,7 +108,7 @@
<script>
import queryinfo from "../../views/Tools/queryinfo.vue"
import $ from 'jquery';
import { inquiry_SelectTabs, inquiry_uploadShp, encr } from '../../api/api.js';
import { inquiry_SelectTabs, inquiry_uploadShp, encr, dataLib_selectTabs } from '../../api/api.js';
import { getToken } from '@/utils/auth';
import * as turf from '@turf/turf';
export default {
@@ -187,12 +187,18 @@
      }
    },
    async getAllTable() {
      const data = await inquiry_SelectTabs();
      const data = await dataLib_selectTabs({
        pageIndex: 1,
        pageSize: 500
      });
      if (data.code != 200) {
        this.$message.error('列表调用失败');
      }
      var option = data.result;
      var option = data.result.filter((res) => {
        if (res.rows != 0) {
          return res;
        }
      })
      for (var i in option) {
        var val_Data = option[i];
        val_Data.id = '1' + i;
@@ -236,6 +242,7 @@
          formData.append(val[i].name, val[i]); // fs.files[i].name,file
        }
      }
      if (count != 4) {
        this.$message({
@@ -255,7 +262,8 @@
          if (rs.code !== 200) {
            return this.$message.error('用户角色请求错误');
          }
          this.$store.state.mapMenuShpFile = rs.result;
          this.$store.state.mapMenuShpFile = rs.result.wkt;
          this.showMapMenuPop();
        },
        error: (e) => {