From 6f1203d1cf895efc473fade3ab049fc30d92c618 Mon Sep 17 00:00:00 2001 From: MrShi <1878285526@qq.com> Date: 星期三, 26 三月 2025 16:48:23 +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