From c2a6c53657baaf0830cd881e1a23a15af23ac6fa Mon Sep 17 00:00:00 2001 From: Surpriseplus <845948745@qq.com> Date: 星期四, 21 九月 2023 18:35:14 +0800 Subject: [PATCH] 代码更新 --- src/components/MapView/mapSpacePop.vue | 23 +++++++++++++++++++---- 1 files changed, 19 insertions(+), 4 deletions(-) diff --git a/src/components/MapView/mapSpacePop.vue b/src/components/MapView/mapSpacePop.vue index 010381d..415b3ec 100644 --- a/src/components/MapView/mapSpacePop.vue +++ b/src/components/MapView/mapSpacePop.vue @@ -507,8 +507,12 @@ async getTableselectFields() { const data = await inquiry_selectFields({ name: this.spaceLayer }) if (data.code != 200) { - this.$message.error("鍒楄〃璋冪敤澶辫触") + this.$message.error("鍒楄〃璋冪敤瀛楁澶辫触") } + if (data.result.length == 0) { + this.$message("鍒楄〃璋冪敤瀛楁鏌ユ棤鏁版嵁") + } + this.filedsOption = []; this.optionx = [] var valadata = data.result @@ -590,10 +594,14 @@ }, //鍒濆鍖栨煡璇㈤槇鍊艰〃 async getDomainsLayer() { + this.$store.state.loading = true; const data = await inquiry_selectDomains({ name: this.spaceLayer }) if (data.code != 200) { - this.$message.error("鍒楄〃璋冪敤澶辫触") + this.$message.error("鍒楄〃闃堝�艰皟鐢ㄥけ璐�") } + // if (data.result.length == 0) { + // this.$message("鍒楄〃闃堝�兼煡鏃犳暟鎹�") + // } this.domainsLayer = data.result this.setListDataStart() @@ -625,9 +633,16 @@ } const data = await dataQuerySelectByPage(this.listdata) + this.$store.state.loading = false; if (data.code != 200) { - this.$message.error("鍒楄〃璋冪敤澶辫触") + return this.$message.error("鍒楄〃璋冪敤澶辫触") } + if (data.result.length == 0) { + return this.$message("鍒楄〃鏌ユ棤鏁版嵁") + } + + + var val = data.result; val = val.filter((res) => { @@ -1485,7 +1500,7 @@ } .bottomPage { position: absolute; - bottom: 3%; + bottom: 10px; } /deep/.el-form-item { margin-bottom: 0px; -- Gitblit v1.9.3