From a952dcb0cffd2b3601ab9fb928ba7bc5b5a87511 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BB=95=E5=B5=A9?= <17854119262@163.com> Date: Fri, 15 Nov 2024 09:57:00 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E7=94=9F=E6=80=81=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E5=90=8E=E9=97=AE=E9=A2=98=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../MapList/ShowInfoModal/index.vue | 363 ++---------------- 1 file changed, 42 insertions(+), 321 deletions(-) diff --git a/src/views/demo/shengtaixiufu/curbspotcity/MapList/ShowInfoModal/index.vue b/src/views/demo/shengtaixiufu/curbspotcity/MapList/ShowInfoModal/index.vue index ae77feff..955c70e7 100644 --- a/src/views/demo/shengtaixiufu/curbspotcity/MapList/ShowInfoModal/index.vue +++ b/src/views/demo/shengtaixiufu/curbspotcity/MapList/ShowInfoModal/index.vue @@ -14,7 +14,7 @@
@@ -139,7 +140,7 @@
const taskId = ref('');
const isRead: any = ref(0);
const type = ref('');
- const cloudQueryVisible = ref(false);
+ // const cloudQueryVisible = ref(false);
const cloudLandQueryVisible = ref(false);
const showSplitPolygon = ref(false);
const showInfoData = ref({});
@@ -240,11 +241,17 @@
// CloudQuery 云查询
let messageData = JSON.parse(message);
if (user == 'CloudQuery') {
- if(messageData.geomid == useCloudQuery.getGeomid && messageData.caseno == useCloudQuery.getCaseno) {
+ if (
+ messageData.geomid == useCloudQuery.getGeomid &&
+ messageData.caseno == useCloudQuery.getCaseno
+ ) {
useCloudQuery.setBeforeId(messageData.queryid);
showCloudQuery({
id: messageData.queryid,
});
+ let expires = '; expires=' + new Date(new Date().getTime() + 60 * 60 * 1000).toUTCString();
+ document.cookie =
+ 'beforeId=' + encodeURIComponent(messageData.queryId) + expires + '; path=/';
}
}else if(user == 'CloudLandQuery'){
//
@@ -281,7 +288,8 @@
auditOpen.value = false;
}
function showCloudQuery(info) {
- cloudQueryVisible.value = true;
+ // cloudQueryVisible.value = true;
+ useCloudQuery.setCloudQueryVisable(true);
useCloudQuery.setIdentification(false);
useCloudQuery.setCloudQueryInfo(info);
}
@@ -291,7 +299,8 @@
closeCloudQuery();
}
function closeCloudQuery() {
- cloudQueryVisible.value = false;
+ useCloudQuery.setCloudQueryVisable(false);
+ // cloudQueryVisible.value = false;
}
// 地类分割提示和结果处理
@@ -413,7 +422,7 @@
border-radius: 6px;
position: fixed;
top: 30px;
- right: 1vw;
+ right: 3vw;
width: 700px;
color: #fff;
z-index: 10;
@@ -453,6 +462,7 @@
button {
width: 70px;
height: 26px;
+
background: linear-gradient(-74deg, #086dec, #0b4bdd);
box-shadow: 3px 4px 5px 1px rgba(13, 13, 13, 0.05);
border-radius: 16px;
diff --git a/src/layouts/default/header/index.vue b/src/layouts/default/header/index.vue
index 28f42051..1cbc3a81 100644
--- a/src/layouts/default/header/index.vue
+++ b/src/layouts/default/header/index.vue
@@ -35,7 +35,7 @@