Browse Source

[完善]系统管理细节

dev
邵佳豪 3 years ago
parent
commit
4124de70b6
  1. 1
      src/app/system-management/analysis-of-the-host/analysis-of-the-host.component.ts
  2. 3
      src/app/system-management/organization/organization.component.html
  3. 7
      src/app/system-management/organization/organization.component.scss
  4. 1
      src/app/system-management/organization/organization.component.ts

1
src/app/system-management/analysis-of-the-host/analysis-of-the-host.component.ts

@ -42,6 +42,7 @@ export class AnalysisOfTheHostComponent implements OnInit {
element.selectable = false
});
this.nodes = [...this.toTree.toTree(data.result.items)]
this.defaultExpandedKeys = [this.nodes[0].id]
this.defaultExpandedKeys = [...this.defaultExpandedKeys]
})
}

3
src/app/system-management/organization/organization.component.html

@ -37,7 +37,8 @@
<span class="operation">
<span (click)="addOr(node)" *ngIf="!node.origin.isGasStation">新增</span>
<span (click)="editOr(node)">编辑</span>
<span (click)="deleteOr(node)">删除</span>
<span [ngClass]="{'grey':node.origin.children && node.origin.children.length != 0}"
(click)="deleteOr(node)">删除</span>
</span>
</div>
</ng-template>

7
src/app/system-management/organization/organization.component.scss

@ -68,11 +68,12 @@
}
span:nth-child(1),
span:nth-child(2) {
span:nth-child(2),
span:nth-child(3) {
color: #2399FF;
}
span:nth-child(3) {
color: rgba(0, 13, 33, 0.48);
.grey{
color: rgba(0, 13, 33, 0.48)!important;
}
}

1
src/app/system-management/organization/organization.component.ts

@ -57,6 +57,7 @@ export class OrganizationComponent implements OnInit {
});
this.allOrList = data.result.items
this.nodes = [...this.toTree.toTree(data.result.items)]
this.defaultExpandedKeys = [this.nodes[0].id]
this.defaultExpandedKeys = [...this.defaultExpandedKeys]
})
}

Loading…
Cancel
Save