mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 11:56:46 +08:00
111 lines
6.5 KiB
JavaScript
111 lines
6.5 KiB
JavaScript
import http from "./config";
|
|
import https from "./confign";
|
|
/*
|
|
* @Author: lixg lixg@dongwu-inc.com
|
|
* @Date: 2022-11-18 14:09:43
|
|
* @LastEditors: lixg lixg@dongwu-inc.com
|
|
* @LastEditTime: 2023-02-11 18:55:44
|
|
* @FilePath: /fe-manage/src/api/indexProjStu.js
|
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
*/
|
|
// 获取讲师体系列表
|
|
//VUE_APP_BASE_API /manageApi
|
|
export const getTeacherSystemList = (obj) => http.get( '/admin/system/list', {params: obj})
|
|
//获取讲师级别
|
|
export const getLevel = (obj) => http.get('/admin/system/getLevelList', {params: obj})
|
|
// 获取讲师列表
|
|
export const getTeacherList = (obj) => http.get('/admin/teacher/list' ,{params: obj})
|
|
//讲师详情
|
|
export const getTeacherById= (obj) => http.get('/admin/teacher/queryById',{params: obj})
|
|
//删除讲师
|
|
export const deleteInTeacher= (obj) => http.post(`/admin/teacher/delById?id=${obj}`)
|
|
//新增讲师
|
|
export const insertTeacher = (obj) => http.post('/admin/teacher/addTeacher' ,obj)
|
|
//修改讲师
|
|
export const updateInTeacher = (obj) => http.post('/admin/teacher/editTeacher' ,obj)
|
|
//修改讲师状态
|
|
export const updateTeacherState = (obj) => http.post('/admin/teacher/updateTeacherStatus' ,obj)
|
|
|
|
|
|
|
|
//获取内部讲师发薪地
|
|
export const getPayRollPlace = (obj) => http.post('/admin/teacher/getPayRollPlace', obj)
|
|
|
|
//获取内部讲师授课记录
|
|
export const getTeacherCourseList = (obj) => http.post('/admin/teacher/getTeacherCourseList' ,obj)
|
|
//获取内部讲师晋升接口
|
|
export const getTeacherLogList = (obj) => http.post('/admin/teacher/queryTeacherLevelRecord' ,obj)
|
|
// 所有教师专长
|
|
export const getTeacherExpertise = (obj) => http.post('/admin/teacher/getTeacherExpertise' ,obj)
|
|
//根据父级教师专长(pid)查找子级教师专长
|
|
export const getTeacherExpertiseByPid = (obj) => http.post(`/admin/teacher/deleteInTeacher?id=${obj}`)
|
|
// 新增页面内部姓名
|
|
export const infoteacher = (obj) => http.get('/admin/thirdApi/org/info' ,{params: obj})
|
|
|
|
|
|
export const fileUp = (obj) => http.post('/file/upload', obj)
|
|
//组织树查询讲师
|
|
export const getTeacherByDepartId = (obj) => http.get(`/admin/thirdApi/user/list?departId=${obj.organizationId}&pageNo=1&pageSize=100&keyword=`)
|
|
//根据姓名工号查询讲师
|
|
export const getTeacherByNameOrUserNo = (obj) => https.post(`/user/noTeacherList`,obj)
|
|
// export const getTeacherByNameOrUserNo = (obj) => https.post(`/user/teacherList?keyword=${obj.nameOrUserNo}&pageNo=1&pageSize=50&departId=`)
|
|
//根据userid获取讲师体系信息
|
|
export const getSystemInfoByUserId = (id) => http.get(`/admin/system/getSystemInfoByUserId?id=${id}`)
|
|
//讲师搜索
|
|
export const getUserList = (keyword) => http.get(`/admin/thirdApi/user/list?pageNo=${1}&pageSize=${30}&keyword=${keyword}`)
|
|
//查询弹框选择的组织信息
|
|
export const getSelectOrg = (id,isParent) => http.get(`/admin/affiliation/getSelectOrg?id=${id}&isParent=${isParent}`)
|
|
//查询弹框不可选择组织(审核中的组织)
|
|
export const getUnSelectOrg = (isParent) => http.get(`/admin/affiliation/getUnSelectOrg?isParent=${isParent}`)
|
|
//获取培训发生组织编号
|
|
export const getAffiliationCode = () => http.get('/admin/affiliation/getAffiliationCode')
|
|
//查看或编辑回显培训发生组织
|
|
export const getAffiliationById = (id) => http.get(`/admin/affiliation/queryById?id=${id}`)
|
|
//审核记录
|
|
export const getByBusinessIdList = (obj) => http.post(`/admin/approval/getByBusinessIdListPage?businessId=${obj.businessId}&businessType=${obj.businessType}&pageNo=${obj.pageNo}&pageSize=${obj.pageSize}`)
|
|
//审批中心查看详情
|
|
export const getApprovalResultByBusinessIdList = (obj) => http.post(`/admin/approval/getApprovalResultByBusinessIdList?businessId=${obj.businessId}&businessType=${obj.businessType}`)
|
|
//审核记录查看操作
|
|
export const getApprovalResultByApprovalIdList = (approvalId) => http.post(`/admin/approval/getApprovalResultByApprovalIdList?approvalId=${approvalId}`)
|
|
//恢复培训发生组织的数据
|
|
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`,obj)
|
|
//撤回培训发生组织
|
|
export const affiliatIsConfirm = (id) => http.post(`/admin/affiliation/isConfirm?id=${id}`)
|
|
//删除 待提交 ,拒绝 的培训发生组织
|
|
export const affiliatRemoveById = (id) => http.post(`/admin/affiliation/removeById?id=${id}`)
|
|
|
|
|
|
|
|
|
|
|
|
//讲师费统计详情
|
|
export const expenseSummaryById = (obj) => http.get( `/admin/expenseSummary/queryById?id=${obj.id}&name=${obj.name}&trainOrgId=${obj.trainOrgId||''}&pageNo=${obj.pageNo}&pageSize=${obj.pageSize}`)
|
|
//撤回讲师费统计详情
|
|
export const removeBySummaryId = (obj) => http.post(`/admin/expenseSummary/removeBySummaryId?summaryId=${obj.summaryId}`,obj)
|
|
//撤回讲师费统计详情二级页面
|
|
export const removeBySummaryDetailId = (obj) => http.post(`/admin/expenseSummary/removeBySummaryDetailId?detailId=${obj.detailId}`,obj)
|
|
//查看月度讲师费详情
|
|
export const queryDetailId = (obj) => http.get(`/admin/expenseSummary/queryDetailId?summaryId=${obj.summaryId}&name=${obj.name}&startTime=${obj.startTime}&endTime=${obj.endTime}`)
|
|
//查询未汇总的数据(批量确认弹框)
|
|
export const getListByStatus = (obj) => http.get(`/admin/teacherExpense/getListByStatus`)
|
|
//根据发生组织查询汇总的数据(一键确认弹框使用)
|
|
export const getListByAffiliation = (obj) => http.get(`/admin/teacherExpense/getListByAffiliation?ids=${obj.ids}&beginTime=${obj.beginTime}&endTime=${obj.endTime}&name=${obj.name}&`)
|
|
//确认/一键确认
|
|
export const teacherExpenseConfirm = (obj) => http.post(`/admin/expenseBill/createSummary`,obj)
|
|
//确认审批
|
|
export const submitApproval = (obj) => http.post('/admin/expenseBill/submitApproval',obj)
|
|
//提交/撤回
|
|
export const isConfirm = (obj) => http.post('/admin/expenseBill/isConfirm',obj)
|
|
//培训发生组织根节点列表
|
|
export const parentList = () => http.get('/admin/affiliation/parentList')
|
|
//讲师级别获取
|
|
export const getAllLevelList = () => http.get('/admin/system/getAllLevelList')
|
|
//删除讲师费
|
|
export const deleteLecturerFee = (obj) => http.post(`/admin/teacherExpense/delById?id=${obj.id}`,obj)
|
|
//停用/启用讲师费
|
|
export const updateLecturerFee = (obj) => http.post(`/admin/teacherExpense/isEnable?id=${obj.id}&status=${obj.status}`,obj)
|