修改 云南测试问题
This commit is contained in:
@@ -21,9 +21,9 @@
|
||||
{{ Math.floor(row.eventValue * 10000) / 100 }}
|
||||
</template>
|
||||
</vxe-column>
|
||||
<vxe-column field="eventReason" width="110px" title="暂降类型">
|
||||
<vxe-column field="eventType" width="110px" title="暂降类型">
|
||||
<template #default="{ row }">
|
||||
{{ eventType.filter(item => item.id == row.eventReason)[0]?.name || '/' }}
|
||||
{{ event.filter(item => item.id == row.eventType)[0]?.name || '/' }}
|
||||
</template>
|
||||
</vxe-column>
|
||||
</vxe-table>
|
||||
@@ -38,7 +38,7 @@ import { mainHeight } from '@/utils/layout'
|
||||
import { useDictData } from '@/stores/dictData'
|
||||
import MQTT from '@/utils/mqtt'
|
||||
const dictData = useDictData()
|
||||
const eventType = dictData.getBasicData('Event_Type')
|
||||
const event = dictData.getBasicData('Event_Statis')
|
||||
import { useAdminInfo } from '@/stores/adminInfo'
|
||||
const adminInfo = useAdminInfo()
|
||||
const height = mainHeight(-20)
|
||||
@@ -63,6 +63,7 @@ const init = async () => {
|
||||
// 设置消息接收回调
|
||||
mqttClient.onMessage((topic, message) => {
|
||||
const msg = JSON.parse(message.toString())
|
||||
console.log("🚀 ~ init ~ msg:", msg)
|
||||
if (msg.deptList.includes(adminInfo.$state.deptId)) {
|
||||
drawer.value = true
|
||||
isLoading.value = true
|
||||
|
||||
Reference in New Issue
Block a user