From 2de8dd1760e97901e821fa32ba51cbdbcc24a070 Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期四, 24 七月 2025 10:13:22 +0800
Subject: [PATCH] 代码初始化
---
screen/src/views/PlatformCall.vue | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/screen/src/views/PlatformCall.vue b/screen/src/views/PlatformCall.vue
index 143dcc8..e042bff 100644
--- a/screen/src/views/PlatformCall.vue
+++ b/screen/src/views/PlatformCall.vue
@@ -21,7 +21,8 @@
const initData = () => {
getLargeScreenData().then(res => {
if (res.data && res.data.allList) {
- contentList.value = res.data.allList.map(item => {
+ contentList.value = res.data.allList.map((item, index) => {
+ item.index = index + 1
if (item.optTime) {
item.optTimeTemp = dayjs(item.optTime).format('HH:mm')
if(item.status == 4){
@@ -160,7 +161,7 @@
const handler = () => {
isFullscreen.value = document.fullscreenElement !== null
if (!isFullscreen) {
- // 閫�鍑哄叏灞忔椂鍊欒В闄ょ洃鍚紝涓嶇劧姣忔鐩戝惉閮戒細娣诲姞涓�娆$粦瀹�
+ // 閫�鍑哄叏灞忔椂鍊欒В闄ょ洃鍚紝涓嶇劧姣忔鐩戝惉閮戒細娣诲姞涓�娆$粦瀹�
document.removeEventListener("fullscreenchange", handler)
}
}
@@ -214,8 +215,8 @@
<div class="item">鍋滈潬鏈堝彴</div>
<div class="item">鏃堕棿</div>
</div>
- <div class="line" v-for="item in contentTempList" :key="item.id">
- <div class="item no">{{ item.signNum }}</div>
+ <div class="line" v-for="(item, index) in contentTempList" :key="index">
+ <div class="item no">{{ item.index }}</div>
<div class="item">{{ item.carCodeFront }}</div>
<div class="item">
<div :class="{
@@ -545,4 +546,4 @@
}
}
-</style>
\ No newline at end of file
+</style>
--
Gitblit v1.9.3