Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
center-qa
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
center-qa
Commits
1a5a9f94
提交
1a5a9f94
authored
3月 10, 2022
作者:
matian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix:查看详情打开新窗口
上级
670ebe15
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
12 行增加
和
25 行删除
+12
-25
List.vue
src/modules/exam/views/List.vue
+3
-10
List.vue
src/modules/paper/views/List.vue
+3
-5
List.vue
src/modules/question/views/List.vue
+6
-10
没有找到文件。
src/modules/exam/views/List.vue
浏览文件 @
1a5a9f94
...
@@ -5,7 +5,9 @@
...
@@ -5,7 +5,9 @@
<el-button
type=
"primary"
icon=
"el-icon-plus"
@
click=
"handleCreatePaper"
>
新建试卷
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-plus"
@
click=
"handleCreatePaper"
>
新建试卷
</el-button>
</
template
>
</
template
>
<
template
v-slot:table-x=
"{ row }"
>
<
template
v-slot:table-x=
"{ row }"
>
<el-button
type=
"text"
@
click=
"handleDetail(row)"
>
查看详情
</el-button>
<router-link
:to=
"
{ path: 'examDetail', query: { exam_id: row.exam_id } }" target="_blank">
<el-button
type=
"text"
>
查看详情
</el-button>
</router-link>
<el-button
type=
"text"
@
click=
"handleDelete(row)"
>
删除
</el-button>
<el-button
type=
"text"
@
click=
"handleDelete(row)"
>
删除
</el-button>
</
template
>
</
template
>
</app-list>
</app-list>
...
@@ -100,15 +102,6 @@ export default {
...
@@ -100,15 +102,6 @@ export default {
})
})
},
},
// 查看详情
handleDetail
(
row
)
{
this
.
$router
.
push
({
path
:
'examDetail'
,
query
:
{
exam_id
:
row
.
exam_id
}
})
},
// 单个删除
// 单个删除
handleDelete
(
row
)
{
handleDelete
(
row
)
{
this
.
$confirm
(
'确认删除改考试吗?删除后不可恢复'
).
then
(
_
=>
{
this
.
$confirm
(
'确认删除改考试吗?删除后不可恢复'
).
then
(
_
=>
{
...
...
src/modules/paper/views/List.vue
浏览文件 @
1a5a9f94
...
@@ -12,7 +12,9 @@
...
@@ -12,7 +12,9 @@
</
template
>
</
template
>
<
template
v-slot:table-x=
"{ row }"
>
<
template
v-slot:table-x=
"{ row }"
>
<el-button
type=
"text"
@
click=
"handleUpdate(row)"
>
编辑
</el-button>
<el-button
type=
"text"
@
click=
"handleUpdate(row)"
>
编辑
</el-button>
<el-button
type=
"text"
@
click=
"handleView(row)"
>
查看详情
</el-button>
<router-link
:to=
"
{ name: 'viewPaper', params: { id: row.id } }" target="_blank">
<el-button
type=
"text"
>
查看详情
</el-button>
</router-link>
<el-button
type=
"text"
@
click=
"handleDelete(row)"
>
删除
</el-button>
<el-button
type=
"text"
@
click=
"handleDelete(row)"
>
删除
</el-button>
</
template
>
</
template
>
</app-list>
</app-list>
...
@@ -126,10 +128,6 @@ export default {
...
@@ -126,10 +128,6 @@ export default {
handleUpdate
(
row
)
{
handleUpdate
(
row
)
{
this
.
$router
.
push
({
name
:
'editPaper'
,
params
:
{
id
:
row
.
id
}
})
this
.
$router
.
push
({
name
:
'editPaper'
,
params
:
{
id
:
row
.
id
}
})
},
},
// 查看详情
handleView
(
row
)
{
this
.
$router
.
push
({
name
:
'viewPaper'
,
params
:
{
id
:
row
.
id
}
})
},
handleSelectionChange
(
val
)
{
handleSelectionChange
(
val
)
{
this
.
multipleSelection
=
val
this
.
multipleSelection
=
val
},
},
...
...
src/modules/question/views/List.vue
浏览文件 @
1a5a9f94
...
@@ -24,8 +24,12 @@
...
@@ -24,8 +24,12 @@
>
>
</div>
</div>
<
template
v-slot:table-x=
"{ row }"
>
<
template
v-slot:table-x=
"{ row }"
>
<el-button
type=
"text"
@
click=
"handleSettings(row)"
>
编辑
</el-button>
<router-link
:to=
"
{ path: '/question/editQuestion', query: { id: row.id, type: 'edit' } }" target="_blank">
<el-button
type=
"text"
@
click=
"handleView(row)"
>
查看详情
</el-button>
<el-button
type=
"text"
>
编辑
</el-button>
</router-link>
<router-link
:to=
"
{ path: '/question/questionDetail', query: { id: row.id, type: 'view' } }" target="_blank">
<el-button
type=
"text"
>
查看详情
</el-button>
</router-link>
<el-button
type=
"text"
@
click=
"handleDelete(row.id)"
>
删除
</el-button>
<el-button
type=
"text"
@
click=
"handleDelete(row.id)"
>
删除
</el-button>
</
template
>
</
template
>
</app-list>
</app-list>
...
@@ -183,14 +187,6 @@ export default {
...
@@ -183,14 +187,6 @@ export default {
handleCreateSuccess
()
{
handleCreateSuccess
()
{
this
.
$refs
.
list
.
refetch
()
this
.
$refs
.
list
.
refetch
()
},
},
// 查看
handleView
(
row
)
{
this
.
$router
.
push
({
path
:
'/question/questionDetail'
,
query
:
{
id
:
row
.
id
,
type
:
'view'
}
})
},
// 编辑
handleSettings
(
row
)
{
this
.
$router
.
push
({
path
:
'/question/editQuestion'
,
query
:
{
id
:
row
.
id
,
type
:
'edit'
}
})
},
radioChange
()
{
radioChange
()
{
this
.
$refs
.
list
.
refetch
()
this
.
$refs
.
list
.
refetch
()
},
},
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论