chenjingyu 4 years ago
parent
commit
6c2a44f332
  1. 427
      src/app/examiner/create-test-score/create-test-score.component.html
  2. 7
      src/app/examiner/create-test-score/create-test-score.component.scss
  3. 48
      src/app/examiner/create-test-score/create-test-score.component.ts
  4. 4
      src/app/examiner/examiner-new-one/examiner-new-one.component.html

427
src/app/examiner/create-test-score/create-test-score.component.html

@ -19,7 +19,7 @@
<td>单位名称</td> <td>单位名称</td>
<td>总分</td> <td>总分</td>
</tr> </tr>
<tr *ngFor="let item of unitId"> <tr *ngFor="let item of unitId;let key = index" (click)="clickUnitName(key)" [ngClass]="{'selectedLi': key == selectedUnitIndex}">
<td>{{item.name}}</td> <td>{{item.name}}</td>
<td class="colorspan">{{item.score}}</td> <td class="colorspan">{{item.score}}</td>
</tr> </tr>
@ -37,221 +37,224 @@
</div> </div>
<div class="maincontantbox"> <div class="maincontantbox">
<div class="basicinfodiv" *ngIf="selectedTab == 1"> <div class="basicinfodiv" *ngIf="selectedTab == 1">
<div *ngFor="let unit of unitId;let key = index" style="margin-bottom: 30px;"> <div *ngFor="let unit of unitId;let key = index">
<!-- 选择的单位名称 --> <div [hidden]="!(key == selectedUnitIndex)">
<p class="colorspan" style="margin: 0 0 12px 6px;">{{unit.name}}</p> <!-- 选择的单位名称 -->
<!-- 基本信息 --> <p class="colorspan" style="margin: 0 0 12px 6px;">{{unit.name}}</p>
<mat-accordion> <!-- 基本信息 -->
<mat-expansion-panel style="box-shadow: 0 0 black;" expanded> <mat-accordion>
<mat-expansion-panel-header collapsedHeight ='40px' expandedHeight='40px' style="position: relative;padding-left:20px;background: #F5FDFE;"> <mat-expansion-panel style="box-shadow: 0 0 black;" expanded>
<mat-panel-title> <mat-expansion-panel-header collapsedHeight ='40px' expandedHeight='40px' style="position: relative;padding-left:20px;background: #F5FDFE;">
基本信息 <mat-panel-title>
<!-- <span class="colorspan" style="margin-left: 20px;">{{unit.basicInfoScore ? unit.basicInfoScore : 0}}分</span> --> 基本信息
<span style="margin-left: 20px;"> <!-- <span class="colorspan" style="margin-left: 20px;">{{unit.basicInfoScore ? unit.basicInfoScore : 0}}分</span> -->
总分值: <input class="scoreInput" type="number" (click)="stopPropagation($event)" <span style="margin-left: 20px;">
[(ngModel)]="unit.basicInfoScore" (input)="sumScore('基本信息',key)"> 分, 总分值: <input class="scoreInput" type="number" (click)="stopPropagation($event)"
单项 [(ngModel)]="unit.basicInfoScore" (input)="sumScore('基本信息',key)"> 分,
<span style="color: #FF8678;"> 单项
{{unit.basicInfoItemScore ? unit.basicInfoItemScore : 0}} <span style="color: #FF8678;">
</span> {{unit.basicInfoItemScore ? unit.basicInfoItemScore : 0}}
</span> </span>
</mat-panel-title> </span>
</mat-expansion-panel-header> </mat-panel-title>
</mat-expansion-panel-header>
<div style="box-sizing: border-box;padding: 10px;">
<nz-tree <div style="box-sizing: border-box;padding: 10px;">
[nzData]="unit.basicInfoNodes" <nz-tree
nzCheckable [nzData]="unit.basicInfoNodes"
nzMultiple nzCheckable
[nzCheckedKeys]="defaultCheckedKeys" nzMultiple
[nzExpandedKeys]="defaultExpandedKeys" [nzCheckedKeys]="defaultCheckedKeys"
[nzSelectedKeys]="defaultSelectedKeys" [nzExpandedKeys]="defaultExpandedKeys"
(nzClick)="nzEvent($event,key)" [nzSelectedKeys]="defaultSelectedKeys"
(nzExpandChange)="nzEvent($event,key)" (nzClick)="nzEvent($event,key)"
(nzCheckBoxChange)="nzEvent($event,key)" (nzExpandChange)="nzEvent($event,key)"
[nzTreeTemplate]="nzTreeTemplate" (nzCheckBoxChange)="nzEvent($event,key)"
> [nzTreeTemplate]="nzTreeTemplate"
</nz-tree> >
<ng-template #nzTreeTemplate let-node let-origin="origin"> </nz-tree>
<div class="treeNodeTemplate"> <ng-template #nzTreeTemplate let-node let-origin="origin">
<label class="overflowText textNode">{{node.origin.name}}</label> <div class="treeNodeTemplate">
<div class="scoreDiv" *ngIf="node.level == '0'"> <label class="overflowText textNode">{{node.origin.name}}</label>
<span class="colorspan lookitem" (click)="lookTreeNode(node)">查看</span> <div class="scoreDiv" *ngIf="node.level == '0'">
<span class="colorspan lookitem" (click)="lookTreeNode(node)">查看</span>
</div>
</div> </div>
</ng-template>
</div> </div>
</ng-template> </mat-expansion-panel>
</div> </mat-accordion>
</mat-expansion-panel> <!-- 四周毗邻 -->
</mat-accordion> <mat-accordion *ngIf="unit.aroundNodes.length != 0">
<!-- 四周毗邻 --> <mat-expansion-panel style="box-shadow: 0 0 black;" expanded>
<mat-accordion *ngIf="unit.aroundNodes.length != 0"> <mat-expansion-panel-header collapsedHeight ='40px' expandedHeight='40px' style="position: relative;padding-left:20px;background: #F5FDFE;">
<mat-expansion-panel style="box-shadow: 0 0 black;" expanded> <mat-panel-title>
<mat-expansion-panel-header collapsedHeight ='40px' expandedHeight='40px' style="position: relative;padding-left:20px;background: #F5FDFE;"> 四周毗邻
<mat-panel-title> <span style="margin-left: 20px;">
四周毗邻 总分值: <input class="scoreInput" type="number" (click)="stopPropagation($event)"
<span style="margin-left: 20px;"> [(ngModel)]="unit.aroundScore" (input)="sumScore('四周毗邻',key)"> 分,
总分值: <input class="scoreInput" type="number" (click)="stopPropagation($event)" 单项 <span style="color: #FF8678;">
[(ngModel)]="unit.aroundScore" (input)="sumScore('四周毗邻',key)"> 分, {{unit.aroundItemScore ? unit.aroundItemScore : 0}}
单项 <span style="color: #FF8678;"> </span>
{{unit.aroundItemScore ? unit.aroundItemScore : 0}} </span>
</span> </mat-panel-title>
</span> </mat-expansion-panel-header>
</mat-panel-title>
</mat-expansion-panel-header> <div style="box-sizing: border-box;padding: 10px;">
<nz-tree
<div style="box-sizing: border-box;padding: 10px;"> [nzData]="unit.aroundNodes"
<nz-tree nzCheckable
[nzData]="unit.aroundNodes" nzMultiple
nzCheckable [nzCheckedKeys]="defaultCheckedKeys"
nzMultiple [nzExpandedKeys]="defaultExpandedKeys"
[nzCheckedKeys]="defaultCheckedKeys" [nzSelectedKeys]="defaultSelectedKeys"
[nzExpandedKeys]="defaultExpandedKeys" (nzClick)="nzEvent($event,key)"
[nzSelectedKeys]="defaultSelectedKeys" (nzExpandChange)="nzEvent($event,key)"
(nzClick)="nzEvent($event,key)" (nzCheckBoxChange)="nzEvent($event,key)"
(nzExpandChange)="nzEvent($event,key)" [nzTreeTemplate]="nzTreeTemplate"
(nzCheckBoxChange)="nzEvent($event,key)" >
[nzTreeTemplate]="nzTreeTemplate" </nz-tree>
> <ng-template #nzTreeTemplate let-node let-origin="origin">
</nz-tree> <div class="treeNodeTemplate">
<ng-template #nzTreeTemplate let-node let-origin="origin"> <label class="overflowText textNode">{{node.origin.title ? node.origin.title : node.origin.name}}</label>
<div class="treeNodeTemplate"> <div class="scoreDiv" *ngIf="node.level == '0'">
<label class="overflowText textNode">{{node.origin.title ? node.origin.title : node.origin.name}}</label> <span class="colorspan lookitem" (click)="lookTreeNode(node)">查看</span>
<div class="scoreDiv" *ngIf="node.level == '0'"> </div>
<span class="colorspan lookitem" (click)="lookTreeNode(node)">查看</span>
</div> </div>
</ng-template>
</div> </div>
</ng-template> </mat-expansion-panel>
</div> </mat-accordion>
</mat-expansion-panel> <!-- 重点部位 -->
</mat-accordion> <mat-accordion *ngIf="unit.keySiteNodes.length != 0">
<!-- 重点部位 --> <mat-expansion-panel style="box-shadow: 0 0 black;" expanded>
<mat-accordion *ngIf="unit.keySiteNodes.length != 0"> <mat-expansion-panel-header collapsedHeight ='40px' expandedHeight='40px' style="position: relative;padding-left:20px;background: #F5FDFE;">
<mat-expansion-panel style="box-shadow: 0 0 black;" expanded> <mat-panel-title>
<mat-expansion-panel-header collapsedHeight ='40px' expandedHeight='40px' style="position: relative;padding-left:20px;background: #F5FDFE;"> 重点部位
<mat-panel-title> <span style="margin-left: 20px;">
重点部位 总分值: <input class="scoreInput" type="number" (click)="stopPropagation($event)"
<span style="margin-left: 20px;"> [(ngModel)]="unit.keySiteScore" (input)="sumScore('重点部位',key)"> 分,
总分值: <input class="scoreInput" type="number" (click)="stopPropagation($event)" 单项 <span style="color: #FF8678;">
[(ngModel)]="unit.keySiteScore" (input)="sumScore('重点部位',key)"> 分, {{unit.keySiteItemScore ? unit.keySiteItemScore : 0}}
单项 <span style="color: #FF8678;"> </span>
{{unit.keySiteItemScore ? unit.keySiteItemScore : 0}} </span>
</span> </mat-panel-title>
</span> </mat-expansion-panel-header>
</mat-panel-title>
</mat-expansion-panel-header> <div style="box-sizing: border-box;padding: 10px;">
<nz-tree
<div style="box-sizing: border-box;padding: 10px;"> [nzData]="unit.keySiteNodes"
<nz-tree nzCheckable
[nzData]="unit.keySiteNodes" nzMultiple
nzCheckable [nzCheckedKeys]="defaultCheckedKeys"
nzMultiple [nzExpandedKeys]="defaultExpandedKeys"
[nzCheckedKeys]="defaultCheckedKeys" [nzSelectedKeys]="defaultSelectedKeys"
[nzExpandedKeys]="defaultExpandedKeys" (nzClick)="nzEvent($event,key)"
[nzSelectedKeys]="defaultSelectedKeys" (nzExpandChange)="nzEvent($event,key)"
(nzClick)="nzEvent($event,key)" (nzCheckBoxChange)="nzEvent($event,key)"
(nzExpandChange)="nzEvent($event,key)" [nzTreeTemplate]="nzTreeTemplate"
(nzCheckBoxChange)="nzEvent($event,key)" >
[nzTreeTemplate]="nzTreeTemplate" </nz-tree>
> <ng-template #nzTreeTemplate let-node let-origin="origin">
</nz-tree> <div class="treeNodeTemplate">
<ng-template #nzTreeTemplate let-node let-origin="origin"> <label class="overflowText textNode">{{node.origin.title ? node.origin.title : node.origin.name}}</label>
<div class="treeNodeTemplate"> <div class="scoreDiv" *ngIf="node.level == '0'">
<label class="overflowText textNode">{{node.origin.title ? node.origin.title : node.origin.name}}</label> <span class="colorspan lookitem" (click)="lookTreeNode(node)">查看</span>
<div class="scoreDiv" *ngIf="node.level == '0'"> </div>
<span class="colorspan lookitem" (click)="lookTreeNode(node)">查看</span>
</div> </div>
</ng-template>
</div> </div>
</ng-template> </mat-expansion-panel>
</div> </mat-accordion>
</mat-expansion-panel> <!-- 功能分区 -->
</mat-accordion> <mat-accordion *ngIf="unit.funDivNodes.length != 0">
<!-- 功能分区 --> <mat-expansion-panel style="box-shadow: 0 0 black;" expanded>
<mat-accordion *ngIf="unit.funDivNodes.length != 0"> <mat-expansion-panel-header collapsedHeight ='40px' expandedHeight='40px' style="position: relative;padding-left:20px;background: #F5FDFE;">
<mat-expansion-panel style="box-shadow: 0 0 black;" expanded> <mat-panel-title>
<mat-expansion-panel-header collapsedHeight ='40px' expandedHeight='40px' style="position: relative;padding-left:20px;background: #F5FDFE;"> 功能分区
<mat-panel-title> <span style="margin-left: 20px;">
功能分区 总分值: <input class="scoreInput" type="number" (click)="stopPropagation($event)"
<span style="margin-left: 20px;"> [(ngModel)]="unit.funDivScore" (input)="sumScore('功能分区',key)"> 分,
总分值: <input class="scoreInput" type="number" (click)="stopPropagation($event)" 单项 <span style="color: #FF8678;">
[(ngModel)]="unit.funDivScore" (input)="sumScore('功能分区',key)"> 分, {{unit.funDivItemScore ? unit.funDivItemScore : 0}}
单项 <span style="color: #FF8678;"> </span>
{{unit.funDivItemScore ? unit.funDivItemScore : 0}} </span>
</span> </mat-panel-title>
</span> </mat-expansion-panel-header>
</mat-panel-title>
</mat-expansion-panel-header> <div style="box-sizing: border-box;padding: 10px;">
<nz-tree
<div style="box-sizing: border-box;padding: 10px;"> [nzData]="unit.funDivNodes"
<nz-tree nzCheckable
[nzData]="unit.funDivNodes" nzMultiple
nzCheckable [nzCheckedKeys]="defaultCheckedKeys"
nzMultiple [nzExpandedKeys]="defaultExpandedKeys"
[nzCheckedKeys]="defaultCheckedKeys" [nzSelectedKeys]="defaultSelectedKeys"
[nzExpandedKeys]="defaultExpandedKeys" (nzClick)="nzEvent($event,key)"
[nzSelectedKeys]="defaultSelectedKeys" (nzExpandChange)="nzEvent($event,key)"
(nzClick)="nzEvent($event,key)" (nzCheckBoxChange)="nzEvent($event,key)"
(nzExpandChange)="nzEvent($event,key)" [nzTreeTemplate]="nzTreeTemplate"
(nzCheckBoxChange)="nzEvent($event,key)" >
[nzTreeTemplate]="nzTreeTemplate" </nz-tree>
> <ng-template #nzTreeTemplate let-node let-origin="origin">
</nz-tree> <div class="treeNodeTemplate">
<ng-template #nzTreeTemplate let-node let-origin="origin"> <label class="overflowText textNode">{{node.origin.region ? node.origin.region : node.origin.name}}</label>
<div class="treeNodeTemplate"> <div class="scoreDiv" *ngIf="node.level == '0'">
<label class="overflowText textNode">{{node.origin.region ? node.origin.region : node.origin.name}}</label> <span class="colorspan lookitem" (click)="lookTreeNode(node)">查看</span>
<div class="scoreDiv" *ngIf="node.level == '0'"> </div>
<span class="colorspan lookitem" (click)="lookTreeNode(node)">查看</span>
</div> </div>
</ng-template>
</div> </div>
</ng-template> </mat-expansion-panel>
</div> </mat-accordion>
</mat-expansion-panel> <!-- 数据核验(消防设施) -->
</mat-accordion> <mat-accordion *ngIf="unit.fireFacNodes .length != 0">
<!-- 数据核验(消防设施) --> <mat-expansion-panel style="box-shadow: 0 0 black;" expanded>
<mat-accordion *ngIf="unit.fireFacNodes .length != 0"> <mat-expansion-panel-header collapsedHeight ='40px' expandedHeight='40px' style="position: relative;padding-left:20px;background: #F5FDFE;">
<mat-expansion-panel style="box-shadow: 0 0 black;" expanded> <mat-panel-title>
<mat-expansion-panel-header collapsedHeight ='40px' expandedHeight='40px' style="position: relative;padding-left:20px;background: #F5FDFE;"> 数据核验
<mat-panel-title> <span style="margin-left: 20px;">
数据核验 总分值: <input class="scoreInput" type="number" (click)="stopPropagation($event)"
<span style="margin-left: 20px;"> [(ngModel)]="unit.fireFacScore " (input)="sumScore('数据核验',key)"> 分,
总分值: <input class="scoreInput" type="number" (click)="stopPropagation($event)" 单项 <span style="color: #FF8678;">
[(ngModel)]="unit.fireFacScore " (input)="sumScore('数据核验',key)"> 分, {{unit.fireFacItemScore ? unit.fireFacItemScore : 0}}
单项 <span style="color: #FF8678;"> </span>
{{unit.fireFacItemScore ? unit.fireFacItemScore : 0}} </span>
</span> </mat-panel-title>
</span> </mat-expansion-panel-header>
</mat-panel-title>
</mat-expansion-panel-header> <div style="box-sizing: border-box;padding: 10px;">
<nz-tree
<div style="box-sizing: border-box;padding: 10px;"> [nzData]="unit.fireFacNodes"
<nz-tree nzCheckable
[nzData]="unit.fireFacNodes" nzMultiple
nzCheckable [nzCheckedKeys]="defaultCheckedKeys"
nzMultiple [nzExpandedKeys]="defaultExpandedKeys"
[nzCheckedKeys]="defaultCheckedKeys" [nzSelectedKeys]="defaultSelectedKeys"
[nzExpandedKeys]="defaultExpandedKeys" (nzClick)="nzEvent($event,key)"
[nzSelectedKeys]="defaultSelectedKeys" (nzExpandChange)="nzEvent($event,key)"
(nzClick)="nzEvent($event,key)" (nzCheckBoxChange)="nzEvent($event,key)"
(nzExpandChange)="nzEvent($event,key)" [nzTreeTemplate]="nzTreeTemplate"
(nzCheckBoxChange)="nzEvent($event,key)" >
[nzTreeTemplate]="nzTreeTemplate" </nz-tree>
> <ng-template #nzTreeTemplate let-node let-origin="origin">
</nz-tree> <div class="treeNodeTemplate">
<ng-template #nzTreeTemplate let-node let-origin="origin"> <label class="overflowText textNode">{{node.origin.name}}</label>
<div class="treeNodeTemplate"> <div class="scoreDiv" *ngIf="node.level == '0'">
<label class="overflowText textNode">{{node.origin.name}}</label> <span class="colorspan lookitem" (click)="lookTreeNode(node)">查看</span>
<div class="scoreDiv" *ngIf="node.level == '0'"> </div>
<span class="colorspan lookitem" (click)="lookTreeNode(node)">查看</span>
</div> </div>
</ng-template>
</div> </div>
</ng-template> </mat-expansion-panel>
</div> </mat-accordion>
</mat-expansion-panel> </div>
</mat-accordion>
</div> </div>
</div> </div>
<div class="fightdeploydiv" *ngIf="selectedTab == 2"> <div class="fightdeploydiv" *ngIf="selectedTab == 2">
@ -290,7 +293,7 @@
</div> </div>
</div> </div>
<div class="btnbox"> <div class="btnbox">
<div class="btn"> <div class="btn" (click)="goBack()">
上一步 上一步
</div> </div>
<div class="btn" (click)="finishClick()"> <div class="btn" (click)="finishClick()">

7
src/app/examiner/create-test-score/create-test-score.component.scss

@ -59,6 +59,13 @@ table { text-align: center; border-collapse: collapse; padding:2px;}
tr:nth-child(1){ tr:nth-child(1){
background: #F5FDFE; background: #F5FDFE;
} }
.selectedLi{
background-color: #07CDCF;
color: #fff;
.colorspan{
color: #fff;
}
}
} }
} }
} }

48
src/app/examiner/create-test-score/create-test-score.component.ts

@ -28,7 +28,11 @@ export class CreateTestScoreComponent implements OnInit {
this.getFunDiv() this.getFunDiv()
this.getFireFac() this.getFireFac()
} }
//当前选中的单位
selectedUnitIndex = 0
clickUnitName(key){
this.selectedUnitIndex = key
}
//模拟单位数据 //模拟单位数据
unitDatas:any = [ unitDatas:any = [
{name:'富丽华大酒店1',score:0,basicInfoScore:0,basicInfoItemScore:0,basicInfoNodes : [ {name:'富丽华大酒店1',score:0,basicInfoScore:0,basicInfoItemScore:0,basicInfoNodes : [
@ -81,11 +85,11 @@ export class CreateTestScoreComponent implements OnInit {
] ]
//上个页面传过来的单位数据 //上个页面传过来的单位数据
unitId:any = [{name:'最最最最最',id:'5fb76c42919f2b44e464016f'}, // unitId:any = [{name:'最最最最最',id:'5fb76c42919f2b44e464016f'},
{name:'华南城集团有限公司',id:'5ee19fe06f91049f5e23e937'}, // {name:'华南城集团有限公司',id:'5ee19fe06f91049f5e23e937'},
{name:'贵港油库',id:'5fa35d68f8eb762cb03c662e'} // {name:'贵港油库',id:'5fa35d68f8eb762cb03c662e'}
] // ]
unitId:any = JSON.parse(localStorage.getItem('checkedWork'))
//获取单位基本信息 //获取单位基本信息
getUnitData(){ getUnitData(){
this.unitId.forEach((element,index) => { this.unitId.forEach((element,index) => {
@ -737,7 +741,7 @@ export class CreateTestScoreComponent implements OnInit {
}) })
this.examScore = examScore + examScore2 this.examScore = examScore + examScore2
} }
@ViewChild('nzTreeComponent', { static: false }) nzTreeComponent!: NzTreeComponent;
//保存 //保存
save(){ save(){
let copyDatas = JSON.parse(JSON.stringify(this.unitId)) let copyDatas = JSON.parse(JSON.stringify(this.unitId))
@ -1001,14 +1005,32 @@ export class CreateTestScoreComponent implements OnInit {
//循环每个建筑处理数据 //循环每个建筑处理数据
console.log(copyDatas) console.log(copyDatas)
// copyDatas.forEach(item =>{
// //建筑的基本信息模块处理 let paperDataInfo = []
// item.basicInfoNodes.forEach((i,key) => { copyDatas.forEach((item,key) =>{
paperDataInfo[key] = {}
// }) paperDataInfo[key].id = ''
paperDataInfo[key].paperId = ''
paperDataInfo[key].companyId = item.id
paperDataInfo[key].basicInfoData = item.basicInfoNodes
paperDataInfo[key].basicInfoScore = item.basicInfoScore
paperDataInfo[key].adjoinData = item.aroundNodes
paperDataInfo[key].adjoinScore = item.aroundScore
paperDataInfo[key].importLocationData = item.keySiteNodes
paperDataInfo[key].importLocationScore = item.keySiteScore
paperDataInfo[key].functionalDivisionData = item.funDivNodes
paperDataInfo[key].functionalDivisionScore = item.funDivScore
paperDataInfo[key].facilityData = item.fireFacNodes
paperDataInfo[key].facilityScore = item.fireFacScore
})
console.log(paperDataInfo)
// })
}
//上一步
goBack(){
window.history.back();
} }
//完成按钮 //完成按钮
finishClick(){ finishClick(){

4
src/app/examiner/examiner-new-one/examiner-new-one.component.html

@ -23,7 +23,7 @@
<div><label style="margin-right: 10px;position: relative;top: 5px;" >辖区中队:</label></div> <div><label style="margin-right: 10px;position: relative;top: 5px;" >辖区中队:</label></div>
<div> <div>
<input (click)="stopclose($event)" readonly autocomplete="off" [(ngModel)]="js" name="js" (focus)="openorganizationbox()" placeholder="请填写"> <input (click)="stopclose($event)" readonly autocomplete="off" [(ngModel)]="js" name="js" (focus)="openorganizationbox()" placeholder="请填写">
<mat-checkbox style="margin-left: 6px;" [(ngModel)]="jscheck" name="jscheck">包含下级</mat-checkbox> <mat-checkbox color="primary" style="margin-left: 6px;" [(ngModel)]="jscheck" name="jscheck">包含下级</mat-checkbox>
<div class="organizationbox" *ngIf="isorganizationbox"> <div class="organizationbox" *ngIf="isorganizationbox">
<div (click)="closediv()" class="closediv"><mat-icon>clear</mat-icon></div> <div (click)="closediv()" class="closediv"><mat-icon>clear</mat-icon></div>
<mat-tree [dataSource]="dataSource" [treeControl]="treeControl"> <mat-tree [dataSource]="dataSource" [treeControl]="treeControl">
@ -59,7 +59,7 @@
<th mat-header-cell *matHeaderCellDef> <th mat-header-cell *matHeaderCellDef>
</th> </th>
<td mat-cell *matCellDef="let element"> <td mat-cell *matCellDef="let element">
<mat-checkbox id={{element.id}} (change)="checkChange($event,element)" [(ngModel)]="element.checked"></mat-checkbox> <mat-checkbox color="primary" id={{element.id}} (change)="checkChange($event,element)" [(ngModel)]="element.checked"></mat-checkbox>
</td> </td>
</ng-container> </ng-container>
<ng-container matColumnDef="unitname"> <ng-container matColumnDef="unitname">

Loading…
Cancel
Save