feat:module添加下拉弹窗

fix:修改panel chart不可移动的bug
This commit is contained in:
zhangyu
2021-04-20 14:38:24 +08:00
parent 74f1e800dc
commit 538d1a76e0
25 changed files with 1908 additions and 1700 deletions

View File

@@ -664,16 +664,16 @@ export default {
configs: { ...JSON.parse(this.currentModuleCopy.configs), host: item.manageIp },
moduleId: this.currentModuleCopy.id
}
obj.labelModule = []
if (obj.configs.labels !== '{}' && obj.configs.labels) {
obj.labelModule = []
Object.keys(obj.configs.labels).forEach(key => {
obj.labelModule.push({ key, value: obj.configs.labels[key] })
})
} else {
obj.labelModule.push({ key: '', value: '' })
}
obj.paramObj = []
if (obj.configs.params !== '{}' && obj.configs.params) {
obj.paramObj = []
Object.keys(obj.configs.params).forEach(key => {
obj.paramObj.push({ key, value: obj.configs.params[key] })
})