diff --git a/nezha-fronted/src/components/page/dashboard/alertChartParam.vue b/nezha-fronted/src/components/page/dashboard/alertChartParam.vue index a0696cdbb..1c900edf0 100644 --- a/nezha-fronted/src/components/page/dashboard/alertChartParam.vue +++ b/nezha-fronted/src/components/page/dashboard/alertChartParam.vue @@ -179,8 +179,12 @@ let moduleData=module.get('data'); let endpoints=module.get('endpoints'); endpoints=endpoints.map(item=>{ - return{label:item.asset.host,value:item.id} - }) + return {label: item.asset.host, value: item.id} + }); + /*//测试代码 + for (let i = 1; i < 16; i++) { + endpoints.push({label: '114.51.41.' + i, value: i+8887}); + }*/ if(!option.children){ option.children=[]; } @@ -192,7 +196,7 @@ } }) this.options.push(option) - }) + }); }else{ console.error(response.msg) this.$message.error(response.msg) @@ -237,4 +241,7 @@ .alert-form-pop{ z-index:3000 !important; } + .alert-form-pop .el-cascader-panel { + max-height: 350px; + }