Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OP72
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
template admin
OP72
Commits
15fc7fe4
Commit
15fc7fe4
authored
Mar 27, 2023
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: debug
parent
5fcad87e
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
5 deletions
+37
-5
OP72.js
assets/OP72/scene/OP72.js
+6
-0
form.component.html
form/src/app/form/form.component.html
+8
-1
form.component.ts
form/src/app/form/form.component.ts
+23
-4
No files found.
assets/OP72/scene/OP72.js
View file @
15fc7fe4
This diff is collapsed.
Click to expand it.
form/src/app/form/form.component.html
View file @
15fc7fe4
...
@@ -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>
...
...
form/src/app/form/form.component.ts
View file @
15fc7fe4
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment