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

@@ -1290,11 +1290,11 @@ li{
} }
.right-box-form .one-third-form-item-left{ .right-box-form .one-third-form-item-left{
display: inline-block; display: inline-block;
width: 170px; width: calc(50% - 5px);
} }
.right-box-form .one-third-form-item-right{ .right-box-form .one-third-form-item-right{
display: inline-block; display: inline-block;
width: 170px; width: calc(50% - 5px);
.el-form-item__label{ .el-form-item__label{
width: 20px !important; width: 20px !important;
} }

View File

@@ -142,6 +142,15 @@ export default {
this.object.panelName = 'template' this.object.panelName = 'template'
this.rightBox.show = true 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) { getTableData (params) {
if (params && Object.keys(params).length > 0) { if (params && Object.keys(params).length > 0) {
for (const key in params) { for (const key in params) {