Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
JJ_EXAM
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
JJ_EXAM
Commits
b918afe9
Commit
b918afe9
authored
Mar 31, 2026
by
JinWei
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/jj_exam' into 'master'
fix: 修复构建慢的问题 See merge request
!3
parents
acb35551
5e998af5
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6485 additions
and
10678 deletions
+6485
-10678
package-lock.json
package-lock.json
+6464
-10672
package.json
package.json
+7
-3
form.component.html
src/app/form/form.component.html
+4
-1
form.component.ts
src/app/form/form.component.ts
+10
-2
No files found.
package-lock.json
View file @
b918afe9
This diff is collapsed.
Click to expand it.
package.json
View file @
b918afe9
...
@@ -11,6 +11,10 @@
...
@@ -11,6 +11,10 @@
"e2e"
:
"ng e2e"
"e2e"
:
"ng e2e"
},
},
"private"
:
true
,
"private"
:
true
,
"engines"
:
{
"node"
:
">=12.0.0 <13.0.0"
,
"npm"
:
">=6.0.0 <7.0.0"
},
"dependencies"
:
{
"dependencies"
:
{
"
@angular/animations
"
:
"
~9.0.2
"
,
"
@angular/animations
"
:
"
~9.0.2
"
,
"
@angular/common
"
:
"
~9.0.2
"
,
"
@angular/common
"
:
"
~9.0.2
"
,
...
@@ -28,11 +32,12 @@
...
@@ -28,11 +32,12 @@
"
ali-oss
"
:
"
^6.5.1
"
,
"
ali-oss
"
:
"
^6.5.1
"
,
"
compressing
"
:
"
^1.5.0
"
,
"
compressing
"
:
"
^1.5.0
"
,
"
ng-zorro-antd
"
:
"
^8.5.2
"
,
"
ng-zorro-antd
"
:
"
^8.5.2
"
,
"
node-sass
"
:
"
4.0.0
"
,
"
rxjs
"
:
"
~6.5.4
"
,
"
rxjs
"
:
"
~6.5.4
"
,
"
spark-md5
"
:
"
^3.0.0
"
,
"
spark-md5
"
:
"
^3.0.0
"
,
"
tslib
"
:
"
^1.10.0
"
,
"
tslib
"
:
"
^1.10.0
"
,
"
zone.js
"
:
"
~0.10.2
"
"
zone.js
"
:
"
~0.10.2
"
,
"
querystring
"
:
"
^0.2.0
"
,
"
crypto-js
"
:
"
^4.1.1
"
},
},
"devDependencies"
:
{
"devDependencies"
:
{
"
@angular-devkit/build-angular
"
:
"
~0.900.3
"
,
"
@angular-devkit/build-angular
"
:
"
~0.900.3
"
,
...
@@ -51,7 +56,6 @@
...
@@ -51,7 +56,6 @@
"
karma-jasmine
"
:
"
~2.0.1
"
,
"
karma-jasmine
"
:
"
~2.0.1
"
,
"
karma-jasmine-html-reporter
"
:
"
^1.4.2
"
,
"
karma-jasmine-html-reporter
"
:
"
^1.4.2
"
,
"
protractor
"
:
"
~5.4.3
"
,
"
protractor
"
:
"
~5.4.3
"
,
"
querystring
"
:
"
^0.2.1
"
,
"
ts-node
"
:
"
~8.3.0
"
,
"
ts-node
"
:
"
~8.3.0
"
,
"
tslint
"
:
"
~5.18.0
"
,
"
tslint
"
:
"
~5.18.0
"
,
"
typescript
"
:
"
~3.7.5
"
"
typescript
"
:
"
~3.7.5
"
...
...
src/app/form/form.component.html
View file @
b918afe9
...
@@ -47,8 +47,11 @@
...
@@ -47,8 +47,11 @@
<!-- 题目头部 -->
<!-- 题目头部 -->
<div
style=
"display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid #eee;"
>
<div
style=
"display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid #eee;"
>
<h3
style=
"margin: 0; color: #333;"
>
第 {{i+1}} 题
</h3>
<h3
style=
"margin: 0; color: #333;"
>
第 {{i+1}} 题
</h3>
<div
style=
"display: flex; gap: 8px;"
>
<button
nz-button
(
click
)="
copyQuestion
(
i
)"
>
复制题目
</button>
<button
nz-button
nzType=
"danger"
(
click
)="
deleteQuestion
(
i
)"
>
删除题目
</button>
<button
nz-button
nzType=
"danger"
(
click
)="
deleteQuestion
(
i
)"
>
删除题目
</button>
</div>
</div>
</div>
<!-- 题目图片 -->
<!-- 题目图片 -->
<div
style=
"margin-bottom: 15px; display: flex; align-items: flex-start; gap: 15px;"
>
<div
style=
"margin-bottom: 15px; display: flex; align-items: flex-start; gap: 15px;"
>
...
...
src/app/form/form.component.ts
View file @
b918afe9
...
@@ -65,10 +65,12 @@ export class FormComponent extends ComponentBase implements OnInit, OnChanges, O
...
@@ -65,10 +65,12 @@ export class FormComponent extends ComponentBase implements OnInit, OnChanges, O
if
(
!
this
.
item
.
questionArr
)
{
if
(
!
this
.
item
.
questionArr
)
{
this
.
item
.
questionArr
=
[];
this
.
item
.
questionArr
=
[];
}
}
const
defaultOptions
=
[{},
{}];
this
.
syncOptionKeys
(
defaultOptions
);
this
.
item
.
questionArr
.
push
({
this
.
item
.
questionArr
.
push
({
text
:
""
,
text
:
""
,
correctIndex
:
null
,
correctIndex
:
0
,
optionArr
:
[]
optionArr
:
defaultOptions
});
});
this
.
save
();
this
.
save
();
}
}
...
@@ -78,6 +80,12 @@ export class FormComponent extends ComponentBase implements OnInit, OnChanges, O
...
@@ -78,6 +80,12 @@ export class FormComponent extends ComponentBase implements OnInit, OnChanges, O
this
.
save
();
this
.
save
();
}
}
copyQuestion
(
i
:
number
)
{
const
copy
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
item
.
questionArr
[
i
]));
this
.
item
.
questionArr
.
push
(
copy
);
this
.
save
();
}
onCorrectAnswerChange
(
question
:
any
,
index
:
number
)
{
onCorrectAnswerChange
(
question
:
any
,
index
:
number
)
{
question
.
correctIndex
=
index
;
question
.
correctIndex
=
index
;
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