NEZ-3235 fix:notebook 保存时删除 程序处理产生的临时参数

This commit is contained in:
zyh
2023-10-16 18:00:44 +08:00
parent 275815bc4f
commit 52ddc7079e
3 changed files with 5 additions and 13 deletions

View File

@@ -226,7 +226,6 @@ export default {
if (chartInfo.elements) {
if (chartInfo.elements[expressionIndex]) {
alias = alias + this.handleLegendAlias(legend, chartInfo.elements[expressionIndex].legend, tagKeysArr)
console.log(alias, this.handleLegendAlias(legend, chartInfo.elements[expressionIndex].legend, tagKeysArr), legend, chartInfo.elements[expressionIndex].legend, tagKeysArr)
}
if (!alias) {
alias = chartInfo.elements[expressionIndex].expression || ''

View File

@@ -176,6 +176,10 @@ export default {
let charts = this.$lodash.cloneDeep(this.$refs.notebookList.copyDataList)
charts = charts.filter(item => item.name !== 'groupTemp')
charts.forEach(item => {
delete item.x
delete item.y
delete item.modifiedName
delete item.oldElements
if (item.type === 'text') {
delete item.param.isEdit
delete item.param.oldText

View File

@@ -101,16 +101,6 @@ export default {
this.$refs['chart' + item.id] && this.$refs['chart' + item.id][0] && this.$refs['chart' + item.id][0].getChartData(refreshData)
})
},
resizedEvent (i, newH, newW, newHPx, newWPx) {
// TODO 重新渲染图表向后端发送put请求
setTimeout(() => {
this.$refs['chart' + i][0].resize()
this.onScroll(this.scrollTop)
}, 100)
},
movedEvent (i, newX, newY) {
this.onScroll(this.scrollTop)
},
onScroll (scrollTop = 0) {
const self = this
if (this.scrollTopTimer) {
@@ -165,8 +155,7 @@ export default {
const cloneDataList = this.$lodash.cloneDeep(n)
const tempList = cloneDataList.map((item, index) => {
return {
...item,
i: item.id
...item
}
})
this.$nextTick(() => {