|
|
|
@ -168,21 +168,21 @@
|
|
|
|
|
|
|
|
|
|
<div *ngIf="canvasAssetObj.FixedSize"> |
|
|
|
|
<p>宽度(像素)</p> |
|
|
|
|
<input type="text" class="biginput" [(ngModel)]="assetWidth" (input)="assetWidthIunput()"> |
|
|
|
|
<input type="text" class="biginput" [(ngModel)]="assetWidth" (input)="assetWidthIunput()" [disabled]="!isEditPattern"> |
|
|
|
|
<p>高度(像素)</p> |
|
|
|
|
<input type="text" class="biginput" [(ngModel)]="assetHeight" (input)="assetHeightIunput()"> |
|
|
|
|
<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()"> |
|
|
|
|
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()"></mat-slider> |
|
|
|
|
[(ngModel)]="sliderValue" (change)="assetAngleIunput()" [disabled]="!isEditPattern"></mat-slider> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<p style="margin-top: 4px;margin-bottom: 0px;">是否高亮</p> |
|
|
|
|
<div> |
|
|
|
|
<input class="input" [(ngModel)]="isHighLight" type="checkbox"> |
|
|
|
|
<input class="input" [(ngModel)]="isHighLight" type="checkbox" [disabled]="!isEditPattern"> |
|
|
|
|
<span style="font-size: 14px;">选中高亮</span> |
|
|
|
|
</div> |
|
|
|
|
<div class="colorBigDiv" *ngIf="canvasAssetObj.FillMode == 0"> |
|
|
|
@ -192,38 +192,38 @@
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="colorDiv"> |
|
|
|
|
<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()"></mat-slider> |
|
|
|
|
[(ngModel)]="colorDivSliderValue" (change)="colorDivSliderChange()" [disabled]="!isEditPattern"></mat-slider> |
|
|
|
|
<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)"> |
|
|
|
|
<input type="text" class="biginput" [value]="item.PropertyValue" (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> |
|
|
|
|
<textarea class="textarea" name="" id="" [value]="item.PropertyValue" (input)="assetInputChange(item,$event)"></textarea> |
|
|
|
|
<textarea class="textarea" name="" id="" [value]="item.PropertyValue" (input)="assetInputChange(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" [value]="item.PropertyValue" (input)="assetInputChange(item,$event)"> |
|
|
|
|
<input type="number" class="biginput" [value]="item.PropertyValue" (input)="assetInputChange(item,$event)" [disabled]="!isEditPattern"> |
|
|
|
|
</div> |
|
|
|
|
<!-- 图片数量 --> |
|
|
|
|
<div *ngIf="item.PropertyType == 4" style="height: 140px;"> |
|
|
|
|
<div style="position: relative;width: 100%;height: 21px;margin: 1px 0;"> |
|
|
|
|
<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 *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;"> |
|
|
|
|
<input [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;"> |
|
|
|
|
<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> |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -234,7 +234,7 @@
|
|
|
|
|
<!-- 如果需要导航按钮 --> |
|
|
|
|
<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;"> |
|
|
|
|
<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> |
|
|
|
@ -243,7 +243,7 @@
|
|
|
|
|
<!-- 方向 --> |
|
|
|
|
<div *ngIf="item.PropertyType == 5" class="selectDiv"> |
|
|
|
|
<p style="display: inline-block;">{{item.PropertyName}}</p> |
|
|
|
|
<select (change)="direction(item,$event)"> |
|
|
|
|
<select (change)="direction(item,$event)" [disabled]="!isEditPattern"> |
|
|
|
|
<option value ="0" [selected]="item.PropertyValue ==0">东</option> |
|
|
|
|
<option value ="1" [selected]="item.PropertyValue ==1">西</option> |
|
|
|
|
<option value ="2" [selected]="item.PropertyValue ==2">南</option> |
|
|
|
@ -257,13 +257,13 @@
|
|
|
|
|
<!-- 布尔值 是1或否0 --> |
|
|
|
|
<div *ngIf="item.PropertyType == 6"> |
|
|
|
|
<p>{{item.PropertyName}}</p> |
|
|
|
|
<input [checked]="item.PropertyValue == 1" class="input" type="radio" name="radio" (click)="assetRadioChange(item,'1')"><span>是</span> |
|
|
|
|
<input [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" name="radio" (click)="assetRadioChange(item,'1')"><span>是</span> |
|
|
|
|
<input [disabled]="!isEditPattern" [checked]="item.PropertyValue == 0" class="input" type="radio" name="radio" (click)="assetRadioChange(item,'0')"><span>否</span> |
|
|
|
|
</div> |
|
|
|
|
<!-- 供给区域 --> |
|
|
|
|
<div *ngIf="item.PropertyType == 7" class="selectDiv"> |
|
|
|
|
<p style="display: inline-block;">{{item.PropertyName}}</p> |
|
|
|
|
<select (change)="supplyArea(item,$event)"> |
|
|
|
|
<select (change)="supplyArea(item,$event)" [disabled]="!isEditPattern"> |
|
|
|
|
<option value ="0" [selected]="item.PropertyValue ==0">全部</option> |
|
|
|
|
<option value ="1" [selected]="item.PropertyValue ==1">高区</option> |
|
|
|
|
<option value ="2" [selected]="item.PropertyValue ==2">中区</option> |
|
|
|
@ -276,7 +276,7 @@
|
|
|
|
|
<!-- 供给类型 --> |
|
|
|
|
<div *ngIf="item.PropertyType == 8" class="selectDiv"> |
|
|
|
|
<p style="display: inline-block;">{{item.PropertyName}}</p> |
|
|
|
|
<select (change)="supplyType(item,$event)" value="4"> |
|
|
|
|
<select (change)="supplyType(item,$event)" value="4" [disabled]="!isEditPattern"> |
|
|
|
|
<option value ="0" [selected]="item.PropertyValue ==0">消火栓</option> |
|
|
|
|
<option value ="1" [selected]="item.PropertyValue ==1">喷淋</option> |
|
|
|
|
<option value ="2" [selected]="item.PropertyValue ==2">水幕</option> |
|
|
|
|