diff --git a/src/api/lecturerFeeManagement.js b/src/api/lecturerFeeManagement.js index fdd837ad..f5986576 100644 --- a/src/api/lecturerFeeManagement.js +++ b/src/api/lecturerFeeManagement.js @@ -27,6 +27,8 @@ export const withdrawRecord= (obj) => http.post('/admin/expenseBill/withdrawReco export const confirm= (obj) => http.post('/admin/teacherExpense/confirm',obj) //获取培训发生组织列表 export const getTrainOrg= (obj) => http.get('/admin/affiliation/list',{params: obj}) +//获取资源归属所有 +export const getParentAapprovallist= (obj) => http.get('/admin/affiliation/getParentAapprovallist',{params: obj}) // 根据发生组织查询汇总的讲师费数据(一键确认弹框使用) export const getListByIds= (obj) => http.get('/admin/teacherExpense/getListByIds',{params: obj}) //根据发生组织查询汇总的数据(一键确认弹框使用) diff --git a/src/views/lecturer/LecturerFeeStatistics.vue b/src/views/lecturer/LecturerFeeStatistics.vue index 2fc5b688..2a55b31a 100644 --- a/src/views/lecturer/LecturerFeeStatistics.vue +++ b/src/views/lecturer/LecturerFeeStatistics.vue @@ -181,7 +181,7 @@ import { useRouter } from "vue-router"; import { getOrganization } from "../../api/Teaching"; import { queryTeacherFeeMonthly, getTeacherFeeDetailListByTeacherNo, getTeacherFeeListByTeacherNo,TeacherFeeTotalList,createMonthSummary} from "../../api/lecturerFeeStatistics" ; -import {expenseSummaryList,getTrainOrg,CreateMonthSummary,isShowReimport} from "../../api/lecturerFeeManagement"; +import {expenseSummaryList,getTrainOrg,getParentAapprovallist,CreateMonthSummary,isShowReimport} from "../../api/lecturerFeeManagement"; import dialog from '@/utils/dialog' import MonthlyStatistics from './MonthlyStatistics' export default { @@ -383,10 +383,10 @@ export default { ]) //获取培训发生组织 const TrainOrglista = () => { - getTrainOrg().then((res) => { + getParentAapprovallist().then((res) => { console.log(res,'ressss') if (res.data.code === 200) { - let arr = res.data.data.records; + let arr = res.data.data; let array = []; arr?.map((value) => { let obj = { @@ -427,7 +427,7 @@ export default { } }) } - getOrganizationLista() + // getOrganizationLista() //二级页面取消按钮 const cancelTeacherDialog = () => { if (state.teacherdialog = true) {