Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
A
admin-fdc
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
admin-fdc
Commits
9bd6f676
提交
9bd6f676
authored
5月 04, 2023
作者:
lhh
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update
上级
e7b62f29
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
40 行增加
和
8 行删除
+40
-8
api.js
src/modules/school/class/api.js
+7
-0
StudentList.vue
src/modules/school/class/components/StudentList.vue
+27
-2
Update.vue
src/modules/school/class/views/Update.vue
+0
-0
vite.config.js
vite.config.js
+6
-6
没有找到文件。
src/modules/school/class/api.js
浏览文件 @
9bd6f676
...
...
@@ -123,3 +123,10 @@ export function updateCourseStatus(data) {
export
function
deleteStudent
(
data
)
{
return
httpRequest
.
post
(
'/api/zy-admin/school/student/delete'
,
data
)
}
/**
* 搜索考试
*/
export
function
downloadProcess
(
params
)
{
return
httpRequest
.
get
(
'/api/zy-admin/school/student/download-process'
,
{
params
})
}
src/modules/school/class/components/StudentList.vue
浏览文件 @
9bd6f676
...
...
@@ -13,6 +13,9 @@
v-permission=
"'menu_class_import_student'"
>
导入
</el-button
>
<el-button
type=
"primary"
icon=
"el-icon-download"
style=
"margin-left: 20px"
@
click=
"downloadProcess"
>
导出学员学习进度
</el-button
>
<el-button
:disabled=
"!multipleSelection.length"
style=
"margin-left: 20px"
...
...
@@ -24,14 +27,17 @@
>
</
template
>
<
template
v-slot:table-x=
"{ row }"
>
<div
style=
"display: flex"
>
<el-button
@
click=
"goPage(row)"
type=
"primary"
size=
"mini"
plain
>
学习进度
</el-button>
<el-button
@
click=
"onRemove(row)"
type=
"danger"
size=
"mini"
plain
>
删除
</el-button>
</div>
</
template
>
<AddStudent
v-if=
"isShowDialog"
:visible
.
sync=
"isShowDialog"
@
success=
"success"
/>
</app-list>
</template>
<
script
>
import
{
addStudents
,
getClassDetail
}
from
'../api'
import
{
addStudents
,
getClassDetail
,
downloadProcess
}
from
'../api'
import
AddStudent
from
'./AddStudent.vue'
export
default
{
components
:
{
...
...
@@ -66,12 +72,31 @@ export default {
{
label
:
'学号'
,
align
:
'center'
,
prop
:
'sno'
},
{
label
:
'手机号'
,
align
:
'center'
,
prop
:
'telephone'
},
{
label
:
'邮箱'
,
align
:
'center'
,
prop
:
'email'
},
{
label
:
'操作'
,
slots
:
'table-x'
,
align
:
'center'
,
width
:
'120'
,
fixed
:
'right'
}
{
label
:
'操作'
,
slots
:
'table-x'
,
align
:
'center'
,
fixed
:
'right'
}
]
}
}
},
methods
:
{
goPage
(
row
)
{
window
.
open
(
`/personnel/student/process?id=
${
row
.
id
}
`
)
},
downloadProcess
()
{
downloadProcess
({
class_id
:
this
.
$route
.
query
.
id
}).
then
(
res
=>
{
console
.
log
(
res
,
'res'
)
const
blob
=
new
Blob
([
res
],
{
type
:
'application/vnd.ms-excel'
})
if
(
'download'
in
document
.
createElement
(
'a'
))
{
const
elink
=
document
.
createElement
(
'a'
)
elink
.
download
=
'学员学习进度数据.xlsx'
elink
.
style
.
display
=
'none'
elink
.
href
=
URL
.
createObjectURL
(
blob
)
document
.
body
.
appendChild
(
elink
)
elink
.
click
()
URL
.
revokeObjectURL
(
elink
.
href
)
document
.
body
.
removeChild
(
elink
)
}
})
},
handleSelectionChange
(
selection
)
{
this
.
multipleSelection
=
selection
},
...
...
src/modules/school/class/views/Update.vue
浏览文件 @
9bd6f676
vite.config.js
浏览文件 @
9bd6f676
...
...
@@ -16,12 +16,12 @@ export default defineConfig(({ mode }) => {
cert
:
fs
.
readFileSync
(
path
.
join
(
__dirname
,
'./https/dev.ezijing.com.pem'
))
},
proxy
:
{
'/api/zy-admin'
:
{
target
:
'https://zy-school-api.ezijing.com'
,
changeOrigin
:
true
,
rewrite
:
path
=>
path
.
replace
(
'/api/zy-admin/'
,
'/'
)
},
'/api'
:
'https://
learn-api.ezijing.com
'
//
'/api/zy-admin': {
//
target: 'https://zy-school-api.ezijing.com',
//
changeOrigin: true,
//
rewrite: path => path.replace('/api/zy-admin/', '/')
//
},
'/api'
:
'https://
x-admin.ezijing.com/
'
}
},
resolve
:
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论