mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-15 13:56:45 +08:00
内部讲师管理接口联调
This commit is contained in:
@@ -28,6 +28,8 @@ export const deleteTeacher = (obj) => http.post('/admin/teacher/deleteInTeacher'
|
||||
export const updateTeacherState = (obj) => http.post('/admin/teacher/update-status' ,obj)
|
||||
//获取内部讲师授课记录
|
||||
export const getTeacherCourseList = (obj) => http.post('/admin/teacher/getTeacherCourseList' ,obj)
|
||||
//获取内部讲师晋升接口
|
||||
export const getTeacherLogList = (obj) => http.post('/admin/teacher/getTeacherLogList' ,obj)
|
||||
//导出内部讲师列表
|
||||
// http://pretest.zcwytd.com/manageApi/lesson_records/export
|
||||
export const exportteacher = (obj) => http.post('/admin/lesson_records/export' ,obj)
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
</a-select>
|
||||
</div>
|
||||
<div class="select">
|
||||
<a-select style="width: 230px" v-model:value="searchParam.tlevelName" placeholder="级别" :options="getLevelList">
|
||||
<a-select style="width: 230px" v-model:value="searchParam.tlevelId" placeholder="级别" :options="getLevelList">
|
||||
</a-select>
|
||||
</div>
|
||||
<div class="select">
|
||||
@@ -36,8 +36,12 @@
|
||||
</a-select>
|
||||
</div>
|
||||
<div class="select">
|
||||
<a-select style="width: 230px" v-model:value="searchParam.salaryName" placeholder="发薪地">
|
||||
<el-option v-for="item in PlaceOfPayList" :key="item.value" :label="item.value" :value="item.label" />
|
||||
<a-select style="width: 230px" v-model:value="searchParam.payrollPlaceId" placeholder="发薪地">
|
||||
<a-select-option
|
||||
v-for="item in PlaceOfPayList"
|
||||
:key="item.value "
|
||||
:value="item.value "
|
||||
>{{item.label}}</a-select-option>
|
||||
</a-select>
|
||||
</div>
|
||||
<div class="select">
|
||||
@@ -382,6 +386,7 @@ export default {
|
||||
LecturerSystemList:[],
|
||||
delTeacherId:null, //删除id确认
|
||||
editTeacherid:null,//修改状态id确认
|
||||
newStatus:null , //修改状态码确认
|
||||
userNoid:null, //内部讲师详情工号确认
|
||||
lookTeacherId:null, //内部讲师详情id确认
|
||||
deleteTeacherdialog: false, //删除弹窗
|
||||
@@ -396,11 +401,12 @@ export default {
|
||||
teacherrecordstableDataTotal:-1,//授课记录列表总条数
|
||||
formParam: {
|
||||
certStatus : 1 ,//认证状态
|
||||
defaultTeachingTime:'0分钟'
|
||||
},
|
||||
searchParam: {
|
||||
userNo:null,//工号姓名
|
||||
tsystemName:null,//讲师体系
|
||||
payrollPlaceName:null,//发薪地
|
||||
payrollPlaceId:null,//发薪地
|
||||
pageNo: "1",
|
||||
pageSize: "10"
|
||||
},
|
||||
@@ -486,8 +492,8 @@ export default {
|
||||
}
|
||||
PlaceOfPayLista()
|
||||
const AccountStatusList = ref([
|
||||
{ value: 0, label: "启用" },
|
||||
{ value: 1, label: "停用" },
|
||||
{ value: 1, label: "启用" },
|
||||
{ value: 2, label: "停用" },
|
||||
])
|
||||
const teacheExpertiseList= ref([
|
||||
{ value: 0, label: "领导力" , children: [{value: 0, label: "管理团队" ,value: 1, label: "管理业务" ,value: 2, label: "管理自我" }]},
|
||||
@@ -726,10 +732,11 @@ export default {
|
||||
state.searchParam = {
|
||||
userNo:null,
|
||||
tsystemName:null,
|
||||
tlevelName:null,
|
||||
tlevelId:null,
|
||||
waitStatus:null,
|
||||
certStatus:null,
|
||||
salaryName:null,
|
||||
payrollPlaceId:null,
|
||||
status:null,
|
||||
pageNo: 1,
|
||||
pageSize: 10 ,
|
||||
@@ -831,9 +838,11 @@ export default {
|
||||
const handleOperate = (record) => {
|
||||
if( record.status == 1){
|
||||
state.handleOperate1 = record.status
|
||||
state.newStatus= 2
|
||||
}
|
||||
if( record.status == 2){
|
||||
state.handleOperate1 =record.status
|
||||
state.newStatus= 1
|
||||
}
|
||||
state.editTeacherid =record.id
|
||||
state.editTeacher = true
|
||||
@@ -857,7 +866,8 @@ export default {
|
||||
const closehandleOperate= ()=>{
|
||||
//调用接口
|
||||
let ids ={
|
||||
id : state.editTeacherid
|
||||
id : state.editTeacherid,
|
||||
newStatus: state.newStatus
|
||||
}
|
||||
console.log(ids)
|
||||
updateTeacherState(ids).then((res) => {
|
||||
|
||||
Reference in New Issue
Block a user