fix:修改 chartTemp 同步错误的问题
This commit is contained in:
@@ -297,7 +297,7 @@ export default {
|
|||||||
}
|
}
|
||||||
this.scrollTopTimer = setTimeout(() => {
|
this.scrollTopTimer = setTimeout(() => {
|
||||||
this.copyDataList.forEach(item => {
|
this.copyDataList.forEach(item => {
|
||||||
if (!this.$refs['grid-item' + item.id][0]) {
|
if (!this.$refs['grid-item' + item.id] || !this.$refs['grid-item' + item.id][0]) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const dom = this.$refs['grid-item' + item.id][0].$el
|
const dom = this.$refs['grid-item' + item.id][0].$el
|
||||||
|
|||||||
@@ -686,7 +686,13 @@ export default {
|
|||||||
},
|
},
|
||||||
chartBySync () {
|
chartBySync () {
|
||||||
this.panelTabLoading = true
|
this.panelTabLoading = true
|
||||||
this.$post('visual/panel/chart/syncTmpl', { panelId: this.showPanel.id }).then(res => {
|
const params = {}
|
||||||
|
if (this.from === 'chartTemp') {
|
||||||
|
params.pid = this.obj.id
|
||||||
|
} else {
|
||||||
|
params.panelId = this.showPanel.id
|
||||||
|
}
|
||||||
|
this.$post('visual/panel/chart/syncTmpl', params).then(res => {
|
||||||
this.panelTabLoading = false
|
this.panelTabLoading = false
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
this.getTableData(this.obj.id)
|
this.getTableData(this.obj.id)
|
||||||
|
|||||||
Reference in New Issue
Block a user