This commit is contained in:
hzz 2025-04-24 17:13:24 +08:00
parent d6b71ae0bb
commit ba7a565fce
5 changed files with 8 additions and 4 deletions

View File

@ -1,5 +1,5 @@
# 页面标题 # 页面标题
VITE_APP_TITLE = 机器物联管理系统 VITE_APP_TITLE = 工业物联网监控平台
# 开发环境配置 # 开发环境配置
VITE_APP_ENV = 'development' VITE_APP_ENV = 'development'

View File

@ -1,5 +1,5 @@
# 页面标题 # 页面标题
VITE_APP_TITLE = 机器物联管理系统 VITE_APP_TITLE = 工业物联网监控平台
# 生产环境配置 # 生产环境配置
VITE_APP_ENV = 'production' VITE_APP_ENV = 'production'

View File

@ -4,7 +4,7 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<link rel="icon" href="/favicon.ico"> <link rel="icon" href="/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>机器物联管理系统</title> <title>工业物联网监控平台</title>
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>

View File

@ -9,7 +9,7 @@
</div> </div>
</div> </div>
<div class="right"> <div class="right">
<div class="right-item" v-for="item of devData"> <div class="right-item" v-for="(item) in devData">
<div class="title">{{ item['label'] }}</div> <div class="title">{{ item['label'] }}</div>
<div class="right-item-content" v-if="item['type'] == 'status'"> <div class="right-item-content" v-if="item['type'] == 'status'">
<div class="status-box" :style="{ background: statusList[item.value]['color'] }"></div> <div class="status-box" :style="{ background: statusList[item.value]['color'] }"></div>
@ -38,6 +38,7 @@ const { proxy } = getCurrentInstance();
let devData = computed(() => { let devData = computed(() => {
return { return {
status: { 'label': proxy.tLang('home', '设备状态'), 'value': props.data.state, type: 'status' }, status: { 'label': proxy.tLang('home', '设备状态'), 'value': props.data.state, type: 'status' },
scansNum: { 'label': proxy.tLang('message', '扫描次数'), 'value': props.data.outputToday, type: '' }, scansNum: { 'label': proxy.tLang('message', '扫描次数'), 'value': props.data.outputToday, type: '' },

View File

@ -264,6 +264,9 @@ function getWebsocket(val) {
}) })
abnormalData.value.alarm++ abnormalData.value.alarm++
} }
if (data.type == "product") {
init()
}
} catch (err) { } catch (err) {
console.log(err); console.log(err);
} }