refactor(数据大屏、仪表板): 图片组显示优化

This commit is contained in:
wangjiahao 2024-10-11 16:58:26 +08:00
parent 4b25c4ed31
commit 20a5b9fd07

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)