From db5dd3ae4d5846c557d963ae902e407519882d1b Mon Sep 17 00:00:00 2001 From: lixuefeng <1126141216@qq.com> Date: Mon, 28 Apr 2025 23:25:31 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B1=BB=E5=9E=8B=EF=BC=9A=E5=BC=80=E5=8F=91?= =?UTF-8?q?=20=E6=8F=8F=E8=BF=B0=EF=BC=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/Header/index.vue | 24 ++++++++++++------------ src/views/traffic/components/box-1.vue | 22 +++++++++++----------- src/views/traffic/components/box-2.vue | 10 +++++----- 3 files changed, 28 insertions(+), 28 deletions(-) diff --git a/src/layout/components/Header/index.vue b/src/layout/components/Header/index.vue index ea8ef20..cec828f 100644 --- a/src/layout/components/Header/index.vue +++ b/src/layout/components/Header/index.vue @@ -107,10 +107,10 @@ import { getWeatherApi } from '@/api/home' import { getSpotListApi } from '@/api/sentiment' import { getHotelListApi } from '@/api/hotel' - + import pubSub from 'pubsub-js' import { useScenicStore } from '@/stores/scenic' - + const scenicStore = useScenicStore() const router = useRouter() @@ -156,7 +156,7 @@ router.push('/home') } const handleCommand = (item, type) => { - + current.value = '' if (type === 'hotel') { otherRightLabel.value = '其他场馆' @@ -177,7 +177,7 @@ break } } - + // 点击导航 const handleNav = (item) => { console.log(item,router.currentRoute.value.path,'测试一下 ') @@ -241,7 +241,7 @@ { name:'车船', path:'/vehicles'}, // { name: '工单', path: '/workOrder' }, { name: '舆情', path: '/sentiment' }, - { name: '酒店', path: '/hotel' } + { name: '场馆', path: '/hotel' } ] break case '/vehicles': @@ -254,7 +254,7 @@ isBack.value = true let res = await getSpotListApi() navLeft.value = res.data - + current.value = res.data[0].id title.value = navLeft.value[0].name pubSub.publish('scenicChange', navLeft.value[0]) @@ -304,8 +304,8 @@ current.value = navLeft.value[0].id title.value = navLeft.value[0].name } - - + + break case '/sceneTesting': title.value = '三峡之巅-异常检测' @@ -374,8 +374,8 @@ ) onMounted(async() => { // 获取查询参数 - - + + PubSub.subscribe('navToChange', (msg, data) => { monitorDefaultData.value = data console.log(monitorDefaultData.value,'monitorDefaultData.valuemonitorDefaultData.value') @@ -389,8 +389,8 @@ // pubSub.publish('monitorChange', res.data[1]) // },2000) // }) - - + + }) getWeather() getSpotList() diff --git a/src/views/traffic/components/box-1.vue b/src/views/traffic/components/box-1.vue index de680cd..8d5c867 100644 --- a/src/views/traffic/components/box-1.vue +++ b/src/views/traffic/components/box-1.vue @@ -1,7 +1,7 @@