mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-16 06:16:46 +08:00
接口联调
This commit is contained in:
@@ -33,13 +33,13 @@
|
||||
</a-tree-select> -->
|
||||
</a-form-item>
|
||||
<a-form-item class="select">
|
||||
<a-select style="width: 276px" placeholder="请选择讲师体系" v-model:value="searchParam.tsystemName"
|
||||
<a-select style="width: 276px" placeholder="请选择讲师体系" v-model:value="searchParam.kid" allowClear
|
||||
:options="LecturerSystemList" @change="changetlevel">
|
||||
</a-select>
|
||||
</a-form-item>
|
||||
<a-form-item class="select">
|
||||
<a-select style="width: 276px" v-model:value="searchParam.tlevelId" placeholder="请选择讲师级别"
|
||||
:options="getLevelList">
|
||||
<a-select style="width: 276px" v-model:value="searchParam.tlevelId" placeholder="请选择讲师级别" allowClear
|
||||
:options="getLevelList" :disabled="getLevelList.length!==0 ? false:true" >
|
||||
</a-select>
|
||||
</a-form-item>
|
||||
<div style="display: flex; margin-bottom: 20px">
|
||||
@@ -63,19 +63,19 @@
|
||||
<div style="width:100%"></div>
|
||||
<a-form-item v-if="moreid == 2" class="select">
|
||||
<a-select style="width: 276px ;margin-bottom:20px" v-model:value="searchParam.waitStatus" placeholder="在职状态"
|
||||
:options="OnTheJobStatusList">
|
||||
:options="OnTheJobStatusList" allowClear>
|
||||
</a-select>
|
||||
</a-form-item>
|
||||
<a-form-item v-if="moreid == 2" class="select">
|
||||
<a-select style="width: 276px ;margin-bottom:20px" v-model:value="searchParam.certStatus" placeholder="认证状态"
|
||||
<a-select style="width: 276px ;margin-bottom:20px" v-model:value="searchParam.certStatus" placeholder="认证状态" allowClear
|
||||
:options="AuthenticationStatusList">
|
||||
</a-select>
|
||||
</a-form-item>
|
||||
<a-form-item v-if="moreid == 2" class="select">
|
||||
<a-select style="width: 276px ;margin-bottom:20px" v-model:value="searchParam.payrollPlaceId" placeholder="发薪地"
|
||||
<!-- <a-form-item v-if="moreid == 2" class="select">
|
||||
<a-select style="width: 276px ;margin-bottom:20px" v-model:value="searchParam.payrollPlaceId" placeholder="发薪地" allowClear
|
||||
:options="PlaceOfPayList">
|
||||
</a-select>
|
||||
</a-form-item>
|
||||
</a-form-item> -->
|
||||
<!-- <div class="select">
|
||||
<a-select style="width: 276px" v-model:value="searchParam.status" placeholder="账号状态"
|
||||
:options="AccountStatusList">
|
||||
@@ -195,15 +195,17 @@
|
||||
<!-- 讲师级别 体系-->
|
||||
<a-row :gutter="16">
|
||||
<a-col :span="12">
|
||||
<a-form-item label="讲师体系" name="systemId">
|
||||
<a-select class="draitem" v-model:value="formParam.systemId" placeholder="请选择讲师体系"
|
||||
<a-form-item label="讲师体系" name="tsystemId">
|
||||
<a-select class="draitem" v-model:value="formParam.tsystemId" placeholder="请选择讲师体系" allowClear
|
||||
@change="changetlevel"
|
||||
:options="LecturerSystemList">
|
||||
</a-select>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<a-form-item label="讲师级别" name="levelId">
|
||||
<a-select class="draitem" v-model:value="formParam.levelId" placeholder="请选择讲师级别"
|
||||
<a-form-item label="讲师级别" name="tlevelId">
|
||||
<a-select class="draitem" v-model:value="formParam.tlevelId" placeholder="请选择讲师级别" allowClear
|
||||
:disabled="getLevelList.length!==0 ? false:true"
|
||||
:options="getLevelList">
|
||||
</a-select>
|
||||
</a-form-item>
|
||||
@@ -221,7 +223,7 @@
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<a-form-item label="认证状态" name="certStatus">
|
||||
<a-radio-group v-model:value="formParam.certStatus"
|
||||
<a-radio-group v-model:value="formParam.certStatus"
|
||||
class="draitem">
|
||||
|
||||
<a-radio :value="0">未认证</a-radio>
|
||||
@@ -410,7 +412,7 @@ export default {
|
||||
searchParam: {
|
||||
name:null,
|
||||
userNo: null,
|
||||
tsystemName: null,
|
||||
kid: null,
|
||||
tlevelId: null,
|
||||
waitStatus: null,
|
||||
certStatus: null,
|
||||
@@ -520,7 +522,7 @@ export default {
|
||||
])
|
||||
const changetlevel = (val) => {
|
||||
console.log( "讲师体系id" +val);
|
||||
getLevel( {systemId:val}).then((res) => {
|
||||
getLevel( {kid:val}).then((res) => {
|
||||
if (res.data.code === 200) {
|
||||
let arr = res.data.data;
|
||||
let array = [];
|
||||
@@ -569,59 +571,59 @@ console.log( "讲师体系id" +val);
|
||||
{ value: 1, label: "启用" },
|
||||
{ value: 2, label: "停用" },
|
||||
])
|
||||
const teacheExpertiseList = ref([
|
||||
])
|
||||
// const teacheExpertiseList = ref([
|
||||
// ])
|
||||
|
||||
//获取讲师父 专长
|
||||
const TeacherExpertiseList = ref([
|
||||
]);
|
||||
const getTeacherExpertisea = () => {
|
||||
// console.log('点击了LecturerSystemLista')
|
||||
getTeacherExpertise().then((res) => {
|
||||
if (res.data.code === 200) {
|
||||
let arr = res.data.data;
|
||||
let array = [];
|
||||
arr.map((value) => {
|
||||
let obj = {
|
||||
value: value.id,
|
||||
label: value.name,
|
||||
};
|
||||
array.push(obj);
|
||||
});
|
||||
TeacherExpertiseList.value = array;
|
||||
}
|
||||
})
|
||||
}
|
||||
getTeacherExpertisea()
|
||||
const changeSelect = (val) => {
|
||||
state.byPid = val
|
||||
getTeacherExpertiseByPida(val)
|
||||
state.formParam.expertise = getTeacherExpertiseByPidList[0]
|
||||
}
|
||||
// //获取讲师父 专长
|
||||
// const TeacherExpertiseList = ref([
|
||||
// ]);
|
||||
// const getTeacherExpertisea = () => {
|
||||
// // console.log('点击了LecturerSystemLista')
|
||||
// getTeacherExpertise().then((res) => {
|
||||
// if (res.data.code === 200) {
|
||||
// let arr = res.data.data;
|
||||
// let array = [];
|
||||
// arr.map((value) => {
|
||||
// let obj = {
|
||||
// value: value.id,
|
||||
// label: value.name,
|
||||
// };
|
||||
// array.push(obj);
|
||||
// });
|
||||
// TeacherExpertiseList.value = array;
|
||||
// }
|
||||
// })
|
||||
// }
|
||||
// getTeacherExpertisea()
|
||||
// const changeSelect = (val) => {
|
||||
// state.byPid = val
|
||||
// getTeacherExpertiseByPida(val)
|
||||
// state.formParam.expertise = getTeacherExpertiseByPidList[0]
|
||||
// }
|
||||
//获取讲师子 专长
|
||||
const getTeacherExpertiseByPidList = ref([
|
||||
]);
|
||||
const getTeacherExpertiseByPida = () => {
|
||||
// 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 = [];
|
||||
arr.map((value) => {
|
||||
let obj = {
|
||||
value: value.id,
|
||||
label: value.name,
|
||||
};
|
||||
array.push(obj);
|
||||
});
|
||||
getTeacherExpertiseByPidList.value = array;
|
||||
}
|
||||
})
|
||||
}
|
||||
watch(
|
||||
)
|
||||
// const getTeacherExpertiseByPidList = ref([
|
||||
// ]);
|
||||
// const getTeacherExpertiseByPida = () => {
|
||||
// // 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 = [];
|
||||
// arr.map((value) => {
|
||||
// let obj = {
|
||||
// value: value.id,
|
||||
// label: value.name,
|
||||
// };
|
||||
// array.push(obj);
|
||||
// });
|
||||
// getTeacherExpertiseByPidList.value = array;
|
||||
// }
|
||||
// })
|
||||
// }
|
||||
// watch(
|
||||
// )
|
||||
//新增页面内部姓名
|
||||
const infoteacherList = ref([
|
||||
// { value: 0, systemName: "讲师体系" },
|
||||
@@ -785,7 +787,7 @@ console.log( "讲师体系id" +val);
|
||||
state.searchParam = {
|
||||
name:null,
|
||||
userNo: null,
|
||||
tsystemName: null,
|
||||
kid: null,
|
||||
tlevelId: null,
|
||||
waitStatus: null,
|
||||
certStatus: null,
|
||||
@@ -866,7 +868,7 @@ console.log( "讲师体系id" +val);
|
||||
// departId:'8465784657',
|
||||
// defaultTeachingTime:50,
|
||||
// leveId:1,
|
||||
// tsystemName:249,
|
||||
// kid:249,
|
||||
// certStatus:1,
|
||||
// description:'测试13.00',
|
||||
// workExperience:'测试13.00',
|
||||
@@ -943,12 +945,12 @@ console.log( "讲师体系id" +val);
|
||||
name: null,
|
||||
// userNo:null,
|
||||
departId: null,
|
||||
levelId: null,
|
||||
tlevelId: null,
|
||||
defaultTeachingTime: null,
|
||||
// levelName:null,
|
||||
// leveName:null,
|
||||
systemId: null,
|
||||
// tsystemName:null,
|
||||
tsystemId: null,
|
||||
// kid:null,
|
||||
certStatus:0,
|
||||
description:null,
|
||||
workExperience:null,
|
||||
@@ -958,8 +960,8 @@ console.log( "讲师体系id" +val);
|
||||
const rules = {
|
||||
name: [{ required: true, message: '讲师不能为空' }],
|
||||
departId: [{ required: true, message: '组织不能为空' }],
|
||||
levelId: [{ required: true, message: '讲师级别不能为空' }],
|
||||
systemId: [{ required: true, message: '讲师体系不能为空' }],
|
||||
tlevelId: [{ required: true, message: '讲师级别不能为空' }],
|
||||
tsystemId: [{ required: true, message: '讲师体系不能为空' }],
|
||||
defaultTeachingTime: [{ required: true, message: '授课时长不能为空' }],
|
||||
certStatus: [{ required: true, message: '认证状态不能为空' }],
|
||||
|
||||
@@ -981,15 +983,25 @@ console.log( "讲师体系id" +val);
|
||||
console.log("内部讲师详情", err);
|
||||
});
|
||||
}
|
||||
|
||||
function managerChange(e, l, d, t, orgName) {
|
||||
console.log(e, l);
|
||||
state.searchParam.userNo = d;
|
||||
state.searchParam.name = t;
|
||||
// state.searchParam.trainorgName=orgName
|
||||
}
|
||||
//导出功能
|
||||
const handleExport = () => {
|
||||
window.open(
|
||||
`${process.env.VUE_APP_BASE_API}/teacher/export?pageNo=${state.currentPage1
|
||||
}&pageSize=${state.pageSize1}&userNo=${state.searchParam.userNo ? state.searchParam.userNo : ""
|
||||
}&tsystemName=${state.searchParam.tsystemName ? state.searchParam.tsystemName : ""}&tlevelId=${state.searchParam.tlevelId ? state.searchParam.tlevelId : ""
|
||||
}&waitStatus=${state.searchParam.waitStatus ? state.searchParam.waitStatus : ""}&certStatus=${state.searchParam.certStatus ? state.searchParam.certStatus : ""
|
||||
}&salaryName=${state.searchParam.salaryName ? state.searchParam.salaryName : ""}&payrollPlaceId=${state.searchParam.payrollPlaceId ? state.searchParam.payrollPlaceId : ""}&status=${state.searchParam.status ? state.searchParam.status : ""}`
|
||||
}&pageSize=${state.pageSize1}
|
||||
&userNo=${state.searchParam.userNo ? state.searchParam.userNo : ""}
|
||||
&name=${state.searchParam.name ? state.searchParam.name : ""}
|
||||
&kid=${state.searchParam.kid ? state.searchParam.kid : ""}
|
||||
&tlevelId=${state.searchParam.tlevelId ? state.searchParam.tlevelId : ""
|
||||
}&waitStatus=${state.searchParam.waitStatus ? state.searchParam.waitStatus : ""}
|
||||
&certStatus=${state.searchParam.certStatus ? state.searchParam.certStatus : ""
|
||||
}&salaryName=${state.searchParam.salaryName ? state.searchParam.salaryName : ""}
|
||||
&status=${state.searchParam.status ? state.searchParam.status : ""}`
|
||||
);
|
||||
// this.download('lesson_records/export', {
|
||||
// ...state.searchParam
|
||||
@@ -998,10 +1010,11 @@ console.log( "讲师体系id" +val);
|
||||
return {
|
||||
...toRefs(state),
|
||||
rules,
|
||||
managerChange,
|
||||
headers,
|
||||
beforeUpload,
|
||||
handlemoreid,
|
||||
changeSelect,
|
||||
// changeSelect,
|
||||
handleExport,
|
||||
LecturerSystemList,
|
||||
getLevelList,
|
||||
@@ -1026,15 +1039,15 @@ console.log( "讲师体系id" +val);
|
||||
createTeacherDialog,
|
||||
handleOperate,
|
||||
closehandleOperate,
|
||||
teacheExpertiseList,
|
||||
// teacheExpertiseList,
|
||||
getTableDate, //list接口数据调用
|
||||
// getStu
|
||||
LecturerSystemLista,
|
||||
TeacherSystem,
|
||||
TeacherExpertiseList,
|
||||
getTeacherExpertisea,
|
||||
getTeacherExpertiseByPidList,
|
||||
getTeacherExpertiseByPida,
|
||||
// TeacherExpertiseList,
|
||||
// getTeacherExpertisea,
|
||||
// getTeacherExpertiseByPidList,
|
||||
// getTeacherExpertiseByPida,
|
||||
infoteacherList,
|
||||
getinfoteacher,
|
||||
addContentData,
|
||||
|
||||
Reference in New Issue
Block a user