讲师调整

This commit is contained in:
wangxuemei
2024-08-14 15:55:20 +08:00
parent 860cb821ae
commit ca15f0ab9b
9 changed files with 968 additions and 864 deletions

View File

@@ -1,7 +1,6 @@
import http from "./config";
//列表查询内部讲师授课记录
// http://127.0.0.1:30001/admin/teacher/getTeacherCourseList
// export const getNewInTeacherCourseList = (obj) => http.post('/admin/teacher/getNewInTeacherCourseList', obj)
export const getNewInTeacherCourseList = (obj) => http.post('/admin/teacher/getNewInTeacherCourseList', obj)
//内部讲师授课记录详情
// export const getTeacherCourseList = (obj) => http.post(`/admin/teacher/getTeacherCourseList?id=${obj}`)
export const getTeacherCourseList = (obj) => http.post('/admin/teacher/getTeacherCourseList', obj)

View File

@@ -622,7 +622,7 @@
<a-menu-item key="sub24-2">
<span
:class="{
circleActive: selectedKeys[0] === 'sub24-2' ? true : false,
circleActive : selectedKeys[0] === 'sub24-2' ? true : false,
circle: selectedKeys[0] === 'sub24-2' ? false : true,
}"
></span>
@@ -1029,30 +1029,30 @@ export default {
selectedKeys: "sub23-1",
pagename: "测评上传",
},
{
href: "/insideteaching",
openKeys: "sub24",
selectedKeys: "sub23-1",
pagename: "内部讲师",
},
{
href: "/externallecturer",
openKeys: "sub25",
selectedKeys: "sub25",
pagename: "外部讲师",
},
{
href: "/insideteaching",
openKeys: "sub26",
selectedKeys: "sub26",
pagename: "内部授课",
},
{
href: "/externalteaching",
openKeys: "sub27",
selectedKeys: "sub27",
pagename: "外部授课",
},
// {
// href: "/lecturerlist",
// openKeys: "sub24",
// selectedKeys: "sub24",
// pagename: "讲师列表",
// },
// {
// href: "/externallecturer",
// openKeys: "sub25",
// selectedKeys: "sub25",
// pagename: "外部讲师",
// },
// {
// href: "/insideteaching",
// openKeys: "sub26",
// selectedKeys: "sub26",
// pagename: "内部授课",
// },
// {
// href: "/externalteaching",
// openKeys: "sub27",
// selectedKeys: "sub27",
// pagename: "外部授课",
// },
{
href: "/download",
openKeys: "sub15",

View File

@@ -150,6 +150,8 @@
<a-col :span="24">
<a-form-item label="讲师介绍">
<Editor v-model:value="formParam.description "/>
<!-- <a-textarea placeholder="富文本"/> -->
</a-form-item>
</a-col>
</a-row>
@@ -195,7 +197,7 @@
<div class="del_header"></div>
<div class="del_main">
<div class="header">
<div class="icon1"></div>
<img src="@/assets/images/coursewareManage/QR.png" alt="" style="margin-right:5px"/>
<span>提示</span>
</div>
<div class="body">
@@ -220,7 +222,7 @@
<div class="del_header"></div>
<div class="del_main">
<div class="header">
<div class="icon1"></div>
<img src="@/assets/images/coursewareManage/QR.png" alt="" style="margin-right:10px"/>
<span>提示</span>
</div>
<div class="body">
@@ -240,10 +242,14 @@
</a-modal>
</div>
</div>
</template>
<script lang="jsx">
import { reactive, toRefs, ref } from "vue";
import { reactive, toRefs, ref,watch } from "vue";
import Editor from "@/components/project/Editor";
import { useRouter } from "vue-router";
import { message } from "ant-design-vue";
@@ -286,8 +292,10 @@ export default {
tableDataTotal: -1,//table列表总条数
teacherrecordstableDataTotal: -1,//授课记录列表总条数
formParam: {
description:null,
description:"",
teacherType:'1',
},
vf:true,
searchParam: {
name: null,//姓名
status: null,//状态
@@ -464,6 +472,7 @@ export default {
const addTeacher = () => {
state.teacherdialog = true;
state.teacherdialogtitle = '新增讲师'
state.vf = true
}
//修改讲师信息弹窗
@@ -471,18 +480,19 @@ export default {
state.teacherdialog = true;
state.teacherdialogtitle = '修改信息'
state.id = record.id
state.vf = false
TeacherSystem(record)
}
//保存
const createTeacherDialog = () => {
console.log(state.formParam);
if (state.formParam.id != undefined) {
if (state.vf == false) {
updateOutTeacher(state.formParam).then(response => {
message.success("修改成功");
});
}
else {
insertTeacher(state.formParam)
insertTeacherOutSide(state.formParam)
.then((res) => {
message.success("保存成功");
}).catch((err) => {
@@ -546,15 +556,18 @@ export default {
state.editTeacher = false
state.tagsshow = 1
};
watch(() => state.formParam.description, (val) => {
console.log(val, 'description')
})
//清空数据
const cancel = () => {
state.formParam = {
teacherType:'1',
name: null,
mobile: null,
email: null,
teacherIntrofuce: null,
description:null,
description:"",
remark: null,
id:null,
supplier:null,
@@ -575,6 +588,7 @@ export default {
getOuterTeacherById(state.id).then((res) => {
console.log("外部讲师详情", res.data);
state.formParam = res.data.data
state.formParam.description = state.formParam.description === null ? '' : state.formParam.description
})
.catch((err) => {
console.log("外部讲师详情", err);
@@ -718,108 +732,116 @@ export default {
}
}}
.delete {
z-index: 9999;
width: 424px;
background: #ffffff;
box-shadow: 0px 1px 35px 0px rgba(118, 136, 166, 0.21);
border-radius: 4px;
position: absolute;
left: 30%;
top: 10%;
// transform: translate(-50%, -50%);
.ant-modal {
.ant-modal-content {
width: 424px !important;
.del_header {
position: absolute;
width: calc(100%);
height: 40px;
background: linear-gradient(rgba(78, 166, 255, 0.2) 0%,
rgba(78, 166, 255, 0) 100%);
}
.ant-modal-body {
.delete {
width: 424px;
background: #ffffff;
box-shadow: 0px 1px 35px 0px rgba(118, 136, 166, 0.21);
border-radius: 4px;
position: absolute;
left: 50%;
top: 10%;
transform: translate(-50%, -50%);
.del_main {
width: 100%;
position: relative;
.del_header {
position: absolute;
width: calc(100%);
height: 40px;
background: linear-gradient(
rgba(78, 166, 255, 0.2) 0%,
rgba(78, 166, 255, 0) 100%
);
}
.header {
display: flex;
align-items: center;
padding-top: 20px;
padding-left: 26px;
font-size: 16px;
.del_main {
width: 100%;
position: relative;
.del-icon {
width: 16px;
height: 16px;
margin-right: 10px;
background-image: url(@/assets/images/coursewareManage/notice.png);
background-size: 100% 100%;
}
.header {
display: flex;
align-items: center;
padding-top: 20px;
padding-left: 26px;
font-size: 16px;
.icon {
width: 16px;
height: 16px;
margin-right: 10px;
background-image: url(@/assets/images/coursewareManage/QR.png);
background-size: 100% 100%;
}
.del-icons {
width: 16px;
height: 16px;
position: relative;
margin-right: 10px;
.close_exit {
position: absolute;
right: 42px;
cursor: pointer;
width: 20px;
height: 20px;
background-image: url(@/assets/images/coursewareManage/close.png);
background-size: 100% 100%;
}
}
img {
width: 100%;
height: 100%;
position: absolute;
top: 0px;
left: 0px;
background-size: 100% 100%;
}
}
.body {
width: 100%;
margin: 34px auto 56px auto;
display: flex;
justify-content: center;
align-items: center;
}
.close_exit {
position: absolute;
right: 42px;
cursor: pointer;
width: 20px;
height: 20px;
background-image: url(@/assets/images/coursewareManage/close.png);
background-size: 100% 100%;
}
}
.del_btnbox {
display: flex;
margin: 30px auto;
justify-content: center;
.body {
width: 100%;
margin: 34px auto 56px auto;
display: flex;
justify-content: center;
align-items: center;
}
.del_btn {
width: 100px;
height: 40px;
background: rgba(64, 158, 255, 0);
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
margin-right: 14px;
flex-shrink: 0;
cursor: pointer;
.del_btnbox {
display: flex;
margin: 30px auto;
justify-content: center;
.btnText {
font-size: 14px;
font-weight: 400;
line-height: 40px;
.del_btn {
width: 100px;
height: 40px;
background: rgba(64, 158, 255, 0);
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
margin-right: 14px;
flex-shrink: 0;
cursor: pointer;
.btnText {
font-size: 14px;
font-weight: 400;
line-height: 40px;
}
}
.btn1 {
border: 1px solid rgba(64, 158, 255, 1);
color: #4ea6ff;
}
.btn2 {
background-color: #4ea6ff;
color: #ffffff;
}
}
}
}
}
.btn1 {
border: 1px solid rgba(64, 158, 255, 1);
color: #4ea6ff;
}
.btn2 {
background-color: #4ea6ff;
color: #ffffff;
}
}
}
}
.CreatePath {
.out {
z-index: 9999;

View File

@@ -2,7 +2,7 @@
<template>
<div>
<!-- 搜索框及按钮 -->
<div class="filter" >
<div class="filter" style="min-width: 1380px;">
<a-form layout="inline">
<a-form-item class="select">
<!-- v-model:value="searchParam.name" -->
@@ -154,11 +154,11 @@
</a-form-item>
</a-col>
<a-col :span="12">
<a-form-item label="初始授课时长" name="defaultTeachingTime">
<a-input v-model:value="formParam.defaultTeachingTime" style="width:80%; height: 40px; border-radius: 8px; " placeholder="0"
allowClear showSearch suffix="分钟">
<a-form-item label="授课时长" name="duration">
<a-input v-model:value="formParam.duration" style="width:80%; height: 40px; border-radius: 8px; " placeholder="0"
allowClear showSearch suffix="分钟" @blur="clearNonNumber">
</a-input>
<span style="margin-left: 5px ;">{{ (formParam.defaultTeachingTime /60 ).toFixed(2)}}小时</span>
<span style="margin-left: 5px ;">{{ (formParam.duration /60 ).toFixed(2)}}小时</span>
</a-form-item>
</a-col>
</a-row>
@@ -245,7 +245,7 @@
<div class="del_header"></div>
<div class="del_main">
<div class="header">
<div class="icon1"></div>
<img src="@/assets/images/coursewareManage/QR.png" alt="" style="margin-right:10px"/>
<span>提示</span>
</div>
<div class="body">
@@ -296,6 +296,7 @@ export default {
setup() {
const router = useRouter();
const state = reactive({
vf: false,
moreid: 1,
tableLoading: false,
delTeacherId: null, //删除id确认
@@ -311,9 +312,10 @@ export default {
formParam: {
status: 1,
entryType:1,
defaultTeachingTime:0
duration:0
},
searchParam: {
teacherType:'1',
pageNo: 1,
pageSize: 10,
teacher: null,
@@ -343,7 +345,7 @@ export default {
id: [{ required: true, message: '内容分类不能为空' }],
name: [{ required: true, message: '课程名称不能为空' }],
status: [{ required: true, message: '讲开课状态不能为空' }],
defaultTeachingTime: [{ required: true, message: '授课时长不能为空' }],
duration: [{ required: true, message: '授课时长不能为空' }],
beginTime: [{ required: true, message: '授课日期不能为空' }],
}
@@ -362,7 +364,6 @@ export default {
});
AddressList.value = array;
}
console.log("获取讲师", AddressList);
})
}
AddressLista()
@@ -390,8 +391,8 @@ export default {
// },
{
title: '授课讲师 ',
dataIndex: 'teacher',
key: 'teacher',
dataIndex: 'teacherName',
key: 'teacherName',
elipsis: true, align: "center",
width: 100,
},
@@ -543,6 +544,7 @@ export default {
//重置
const searchReset = () => {
state.searchParam = {
teacherType:'1',
pageNo: 1,
pageSize: 10,
managerId: null,
@@ -582,8 +584,7 @@ export default {
const addTeacher = () => {
state.teacherdialog = true;
state.teacherdialogtitle = '添加授课记录'
getTeacherExpertiseLista()
// AddressLista()
state.vf = true
}
//修改讲师信息弹窗
@@ -591,11 +592,12 @@ export default {
state.teacherdialog = true;
state.teacherdialogtitle = '修改授课记录'
state.lookTeacherId = record.teacherId
TeacherSystem(record)
state.vf = false
TeacherSystem()
}
//保存
const createTeacherDialog = () => {
if (state.formParam.userNo != undefined) {
if (state.vf == false) {
updateInTeacherCourse(state.formParam).then(response => {
message.success("修改成功");
});
@@ -669,7 +671,7 @@ export default {
duration: null,
score: null,
remark: null,
defaultTeachingTime:0
duration:0
}
}
@@ -714,6 +716,9 @@ export default {
state.searchParam.name = t;
// state.searchParam.trainorgName=orgName
}
const clearNonNumber=()=>{
state.formParam.defaultteachingTime = state.formParam.defaultteachingTime.replace(/\D/g, '');
}
//导出功能
const handleExport = () => {
window.open(
@@ -733,6 +738,7 @@ export default {
return {
...toRefs(state),
rules,
clearNonNumber,
managerChange,
entryTypeList,
searchTimeChange,

File diff suppressed because it is too large Load Diff

View File

@@ -5,16 +5,13 @@
<div class="filter">
<a-form layout="inline" style="min-width: 1380px;">
<a-form-item class="select">
<!-- v-model:value="searchParam.name" -->
<div style="width: 276px; height: 40px; border-radius: 8px" >
<a-input style="width: 276px; height: 40px; border-radius: 8px" placeholder="请输入工号/讲师姓名进行检索" showSearch allowClear v-model:name="searchParam.teacherNameOrUserNo"></a-input>
<!-- <div style="width: 276px; height: 40px; border-radius: 8px" >
<ProjectManager v-model:value="searchParam.userNo"
v-model:name="searchParam.teacher"
placeholder="请输入工号/讲师姓名进行检索"
@onChange="managerChange" mode="multiple"></ProjectManager>
</div>
<!-- <a-select style="width: 276px" placeholder="请选择所属组织" v-model:value="searchParam.userNo"
:options="infoteacherList">
</a-select> -->
</div> -->
</a-form-item>
<a-form-item class="select">
<a-input v-model:value="searchParam.name" style="width: 260px; height: 40px; border-radius: 8px"
@@ -224,7 +221,7 @@
<a-col :span="12">
<a-form-item label="授课时长" name="duration">
<a-input v-model:value="formParam.duration" style="width:80%; height: 40px; border-radius: 8px ; " placeholder="0"
allowClear showSearch suffix="分钟">
allowClear showSearch suffix="分钟" @blur="clearNonNumber">
</a-input>
<span style="margin-left: 5px ;" v-if="formParam.duration!= null">{{ (formParam.duration /60 ).toFixed(2)}}小时</span>
</a-form-item>
@@ -331,7 +328,7 @@
<div class="del_header"></div>
<div class="del_main">
<div class="header">
<div class="icon1"></div>
<img src="@/assets/images/coursewareManage/QR.png" alt="" style="margin-right:10px"/>
<span>提示</span>
</div>
<div class="body">
@@ -393,6 +390,7 @@ export default {
const router = useRouter();
const state = reactive({
moreid:1,
vf:false,
showWork: false,
currentPage1: 1,
pageSize1: 10,
@@ -417,8 +415,10 @@ export default {
duration:0
},
searchParam: {
userNo: null,//工号姓名
teacher:null,
teacherType:'0',
// userNo: null,//工号姓名
// teacher:null,
teacherNameOrUserNo:null,
name: null,//课程编号
tsystemName: null,//讲师体系
payrollPlaceName: null,//发薪地
@@ -514,8 +514,8 @@ export default {
{
title: '讲师姓名 ',
dataIndex: 'teacher',
key: 'teacher',
dataIndex: 'teacherName',
key: 'teacherName',
elipsis: true, align: "center",
width: 120,
},
@@ -535,8 +535,8 @@ export default {
},
{
title: '所属组织 ',
dataIndex: 'orgName',
key: 'orgName',
dataIndex: 'organizationName',
key: 'organizationName',
elipsis: true, align: "center",
width: 120,
// customRender: (value, record) => {
@@ -712,11 +712,11 @@ export default {
//重置
const searchReset = () => {
state.searchParam = {
teacherType:'0',
pageNo: 1,
pageSize: 10,
managerId: null,
name: null,
manager:null,
teacherNameOrUserNo: null,
entryType: null,
status: null,
trainorgId:null,
@@ -755,20 +755,19 @@ export default {
state.teacherdialog1 = 0
state.teacherdialog = true;
state.teacherdialogtitle = '添加授课记录'
//获取内部讲师级别
state.vf = true
}
//修改信息弹窗
const handleModify = (record) => {
// state.teacherdialog1 = 0
state.teacherdialog = true;
state.teacherdialogtitle = '修改授课记录'
state.lookTeacherId = record.teacherId
state.vf = false
TeacherSystem(record)
}
//保存
const createTeacherDialog = () => {
if (state.formParam.offcourseId != null) {
if (state.vf==false) {
updateInTeacherCourse(state.formParam).then(response => {
message.success("修改成功");
});
@@ -833,17 +832,22 @@ export default {
}
}
//页面内部姓名
const infoteacherList = ref([
]);
const getinfoteacher = (obj) => {
state.tableLoading = true
infoteacher()
.then((res) => {
infoteacherList.value = res.data.data.records
})
};
// //页面内部姓名
// const infoteacherList = ref([
// ]);
// const getinfoteacher = (obj) => {
// state.tableLoading = true
// infoteacher()
// .then((res) => {
// infoteacherList.value = res.data.data.records
// })
// };
function managerChange(e, l, d, t, orgName) {
console.log(e, l);
state.searchParam.userNo = d;
state.searchParam.name = t;
// state.searchParam.trainorgName=orgName
}
//表格内查看数据操作
const handleLook = (record) => {
// state.teacherdialog1 = 1
@@ -863,7 +867,6 @@ export default {
}
//内部授课详情
const TeacherSystem = (record) => {
console.log(record.teacher);
// getTeacherCourseList( state.lookTeacherId).then((res) => {
// console.log("内部授课详情", res.data);
// state.formParam= res.data.data
@@ -872,7 +875,7 @@ export default {
// console.log("内部授课详情", err);
// });
state.formParam = {
teacher: record.teacher,
name: record.name,
userNo: record.userNo,
departId:record.departId,
systemId:record.systemId,
@@ -880,11 +883,10 @@ export default {
type: record.type,
name: record.name,
status:record.status,
beginTime: moment(record.beginTime, 'YYYY-MM-DD'),
// beginTime: moment(record.beginTime, 'YYYY-MM-DD'),
// ref< moment.Moment >(moment(record.beginTime,'YYYY-MM-DD')),
// record.beginTime,
duration: record.duration,
duration: record.duration,
score: record.score,
studys: record.studys,
remark: record.remark,
@@ -1020,17 +1022,19 @@ export default {
});
return false;
};
const clearNonNumber=()=>{
state.formParam.defaultteachingTime = state.formParam.defaultteachingTime.replace(/\D/g, '');
}
return {
...toRefs(state),
managerChange,
clearNonNumber,
beforeUpload2,
rules,
column,
tableDatas,
gettableDatas,
handlemoreid,
infoteacherList,
getinfoteacher,
handleExport,
handleImport,
LecturerSystemList,
@@ -1162,108 +1166,116 @@ export default {
}
}
.delete {
z-index: 9999;
width: 424px;
background: #ffffff;
box-shadow: 0px 1px 35px 0px rgba(118, 136, 166, 0.21);
border-radius: 4px;
position: absolute;
left: 30%;
top: 10%;
// transform: translate(-50%, -50%);
.ant-modal {
.ant-modal-content {
width: 424px !important;
.del_header {
position: absolute;
width: calc(100%);
height: 40px;
background: linear-gradient(rgba(78, 166, 255, 0.2) 0%,
rgba(78, 166, 255, 0) 100%);
}
.ant-modal-body {
.delete {
width: 424px;
background: #ffffff;
box-shadow: 0px 1px 35px 0px rgba(118, 136, 166, 0.21);
border-radius: 4px;
position: absolute;
left: 50%;
top: 10%;
transform: translate(-50%, -50%);
.del_main {
width: 100%;
position: relative;
.del_header {
position: absolute;
width: calc(100%);
height: 40px;
background: linear-gradient(
rgba(78, 166, 255, 0.2) 0%,
rgba(78, 166, 255, 0) 100%
);
}
.header {
display: flex;
align-items: center;
padding-top: 20px;
padding-left: 26px;
font-size: 16px;
.del_main {
width: 100%;
position: relative;
.del-icon {
width: 16px;
height: 16px;
margin-right: 10px;
background-image: url(@/assets/images/coursewareManage/notice.png);
background-size: 100% 100%;
}
.header {
display: flex;
align-items: center;
padding-top: 20px;
padding-left: 26px;
font-size: 16px;
.icon {
width: 16px;
height: 16px;
margin-right: 10px;
background-image: url(@/assets/images/coursewareManage/QR.png);
background-size: 100% 100%;
}
.del-icons {
width: 16px;
height: 16px;
position: relative;
margin-right: 10px;
.close_exit {
position: absolute;
right: 42px;
cursor: pointer;
width: 20px;
height: 20px;
background-image: url(@/assets/images/coursewareManage/close.png);
background-size: 100% 100%;
}
}
img {
width: 100%;
height: 100%;
position: absolute;
top: 0px;
left: 0px;
background-size: 100% 100%;
}
}
.body {
width: 100%;
margin: 34px auto 56px auto;
display: flex;
justify-content: center;
align-items: center;
}
.close_exit {
position: absolute;
right: 42px;
cursor: pointer;
width: 20px;
height: 20px;
background-image: url(@/assets/images/coursewareManage/close.png);
background-size: 100% 100%;
}
}
.del_btnbox {
display: flex;
margin: 30px auto;
justify-content: center;
.body {
width: 100%;
margin: 34px auto 56px auto;
display: flex;
justify-content: center;
align-items: center;
}
.del_btn {
width: 100px;
height: 40px;
background: rgba(64, 158, 255, 0);
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
margin-right: 14px;
flex-shrink: 0;
cursor: pointer;
.del_btnbox {
display: flex;
margin: 30px auto;
justify-content: center;
.btnText {
font-size: 14px;
font-weight: 400;
line-height: 40px;
.del_btn {
width: 100px;
height: 40px;
background: rgba(64, 158, 255, 0);
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
margin-right: 14px;
flex-shrink: 0;
cursor: pointer;
.btnText {
font-size: 14px;
font-weight: 400;
line-height: 40px;
}
}
.btn1 {
border: 1px solid rgba(64, 158, 255, 1);
color: #4ea6ff;
}
.btn2 {
background-color: #4ea6ff;
color: #ffffff;
}
}
}
}
}
.btn1 {
border: 1px solid rgba(64, 158, 255, 1);
color: #4ea6ff;
}
.btn2 {
background-color: #4ea6ff;
color: #ffffff;
}
}
}
}
.CreatePath {
.out {
z-index: 9999;

View File

@@ -166,7 +166,7 @@
</a-drawer>
<!-- 修改状态功能弹窗 -->
<div>
<a-modal v-model:visible="editTeacher" :footer="null" :closable="close" wrapClassName="canclestu1"
<a-modal v-model:visible="editTeacher" :footer="null" :closable="close" wrapClassName=""
centered="true">
<div class="delete" style="width:500px">
<div class="del_header"></div>

View File

@@ -19,7 +19,10 @@ ExternalLecturer
<span class="line"></span>
<a-descriptions title="讲师信息" bordered :column="3" :contentStyle="rowCenter" :labelStyle="rowCenter">
<!-- 一层 -->
<a-descriptions-item label="讲师头像">{{formParam.url }}</a-descriptions-item>
<a-descriptions-item label="讲师头像"> <a-image
:width="55" style="border-radius: 50%;"
:src=formParam.photo
/></a-descriptions-item>
<a-descriptions-item label="讲师工号">{{formParam.userNo}}</a-descriptions-item>
<a-descriptions-item label="手机号码">{{formParam.mobile}}</a-descriptions-item>
<a-descriptions-item label="讲师邮箱">{{formParam.email}}</a-descriptions-item>
@@ -96,6 +99,7 @@ export default{
teacherrecordstableDataTotal: -1,//授课记录列表总条数
teacherrepromotableDataTotal: -1,//晋级记录总条数
teacherrecords: {
teacherType:'1',
pageNo: "1",
pageSize: "10",
id: null
@@ -112,6 +116,7 @@ export default{
getOuterTeacherById(state.id).then((res) => {
console.log("内部讲师详情", res.data);
state.formParam = res.data.data
state.formParam.photo = state.formParam.photo ===null ? 'https://p0.itc.cn/q_70/images01/20211013/f45d91616a364d6ea9c42a8db69734aa.png' : state.formParam.photo
})
.catch((err) => {
console.log("内部讲师详情", err);

View File

@@ -20,8 +20,8 @@
<a-descriptions-item label="讲师头像">
<!-- <a-avatar :src="formParam.photo" /> -->
<a-image
:width="60" style="border-radius: 50%;"
src="https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png"
:width="55" style="border-radius: 50%;"
:src=formParam.photo
/></a-descriptions-item>
<a-descriptions-item label="讲师工号">{{formParam.userNo}}</a-descriptions-item>
<a-descriptions-item label="讲师姓名">{{formParam.name}}</a-descriptions-item>
@@ -36,16 +36,23 @@
<!-- 三层 -->
<a-descriptions-item label="在职">{{formParam.waitStatus==0?'在职' :formParam.waitStatus==1 ?'离职':''}}</a-descriptions-item>
<a-descriptions-item label="账号状态">{{formParam.status==0?'临时' :formParam.status==1 ?'启用':formParam.status==1 ?'停用':''}}</a-descriptions-item>
<a-descriptions-item label="所属组织" :span="2">{{formParam.departId}}</a-descriptions-item>
<a-descriptions-item label="所属组织" :span="2"> <a-popover title="所属组织">
<template #content>
{{ formParam.orgName }}
</template>
{{ formParam.neworgName }}
</a-popover>
</a-descriptions-item>
</a-descriptions>
<div style="margin-top: 10px;"></div>
<span class="line" ></span>
<a-descriptions title="其他信息" bordered :column="4" :contentStyle="rowCenter" :labelStyle="rowCenter" >
<!-- 一层 -->
<a-descriptions-item label="讲师介绍" :span="4"><div style="min-width: 500px;">{{formParam.description}}</div> </a-descriptions-item>
<a-descriptions-item label="工作职责" :span="4">{{formParam.workExperience}}</a-descriptions-item>
<a-descriptions-item label="擅长课程" :span="4">{{formParam.courses}}</a-descriptions-item>
<a-descriptions-item label="教师专长" :span="4">{{formParam.TeacherExpertise}}</a-descriptions-item>
<a-descriptions-item label="讲师介绍" :span="4"><div style="min-width: 500px;">
{{formParam.description ===null ? ' --' :formParam.description}} </div> </a-descriptions-item>
<a-descriptions-item label="工作职责" :span="4">{{formParam.workExperience ===null?'--':formParam.workExperience}}</a-descriptions-item>
<a-descriptions-item label="擅长课程" :span="4">{{formParam.courses===null?'--':formParam.courses}}</a-descriptions-item>
<a-descriptions-item label="教师专长" :span="4">{{formParam.expertise===null?'--':formParam.expertise}}</a-descriptions-item>
</a-descriptions>
<!-- 记录 -->
<div style="margin-top: 1px;"></div>
@@ -130,6 +137,7 @@ export default{
teacherrecordstableDataTotal: -1,//授课记录列表总条数
teacherrepromotableDataTotal: -1,//晋级记录总条数
teacherrecords: {
teacherType:'0',
pageNo: "1",
pageSize: "10",
id: null
@@ -144,8 +152,15 @@ export default{
//内部讲师详情
const TeacherSystem = () => {
getTeacherById(state.id).then((res) => {
console.log("内部讲师详情", res.data);
state.formParam = res.data.data[0];
let objA= res.data.data[0]
if( objA.orgName !==null ){
objA.neworgName=objA.orgName.split('/')
objA.neworgName= objA.neworgName[objA.neworgName.length-1]
}
// console.log(objA ,'11111111111')
state.formParam = objA
state.formParam.photo = state.formParam.photo ===null ? 'https://p0.itc.cn/q_70/images01/20211013/f45d91616a364d6ea9c42a8db69734aa.png' : state.formParam.photo
state.teacherrepromo.userId=res.data.data[0].kid
console.log(state.teacherrepromo.kid);
getpromotionrecordstableData()