Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sgaqgl-vue
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
李苏
sgaqgl-vue
Commits
94f9df25
Commit
94f9df25
authored
Dec 15, 2022
by
黄自鹏
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of gitlab.gavelinfo.com:lisu/sgaqgl-vue
parents
53fd758e
f831a779
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
52 additions
and
18 deletions
+52
-18
examination.js
src/api/train/examination.js
+11
-4
index.vue
src/views/riskPrecontrol/riskAnalysis/index.vue
+2
-1
index.vue
src/views/train/testPaper/index.vue
+36
-10
subject.vue
src/views/train/testPaper/subject.vue
+3
-3
No files found.
src/api/train/examination.js
View file @
94f9df25
...
@@ -89,7 +89,7 @@ export function doInitXtms(query) {
...
@@ -89,7 +89,7 @@ export function doInitXtms(query) {
})
})
}
}
/* 新查询
细节
*/
/* 新查询
试卷子表试题
*/
export
function
donDtlQuery
(
query
)
{
export
function
donDtlQuery
(
query
)
{
return
request
({
return
request
({
url
:
'/aqgl/pxgl/pxsj/query/detail'
,
url
:
'/aqgl/pxgl/pxsj/query/detail'
,
...
@@ -97,7 +97,7 @@ method: 'post',
...
@@ -97,7 +97,7 @@ method: 'post',
data
:
query
||
{}
data
:
query
||
{}
})
})
}
}
/*
新报存
*/
/*
导入试卷试题
*/
export
function
donDtlSave
(
query
)
{
export
function
donDtlSave
(
query
)
{
return
request
({
return
request
({
url
:
'/aqgl/pxgl/pxsj/save'
,
url
:
'/aqgl/pxgl/pxsj/save'
,
...
@@ -105,7 +105,7 @@ method: 'post',
...
@@ -105,7 +105,7 @@ method: 'post',
data
:
query
||
{}
data
:
query
||
{}
})
})
}
}
/* 发布试题 */
export
function
doBegin
(
query
)
{
export
function
doBegin
(
query
)
{
return
request
({
return
request
({
url
:
'aqgl/pxgl/pxsj/doBegin'
,
url
:
'aqgl/pxgl/pxsj/doBegin'
,
...
@@ -129,5 +129,12 @@ method: 'post',
...
@@ -129,5 +129,12 @@ method: 'post',
data
:
query
||
{}
data
:
query
||
{}
})
})
}
}
/* 考试保存 */
export
function
commit
(
query
)
{
return
request
({
url
:
'aqgl/pxgl/pxsj/commit'
,
method
:
'post'
,
data
:
query
||
{}
})
}
src/views/riskPrecontrol/riskAnalysis/index.vue
View file @
94f9df25
...
@@ -223,7 +223,8 @@
...
@@ -223,7 +223,8 @@
this
.
$refs
.
cycle
.
queryParams
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
queryParams
))
this
.
$refs
.
cycle
.
queryParams
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
queryParams
))
this
.
$refs
.
cycle
.
queryParams
.
grouptype
=
'BZ'
this
.
$refs
.
cycle
.
queryParams
.
grouptype
=
'BZ'
/* 判断查询条件*/
/* 判断查询条件*/
this
.
$refs
.
cycle
.
queryParams
.
rwlx
==
'D'
&&
(
this
.
$refs
.
cycle
.
queryParams
.
ksrq
=
this
.
$refs
.
cycle
.
queryParams
.
jsrq
)
this
.
$refs
.
cycle
.
queryParams
.
rwlx
==
'D'
&&
(
this
.
$refs
.
cycle
.
queryParams
.
ksrq
=
this
.
rowItem
.
tjrq
)
&&
(
this
.
$refs
.
cycle
.
queryParams
.
jsrq
=
this
.
rowItem
.
tjrq
)
if
(
this
.
$refs
.
cycle
.
queryParams
.
rwlx
==
'W'
){
if
(
this
.
$refs
.
cycle
.
queryParams
.
rwlx
==
'W'
){
// KSRQ
// KSRQ
this
.
$refs
.
cycle
.
queryParams
.
ksrq
=
(
this
.
singleItem
.
weekBegin
>
this
.
queryParams
.
ksrq
)?(
this
.
singleItem
.
weekBegin
):(
this
.
queryParams
.
ksrq
);
this
.
$refs
.
cycle
.
queryParams
.
ksrq
=
(
this
.
singleItem
.
weekBegin
>
this
.
queryParams
.
ksrq
)?(
this
.
singleItem
.
weekBegin
):(
this
.
queryParams
.
ksrq
);
...
...
src/views/train/testPaper/index.vue
View file @
94f9df25
...
@@ -59,13 +59,14 @@
...
@@ -59,13 +59,14 @@
doUpdate
,
doUpdate
,
doDelete
,
doDelete
,
pxxmQuery
,
pxxmQuery
,
excelimport
excelimport
,
}
from
'@/api/train/questionManage'
;
}
from
'@/api/train/questionManage'
;
import
{
import
{
/* 测试*/
/* 测试*/
donDtlQuery
,
donDtlQuery
,
queryKsnr
queryKsnr
,
commit
}
from
'@/api/train/examination'
;
}
from
'@/api/train/examination'
;
import
Subject
from
'./subject'
import
Subject
from
'./subject'
export
default
{
export
default
{
...
@@ -104,6 +105,26 @@
...
@@ -104,6 +105,26 @@
Subject
Subject
}
,
}
,
methods
:
{
methods
:
{
commitAll
(){
let
datas
=
this
.
subjectList
.
map
((
item
=>
{
item
.
userAns
=
item
.
value
||
''
return
item
}
))
let
params
=
{
id
:
this
.
singleItem
.
id
,
datas
:
datas
}
commit
(
params
).
then
(
res
=>
{
if
(
res
.
success
){
this
.
$success
(
'提交成功,您可以在考试记录中查看分数'
)
this
.
gobac
()
this
.
exitFullscreen
()
}
else
{
this
.
gobac
()
this
.
exitFullscreen
()
}
}
)
}
,
apiTranswf
()
{
apiTranswf
()
{
/* 构建试卷*/
/* 构建试卷*/
let
type
=
{
let
type
=
{
...
@@ -187,13 +208,20 @@
...
@@ -187,13 +208,20 @@
}
,
}
,
getRemain
()
{
getRemain
()
{
let
setNum
=
setTimeout
(()
=>
{
let
setNum
=
setTimeout
(()
=>
{
if
(
!
this
.
kssc
){
this
.
$warning
(
'考试异常退出,请重新考试!'
)
clearTimeout
(
setNum
)
/* */
this
.
gobac
()
return
}
this
.
kssc
=
this
.
kssc
-
1000
this
.
kssc
=
this
.
kssc
-
1000
if
(
this
.
kssc
>
0
)
{
if
(
this
.
kssc
>
0
)
{
this
.
getRemain
()
this
.
getRemain
()
}
else
{
}
else
{
this
.
$warning
(
'本场考试结束,试题已自动提交!'
)
this
.
$warning
(
'本场考试结束,试题已自动提交!'
)
this
.
gobac
()
/* */
this
.
exitFullscreen
()
this
.
commitAll
()
}
}
}
,
1000
)
}
,
1000
)
}
,
}
,
...
@@ -248,13 +276,11 @@
...
@@ -248,13 +276,11 @@
type
:
'warning'
type
:
'warning'
}
).
then
(()
=>
{
}
).
then
(()
=>
{
/* 练习时*/
/* 练习时*/
console
.
log
(
this
.
subjectList
)
if
(
this
.
paperType
==
'T'
&&
this
.
paperState
==
'B'
)
{
if
(
this
.
paperType
==
'T'
&&
this
.
paperState
==
'B'
)
{
this
.
paperState
=
'E'
this
.
paperState
=
'E'
}
else
{
}
else
{
this
.
$success
(
'提交成功,您可以在考试记录中查看分数'
)
this
.
commitAll
()
this
.
gobac
()
this
.
exitFullscreen
()
}
}
}
).
catch
(()
=>
{
}
).
catch
(()
=>
{
...
@@ -266,7 +292,7 @@
...
@@ -266,7 +292,7 @@
return
{
return
{
username
:
''
,
username
:
''
,
userid
:
''
,
userid
:
''
,
kssc
:
100
,
kssc
:
100
0
*
60
*
60
,
singleItem
:
''
,
singleItem
:
''
,
loading
:
false
,
loading
:
false
,
/* 考试or测试*/
/* 考试or测试*/
...
...
src/views/train/testPaper/subject.vue
View file @
94f9df25
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
<!--
判断题
-->
<!--
判断题
-->
<
div
v
-
if
=
"type=='PDT'"
class
=
"options"
>
<
div
v
-
if
=
"type=='PDT'"
class
=
"options"
>
<
div
class
=
"item"
:
key
=
"index"
v
-
for
=
"(item,index) in pDoptions"
>
<
div
class
=
"item"
:
key
=
"index"
v
-
for
=
"(item,index) in pDoptions"
>
<
el
-
radio
:
disabled
=
'allItem.result'
v
-
model
=
"value"
:
label
=
"index"
>
{{
`${i
ndex
}
`
}}
<
/el-radio
>
<
el
-
radio
:
disabled
=
'allItem.result'
v
-
model
=
"value"
:
label
=
"index"
>
{{
`${i
tem
}
`
}}
<
/el-radio
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<!--
答案显示
-->
<!--
答案显示
-->
...
@@ -123,8 +123,8 @@
...
@@ -123,8 +123,8 @@
data
()
{
data
()
{
return
{
return
{
pDoptions
:{
pDoptions
:{
'
正确'
:
'Y
'
,
'
A'
:
'正确
'
,
'
错误'
:
'N
'
'
B'
:
'错误
'
}
,
}
,
value
:
''
,
value
:
''
,
valueList
:
[],
valueList
:
[],
...
...
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