Commit 3aa3544f authored by wangqinghua's avatar wangqinghua

update

parent 55ebd2a6
......@@ -70,7 +70,7 @@ export class SelectGroupComponent implements OnInit {
//获取下级
mouseAction(name: string, event: NzFormatEmitEvent) {
if(event.node.children.length > 0){
if (event.node.children.length > 0) {
return false;
}
let type;
......@@ -100,12 +100,10 @@ export class SelectGroupComponent implements OnInit {
dataSet.forEach(res => {
res.title = res.name;
res.key = res.id;
if (this.title == '选择资源' || this.title == '添加设备') {
res.isLeaf = true;
}
if(res.inventoryExtends > 0){
res.isLeaf = true;
if (res.inventoryExtends > 0 && this.title == '关联资产') {
res.disabled = true;
}else{
} else {
res.disabled = false;
}
});
......@@ -135,8 +133,8 @@ export class SelectGroupComponent implements OnInit {
}
select() {
if(this.selectList.length == 0){
this.message.warning("请选择资源");
if (this.selectList.length == 0) {
this.message.warning('请选择资源');
return false;
}
this.done.emit(this.selectList);
......
......@@ -106,7 +106,7 @@ export class AssetsDetailComponent implements OnInit {
// 打开添加关联modal
linkThen(){
this.smartSelectGroup.showAddModal("选择资源");
this.smartSelectGroup.showAddModal("关联资产");
}
//设置关联
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment