Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
center-resource
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
center-resource
Commits
98058285
提交
98058285
authored
9月 16, 2026
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: 将“教工”相关术语更新为“教师”,并更新导入模板文件名
上级
02916e88
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
14 行增加
和
14 行删除
+14
-14
教师导入模板.xlsx
public/center_resource/教师导入模板.xlsx
+0
-0
menus.ts
src/assets/menus.ts
+1
-1
api.ts
src/modules/admin/staff/api.ts
+2
-2
AddStaff.vue
src/modules/admin/staff/components/AddStaff.vue
+2
-2
ImportStaff.vue
src/modules/admin/staff/components/ImportStaff.vue
+2
-2
List.vue
src/modules/admin/staff/views/List.vue
+7
-7
没有找到文件。
public/center_resource/教
工
导入模板.xlsx
→
public/center_resource/教
师
导入模板.xlsx
浏览文件 @
98058285
File moved
src/assets/menus.ts
浏览文件 @
98058285
...
@@ -106,7 +106,7 @@ export const menus: IMenuItem[] = [
...
@@ -106,7 +106,7 @@ export const menus: IMenuItem[] = [
{
{
tag
:
'v1-learning-teacher-list'
,
tag
:
'v1-learning-teacher-list'
,
icon
:
School
,
icon
:
School
,
name
:
'教
工用户
管理'
,
name
:
'教
师
管理'
,
path
:
'/admin/staff'
,
path
:
'/admin/staff'
,
},
},
{
{
...
...
src/modules/admin/staff/api.ts
浏览文件 @
98058285
...
@@ -24,11 +24,11 @@ export function addStaff(data?: {
...
@@ -24,11 +24,11 @@ export function addStaff(data?: {
})
{
})
{
return
httpRequest
.
post
(
'/api/resource/v1/learning/teacher/create'
,
data
)
return
httpRequest
.
post
(
'/api/resource/v1/learning/teacher/create'
,
data
)
}
}
// 获取教
工
详情
// 获取教
师
详情
export
function
getStaffDetail
(
params
?:
{
id
:
string
})
{
export
function
getStaffDetail
(
params
?:
{
id
:
string
})
{
return
httpRequest
.
get
(
'/api/resource/v1/learning/teacher/view'
,
{
params
})
return
httpRequest
.
get
(
'/api/resource/v1/learning/teacher/view'
,
{
params
})
}
}
// 更新教
工
// 更新教
师
export
function
updateStaff
(
data
?:
{
export
function
updateStaff
(
data
?:
{
id
:
string
id
:
string
school
:
string
school
:
string
...
...
src/modules/admin/staff/components/AddStaff.vue
浏览文件 @
98058285
...
@@ -81,7 +81,7 @@ const handleConfirm = async (formEl: FormInstance | undefined) => {
...
@@ -81,7 +81,7 @@ const handleConfirm = async (formEl: FormInstance | undefined) => {
params
.
organ_id
=
userStore
.
organization
?.
id
params
.
organ_id
=
userStore
.
organization
?.
id
}
}
addStaff
(
params
).
then
(()
=>
{
addStaff
(
params
).
then
(()
=>
{
ElMessage
.
success
(
'新增教
工
成功'
)
ElMessage
.
success
(
'新增教
师
成功'
)
emit
(
'update:isShowStaffDialog'
,
false
)
emit
(
'update:isShowStaffDialog'
,
false
)
emit
(
'create'
)
emit
(
'create'
)
})
})
...
@@ -91,7 +91,7 @@ const handleConfirm = async (formEl: FormInstance | undefined) => {
...
@@ -91,7 +91,7 @@ const handleConfirm = async (formEl: FormInstance | undefined) => {
account_expired_time
:
form
.
account_expired_time
||
''
,
account_expired_time
:
form
.
account_expired_time
||
''
,
})
})
updateStaff
(
params
).
then
(()
=>
{
updateStaff
(
params
).
then
(()
=>
{
ElMessage
.
success
(
'更新教
工
成功'
)
ElMessage
.
success
(
'更新教
师
成功'
)
emit
(
'update:isShowStaffDialog'
,
false
)
emit
(
'update:isShowStaffDialog'
,
false
)
emit
(
'create'
)
emit
(
'create'
)
})
})
...
...
src/modules/admin/staff/components/ImportStaff.vue
浏览文件 @
98058285
...
@@ -256,7 +256,7 @@ const getStatusType = (status: string) => {
...
@@ -256,7 +256,7 @@ const getStatusType = (status: string) => {
v-model=
"isShowImportDialog"
v-model=
"isShowImportDialog"
:close-on-click-modal=
"false"
:close-on-click-modal=
"false"
:before-close=
"handleCancel"
:before-close=
"handleCancel"
title=
"批量导入教
工
"
title=
"批量导入教
师
"
width=
"1000px"
>
width=
"1000px"
>
<div>
<div>
<el-upload
<el-upload
...
@@ -275,7 +275,7 @@ const getStatusType = (status: string) => {
...
@@ -275,7 +275,7 @@ const getStatusType = (status: string) => {
<div
class=
"el-upload__text"
>
将文件拖至此处,点击上传
</div>
<div
class=
"el-upload__text"
>
将文件拖至此处,点击上传
</div>
</el-upload>
</el-upload>
<div
style=
"margin-bottom: 10px; text-align: right"
>
<div
style=
"margin-bottom: 10px; text-align: right"
>
<a
href=
"/center_resource/教
工导入模板.xlsx"
download=
"教工
导入模板"
>
<a
href=
"/center_resource/教
师导入模板.xlsx"
download=
"教师
导入模板"
>
<el-link
type=
"primary"
>
下载模板
</el-link>
<el-link
type=
"primary"
>
下载模板
</el-link>
</a>
</a>
</div>
</div>
...
...
src/modules/admin/staff/views/List.vue
浏览文件 @
98058285
...
@@ -73,17 +73,17 @@ const listOptions = computed(() => {
...
@@ -73,17 +73,17 @@ const listOptions = computed(() => {
}
}
})
})
// 新增
学生
// 新增
教师
const
handleAddStudent
=
()
=>
{
const
handleAddStudent
=
()
=>
{
isShowStaffDialog
.
value
=
true
isShowStaffDialog
.
value
=
true
title
.
value
=
'新增教
工
'
title
.
value
=
'新增教
师
'
isEdit
.
value
=
'0'
isEdit
.
value
=
'0'
}
}
// 编辑教
工
// 编辑教
师
const
handleEdit
=
(
row
:
any
)
=>
{
const
handleEdit
=
(
row
:
any
)
=>
{
id
.
value
=
row
.
id
id
.
value
=
row
.
id
isShowStaffDialog
.
value
=
true
isShowStaffDialog
.
value
=
true
title
.
value
=
'编辑教
工
'
title
.
value
=
'编辑教
师
'
studentId
.
value
=
row
.
id
studentId
.
value
=
row
.
id
isEdit
.
value
=
'1'
isEdit
.
value
=
'1'
}
}
...
@@ -103,7 +103,7 @@ const handleChangeStatus = (row: any) => {
...
@@ -103,7 +103,7 @@ const handleChangeStatus = (row: any) => {
const
params
:
any
=
Object
.
assign
({},
row
)
const
params
:
any
=
Object
.
assign
({},
row
)
updateStaff
(
params
)
updateStaff
(
params
)
.
then
(()
=>
{
.
then
(()
=>
{
ElMessage
.
success
(
'更新教
工
成功'
)
ElMessage
.
success
(
'更新教
师
成功'
)
handleFresh
()
handleFresh
()
})
})
.
catch
((
err
:
any
)
=>
{
.
catch
((
err
:
any
)
=>
{
...
@@ -116,10 +116,10 @@ const handleChangeStatus = (row: any) => {
...
@@ -116,10 +116,10 @@ const handleChangeStatus = (row: any) => {
</
script
>
</
script
>
<
template
>
<
template
>
<AppCard
title=
"教
工用户
管理"
>
<AppCard
title=
"教
师
管理"
>
<AppList
v-bind=
"listOptions"
ref=
"appList"
border
stripe
style=
"margin-top: 30px"
>
<AppList
v-bind=
"listOptions"
ref=
"appList"
border
stripe
style=
"margin-top: 30px"
>
<el-button
type=
"primary"
round
@
click=
"handleAddStudent"
v-permission=
"'v1-learning-teacher-create'"
<el-button
type=
"primary"
round
@
click=
"handleAddStudent"
v-permission=
"'v1-learning-teacher-create'"
>
新增教
工
</el-button
>
新增教
师
</el-button
>
>
<ImportStaff
@
create=
"handleFresh"
/>
<ImportStaff
@
create=
"handleFresh"
/>
<template
v-if=
"isAdmin"
#
filter-department=
"
{ params }">
<template
v-if=
"isAdmin"
#
filter-department=
"
{ params }">
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论