From df7b31e9bc762634a01536841b413cc65256752a Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Thu, 10 Mar 2022 08:46:31 +0800
Subject: [PATCH] 部分改动
---
src/pcviews/tool/sign.vue | 14 +++++++++-----
1 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/src/pcviews/tool/sign.vue b/src/pcviews/tool/sign.vue
index 95ef115..df09300 100644
--- a/src/pcviews/tool/sign.vue
+++ b/src/pcviews/tool/sign.vue
@@ -5,12 +5,12 @@
<img class="icon deblurring" src="/img/icon/tool-sign.png" alt />
<span>地图标记</span>
</div>
- <img class="btn-box" @click.stop="addSign" src="/img/navicon/add.png" alt />
- <img class="close" src="/img/navicon/close.png" alt @click="closeModel" />
+ <img class="btn-box deblurring" @click.stop="addSign" src="/img/navicon/add.png" alt />
+ <img class="close deblurring" src="/img/navicon/close.png" alt @click="closeModel" />
</template>
<template slot="public-box-content">
- <div class="list-box">
- <ul v-show="signList.length > 0">
+ <div class="list-box" v-loading="loading">
+ <ul v-show="signShow">
<li v-for="(item, index) in signList" :key="index" @click="dingw(item)">
<img src="/img/icon/sign-list.png" alt />
{{ item.name }}
@@ -23,7 +23,7 @@
></el-button>
</li>
</ul>
- <div v-show="signList.length == 0" class="no-data">
+ <div v-show="!signShow" class="no-data">
<img src="/img/icon/no-data.png" alt />
<div>暂无数据</div>
</div>
@@ -39,7 +39,9 @@
export default {
data () {
return {
+ loading: true,
signList: [],
+ signShow: true,
destroyedFlag: true
}
},
@@ -108,6 +110,8 @@
console.log(res)
const data = res.data.data.records
that.signList = data
+ that.signList.length > 0 ? that.signShow = true : that.signShow = false
+ that.loading = false
// that.$store.commit("clearLabelLayerIcon");
that.$store.dispatch('addLabelLayerIcon', {
list: data,
--
Gitblit v1.9.3