Commit 123e74cc authored by wangqinghua's avatar wangqinghua

update

parent 683e2ce7
......@@ -135,8 +135,8 @@
<td class="cursor">
<span (click)="goTOInventory(item?.inventory?.id)">{{item?.inventory?.name}}</span>
</td>
<td >
<span>{{item?.equipmentType}}</span>
<td class="cursor main-color">
<span (click)="goEquip(item)">{{item?.equipmentType}}</span>
</td>
<td class="default">
<ng-container *ngIf="!item.available || item.available == 0">
......
......@@ -546,4 +546,23 @@ export class BasicComponent implements OnInit {
}
});
}
//前往设备类型页面
goEquip(item) {
let type;
if (item.equipmentType == '数据库') {
type = 'database';
} else if (item.equipmentType == '交换机') {
type = 'switch';
} else {
type = 'server';
}
this.router.navigate(['app/main/' + type], {
queryParams: {
hostId: item.hostid,
equipmentType: item.equipmentType
}
});
}
}
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