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) {
})
}
/* 新查询
细节
*/
/* 新查询
试卷子表试题
*/
export
function
donDtlQuery
(
query
)
{
return
request
({
url
:
'/aqgl/pxgl/pxsj/query/detail'
,
...
...
@@ -97,7 +97,7 @@ method: 'post',
data
:
query
||
{}
})
}
/*
新报存
*/
/*
导入试卷试题
*/
export
function
donDtlSave
(
query
)
{
return
request
({
url
:
'/aqgl/pxgl/pxsj/save'
,
...
...
@@ -105,7 +105,7 @@ method: 'post',
data
:
query
||
{}
})
}
/* 发布试题 */
export
function
doBegin
(
query
)
{
return
request
({
url
:
'aqgl/pxgl/pxsj/doBegin'
,
...
...
@@ -129,5 +129,12 @@ method: 'post',
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 @@
this
.
$refs
.
cycle
.
queryParams
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
queryParams
))
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'
){
// 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 @@
doUpdate
,
doDelete
,
pxxmQuery
,
excelimport
excelimport
,
}
from
'@/api/train/questionManage'
;
import
{
/* 测试*/
donDtlQuery
,
queryKsnr
queryKsnr
,
commit
}
from
'@/api/train/examination'
;
import
Subject
from
'./subject'
export
default
{
...
...
@@ -104,6 +105,26 @@
Subject
}
,
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
()
{
/* 构建试卷*/
let
type
=
{
...
...
@@ -187,13 +208,20 @@
}
,
getRemain
()
{
let
setNum
=
setTimeout
(()
=>
{
if
(
!
this
.
kssc
){
this
.
$warning
(
'考试异常退出,请重新考试!'
)
clearTimeout
(
setNum
)
/* */
this
.
gobac
()
return
}
this
.
kssc
=
this
.
kssc
-
1000
if
(
this
.
kssc
>
0
)
{
this
.
getRemain
()
}
else
{
this
.
$warning
(
'本场考试结束,试题已自动提交!'
)
this
.
gobac
()
this
.
exitFullscreen
()
/* */
this
.
commitAll
()
}
}
,
1000
)
}
,
...
...
@@ -248,13 +276,11 @@
type
:
'warning'
}
).
then
(()
=>
{
/* 练习时*/
console
.
log
(
this
.
subjectList
)
if
(
this
.
paperType
==
'T'
&&
this
.
paperState
==
'B'
)
{
this
.
paperState
=
'E'
}
else
{
this
.
$success
(
'提交成功,您可以在考试记录中查看分数'
)
this
.
gobac
()
this
.
exitFullscreen
()
this
.
commitAll
()
}
}
).
catch
(()
=>
{
...
...
@@ -266,7 +292,7 @@
return
{
username
:
''
,
userid
:
''
,
kssc
:
100
,
kssc
:
100
0
*
60
*
60
,
singleItem
:
''
,
loading
:
false
,
/* 考试or测试*/
...
...
src/views/train/testPaper/subject.vue
View file @
94f9df25
...
...
@@ -31,7 +31,7 @@
<!--
判断题
-->
<
div
v
-
if
=
"type=='PDT'"
class
=
"options"
>
<
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
>
<!--
答案显示
-->
...
...
@@ -123,8 +123,8 @@
data
()
{
return
{
pDoptions
:{
'
正确'
:
'Y
'
,
'
错误'
:
'N
'
'
A'
:
'正确
'
,
'
B'
:
'错误
'
}
,
value
:
''
,
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