From 81a26f23ac0567da23b1621d4813a5a2ab54baa2 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Wed, 06 Dec 2023 16:36:39 +0800
Subject: [PATCH] 校园搜索功能修改完善,及地图点击弹窗显示内容更换
---
src/components/campusNav/index.vue | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/src/components/campusNav/index.vue b/src/components/campusNav/index.vue
index 7309cf5..82f7c99 100644
--- a/src/components/campusNav/index.vue
+++ b/src/components/campusNav/index.vue
@@ -130,6 +130,9 @@
toolTipText: ''
}
},
+
+ inject: ["layoutElement"],
+
computed: {
...mapGetters([
'twoOrThree',
@@ -735,7 +738,8 @@
this.toNameShow = false
return
}
- getSearchList({ mechanismName: this.toNameText }).then((res) => {
+
+ getSearchList({ mechanismName: this.toNameText, campus: this.layoutElement.campusValue }).then((res) => {
if (res.data.data.length > 0) {
this.toNameList = res.data.data
this.toNameShow = true
@@ -749,7 +753,8 @@
this.comeNameShow = false
return
}
- getSearchList({ mechanismName: this.comeNameText }).then((res) => {
+
+ getSearchList({ mechanismName: this.comeNameText, campus: this.layoutElement.campusValue }).then((res) => {
if (res.data.data.length > 0) {
this.comeNameList = res.data.data
this.comeNameShow = true
--
Gitblit v1.9.3