mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-07 01:46:42 +08:00
发薪地接口
This commit is contained in:
@@ -26,6 +26,13 @@ import ajax from '@/api/boe/boeApiAjax.js'
|
||||
const editTeacher = function(data) {
|
||||
return ajax.postJson('/b1/system/teacher/add-and-edit-teacher',data);
|
||||
}
|
||||
// api
|
||||
/**
|
||||
* 发薪地接口
|
||||
*/
|
||||
const getPayrollPlace = function(id) {
|
||||
return ajax.get('/b1/system/teacher/payroll-place');
|
||||
}
|
||||
/**
|
||||
* 教师体系和级别接口
|
||||
* @param {
|
||||
@@ -141,5 +148,6 @@ export default {
|
||||
getCourseInfo,
|
||||
teacherUpgradePrecess,
|
||||
deleteModelTeacher,
|
||||
editModelTeacher
|
||||
editModelTeacher,
|
||||
getPayrollPlace
|
||||
}
|
||||
|
||||
@@ -9,14 +9,14 @@
|
||||
</div>
|
||||
<!-- 要在换一个变量与新建区别开 -->
|
||||
<div style="padding: 0px 5px;">
|
||||
<el-select v-model="query.tLevelId" clearable value-key="id" :disabled="query.tSystemId == ''" placeholder="请选择教师级别">
|
||||
<el-select v-model="query.tLevelId" clearable value-key="id" placeholder="请选择教师级别">
|
||||
<el-option v-for="item in queryLevelData" :key="item.id" :label="item.name" :value="item.id"></el-option>
|
||||
</el-select>
|
||||
</div>
|
||||
<div style="padding: 0px 5px;"><el-input placeholder="请输入姓名" v-model="query.queryName" clearable></el-input></div>
|
||||
<div style="padding: 0px 5px;">
|
||||
<el-select v-model="query.salaryId" clearable value-key="id" placeholder="请选择发薪地">
|
||||
<el-option v-for="item in levelData" :key="item.id" :label="item.name" :value="item.id"></el-option>
|
||||
<el-option v-for="item in placeList" :key="item.value" :label="item.label" :value="item.value"></el-option>
|
||||
</el-select>
|
||||
</div>
|
||||
</div>
|
||||
@@ -251,6 +251,7 @@
|
||||
queryLevelData:[],
|
||||
teacherSystemids:[],
|
||||
coverImage:'',
|
||||
placeList:[],
|
||||
}
|
||||
},
|
||||
watch:{
|
||||
@@ -262,12 +263,25 @@
|
||||
},
|
||||
mounted() {
|
||||
this.getTeachersystem();
|
||||
|
||||
this.getPayrollPlace();
|
||||
},
|
||||
computed: {
|
||||
...mapGetters(['userInfo'])
|
||||
},
|
||||
methods:{
|
||||
getPayrollPlace(){
|
||||
teacherBoeApi.getPayrollPlace().then(res=>{
|
||||
// console.log(res,'res');
|
||||
if(res.status == '200') {
|
||||
for(let i in res.result){
|
||||
this.placeList.push({
|
||||
value:i,
|
||||
label:res.result[i]
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
handleCloseOne() {
|
||||
// this.teacherDetailsId = '';
|
||||
this.showTeacherDetails = false;
|
||||
@@ -298,6 +312,7 @@
|
||||
})
|
||||
},
|
||||
queryChangeSystem(val) {
|
||||
this.query.tLevelId = '';
|
||||
let array=[];
|
||||
this.systemLevelTree.forEach(sl=>{
|
||||
if(sl.teacher_system_id==val){
|
||||
@@ -312,6 +327,9 @@
|
||||
this.queryLevelData=array;
|
||||
},
|
||||
changeSystem(val){
|
||||
this.tLevelData = {};
|
||||
this.form.tlevelId = '';
|
||||
this.form.tlevelName='';
|
||||
let array=[];
|
||||
this.systemLevelTree.forEach(sl=>{
|
||||
if(sl.teacher_system_id==val.id){
|
||||
|
||||
@@ -110,6 +110,7 @@ module.exports = {
|
||||
// 使用代理
|
||||
// 172.16.6.175
|
||||
// 114.115.162.187 测试环境
|
||||
// 192.168.0.107 晋宇
|
||||
proxy: {
|
||||
'/systemapi': {
|
||||
// 目标代理服务器地址
|
||||
|
||||
Reference in New Issue
Block a user