数据大屏入口变更

This commit is contained in:
bb_pan 2025-03-12 14:51:34 +08:00
parent 73e45a720a
commit 2704d1e4e3
3 changed files with 31 additions and 5 deletions

View File

@ -240,6 +240,13 @@ const resetPhone = async () => {
})
}
//
const onJumpScreen = () => {
router.push({
name: 'big-screen',
})
}
onMounted(() => {
// token
if (store.token) {
@ -296,6 +303,10 @@ onMounted(() => {
<el-badge v-else :value="form.msgNum ? Number(form.msgNum) : ''" :max="99" @click="onJumpMessage" style="margin: 0 10px;">消息</el-badge>
<div class="line"></div>
</div>
<div class="header-item" v-if="isShowLogout">
<a @click="onJumpScreen">数据大屏</a>
<div class="line"></div>
</div>
<!-- <div class="header-item">
<a @click="onClickMyUser"> 个人中心 </a>
<div class="line"></div>

View File

@ -431,6 +431,12 @@ const onHotWord = (item: any) => {
// console.log('🚀 ~ onHotWord ~ e:', item.deviceName)
keywordIptValue.value = item.deviceName
}
//
const onJumpScreen = () => {
router.push({
name: 'big-screen',
})
}
onMounted(() => {
if (tokenNew) {
@ -486,6 +492,10 @@ onMounted(() => {
<a @click="onJumpUser">个人中心</a>
<div class="line"></div>
</div>
<div class="header-item" v-if="isShowLogout">
<a @click="onJumpScreen">数据大屏</a>
<div class="line"></div>
</div>
<div class="header-item">
<!-- <a v-if="!isShowLogout" class="a-border-none" @click="$router.push('/login')">
登录

View File

@ -12,11 +12,12 @@ import { getLeaseCouplesApi } from 'http/api/screen/index'
import IconImg from '@/assets/img/screen/999.svg'
import * as echarts from 'echarts'
const echartsRef = ref(null)
const secondsTimer: any = ref(null)
const getLeaseCouplesData = async () => {
const res = await getLeaseCouplesApi()
console.log(res, '装备租赁互联')
// const res = await getLeaseCouplesApi()
// console.log(res, '')
}
getLeaseCouplesData()
// getLeaseCouplesData()
onMounted(() => {
const myChart = echarts.init(echartsRef.value)
@ -1124,7 +1125,7 @@ onMounted(() => {
},
],
}
console.log(option)
// console.log(option)
return option
}
@ -1151,7 +1152,11 @@ onMounted(() => {
drawNew()
// draw();
setInterval(drawNew, 200)
secondsTimer.value = setInterval(drawNew, 200)
})
//
onUnmounted(() => {
clearInterval(secondsTimer.value)
})
</script>