fix:修改查询chart模板 参数不正确的问题

This commit is contained in:
zhangyu
2021-05-20 17:37:54 +08:00
parent 04bc60df2b
commit 6d348c2268
4 changed files with 7 additions and 5 deletions

View File

@@ -25,7 +25,8 @@
:data="'visual/panel/chart'"
:tb-columns="ChartSearchShowFields"
:params="{
varType: 1, panelId: 0
varType: 1, panelId: 0,
returnChildren:0,groupId:0,
}"
:multiple="true"
:language="language"

View File

@@ -274,7 +274,7 @@ export default {
// dc, brand, model, type
},
getChartTempData () {
this.$get('visual/panel/chart', { pageSize: -1, panelId: 0, returnChildren: 0, varType: this.editChartTemp.varType }).then(response => {
this.$get('visual/panel/chart', { pageSize: -1, panelId: 0, returnChildren: 0, varType: this.editChartTemp.varType, groupId: 0 }).then(response => {
if (response.code === 200) {
this.chartTempArr = response.data.list
}

View File

@@ -90,7 +90,8 @@
:data="'visual/panel/chart'"
:tb-columns="ChartSearchShowFields"
:params="{
varType: 2, panelId: 0
varType: 2, panelId: 0,
returnChildren:0,groupId:0,
}"
:multiple="true"
:language="language"
@@ -671,7 +672,7 @@ export default {
},
mounted () {
this.getWalkData()
this.ChartTemplateList()
// this.ChartTemplateList()
},
created () {
this.getProjectList()

View File

@@ -90,7 +90,7 @@ export default {
endpointNameTmpl: '{{module.name}}-{{asset.name}}',
type: 'http',
port: 9100,
chartIds: [],
chartIds: '',
configs: {
walk: [],
snmpCredentialsId: '',