fix:修改charttype选择url时 url不可编辑的问题

This commit is contained in:
zhangyu
2021-04-25 15:52:12 +08:00
parent 1f05e4e244
commit 78ed94c1c8
2 changed files with 11 additions and 2 deletions

View File

@@ -142,6 +142,15 @@ export default {
this.object.panelName = 'template'
this.rightBox.show = true
},
edit (u) {
if (!u.param) {
u.param = { url: '', threshold: '' }
}
this.object = JSON.parse(JSON.stringify(u))
this.object.panelId = this.showPanel.id
this.object.panelName = this.showPanel.name
this.rightBox.show = true
},
getTableData (params) {
if (params && Object.keys(params).length > 0) {
for (const key in params) {