fix: 修改panel 无法切换的问题 以及 表达式的隐藏

This commit is contained in:
zhangyu
2022-07-05 11:43:02 +08:00
parent a520848c5a
commit 11b6532758
2 changed files with 6 additions and 5 deletions

View File

@@ -348,7 +348,7 @@ export default {
this.filter.searchName = ''
// this.$refs.searchInput.select();
this.showPanel = val
this.variables = this.showPanel.param.variables
this.variables = this.$loadsh.get(this, 'showPanel.param.variables', []) || []
this.showPanel.type = 'dashboard'
this.filter.panelId = this.showPanel.id
this.panelId = this.showPanel.id
@@ -785,7 +785,7 @@ export default {
this.$message.error(response)
}
}
this.variables = this.showPanel.param.variables
this.variables = this.$loadsh.get(this, 'showPanel.param.variables', []) || []
}).catch((error) => {
// console.log('error................'+JSON.stringify(error));
if (error) {