类型:开发
描述:
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user