Merge pull request #12643 from dataease/pr@dev-v2@refactor_picture-group2

refactor(数据大屏、仪表板): 图片组显示优化
This commit is contained in:
王嘉豪 2024-10-11 16:59:05 +08:00 committed by GitHub
commit 68d8a3b31d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -29,7 +29,8 @@ const onDatasetUpdate = () => {
getFieldByDQ(view.value.tableId, view.value.id, { type: 'table-info' })
.then(res => {
view.value.xAxis = []
view.value.xAxis.push(...res.dimensionList, ...res.quotaList.pop())
res.quotaList.pop()
view.value.xAxis.push(...res.dimensionList, ...res.quotaList)
const viewTarget = view.value
useEmitt().emitter.emit('calcData-' + viewTarget.id, viewTarget)
snapshotStore.recordSnapshotCache('calc', view.value.id)