Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
center-qa
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
center-qa
Commits
a408c8a8
提交
a408c8a8
authored
3月 10, 2022
作者:
matian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix:删除增加弹框提示
上级
1a5a9f94
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
42 行增加
和
21 行删除
+42
-21
Detail.vue
src/modules/exam/views/Detail.vue
+17
-6
List.vue
src/modules/exam/views/List.vue
+4
-2
PaperQuestions.vue
src/modules/paper/components/PaperQuestions.vue
+8
-6
QuestionsChidren.vue
src/modules/question/components/QuestionsChidren.vue
+3
-1
List.vue
src/modules/question/views/List.vue
+10
-6
没有找到文件。
src/modules/exam/views/Detail.vue
浏览文件 @
a408c8a8
...
...
@@ -25,7 +25,15 @@
</el-dropdown>
</div>
<template
v-slot:table-x=
"
{ row }">
<el-button
type=
"text"
@
click=
"handleDetail(row)"
>
查看详情
</el-button>
<router-link
:to=
"
{
path: 'markingPaper',
query: { eid: exam_id, sid: row.student_id }
}"
target="_blank"
>
<el-button
type=
"text"
>
查看详情
</el-button>
</router-link>
</
template
>
<el-dialog
title=
"转移考生"
:visible
.
sync=
"dialogVisible"
width=
"40%"
>
<div>
...
...
@@ -144,7 +152,6 @@ export default {
},
methods
:
{
handleDetail
(
row
)
{
// console.log(row)
this
.
$router
.
push
({
path
:
'markingPaper'
,
query
:
{
eid
:
this
.
exam_id
,
sid
:
row
.
student_id
}
...
...
@@ -205,11 +212,15 @@ export default {
},
// 删除考生
delStudent
()
{
const
studentId
=
this
.
multipleSelection
.
map
(
item
=>
item
.
student_id
).
toString
()
deleteStudent
({
id
:
studentId
}).
then
(
res
=>
{
this
.
$message
.
success
(
'删除成功'
)
this
.
$confirm
(
'确认删除该考试吗?删除后不可恢复'
).
then
(
_
=>
{
const
studentId
=
this
.
multipleSelection
.
map
(
item
=>
item
.
student_id
).
toString
()
deleteStudent
({
id
:
studentId
}).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
this
.
$message
.
success
(
'删除成功'
)
}
})
this
.
$refs
.
list
.
refetch
()
})
this
.
$refs
.
list
.
refetch
()
},
// 导出明细
exportDetail
()
{
...
...
src/modules/exam/views/List.vue
浏览文件 @
a408c8a8
...
...
@@ -104,10 +104,12 @@ export default {
// 单个删除
handleDelete
(
row
)
{
this
.
$confirm
(
'确认删除
改
考试吗?删除后不可恢复'
).
then
(
_
=>
{
this
.
$confirm
(
'确认删除
该
考试吗?删除后不可恢复'
).
then
(
_
=>
{
const
params
=
{
id
:
row
.
exam_id
}
delExamPaper
(
params
).
then
(
res
=>
{
this
.
$message
.
success
(
'删除考试成功'
)
if
(
res
.
code
===
0
)
{
this
.
$message
.
success
(
'删除考试成功'
)
}
})
this
.
$refs
.
list
.
refetch
()
})
...
...
src/modules/paper/components/PaperQuestions.vue
浏览文件 @
a408c8a8
...
...
@@ -140,13 +140,15 @@ export default {
},
// 删除选中试题
handleRemove
()
{
this
.
questions
=
this
.
questions
.
filter
(
item
=>
{
if
(
item
.
children
)
{
item
.
children
=
item
.
children
.
filter
(
item
=>
!
this
.
multipleSelection
.
includes
(
item
.
id
))
}
return
!
this
.
multipleSelection
.
includes
(
item
.
id
)
this
.
$confirm
(
'确认删除选中试题吗?删除后不可恢复'
).
then
(
_
=>
{
this
.
questions
=
this
.
questions
.
filter
(
item
=>
{
if
(
item
.
children
)
{
item
.
children
=
item
.
children
.
filter
(
item
=>
!
this
.
multipleSelection
.
includes
(
item
.
id
))
}
return
!
this
.
multipleSelection
.
includes
(
item
.
id
)
})
this
.
multipleSelection
=
[]
})
this
.
multipleSelection
=
[]
},
// 保存试卷
handleSubmit
()
{
...
...
src/modules/question/components/QuestionsChidren.vue
浏览文件 @
a408c8a8
...
...
@@ -90,7 +90,9 @@ export default {
},
methods
:
{
removeChidren
(
n
)
{
this
.
chidrenList
.
splice
(
n
,
1
)
this
.
$confirm
(
'确认删除该考试吗?删除后不可恢复'
).
then
(
_
=>
{
this
.
chidrenList
.
splice
(
n
,
1
)
})
},
submitForm
()
{
let
flag
=
false
...
...
src/modules/question/views/List.vue
浏览文件 @
a408c8a8
...
...
@@ -174,13 +174,17 @@ export default {
// 删除试题
handleDelete
(
id
)
{
console
.
log
(
id
)
const
ids
=
id
?
[
id
]
:
this
.
deleteQuestions
deleteQuestion
({
ids
:
ids
}).
then
(
res
=>
{
this
.
$message
({
message
:
'删除成功'
,
type
:
'success'
this
.
$confirm
(
'确认删除该试题吗?删除后不可恢复'
).
then
(
_
=>
{
const
ids
=
id
?
[
id
]
:
this
.
deleteQuestions
deleteQuestion
({
ids
:
ids
}).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
this
.
$message
({
message
:
'删除成功'
,
type
:
'success'
})
}
this
.
$refs
.
list
.
refetch
()
})
this
.
$refs
.
list
.
refetch
()
})
},
// 创建成功刷新列表
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论