接口联调

This commit is contained in:
wangxuemei
2024-08-02 18:50:40 +08:00
parent 95895d1d5a
commit 5723a20d5d
16 changed files with 597 additions and 395 deletions

View File

@@ -15,7 +15,7 @@ export const getTeacherList = (obj) => http.post('/admin/teacher/getInTeacherLis
//获取内部讲师发薪地
export const getPayRollPlace = (obj) => http.post('/admin/teacher/getPayRollPlace', obj)
//获取内部讲师级别
export const getLevel = (obj) => http.post('/admin/teacher/getLevel', obj)
export const getLevel = (obj) => http.post('/admin/teacher/getNewLevel', obj)
//新增内部讲师
export const insertTeacher = (obj) => http.post('/admin/teacher/insertInTeacher' ,obj)
//修改 内部讲师
@@ -48,3 +48,4 @@ export const insertTeacherOutSide = (obj) => http.post('/admin/teacher/insertTea
//修改外部讲师
export const updateOutTeacher = (obj) => http.post('/admin/teacher/updateOutTeacher', obj)
export const fileUp = (obj) => http.post('/file/upload', obj)

View File

@@ -24,3 +24,5 @@ export const getOuterTeacherCourseList = (obj) => http.post('/admin/teacher/getO
export const getOuterTeacherCourseDetail = (obj) => http.post(`/admin/teacher/getOuterTeacherCourseDetail?id=${obj}`)
//新增外部授课记录
export const insertOutTeaherCourse = (obj) => http.post('/admin/teacher/insertOutTeaherCourse', obj)
//讲师费发放情况
export const getCharges = (obj) => http.post('/teacher/fee/getCharges', obj)

View File

@@ -17,3 +17,7 @@ export const getTrainOrg= (obj) => http.post('/teacher/fee/getTrainOrg',obj)
export const getTeacherLevel= (obj) => http.post('/teacher/fee/getTeacherLevel',obj)
//列表查看讲师费审批(用于讲师费管理查看讲师费详情里面)
export const getTeacherFeeApprovalList= (obj) => http.post('/teacher/fee/getTeacherFeeApprovalList',obj)
//列表查看讲师费统计
export const queryTeacherFeeTotalList= (obj) => http.post('/teacher/fee/queryTeacherFeeTotalList',obj)
//汇总上月讲师费
export const getPreviousTeacherFee= (obj) => http.post('/teacher/fee/getPreviousTeacherFee',obj)

View File

@@ -1,7 +1,21 @@
import http from "./config";
// 列表分页查看归属组织
export const queryTrainOrg = (obj) => http.post('/configuration/queryTrainOrg', obj)
// 删除归属组织
export const deleteTrainOrg = (obj) => http.post('/configuration/deleteTrainOrg', obj)
export const queryTrainOrg = (obj) => http.post( '/configuration/queryTrainOrg', obj)
//列表分页查看讲师体系
export const systemList = (obj) => http.get('/configuration/list',{params: obj})
// 根据体系id查看讲师体系对应的讲师等级详情
export const querySystemLevelByKid = (obj) => http.post('/configuration/querySystemLevelByKid', obj)
//新增归属组织
export const addReviewer = (obj) => http.post('/configuration/addReviewer', obj)
//修改归属组织
export const updateTrainOrg = (obj) => http.post('/configuration/updateTrainOrg', obj)
// 删除归属组织
export const deleteTrainOrg = (obj) => http.post('/configuration/deleteTrainOrg', obj)
//新增讲师体系
export const addLecturerSystem = (obj) => http.post('/configuration/addLecturerSystem', obj)
//删除讲师体系
export const deleteLecturerSystem = (obj) => http.post('/configuration/deleteLecturerSystem', obj)
//修改讲师体系
export const updateSystem = (obj) => http.post('/configuration/updateSystem', obj)

View File

@@ -106,10 +106,11 @@
<!-- 讲师名称 ,手机号码-->
<a-row :gutter="16">
<a-col :span="12">
<a-form-item label="讲师名称" name="name">
<a-input v-model:value="searchParam.name " class="draitem"
placeholder="请输入讲师姓名" allowClear showSearch>
</a-input>
<a-form-item label="讲师名称" name="userNo">
<ProjectManager v-model:value="formParam.userNo"
v-model:name="formParam.name"
placeholder="请输入工号/讲师姓名进行检索"
@onChange="managerChange" mode="multiple"></ProjectManager>
</a-form-item>
</a-col>
<a-col :span="12">
@@ -124,8 +125,8 @@
<a-row :gutter="16">
<a-col :span="12">
<a-form-item label="供应商" name="levelId">
<a-input v-model:value="formParam.userNo" class="draitem"
placeholder="请输入供应商" allowClear showSearch>
<a-input v-model:value="formParam.levelId" class="draitem"
placeholder="请输入供应商(未命名)" allowClear showSearch>
</a-input>
</a-form-item>
</a-col>
@@ -148,7 +149,7 @@
<a-row :gutter="16">
<a-col :span="24">
<a-form-item label="讲师介绍">
<Editor v-model="formParam.description "/>
<Editor v-model:value="formParam.description "/>
</a-form-item>
</a-col>
</a-row>
@@ -285,6 +286,7 @@ export default {
tableDataTotal: -1,//table列表总条数
teacherrecordstableDataTotal: -1,//授课记录列表总条数
formParam: {
description:null,
},
searchParam: {
name: null,//姓名
@@ -463,6 +465,7 @@ export default {
state.teacherdialog = true;
state.teacherdialogtitle = '新增讲师'
}
//修改讲师信息弹窗
const handleModify = (record) => {
state.teacherdialog = true;
@@ -551,6 +554,7 @@ export default {
mobile: null,
email: null,
teacherIntrofuce: null,
description:null,
remark: null,
id:null
}
@@ -585,7 +589,12 @@ export default {
// state.formParam.id = record.id
// }
}
function managerChange(e, l, d, t, orgName) {
console.log(e, l);
state.searchParam.userNo = d;
state.searchParam.name = t;
// state.searchParam.trainorgName=orgName
}
// getpromotionrecordstableData()
//导出功能
const handleExport = () => {
@@ -600,6 +609,7 @@ export default {
return {
...toRefs(state),
rules,
managerChange,
headers,
beforeUpload,
handleExport,

View File

@@ -10,14 +10,14 @@
placeholder="请输入工号/讲师姓名进行检索" allowClear showSearch>
</a-input> -->
<div style="width: 276px; height: 40px; border-radius: 8px" >
<ProjectManager v-model:value="searchParam.managerId"
v-model:name="searchParam.manager"
<ProjectManager v-model:value="searchParam.userNo"
v-model:name="searchParam.teacher"
placeholder="请输入工号/讲师姓名进行检索"
@onChange="managerChange" mode="multiple"></ProjectManager>
</div>
</a-form-item>
<a-form-item class="select">
<a-input v-model:value="searchParam.teacherNo" style="width: 260px; height: 40px; border-radius: 8px"
<a-input v-model:value="searchParam.name" style="width: 260px; height: 40px; border-radius: 8px"
placeholder="请输入课程名称进行搜索" allowClear showSearch>
</a-input>
</a-form-item>
@@ -46,17 +46,17 @@
<div style="width:100%"></div>
<a-form-item class="select" v-if="moreid == 2">
<a-select style="width: 230px ;margin-bottom:20px" v-model:value="searchParam.entryType" placeholder="录入类型"
:options="entryTypeList">
:options="entryTypeList" allowClear >
</a-select>
</a-form-item>
<a-form-item class="select" v-if="moreid == 2">
<a-select style="width: 230px" v-model:value="searchParam.tlevelName" placeholder="内容分类"
:options="getTeacherExpertiseList">
<a-select style="width: 230px" v-model:value="searchParam.id" placeholder="内容分类"
:options="getTeacherExpertiseList" allowClear>
</a-select>
</a-form-item>
<a-form-item class="select" v-if="moreid == 2">
<a-select style="width: 230px" v-model:value="searchParam.status" placeholder="开课状态"
:options="AuthenticationStatusList">
:options="AuthenticationStatusList" allowClear>
</a-select>
</a-form-item>
</a-form>
@@ -110,27 +110,28 @@
<a-drawer v-model:visible="teacherdialog" placement="right" @closa="cancelTeacherDialog" :maskClosable="true"
dropdown-style="drawaer" width="60%" :title="teacherdialogtitle">
<a-form :model="formParam" :rules="rules" layout="vertical">
<!--讲师名称 teacher 内容分类 tlevelName -->
<!--讲师名称 teacher 内容分类 id -->
<a-row :gutter="16">
<a-col :span="12">
<a-form-item label="讲师名称" name="teacher">
<a-tree-select v-model:value="formParam.teacher" tree-data-simple-mode class="draitem"
:dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" :tree-data="treeData" placeholder="请输入讲师名称" />
</a-form-item>
<ProjectManager v-model:value="formParam.userNo"
v-model:name="formParam.teacher"
placeholder="请输入工号/讲师姓名进行检索"
@onChange="managerChange" mode="multiple"></ProjectManager> </a-form-item>
</a-col>
<a-col :span="12">
<a-form-item label="内容分类" name="tlevelName">
<a-select class="draitem" v-model:value="searchParam.tlevelName" placeholder="内容分类"
:options="getTeacherExpertiseList">
<a-form-item label="内容分类" name="id">
<a-select class="draitem" v-model:value="formParam.id" placeholder="内容分类"
:options="getTeacherExpertiseList" allowClear>
</a-select>
</a-form-item>
</a-col>
</a-row>
<!-- 课程名称teacherNo 开课状态 status-->
<!-- 课程名称name 开课状态 status-->
<a-row :gutter="16">
<a-col :span="12">
<a-form-item label="课程名称" name="teacherNo">
<a-input class="draitem" v-model:value="searchParam.teacherNo" placeholder="请输入后搜索面授课" allowClear
<a-form-item label="课程名称" name="name">
<a-input class="draitem" v-model:value="formParam.name" placeholder="请输入后搜索面授课" allowClear
showSearch>
</a-input>
</a-form-item>
@@ -338,8 +339,8 @@ export default {
]);
const rules = {
teacher: [{ required: true, message: '讲师不能为空' }],
tlevelName: [{ required: true, message: '内容分类不能为空' }],
teacherNo: [{ required: true, message: '课程名称不能为空' }],
id: [{ required: true, message: '内容分类不能为空' }],
name: [{ required: true, message: '课程名称不能为空' }],
status: [{ required: true, message: '讲开课状态不能为空' }],
defaultTeachingTime: [{ required: true, message: '授课时长不能为空' }],
beginTime: [{ required: true, message: '授课日期不能为空' }],
@@ -544,13 +545,14 @@ export default {
pageNo: 1,
pageSize: 10,
managerId: null,
teacherNo: null,
name: null,
manager:null,
entryType: null,
status: null,
entryType:null,
systemId:null,
beginTime: null,
endDate:null,
startDate:null,
entryType:null
};
getTableDate();
@@ -561,7 +563,7 @@ export default {
let objA = { ...state.searchParam };
getOuterTeacherCourseList(objA)
.then((res) => {
tableData.value = res.data.data
tableData.value = res.data.data.records
state.tableDataTotal = Number(res.data.data.total);
state.tableLoading = false
console.log("获取tableData", tableData);
@@ -601,6 +603,7 @@ export default {
}).catch((err) => {
console.log(err);
});
cancel()
}
getTableDate();
state.teacherdialog = false
@@ -675,7 +678,7 @@ export default {
state.moreid = 1
state.searchParam.type = null
state.searchParam.status = null
state.searchParam.tlevelName = null
state.searchParam.id = null
state.searchParam.entryType=null
}
}
@@ -701,21 +704,32 @@ export default {
.catch((err) => {
});
}
function managerChange(e, l, d, t, orgName) {
console.log(e, l);
state.searchParam.userNo = d;
state.searchParam.name = t;
// state.searchParam.trainorgName=orgName
}
//导出功能
const handleExport = () => {
window.open(
`${process.env.VUE_APP_BASE_API}/teacher/export?pageNo=${state.currentPage1
}&pageSize=${state.pageSize1}
`${process.env.VUE_APP_BASE_API}/teacher/export?pageNo=${state.searchParam.currentPage
}&pageSize=${state.searchParam.pageSize}
&userNo=${state.searchParam.userNo ? state.searchParam.userNo : ""
}
&teacher=${state.searchParam.teacher ? state.searchParam.teacher : ""
}&name=${state.searchParam.name ? state.searchParam.name : ""}
&address=${state.searchParam.address ? state.searchParam.address : ""
}&status=${state.searchParam.status ? state.searchParam.status : ""}&beginTime=${state.searchParam.beginTime ? state.searchParam.certbeginTimeStatus : ""
}`
&startDate=${state.searchParam.startDate ? state.searchParam.startDate : ""}
&endDate=${state.searchParam.endDate ? state.searchParam.endDate : ""}
&entryType=${state.searchParam.entryType ? state.searchParam.entryType : ""}
&id=${state.searchParam.id ? state.searchParam.id : ""
}&status=${state.searchParam.status ? state.searchParam.status : ""}`
);
}
return {
...toRefs(state),
rules,
managerChange,
entryTypeList,
searchTimeChange,
cancelTeachingDialog,

View File

@@ -138,7 +138,6 @@
import { reactive, toRefs, ref } from "vue";
import { useRouter } from "vue-router";
import Editor from "@/components/project/Editor";
import Upload from "@/components/project/Upload";
import {infoteacher,getLevel,deleteTeacher, } from "../../api/Lecturer";
import { getNewInTeacherCourseList} from "../../api/Teaching";
// import {getProjSt} from "../../api/indexProjStu";
@@ -148,7 +147,7 @@ export default {
components: {
// AddTeacher,
Editor,
Upload
},
setup() {
const router = useRouter();

View File

@@ -33,13 +33,13 @@
</a-tree-select> -->
</a-form-item>
<a-form-item class="select">
<a-select style="width: 276px" placeholder="请选择讲师体系" v-model:value="searchParam.tsystemName"
<a-select style="width: 276px" placeholder="请选择讲师体系" v-model:value="searchParam.kid" allowClear
:options="LecturerSystemList" @change="changetlevel">
</a-select>
</a-form-item>
<a-form-item class="select">
<a-select style="width: 276px" v-model:value="searchParam.tlevelId" placeholder="请选择讲师级别"
:options="getLevelList">
<a-select style="width: 276px" v-model:value="searchParam.tlevelId" placeholder="请选择讲师级别" allowClear
:options="getLevelList" :disabled="getLevelList.length!==0 ? false:true" >
</a-select>
</a-form-item>
<div style="display: flex; margin-bottom: 20px">
@@ -63,19 +63,19 @@
<div style="width:100%"></div>
<a-form-item v-if="moreid == 2" class="select">
<a-select style="width: 276px ;margin-bottom:20px" v-model:value="searchParam.waitStatus" placeholder="在职状态"
:options="OnTheJobStatusList">
:options="OnTheJobStatusList" allowClear>
</a-select>
</a-form-item>
<a-form-item v-if="moreid == 2" class="select">
<a-select style="width: 276px ;margin-bottom:20px" v-model:value="searchParam.certStatus" placeholder="认证状态"
<a-select style="width: 276px ;margin-bottom:20px" v-model:value="searchParam.certStatus" placeholder="认证状态" allowClear
:options="AuthenticationStatusList">
</a-select>
</a-form-item>
<a-form-item v-if="moreid == 2" class="select">
<a-select style="width: 276px ;margin-bottom:20px" v-model:value="searchParam.payrollPlaceId" placeholder="发薪地"
<!-- <a-form-item v-if="moreid == 2" class="select">
<a-select style="width: 276px ;margin-bottom:20px" v-model:value="searchParam.payrollPlaceId" placeholder="发薪地" allowClear
:options="PlaceOfPayList">
</a-select>
</a-form-item>
</a-form-item> -->
<!-- <div class="select">
<a-select style="width: 276px" v-model:value="searchParam.status" placeholder="账号状态"
:options="AccountStatusList">
@@ -195,15 +195,17 @@
<!-- 讲师级别 体系-->
<a-row :gutter="16">
<a-col :span="12">
<a-form-item label="讲师体系" name="systemId">
<a-select class="draitem" v-model:value="formParam.systemId" placeholder="请选择讲师体系"
<a-form-item label="讲师体系" name="tsystemId">
<a-select class="draitem" v-model:value="formParam.tsystemId" placeholder="请选择讲师体系" allowClear
@change="changetlevel"
:options="LecturerSystemList">
</a-select>
</a-form-item>
</a-col>
<a-col :span="12">
<a-form-item label="讲师级别" name="levelId">
<a-select class="draitem" v-model:value="formParam.levelId" placeholder="请选择讲师级别"
<a-form-item label="讲师级别" name="tlevelId">
<a-select class="draitem" v-model:value="formParam.tlevelId" placeholder="请选择讲师级别" allowClear
:disabled="getLevelList.length!==0 ? false:true"
:options="getLevelList">
</a-select>
</a-form-item>
@@ -410,7 +412,7 @@ export default {
searchParam: {
name:null,
userNo: null,
tsystemName: null,
kid: null,
tlevelId: null,
waitStatus: null,
certStatus: null,
@@ -520,7 +522,7 @@ export default {
])
const changetlevel = (val) => {
console.log( "讲师体系id" +val);
getLevel( {systemId:val}).then((res) => {
getLevel( {kid:val}).then((res) => {
if (res.data.code === 200) {
let arr = res.data.data;
let array = [];
@@ -569,59 +571,59 @@ console.log( "讲师体系id" +val);
{ value: 1, label: "启用" },
{ value: 2, label: "停用" },
])
const teacheExpertiseList = ref([
])
// const teacheExpertiseList = ref([
// ])
//获取讲师父 专长
const TeacherExpertiseList = ref([
]);
const getTeacherExpertisea = () => {
// console.log('点击了LecturerSystemLista')
getTeacherExpertise().then((res) => {
if (res.data.code === 200) {
let arr = res.data.data;
let array = [];
arr.map((value) => {
let obj = {
value: value.id,
label: value.name,
};
array.push(obj);
});
TeacherExpertiseList.value = array;
}
})
}
getTeacherExpertisea()
const changeSelect = (val) => {
state.byPid = val
getTeacherExpertiseByPida(val)
state.formParam.expertise = getTeacherExpertiseByPidList[0]
}
// //获取讲师父 专长
// const TeacherExpertiseList = ref([
// ]);
// const getTeacherExpertisea = () => {
// // console.log('点击了LecturerSystemLista')
// getTeacherExpertise().then((res) => {
// if (res.data.code === 200) {
// let arr = res.data.data;
// let array = [];
// arr.map((value) => {
// let obj = {
// value: value.id,
// label: value.name,
// };
// array.push(obj);
// });
// TeacherExpertiseList.value = array;
// }
// })
// }
// getTeacherExpertisea()
// const changeSelect = (val) => {
// state.byPid = val
// getTeacherExpertiseByPida(val)
// state.formParam.expertise = getTeacherExpertiseByPidList[0]
// }
//获取讲师子 专长
const getTeacherExpertiseByPidList = ref([
]);
const getTeacherExpertiseByPida = () => {
// let pid = {id :val}
// console.log('点击了LecturerSystemLista')
let id = val
getTeacherExpertiseByPid(state.byPid).then((res) => {
if (res.data.code === 200) {
let arr = res.data.data;
let array = [];
arr.map((value) => {
let obj = {
value: value.id,
label: value.name,
};
array.push(obj);
});
getTeacherExpertiseByPidList.value = array;
}
})
}
watch(
)
// const getTeacherExpertiseByPidList = ref([
// ]);
// const getTeacherExpertiseByPida = () => {
// // let pid = {id :val}
// // console.log('点击了LecturerSystemLista')
// let id = val
// getTeacherExpertiseByPid(state.byPid).then((res) => {
// if (res.data.code === 200) {
// let arr = res.data.data;
// let array = [];
// arr.map((value) => {
// let obj = {
// value: value.id,
// label: value.name,
// };
// array.push(obj);
// });
// getTeacherExpertiseByPidList.value = array;
// }
// })
// }
// watch(
// )
//新增页面内部姓名
const infoteacherList = ref([
// { value: 0, systemName: "讲师体系" },
@@ -785,7 +787,7 @@ console.log( "讲师体系id" +val);
state.searchParam = {
name:null,
userNo: null,
tsystemName: null,
kid: null,
tlevelId: null,
waitStatus: null,
certStatus: null,
@@ -866,7 +868,7 @@ console.log( "讲师体系id" +val);
// departId:'8465784657',
// defaultTeachingTime:50,
// leveId:1,
// tsystemName:249,
// kid:249,
// certStatus:1,
// description:'测试13.00',
// workExperience:'测试13.00',
@@ -943,12 +945,12 @@ console.log( "讲师体系id" +val);
name: null,
// userNo:null,
departId: null,
levelId: null,
tlevelId: null,
defaultTeachingTime: null,
// levelName:null,
// leveName:null,
systemId: null,
// tsystemName:null,
tsystemId: null,
// kid:null,
certStatus:0,
description:null,
workExperience:null,
@@ -958,8 +960,8 @@ console.log( "讲师体系id" +val);
const rules = {
name: [{ required: true, message: '讲师不能为空' }],
departId: [{ required: true, message: '组织不能为空' }],
levelId: [{ required: true, message: '讲师级别不能为空' }],
systemId: [{ required: true, message: '讲师体系不能为空' }],
tlevelId: [{ required: true, message: '讲师级别不能为空' }],
tsystemId: [{ required: true, message: '讲师体系不能为空' }],
defaultTeachingTime: [{ required: true, message: '授课时长不能为空' }],
certStatus: [{ required: true, message: '认证状态不能为空' }],
@@ -981,15 +983,25 @@ console.log( "讲师体系id" +val);
console.log("内部讲师详情", err);
});
}
function managerChange(e, l, d, t, orgName) {
console.log(e, l);
state.searchParam.userNo = d;
state.searchParam.name = t;
// state.searchParam.trainorgName=orgName
}
//导出功能
const handleExport = () => {
window.open(
`${process.env.VUE_APP_BASE_API}/teacher/export?pageNo=${state.currentPage1
}&pageSize=${state.pageSize1}&userNo=${state.searchParam.userNo ? state.searchParam.userNo : ""
}&tsystemName=${state.searchParam.tsystemName ? state.searchParam.tsystemName : ""}&tlevelId=${state.searchParam.tlevelId ? state.searchParam.tlevelId : ""
}&waitStatus=${state.searchParam.waitStatus ? state.searchParam.waitStatus : ""}&certStatus=${state.searchParam.certStatus ? state.searchParam.certStatus : ""
}&salaryName=${state.searchParam.salaryName ? state.searchParam.salaryName : ""}&payrollPlaceId=${state.searchParam.payrollPlaceId ? state.searchParam.payrollPlaceId : ""}&status=${state.searchParam.status ? state.searchParam.status : ""}`
}&pageSize=${state.pageSize1}
&userNo=${state.searchParam.userNo ? state.searchParam.userNo : ""}
&name=${state.searchParam.name ? state.searchParam.name : ""}
&kid=${state.searchParam.kid ? state.searchParam.kid : ""}
&tlevelId=${state.searchParam.tlevelId ? state.searchParam.tlevelId : ""
}&waitStatus=${state.searchParam.waitStatus ? state.searchParam.waitStatus : ""}
&certStatus=${state.searchParam.certStatus ? state.searchParam.certStatus : ""
}&salaryName=${state.searchParam.salaryName ? state.searchParam.salaryName : ""}
&status=${state.searchParam.status ? state.searchParam.status : ""}`
);
// this.download('lesson_records/export', {
// ...state.searchParam
@@ -998,10 +1010,11 @@ console.log( "讲师体系id" +val);
return {
...toRefs(state),
rules,
managerChange,
headers,
beforeUpload,
handlemoreid,
changeSelect,
// changeSelect,
handleExport,
LecturerSystemList,
getLevelList,
@@ -1026,15 +1039,15 @@ console.log( "讲师体系id" +val);
createTeacherDialog,
handleOperate,
closehandleOperate,
teacheExpertiseList,
// teacheExpertiseList,
getTableDate, //list接口数据调用
// getStu
LecturerSystemLista,
TeacherSystem,
TeacherExpertiseList,
getTeacherExpertisea,
getTeacherExpertiseByPidList,
getTeacherExpertiseByPida,
// TeacherExpertiseList,
// getTeacherExpertisea,
// getTeacherExpertiseByPidList,
// getTeacherExpertiseByPida,
infoteacherList,
getinfoteacher,
addContentData,

View File

@@ -7,8 +7,8 @@
<a-form-item class="select">
<!-- v-model:value="searchParam.name" -->
<div style="width: 276px; height: 40px; border-radius: 8px" >
<ProjectManager v-model:value="searchParam.managerId"
v-model:name="searchParam.manager"
<ProjectManager v-model:value="searchParam.userNo"
v-model:name="searchParam.teacher"
placeholder="请输入工号/讲师姓名进行检索"
@onChange="managerChange" mode="multiple"></ProjectManager>
</div>
@@ -17,7 +17,7 @@
</a-select> -->
</a-form-item>
<a-form-item class="select">
<a-input v-model:value="searchParam.teacherNo" style="width: 260px; height: 40px; border-radius: 8px"
<a-input v-model:value="searchParam.name" style="width: 260px; height: 40px; border-radius: 8px"
placeholder="请输入课程名称进行搜索" allowClear showSearch>
</a-input>
</a-form-item>
@@ -46,27 +46,27 @@
<div style="width:100%"></div>
<a-form-item class="select" v-if="moreid == 2">
<a-select style="width: 230px ;margin-bottom:20px" v-model:value="searchParam.entryType" placeholder="录入类型"
:options="entryTypeList">
:options="entryTypeList" allowClear>
</a-select>
</a-form-item>
<a-form-item class="select" v-if="moreid == 2">
<a-select style="width: 230px" v-model:value="searchParam.status" placeholder="开课状态"
:options="AuthenticationStatusList">
:options="AuthenticationStatusList" allowClear>
</a-select>
</a-form-item>
<a-form-item class="select" v-if="moreid == 2">
<a-select style="width: 230px" placeholder="请选择所属组织" v-model:value="searchParam.entryType"
:options="getOrganizationList">
<a-select style="width: 230px" placeholder="请选择所属组织" v-model:value="searchParam.trainorgId"
:options="getOrganizationList" allowClear>
</a-select>
</a-form-item>
<a-form-item class="select" v-if="moreid == 2">
<a-select style="width: 230px" placeholder="请选择讲师体系" v-model:value="searchParam.systemId"
:options="LecturerSystemList">
:options="LecturerSystemList" allowClear>
</a-select>
</a-form-item>
<a-form-item class="select" v-if="moreid == 2">
<a-select style="width: 230px" v-model:value="searchParam.tlevelName" placeholder="内容分类"
:options="getTeacherExpertiseList">
<a-select style="width: 230px" v-model:value="searchParam.id" placeholder="内容分类"
:options="getTeacherExpertiseList" allowClear>
</a-select>
</a-form-item>
</a-form>
@@ -127,9 +127,11 @@
<a-row :gutter="16">
<a-col :span="12">
<a-form-item label="讲师名称" name="teacher">
<a-tree-select v-model:value="formParam.teacher" tree-data-simple-mode
class="draitem"
:dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" :tree-data="treeData" placeholder="请输入讲师名称" />
<ProjectManager v-model:value="formParam.userNo"
v-model:name="formParam.teacher"
placeholder="请输入工号/讲师姓名进行检索"
@onChange="managerChange" mode="multiple"></ProjectManager>
</a-form-item>
</a-col>
<a-col :span="12">
@@ -149,31 +151,31 @@
<a-row :gutter="16">
<a-col :span="12">
<a-form-item label="讲师体系" name="systemId">
<a-select disabled class="draitem" v-model:value="formParam.systemId" placeholder="请选择讲师体系"
<a-select disabled class="draitem" v-model:value="formParam.systemId" allowClear placeholder="自动带出讲师体系"
:options="LecturerSystemList">
</a-select>
</a-form-item>
</a-col>
<a-col :span="12">
<a-form-item label="讲师级别" name="levelId">
<a-select disabled class="draitem" v-model:value="formParam.levelId" placeholder="请选择讲师级别"
<a-select disabled class="draitem" v-model:value="formParam.levelId" allowClear placeholder="自动带出讲师级别"
:options="getLevelList">
</a-select>
</a-form-item>
</a-col>
</a-row>
<!-- 内容分类 tlevelName 课程名称 teacherNo -->
<!-- 内容分类 id 课程名称 name -->
<a-row :gutter="16">
<a-col :span="12">
<a-form-item label="内容分类" name="tlevelName">
<a-select class="draitem" v-model:value="searchParam.tlevelName" placeholder="内容分类"
<a-form-item label="内容分类" name="id">
<a-select class="draitem" allowClear v-model:value="formParam.id" placeholder="内容分类"
:options="getTeacherExpertiseList">
</a-select>
</a-form-item>
</a-col>
<a-col :span="12">
<a-form-item label="课程名称:" name="teacherNo">
<a-input class="draitem" v-model:value="searchParam.teacherNo"
<a-form-item label="课程名称:" name="name">
<a-input class="draitem" v-model:value="formParam.name"
placeholder="请输入后搜索面授课" allowClear showSearch>
</a-input>
</a-form-item>
@@ -270,7 +272,7 @@
<a-descriptions-item label="授课/课程日期 ">{{formParam.beginTime}}</a-descriptions-item>
<a-descriptions-item label="参训人数 ">{{formParam.studys}}</a-descriptions-item>
<a-descriptions-item label="评分 ">{{formParam.score}}</a-descriptions-item>
<a-descriptions-item label="内容分类 ">{{formParam.teaching}}</a-descriptions-item>
<a-descriptions-item label="内容分类 ">{{formParam.id}}</a-descriptions-item>
<a-descriptions-item label="备注 ">{{formParam.remark}}</a-descriptions-item>
</a-descriptions>
<span class="line"></span>
@@ -389,7 +391,8 @@ export default {
},
searchParam: {
userNo: null,//工号姓名
teacherNo: null,//课程编号
teacher:null,
name: null,//课程编号
tsystemName: null,//讲师体系
payrollPlaceName: null,//发薪地
entryType:null,
@@ -413,8 +416,8 @@ export default {
let array = [];
arr.map((value) => {
let obj = {
value: value.departId,
label: value.orgName,
value: value.trainorgId,
label: value.trainOrgName,
};
array.push(obj);
});
@@ -657,11 +660,11 @@ export default {
}
else if (state.moreid == 2) {
state.moreid = 1
state.searchParam.type = null
state.searchParam.entryType = null
state.searchParam.status = null
state.searchParam.departId = null
state.searchParam.trainorgId = null
state.searchParam.systemId = null
state.searchParam.tlevelName = null
state.searchParam.id = null
}
}
// 搜索
@@ -682,15 +685,17 @@ export default {
//重置
const searchReset = () => {
state.searchParam = {
pageNo: 1,
pageSize: 10,
managerId: null,
teacherNo: null,
name: null,
manager:null,
entryType: null,
status: null,
entryType:null,
trainorgId:null,
systemId:null,
beginTime: null,
endDate:null,
startDate:null,
entryType:null
};
getTableDate();
@@ -748,6 +753,7 @@ export default {
}).catch((err) => {
console.log(err);
});
cancel()
}
getTableDate();
state.teacherdialog = false
@@ -787,9 +793,10 @@ export default {
departId: null,
systemId:null,
levelId: null,
teacherNo:null,
defaultTeachingTime: 0,
beginTime: null,
name:null,
defaultTeachingTime:0,
endDate:null,
startDate:null,
studys: null,
score: null,
type: null,
@@ -845,7 +852,7 @@ export default {
levelId: record.levelId,
type: record.type,
name: record.name,
status:record.name,
status:record.status,
beginTime: moment(record.beginTime, 'YYYY-MM-DD'),
// ref< moment.Moment >(moment(record.beginTime,'YYYY-MM-DD')),
// record.beginTime,
@@ -925,30 +932,38 @@ export default {
departId: [{ required: true, message: '讲师组织不能为空' }],
levelId: [{ required: true, message: '讲师级别不能为空' }],
systemId: [{ required: true, message: '讲师体系不能为空' }],
tlevelName: [{ required: true, message: '内容分类不能为空' }],
teacherNo: [{ required: true, message: '课程名称不能为空' }],
id: [{ required: true, message: '内容分类不能为空' }],
name: [{ required: true, message: '课程名称不能为空' }],
beginTime: [{ required: true, message: '授课/课程日期不能为空' }],
defaultTeachingTime: [{ required: true, message: '授课时长不能为空' }],
certStatus: [{ required: true, message: '认证状态不能为空' }],
}
function managerChange(e, l, d, t, orgName) {
console.log(e, l);
state.searchParam.userNo = d;
state.searchParam.name = t;
// state.searchParam.trainorgName=orgName
}
//导出功能
const handleExport = () => {
window.open(
`${process.env.VUE_APP_BASE_API}/lesson_records/export?pageNo=${state.currentPage1
}&pageSize=${state.pageSize1}
`${process.env.VUE_APP_BASE_API}/lesson_records/export?pageNo=${state.searchParam.currentPage
}&pageSize=${state.searchParam.pageSize}
&userNo=${state.searchParam.userNo ? state.searchParam.userNo : ""}
&teacherNo=${state.searchParam.teacherNo ? state.searchParam.teacherNo : ""}
&name=${state.searchParam.name ? state.searchParam.name : ""}
&departId=${state.searchParam.departId ? state.searchParam.departId : ""}
&systemId=${state.searchParam.systemId ? state.searchParam.systemId : ""}
&startDate=${state.searchParam.startDate ? state.searchParam.startDate : ""}
&endDate=${state.searchParam.endDate ? state.searchParam.endDate : ""}
&tlevelName=${state.searchParam.tlevelName ? state.searchParam.tlevelName : ""}
&entryType=${state.searchParam.entryType ? state.searchParam.entryType : ""}
&id=${state.searchParam.id ? state.searchParam.id : ""}
&type=${state.searchParam.type ? state.searchParam.type : ""}
&status=${state.searchParam.status ? state.searchParam.status : ""}`)
}
return {
...toRefs(state),
managerChange,
rules,
column,
tableDatas,

View File

@@ -6,19 +6,18 @@
<a-form layout="inline" style="min-width: 1380px;">
<a-form-item class="select">
<!-- v-model:value="searchParam.name" -->
<div style="width: 276px; height: 40px; border-radius: 8px" >
<ProjectManager v-model:value="searchParam.managerId"
v-model:name="searchParam.manager"
<!-- <a-input v-model:value="searchParam.teacherNo" style="width: 276px; height: 40px; border-radius: 8px"
placeholder="请输入工号/讲师姓名进行检索" allowClear showSearch>
</a-input>
--> <div style="width: 276px; height: 40px; border-radius: 8px" >
<ProjectManager v-model:value="searchParam.teacherNo"
v-model:name="searchParam.teacherName"
placeholder="请输入工号/讲师姓名进行检索"
@onChange="managerChange" mode="multiple"></ProjectManager>
</div>
<!-- <a-select style="width: 276px" placeholder="请选择所属组织" v-model:value="searchParam.userNo"
:options="infoteacherList">
</a-select> -->
</a-form-item>
<a-form-item class="select">
<a-select style="width: 276px" v-model:value="searchParam.trainOrgId" placeholder="培训发生组织"
<a-select style="width: 276px" v-model:value="searchParam.trainorgId" placeholder="培训发生组织" allowClear
:options="trainOrglist">
</a-select>
</a-form-item>
@@ -46,27 +45,27 @@
</div>
<div style="width:100%"></div>
<a-form-item class="select" v-if="moreid == 2">
<a-select style="width: 230px ;margin-bottom:20px" v-model:value="searchParam.type" placeholder="请选择费用类型(未命名)"
:options="PlaceOfPayList">
<a-select style="width: 230px ;margin-bottom:20px" v-model:value="searchParam.courseType" placeholder="请选择费用类型" allowClear
:options="courseTypeList">
</a-select>
</a-form-item>
<a-form-item class="select" v-if="moreid == 2">
<a-select style="width: 230px ;margin-bottom:20px" v-model:value="searchParam.type" placeholder="请选择课程类型"
<a-select style="width: 230px ;margin-bottom:20px" v-model:value="searchParam.type" placeholder="请选择课程类型" allowClear
:options="OnTheJobStatusList">
</a-select>
</a-form-item>
<a-form-item class="select" v-if="moreid == 2">
<a-select style="width: 230px ;margin-bottom:20px" v-model:value="searchParam.status" placeholder="请选择状态"
<a-select style="width: 230px ;margin-bottom:20px" v-model:value="searchParam.status" placeholder="请选择状态" allowClear
:options="AuthenticationStatusList">
</a-select>
</a-form-item>
<a-form-item class="select" v-if="moreid == 2">
<a-select style="width: 230px ;margin-bottom:20px" placeholder="请选择讲师体系" v-model:value="searchParam.tsystemName"
:options="LecturerSystemList">
<a-select style="width: 230px ;margin-bottom:20px" placeholder="请选择讲师体系" v-model:value="searchParam.kid" allowClear
:options="lecturerSystemList" @change="changetlevel">
</a-select>
</a-form-item>
<a-form-item class="select" v-if="moreid == 2">
<a-select style="width: 230px ;margin-bottom:20px" v-model:value="searchParam.tlevelId" placeholder="请选择讲师级别"
<a-select style="width: 230px ;margin-bottom:20px" v-model:value="searchParam.tlevelId" placeholder="请选择讲师级别" allowClear :disabled="getLevelList.length!==0 ? false:true"
:options="getLevelList">
</a-select>
</a-form-item>
@@ -263,7 +262,9 @@
},
searchParam: {
teacherNo:null,
tsystemName:null,
teacherName:null,
trainorgId:null,
kid:null,
tlevelId:null,
courseType:null,
certStatus:null,
@@ -276,12 +277,12 @@
endDate: null,
},
})
// 时间格式转换
const handleDate=()=>{
// state.formParam.beginTime=dayjs(new Date.getTime()).format("YYYY-MM-DD")
}
handleDate()
//费用类型
const courseTypeList=ref([
{ value: 1, label: "课程开发" },
{ value: 2, label: "作业人员入模培训" },
{ value: 3, label: "其他" },
])
//获取内容分类
const getTeacherExpertiseList = ref([
// { value: 0, label: "未定级" },
@@ -327,14 +328,13 @@
const trainOrglist=ref([])
//获取培训发生组织
const trainOrglista =() => {
// console.log('点击了LecturerSystemLista')
getTrainOrg().then((res)=>{
if (res.data.code === 200) {
let arr = res.data.data;
let array = [];
arr.map((value) => {
let obj = {
value: value.trainOrgId,
value: value.trainorgId,
label: value.trainOrg,
};
array.push(obj);
@@ -575,11 +575,12 @@
}
},
{
title: '讲师组织(未命名) ',
dataIndex: 'certStatus',
key: 'certStatus',
title: '讲师组织',
dataIndex: 'trainOrg',
key: 'trainOrg',
elipsis: true, align: "center",
width: 120,
width: 200,
scopedSlots: { customRender: "trainOrg" },
},
{
title: '操作 ',
@@ -602,8 +603,10 @@
//重置
const searchReset = () => {
state.searchParam = {
endDate:null,
startDate:null,
teacherNo:null,
tsystemName:null,
kid:null,
tlevelId:null,
courseType:null,
certStatus:null,
@@ -614,6 +617,17 @@
pageSize: 10 ,
};
getTableDate();
};
//修改时间
const searchTimeChange = (e, date) => {
let startTime = date[0] + " 00:00:00";
let endTime = date[1] + " 23:59:59";
state.startTime = new Date(startTime).getTime();
state.endTime = new Date(endTime).getTime();
// state.searchParam.startDate = new Date(startDate).getTime() ;
// state.searchParam.endDate = new Date(endDate).getTime() ;
state.searchParam.startDate = state.startTime ? state.startTime : null,
state.searchParam.endDate = state.endTime ? state.endTime : null
};
// List接口数据
const getTableDate = (obj) => {
@@ -666,24 +680,26 @@
state.deleteInTeacherdialog = false
state.editTeacher = false
};
//清空数据
const cancel = () => {
state.formParam ={
teacherName:null,
userNo:null,
teacherOrg:null,
systemName:null,
courseName:null,
trainOrg:null,
teachingDate:null,
teacher:null,
teacherNo:null,
departId:null,
kid:null,
courseName:0,
levelId:null,
payrollPlaceId:null,
// 费用类型 : null
teacherpayrollPlace:null,
teachingTime:null,
levelName:null,
studentNum:null,
courseAssess:null,
teachingDate:null,
defaultTeachingTime:0,
courseType:null,
studys:null,
teacherlevelPay:null,
score:null,
trainOrg:null,
payableExpense:null,
expense:null,
remark:null,
}
@@ -761,6 +777,12 @@
width: 120,
},
])
function managerChange(e, l, d, t, orgName) {
console.log(e, l);
state.searchParam.teacherNo = d;
state.searchParam.teacherName = t;
// state.searchParam.trainorgName=orgName
}
//导出功能
const handleExport = ()=>{
window.open (
@@ -780,8 +802,10 @@
}
return {
...toRefs(state),
searchTimeChange,
gettableDataExamine,
handleDate,
courseTypeList,
managerChange,
trainOrglist,
trainOrglista,
getTeacherExpertiseList,

View File

@@ -6,18 +6,18 @@
<a-form layout="inline" style="min-width: 1380px;">
<a-form-item class="select">
<!-- v-model:value="searchParam.name" -->
<!-- <a-input v-model:value="searchParam.userNo" style="width: 276px; height: 40px; border-radius: 8px"
<!-- <a-input v-model:value="searchParam.teacherNo" style="width: 276px; height: 40px; border-radius: 8px"
placeholder="请输入工号/讲师姓名进行检索" allowClear showSearch>
</a-input>
--> <div style="width: 276px; height: 40px; border-radius: 8px" >
<ProjectManager v-model:value="searchParam.managerId"
v-model:name="searchParam.manager"
<ProjectManager v-model:value="searchParam.teacherNo"
v-model:name="searchParam.teacherName"
placeholder="请输入工号/讲师姓名进行检索"
@onChange="managerChange" mode="multiple"></ProjectManager>
</div>
</a-form-item>
<a-form-item class="select">
<a-select style="width: 276px" v-model:value="searchParam.trainorgId" placeholder="培训发生组织"
<a-select style="width: 276px" v-model:value="searchParam.trainorgId" placeholder="培训发生组织" allowClear
:options="trainOrglist">
</a-select>
</a-form-item>
@@ -45,27 +45,27 @@
</div>
<div style="width:100%"></div>
<a-form-item class="select" v-if="moreid == 2">
<a-select style="width: 230px ;margin-bottom:20px" v-model:value="searchParam.type" placeholder="请选择费用类型(未命名)"
:options="PlaceOfPayList">
<a-select style="width: 230px ;margin-bottom:20px" v-model:value="searchParam.courseType" placeholder="请选择费用类型" allowClear
:options="courseTypeList">
</a-select>
</a-form-item>
<a-form-item class="select" v-if="moreid == 2">
<a-select style="width: 230px ;margin-bottom:20px" v-model:value="searchParam.type" placeholder="请选择课程类型"
<a-select style="width: 230px ;margin-bottom:20px" v-model:value="searchParam.type" placeholder="请选择课程类型" allowClear
:options="OnTheJobStatusList">
</a-select>
</a-form-item>
<a-form-item class="select" v-if="moreid == 2">
<a-select style="width: 230px ;margin-bottom:20px" v-model:value="searchParam.status" placeholder="请选择状态"
<a-select style="width: 230px ;margin-bottom:20px" v-model:value="searchParam.status" placeholder="请选择状态" allowClear
:options="AuthenticationStatusList">
</a-select>
</a-form-item>
<a-form-item class="select" v-if="moreid == 2">
<a-select style="width: 230px ;margin-bottom:20px" placeholder="请选择讲师体系" v-model:value="searchParam.tsystemName"
:options="lecturerSystemList">
<a-select style="width: 230px ;margin-bottom:20px" placeholder="请选择讲师体系" v-model:value="searchParam.kid" allowClear
:options="lecturerSystemList" @change="changetlevel">
</a-select>
</a-form-item>
<a-form-item class="select" v-if="moreid == 2">
<a-select style="width: 230px ;margin-bottom:20px" v-model:value="searchParam.tlevelId" placeholder="请选择讲师级别"
<a-select style="width: 230px ;margin-bottom:20px" v-model:value="searchParam.tlevelId" placeholder="请选择讲师级别" allowClear :disabled="getLevelList.length!==0 ? false:true"
:options="getLevelList">
</a-select>
</a-form-item>
@@ -101,13 +101,13 @@
<!-- <a-button type="link" @click="() => deleteModal(record, String(record.courseform))">删除</a-button> -->
</a-space>
</template>
<template v-if="column.key === 'certStatus'">
<template v-if="column.key === 'trainOrg'">
<a-space style="display:flex ;justify-content: space-around; ">
<a-popover>
<template #content>
<p>{{ record.certStatus }}</p>
<p>{{ record.trainOrg }}</p>
</template>
<span>{{ record.certStatus }}</span>
<span>{{ record.trainOrg }}</span>
</a-popover>
</a-space>
</template>
@@ -135,18 +135,20 @@
<a-drawer v-model:visible="teacherdialog" placement="right" @closa="cancelTeacherDialog" :maskClosable="true" dropdown-style="drawaer"
width="60%" :title="teacherdialogtitle">
<a-form :model="formParam" :rules="rules" layout="vertical">
<!-- 讲师姓名 name 讲师工号 user-->
<!-- 讲师姓名 name 讲师工号 teacherNo-->
<a-row :gutter="16">
<a-col :span="12">
<a-form-item label="讲师名称" name="teacher">
<a-tree-select v-model:value="formParam.teacher" tree-data-simple-mode
class="draitem"
:dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" :tree-data="treeData" placeholder="请输入讲师名称" />
<ProjectManager v-model:value="searchParam.teacherNo"
v-model:name="searchParam.teacherName"
placeholder="请输入工号/讲师姓名进行检索"
@onChange="managerChange" mode="multiple"></ProjectManager>
</a-form-item>
</a-col>
<a-col :span="12">
<a-form-item label="讲师工号" name="user">
<a-input class="draitem" v-model:value="searchParam.user" disabled
<a-form-item label="讲师工号" name="teacherNo">
<a-input class="draitem" v-model:value="searchParam.teacherNo" disabled
placeholder="请输入后讲师工号" allowClear showSearch>
</a-input>
</a-form-item>
@@ -168,7 +170,7 @@
</a-col>
<a-col :span="12">
<a-form-item label="讲师体系" name="systemId">
<a-select disabled class="draitem" v-model:value="formParam.systemId" placeholder="请选择讲师体系"
<a-select disabled class="draitem" v-model:value="formParam.kid" placeholder="请选择讲师体系"
:options="lecturerSystemList">
</a-select>
</a-form-item>
@@ -177,16 +179,19 @@
<!-- 讲师级别 levelId 讲师发薪地 payrollPlaceId-->
<a-row :gutter="16">
<a-col :span="12">
<a-form-item label="讲师级别" name="levelId">
<a-select disabled class="draitem" v-model:value="formParam.levelId" placeholder="请选择讲师级别"
<a-form-item label="讲师级别" name="levelName">
<!-- <a-select disabled class="draitem" v-model:value="formParam.levelId" placeholder="请选择讲师级别"
:options="getLevelList">
</a-select>
</a-select> -->
<a-input disabled v-model:value="formParam.levelName" class="draitem"
placeholder="自动带出讲师的级别" allowClear showSearch>
</a-input>
</a-form-item>
</a-col>
<a-col :span="12">
<a-form-item label="讲师发薪地" name="payrollPlaceId ">
<a-select v-model:value="formParam.payrollPlaceId" placeholder="发薪地"
:options="PlaceOfPayList">
:options="PlaceOfPayList" allowClear>
</a-select>
</a-form-item>
</a-col>
@@ -194,9 +199,9 @@
<!-- 费用类型 课程名称 courseName-->
<a-row :gutter="16">
<a-col :span="12">
<a-form-item label="费用类型(未命名)" name="levelId">
<a-select disabled class="draitem" v-model:value="formParam.levelId" placeholder="请选择费用类型"
:options="getLevelList">
<a-form-item label="费用类型" name="levelId">
<a-select disabled class="draitem" v-model:value="formParam.courseType" placeholder="请选择费用类型"
:options="courseTypeList">
</a-select>
</a-form-item>
</a-col>
@@ -206,23 +211,23 @@
<a-radio :value="0">面授课</a-radio>
<a-radio :value="1">在线课</a-radio>
</a-radio-group>
<a-select class="draitem" v-model:value="formParam.levelId" placeholder="请选择输入或选择面授课(未命名)" style="width:63%"
<a-select class="draitem" v-model:value="formParam.levelId" placeholder="请选择输入或选择面授课(未命名)" style="width:63%" allowClear
:options="getLevelList">
</a-select>
</a-form-item>
</a-col>
</a-row>
<!-- 授课日期 beginTime 授课时长 defaultTeachingTime -->
<!-- 授课日期 teachingDate 授课时长 defaultTeachingTime -->
<a-row :gutter="16">
<a-col :span="12">
<a-form-item label="授课/课程日期 :" name="beginTime">
<a-input v-model:value="formParam.beginTime" disabled placeholder="" class="draitem">
<a-form-item label="授课/课程日期 :" name="teachingDate">
<a-input v-model:value="formParam.teachingDate" disabled placeholder="" class="draitem">
</a-input>
</a-form-item>
</a-col>
<a-col :span="12">
<a-form-item label="授课时长" name="defaultTeachingTime">
<a-input v-model:value="formParam.defaultTeachingTime" class="draitem" placeholder="0"
<a-input v-model:value="formParam.defaultTeachingTime" class="draitem" placeholder="0" style="width:80%"
allowClear showSearch suffix="分钟">
</a-input>
<span style="margin-left: 5px ;">{{ (formParam.defaultTeachingTime /60 ).toFixed(2)}}小时</span>
@@ -267,8 +272,8 @@
<!-- 应发费用 -->
<a-row :gutter="16">
<a-col :span="24">
<a-form-item label="应发费用(未命名)" name="studys">
<a-input v-model:value="formParam.studys" class="draitem"
<a-form-item label="应发费用" name="payableExpense">
<a-input v-model:value="formParam.payableExpense" class="draitem"
placeholder="0 " allowClear showSearch>
</a-input>
</a-form-item>
@@ -316,7 +321,7 @@
<span v-if="handleOperate1== 'A20'">您确定要撤回此信息吗</span>
</div>
<div class="del_btnbox">
<div class="del_btn btn2" @click="cancelTeacherDialog" style="margin-right: 32px">
<div class="del_btn btn2" @click="canceleditTeacherDialog" style="margin-right: 32px">
<div class="btnText">取消</div>
</div>
<div class="del_btn btn2" @click="closehandleOperate">
@@ -328,6 +333,48 @@
</a-modal>
</div>
<!-- <div> <Upload/> </div> -->
<a-drawer v-model:visible="teachingdialog" placement="right"
@closa="cancelTeachingDialog" :maskClosable="true" width="60%" title="查看讲师费用">
<span class="line"></span>
<span>讲师费用详情</span>
<a-descriptions bordered :column="2" :contentStyle="rowCenter" :labelStyle="rowCenter">
<a-descriptions-item label="讲师名称">{{formParam.teacherName}}</a-descriptions-item>
<a-descriptions-item label="讲师工号">{{formParam.teacherNo}}</a-descriptions-item>
<a-descriptions-item label="讲师组织" :span="2">{{formParam.teacherOrg}}</a-descriptions-item>
<a-descriptions-item label="讲师体系">{{formParam.systemName}}</a-descriptions-item>
<a-descriptions-item label="讲师级别">{{formParam.levelName }}</a-descriptions-item>
<a-descriptions-item label="发薪地">{{formParam.teacherpayrollPlace}}</a-descriptions-item>
<a-descriptions-item label="费用类型">"费用类型(未命名)"</a-descriptions-item>
<a-descriptions-item label="课程类型">{{formParam.courseType==1?'项目开课' :formParam.courseType==2 ?'路径开课':formParam.courseType==3 ?'面授开课':''}}</a-descriptions-item>
<a-descriptions-item label="课程名称">{{formParam.courseName}}</a-descriptions-item>
<a-descriptions-item label="授课时长 ">{{formParam.teachingTime}}</a-descriptions-item>
<a-descriptions-item label="授课/课程日期 ">{{formParam.teachingDate}}</a-descriptions-item>
<a-descriptions-item label="参训人数 ">{{formParam.studys}}</a-descriptions-item>
<a-descriptions-item label="评分 ">{{formParam.score}}</a-descriptions-item>
<a-descriptions-item label="课酬基准 ">{{formParam.teacherlevelPay}}</a-descriptions-item>
<a-descriptions-item label="计划费用 ">{{formParam.expense}}</a-descriptions-item>
<a-descriptions-item label="应发费用 ">{{formParam.payableExpense}}</a-descriptions-item>
<a-descriptions-item label="状态">{{formParam.status=="A10"?'待审核' :formParam.status=="A20"?'已提交':formParam.status== "A30" ?'审核中':formParam.status== "E10" ?'审核打回':formParam.status=="S20"?'审核通过':''}}</a-descriptions-item>
<a-descriptions-item label="备注 ">{{formParam.remark}}</a-descriptions-item>
</a-descriptions>
<span class="line"></span>
<div :style="{
position: 'absolute',
right: 0,
bottom: 0,
width: '100%',
borderTop: '1px solid #e9e9e9',
padding: '10px 16px',
background: '#fff',
textAlign: 'right',
zIndex: 1,
}">
<a-button class="drabtn" @click="cancelTeachingDialog">取消</a-button>
<a-button class="drabtn" type="primary" @click="cancelTeachingDialog" :loading="buttonLoading">返回
</a-button>
</div>
</a-drawer>
</div>
</template>
<script lang="jsx">
@@ -342,8 +389,8 @@
DownloadOutlined
} from '@ant-design/icons-vue';
import ProjectManager from "@/components/project/ProjectManagerNew"
import {getPayRollPlace} from "../../api/Lecturer";
import {getTeacherFeeList,getTeacherFeeDetail,addTeacherFee ,updateTeacherFee,updateStatusSubmit,updateStatusWithDraw,getTrainOrg,getTeacherLevel} from "../../api/lecturerFeeManagement";import { getTeacherExpertise,getTeacherSystemList } from "../../api/Lecturer";
import {getTeacherFeeList,getTeacherFeeDetail,addTeacherFee ,updateTeacherFee,updateStatusSubmit,approveTeacherFee,getTrainOrg,getTeacherLevel} from "../../api/lecturerFeeManagement";4
import { getTeacherExpertise,getTeacherSystemList,getLevel,getPayRollPlace } from "../../api/Lecturer";
// lecturerFeeManagement
// import {getProjSt} from "../../api/indexProjStu";
// import AddTeacher from "../../components/drawers/project/AddTeacher"
@@ -359,6 +406,7 @@
},
setup() {
const state = reactive({
teachingdialog:false,
moreid:1,
byPid:null,
currentPage1: 1,
@@ -381,12 +429,15 @@
pageSize: 10,
tableDataTotal: -1,//table列表总条数
formParam: {
beginTime:null ,
teachingDate:null ,
defaultTeachingTime:"0",
courseName:0
},
searchParam: {
teacherNo:null,
tsystemName:null,
teacherName:null,
trainorgId:null,
kid:null,
tlevelId:null,
courseType:null,
certStatus:null,
@@ -399,12 +450,23 @@
endDate: null,
},
})
// 时间格式转换
const handleDate=()=>{
// state.formParam.beginTime=dayjs(new Date.getTime()).format("YYYY-MM-DD")
}
handleDate()
//费用类型
const courseTypeList=ref([
{ value: 1, label: "课程开发" },
{ value: 2, label: "作业人员入模培训" },
{ value: 3, label: "其他" },
])
//课程类型
const OnTheJobStatusList = ref([
{ value: 1, label: "项目开课" },
{ value: 2, label: "路径开课" },
{ value: 3, label: "面授开课" },
])
//认证状态
const AuthenticationStatusList = ref([
{ value: 0, label: "未认证" },
{ value: 1, label: "已认证" },
])
//获取内容分类
const getTeacherExpertiseList = ref([
// { value: 0, label: "未定级" },
@@ -445,6 +507,26 @@
lecturerSystemList.value = array;
}
})
}
const getLevelList = ref([
// { value: 0, label: "未定级" },
])
const changetlevel = (val) => {
console.log( "讲师体系id" +val);
getLevel( {kid:val}).then((res) => {
if (res.data.code === 200) {
let arr = res.data.data;
let array = [];
arr.map((value) => {
let obj = {
value: value.levelCode,
label: value.levelName,
};
array.push(obj);
});
getLevelList.value = array;
}
})
}
LecturerSystemLista()
const trainOrglist=ref([])
@@ -456,7 +538,7 @@
let array = [];
arr.map((value) => {
let obj = {
value: value.trainOrgId,
value: value.trainorgId,
label: value.trainOrg,
};
array.push(obj);
@@ -466,37 +548,6 @@
})
}
trainOrglista()
//获取讲师级别
const getLevelList = ref([
])
const getLevelLista =() => {
getTeacherLevel().then((res)=>{
if (res.data.code === 200) {
let arr = res.data.data;
let array = getLevelList.value;
arr.map((value) => {
let obj = {
value: value.levelId,
label: value.levelName,
};
array.push(obj);
});
getLevelList.value = array;
}
})
}
getLevelLista()
//课程类型
const OnTheJobStatusList = ref([
{ value: 1, label: "项目开课" },
{ value: 2, label: "路径开课" },
{ value: 3, label: "面授开课" },
])
//认证状态
const AuthenticationStatusList = ref([
{ value: 0, label: "未认证" },
{ value: 1, label: "已认证" },
])
//获取讲师发薪地列表
const PlaceOfPayList = ref([
// { value: 0, label: "发薪地B1" },
@@ -542,17 +593,6 @@
state.searchParam.status=null
}
}
//新增页面内部姓名
const infoteacherList = ref([
// { value: 0, systemName: "讲师体系" },
]);
const getinfoteacher = () => {
// state.tableLoading=true
// ()
// .then((res) => {
// infoteacherList.value = res.data.data.records
// })
};
const columns = ref([
{
title: '讲师姓名 ',
@@ -576,7 +616,7 @@
width: 120,
},
{
title: '培训发生组织(未命名) ',
title: '培训发生组织',
dataIndex: 'trainOrg',
key: 'trainOrg',
elipsis: true, align: "center",
@@ -592,9 +632,9 @@
},
{
title: '讲师体系(未命名) ',
dataIndex: 'teachingDate',
key: 'teachingDate',
title: '讲师体系',
dataIndex: 'systemName',
key: 'systemName',
elipsis: true, align: "center",
width: 120,
},
@@ -697,12 +737,12 @@
}
},
{
title: '讲师组织(未命名) ',
dataIndex: 'certStatus',
key: 'certStatus',
title: '讲师组织',
dataIndex: 'trainOrg',
key: 'trainOrg',
elipsis: true, align: "center",
width: 200,
scopedSlots: { customRender: "certStatus" },
scopedSlots: { customRender: "trainOrg" },
},
{
title: '操作 ',
@@ -727,8 +767,10 @@
//重置
const searchReset = () => {
state.searchParam = {
endDate:null,
startDate:null,
teacherNo:null,
tsystemName:null,
kid:null,
tlevelId:null,
courseType:null,
certStatus:null,
@@ -739,6 +781,17 @@
pageSize: 10 ,
};
getTableDate();
};
//修改时间
const searchTimeChange = (e, date) => {
let startTime = date[0] + " 00:00:00";
let endTime = date[1] + " 23:59:59";
state.startTime = new Date(startTime).getTime();
state.endTime = new Date(endTime).getTime();
// state.searchParam.startDate = new Date(startDate).getTime() ;
// state.searchParam.endDate = new Date(endDate).getTime() ;
state.searchParam.startDate = state.startTime ? state.startTime : null,
state.searchParam.endDate = state.endTime ? state.endTime : null
};
// List接口数据
const getTableDate = (obj) => {
@@ -824,60 +877,63 @@
let ids ={
kid : state.kid
}
console.log( state.handleOperate1)
console.log( state.handleOperate1 === 'A10');
console.log(state.handleOperate1)
if ( state.handleOperate1 === 'A10'){
updateStatusSubmit(ids).then((res) => {
message.success("提交成功");
state.editTeacher = false
getTableDate();
console.log(111);
})
}
else if( state.handleOperate1 === 'A20'){
updateStatusWithDraw(ids).then((res) => {
else{
approveTeacherFee(ids).then((res) => {
message.success("撤回成功");
state.editTeacher = false
getTableDate();
})
}
// else if(state.handleOperate1 === 'A20'){
// approveTeacherFee(ids).then((res) => {
// message.success("撤回成功");
// getTableDate();
// })
// }
state.editTeacher =false
}
//取消按钮 清空输入的数据
const cancelTeacherDialog = () => {
if(state.teacherdialog = true )
{
state.teacherdialog = false
cancel()
}
state.deleteInTeacherdialog = false
state.editTeacher = false
state.tagsshow= 1
};
const canceleditTeacherDialog=()=>{
state.editTeacher =false
}
//清空数据
const cancel = () => {
state.formParam ={
teacherName:null,
userNo:null,
teacherOrg:null,
systemName:null,
courseName:null,
trainOrg:null,
teachingDate:null,
teacher:null,
teacherNo:null,
departId:null,
kid:null,
courseName:0,
levelId:null,
payrollPlaceId:null,
// 费用类型 : null
teacherpayrollPlace:null,
teachingTime:null,
levelName:null,
studentNum:null,
courseAssess:null,
teachingDate:null,
defaultTeachingTime:0,
courseType:null,
studys:null,
teacherlevelPay:null,
score:null,
trainOrg:null,
payableExpense:null,
expense:null,
remark:null,
}
}
//表格内查看数据操作
const handleLook = (record) => {
state.teacherdialog = true;
state.teachingdialog = true;
state.teacherdialogtitle = '查看详情'
state.kid= record.kid
// alert(record.grade)
@@ -932,28 +988,38 @@
},
{
title: '备注 ',
dataIndex: 'teacherName',
key: 'teacherName',
dataIndex: 'remark',
key: 'remark',
elipsis: true, align: "center",
width: 150,
} ,
])
//取消按钮 清空输入的数据
const cancelTeachingDialog = () => {
state.teachingdialog = false
};
const rules = {
name: [{ required: true, message: '讲师不能为空' }],
user: [{ required: true, message: '讲师工号不能为空' }],
teacherName: [{ required: true, message: '讲师不能为空' }],
teacherNo: [{ required: true, message: '讲师工号不能为空' }],
departId: [{ required: true, message: '讲师组织不能为空' }],
systemId: [{ required: true, message: '讲师体系不能为空' }],
levelId: [{ required: true, message: ' 讲师级别 不能为空' }],
levelName: [{ required: true, message: ' 讲师级别 不能为空' }],
payrollPlaceId: [{ required: true, message: '讲师发薪地 不能为空' }],
courseName: [{ required: true, message: '费用类型不能为空' }],
courseName: [{ required: true, message: '课程名称不能为空' }],
beginTime: [{ required: true, message: '授课日期不能为空' }],
teachingDate: [{ required: true, message: '授课日期不能为空' }],
defaultTeachingTime: [{ required: true, message: ' 授课时长不能为空' }],
studys: [{ required: true, message: ' 参训人数不能为空' }],
score: [{ required: true, message: ' 评分不能为空' }],
score: [{ required: true, message: '课酬基准 不能为空' }],
expense: [{ required: true, message: '计划费用不能为空' }],
}
function managerChange(e, l, d, t, orgName) {
console.log(e, l);
state.searchParam.teacherNo = d;
state.searchParam.teacherName = t;
// state.searchParam.trainorgName=orgName
}
//导出功能
const handleExport = ()=>{
@@ -962,7 +1028,7 @@
state.currentPage1
}&pageSize=${state.pageSize1}&teacherNo=${
state.searchParam.teacherNo ? state.searchParam.teacherNo : ""
}&tsystemName=${ state.searchParam.tsystemName ? state.searchParam.tsystemName : ""}&tlevelId=${
}&kid=${ state.searchParam.kid ? state.searchParam.kid : ""}&tlevelId=${
state.searchParam.tlevelId ? state.searchParam.tlevelId : ""
}&courseType=${ state.searchParam.courseType ? state.searchParam.courseType : ""}&certStatus=${
state.searchParam.certStatus ? state.searchParam.certStatus : ""
@@ -974,7 +1040,11 @@
}
return {
...toRefs(state),
rules,handleDate,
rules,
cancelTeachingDialog,
managerChange,
courseTypeList,
searchTimeChange,
trainOrglist,
trainOrglista,
getTeacherExpertiseList,
@@ -984,7 +1054,6 @@
lecturerSystemList,
getLevelList,
OnTheJobStatusList,
getLevelLista,
PlaceOfPayLista,
AuthenticationStatusList,
PlaceOfPayList,
@@ -1009,8 +1078,8 @@
// getStu
LecturerSystemLista,
TeacherSystem,
infoteacherList,
getinfoteacher,
changetlevel,
canceleditTeacherDialog
}
},
};

View File

@@ -179,7 +179,7 @@ import dayjs from "dayjs";
import { useRouter } from "vue-router";
import { getPayRollPlace } from "../../api/Lecturer";
import { getOrganization } from "../../api/Teaching";
import { queryTeacherFeeTotalList, queryTeacherFeeMonthly, getTeacherFeeDetailListByTeacherNo, getTeacherFeeListByTeacherNo ,getPreviousTeacherfee} from "../../api/lecturerFeeStatistics";
import { queryTeacherFeeTotalList, queryTeacherFeeMonthly, getTeacherFeeDetailListByTeacherNo, getTeacherFeeListByTeacherNo ,getPreviousTeacherFee} from "../../api/lecturerFeeStatistics";
export default {
name: "LecturerFeeStatistics",
components: {
@@ -320,7 +320,7 @@ export default {
//重新汇总上月数据
const searchResetPrevious=()=>{
state.tableLoading = true
getPreviousTeacherfee().then((res)=>{
getPreviousTeacherFee().then((res)=>{
tableData.value = res.data.data
state.tableDataTotal = Number(res.data.data.total);
state.tableLoading = false
@@ -354,8 +354,8 @@ export default {
let array = [];
arr.map((value) => {
let obj = {
value: value.payrollPlaceId,
label: value.payrollPlaceName,
value: value.id,
label: value.name,
};
array.push(obj);
});

View File

@@ -37,8 +37,9 @@
<!-- 翻页 -->
<div class="tableBox ">
<div style="float: right;">
<a-pagination
v-if="tableDataTotal > 10"
:showSizeChanger="false"
:showQuickJumper="true"
:hideOnSinglePage="true"
@@ -86,8 +87,8 @@
</a-row>
<a-row :gutter="16">
<a-col :span="12">
<a-form-item label="讲师体系编号" name="systemCode">
<a-input disabled v-model:value="formParam.systemCode" class="draitem" placeholder="" allowClear showSearch>
<a-form-item label="讲师体系编号" name="kid">
<a-input disabled v-model:value="formParam.kid" class="draitem" placeholder="" allowClear showSearch>
</a-input>
</a-form-item>
</a-col>
@@ -186,7 +187,7 @@ import {
import dialog from "@/utils/dialog";
import { message } from "ant-design-vue";
import ProjectManager from "@/components/project/ProjectManagerNew";
import { systemList, deleteTrainOrg } from "../../api/organization";
import { systemList,addLecturerSystem ,deleteLecturerSystem,updateSystem} from "../../api/organization";
export default {
name: "LecturerSystem",
components: {
@@ -198,6 +199,7 @@ export default {
setup() {
const router = useRouter();
const state = reactive({
tableDataTotal:-1,
tableLoading: false,
deleteInTeacherdialog: false,
teacherdialog: false,
@@ -207,10 +209,11 @@ export default {
trainorgId: null,
userNo: null,
trainorgName: null,
pageNo: "1",
pageSize: "10"
pageNo: 1,
pageSize: 10
},
formParam: {
kid:null,
systemCode: null,
systemName: null,
remark: null,
@@ -220,15 +223,7 @@ export default {
sort:1,
levelPay:null,
upperLimit:null
},
{
levelName:null,
levelTime:null,
sort:1,
levelPay:null,
upperLimit:null
},
]
}, ]
}
})
function managerChange(e, l, d, t, orgName) {
@@ -312,7 +307,7 @@ export default {
//确认删除
const closeDeleteTeacher = () => {
//调用删除接口
deleteTrainOrg(state.delTeacherId).then((res) => {
deleteLecturerSystem({kid:state.delId}).then((res) => {
if (res.data.code == 200) {
// message.success("删除成功");
state.deleteInTeacherdialog = false
@@ -340,8 +335,22 @@ export default {
state.delId = record.kid
TeacherSystem()
}
//查看
const TeacherSystem=(record)=>{
let obj = {
kid : state.delId,
pageNo:1,
pageSize:1
}
systemList(obj).then((res) => {
state.formParam = res.data.data.records[0]
})
.catch((err) => {
});
}
const cancel = () => {
state.formParam = {
kid:null,
systemCode: null,
systemName: null,
remark: null,
@@ -357,20 +366,35 @@ export default {
}
//保存
const createTeacherDialog = () => {
console.log(state.formParam);
// let a ={
// kid:11111111,
// systemCode: 888,
// systemName: 'cesceshi',
// remark: 'cesceshi',
// levelList:[{
// levelName:'cesceshi',
// levelTime:'222',
// sort:1,
// levelPay:'56',
// upperLimit:'186'
// }, ]
// }
// console.log(a)
// console.log(state.formParam)
if (state.formParam.kid != undefined) {
updateInTeacher(state.formParam).then(response => {
updateSystem(state.formParam).then(response => {
message.success("修改成功");
});
}
else {
insertTeacher(state.formParam)
addLecturerSystem(state.formParam)
.then((res) => {
message.success("保存成功");
}).catch((err) => {
console.log(err);
});
}
cancel()
state.teacherdialog = false;
getTableDate();
};
@@ -417,7 +441,9 @@ export default {
handleModify,
closeDeleteTeacher,
changePagination,
handleLook
handleLook,
createTeacherDialog,
TeacherSystem,
}
}
}

View File

@@ -75,7 +75,7 @@ ExternalLecturer
<script lang ="jsx">
import { useRouter,useRoute } from "vue-router";
import { reactive, toRefs, ref } from "vue"
import {getTeacherById,getTeacherCourseList } from "../../api/Lecturer";
import {getOuterTeacherById,getTeacherCourseList } from "../../api/Lecturer";
export default{
name :"LookExternalLecturer",
components:{
@@ -105,9 +105,9 @@ export default{
}
});
//部讲师详情
//部讲师详情
const TeacherSystem = () => {
getTeacherById(state.id).then((res) => {
getOuterTeacherById(state.id).then((res) => {
console.log("内部讲师详情", res.data);
state.formParam = res.data.data
})

View File

@@ -245,7 +245,7 @@ export default {
let array = [];
arr.map((value) => {
let obj = {
value: value.trainOrgId,
value: value.trainorgId,
label: value.trainOrg,
};
array.push(obj);
@@ -265,8 +265,8 @@ export default {
let array = [];
arr.map((value) => {
let obj = {
value: value.payrollPlaceId,
label: value.payrollPlaceName,
value: value.id,
label: value.name,
};
array.push(obj);
});

View File

@@ -5,8 +5,8 @@
<a-form layout="inline">
<a-form-item class="select">
<div style="width: 276px; height: 40px; border-radius: 8px" >
<ProjectManager v-model:value="searchParam.userNo"
v-model:name="searchParam.name"
<ProjectManager v-model:value="searchParam.teacherNo"
v-model:name="searchParam.teacherName"
placeholder="请输入工号/讲师姓名进行检索"
@onChange="managerChange" mode="multiple"></ProjectManager>
</div>
@@ -150,8 +150,10 @@ import { reactive, toRefs, ref, watch } from "vue";
import {
FolderAddOutlined
} from '@ant-design/icons-vue';
import { message } from "ant-design-vue";
import ProjectManager from "@/components/project/ProjectManagerNew";
import { queryTrainOrg,deleteTrainOrg} from "../../api/organization";
import { queryTrainOrg,deleteTrainOrg,addReviewer,updateTrainOrg} from "../../api/organization";
import AddContent from "../../components/project/AddContent.vue"
export default{
name:"organization",
@@ -185,8 +187,8 @@ export default{
})
function managerChange(e, l, d, t, orgName) {
console.log(e, l);
state.searchParam.trainorgId = d;
state.searchParam.name = t;
state.searchParam.teacherNo = d;
state.searchParam.teacherName = t;
state.searchParam.trainorgName=orgName
}
const columns = ref([
@@ -264,7 +266,7 @@ const getTableDate = (obj) => {
//确认删除
const closeDeleteTeacher = () => {
//调用删除接口
deleteTrainOrg(state.delTeacherId).then((res) => {
deleteTrainOrg({kid:state.delId}).then((res) => {
if (res.data.code == 200) {
// message.success("删除成功");
state.deleteInTeacherdialog = false
@@ -292,32 +294,39 @@ const getTableDate = (obj) => {
const handleModify = (record) => {
state.teacherdialog = true;
state.teacherdialogtitle = '修改归属组织'
state.delId= record.kid
TeacherSystem()
state.formParam.kid= record.kid
TeacherSystem(record)
}
const TeacherSystem =(record)=>{
state.formParam.trainorgId=record.trainorgId
state.formParam.trainorgName=record.trainorgName
state.formParam.remark=record.remark
}
const cancel=()=>{
state.formParam={
trainorgId:null,
trainorgName:null,
remark:null
remark:null ,
kid:null
}
}
//保存
const createTeacherDialog = () => {
console.log(state.formParam);
if (state.formParam.kid != undefined) {
updateInTeacher(state.formParam).then(response => {
updateTrainOrg(state.formParam).then(response => {
message.success("修改成功");
});
}
else {
insertTeacher(state.formParam)
addReviewer(state.formParam)
.then((res) => {
message.success("保存成功");
}).catch((err) => {
console.log(err);
});
}
cancel()
state.teacherdialog = false;
getTableDate();
};
@@ -342,7 +351,9 @@ const getTableDate = (obj) => {
addContentData,
handleModify,
closeDeleteTeacher,
changePagination
changePagination,
TeacherSystem,
createTeacherDialog,
}
}
}