diff --git a/src/api/Lecturer.js b/src/api/Lecturer.js index fbe67e36..1eea5a1e 100644 --- a/src/api/Lecturer.js +++ b/src/api/Lecturer.js @@ -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) diff --git a/src/api/Teaching.js b/src/api/Teaching.js index ca4ca585..5b9b278f 100644 --- a/src/api/Teaching.js +++ b/src/api/Teaching.js @@ -23,4 +23,6 @@ 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) \ No newline at end of file +export const insertOutTeaherCourse = (obj) => http.post('/admin/teacher/insertOutTeaherCourse', obj) +//讲师费发放情况 +export const getCharges = (obj) => http.post('/teacher/fee/getCharges', obj) diff --git a/src/api/lecturerFeeManagement.js b/src/api/lecturerFeeManagement.js index c9f9d201..b89dd6a2 100644 --- a/src/api/lecturerFeeManagement.js +++ b/src/api/lecturerFeeManagement.js @@ -16,4 +16,8 @@ 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) \ No newline at end of file +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) diff --git a/src/api/organization.js b/src/api/organization.js index 00278e97..223fcac5 100644 --- a/src/api/organization.js +++ b/src/api/organization.js @@ -1,7 +1,21 @@ import http from "./config"; // 列表分页查看归属组织 -export const queryTrainOrg = (obj) => http.post('/configuration/queryTrainOrg', 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 systemList = (obj) => http.get('/configuration/list',{params: obj}) \ No newline at end of file + +//新增讲师体系 +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) diff --git a/src/views/lecturer/ExternalLecturer.vue b/src/views/lecturer/ExternalLecturer.vue index 98209677..0898461a 100644 --- a/src/views/lecturer/ExternalLecturer.vue +++ b/src/views/lecturer/ExternalLecturer.vue @@ -7,7 +7,7 @@
- @@ -106,10 +106,11 @@ - - - + + @@ -124,8 +125,8 @@ - + @@ -148,7 +149,7 @@ - + @@ -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, diff --git a/src/views/lecturer/ExternalTeaching.vue b/src/views/lecturer/ExternalTeaching.vue index b0e8e7a4..03aa5d20 100644 --- a/src/views/lecturer/ExternalTeaching.vue +++ b/src/views/lecturer/ExternalTeaching.vue @@ -10,14 +10,14 @@ placeholder="请输入工号/讲师姓名进行检索" allowClear showSearch> -->
-
- @@ -46,17 +46,17 @@
+ :options="entryTypeList" allowClear > - + + :options="AuthenticationStatusList" allowClear> @@ -110,27 +110,28 @@ - + - - + - - + + - + - - + @@ -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, diff --git a/src/views/lecturer/ExternalTeachingDetail.vue b/src/views/lecturer/ExternalTeachingDetail.vue index 02b02509..5de61c91 100644 --- a/src/views/lecturer/ExternalTeachingDetail.vue +++ b/src/views/lecturer/ExternalTeachingDetail.vue @@ -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(); diff --git a/src/views/lecturer/InsideLecturer.vue b/src/views/lecturer/InsideLecturer.vue index 83906653..ae916b33 100644 --- a/src/views/lecturer/InsideLecturer.vue +++ b/src/views/lecturer/InsideLecturer.vue @@ -33,13 +33,13 @@ --> - - +
@@ -63,19 +63,19 @@
+ :options="OnTheJobStatusList" allowClear> - - - + - + --> - - + - - + @@ -221,7 +223,7 @@ - 未认证 @@ -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, diff --git a/src/views/lecturer/InsideTeaching.vue b/src/views/lecturer/InsideTeaching.vue index d57a038c..bddd3afe 100644 --- a/src/views/lecturer/InsideTeaching.vue +++ b/src/views/lecturer/InsideTeaching.vue @@ -7,17 +7,17 @@
- + @onChange="managerChange" mode="multiple">
- @@ -46,27 +46,27 @@
+ :options="entryTypeList" allowClear> + :options="AuthenticationStatusList" allowClear> - + + :options="LecturerSystemList" allowClear> - + @@ -127,9 +127,11 @@ - + + @@ -149,31 +151,31 @@ - - - + - - + - - + @@ -270,7 +272,7 @@ {{formParam.beginTime}} {{formParam.studys}} {{formParam.score}} - {{formParam.teaching}} + {{formParam.id}} {{formParam.remark}} @@ -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, diff --git a/src/views/lecturer/LecturerApproval.vue b/src/views/lecturer/LecturerApproval.vue index c7f881e3..a33d04a3 100644 --- a/src/views/lecturer/LecturerApproval.vue +++ b/src/views/lecturer/LecturerApproval.vue @@ -6,19 +6,18 @@ -
- + + -->
+
- - - @@ -46,27 +45,27 @@
- + - - - + - @@ -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: '操作 ', @@ -599,11 +600,13 @@ const searchSubmit = () => { getTableDate(); }; - //重置 - const searchReset = () => { + //重置 + const searchReset = () => { state.searchParam = { + endDate:null, + startDate:null, teacherNo:null, - tsystemName:null, + kid:null, tlevelId:null, courseType:null, certStatus:null, @@ -615,6 +618,17 @@ }; 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) => { state.tableLoading=true @@ -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, + //清空数据 + const cancel = () => { + state.formParam ={ + 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, diff --git a/src/views/lecturer/LecturerFee.vue b/src/views/lecturer/LecturerFee.vue index 5ee31929..fb5b3708 100644 --- a/src/views/lecturer/LecturerFee.vue +++ b/src/views/lecturer/LecturerFee.vue @@ -6,18 +6,18 @@ -
-
- @@ -45,27 +45,27 @@
- + - - - + - @@ -101,13 +101,13 @@ -