From 8c320bae338a62201d89a070702e88b2a3911447 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Wed, 27 Nov 2024 16:20:58 +0800
Subject: [PATCH] 1.表格无数据中文提示处理 2.控制台警告处理 3.企业详情应急空间报错处理 4.console信息删除
---
src/views/pac/components/box/dataContent.vue | 28 +++++++++++++++++++++++++---
1 files changed, 25 insertions(+), 3 deletions(-)
diff --git a/src/views/pac/components/box/dataContent.vue b/src/views/pac/components/box/dataContent.vue
index 1427785..6bfe456 100644
--- a/src/views/pac/components/box/dataContent.vue
+++ b/src/views/pac/components/box/dataContent.vue
@@ -2,7 +2,7 @@
* @Author: shuishen 1109946754@qq.com
* @Date: 2023-03-10 15:27:59
* @LastEditors: shuishen 1109946754@qq.com
- * @LastEditTime: 2024-11-18 18:24:10
+ * @LastEditTime: 2024-11-27 14:49:05
* @FilePath: \bigScreen\src\views\pac\components\box\dataContent.vue
* @Description:
*
@@ -43,7 +43,6 @@
const curSelect = ref('1')
let addTileLayers = {}
const handleCheckChange = (row) => {
- // console.log(row)
resData.data.forEach(item => {
if (row.value === item.value) {
if (!addTileLayers[item.label]) {
@@ -74,6 +73,26 @@
type: 7,
backgroundIcon: VITE_APP_BASE + 'img/mapicon/xfs.png',
className: 'xfs-box',
+ },
+ {
+ type: 8,
+ backgroundIcon: VITE_APP_BASE + 'img/mapicon/gouqu.png',
+ className: 'xfs-box',
+ },
+ {
+ type: 9,
+ backgroundIcon: VITE_APP_BASE + 'img/mapicon/wsclc.png',
+ className: 'xfs-box',
+ },
+ {
+ type: 10,
+ backgroundIcon: VITE_APP_BASE + 'img/mapicon/psk.png',
+ className: 'xfs-box',
+ },
+ {
+ type: 11,
+ backgroundIcon: VITE_APP_BASE + 'img/mapicon/wsc.png',
+ className: 'xfs-box',
}
]
@@ -84,8 +103,11 @@
let data = res.data.data.records
data.filter(i => i.lng && i.lng != '' && i.lat && i.lat != '').forEach(i => {
let iconEl = ''
+ let divclassName = ''
+
let flag = typeList.find(l => l.type == i.type)
if (flag) {
+ divclassName = flag.className
if (flag.backgroundIcon) {
iconEl = `
<div class="map-name">${i[i.showParams] || i.name}</div>
@@ -102,7 +124,7 @@
let divIcon = new DC.DivIcon(
new DC.Position(i.lng, i.lat, 64),
- `<div class="public-map-popup ${flag.className || ''}">
+ `<div class="public-map-popup ${divclassName}">
${iconEl}
</div>`
)
--
Gitblit v1.9.3