授课页面静态页调整

This commit is contained in:
wangxuemei
2024-06-05 09:23:03 +08:00
parent 60e3719c87
commit a6569a8ea3
4 changed files with 1380 additions and 205 deletions

View File

@@ -1,6 +1,6 @@
<!-- 外部讲师页面 -->
<template>
<div class="projectManage">
<div class="ExternalLecturer">
<div>
</div>
<!-- 搜索框及按钮 -->
@@ -90,7 +90,7 @@
</div>
<!-- 个人详情 -->
<div style="border: 1px rgb(177, 177, 177) solid; margin-left: 33px; margin-right: 33px; margin-bottom: 33px;" v-show="tagsshow==1">
<div class="projectManage">
<div class="ExternalLecturer">
<div class="filter">
<div class="filterItems">
<!-- <div class="select">
@@ -149,7 +149,7 @@
<div class="select">
<span style="display:inline-block ;width:80px ;text-align:center ">备注 :</span>
<a-input type="textarea" v-if="teacherdialog1 == 0" v-model:value="formParam.remark"
style="width:200px; height: 40px; ">
style="width:500px; height: 80px; ">
</a-input>
<span v-if="teacherdialog1 == 1" class=display1>{{ formParam.userNo }}</span>
</div>
@@ -163,7 +163,7 @@
</div>
</div>
<!-- 授课记录 -->
<div class="projectManage" v-show="tagsshow==2" style="margin">
<div class="ExternalLecturer" v-show="tagsshow==2" style="margin">
<div style="padding: 33px">
<a-table :header-cell-style="{ 'text-align': 'center' }" style="border: 1px solid #f2f6fe" :columns="teacherrecordsColumns"
@@ -245,12 +245,11 @@
<script lang="jsx">
import { reactive, toRefs, ref } from "vue";
import Editor from "@/components/project/Editor";
import {getTeacherSystemList ,getTeacherPayRollPriceList, getLevel,insertTeacher,deleteTeacher,updateInTeacher, updateTeacherState} from "../../api/indexPeojiectManage";
import {getOutTeacherList ,getOuterTeacherById ,getOuterTeacherCourseList} from "../../api/ExternalLecturer";
import {getOutTeacherList ,getOuterTeacherById ,getOuterTeacherCourseList,deleteTeacher,updateInTeacher, updateTeacherState} from "../../api/Lecturer";
// import {getProjSt} from "../../api/indexProjStu";
// import AddTeacher from "../../components/drawers/project/AddTeacher"
export default {
name: "projectManage",
name: "ExternalLecturer",
components: {
// AddTeacher,
Editor
@@ -260,8 +259,6 @@ export default {
promotionrecordsLoading:false , //晋级记录遮罩层
tableLoading:false,
tagsshow:"1",
PlaceOfPayList:[],
LecturerSystemList:[],
delTeacherId:null, //删除id确认
editTeacherid:null,//修改状态id确认
userNoid:null, //讲师详情工号确认
@@ -277,7 +274,6 @@ export default {
tableDataTotal: -1,//table列表总条数
teacherrecordstableDataTotal:-1,//授课记录列表总条数
formParam: {
authenticationStatus: 1 //认证状态
},
searchParam: {
name:null,//姓名
@@ -287,89 +283,10 @@ export default {
},
activeName:'first'
})
const LecturerSystemList = ref([
// { value: 0, systemName: "讲师体系" },
]);
//获取讲师体系列表
const LecturerSystemLista =() => {
// console.log('点击了LecturerSystemLista')
getTeacherSystemList().then((res)=>{
if (res.data.code === 200) {
let arr = res.data.data;
let array = LecturerSystemList.value;
arr.map((value) => {
let obj = {
value: value.id,
label: value.name,
};
array.push(obj);
});
LecturerSystemList.value = array;
}
console.log("获取讲师",LecturerSystemList);
})
}
//获取内部讲师级别
LecturerSystemLista()
const getLevelList = ref([
// { value: 0, label: "未定级" },
])
const getLevelLista =() => {
getLevel().then((res)=>{
if (res.data.code === 200) {
let arr = res.data.data;
let array = getLevelList.value;
arr.map((value) => {
let obj = {
value: value.id,
label: value.name,
};
array.push(obj);
});
getLevelList.value = array;
}
})
}
getLevelLista()
const OnTheJobStatusList = ref([
{ value: 0, label: "在职" },
{ value: 1, label: "离职" },
])
const AuthenticationStatusList = ref([
{ value: 0, label: "未认证" },
{ value: 1, label: "已认证" },
])
const PlaceOfPayList = ref([
// { value: 0, label: "发薪地B1" },
])
//获取讲师发薪地列表
const PlaceOfPayLista =() => {
getTeacherPayRollPriceList().then((res)=>{
if (res.data.code === 200) {
let arr = res.data.data;
let array = PlaceOfPayList.value;
arr.map((value) => {
let obj = {
value: value.payrollPlaceId,
label: value.payrollPlaceName,
};
array.push(obj);
});
PlaceOfPayList.value = array;
}
console.log("获取发薪地", PlaceOfPayList);
})
}
PlaceOfPayLista()
const AccountStatusList = ref([
{ value: 0, label: "启用" },
{ value: 1, label: "停用" },
])
const teacheExpertiseList= ref([
{ value: 0, label: "领导力" , children: [{value: 0, label: "管理团队" ,value: 1, label: "管理业务" ,value: 2, label: "管理自我" }]},
{ value: 1, label: "专业力" , children: [{value: 0, label: "管理团队" ,value: 1, label: "专业力" ,value: 2, label: "专业力" }]},
{ value: 2, label: "通用力" , children: [{value: 0, label: "管理团队" ,value: 1, label: "通用力" ,value: 2, label: "通用力" }]},
])
const columns = ref([
{
title: '讲师编号 ',
@@ -448,14 +365,14 @@ export default {
])
// 搜索
const searchSubmit = () => {
// getLevelLista()
// LecturerSystemLista()
// PlaceOfPayLista()
getTableDate();
};
//重置
const searchReset = () => {
state.searchParam = { pageNo: 1, pageSize: 10 , name:null,
state.searchParam = {
pageNo: 1,
pageSize: 10 ,
name:null,
status:null};
getTableDate();
};
@@ -466,7 +383,7 @@ export default {
let objA = {...state.searchParam};
getOutTeacherList(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("获取讲师tableDatateacherName", tableData);
@@ -515,13 +432,6 @@ export default {
state.teacherdialog = true;
state.teacherdialogtitle = '修改信息'
TeacherSystem()
// state.formParam.name = record.name;
// state.formParam.userNo = record.userNo;
// state.formParam.organizationDTO = record.organizationDTO;
// state.formParam.teachingDuration = record.teachingDuration;
// state.formParam.grade = record.grade;
// state.formParam.lecturerSystem = record.lecturerSystem;
// state.formParam.authenticationStatus = record.authenticationStatus;
}
//保存
const createTeacherDialog =()=>{
@@ -606,17 +516,13 @@ export default {
//清空数据
const cancel = () => {
// state.formParam=({
// //讲师姓名
state.formParam.name = null;
// 手机号
state.formParam.mobile = null;
// 邮箱
state.formParam.email = null;
//讲师介绍
state.formParam.teacherIntrofuce =null;
//备注
state.formParam.remark =null;
state.formParam= {
name :null ,
mobile:null ,
email:null,
teacherIntrofuce:null ,
remark:null
}
console.log(state.formParam);
}
//表格内查看数据操作
@@ -629,15 +535,15 @@ export default {
// alert(record.grade)
TeacherSystem()
}
//部讲师详情
//部讲师详情
const TeacherSystem=()=>{
let ids={userNo : state.userNoid }
getOuterTeacherById(ids).then((res) => {
console.log("部讲师详情", res.data);
console.log("部讲师详情", res.data);
state.formParam= res.data.data
})
.catch((err) => {
console.log("部讲师详情", err);
console.log("部讲师详情", err);
});
}
// tab 标签切换
@@ -771,13 +677,6 @@ export default {
return {
...toRefs(state),
// handleExport,
LecturerSystemList,
getLevelList,
OnTheJobStatusList,
getLevelLista,
PlaceOfPayLista,
AuthenticationStatusList,
PlaceOfPayList,
AccountStatusList,
searchSubmit,
searchReset,
@@ -794,10 +693,7 @@ export default {
createTeacherDialog,
handleOperate,
closehandleOperate,
teacheExpertiseList,
getTableDate, //list接口数据调用
// getStu
LecturerSystemLista,
TeacherSystem,
particulars,
teacherrecords,
@@ -874,7 +770,7 @@ export default {
text-align: center;
}
.projectManage {
.ExternalLecturer {
width: 100%;
height: 100%;
display: flex;