From e2fdfe540eaf160dc7d063c60667041edcc64e86 Mon Sep 17 00:00:00 2001 From: gaoshp <291585735@qq.com> Date: 星期二, 05 十一月 2024 22:55:14 +0800 Subject: [PATCH] 处理显示名称 --- src/views/mdc/realtime-status/index.vue | 14 ++++++++++---- 1 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/views/mdc/realtime-status/index.vue b/src/views/mdc/realtime-status/index.vue index ecc298c..44fe480 100644 --- a/src/views/mdc/realtime-status/index.vue +++ b/src/views/mdc/realtime-status/index.vue @@ -1,7 +1,7 @@ <!-- * @Date: 2024-04-09 22:11:21 * @LastEditors: lzhe lzhe@example.com - * @LastEditTime: 2024-10-31 17:27:54 + * @LastEditTime: 2024-11-04 11:19:09 * @FilePath: /cps-web/src/views/mdc/realtime-status/index.vue 瀹炴椂鐪嬫澘 --> @@ -79,7 +79,7 @@ </div> </div> </div> - <el-dialog :title="titleMap" v-model="visible" :width="740"> + <el-dialog :title="titleMap" v-model="visible" :width="740" v-if="visible"> <div class="dialogstyle"> <el-table :data="timestatus[clickIndex].properties" style="width: 100%" border> <el-table-column prop="name" label="鏁版嵁鐐�"></el-table-column> @@ -175,6 +175,7 @@ this.stationlabel = this.stationlabelList[0].groupName; this.workStationGroupIdList = [this.stationlabelList[0].groupId]; } + this.clickIndex = 0; this.gettimestatus(); //鏌ヨ鍒楄〃 }, showvisible(item, index) { @@ -208,7 +209,7 @@ } }, goSet() { - this.$router.push('/mdc/configuration?isShowSearch=1'); //鍒嗘瀽璁剧疆 + this.$router.push('/mdc/configuration?isShowSearch=1'); //鍒嗘瀽璁剧疆(isShowSearch琛ㄧず鍗虫椂淇℃伅鏉�) }, gostatus(item) { this.$router.push('/mdc/station-live?code=' + item.id); @@ -313,7 +314,12 @@ }; } else { if(eventData.data[item1.key]) { - item1.code = eventData.data[item1.key].v; + if(item1.key == "Alarm") { + var vJson = JSON.parse(eventData.data[item1.key].v); + item1.code = JSON.stringify(vJson[0]); + }else { + item1.code = eventData.data[item1.key].v; + } item1.moment = that.timestampChangeTime(eventData.data[item1.key].t); //鏃堕棿鎴宠浆鍖栨垚鏃ユ湡 }else { item1.code = ""; -- Gitblit v1.9.3