Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
A
admin-fdc
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
admin-fdc
Commits
21db2050
提交
21db2050
authored
5月 10, 2022
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
updates
上级
d0b5f259
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
101 行增加
和
3 行删除
+101
-3
AppList.vue
src/components/base/AppList.vue
+1
-1
index.js
src/modules/school/cert/index.js
+1
-1
BFIList.vue
src/modules/school/cert/views/BFIList.vue
+94
-0
List.vue
src/modules/school/cert/views/List.vue
+5
-1
没有找到文件。
src/components/base/AppList.vue
浏览文件 @
21db2050
...
...
@@ -5,7 +5,7 @@
<div
class=
"table-list-filter"
v-if=
"filters.length"
>
<el-form
:inline=
"true"
:model=
"params"
ref=
"filterForm"
label-width=
"110px"
>
<template
v-for=
"item in filters"
>
<el-form-item
:label=
"item.label"
:prop=
"item.prop"
:key=
"item.prop"
>
<el-form-item
:label=
"item.label"
:prop=
"item.prop"
:key=
"item.prop"
v-if=
"visible(item)"
>
<template
v-if=
"item.slots"
>
<slot
:name=
"item.slots"
v-bind=
"
{ params }">
</slot>
</
template
>
...
...
src/modules/school/cert/index.js
浏览文件 @
21db2050
...
...
@@ -22,7 +22,7 @@ const routes = [
children
:
[
{
path
:
'cert'
,
component
:
()
=>
import
(
'./views/List.vue'
),
component
:
()
=>
import
(
'./views/
BFI
List.vue'
),
meta
:
{
title
:
'证书管理'
}
},
{
...
...
src/modules/school/cert/views/BFIList.vue
0 → 100644
浏览文件 @
21db2050
<
template
>
<app-card>
<app-list
v-bind=
"tableOptions"
ref=
"list"
>
<template
v-slot:filter-certificateStart=
"
{ params }">
<el-date-picker
v-model=
"params.certificate_start"
type=
"date"
value-format=
"yyyy-MM-dd"
placeholder=
"开始日期"
style=
"width: 140px"
>
</el-date-picker>
<span
style=
"padding-left: 10px; color: #606266"
>
-
</span>
</
template
>
<
template
v-slot:filter-certificateEnd=
"{ params }"
>
<el-date-picker
v-model=
"params.certificate_end"
type=
"date"
value-format=
"yyyy-MM-dd"
placeholder=
"结束日期"
style=
"width: 140px"
>
</el-date-picker>
</
template
>
<
template
v-slot:table-x=
"{ row }"
>
<router-link
:to=
"
{ path: './cert/details', query: { id: row.student_id, name: row.personal_name } }"
target="_blank"
v-permission="'menu_certificate_view'"
>
<el-button
type=
"primary"
size=
"mini"
plain
>
查看
</el-button>
</router-link>
</
template
>
<div
class=
"buttons"
v-permission=
"'menu_certificate_download'"
>
<a
:href=
"exportUrl"
download
target=
"_blank"
>
<el-button
type=
"primary"
icon=
"el-icon-download"
>
导出
</el-button>
</a>
<span
style=
"font-size: 12px; padding: 0 10px; color: #606266"
>
导出当前搜索结果
</span>
</div>
</app-list>
</app-card>
</template>
<
script
>
import
{
getCertList
}
from
'../api'
import
queryString
from
'query-string'
export
default
{
data
()
{
return
{
listParams
:
{}
}
},
computed
:
{
// 是否有班级权限
hasClassPermission
()
{
return
this
.
$store
.
state
.
permissions
.
find
(
item
=>
item
.
tag
===
'menu_class_list'
)
},
// 列表配置
tableOptions
()
{
return
{
remote
:
{
httpRequest
:
getCertList
,
beforeRequest
:
this
.
beforeRequest
,
params
:
{
personal_name
:
''
,
class_id
:
''
,
has_certificate
:
''
}
},
filters
:
[
{
type
:
'input'
,
placeholder
:
'姓名'
,
prop
:
'personal_name'
,
label
:
'姓名'
},
{
slots
:
'filter-certificateStart'
,
prop
:
'certificate_start'
,
label
:
'取证日期'
},
{
slots
:
'filter-certificateEnd'
,
prop
:
'certificate_end'
}
],
columns
:
[
{
label
:
'姓名'
,
align
:
'center'
,
prop
:
'personal_name'
},
{
label
:
'所属机构'
,
align
:
'center'
,
prop
:
'organization_name'
},
{
label
:
'身份证号码'
,
align
:
'center'
,
prop
:
'id_number'
},
{
label
:
'取证时间'
,
align
:
'center'
,
prop
:
'certificate_created_time'
},
{
label
:
'操作'
,
slots
:
'table-x'
,
align
:
'center'
,
width
:
'220'
,
fixed
:
'right'
}
]
}
},
// 导出地址
exportUrl
()
{
const
query
=
queryString
.
stringify
(
this
.
listParams
)
return
import
.
meta
.
env
.
VITE_BASE_URL
+
'/api/zy-admin/school/certificate/download?'
+
query
}
},
methods
:
{
beforeRequest
(
params
)
{
this
.
listParams
=
{
...
params
}
return
params
}
}
}
</
script
>
src/modules/school/cert/views/List.vue
浏览文件 @
21db2050
...
...
@@ -31,6 +31,7 @@
<
template
v-slot:table-x=
"{ row }"
>
<router-link
:to=
"
{ path: './cert/details', query: { id: row.student_id, name: row.personal_name } }"
target="_blank"
v-permission="'menu_certificate_view'"
>
<el-button
type=
"primary"
size=
"mini"
plain
>
查看
</el-button>
...
...
@@ -81,7 +82,8 @@ export default {
options
:
[
{
label
:
'已获得'
,
value
:
true
},
{
label
:
'未获得'
,
value
:
false
}
]
],
visible
:
this
.
hasClassPermission
},
{
slots
:
'filter-certificateStart'
,
prop
:
'certificate_start'
,
label
:
'取证日期'
},
{
slots
:
'filter-certificateEnd'
,
prop
:
'certificate_end'
}
...
...
@@ -90,9 +92,11 @@ export default {
{
label
:
'姓名'
,
align
:
'center'
,
prop
:
'personal_name'
},
{
label
:
'所属班级'
,
align
:
'center'
,
prop
:
'class_name'
,
visible
:
this
.
hasClassPermission
},
{
label
:
'所属机构'
,
align
:
'center'
,
prop
:
'organization_name'
},
{
label
:
'身份证号码'
,
align
:
'center'
,
prop
:
'id_number'
},
{
label
:
'是否取证'
,
align
:
'center'
,
visible
:
this
.
hasClassPermission
,
computed
({
row
})
{
return
row
.
has_certificate
?
'已获得'
:
'未获得'
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论