Commit 3aa3544f authored by wangqinghua's avatar wangqinghua

update

parent 55ebd2a6
...@@ -70,7 +70,7 @@ export class SelectGroupComponent implements OnInit { ...@@ -70,7 +70,7 @@ export class SelectGroupComponent implements OnInit {
//获取下级 //获取下级
mouseAction(name: string, event: NzFormatEmitEvent) { mouseAction(name: string, event: NzFormatEmitEvent) {
if(event.node.children.length > 0){ if (event.node.children.length > 0) {
return false; return false;
} }
let type; let type;
...@@ -100,12 +100,10 @@ export class SelectGroupComponent implements OnInit { ...@@ -100,12 +100,10 @@ export class SelectGroupComponent implements OnInit {
dataSet.forEach(res => { dataSet.forEach(res => {
res.title = res.name; res.title = res.name;
res.key = res.id; res.key = res.id;
if (this.title == '选择资源' || this.title == '添加设备') { res.isLeaf = true;
res.isLeaf = true; if (res.inventoryExtends > 0 && this.title == '关联资产') {
}
if(res.inventoryExtends > 0){
res.disabled = true; res.disabled = true;
}else{ } else {
res.disabled = false; res.disabled = false;
} }
}); });
...@@ -135,8 +133,8 @@ export class SelectGroupComponent implements OnInit { ...@@ -135,8 +133,8 @@ export class SelectGroupComponent implements OnInit {
} }
select() { select() {
if(this.selectList.length == 0){ if (this.selectList.length == 0) {
this.message.warning("请选择资源"); this.message.warning('请选择资源');
return false; return false;
} }
this.done.emit(this.selectList); this.done.emit(this.selectList);
......
...@@ -106,7 +106,7 @@ export class AssetsDetailComponent implements OnInit { ...@@ -106,7 +106,7 @@ export class AssetsDetailComponent implements OnInit {
// 打开添加关联modal // 打开添加关联modal
linkThen(){ 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