讲师管理bug

This commit is contained in:
zhangsir
2024-11-14 20:44:26 +08:00
parent 28bb396a6b
commit 51b0e75fe3
5 changed files with 35 additions and 28 deletions

View File

@@ -81,4 +81,5 @@ export const submitApproval = (obj) => http.post('/admin/expenseBill/submitAppro
export const isConfirm = (obj) => http.post('/admin/expenseBill/isConfirm',obj) export const isConfirm = (obj) => http.post('/admin/expenseBill/isConfirm',obj)
//培训发生组织根节点列表 //培训发生组织根节点列表
export const parentList = () => http.get('/admin/affiliation/parentList') export const parentList = () => http.get('/admin/affiliation/parentList')
//讲师级别获取
export const getAllLevelList = () => http.get(' /admin/system/getAllLevelList')

View File

@@ -40,7 +40,7 @@
<template #bodyCell="{ record, column }"> <template #bodyCell="{ record, column }">
<template v-if="column.key === 'operation'"> <template v-if="column.key === 'operation'">
<a-space > <a-space >
<a-button type="link" v-if="record.isPermission==='true'||record.isSuperPermission==='true'" @click="() => handleLook(record, String(record.courseform))">查看</a-button> <a-button type="link" @click="() => handleLook(record, String(record.courseform))">查看</a-button>
<a-button type="link" v-if="record.isPermission==='true'||record.isSuperPermission==='true'" @click="() => handleModify(record, String(record.courseform))">编辑</a-button> <a-button type="link" v-if="record.isPermission==='true'||record.isSuperPermission==='true'" @click="() => handleModify(record, String(record.courseform))">编辑</a-button>
<a-button v-if="record.status == '1'&&(record.isPermission==='true'||record.isSuperPermission==='true')" type="link" <a-button v-if="record.status == '1'&&(record.isPermission==='true'||record.isSuperPermission==='true')" type="link"
@click="() => handleOperate(record, String(record.courseform))">停用</a-button> @click="() => handleOperate(record, String(record.courseform))">停用</a-button>

View File

@@ -12,7 +12,7 @@
</a-form-item> </a-form-item>
<a-form-item class="select"> <a-form-item class="select">
<a-select style="width: 276px" placeholder="请选择讲师体系" v-model:value="searchParam.tSystemId" allowClear <a-select style="width: 276px" placeholder="请选择讲师体系" v-model:value="searchParam.tSystemId" allowClear
:options="LecturerSystemList" @change="changetlevel"> :options="LecturerSystemList">
</a-select> </a-select>
</a-form-item> </a-form-item>
<!-- <div @click="handlesearchlevel"> --> <!-- <div @click="handlesearchlevel"> -->
@@ -53,7 +53,7 @@
</a-select> </a-select>
</a-form-item> </a-form-item>
<a-form-item v-if="moreid == 2" class="select"> <a-form-item v-if="moreid == 2" class="select">
<a-input style="width: 276px;height: 40px; border-radius:8px; " v-model:value="searchParam.expertiseNames" <a-input style="width: 276px;height: 40px; border-radius:8px; " v-model:value="searchParam.courses"
placeholder="擅长课程" allowClear @pressEnter="searchSubmit"> placeholder="擅长课程" allowClear @pressEnter="searchSubmit">
</a-input> </a-input>
</a-form-item> </a-form-item>
@@ -87,7 +87,7 @@
</template> </template>
<template v-if="column.key === 'operation'"> <template v-if="column.key === 'operation'">
<a-space> <a-space>
<a-button v-if="record.isPermission==='true'||record.isSuperPermission==='true'" type="link" @click="() => handleLook(record, String(record.courseform))">查看</a-button> <a-button type="link" @click="() => handleLook(record, String(record.courseform))">查看</a-button>
<a-button v-if="record.isPermission==='true'||record.isSuperPermission==='true'" type="link" @click="() => handleModify(record, String(record.courseform))">编辑</a-button> <a-button v-if="record.isPermission==='true'||record.isSuperPermission==='true'" type="link" @click="() => handleModify(record, String(record.courseform))">编辑</a-button>
<a-button v-if="record.status == '1'&&(record.isPermission==='true'||record.isSuperPermission==='true')" type="link" <a-button v-if="record.status == '1'&&(record.isPermission==='true'||record.isSuperPermission==='true')" type="link"
@@ -254,6 +254,7 @@
closable="false" closable="false"
style="margin-top: 400px" style="margin-top: 400px"
@cancel="cancelupdialog" @cancel="cancelupdialog"
:maskClosable="false"
> >
<div class="selectonlineface" style="width: 660px;" :style="{ display: updialog ? 'block' : 'none' }"> <div class="selectonlineface" style="width: 660px;" :style="{ display: updialog ? 'block' : 'none' }">
<div class="bg_headers"></div> <div class="bg_headers"></div>
@@ -375,7 +376,7 @@ import ProjectManager from "@/components/project/ProjectManagerNew";
import SearchTeacher from "@/components/project/SearchTeacher"; import SearchTeacher from "@/components/project/SearchTeacher";
import { message } from "ant-design-vue"; import { message } from "ant-design-vue";
import { useRouter,useRoute } from "vue-router"; import { useRouter,useRoute } from "vue-router";
import { getTeacherSystemList, getTeacherList, getPayRollPlace, getLevel, insertTeacher, deleteInTeacher, updateInTeacher, getTeacherById, updateTeacherState } from "../../api/Lecturer"; import { getTeacherSystemList, getTeacherList, getPayRollPlace, getAllLevelList, insertTeacher, deleteInTeacher, updateInTeacher, getTeacherById, updateTeacherState } from "../../api/Lecturer";
import { fileUp } from "../../api/indexEval"; import { fileUp } from "../../api/indexEval";
import { teacherUpload } from "../../api/Teaching"; import { teacherUpload } from "../../api/Teaching";
import { getCookieForName } from "@/api/method"; import { getCookieForName } from "@/api/method";
@@ -462,7 +463,7 @@ export default {
tLevelId: null, tLevelId: null,
waitStatus: null, waitStatus: null,
certStatus: null, certStatus: null,
expertiseNames: null, courses: null,
pageNo: "1", pageNo: "1",
pageSize: "10" pageSize: "10"
}, },
@@ -540,7 +541,6 @@ export default {
const changeUpload = (newValue) => { const changeUpload = (newValue) => {
if (newValue[0].status == 'done' && newValue[0]?.response?.status == 200) { if (newValue[0].status == 'done' && newValue[0]?.response?.status == 200) {
const { id, name, path } = newValue[0].response.result const { id, name, path } = newValue[0].response.result
console.log(id,name,path)
state.formParam.certification = path state.formParam.certification = path
state.formParam.certificationName = name state.formParam.certificationName = name
} }
@@ -576,11 +576,14 @@ export default {
state.updialog = true state.updialog = true
} }
const cancelupdialog = () => { const cancelupdialog = () => {
state.formParam.certification = null
state.formParam.certificationName = null
uploadRef.value.removeUpload() uploadRef.value.removeUpload()
state.updialog = false state.updialog = false
} }
const createupdialog = () => { const createupdialog = () => {
cancelupdialog() uploadRef.value.removeUpload()
state.updialog = false
} }
const LecturerSystemList = ref([ const LecturerSystemList = ref([
]); ]);
@@ -622,9 +625,9 @@ export default {
LecturerSystemLista() LecturerSystemLista()
//获取内部讲师级别 //获取内部讲师级别
const getLevelList = ref([]) const getLevelList = ref([])
const changetlevel = (val) => { const changetlevel = () => {
console.log("讲师体系id" + val); // console.log("讲师体系id" + val);
getLevel({ id: val }).then((res) => { getAllLevelList().then((res) => {
if (res.data.code === 200) { if (res.data.code === 200) {
let arr = res.data.data; let arr = res.data.data;
let array = []; let array = [];
@@ -689,7 +692,7 @@ export default {
state.moreid = 1 state.moreid = 1
state.searchParam.waitStatus = null state.searchParam.waitStatus = null
state.searchParam.certStatus = null state.searchParam.certStatus = null
state.searchParam.expertiseNames = null state.searchParam.courses = null
} }
} }
const columns = ref([ const columns = ref([
@@ -949,6 +952,9 @@ export default {
return message.error(rules[formItemNames[i]][0].log) return message.error(rules[formItemNames[i]][0].log)
} }
} }
if(state.formParam.certStatus&&!state.formParam.certificationName){
return message.error('请上传认证凭证')
}
if(state.formParam.name){ if(state.formParam.name){
const nameNo = state.formParam?.name?.split('/') const nameNo = state.formParam?.name?.split('/')
state.formParam.name = nameNo[0] state.formParam.name = nameNo[0]

View File

@@ -136,7 +136,7 @@
<template v-if="column.key === 'operation'"> <template v-if="column.key === 'operation'">
<a-space> <a-space>
<a-button type="link" @click="() => handleLook(record, String(record.courseform))">查看</a-button> <a-button type="link" @click="() => handleLook(record, String(record.courseform))">查看</a-button>
<a-button type="link" @click="() => handleModify(record, String(record.courseform))" v-if="record.createFrom == 1 && record.courseStatus == 0 ">修改 </a-button> <a-button type="link" @click="() => handleModify(record, String(record.courseform))" v-if="record.createFrom == 1 && record.courseStatus == 0 ">编辑 </a-button>
<a-button type="link" @click="() => deleteModal(record, String(record.courseform))">删除</a-button> <a-button type="link" @click="() => deleteModal(record, String(record.courseform))">删除</a-button>
<!-- <a-button type="link" @click="() => deleteModal(record, String(record.courseform))">删除</a-button> --> <!-- <a-button type="link" @click="() => deleteModal(record, String(record.courseform))">删除</a-button> -->
</a-space> </a-space>
@@ -166,15 +166,15 @@
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<a-form-item label="讲师组织" name="orgName"> <a-form-item label="讲师组织" name="orgName">
<a-popover> <!-- <a-popover>
<template #content> <template #content>
{{ formParam.orgNames }} {{ formParam.orgNames }}
</template> </template> -->
<a-input disabled v-model:value="formParam.orgName" class="draitem" <a-input :title="formParam.orgNames" disabled v-model:value="formParam.orgName" class="draitem"
placeholder="自动带出讲师的组织,展示主要部分,鼠标浮上去展示所有" allowClear showSearch> placeholder="自动带出讲师的组织,展示主要部分,鼠标浮上去展示所有" allowClear showSearch>
</a-input> </a-input>
</a-popover> <!-- </a-popover> -->
</a-form-item> </a-form-item>
</a-col> </a-col>
</a-row> </a-row>
@@ -919,7 +919,7 @@ export default {
console.log( state.formParam) console.log( state.formParam)
if (state.vf == false) { if (state.vf == false) {
updateInTeacherCourse(state.formParam).then(response => { updateInTeacherCourse(state.formParam).then(response => {
message.success("修改成功"); message.success("编辑成功");
state.teacherdialog = false; state.teacherdialog = false;
cancel() cancel()
getTableDate(); getTableDate();

View File

@@ -74,12 +74,12 @@
</a-form-item> --> </a-form-item> -->
<a-form-item class="select" v-if="moreid == 2"> <a-form-item class="select" v-if="moreid == 2">
<a-select style="width: 235px ;margin-bottom:20px" placeholder="请选择讲师体系" v-model:value="searchParam.tsystemId" allowClear <a-select style="width: 235px ;margin-bottom:20px" placeholder="请选择讲师体系" v-model:value="searchParam.tsystemId" allowClear
:options="lecturerSystemList" @change="changetlevel" :options="lecturerSystemList"
v-on:keydown.enter="enterPressHadlerSearch"> v-on:keydown.enter="enterPressHadlerSearch">
</a-select> </a-select>
</a-form-item> </a-form-item>
<a-form-item class="select" v-if="moreid == 2"> <a-form-item class="select" v-if="moreid == 2">
<a-select style="width: 235px ;margin-bottom:20px" v-model:value="searchParam.levelId" placeholder="请选择讲师级别" allowClear :disabled="getLevelList.length!==0 ? false:true" <a-select style="width: 235px ;margin-bottom:20px" v-model:value="searchParam.levelId" placeholder="请选择讲师级别" allowClear
:options="getLevelList" :options="getLevelList"
v-on:keydown.enter="enterPressHadlerSearch"> v-on:keydown.enter="enterPressHadlerSearch">
</a-select> </a-select>
@@ -228,7 +228,7 @@
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<a-form-item label="课程名称" name="courseName "> <a-form-item label="课程名称" name="courseName">
<!-- <a-radio-group v-model:value="formParam.courseName"> <!-- <a-radio-group v-model:value="formParam.courseName">
<a-radio :value="0">面授课</a-radio> <a-radio :value="0">面授课</a-radio>
<a-radio :value="1">在线课</a-radio> <a-radio :value="1">在线课</a-radio>
@@ -236,7 +236,7 @@
<!-- <a-select class="draitem" v-model:value="formParam.courseName" placeholder="请选择输入或选择面授课" style="width:63%" allowClear <!-- <a-select class="draitem" v-model:value="formParam.courseName" placeholder="请选择输入或选择面授课" style="width:63%" allowClear
:options="getLevelList"> :options="getLevelList">
</a-select> --> </a-select> -->
<a-input v-model:value="formParam.courseName" placeholder="请输入面授课名称" class="draitem"> <a-input :maxlength="20" show-count v-model:value="formParam.courseName" placeholder="请输入面授课名称" class="draitem">
</a-input> </a-input>
</a-form-item> </a-form-item>
</a-col> </a-col>
@@ -438,7 +438,7 @@
import ImportWork from "../../components/project/ImportWork.vue"; import ImportWork from "../../components/project/ImportWork.vue";
import SearchTeacher from "@/components/project/SearchTeacher"; import SearchTeacher from "@/components/project/SearchTeacher";
import {getTeacherFeeList,getTeacherFeeDetail,addTeacherFee ,getListByIds,updateTeacherFee,updateStatusSubmit,approveTeacherFee,getTeacherLevel,deleteInTeacher,confirm} from "../../api/lecturerFeeManagement"; import {getTeacherFeeList,getTeacherFeeDetail,addTeacherFee ,getListByIds,updateTeacherFee,updateStatusSubmit,approveTeacherFee,getTeacherLevel,deleteInTeacher,confirm} from "../../api/lecturerFeeManagement";
import {getTeacherSystemList, getLevel,getPayRollPlace,fileUp,teacherExpenseConfirm } from "../../api/Lecturer"; import {getTeacherSystemList, getAllLevelList,getPayRollPlace,fileUp,teacherExpenseConfirm } from "../../api/Lecturer";
// lecturerFeeManagement // lecturerFeeManagement
// import {getProjSt} from "../../api/indexProjStu"; // import {getProjSt} from "../../api/indexProjStu";
// import AddTeacher from "../../components/drawers/project/AddTeacher" // import AddTeacher from "../../components/drawers/project/AddTeacher"
@@ -599,9 +599,8 @@
const getLevelList = ref([ const getLevelList = ref([
// { value: 0, label: "未定级" }, // { value: 0, label: "未定级" },
]) ])
const changetlevel = (val) => { const changetlevel = () => {
console.log( "讲师体系id" +val); getAllLevelList().then((res) => {
getLevel( {id:val}).then((res) => {
console.log(res,'rssssss') console.log(res,'rssssss')
if (res.data.code === 200) { if (res.data.code === 200) {
let arr = res.data.data; let arr = res.data.data;
@@ -617,6 +616,7 @@ console.log( "讲师体系id" +val);
} }
}) })
} }
changetlevel()
LecturerSystemLista() LecturerSystemLista()
// //获取讲师发薪地列表 // //获取讲师发薪地列表
@@ -1213,7 +1213,7 @@ console.log( "讲师体系id" +val);
userNo: [{ required: true, message: '',log:'讲师工号不能为空' }], userNo: [{ required: true, message: '',log:'讲师工号不能为空' }],
orgName: [{ required: true, message: '',log:'讲师组织不能为空' }], orgName: [{ required: true, message: '',log:'讲师组织不能为空' }],
tsystemName: [{ required: true, message:'',log: '讲师体系不能为空' }], tsystemName: [{ required: true, message:'',log: '讲师体系不能为空' }],
tlevelName: [{ required: true, message:'',log: ' 讲师级别 不能为空' }], tlevelName: [{ required: true, message:'',log: ' 讲师级别不能为空' }],
payrollPlace: [{ required: true, message:'',log: '讲师发薪地不能为空' }], payrollPlace: [{ required: true, message:'',log: '讲师发薪地不能为空' }],
courseType: [{ required: true, message: '',log:'费用类型不能为空' }], courseType: [{ required: true, message: '',log:'费用类型不能为空' }],
courseName: [{ required: true, message:'',log: '课程名称不能为空' }], courseName: [{ required: true, message:'',log: '课程名称不能为空' }],