更新大屏跳转路由

This commit is contained in:
2025-04-24 11:54:38 +08:00
parent 7d0498eee3
commit 30e85cfdd3
6 changed files with 140 additions and 105 deletions

View File

@ -52,8 +52,11 @@
</ul>
</el-popover>
<div v-if="!props.type" class="leftBtn-yjbtn" @click.stop="handleBtns('预警布控')" :class="btnsActive == '预警布控' ? 'yjbtnActive' : ''"><span class="btms">预警布控</span></div>
<ul class="leftBtn-yjbtn flex">
<li class="leftBtn-item" @click.stop="handleBtns(it)" :class="btnsActive == it ? 'yjbtnActive' : ''" v-for="it in btns.leftBtn" :key="it">
<span class="btms">{{ it }}</span>
</li>
</ul>
<div class="top-center pointer">{{ props.title }}</div>
<!-- 右边 -->
<ul class="topBtn topBtn-right" v-if="!props.type">
@ -123,7 +126,7 @@ const router = useRouter();
const route = useRoute();
const btns = reactive({
rightBtn: ["四色预警", "重点人群"],
leftBtn: ["预警布控"],
leftBtn: ["预警布控",'网上会议室'],
moreBtn:['退出登录',]
});
const btnsActive = ref("");
@ -156,6 +159,9 @@ const handleBtns = (val) => {
case "四色预警":
router.push("/IdentityManage");
break;
case "网上会议室":
router.push("/MeetingRoom");
break;
case "后台":
router.push("/editPassword");
break;