Commit 9678c8be authored by 李维's avatar 李维

完成热区配置

parent ab64f8b3
......@@ -14,14 +14,7 @@
<h2 style="margin-top: 10px;">热区内容配置:</h2>
<div style="font-size: 16px; border: 2px solid #ccc; border-radius: 10px; padding: 10px;">
<div *ngFor="let it of item.hotZoneConfigArr; let i = index" style="border: 2px dashed #ddd; border-radius: 5px; padding: 10px; margin-bottom: 10px; position: relative;">
<span style="position: absolute; right: 50px; top: 10px; font-size: 64px;">{{i + 1}}</span>
<div style="margin: 10px 10px;">
<span style="display: inline-block; text-align: right; width: 100px;">关联热区:</span>
<nz-select [(ngModel)]="it.linkHotZoneIndex" style="width: 50px;" (ngModelChange)="save()">
<nz-option *ngFor="let itOption of item.hotZoneItemArr" [nzValue]="itOption.index" [nzLabel]="itOption.index + 1"></nz-option>
</nz-select>
<span style="margin-left: 10px;">热区名:{{item.hotZoneItemArr && item.hotZoneItemArr[it.linkHotZoneIndex] ? item.hotZoneItemArr[it.linkHotZoneIndex].itemName : "未配置"}}</span>
</div>
<span style="position: absolute; right: 50px; top: 0px; font-size: 42px; font-weight: bold;">{{i + 1}}</span>
<div style="margin: 10px 10px;">
<span style="display: inline-block; text-align: right; width: 100px;">热区内容:</span>
<nz-select [(ngModel)]="it.hotZoneType" style="width: 100px;" (ngModelChange)="save()">
......@@ -113,6 +106,13 @@
<span style="display: inline-block; text-align: right; width: 100px;">正确文字:</span>
<input type="text" nz-input [(ngModel)]="it.inputText" (blur)="save" style="display: inline-block; width: 300px;">
</div>
<div *ngIf="it.hotZoneType != '3'" style="margin: 10px 10px;">
<span style="display: inline-block; text-align: right; width: 100px;">关联热区:</span>
<nz-select [(ngModel)]="it.linkHotZoneIndex" style="width: 50px;" (ngModelChange)="save()">
<nz-option *ngFor="let itOption of item.hotZoneItemArr" [nzValue]="itOption.index" [nzLabel]="itOption.index + 1"></nz-option>
</nz-select>
<span style="margin-left: 10px;">热区名:{{item.hotZoneItemArr && item.hotZoneItemArr[it.linkHotZoneIndex] ? item.hotZoneItemArr[it.linkHotZoneIndex].itemName : "未配置"}}</span>
</div>
<div style="margin: 10px 10px;">
<span style="display: inline-block; text-align: right; width: 100px;">分数:</span>
<input type="text" nz-input [(ngModel)]="it.score" (blur)="save" style="display: inline-block; width: 150px;">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment