mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-19 07:46:46 +08:00
外部讲师接口联调
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
</div>
|
||||
<!-- 搜索框及按钮 -->
|
||||
<div class="filter">
|
||||
<div class="filterItems">
|
||||
<div class="filterItems">
|
||||
<div class="select">
|
||||
<!-- v-model:value="searchParam.name" -->
|
||||
<a-input v-model:value="searchParam.name " style="width: 230px; height: 40px; border-radius: 8px"
|
||||
@@ -28,7 +28,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<br/>
|
||||
<div style="width: 100%; height: ;"></div>
|
||||
<div class="btns">
|
||||
<div class="btn btn3" @click="addTeacher">
|
||||
<div class="search"></div>
|
||||
@@ -119,7 +119,7 @@
|
||||
/>
|
||||
</div>
|
||||
<span style="display:inline-block ;width:80px ;text-align:center ">手机号码 :</span>
|
||||
<a-input v-if="teacherdialog1 == 0" v-model:value="formParam.userNo"
|
||||
<a-input v-if="teacherdialog1 == 0" v-model:value="formParam.mobile"
|
||||
style="width:200px; height: 40px; " placeholder="请输入11位手机号码" allowClear showSearch>
|
||||
</a-input>
|
||||
<span v-if="teacherdialog1 == 1" class=display1>{{ formParam.userNo }}</span>
|
||||
@@ -132,7 +132,7 @@
|
||||
/>
|
||||
</div>
|
||||
<span style="display:inline-block ;width:80px ;text-align:center ">邮箱:</span>
|
||||
<a-input v-if="teacherdialog1 == 0" v-model:value="formParam.departId"
|
||||
<a-input v-if="teacherdialog1 == 0" v-model:value="formParam.email"
|
||||
style="width:200px; height: 40px;" placeholder="" allowClear showSearch>
|
||||
</a-input>
|
||||
<span v-if="teacherdialog1 == 1" class=display1>{{ formParam.departId }}</span>
|
||||
@@ -148,7 +148,7 @@
|
||||
</div>
|
||||
<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.userNo"
|
||||
<a-input type="textarea" v-if="teacherdialog1 == 0" v-model:value="formParam.remark"
|
||||
style="width:200px; height: 40px; ">
|
||||
</a-input>
|
||||
<span v-if="teacherdialog1 == 1" class=display1>{{ formParam.userNo }}</span>
|
||||
@@ -245,7 +245,8 @@
|
||||
<script lang="jsx">
|
||||
import { reactive, toRefs, ref } from "vue";
|
||||
import Editor from "@/components/project/Editor";
|
||||
import {getTeacherSystemList , getTeacherList,getTeacherPayRollPriceList, getLevel,insertTeacher,deleteTeacher,updateInTeacher,getTeacherById, updateTeacherState,getTeacherCourseList} from "../../api/indexPeojiectManage";
|
||||
import {getTeacherSystemList ,getTeacherPayRollPriceList, getLevel,insertTeacher,deleteTeacher,updateInTeacher, updateTeacherState} from "../../api/indexPeojiectManage";
|
||||
import {getOutTeacherList ,getOuterTeacherById ,getOuterTeacherCourseList} from "../../api/ExternalLecturer";
|
||||
// import {getProjSt} from "../../api/indexProjStu";
|
||||
// import AddTeacher from "../../components/drawers/project/AddTeacher"
|
||||
export default {
|
||||
@@ -263,8 +264,8 @@ export default {
|
||||
LecturerSystemList:[],
|
||||
delTeacherId:null, //删除id确认
|
||||
editTeacherid:null,//修改状态id确认
|
||||
userNoid:null, //内部讲师详情工号确认
|
||||
lookTeacherId:null, //内部讲师详情id确认
|
||||
userNoid:null, //讲师详情工号确认
|
||||
lookTeacherId:null, //讲师详情id确认
|
||||
deleteTeacherdialog: false, //删除弹窗
|
||||
editTeacher:false , //修改状态弹窗
|
||||
handleOperate1:null, //修改状态弹窗内容
|
||||
@@ -375,19 +376,19 @@ export default {
|
||||
dataIndex: 'userNo',
|
||||
key: 'userNo',
|
||||
elipsis: true,
|
||||
width: 120,
|
||||
width: 200,
|
||||
},
|
||||
{
|
||||
title: '讲师姓名 ',
|
||||
dataIndex: 'name',
|
||||
key: 'name',
|
||||
elipsis: true,
|
||||
width: 120,
|
||||
width: 200,
|
||||
},
|
||||
{
|
||||
title: '手机号 ',
|
||||
dataIndex: 'departId',
|
||||
key: 'departId',
|
||||
dataIndex: 'mobile',
|
||||
key: 'mobile',
|
||||
elipsis: true,
|
||||
width: 400,
|
||||
// customRender: (value, record) => {
|
||||
@@ -400,24 +401,24 @@ export default {
|
||||
},
|
||||
{
|
||||
title: '邮箱 ',
|
||||
dataIndex: 'tsystemName',
|
||||
key: 'tsystemName',
|
||||
dataIndex: 'email',
|
||||
key: 'email',
|
||||
elipsis: true,
|
||||
width: 120,
|
||||
width: 200,
|
||||
},
|
||||
{
|
||||
title: '授课时长 ',
|
||||
dataIndex: 'teaching',
|
||||
key: 'teaching',
|
||||
elipsis: true,
|
||||
width: 120,
|
||||
width: 200,
|
||||
},
|
||||
{
|
||||
title: '账号状态 ',
|
||||
dataIndex: 'status',
|
||||
key: 'status',
|
||||
elipsis: true,
|
||||
width: 120,
|
||||
width: 200,
|
||||
customRender: (value) => {
|
||||
return (
|
||||
<div>
|
||||
@@ -463,9 +464,9 @@ export default {
|
||||
state.tableLoading=true
|
||||
state.loading = true;
|
||||
let objA = {...state.searchParam};
|
||||
getTeacherList(objA)
|
||||
getOutTeacherList(objA)
|
||||
.then((res) => {
|
||||
tableData.value = res.data.data.records
|
||||
tableData.value = res.data.data
|
||||
state.tableDataTotal = Number(res.data.data.total);
|
||||
state.tableLoading=false
|
||||
// console.log("获取讲师tableDatateacherName", tableData);
|
||||
@@ -608,24 +609,14 @@ export default {
|
||||
// state.formParam=({
|
||||
// //讲师姓名
|
||||
state.formParam.name = null;
|
||||
// // 讲师工号
|
||||
state.formParam.userNo = null;
|
||||
// //将讲师组织
|
||||
state.formParam.organizationDTO = null;
|
||||
// //初始授课时长
|
||||
state.formParam.teachingDuration = null,
|
||||
//讲师等级
|
||||
state.formParam.grade = null;
|
||||
//讲师体;
|
||||
state.formParam.lecturerSystem = null;
|
||||
// //认证状;
|
||||
state.formParam.authenticationStatus = 0;
|
||||
// 手机号
|
||||
state.formParam.mobile = null;
|
||||
// 邮箱
|
||||
state.formParam.email = null;
|
||||
//讲师介绍
|
||||
state.formParam.teacherIntrofuce =null;
|
||||
//工作经历
|
||||
state.formParam.workHistory =null;
|
||||
//擅长课程
|
||||
state.formParam.proficientInCourse =null;
|
||||
//备注
|
||||
state.formParam.remark =null;
|
||||
console.log(state.formParam);
|
||||
}
|
||||
//表格内查看数据操作
|
||||
@@ -641,7 +632,7 @@ export default {
|
||||
//内部讲师详情
|
||||
const TeacherSystem=()=>{
|
||||
let ids={userNo : state.userNoid }
|
||||
getTeacherById(ids).then((res) => {
|
||||
getOuterTeacherById(ids).then((res) => {
|
||||
console.log("内部讲师详情", res.data);
|
||||
state.formParam= res.data.data
|
||||
})
|
||||
@@ -699,7 +690,7 @@ export default {
|
||||
customRender: (value) => {
|
||||
return (
|
||||
<div>
|
||||
{value.record.type == 1 || value.record.type == 2||record.type == 3
|
||||
{value.record.type == 1 || value.record.type == 2||value.record.type == 3
|
||||
? {
|
||||
"1": "项目开课",
|
||||
"2": "路径开课",
|
||||
@@ -763,8 +754,8 @@ export default {
|
||||
pageNo: "1",
|
||||
pageSize: "10"}
|
||||
// api接口
|
||||
getTeacherCourseList(ids).then((res) => {
|
||||
teacherrecordstableData.value = res.data.data.records
|
||||
getOuterTeacherCourseList(ids).then((res) => {
|
||||
teacherrecordstableData.value = res.data.data
|
||||
state.teacherrecordstableDataTotal = Number(res.data.data.total);
|
||||
state.teacherrecordsLoading=false
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user