From b04816ec6bffbdc84dfe44aff256ec38f49e4dcf Mon Sep 17 00:00:00 2001 From: Surpriseplus <845948745@qq.com> Date: 星期一, 20 二月 2023 14:45:53 +0800 Subject: [PATCH] 数据申请界面修改 --- src/components/MapView/mapMenuTop.vue | 18 +++++++++++++----- 1 files changed, 13 insertions(+), 5 deletions(-) diff --git a/src/components/MapView/mapMenuTop.vue b/src/components/MapView/mapMenuTop.vue index 3ad1f8f..25f6627 100644 --- a/src/components/MapView/mapMenuTop.vue +++ b/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) => { -- Gitblit v1.9.3