From b003b7fda749ae6e97417afc517117afaf29a109 Mon Sep 17 00:00:00 2001 From: Xu Zhimeng Date: Thu, 4 Jan 2024 18:37:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=94=B1=E4=BA=8EstationId=E9=87=8D?= =?UTF-8?q?=E5=A4=8D=E5=AF=BC=E8=87=B4=E7=9A=84RecycleScroller=E5=87=BA?= =?UTF-8?q?=E7=8E=B0=E7=A9=BA=E7=99=BD=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/stationOperation/index.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/views/stationOperation/index.vue b/src/views/stationOperation/index.vue index 0f1ee17..07a503c 100644 --- a/src/views/stationOperation/index.vue +++ b/src/views/stationOperation/index.vue @@ -87,7 +87,7 @@ class="scroller" :items="dataList" :item-size="129" - key-field="stationId" + key-field="_stationId" v-slot="{ item }" > @@ -254,6 +254,10 @@ export default { try { this.isGettingDataList = true const res = await getAction('/jeecg-station-operation/stationOperation/findList') + res.forEach(item => { + const { stationId, stationName, stationType } = item + item._stationId = `${stationId}${stationName}${stationType}` + }) this.originalDataList = res // 保留初始版本 this.dataList = cloneDeep(res)