Browse Source

[完善]完善素材属性中单选判断

develop
邵佳豪 4 years ago
parent
commit
c3ea8cced5
  1. 44
      src/app/ui/collection-tools/collection-tools.component.html

44
src/app/ui/collection-tools/collection-tools.component.html

@ -242,44 +242,44 @@
<div *ngIf="item.PropertyType == 5" class="selectDiv"> <div *ngIf="item.PropertyType == 5" class="selectDiv">
<p style="display: inline-block;">{{item.PropertyName}}</p> <p style="display: inline-block;">{{item.PropertyName}}</p>
<select (change)="direction(item,$event)" [disabled]="!isEditPattern"> <select (change)="direction(item,$event)" [disabled]="!isEditPattern">
<option value ="0" [selected]="item.PropertyValue ==0"></option> <option value ="0" [selected]="item.PropertyValue =='0'"></option>
<option value ="1" [selected]="item.PropertyValue ==1">西</option> <option value ="1" [selected]="item.PropertyValue =='1'">西</option>
<option value ="2" [selected]="item.PropertyValue ==2"></option> <option value ="2" [selected]="item.PropertyValue =='2'"></option>
<option value ="3" [selected]="item.PropertyValue ==3"></option> <option value ="3" [selected]="item.PropertyValue =='3'"></option>
<option value ="4" [selected]="item.PropertyValue ==4">东南</option> <option value ="4" [selected]="item.PropertyValue =='4'">东南</option>
<option value ="5" [selected]="item.PropertyValue ==5">西南</option> <option value ="5" [selected]="item.PropertyValue =='5'">西南</option>
<option value ="6" [selected]="item.PropertyValue ==6">东北</option> <option value ="6" [selected]="item.PropertyValue =='6'">东北</option>
<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 [disabled]="!isEditPattern" [checked]="item.PropertyValue == 1" class="input" type="radio" name="radio" (click)="assetRadioChange(item,'1')"><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> <input [disabled]="!isEditPattern" [checked]="item.PropertyValue == '0'" class="input" type="radio" name="radio" (click)="assetRadioChange(item,'0')"><span></span>
</div> </div>
<!-- 供给区域 --> <!-- 供给区域 -->
<div *ngIf="item.PropertyType == 7" class="selectDiv"> <div *ngIf="item.PropertyType == 7" class="selectDiv">
<p style="display: inline-block;">{{item.PropertyName}}</p> <p style="display: inline-block;">{{item.PropertyName}}</p>
<select (change)="supplyArea(item,$event)" [disabled]="!isEditPattern"> <select (change)="supplyArea(item,$event)" [disabled]="!isEditPattern">
<option value ="0" [selected]="item.PropertyValue ==0">全部</option> <option value ="0" [selected]="item.PropertyValue =='0'">全部</option>
<option value ="1" [selected]="item.PropertyValue ==1">高区</option> <option value ="1" [selected]="item.PropertyValue =='1'">高区</option>
<option value ="2" [selected]="item.PropertyValue ==2">中区</option> <option value ="2" [selected]="item.PropertyValue =='2'">中区</option>
<option value ="3" [selected]="item.PropertyValue ==3">低区</option> <option value ="3" [selected]="item.PropertyValue =='3'">低区</option>
<option value ="4" [selected]="item.PropertyValue ==4">高中区</option> <option value ="4" [selected]="item.PropertyValue =='4'">高中区</option>
<option value ="5" [selected]="item.PropertyValue ==5">高低区</option> <option value ="5" [selected]="item.PropertyValue =='5'">高低区</option>
<option value ="6" [selected]="item.PropertyValue ==6">中低区</option> <option value ="6" [selected]="item.PropertyValue =='6'">中低区</option>
</select> </select>
</div> </div>
<!-- 供给类型 --> <!-- 供给类型 -->
<div *ngIf="item.PropertyType == 8" class="selectDiv"> <div *ngIf="item.PropertyType == 8" class="selectDiv">
<p style="display: inline-block;">{{item.PropertyName}}</p> <p style="display: inline-block;">{{item.PropertyName}}</p>
<select (change)="supplyType(item,$event)" value="4" [disabled]="!isEditPattern"> <select (change)="supplyType(item,$event)" value="4" [disabled]="!isEditPattern">
<option value ="0" [selected]="item.PropertyValue ==0">消火栓</option> <option value ="0" [selected]="item.PropertyValue =='0'">消火栓</option>
<option value ="1" [selected]="item.PropertyValue ==1">喷淋</option> <option value ="1" [selected]="item.PropertyValue =='1'">喷淋</option>
<option value ="2" [selected]="item.PropertyValue ==2">水幕</option> <option value ="2" [selected]="item.PropertyValue =='2'">水幕</option>
<option value ="3" [selected]="item.PropertyValue ==3">泡沫</option> <option value ="3" [selected]="item.PropertyValue =='3'">泡沫</option>
<option value ="4" [selected]="item.PropertyValue ==4">消防</option> <option value ="4" [selected]="item.PropertyValue =='4'">消防</option>
</select> </select>
</div> </div>
</div> </div>

Loading…
Cancel
Save