NEZ-3235 fix:notebook 保存时删除 程序处理产生的临时参数
This commit is contained in:
@@ -226,7 +226,6 @@ export default {
|
|||||||
if (chartInfo.elements) {
|
if (chartInfo.elements) {
|
||||||
if (chartInfo.elements[expressionIndex]) {
|
if (chartInfo.elements[expressionIndex]) {
|
||||||
alias = alias + this.handleLegendAlias(legend, chartInfo.elements[expressionIndex].legend, tagKeysArr)
|
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) {
|
if (!alias) {
|
||||||
alias = chartInfo.elements[expressionIndex].expression || ''
|
alias = chartInfo.elements[expressionIndex].expression || ''
|
||||||
|
|||||||
@@ -176,6 +176,10 @@ export default {
|
|||||||
let charts = this.$lodash.cloneDeep(this.$refs.notebookList.copyDataList)
|
let charts = this.$lodash.cloneDeep(this.$refs.notebookList.copyDataList)
|
||||||
charts = charts.filter(item => item.name !== 'groupTemp')
|
charts = charts.filter(item => item.name !== 'groupTemp')
|
||||||
charts.forEach(item => {
|
charts.forEach(item => {
|
||||||
|
delete item.x
|
||||||
|
delete item.y
|
||||||
|
delete item.modifiedName
|
||||||
|
delete item.oldElements
|
||||||
if (item.type === 'text') {
|
if (item.type === 'text') {
|
||||||
delete item.param.isEdit
|
delete item.param.isEdit
|
||||||
delete item.param.oldText
|
delete item.param.oldText
|
||||||
|
|||||||
@@ -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)
|
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) {
|
onScroll (scrollTop = 0) {
|
||||||
const self = this
|
const self = this
|
||||||
if (this.scrollTopTimer) {
|
if (this.scrollTopTimer) {
|
||||||
@@ -165,8 +155,7 @@ export default {
|
|||||||
const cloneDataList = this.$lodash.cloneDeep(n)
|
const cloneDataList = this.$lodash.cloneDeep(n)
|
||||||
const tempList = cloneDataList.map((item, index) => {
|
const tempList = cloneDataList.map((item, index) => {
|
||||||
return {
|
return {
|
||||||
...item,
|
...item
|
||||||
i: item.id
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user