perf: alert-list 下拉框增加滚动条
This commit is contained in:
@@ -179,8 +179,12 @@
|
|||||||
let moduleData=module.get('data');
|
let moduleData=module.get('data');
|
||||||
let endpoints=module.get('endpoints');
|
let endpoints=module.get('endpoints');
|
||||||
endpoints=endpoints.map(item=>{
|
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){
|
if(!option.children){
|
||||||
option.children=[];
|
option.children=[];
|
||||||
}
|
}
|
||||||
@@ -192,7 +196,7 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
this.options.push(option)
|
this.options.push(option)
|
||||||
})
|
});
|
||||||
}else{
|
}else{
|
||||||
console.error(response.msg)
|
console.error(response.msg)
|
||||||
this.$message.error(response.msg)
|
this.$message.error(response.msg)
|
||||||
@@ -237,4 +241,7 @@
|
|||||||
.alert-form-pop{
|
.alert-form-pop{
|
||||||
z-index:3000 !important;
|
z-index:3000 !important;
|
||||||
}
|
}
|
||||||
|
.alert-form-pop .el-cascader-panel {
|
||||||
|
max-height: 350px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user