Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
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
罗超
confucius
Commits
b42d6a4e
Commit
b42d6a4e
authored
Aug 24, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
0dd8bd46
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
93 additions
and
4 deletions
+93
-4
index.js
src/api/teacher/index.js
+25
-0
examlist.vue
src/pages/exam/examlist.vue
+68
-4
No files found.
src/api/teacher/index.js
View file @
b42d6a4e
...
...
@@ -229,6 +229,31 @@ export function queryPublishExamPage(data) {
})
}
/**
* 提交考试审核
* @param {JSON参数} data
*/
export
function
submitExamApply
(
data
)
{
return
request
({
url
:
'/Exam/SubmitExamApply'
,
method
:
'post'
,
data
})
}
/**
* 删除考卷
* @param {JSON参数} data
*/
export
function
deletePublishExam
(
data
)
{
return
request
({
url
:
'/Exam/RemovePublishExam'
,
method
:
'post'
,
data
})
}
/**
* 根据编号获取考卷发布信息
* @param {JSON参数} data
...
...
src/pages/exam/examlist.vue
View file @
b42d6a4e
...
...
@@ -70,8 +70,26 @@
<
template
v-slot:body-cell-optioned=
"props"
>
<q-td
:props=
"props"
>
<q-btn
flat
size=
"xs"
color=
"accent"
style=
"font-weight: 400"
label=
"修改"
@
click=
"publishExam(props.row)"
/>
<q-btn
flat
size=
"xs"
color=
"accent"
style=
"font-weight: 400"
label=
"考生管理"
@
click=
"seeExamineeList(props.row)"
/>
<q-btn-dropdown
flat
size=
"xs"
color=
"dark"
label=
"更多"
style=
"margin-left: 10px"
>
<q-list>
<q-item
clickable
v-close-popup
@
click=
"submitExamAudit(props.row)"
v-if=
"props.row.ExamineStatus==0||props.row.ExamineStatus==3||props.row.ExamineStatus==4"
>
<q-item-section>
<q-item-label>
{{
props
.
row
.
ExamineStatus
==
0
?
'提交审核'
:
"重新提交审核"
}}
</q-item-label>
</q-item-section>
</q-item>
<q-item
clickable
v-close-popup
@
click=
"seeExamineeList(props.row)"
>
<q-item-section>
<q-item-label>
考生管理
</q-item-label>
</q-item-section>
</q-item>
<q-item
clickable
v-close-popup
@
click=
"deleteExamPublish(props.row)"
v-if=
"props.row.ExamineStatus!=2"
>
<q-item-section>
<q-item-label>
删除
</q-item-label>
</q-item-section>
</q-item>
</q-list>
</q-btn-dropdown>
</q-td>
</
template
>
</q-table>
...
...
@@ -80,7 +98,9 @@
</template>
<
script
>
import
{
queryPublishExamPage
queryPublishExamPage
,
submitExamApply
,
deletePublishExam
}
from
"../../api/teacher/index"
;
//获取校区列表
export
default
{
...
...
@@ -164,6 +184,51 @@
this
.
getList
();
},
methods
:
{
//删除考卷
deleteExamPublish
(
item
)
{
var
delMsg
=
{
Id
:
item
.
Id
};
var
tipMsg
=
"是否要删除【"
+
item
.
PaperName
+
"】试卷?删除后将无法恢复!"
;
this
.
$q
.
dialog
({
title
:
'提示信息'
,
message
:
tipMsg
,
cancel
:
true
,
persistent
:
true
,
ok
:
"确定"
,
cancel
:
"取消"
,
}).
onOk
(()
=>
{
deletePublishExam
(
delMsg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
$q
.
notify
({
icon
:
'iconfont icon-chenggong'
,
color
:
'accent'
,
timeout
:
2000
,
message
:
'操作成功!'
,
position
:
'top'
})
this
.
refreshPage
();
}
});
})
},
submitExamAudit
(
item
)
{
var
msg
=
{
Id
:
item
.
Id
};
submitExamApply
(
msg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
$q
.
notify
({
icon
:
'iconfont icon-chenggong'
,
color
:
'accent'
,
timeout
:
2000
,
message
:
'操作成功!'
,
position
:
'top'
})
this
.
refreshPage
();
}
})
},
//修改考试相关
publishExam
(
item
)
{
this
.
OpenNewUrl
(
"/exam/paperPublish"
,
{
...
...
@@ -203,7 +268,6 @@
refreshPage
()
{
this
.
getList
();
},
//关闭弹窗
closeExamForm
()
{
this
.
isShowExamFolder
=
false
;
...
...
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