Commit 15fc7fe4 authored by limingzhe's avatar limingzhe

fix: debug

parent 5fcad87e
This diff is collapsed.
...@@ -165,7 +165,11 @@ ...@@ -165,7 +165,11 @@
{{'rect-item-' + hzItem.rectItem}} {{'rect-item-' + hzItem.rectItem}}
</label> </label>
<label *ngIf="!hzItem.rectNew && !hzItem.rectItem"> <label *ngIf="!hzItem.rectNew && !hzItem.rectItem && hzItem.rectNum">
{{'rect-num-' + hzItem.rectNum}}
</label>
<label *ngIf="!hzItem.rectNew && !hzItem.rectItem && !hzItem.rectNum">
{{'select rect'}} {{'select rect'}}
</label> </label>
...@@ -179,6 +183,9 @@ ...@@ -179,6 +183,9 @@
<div *ngFor="let temp of item.hotZoneItemArr2; let j = index" (click)="saveRectNew(hzItem, j+1)" > <div *ngFor="let temp of item.hotZoneItemArr2; let j = index" (click)="saveRectNew(hzItem, j+1)" >
<li *ngIf="temp.gIdx == '6' " nz-menu-item>rect-new-{{j+1}}</li> <li *ngIf="temp.gIdx == '6' " nz-menu-item>rect-new-{{j+1}}</li>
</div> </div>
<div *ngFor="let temp of item.hotZoneItemArr2; let j = index" (click)="saveRectNum(hzItem, j+1)" >
<li *ngIf="temp.gIdx == '10' " nz-menu-item>rect-num-{{j+1}}</li>
</div>
</ul> </ul>
</nz-dropdown-menu> </nz-dropdown-menu>
</div> </div>
......
...@@ -130,7 +130,7 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy, AfterViewIni ...@@ -130,7 +130,7 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy, AfterViewIni
}, },
}, },
{ {
name: '书写Rect', name: '书写Rect-废弃',
rect: true, rect: true,
label: '答案', label: '答案',
isCopy: true, isCopy: true,
...@@ -143,19 +143,19 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy, AfterViewIni ...@@ -143,19 +143,19 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy, AfterViewIni
}, },
{ {
name: '参照物1(标题)', name: '参照物1(标题)-废弃',
rect: true, rect: true,
label: '参照文本', label: '参照文本',
}, },
{ {
name: '参照物2(标题)', name: '参照物2(标题)-废弃',
rect: true, rect: true,
label: '参照文本', label: '参照文本',
}, },
{ {
name: '参照物2(字母)', name: '参照物2(字母)-废弃',
rect: true, rect: true,
label: '参照文本', label: '参照文本',
}, },
...@@ -197,6 +197,13 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy, AfterViewIni ...@@ -197,6 +197,13 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy, AfterViewIni
isCopy: true isCopy: true
// multRect : true // multRect : true
}, },
{
name: '数字区',
rect: true,
label: '字母',
isCopy: true,
},
] ]
audioTypeArr = [ audioTypeArr = [
...@@ -381,13 +388,25 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy, AfterViewIni ...@@ -381,13 +388,25 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy, AfterViewIni
} }
saveRectItem(hzItem, rectItemId) { saveRectItem(hzItem, rectItemId) {
this.cleanOldRect(hzItem);
hzItem.rectItem = rectItemId; hzItem.rectItem = rectItemId;
this.save(); this.save();
} }
saveRectNew(hzItem, rectItemId) { saveRectNew(hzItem, rectItemId) {
this.cleanOldRect(hzItem);
hzItem.rectNew = rectItemId; hzItem.rectNew = rectItemId;
this.save(); this.save();
} }
saveRectNum(hzItem, rectItemId) {
this.cleanOldRect(hzItem);
hzItem.rectNum = rectItemId;
this.save();
}
cleanOldRect(hzItem) {
hzItem.rectItem = null;
hzItem.rectNew = null;
hzItem.rectNum = null;
}
saveCircleItem(hzItem, rectItemId) { saveCircleItem(hzItem, rectItemId) {
hzItem.circleItem = rectItemId; hzItem.circleItem = rectItemId;
......
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