Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cc_mz_write_02
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
cc_mz_write_02
Commits
df33b9cf
Commit
df33b9cf
authored
Nov 04, 2022
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: debug
parent
2eb8e01a
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
678 additions
and
58 deletions
+678
-58
cc_mz_write_02.js
assets/cc_mz_write_02/scene/cc_mz_write_02.js
+619
-52
form.component.html
form/src/app/form/form.component.html
+34
-0
form.component.ts
form/src/app/form/form.component.ts
+25
-6
No files found.
assets/cc_mz_write_02/scene/cc_mz_write_02.js
View file @
df33b9cf
This diff is collapsed.
Click to expand it.
form/src/app/form/form.component.html
View file @
df33b9cf
...
...
@@ -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>
...
...
form/src/app/form/form.component.ts
View file @
df33b9cf
...
...
@@ -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
()
{
...
...
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