From b33877d9e26e1d32ecac0551f04a60bdb1da8da4 Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Thu, 6 Aug 2020 14:12:05 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20alert-list=20=E4=B8=8B=E6=8B=89?= =?UTF-8?q?=E6=A1=86=E5=A2=9E=E5=8A=A0=E6=BB=9A=E5=8A=A8=E6=9D=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/page/dashboard/alertChartParam.vue | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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; + }