fix:处理group删除 子组件未刷新的问题 以及保存 文本 url以及列表保存不到group的问题

This commit is contained in:
zhangyu
2021-04-12 10:53:21 +08:00
parent 7417fb8726
commit af43b2d4cf
10 changed files with 29 additions and 13 deletions

View File

@@ -874,7 +874,7 @@ export default {
}); */
// panelPromise.then(()=>{
console.log(this.editChart)
console.log(this.editChart,params)
if (this.panelId) {
const chartParams = params || this.editChart
chartParams.panelId = this.panelId
@@ -948,7 +948,8 @@ export default {
param: {
},
sync: this.editChart.sync
sync: this.editChart.sync,
groupId: this.editChart.groupId
}
if (this.editChart.type === 'singleStat' || this.editChart.type === 'pie' || this.editChart.type === 'bar') {
// params.param.statistics=this.statistics;
@@ -1012,7 +1013,8 @@ export default {
unit: this.editChart.unit,
param: param,
sync: this.editChart.sync,
remark: this.editChart.remark
remark: this.editChart.remark,
groupId: this.editChart.groupId,
}
if (valid) {
if (opType === 'preview') {
@@ -1080,7 +1082,8 @@ export default {
url: this.editChart.param.url
},
sync: this.editChart.sync,
remark: this.editChart.remark
remark: this.editChart.remark,
groupId: this.editChart.groupId,
}
if (valid) {
@@ -1108,7 +1111,8 @@ export default {
text: text
},
sync: this.editChart.sync,
remark: this.editChart.remark
remark: this.editChart.remark,
groupId: this.editChart.groupId
}
if (valid) {
@@ -1484,6 +1488,11 @@ export default {
if (this.editChart.type != 'singleStat' && this.editChart.type != 'pie' && this.editChart.type != 'table') {
delete params.param.statistics
}
if(this.editChart.type === 'bar' && this.editChart.param.statistics && this.editChart.param.statistics !== 'null'){
params.param.statistics = this.editChart.param.statistics
}
if (this.editChart.type === 'line' || this.editChart.type === 'bar' || this.editChart.type === 'stackArea' || this.editChart.type === 'table') {
params.param.threshold = this.editChart.param.threshold
if (this.editChart.type === 'table') {