Browse Source

[完善]素材图片增加分块上传

master
邵佳豪 2 years ago
parent
commit
2d461663c9
  1. 776
      src/app/ui/collection-tools-building/collection-tools.component.html
  2. 1324
      src/app/ui/collection-tools-building/collection-tools.component.ts
  3. 1321
      src/app/ui/collection-tools/collection-tools.component.ts

776
src/app/ui/collection-tools-building/collection-tools.component.html

@ -17,10 +17,12 @@
<mat-checkbox color="primary" [(ngModel)]="isMultiSelect" (change)='changeMultiSelect($event)'></mat-checkbox> 多选 <mat-checkbox color="primary" [(ngModel)]="isMultiSelect" (change)='changeMultiSelect($event)'></mat-checkbox> 多选
</span> </span>
<span class="marginLeftRight"> <span class="marginLeftRight">
<mat-checkbox color="primary" [(ngModel)]="isShowLegend" (change)='changeLegend($event)' [disabled]='this.canvasData.selectPanelPoint.BackgroundImageUrl'></mat-checkbox> 显示图例 <mat-checkbox color="primary" [(ngModel)]="isShowLegend" (change)='changeLegend($event)'
[disabled]='this.canvasData.selectPanelPoint.BackgroundImageUrl'></mat-checkbox> 显示图例
</span> </span>
<button (click)="copyAsset()" class="copytobutn marginLeftRight" mat-button title="复制" style="margin:0 5px;" *ngIf="isEditPattern"> <button (click)="copyAsset()" class="copytobutn marginLeftRight" mat-button title="复制" style="margin:0 5px;"
*ngIf="isEditPattern">
复制<mat-icon>library_books</mat-icon> 复制<mat-icon>library_books</mat-icon>
</button> </button>
<button (click)="pasteAsset()" class="copytobutn marginLeftRight" mat-button title="粘贴" *ngIf="isEditPattern"> <button (click)="pasteAsset()" class="copytobutn marginLeftRight" mat-button title="粘贴" *ngIf="isEditPattern">
@ -44,8 +46,8 @@
<!-- 头部操作栏 --> <!-- 头部操作栏 -->
<div class="headerOperate"> <div class="headerOperate">
<button mat-button *ngFor="let item of allBuildings;let key = index" (click)="checkedBuilding(item,key)" class="bigeditdeletebtn" <button mat-button *ngFor="let item of allBuildings;let key = index" (click)="checkedBuilding(item,key)"
[ngClass]="{'buildingbtnchecked': checkedBuildingIndex==key}"> class="bigeditdeletebtn" [ngClass]="{'buildingbtnchecked': checkedBuildingIndex==key}">
<span class="name" [title]="item.name">{{item.name}}</span> <span class="name" [title]="item.name">{{item.name}}</span>
<span class="editdeletebtn" *ngIf="isEditPattern"> <span class="editdeletebtn" *ngIf="isEditPattern">
<mat-icon (click)="editBuilding($event,item)" <mat-icon (click)="editBuilding($event,item)"
@ -61,313 +63,367 @@
<!--功能区 --> <!--功能区 -->
<div class="functionalDomain"> <div class="functionalDomain">
<div class='functionalDomainContent' id="functionalDomainContent"> <div class='functionalDomainContent' id="functionalDomainContent">
<!-- H5Canvas -->
<app-working-area #canvas></app-working-area>
<!-- H5Canvas -->
<!-- H5Canvas --> <div id="leftDiv" (mousewheel)="$event.stopPropagation()" class='functionalDomainLeft publicCss'
<app-working-area #canvas></app-working-area> [ngClass]="{'togglePanel': toggleExpandPanel==true}" style="user-select: none">
<!-- H5Canvas --> <div class="leftDragDiv" (mousedown)="leftDivMouseDown($event)"></div>
<div id="leftDiv" (mousewheel)="$event.stopPropagation()" class='functionalDomainLeft publicCss' [ngClass]="{'togglePanel': toggleExpandPanel==true}" style="user-select: none"> <!-- 平面图 -->
<div class="leftDragDiv" (mousedown)="leftDivMouseDown($event)"></div> <div class="planarGraph">
<!-- 平面图 --> <div class="planarGraphHeader" (click)='togglePlanarGraph()'>
<div class="planarGraph"> <mat-icon *ngIf="togglePlane">keyboard_arrow_up</mat-icon>
<div class="planarGraphHeader" (click)='togglePlanarGraph()'> <mat-icon *ngIf="!togglePlane">keyboard_arrow_down</mat-icon>
<mat-icon *ngIf="togglePlane">keyboard_arrow_up</mat-icon> <label class="overflowText" style="font-weight: 550;">平面图</label>
<mat-icon *ngIf="!togglePlane">keyboard_arrow_down</mat-icon> <label class="hover" *ngIf="isEditPattern">
<label class="overflowText" style="font-weight: 550;">平面图</label> <mat-icon (click)='foundPanel($event)'>add</mat-icon>
<label class="hover" *ngIf="isEditPattern"> </label>
<mat-icon (click)='foundPanel($event)'>add</mat-icon> </div>
<div [hidden]="!togglePlane" style="flex: 1;max-height: 700px;overflow-y: auto;overflow-x: hidden;"
class="sitePlanContentBox">
<div class="sitePlanContent" *ngFor="let item of sitePlanData;let key = index"
[ngClass]="{'isRefugeStorey':item.isRefugeStorey==true,'selectSitePlan': selectSitePlanIndex==key}"
(click)='selectSitePlan(item,key)' (mouseenter)="hoverSitePlan(item,key)">
<label class="overflowText planEveryRow">
<mat-icon *ngIf="!item.imageUrl" class="matIcons">broken_image</mat-icon>{{item.name}}
</label> </label>
</div> <a href="javascript:;" class="a-upload" *ngIf="selectSitePlanIndex==key && isEditPattern" title="替换底图">
<div [hidden]="!togglePlane" style="flex: 1;max-height: 700px;overflow-y: auto;overflow-x: hidden;" class="sitePlanContentBox"> <input type="file" (change)='replaceBaseMap($event,item)' accept="image/*">
<div class="sitePlanContent" *ngFor="let item of sitePlanData;let key = index" <mat-icon class="matIcons">photo_size_select_actual</mat-icon>
[ngClass]="{'isRefugeStorey':item.isRefugeStorey==true,'selectSitePlan': selectSitePlanIndex==key}" (click)='selectSitePlan(item,key)' (mouseenter)="hoverSitePlan(item,key)"> </a>
<label class="overflowText planEveryRow"><mat-icon *ngIf="!item.imageUrl" class="matIcons">broken_image</mat-icon>{{item.name}}</label> <a href="javascript:;" id="a-uploadImg"
<a href="javascript:;" class="a-upload" *ngIf="selectSitePlanIndex==key && isEditPattern" title="替换底图" > *ngIf="selectSitePlanIndex==key && !item.imageUrl && isEditPattern" title="上传底图">
<input type="file" (change)='replaceBaseMap($event,item)' accept="image/*"> <input type="file" (change)='replaceBaseMap($event,item)' accept="image/*">
<mat-icon class="matIcons">photo_size_select_actual</mat-icon> <img src="../../../assets/images/upload.jpg">
</a> </a>
<a href="javascript:;" id="a-uploadImg" *ngIf="selectSitePlanIndex==key && !item.imageUrl && isEditPattern" title="上传底图" > <!-- 右边定位操作栏 -->
<input type="file" (change)='replaceBaseMap($event,item)' accept="image/*"> <div id="rightOperate" class="rightOperate"
<img src="../../../assets/images/upload.jpg"> *ngIf="selectSitePlanIndex==key && item.imageUrl && isEditPattern" (click)="$event.stopPropagation();">
</a> <p class="functionButton">
<!-- 右边定位操作栏 --> <mat-icon class="functionIcon bigFunctionIcon" title="上移" (click)='moveUp(item,key)'>keyboard_arrow_up
<div id="rightOperate" class="rightOperate" *ngIf="selectSitePlanIndex==key && item.imageUrl && isEditPattern" (click)="$event.stopPropagation();"> </mat-icon>
<p class="functionButton"> </p>
<mat-icon class="functionIcon bigFunctionIcon" title="上移" (click)='moveUp(item,key)'>keyboard_arrow_up</mat-icon> <p class="functionButton">
</p> <mat-icon class="functionIcon" title="编辑属性" (click)='editPlaneData(item)'>edit</mat-icon>
<p class="functionButton"> <mat-icon class="functionIcon" title="删除" (click)="deletePlaneData(item)">delete</mat-icon>
<mat-icon class="functionIcon" title="编辑属性" (click)='editPlaneData(item)'>edit</mat-icon> </p>
<mat-icon class="functionIcon" title="删除" (click)="deletePlaneData(item)">delete</mat-icon> <p class="functionButton">
</p> <mat-icon class="functionIcon" title="旋转底图" (click)='revolveImg(item)'>cached</mat-icon>
<p class="functionButton"> <mat-icon class="functionIcon" title="复制" (click)="duplicateLayer(item)">library_books</mat-icon>
<mat-icon class="functionIcon" title="旋转底图" (click)='revolveImg(item)'>cached</mat-icon> </p>
<mat-icon class="functionIcon" title="复制" (click)="duplicateLayer(item)">library_books</mat-icon> <p class="functionButton">
</p> <mat-icon class="functionIcon bigFunctionIcon" title="下移" (click)='moveDown(item,key)'>
<p class="functionButton"> keyboard_arrow_down</mat-icon>
<mat-icon class="functionIcon bigFunctionIcon" title="下移" (click)='moveDown(item,key)'>keyboard_arrow_down</mat-icon> </p>
</p>
</div>
<!-- 右边定位操作栏 -->
</div> </div>
<!-- 右边定位操作栏 -->
</div> </div>
</div> </div>
</div>
<!-- 素材库 --> <!-- 素材库 -->
<div id="materialBank" *ngIf="isEditPattern"> <div id="materialBank" *ngIf="isEditPattern">
<div class="planarGraphHeader" (click)='toggleMaterial()'> <div class="planarGraphHeader" (click)='toggleMaterial()'>
<mat-icon *ngIf="toggleMaterialBank">keyboard_arrow_up</mat-icon> <mat-icon *ngIf="toggleMaterialBank">keyboard_arrow_up</mat-icon>
<mat-icon *ngIf="!toggleMaterialBank">keyboard_arrow_down</mat-icon> <mat-icon *ngIf="!toggleMaterialBank">keyboard_arrow_down</mat-icon>
<label class="overflowText" style="font-weight: 550;">素材库</label> <label class="overflowText" style="font-weight: 550;">素材库</label>
</div> </div>
<div style="flex: 1;overflow-y: auto;" [hidden]="!toggleMaterialBank"> <div style="flex: 1;overflow-y: auto;" [hidden]="!toggleMaterialBank">
<div> <div>
<input type="text" class="searchLibrary" [(ngModel)]="searchInput" (ngModelChange)="libraryChange()"> <input type="text" class="searchLibrary" [(ngModel)]="searchInput" (ngModelChange)="libraryChange()">
<div class="panelLibraryFlex" *ngIf="searchLibrary.length"> <div class="panelLibraryFlex" *ngIf="searchLibrary.length">
<div class="imgBox" *ngFor="let items of searchLibrary;let key = index" [title]="items.name" <div class="imgBox" *ngFor="let items of searchLibrary;let key = index" [title]="items.name"
[ngClass]="{'selectImg': selectLibrary=='搜索' && selectImageIndex==key}" (click)='selectImg({name:"搜索"},items,key)'> [ngClass]="{'selectImg': selectLibrary=='搜索' && selectImageIndex==key}"
<img [src]="items.imageUrl" onerror="javascript:this.src='../../../assets/images/noImg.png'"> (click)='selectImg({name:"搜索"},items,key)'>
<p class="overflowText">{{items.name}}</p> <img [src]="items.imageUrl" onerror="javascript:this.src='../../../assets/images/noImg.png'">
</div> <p class="overflowText">{{items.name}}</p>
</div> </div>
</div> </div>
<ng-container *ngIf="!searchLibrary.length">
<mat-accordion *ngFor="let item of allLibrary" id="panelLibrary">
<mat-expansion-panel (opened)='opened(item)'>
<mat-expansion-panel-header>
<label class="text">{{item.name}}</label>
</mat-expansion-panel-header>
<div class="panelLibraryFlex">
<div class="imgBox" *ngFor="let items of item.images;let key = index" [title]="items.name"
(click)='selectImg(item,items,key)'
[ngClass]="{'selectImg': selectLibrary==item.name && selectImageIndex==key}">
<img [src]="items.imageUrl" onerror="javascript:this.src='../../../assets/images/noImg.png'">
<p class="overflowText">{{items.name}}</p>
</div>
</div>
</mat-expansion-panel>
</mat-accordion>
</ng-container>
</div> </div>
</div> <ng-container *ngIf="!searchLibrary.length">
<mat-accordion *ngFor="let item of allLibrary" id="panelLibrary">
<mat-expansion-panel (opened)='opened(item)'>
<mat-expansion-panel-header>
<label class="text">{{item.name}}</label>
</mat-expansion-panel-header>
<div class="panelLibraryFlex">
<div class="imgBox" *ngFor="let items of item.images;let key = index" [title]="items.name"
(click)='selectImg(item,items,key)'
[ngClass]="{'selectImg': selectLibrary==item.name && selectImageIndex==key}">
<img [src]="items.imageUrl" onerror="javascript:this.src='../../../assets/images/noImg.png'">
<p class="overflowText">{{items.name}}</p>
</div>
</div>
</mat-expansion-panel>
</mat-accordion>
</ng-container>
</div>
</div> </div>
<div id="rightDiv" (mousewheel)="$event.stopPropagation()" class="functionalDomainRight publicCss " [ngClass]="{'togglePanel2': toggleExpandPanelRight==true}" style="user-select: none"> </div>
<!-- 右侧div鼠标拖动div -->
<div style="width: 3px;height: 100%;position: absolute;left: 0;cursor: e-resize;z-index: 1000;" (mousedown)="rightDivMouseDown($event)"></div> <div id="rightDiv" (mousewheel)="$event.stopPropagation()" class="functionalDomainRight publicCss "
<!-- 属性 --> [ngClass]="{'togglePanel2': toggleExpandPanelRight==true}" style="user-select: none">
<div [ngClass]="{'forbidden': !isEditPattern}" id="property" class="property" style="height: 50%;"> <!-- 右侧div鼠标拖动div -->
<div class="title"> <div style="width: 3px;height: 100%;position: absolute;left: 0;cursor: e-resize;z-index: 1000;"
<div> (mousedown)="rightDivMouseDown($event)"></div>
<span style="user-select: none">属性</span> <!-- 属性 -->
<div [ngClass]="{'forbidden': !isEditPattern}" id="property" class="property" style="height: 50%;">
<div class="title">
<div>
<span style="user-select: none">属性</span>
</div>
</div>
<!-- 平面图属性 -->
<div class="siteproperty" style="user-select: none"
*ngIf="isShowProperty && isShowAttribute && !isMultipleAsset">
<p>面积(平方米)</p>
<div class="siteproperty_size">{{canvasData.selectStorey.area}}</div>
<p>详情</p>
<div class="siteproperty_size">
{{canvasData.selectStorey.details}}
</div>
</div>
<!-- 素材属性 -->
<div class="assetsproperty" style="user-select: none"
*ngIf="isShowProperty && !isShowAttribute && !isMultipleAsset">
<h3 style="text-align: center;font-weight: 900;">{{assetName}}</h3>
<div *ngIf="canvasAssetObj.InteractiveMode == 0">
<p>宽度(像素)</p>
<input type="text" class="biginput" [(ngModel)]="assetWidth" (input)="assetWidthIunput()"
[disabled]="!isEditPattern">
<p>高度(像素)</p>
<input type="text" class="biginput" [(ngModel)]="assetHeight" (input)="assetHeightIunput()"
[disabled]="!isEditPattern">
<p>角度</p>
<div style="width: 100%;display: flex;vertical-align: top;height: 22px;">
<input type="number" class="smallinput" [(ngModel)]="sliderValue"
oninput="if(value>360)value=360;if(value<0)value=0;" (input)="assetAngleIunput()"
[disabled]="!isEditPattern">
<mat-slider color="primary" min="0" max="360" step="1" style="bottom: 12px;left: 2px;width: 70%;"
[(ngModel)]="sliderValue" (change)="assetAngleIunput()" [disabled]="!isEditPattern"></mat-slider>
</div> </div>
</div> </div>
<!-- 平面图属性 --> <!-- 如果是多点连线 -->
<div class="siteproperty" style="user-select: none" *ngIf="isShowProperty && isShowAttribute && !isMultipleAsset"> <div *ngIf="canvasAssetObj.Name == '普通墙' || canvasAssetObj.Name == '承重墙'">
<p>面积(平方米)</p> <p>厚度</p>
<div class="siteproperty_size">{{canvasData.selectStorey.area}}</div> <div style="width: 100%;display: flex;vertical-align: top;height: 22px;">
<p>详情</p> <input type="number" class="smallinput" [(ngModel)]="sliderValueThickness"
<div class="siteproperty_size"> oninput="if(value>999)value=999;if(value<0)value=0;" (input)="assetThicknessIunput()"
{{canvasData.selectStorey.details}} [disabled]="!isEditPattern">
<mat-slider color="primary" min="0" max="999" step="1" style="bottom: 12px;left: 2px;width: 70%;"
[(ngModel)]="sliderValueThickness" (change)="assetThicknessIunput()" [disabled]="!isEditPattern">
</mat-slider>
</div> </div>
</div> </div>
<!-- 素材属性 -->
<div class="assetsproperty" style="user-select: none" *ngIf="isShowProperty && !isShowAttribute && !isMultipleAsset">
<h3 style="text-align: center;font-weight: 900;">{{assetName}}</h3>
<div *ngIf="canvasAssetObj.InteractiveMode == 0"> <p style="margin-top: 4px;margin-bottom: 0px;">是否高亮</p>
<p>宽度(像素)</p> <div>
<input type="text" class="biginput" [(ngModel)]="assetWidth" (input)="assetWidthIunput()" [disabled]="!isEditPattern"> <input class="input" [(ngModel)]="isHighLight" type="checkbox" [disabled]="!isEditPattern">
<p>高度(像素)</p> <span style="font-size: 14px;">选中高亮</span>
<input type="text" class="biginput" [(ngModel)]="assetHeight" (input)="assetHeightIunput()" [disabled]="!isEditPattern"> </div>
<p>角度</p> <div class="colorBigDiv" *ngIf="canvasAssetObj.FillMode == 0">
<div style="width: 100%;display: flex;vertical-align: top;height: 22px;"> <div class="colorBigTemplateDiv">
<input type="number" class="smallinput" [(ngModel)]="sliderValue" <span>颜色</span>
oninput="if(value>360)value=360;if(value<0)value=0;" (input)="assetAngleIunput()" [disabled]="!isEditPattern"> <div class="colorTemplateDiv" [style]="{'background-color':selectedcolor}">
<mat-slider color="primary" min="0" max="360" step="1" style="bottom: 12px;left: 2px;width: 70%;"
[(ngModel)]="sliderValue" (change)="assetAngleIunput()" [disabled]="!isEditPattern"></mat-slider>
</div> </div>
</div> </div>
<!-- 如果是多点连线 --> <div class="colorDiv" *ngIf="isEditPattern">
<div *ngIf="canvasAssetObj.Name == '普通墙' || canvasAssetObj.Name == '承重墙'"> <ul>
<p>厚度</p> <li (click)="selectcolor(item,key)" class="colorLi" *ngFor="let item of colors,let key=index"
<div style="width: 100%;display: flex;vertical-align: top;height: 22px;"> [style]="{'background-color':item}"></li>
<input type="number" class="smallinput" [(ngModel)]="sliderValueThickness" </ul>
oninput="if(value>999)value=999;if(value<0)value=0;" (input)="assetThicknessIunput()" [disabled]="!isEditPattern">
<mat-slider color="primary" min="0" max="999" step="1" style="bottom: 12px;left: 2px;width: 70%;"
[(ngModel)]="sliderValueThickness" (change)="assetThicknessIunput()" [disabled]="!isEditPattern"></mat-slider>
</div>
</div> </div>
<span style="color: #9c9fa5;font-size: 14px;">透明度</span>
<p style="margin-top: 4px;margin-bottom: 0px;">是否高亮</p> <mat-slider color="primary" min="0" max="100%" step="1" style="left: 1px; width: 55%;min-width: 90px;"
<div> [(ngModel)]="colorDivSliderValue" (change)="colorDivSliderChange()" [disabled]="!isEditPattern">
<input class="input" [(ngModel)]="isHighLight" type="checkbox" [disabled]="!isEditPattern"> </mat-slider>
<span style="font-size: 14px;">选中高亮</span> <span style="color: #9c9fa5;font-size: 12px;">{{colorDivSliderValue}}%</span>
</div>
<div *ngFor="let item of PropertyInfos;index as key ">
<!-- 单行文本 -->
<div *ngIf="item.PropertyType == 0">
<p>{{item.PropertyName}}<span style="font-size: 14px;"
*ngIf="item.PhysicalUnit">({{item.PhysicalUnit}})</span></p>
<input type="text" class="biginput" [value]="item.PropertyValue" (input)="assetInputChange(item,$event)"
[disabled]="!isEditPattern">
</div> </div>
<div class="colorBigDiv" *ngIf="canvasAssetObj.FillMode == 0"> <!-- 多行文本 -->
<div class="colorBigTemplateDiv"> <div *ngIf="item.PropertyType == 1">
<span>颜色</span> <p>{{item.PropertyName}}<span style="font-size: 14px;"
<div class="colorTemplateDiv" [style]="{'background-color':selectedcolor}"> *ngIf="item.PhysicalUnit">({{item.PhysicalUnit}})</span></p>
<textarea class="textarea" name="" id="" [value]="item.PropertyValue"
</div> (input)="assetInputChange(item,$event)" [disabled]="!isEditPattern"></textarea>
</div>
<div class="colorDiv" *ngIf="isEditPattern">
<ul>
<li (click)="selectcolor(item,key)" class="colorLi" *ngFor="let item of colors,let key=index" [style]="{'background-color':item}"></li>
</ul>
</div>
<span style="color: #9c9fa5;font-size: 14px;">透明度</span>
<mat-slider color="primary" min="0" max="100%" step="1" style="left: 1px; width: 55%;min-width: 90px;"
[(ngModel)]="colorDivSliderValue" (change)="colorDivSliderChange()" [disabled]="!isEditPattern"></mat-slider>
<span style="color: #9c9fa5;font-size: 12px;">{{colorDivSliderValue}}%</span>
</div> </div>
<div *ngFor="let item of PropertyInfos;index as key "> <!-- 数值 -->
<!-- 单行文本 --> <div *ngIf="item.PropertyType == 2">
<div *ngIf="item.PropertyType == 0"> <p>{{item.PropertyName}}<span style="font-size: 14px;"
<p>{{item.PropertyName}}<span style="font-size: 14px;" *ngIf="item.PhysicalUnit">({{item.PhysicalUnit}})</span></p> *ngIf="item.PhysicalUnit">({{item.PhysicalUnit}})</span></p>
<input type="text" class="biginput" [value]="item.PropertyValue" (input)="assetInputChange(item,$event)" [disabled]="!isEditPattern"> <input type="number" class="biginput" [value]="item.PropertyValue"
</div> (input)="assetInputChange(item,$event)" [disabled]="!isEditPattern">
<!-- 多行文本 --> </div>
<div *ngIf="item.PropertyType == 1"> <!-- 图片数量 -->
<p>{{item.PropertyName}}<span style="font-size: 14px;" *ngIf="item.PhysicalUnit">({{item.PhysicalUnit}})</span></p> <div *ngIf="item.PropertyType == 4" style="height: 140px;">
<textarea class="textarea" name="" id="" [value]="item.PropertyValue" (input)="assetInputChange(item,$event)" [disabled]="!isEditPattern"></textarea> <div style="position: relative;width: 100%;height: 21px;margin: 1px 0;">
</div> <p style="width: 40%;display: inline-block;">{{item.PropertyName}}</p>
<!-- 数值 --> <span style="width: 26%;text-align:right;font-size: 13px;">{{imagesArr.length ? imagesArr.length : 0}}
<div *ngIf="item.PropertyType == 2"> / {{item.PropertyValue}}</span>
<p>{{item.PropertyName}}<span style="font-size: 14px;" *ngIf="item.PhysicalUnit">({{item.PhysicalUnit}})</span></p> <input id="inputimg" [disabled]="!isEditPattern" *ngIf="isImgNumCss" accept="image/*"
<input type="number" class="biginput" [value]="item.PropertyValue" (input)="assetInputChange(item,$event)" [disabled]="!isEditPattern"> (change)="selectFile($event)" type="file"
</div> style="width: 33%;position: absolute;right: 10px;top: 1px;opacity: 0;z-index: 100;cursor: pointer;height: 21px;">
<!-- 图片数量 --> <div
<div *ngIf="item.PropertyType == 4" style="height: 140px;"> style="width: 33%;height: 21px;line-height: 21px;text-align: center;position: absolute;right: 10px;top: 1px;z-index: 99;border: 1px solid rgb(208, 211, 214);border-radius: 2px;font-size: 13px;cursor: pointer;"
<div style="position: relative;width: 100%;height: 21px;margin: 1px 0;"> (click)="imgNumBeyond()">添加</div>
<p style="width: 40%;display: inline-block;">{{item.PropertyName}}</p>
<span style="width: 26%;text-align:right;font-size: 13px;">{{imagesArr.length ? imagesArr.length : 0}} / {{item.PropertyValue}}</span>
<input id="inputimg" [disabled]="!isEditPattern" *ngIf="isImgNumCss" accept="image/*" (change)="selectFile($event)" type="file" style="width: 33%;position: absolute;right: 10px;top: 1px;opacity: 0;z-index: 100;cursor: pointer;height: 21px;"> <div
<div style="width: 33%;height: 21px;line-height: 21px;text-align: center;position: absolute;right: 10px;top: 1px;z-index: 99;border: 1px solid rgb(208, 211, 214);border-radius: 2px;font-size: 13px;cursor: pointer;" (click)="imgNumBeyond()">添加</div> style="position: relative;;width: 89%;border:1px solid rgb(208, 211, 214);height: 100px;margin: 6px auto;"
class="swiper-container">
<div id="viewerjs" class="swiper-wrapper" [ngClass]="{'noImgCss': imagesArr.length == 0}">
<div style="position: relative;;width: 89%;border:1px solid rgb(208, 211, 214);height: 100px;margin: 6px auto;" class="swiper-container"> <div class="swiper-slide" style="text-align: center;" *ngFor="let img of imagesArr"><img
<div id="viewerjs" class="swiper-wrapper" [ngClass]="{'noImgCss': imagesArr.length == 0}"> [src]="img.PropertyValue + '?x-oss-process=image/resize,m_fixed,h_100,w_100'" alt=""
<div class="swiper-slide" style="text-align: center;" *ngFor="let img of imagesArr"><img [src]="img.PropertyValue + '?x-oss-process=image/resize,m_fixed,h_100,w_100'" alt="" [attr.data-original]="img.PropertyValue"></div> [attr.data-original]="img.PropertyValue"></div>
</div>
<!-- 如果需要导航按钮 -->
<div class="swiper-button-next"></div>
<div class="swiper-button-prev"></div>
<span style="position: absolute;right: 2px;top: 2px;cursor: pointer;z-index: 200;" *ngIf="isEditPattern">
<mat-icon class="hoverred" (click)="deleteImg()">delete</mat-icon>
</span>
</div> </div>
<!-- 如果需要导航按钮 -->
<div class="swiper-button-next"></div>
<div class="swiper-button-prev"></div>
<span style="position: absolute;right: 2px;top: 2px;cursor: pointer;z-index: 200;"
*ngIf="isEditPattern">
<mat-icon class="hoverred" (click)="deleteImg()">delete</mat-icon>
</span>
</div> </div>
</div> </div>
<!-- 方向 --> </div>
<div *ngIf="item.PropertyType == 5" class="selectDiv"> <!-- 方向 -->
<p style="display: inline-block;">{{item.PropertyName}}</p> <div *ngIf="item.PropertyType == 5" class="selectDiv">
<select (change)="direction(item,$event)" [disabled]="!isEditPattern"> <p style="display: inline-block;">{{item.PropertyName}}</p>
<option value ="0" [selected]="item.PropertyValue =='0'"></option> <select (change)="direction(item,$event)" [disabled]="!isEditPattern">
<option value ="1" [selected]="item.PropertyValue =='1'">西</option> <option value="0" [selected]="item.PropertyValue =='0'"></option>
<option value ="2" [selected]="item.PropertyValue =='2'"></option> <option value="1" [selected]="item.PropertyValue =='1'">西</option>
<option value ="3" [selected]="item.PropertyValue =='3'"></option> <option value="2" [selected]="item.PropertyValue =='2'"></option>
<option value ="4" [selected]="item.PropertyValue =='4'">东南</option> <option value="3" [selected]="item.PropertyValue =='3'"></option>
<option value ="5" [selected]="item.PropertyValue =='5'">西南</option> <option value="4" [selected]="item.PropertyValue =='4'">东南</option>
<option value ="6" [selected]="item.PropertyValue =='6'">东北</option> <option value="5" [selected]="item.PropertyValue =='5'">西南</option>
<option value ="7" [selected]="item.PropertyValue =='7'">西北</option> <option value="6" [selected]="item.PropertyValue =='6'">东北</option>
</select> <option value="7" [selected]="item.PropertyValue =='7'">西北</option>
</div> </select>
<!-- 布尔值 是1或否0 --> </div>
<div *ngIf="item.PropertyType == 6"> <!-- 布尔值 是1或否0 -->
<p>{{item.PropertyName}}</p> <div *ngIf="item.PropertyType == 6">
<input [disabled]="!isEditPattern" [checked]="item.PropertyValue == '1'" class="input" type="radio" name="radio" (click)="assetRadioChange(item,'1')"><span></span> <p>{{item.PropertyName}}</p>
<input [disabled]="!isEditPattern" [checked]="item.PropertyValue == '0'" class="input" type="radio" name="radio" (click)="assetRadioChange(item,'0')"><span></span> <input [disabled]="!isEditPattern" [checked]="item.PropertyValue == '1'" class="input" type="radio"
</div> name="radio" (click)="assetRadioChange(item,'1')"><span></span>
<!-- 供给区域 --> <input [disabled]="!isEditPattern" [checked]="item.PropertyValue == '0'" class="input" type="radio"
<div *ngIf="item.PropertyType == 7" class="selectDiv"> name="radio" (click)="assetRadioChange(item,'0')"><span></span>
<p style="display: inline-block;">{{item.PropertyName}}</p> </div>
<select (change)="supplyArea(item,$event)" [disabled]="!isEditPattern"> <!-- 供给区域 -->
<option value ="0" [selected]="item.PropertyValue =='0'">全部</option> <div *ngIf="item.PropertyType == 7" class="selectDiv">
<option value ="1" [selected]="item.PropertyValue =='1'">高区</option> <p style="display: inline-block;">{{item.PropertyName}}</p>
<option value ="2" [selected]="item.PropertyValue =='2'">中区</option> <select (change)="supplyArea(item,$event)" [disabled]="!isEditPattern">
<option value ="3" [selected]="item.PropertyValue =='3'">低区</option> <option value="0" [selected]="item.PropertyValue =='0'">全部</option>
<option value ="4" [selected]="item.PropertyValue =='4'">高中区</option> <option value="1" [selected]="item.PropertyValue =='1'">高区</option>
<option value ="5" [selected]="item.PropertyValue =='5'">高低区</option> <option value="2" [selected]="item.PropertyValue =='2'">中区</option>
<option value ="6" [selected]="item.PropertyValue =='6'">中低区</option> <option value="3" [selected]="item.PropertyValue =='3'">低区</option>
</select> <option value="4" [selected]="item.PropertyValue =='4'">高中区</option>
</div> <option value="5" [selected]="item.PropertyValue =='5'">高低区</option>
<!-- 供给类型 --> <option value="6" [selected]="item.PropertyValue =='6'">中低区</option>
<div *ngIf="item.PropertyType == 8" class="selectDiv"> </select>
<p style="display: inline-block;">{{item.PropertyName}}</p> </div>
<select (change)="supplyType(item,$event)" value="4" [disabled]="!isEditPattern"> <!-- 供给类型 -->
<option value ="0" [selected]="item.PropertyValue =='0'">消火栓</option> <div *ngIf="item.PropertyType == 8" class="selectDiv">
<option value ="1" [selected]="item.PropertyValue =='1'">喷淋</option> <p style="display: inline-block;">{{item.PropertyName}}</p>
<option value ="2" [selected]="item.PropertyValue =='2'">水幕</option> <select (change)="supplyType(item,$event)" value="4" [disabled]="!isEditPattern">
<option value ="3" [selected]="item.PropertyValue =='3'">泡沫</option> <option value="0" [selected]="item.PropertyValue =='0'">消火栓</option>
<option value ="4" [selected]="item.PropertyValue =='4'">消防</option> <option value="1" [selected]="item.PropertyValue =='1'">喷淋</option>
</select> <option value="2" [selected]="item.PropertyValue =='2'">水幕</option>
</div> <option value="3" [selected]="item.PropertyValue =='3'">泡沫</option>
</div> <option value="4" [selected]="item.PropertyValue =='4'">消防</option>
</select>
</div>
</div> </div>
<!-- 框选多个素材属性 -->
<div class="assetsproperty" style="user-select: none" *ngIf="isShowProperty && isMultipleAsset"> </div>
<div *ngIf="multipleAsset.InteractiveMode == 0"> <!-- 框选多个素材属性 -->
<p>宽度(像素)</p> <div class="assetsproperty" style="user-select: none" *ngIf="isShowProperty && isMultipleAsset">
<input type="number" class="biginput" [(ngModel)]="multipleAsset.Width" (input)="multipleAssetWidthInput()" [disabled]="!isEditPattern"> <div *ngIf="multipleAsset.InteractiveMode == 0">
<p>高度(像素)</p> <p>宽度(像素)</p>
<input type="number" class="biginput" [(ngModel)]="multipleAsset.Height" (input)="multipleAssetHeightInput()" [disabled]="!isEditPattern"> <input type="number" class="biginput" [(ngModel)]="multipleAsset.Width"
<p>角度</p> (input)="multipleAssetWidthInput()" [disabled]="!isEditPattern">
<div style="width: 100%;display: flex;vertical-align: top;height: 22px;"> <p>高度(像素)</p>
<input type="number" class="smallinput" [(ngModel)]="multipleAsset.Angle" <input type="number" class="biginput" [(ngModel)]="multipleAsset.Height"
oninput="if(value>360)value=360;if(value<0)value=0;" (input)="multipleAssetAngleInput()" [disabled]="!isEditPattern"> (input)="multipleAssetHeightInput()" [disabled]="!isEditPattern">
<mat-slider color="primary" min="0" max="360" step="1" style="bottom: 12px;left: 2px;width: 70%;" <p>角度</p>
[(ngModel)]="multipleAsset.Angle" (change)="multipleAssetAngleInput()" [disabled]="!isEditPattern"></mat-slider> <div style="width: 100%;display: flex;vertical-align: top;height: 22px;">
</div> <input type="number" class="smallinput" [(ngModel)]="multipleAsset.Angle"
oninput="if(value>360)value=360;if(value<0)value=0;" (input)="multipleAssetAngleInput()"
[disabled]="!isEditPattern">
<mat-slider color="primary" min="0" max="360" step="1" style="bottom: 12px;left: 2px;width: 70%;"
[(ngModel)]="multipleAsset.Angle" (change)="multipleAssetAngleInput()" [disabled]="!isEditPattern">
</mat-slider>
</div> </div>
<!-- 如果是多点连线 --> </div>
<div *ngIf="multipleAsset.InteractiveMode == 1 || multipleAsset.InteractiveMode == 3"> <!-- 如果是多点连线 -->
<p>厚度</p> <div *ngIf="multipleAsset.InteractiveMode == 1 || multipleAsset.InteractiveMode == 3">
<div style="width: 100%;display: flex;vertical-align: top;height: 22px;"> <p>厚度</p>
<input type="number" class="smallinput" [(ngModel)]="multipleAsset.Thickness" <div style="width: 100%;display: flex;vertical-align: top;height: 22px;">
oninput="if(value>999)value=999;if(value<0)value=0;" (input)="multipleAssetThicknessInput()" [disabled]="!isEditPattern"> <input type="number" class="smallinput" [(ngModel)]="multipleAsset.Thickness"
<mat-slider color="primary" min="0" max="999" step="1" style="bottom: 12px;left: 2px;width: 70%;" oninput="if(value>999)value=999;if(value<0)value=0;" (input)="multipleAssetThicknessInput()"
[(ngModel)]="multipleAsset.Thickness" (change)="multipleAssetThicknessInput()" [disabled]="!isEditPattern"></mat-slider> [disabled]="!isEditPattern">
</div> <mat-slider color="primary" min="0" max="999" step="1" style="bottom: 12px;left: 2px;width: 70%;"
[(ngModel)]="multipleAsset.Thickness" (change)="multipleAssetThicknessInput()"
[disabled]="!isEditPattern"></mat-slider>
</div> </div>
<div class="colorBigDiv" *ngIf="multipleAsset.FillMode == 0"> </div>
<div class="colorBigTemplateDiv"> <div class="colorBigDiv" *ngIf="multipleAsset.FillMode == 0">
<span>颜色</span> <div class="colorBigTemplateDiv">
<div class="colorTemplateDiv" [style]="{'background-color':selectedcolor}"> <span>颜色</span>
<div class="colorTemplateDiv" [style]="{'background-color':selectedcolor}">
</div>
</div>
<div class="colorDiv" *ngIf="isEditPattern">
<ul>
<li (click)="multipleAssetSelectcolor(item,key)" class="colorLi" *ngFor="let item of colors,let key=index" [style]="{'background-color':item}"></li>
</ul>
</div> </div>
<span style="color: #9c9fa5;font-size: 14px;">透明度</span>
<mat-slider color="primary" min="0" max="100%" step="1" style="left: 1px; width: 55%;min-width: 90px;"
[(ngModel)]="colorDivSliderValue" (change)="multipleColorDivSliderChange()" [disabled]="!isEditPattern"></mat-slider>
<span style="color: #9c9fa5;font-size: 12px;">{{colorDivSliderValue}}%</span>
</div> </div>
<div *ngFor="let item of multipleAsset.PropertyInfos;index as key "> <div class="colorDiv" *ngIf="isEditPattern">
<!-- 单行文本 --> <ul>
<div *ngIf="item.PropertyType == 0"> <li (click)="multipleAssetSelectcolor(item,key)" class="colorLi"
<p>{{item.PropertyName}}<span style="font-size: 14px;" *ngIf="item.PhysicalUnit">({{item.PhysicalUnit}})</span></p> *ngFor="let item of colors,let key=index" [style]="{'background-color':item}"></li>
<input type="text" class="biginput" [name]="item.PropertyName" [(ngModel)]="item.PropertyValue" (input)="multipleAssetInputChange(item,$event)" [disabled]="!isEditPattern"> </ul>
</div> </div>
<!-- 多行文本 --> <span style="color: #9c9fa5;font-size: 14px;">透明度</span>
<div *ngIf="item.PropertyType == 1"> <mat-slider color="primary" min="0" max="100%" step="1" style="left: 1px; width: 55%;min-width: 90px;"
<p>{{item.PropertyName}}<span style="font-size: 14px;" *ngIf="item.PhysicalUnit">({{item.PhysicalUnit}})</span></p> [(ngModel)]="colorDivSliderValue" (change)="multipleColorDivSliderChange()" [disabled]="!isEditPattern">
<textarea class="textarea" name="" id="" [(ngModel)]="item.PropertyValue" (input)="multipleAssetInputChange(item,$event)" [disabled]="!isEditPattern"></textarea> </mat-slider>
</div> <span style="color: #9c9fa5;font-size: 12px;">{{colorDivSliderValue}}%</span>
<!-- 数值 --> </div>
<div *ngIf="item.PropertyType == 2"> <div *ngFor="let item of multipleAsset.PropertyInfos;index as key ">
<p>{{item.PropertyName}}<span style="font-size: 14px;" *ngIf="item.PhysicalUnit">({{item.PhysicalUnit}})</span></p> <!-- 单行文本 -->
<input type="number" class="biginput" [(ngModel)]="item.PropertyValue" (input)="multipleAssetInputChange(item,$event)" [disabled]="!isEditPattern"> <div *ngIf="item.PropertyType == 0">
</div> <p>{{item.PropertyName}}<span style="font-size: 14px;"
<!-- 方向 --> *ngIf="item.PhysicalUnit">({{item.PhysicalUnit}})</span></p>
<!-- <div *ngIf="item.PropertyType == 5 " class="selectDiv"> <input type="text" class="biginput" [name]="item.PropertyName" [(ngModel)]="item.PropertyValue"
(input)="multipleAssetInputChange(item,$event)" [disabled]="!isEditPattern">
</div>
<!-- 多行文本 -->
<div *ngIf="item.PropertyType == 1">
<p>{{item.PropertyName}}<span style="font-size: 14px;"
*ngIf="item.PhysicalUnit">({{item.PhysicalUnit}})</span></p>
<textarea class="textarea" name="" id="" [(ngModel)]="item.PropertyValue"
(input)="multipleAssetInputChange(item,$event)" [disabled]="!isEditPattern"></textarea>
</div>
<!-- 数值 -->
<div *ngIf="item.PropertyType == 2">
<p>{{item.PropertyName}}<span style="font-size: 14px;"
*ngIf="item.PhysicalUnit">({{item.PhysicalUnit}})</span></p>
<input type="number" class="biginput" [(ngModel)]="item.PropertyValue"
(input)="multipleAssetInputChange(item,$event)" [disabled]="!isEditPattern">
</div>
<!-- 方向 -->
<!-- <div *ngIf="item.PropertyType == 5 " class="selectDiv">
<p style="display: inline-block;">{{item.PropertyName}}</p> <p style="display: inline-block;">{{item.PropertyName}}</p>
<select [(ngModel)]="item.PropertyValue" (change)="direction(item,$event)" [disabled]="!isEditPattern"> <select [(ngModel)]="item.PropertyValue" (change)="direction(item,$event)" [disabled]="!isEditPattern">
<option value ="0" [selected]="item.PropertyValue =='0'"></option> <option value ="0" [selected]="item.PropertyValue =='0'"></option>
@ -380,87 +436,99 @@
<option value ="7" [selected]="item.PropertyValue =='7'">西北</option> <option value ="7" [selected]="item.PropertyValue =='7'">西北</option>
</select> </select>
</div> --> </div> -->
<!-- 布尔值 是1或否0 --> <!-- 布尔值 是1或否0 -->
<div *ngIf="item.PropertyType == 6"> <div *ngIf="item.PropertyType == 6">
<p>{{item.PropertyName}}</p> <p>{{item.PropertyName}}</p>
<input value='1' [(ngModel)]="item.PropertyValue" [disabled]="!isEditPattern" class="input" type="radio" name="radio" (click)="multipleAssetRadioChange(item,'1')"><span></span> <input value='1' [(ngModel)]="item.PropertyValue" [disabled]="!isEditPattern" class="input" type="radio"
<input value='0' [(ngModel)]="item.PropertyValue" [disabled]="!isEditPattern" class="input" type="radio" name="radio" (click)="multipleAssetRadioChange(item,'0')"><span></span> name="radio" (click)="multipleAssetRadioChange(item,'1')"><span></span>
</div> <input value='0' [(ngModel)]="item.PropertyValue" [disabled]="!isEditPattern" class="input" type="radio"
<!-- 供给区域 --> name="radio" (click)="multipleAssetRadioChange(item,'0')"><span></span>
<div *ngIf="item.PropertyType == 7" class="selectDiv"> </div>
<p style="display: inline-block;">{{item.PropertyName}}</p> <!-- 供给区域 -->
<select [(ngModel)]="item.PropertyValue" (change)="multipleSupplyArea(item,$event)" [disabled]="!isEditPattern"> <div *ngIf="item.PropertyType == 7" class="selectDiv">
<option value ="0">全部</option> <p style="display: inline-block;">{{item.PropertyName}}</p>
<option value ="1">高区</option> <select [(ngModel)]="item.PropertyValue" (change)="multipleSupplyArea(item,$event)"
<option value ="2">中区</option> [disabled]="!isEditPattern">
<option value ="3">低区</option> <option value="0">全部</option>
<option value ="4">高中区</option> <option value="1">高区</option>
<option value ="5">高低区</option> <option value="2">中区</option>
<option value ="6">中低区</option> <option value="3">低区</option>
</select> <option value="4">高中区</option>
</div> <option value="5">高低区</option>
<!-- 供给类型 --> <option value="6">中低区</option>
<div *ngIf="item.PropertyType == 8" class="selectDiv"> </select>
<p style="display: inline-block;">{{item.PropertyName}}</p> </div>
<select [(ngModel)]="item.PropertyValue" (change)="multipleSupplyArea(item,$event)" [disabled]="!isEditPattern"> <!-- 供给类型 -->
<option value ="0">消火栓</option> <div *ngIf="item.PropertyType == 8" class="selectDiv">
<option value ="1">喷淋</option> <p style="display: inline-block;">{{item.PropertyName}}</p>
<option value ="2">水幕</option> <select [(ngModel)]="item.PropertyValue" (change)="multipleSupplyArea(item,$event)"
<option value ="3">泡沫</option> [disabled]="!isEditPattern">
<option value ="4">消防</option> <option value="0">消火栓</option>
</select> <option value="1">喷淋</option>
</div> <option value="2">水幕</option>
<option value="3">泡沫</option>
<option value="4">消防</option>
</select>
</div> </div>
</div> </div>
</div> </div>
<!-- 消防要素 --> </div>
<div id="firecategories" class="firecategories" style="height: 50%;"> <!-- 消防要素 -->
<!-- 素材属性div鼠标拖动div --> <div id="firecategories" class="firecategories" style="height: 50%;">
<div style="height:3px;width: 100%;position: absolute;top: 0;cursor: n-resize;z-index: 1000;" (mousedown)="firecategoriesDivMouseDown($event)"></div> <!-- 素材属性div鼠标拖动div -->
<div style="height:3px;width: 100%;position: absolute;top: 0;cursor: n-resize;z-index: 1000;"
<div class="title"> (mousedown)="firecategoriesDivMouseDown($event)"></div>
<div>
<span style="user-select: none">消防要素</span> <div class="title">
</div> <div>
<span style="user-select: none">消防要素</span>
</div> </div>
</div>
<div class="firecategoriesTree"> <div class="firecategoriesTree">
<div class="hideAllTreeNode" (click)='toggoleAllTreenode()' *ngIf="allFireElements.length"><label>全部显示/隐藏</label><mat-icon [ngClass]="{'icongray': hideAllTreenode == false}">visibility</mat-icon></div> <div class="hideAllTreeNode" (click)='toggoleAllTreenode()' *ngIf="allFireElements.length">
<!-- 消防列表树写在这里 --> <label>全部显示/隐藏</label>
<mat-tree [dataSource]="dataSource" [treeControl]="treeControl" > <mat-icon [ngClass]="{'icongray': hideAllTreenode == false}">visibility</mat-icon>
<mat-tree-node [ngClass]="{'isLookPattern': !node.isLookPattern && !isEditPattern}" *matTreeNodeDef="let node;" matTreeNodePadding cdkTreeNodePaddingIndent='26' (click)="clickTreeNode(node)" >
<button mat-icon-button disabled></button>
<span title="{{node.name}}" [ngClass]="{'treeText': !node.isTemplate}">
{{node.name}}
</span>
<span *ngIf="node.isTemplate">({{node.children.length}})</span>
<span class="isLookCss" (click)="clickLookItem(node)"><mat-icon [ngClass]="{'icongray': node.isLook == false}">visibility</mat-icon></span>
</mat-tree-node>
<mat-tree-node [ngClass]="{'isLookPattern': !node.isLookPattern && !isEditPattern}" *matTreeNodeDef="let node;when: hasChild" matTreeNodePadding (click)="clickTreeNode(node)">
<button mat-icon-button
matTreeNodeToggle
[attr.aria-label]="'toggle ' + node.name">
<mat-icon class="mat-icon-rtl-mirror">
{{treeControl.isExpanded(node) ? 'expand_more' : 'chevron_right'}}
</mat-icon>
</button>
<span title="{{node.name}}" [ngClass]="{'treeText': !node.isTemplate}">
{{node.name}}
</span>
<span *ngIf="node.isTemplate && node.isNewElement">({{node.children.length}})</span>
<span class="isLookCss" (click)="clickLookItem(node)"><mat-icon [ngClass]="{'icongray': node.isLook == false}">visibility</mat-icon></span>
</mat-tree-node>
</mat-tree>
</div> </div>
<!-- 消防列表树写在这里 -->
<mat-tree [dataSource]="dataSource" [treeControl]="treeControl">
<mat-tree-node [ngClass]="{'isLookPattern': !node.isLookPattern && !isEditPattern}"
*matTreeNodeDef="let node;" matTreeNodePadding cdkTreeNodePaddingIndent='26'
(click)="clickTreeNode(node)">
<button mat-icon-button disabled></button>
<span title="{{node.name}}" [ngClass]="{'treeText': !node.isTemplate}">
{{node.name}}
</span>
<span *ngIf="node.isTemplate">({{node.children.length}})</span>
<span class="isLookCss" (click)="clickLookItem(node)">
<mat-icon [ngClass]="{'icongray': node.isLook == false}">visibility</mat-icon>
</span>
</mat-tree-node>
<mat-tree-node [ngClass]="{'isLookPattern': !node.isLookPattern && !isEditPattern}"
*matTreeNodeDef="let node;when: hasChild" matTreeNodePadding (click)="clickTreeNode(node)">
<button mat-icon-button matTreeNodeToggle [attr.aria-label]="'toggle ' + node.name">
<mat-icon class="mat-icon-rtl-mirror">
{{treeControl.isExpanded(node) ? 'expand_more' : 'chevron_right'}}
</mat-icon>
</button>
<span title="{{node.name}}" [ngClass]="{'treeText': !node.isTemplate}">
{{node.name}}
</span>
<span *ngIf="node.isTemplate && node.isNewElement">({{node.children.length}})</span>
<span class="isLookCss" (click)="clickLookItem(node)">
<mat-icon [ngClass]="{'icongray': node.isLook == false}">visibility</mat-icon>
</span>
</mat-tree-node>
</mat-tree>
</div> </div>
</div> </div>
</div> </div>
<!--功能区 --> </div>
<!--功能区 -->
</div> </div>
</div> </div>

1324
src/app/ui/collection-tools-building/collection-tools.component.ts

File diff suppressed because it is too large Load Diff

1321
src/app/ui/collection-tools/collection-tools.component.ts

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save