diff --git a/src/api/Lecturer.js b/src/api/Lecturer.js
index 74398e73..fc503f9d 100644
--- a/src/api/Lecturer.js
+++ b/src/api/Lecturer.js
@@ -71,6 +71,8 @@ export const getApprovalResultByApprovalIdList = (approvalId) => http.post(`/adm
export const recovery = (id) => http.post(`/admin/affiliation/recovery?id=${id}`)
//删除培训发生组织
export const affiliationDelById = (id)=>http.post(`/admin/affiliation/delById?id=${id}`)
+//停用启用培训发生组织
+export const isEnable = (obj) => http.post(`/admin/affiliation/isEnable?id=${obj.id}&status=${obj.status}`)
//撤回培训发生组织
export const affiliatIsConfirm = (id) => http.post(`/admin/affiliation/isConfirm?id=${id}`)
//讲师费统计详情
diff --git a/src/components/project/LookExternalLecturer.vue b/src/components/project/LookExternalLecturer.vue
index 6b70c534..9bb35027 100644
--- a/src/components/project/LookExternalLecturer.vue
+++ b/src/components/project/LookExternalLecturer.vue
@@ -247,7 +247,7 @@ export default{
{value.record.courseStatus == 0 || value.record.courseStatus == 1
? {
"0": "未开课",
- "1": "开课",
+ "1": "已开课",
}[value.record.courseStatus + ""] || ""
: "-"}
diff --git a/src/components/project/LookInsideLecturer.vue b/src/components/project/LookInsideLecturer.vue
index e1af1015..bb60e044 100644
--- a/src/components/project/LookInsideLecturer.vue
+++ b/src/components/project/LookInsideLecturer.vue
@@ -310,7 +310,7 @@ export default{
{value.record.courseStatus == 0 || value.record.courseStatus == 1
? {
"0": "未开课",
- "1": "开课",
+ "1": "已开课",
}[value.record.courseStatus + ""] || ""
: "-"}
diff --git a/src/views/lecturer/LecturerFee.vue b/src/views/lecturer/LecturerFee.vue
index 3d12e6a9..33701967 100644
--- a/src/views/lecturer/LecturerFee.vue
+++ b/src/views/lecturer/LecturerFee.vue
@@ -722,7 +722,7 @@
//认证状态
const AuthenticationStatusList = ref([
{ value: '0', label: "待确认" },
- { value: '1', label: "待审核" },
+ { value: '1', label: "待提交" },
{ value: '2', label: "审核中" },
{ value: '4', label: "审核拒绝" },
{ value: '3', label: "审核通过" },
diff --git a/src/views/lecturer/Organization.vue b/src/views/lecturer/Organization.vue
index 279b8a05..a1509e0c 100644
--- a/src/views/lecturer/Organization.vue
+++ b/src/views/lecturer/Organization.vue
@@ -40,7 +40,9 @@
handleModify(record, String(record.courseform))">编辑
updateModal(record)">撤回
- deleteModal(record, String(record.courseform))">删除
+
+ 启用
+ 停用
@@ -385,14 +387,14 @@ export default{
state.formParam.code = null
}
const columns = ref([
- {
- title: '培训发生组织编号 ',
- dataIndex: 'affiliationCode',
- key: 'affiliationCode',
- ellipsis: true,
- align: "center",
- width: '100px',
- },
+ // {
+ // title: '培训发生组织编号 ',
+ // dataIndex: 'affiliationCode',
+ // key: 'affiliationCode',
+ // ellipsis: true,
+ // align: "center",
+ // width: '100px',
+ // },
{
title: '培训发生组织名称 ',
dataIndex: 'affiliationName',
@@ -581,6 +583,20 @@ const getTableDate = (obj) => {
}
})
};
+ const isEnablePost = (record,status) => {
+ dialog({
+ content: `是否确认${!status?'启用':'停用'}该培训发生组织?`,
+ ok: () => {
+ lecturer.isEnable({id:record.id,status}).then(res=>{
+ message.success("操作成功")
+ searchSubmit();
+ }).catch(err=>{
+ message.destroy()
+ message.error(err.data.msg)
+ })
+ }
+ })
+ }
//确认删除
const closeDeleteTeacher = () => {
//调用删除接口
@@ -859,6 +875,7 @@ const getTableDate = (obj) => {
searchReset,
searchList,
deleteModal,
+ isEnablePost,
updateModal,
cancelTeacherDialog,
addTeacher,