forked from github/dataease
Merge pull request #12000 from dataease/pr@dev-v2@fix_copy
fix(图表): 修复复用时部分图表不显示问题
This commit is contained in:
commit
1bfd6c6abe
@ -1230,6 +1230,7 @@ export const dvMainStore = defineStore('dataVisualization', {
|
||||
setViewDataDetails(viewId, chartDataInfo) {
|
||||
this.canvasViewDataInfo[viewId] = chartDataInfo.data
|
||||
const viewInfo = this.canvasViewInfo[viewId]
|
||||
if (viewInfo) {
|
||||
const oldCalParams = viewInfo.calParams
|
||||
? viewInfo.calParams.reduce((map, params) => {
|
||||
map[params.id] = params.value
|
||||
@ -1244,6 +1245,7 @@ export const dvMainStore = defineStore('dataVisualization', {
|
||||
})
|
||||
}
|
||||
this.canvasViewInfo[viewId]['calParams'] = chartDataInfo.calParams || null
|
||||
}
|
||||
},
|
||||
getViewDataDetails(viewId) {
|
||||
return this.canvasViewDataInfo[viewId]
|
||||
|
@ -246,7 +246,6 @@ const importTemplate = () => {
|
||||
ElMessage.warning('当前名称已在模版管理中存在,请修改')
|
||||
} else {
|
||||
save(state.templateInfo).then(rsp => {
|
||||
console.log('====' + JSON.stringify(rsp))
|
||||
ElMessage.success(t('导入成功'))
|
||||
emits('refresh', getRefreshPInfo())
|
||||
emits('closeEditTemplateDialog')
|
||||
|
Loading…
Reference in New Issue
Block a user