This commit is contained in:
lcw
2025-12-25 10:35:00 +08:00
parent 1a7b27209f
commit 709ce4a1e9
7 changed files with 254 additions and 237 deletions

View File

@ -1,7 +1,6 @@
<template>
<div class="warning-card" :style="{ 'border': `1px solid ${changeBG(item.yjjb)}` }">
<div class="warning-image flex">
<!-- -->
<template v-if="!item.yjtp || item.yjtp.includes('baidu')">
<img src="@/assets/images/car.png" width="65" height="70" v-if="item.yjlb == 2 || item.yjLx == 2" />
<img src="@/assets/images/default_male.png" width="65" height="70" v-else />

View File

@ -98,7 +98,7 @@
<BkWarning @changeModel="changeModel"></BkWarning>
</div>
</transition>
</div>
<div style="width: 33%;">
<Bkcz></Bkcz>
@ -311,7 +311,7 @@ onMounted(() => {
getTbYjxxGetList()
// 初始化音频播放器
initAudioPlayer()
webSoket.connect()
// webSoket.connect()
// 监听音频播放事件获取WebSocket消息数据
emitter.on("openYp", (newsDate) => {
// 使用工具类播放音频,自动处理静音切换

View File

@ -148,7 +148,7 @@ const store = useStore();
const router = useRouter();
const route = useRoute();
const btns = reactive({
rightBtn: ["实支撑", "安全监控"],
rightBtn: ["实支撑", "安全监控"],
leftBtn: ["数据整合", '分析研判'],
moreBtn: [
{ name: '后台', img: require('@/assets/images/Group427322486.png') },

View File

@ -207,10 +207,10 @@ const content = ref({
const chooseItem = (item) => {
console.log(item.yjlx);
switch (item.yjlx) {
case '01':
tbYjxxGetInfo(item.id).then(res => {
console.log(res);
content.value = {
id: item.id,
ryxm: res.yjRyxm || '',
@ -221,11 +221,13 @@ const chooseItem = (item) => {
yjnr: res.yjNr || '',
yjbq: res.yjbqmc || '',
yjlx: item.yjlx || '',
yjLx: res.yjLx || '',
jd: res.jd || 0,
wd: res.wd || 0,
yjjb: item.yjjb || '',
czzt: res.czzt || '',
yjbt: res.yjBt || '',
cph: res.yjClcph || '',
}
emitter.emit('showHomeYJ', [content.value]);
})