Commit df33b9cf authored by limingzhe's avatar limingzhe

fix: debug

parent 2eb8e01a
......@@ -237,6 +237,40 @@
</div>
<div style="margin-top: 30px;"></div>
<h2>标记组设置:</h2>
<div style="padding: 10px; border: 2px solid #ccc; border-radius: 10px; width: 350px;">
<div *ngFor="let hzItem of item.hotZoneItemArr; let i = index">
<div *ngIf="hzItem.gIdx == '4'" style="margin: 10px; display: flex; align-items: center;">
<div style="width: 300px; height: 70px; border: 1px solid #ccc; border-radius: 10px; padding: 5px; ">
<h3>item-{{i+1}}</h3>
<span>服务端标记区域:</span>
<a nz-dropdown [nzDropdownMenu]="menu4">
{{hzItem.signItem ? 'sign-item-' + hzItem.signItem : 'select signItem'}}
<i nz-icon nzType="down"></i>
</a>
<nz-dropdown-menu #menu4="nzDropdownMenu">
<ul nz-menu nzSelectable>
<div *ngFor="let temp of item.hotZoneItemArr2; let j = index" (click)="saveSignItem(hzItem, j+1)" >
<li *ngIf="temp.gIdx == '8' " nz-menu-item>sign-item-{{j+1}}</li>
</div>
</ul>
</nz-dropdown-menu>
</div>
</div>
</div>
</div>
<div style="margin-top: 30px; width: 200px; height: 50px; border: 1px solid #ccc ; border-radius: 5px; display: flex; align-items: center; justify-content: center;">
<label nz-checkbox [(ngModel)]="item.isGuide" (ngModelChange)="save()">首次引导</label>
......
......@@ -72,6 +72,13 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy, AfterViewIni
isCopy: true,
},
{
name: '标记区',
rect: true,
isShowPos: true,
isCopy: true,
anima: true,
},
......@@ -95,12 +102,12 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy, AfterViewIni
isCopy: true,
isShowPos: true,
centerDot: true,
// checkbox: {
// title: '答案',
// list: [
// {label: '正确', key: 'isRight'},
// ]
// },
checkbox: {
title: '答案',
list: [
{label: '正确', key: 'isRight'},
]
},
},
{
name: '书写Rect',
......@@ -146,6 +153,12 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy, AfterViewIni
rect: true,
isCopy: true,
},
{
name: '标记区域',
rect: true,
isCopy: true,
},
]
audioTypeArr = [
......@@ -254,6 +267,12 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy, AfterViewIni
this.save();
}
saveSignItem(hzItem, signItemId) {
hzItem.signItem = signItemId;
this.save();
}
addWrongAnswer() {
......
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