fix: 由于stationId重复导致的RecycleScroller出现空白的问题
This commit is contained in:
parent
96b4ce0d13
commit
b003b7fda7
|
@ -87,7 +87,7 @@
|
|||
class="scroller"
|
||||
:items="dataList"
|
||||
:item-size="129"
|
||||
key-field="stationId"
|
||||
key-field="_stationId"
|
||||
v-slot="{ item }"
|
||||
>
|
||||
<DataListItem :item="item" @click.native="locateFacility(item)"></DataListItem>
|
||||
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user