mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-24 18:22:55 +08:00
讲师管理页面调整
This commit is contained in:
@@ -313,8 +313,7 @@ import { message } from "ant-design-vue";
|
||||
import ProjectManager from "@/components/project/ProjectManagerNew";
|
||||
import ProjectManagerOutTeacher from "@/components/project/ProjectManagerOutTeacher";
|
||||
import dayjs from "dayjs";
|
||||
import { updateInTeacher, getTeacherExpertise } from "../../api/Lecturer";
|
||||
import { getTeacherCourseList, getAddress, updateInTeacherCourse,getNewInTeacherCourseList, deleteInTeacherCourse, insertInTeacherCourse } from "../../api/Teaching";
|
||||
import { getTeacherCourseList, updateInTeacherCourse,getNewInTeacherCourseList, deleteInTeacherCourse, insertInTeacherCourse } from "../../api/Teaching";
|
||||
// import {getProjSt} from "../../api/indexProjStu";
|
||||
// import AddTeacher from "../../components/drawers/project/AddTeacher"
|
||||
export default {
|
||||
@@ -394,23 +393,7 @@ export default {
|
||||
|
||||
}
|
||||
//获取开课场地
|
||||
const AddressLista = () => {
|
||||
getAddress().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);
|
||||
});
|
||||
AddressList.value = array;
|
||||
}
|
||||
})
|
||||
}
|
||||
AddressLista()
|
||||
|
||||
//获取内容分类
|
||||
const sysTypeOptions = computed(() => store.state.content_type);
|
||||
const OnTheJobStatusList = ref([
|
||||
@@ -730,27 +713,7 @@ export default {
|
||||
state.deleteTeacherdialog = false
|
||||
});
|
||||
}
|
||||
//获取内容分类
|
||||
const getTeacherExpertiseList = ref([
|
||||
// { value: 0, label: "未定级" },
|
||||
])
|
||||
const getTeacherExpertiseLista = () => {
|
||||
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);
|
||||
});
|
||||
getTeacherExpertiseList.value = array;
|
||||
}
|
||||
})
|
||||
}
|
||||
getTeacherExpertiseLista()
|
||||
|
||||
//取消按钮 清空输入的数据
|
||||
const cancelTeacherDialog = () => {
|
||||
if (state.teacherdialog = true) {
|
||||
@@ -766,6 +729,8 @@ export default {
|
||||
//清空数据
|
||||
const cancel = () => {
|
||||
state.formParam = {
|
||||
status: 1,
|
||||
recordType:2,
|
||||
teacher: null,
|
||||
mobile: null,
|
||||
name: null,
|
||||
@@ -851,8 +816,6 @@ const handleImport = () => {
|
||||
entryTypeList,
|
||||
// searchTimeChange,
|
||||
cancelTeachingDialog,
|
||||
getTeacherExpertiseList,
|
||||
getTeacherExpertiseLista,
|
||||
handlemoreid,
|
||||
handleExport,
|
||||
AddressList,
|
||||
@@ -874,7 +837,6 @@ const handleImport = () => {
|
||||
createTeacherDialog,
|
||||
getTableDate, //list接口数据调用
|
||||
// getStu
|
||||
AddressLista,
|
||||
TeacherSystem,
|
||||
// getSysTypeMap
|
||||
}
|
||||
|
||||
@@ -242,7 +242,7 @@ export default{
|
||||
state.teacherrecordsLoading = true
|
||||
state.teacherrecords.name = state.formParam.name
|
||||
let obj = { ...state.teacherrecords }
|
||||
|
||||
console.log(111111111111111111112222222222222222)
|
||||
// api接口
|
||||
getNewInTeacherCourseList(obj).then((res) => {
|
||||
teacherrecordstableData.value = res.data.data.records
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
<a-descriptions-item label="擅长课程" :span="4">
|
||||
<div v-if="formParam.courses !=null" style="min-width: 500px;" v-html="formParam.courses" ></div>
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item label="教师专长" :span="4">{{formParam.expertise===null?'':formParam.expertise}}</a-descriptions-item>
|
||||
<a-descriptions-item label="教师专长" :span="4">{{formParam.expertiseNames===null?'':formParam.expertiseNames}}</a-descriptions-item>
|
||||
</a-descriptions>
|
||||
<!-- 记录 -->
|
||||
<div style="margin-top: 1px;"></div>
|
||||
@@ -171,17 +171,13 @@ export default{
|
||||
getTeacherById({id:state.id}).then((res) => {
|
||||
let objA= res.data.data
|
||||
console.log(objA ,'11111111111')
|
||||
// if( objA.orgName !==null ){
|
||||
// objA.neworgName=objA.orgName.split('/')
|
||||
|
||||
// objA.neworgName= objA.neworgName[objA.neworgName.length-1]
|
||||
// }
|
||||
state.formParam = objA
|
||||
state.formParam.photo = state.formParam.photo ===null ?boe : state.formParam.photo
|
||||
state.teacherrepromo.userId=res.data.data.id
|
||||
console.log(state.teacherrepromo.id);
|
||||
getteacherrecordstableData()
|
||||
getpromotionrecordstableData()
|
||||
promotionrecordstableData.value = res.data.data.records.levelLogList
|
||||
// getpromotionrecordstableData()
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log("内部讲师详情", err);
|
||||
@@ -307,6 +303,7 @@ export default{
|
||||
teacherrecordstableData.value = res.data.data.records
|
||||
state.teacherrecordstableDataTotal = Number(res.data.data.total);
|
||||
state.teacherrecordsLoading = false
|
||||
|
||||
})
|
||||
};
|
||||
//授课翻页
|
||||
@@ -317,7 +314,7 @@ export default{
|
||||
//晋级记录翻页
|
||||
const teacherrepromoPagination = (page) => {
|
||||
state.teacherrepromo.pageNo = page;
|
||||
getpromotionrecordstableData();
|
||||
// getpromotionrecordstableData();
|
||||
};
|
||||
//晋级记录列表
|
||||
const promotionrecordsColumns = ref([
|
||||
@@ -353,15 +350,15 @@ export default{
|
||||
//晋级记录列表数据
|
||||
const promotionrecordstableData = ref([
|
||||
])
|
||||
const getpromotionrecordstableData = () => {
|
||||
state.promotionrecordsLoading = true
|
||||
// state.teacherrepromo.kid = state.kid
|
||||
getTeacherLogList(state.teacherrepromo).then((res) => {
|
||||
promotionrecordstableData.value = res.data.data.records
|
||||
state.teacherrepromotableDataTotal = Number(res.data.data.total);
|
||||
})
|
||||
state.promotionrecordsLoading = false
|
||||
};
|
||||
// const getpromotionrecordstableData = () => {
|
||||
// state.promotionrecordsLoading = true
|
||||
// // state.teacherrepromo.kid = state.kid
|
||||
// getTeacherLogList(state.teacherrepromo).then((res) => {
|
||||
// promotionrecordstableData.value = res.data.data.records
|
||||
// state.teacherrepromotableDataTotal = Number(res.data.data.total);
|
||||
// })
|
||||
// state.promotionrecordsLoading = false
|
||||
// };
|
||||
const goback = ()=>{
|
||||
router.back()
|
||||
}
|
||||
@@ -397,7 +394,7 @@ const handleup = ()=>{
|
||||
teacherrepromoPagination,
|
||||
promotionrecordsColumns,
|
||||
promotionrecordstableData,
|
||||
getpromotionrecordstableData,
|
||||
// getpromotionrecordstableData,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user