mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-16 22:36:45 +08:00
授课记录接口联调
This commit is contained in:
@@ -197,7 +197,7 @@
|
||||
<a-radio :value="0">未认证</a-radio>
|
||||
<a-radio :value="1">已认证</a-radio>
|
||||
</a-radio-group>
|
||||
<span v-if="teacherdialog1 == 1" class=display1>{{ formParam.certStatus }}</span>
|
||||
<span v-if="teacherdialog1 == 1" class=display1>{{ formParam.certStatus==0 ? '未认证':formParam.certStatus==1?'已认证' :'' }}</span>
|
||||
</div>
|
||||
<div class="select">
|
||||
<div style="display:inline-block ;width:5px ;text-align:center ">
|
||||
@@ -254,10 +254,10 @@
|
||||
<div class="select">
|
||||
<span style="display:inline-block ;width:80px ;text-align:center ">教师专长 :</span>
|
||||
<a-select v-if="teacherdialog1 == 0" style="width: 230px" placeholder="" v-model:value="formParam.TeacherExpertise"
|
||||
:options="TeacherExpertiseList.map(pro => ({value:pro }))">
|
||||
:options="TeacherExpertiseList" @change=changeSelect >
|
||||
</a-select>
|
||||
<a-select v-if="teacherdialog1 == 0" style="width: 230px" placeholder="" v-model:value="formParam.getTeacherExpertiseByPid"
|
||||
:options="getTeacherExpertiseByPidList.map(pid=>({value:pid})) ">
|
||||
:options="getTeacherExpertiseByPidList">
|
||||
</a-select>
|
||||
<span v-if="teacherdialog1 == 1" class=display1>{{ formParam.expertise }}</span>
|
||||
</div>
|
||||
@@ -397,6 +397,7 @@ export default {
|
||||
},
|
||||
setup() {
|
||||
const state = reactive({
|
||||
byPid:null,
|
||||
currentPage1: 1,
|
||||
pageSize1: 10,
|
||||
promotionrecordsLoading:false , //晋级记录遮罩层
|
||||
@@ -535,57 +536,53 @@ export default {
|
||||
|
||||
//获取讲师父 专长
|
||||
const TeacherExpertiseList = ref([
|
||||
{ value: 0, systemName: "讲师体系" },
|
||||
{ value: 1, systemName: "讲师体系1" },
|
||||
]);
|
||||
const getTeacherExpertisea =() => {
|
||||
// // console.log('点击了LecturerSystemLista')
|
||||
// getTeacherExpertise().then((res)=>{
|
||||
// if (res.data.code === 200) {
|
||||
// let arr = res.data.data;
|
||||
// let array = TeacherExpertiseList.value;
|
||||
// arr.map((value) => {
|
||||
// let obj = {
|
||||
// value: value.id,
|
||||
// label: value.name,
|
||||
// };
|
||||
// array.push(obj);
|
||||
// });
|
||||
// TeacherExpertiseList.value = array;
|
||||
// }
|
||||
// })
|
||||
// getTeacherExpertiseByPida()
|
||||
// console.log('点击了LecturerSystemLista')
|
||||
getTeacherExpertise().then((res)=>{
|
||||
if (res.data.code === 200) {
|
||||
let arr = res.data.data;
|
||||
let array = TeacherExpertiseList.value;
|
||||
arr.map((value) => {
|
||||
let obj = {
|
||||
value: value.id,
|
||||
label: value.name,
|
||||
};
|
||||
array.push(obj);
|
||||
});
|
||||
TeacherExpertiseList.value = array;
|
||||
}
|
||||
})
|
||||
// getTeacherExpertiseByPida()
|
||||
}
|
||||
const changeSelect=(val)=>{
|
||||
state.byPid= val
|
||||
getTeacherExpertiseByPida(val)
|
||||
state.formParam.expertise = getTeacherExpertiseByPidList[0]
|
||||
}
|
||||
//获取讲师子 专长
|
||||
const getTeacherExpertiseByPidList = ref([
|
||||
[ { value: 0, systemName: "讲师体系1" },
|
||||
{ value: 1, systemName: "讲师体系" },],
|
||||
[ [ { value: 0, systemName: "讲师1" },
|
||||
{ value: 1, systemName: "讲师" },],]
|
||||
]);
|
||||
const getTeacherExpertiseByPida =() => {
|
||||
// let pid = {id :29}
|
||||
// // console.log('点击了LecturerSystemLista')
|
||||
// getTeacherExpertiseByPid(pid).then((res)=>{
|
||||
// if (res.data.code === 200) {
|
||||
// let arr = res.data.data;
|
||||
// let array = getTeacherExpertiseByPidList.value;
|
||||
// arr.map((value) => {
|
||||
// let obj = {
|
||||
// value: value.id,
|
||||
// label: value.name,
|
||||
// };
|
||||
// array.push(obj);
|
||||
// });
|
||||
// getTeacherExpertiseByPidList.value = array;
|
||||
// }
|
||||
// })
|
||||
// let pid = {id :val}
|
||||
// console.log('点击了LecturerSystemLista')
|
||||
let id = val
|
||||
getTeacherExpertiseByPid (state.byPid).then((res)=>{
|
||||
if (res.data.code === 200) {
|
||||
let arr = res.data.data;
|
||||
let array = getTeacherExpertiseByPidList.value;
|
||||
arr.map((value) => {
|
||||
let obj = {
|
||||
value: value.id,
|
||||
label: value.name,
|
||||
};
|
||||
array.push(obj);
|
||||
});
|
||||
getTeacherExpertiseByPidList.value = array;
|
||||
}
|
||||
})
|
||||
}
|
||||
watch(
|
||||
()=>state.formParam.TeacherExpertise,
|
||||
val => {
|
||||
state.formParam.getTeacherExpertiseByPid = state.getTeacherExpertiseByPidList[val][0];
|
||||
},
|
||||
)
|
||||
//新增页面内部姓名
|
||||
const infoteacherList = ref([
|
||||
@@ -757,7 +754,14 @@ export default {
|
||||
// getLevelLista()
|
||||
// LecturerSystemLista()
|
||||
// PlaceOfPayLista()
|
||||
getTableDate();
|
||||
// getTableDate();
|
||||
// let obj ={
|
||||
// id:0
|
||||
// name :'修改测试'
|
||||
// }
|
||||
// updatelnTeacher().then((res)=>{
|
||||
// message.success('修改成功')
|
||||
// })
|
||||
};
|
||||
//重置
|
||||
const searchReset = () => {
|
||||
@@ -1188,6 +1192,7 @@ export default {
|
||||
}
|
||||
return {
|
||||
...toRefs(state),
|
||||
changeSelect,
|
||||
handleExport,
|
||||
LecturerSystemList,
|
||||
getLevelList,
|
||||
|
||||
Reference in New Issue
Block a user