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
a72c176c
Commit
a72c176c
authored
Jan 06, 2023
by
limingzhe
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://vcs.ireadabc.com/template/OP72
parents
7fb9019d
45fd7374
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
50 additions
and
1 deletion
+50
-1
form.component.html
form/src/app/form/form.component.html
+20
-0
form.component.ts
form/src/app/form/form.component.ts
+30
-1
No files found.
form/src/app/form/form.component.html
View file @
a72c176c
...
@@ -282,6 +282,26 @@
...
@@ -282,6 +282,26 @@
</div>
</div>
</div>
</div>
<div
style=
"margin-top: 30px;"
></div>
<h2>
标记组合并识别设置:
</h2>
<div
style=
"padding: 10px; border: 2px solid #ccc; border-radius: 10px; width: 350px;"
>
<div
*
ngIf=
"checkHasCombineGroup()"
style=
"position: relative;"
>
<button
nz-button
nzType=
"default"
nzShape=
"circle"
(
click
)="
addItemCombineGroup
()"
style=
"position: absolute; top: -40px; right: 0;"
>
<span
nz-icon
nzType=
"plus"
></span>
</button>
<div
style=
"margin-top: 40px;"
>
<div
*
ngFor=
"let cgItem of item.itemCombineGroup; let i = index"
style=
"width: 100%; padding-right: 50px; position: relative; margin-top: 10px;"
>
<nz-select
[(
ngModel
)]="
item
.
itemCombineGroup
[
i
]"
nzMode=
"multiple"
(
ngModelChange
)="
onItemCombineGroupChange
()"
nzPlaceHolder=
"Please select"
style=
"width: 100%;"
>
<nz-option
*
ngFor=
"let option of item.hotZoneItemArr2; let j = index"
[
nzLabel
]="'
sign-item-
'
+
j
"
[
nzValue
]="
j
"
></nz-option>
</nz-select>
<button
nz-button
nzType=
"danger"
nzShape=
"circle"
(
click
)="
deleteItemCombineGroup
(
i
)"
style=
"position: absolute; right: 0;"
>
<span
nz-icon
nzType=
"delete"
></span>
</button>
</div>
</div>
</div>
</div>
<div
style=
"margin-top: 30px;"
></div>
<div
style=
"margin-top: 30px;"
></div>
<h2>
涂色组设置:
</h2>
<h2>
涂色组设置:
</h2>
...
...
form/src/app/form/form.component.ts
View file @
a72c176c
...
@@ -312,7 +312,33 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy, AfterViewIni
...
@@ -312,7 +312,33 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy, AfterViewIni
}
}
addItemCombineGroup
()
{
if
(
this
.
item
.
itemCombineGroup
==
undefined
||
this
.
item
.
itemCombineGroup
==
null
)
{
this
.
item
.
itemCombineGroup
=
[];
}
this
.
item
.
itemCombineGroup
.
push
([])
this
.
save
();
}
deleteItemCombineGroup
(
index
)
{
this
.
item
.
itemCombineGroup
.
splice
(
index
,
1
);
this
.
save
();
}
checkHasCombineGroup
()
{
let
count
=
0
;
this
.
item
.
hotZoneItemArr2
.
forEach
(
item
=>
{
item
.
gIdx
==
'
4
'
;
count
++
;
});
return
count
>
1
;
}
onItemCombineGroupChange
()
{
this
.
save
();
}
addForeground
()
{
addForeground
()
{
if
(
!
this
.
item
.
foregroundArr
)
{
if
(
!
this
.
item
.
foregroundArr
)
{
...
@@ -396,6 +422,8 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy, AfterViewIni
...
@@ -396,6 +422,8 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy, AfterViewIni
group
.
bgItem
=
bgItem
;
group
.
bgItem
=
bgItem
;
group
.
hotZoneItemArr
=
hotZoneItemArr
;
group
.
hotZoneItemArr
=
hotZoneItemArr
;
this
.
item
.
itemCombineGroup
=
[];
this
.
getAllGroupType
();
this
.
getAllGroupType
();
this
.
save
();
this
.
save
();
...
@@ -408,7 +436,8 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy, AfterViewIni
...
@@ -408,7 +436,8 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy, AfterViewIni
group
.
bgItem2
=
bgItem
;
group
.
bgItem2
=
bgItem
;
group
.
hotZoneItemArr2
=
hotZoneItemArr
;
group
.
hotZoneItemArr2
=
hotZoneItemArr
;
this
.
item
.
itemCombineGroup
=
[];
this
.
save
();
this
.
save
();
}
}
...
...
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