Commit 050c9865 authored by 吴春's avatar 吴春

1

parent 27bb5c1d
......@@ -435,6 +435,14 @@ export function GetStudentAssistList(data) {
});
}
// 获取协助老师信息 2024-09-04 add by:W
export function GetVisitorReserveTeacherList(data) {
return request({
url: '/VisitorReserve/GetVisitorReserveTeacherList',
method: 'post',
data
});
}
// 保存协助数据
export function SetStudentAssist(data) {
return request({
......
......@@ -173,7 +173,8 @@
GetSelectClassOrderList //获取前置下拉
} from "../../../../api/sale/sale";
import {
GetStudentAssistList
GetStudentAssistList,
GetVisitorReserveTeacherList
} from "../../../../api/sale/sale"; //获取协助人员
import {
queryEmployee
......@@ -307,7 +308,7 @@
SId: -1
});
this.initData();
this.getAssistList();
this.getVisitorReserveTeacherList();
this.OrderMsg.EnterId = this.stuData.EnterId;
this.EnterName = this.stuData.EnterName;
......@@ -466,6 +467,63 @@
}
})
},
//获取协助人员
getVisitorReserveTeacherList() {
this.AssistList=[];
this.AllAssistList=[];
const ids = this.stuData.StuList.map(e => e.StuId).toString();
GetVisitorReserveTeacherList({
StuId: ids
}).then(res => {
if (res.Code == 1) {
console.log(" res.Data", res.Data);
res.Data.map(e => {
console.log("e",e);
this.AssistList .push({
Id: e.TeacherId,
EmployeeName: e.TeacherName
});
this.AllAssistList.push({
Id: e.TeacherId,
EmployeeName: e.TeacherName
});
this.HelpEnterDisable = true;
});
this.getQueryEmployee();
}
else{
this.getQueryEmployee();
}
});
},
getQueryEmployee(){
if (this.AssistList.length == 0) {
var qMsg = {
IsLeave: 1,
UserRole: 0,
AccountType:2,
};
queryEmployee(qMsg).then(res => {
if (res.Code == 1) {
console.log("this.AssistList2221",this.AssistList);
res.Data.map(e => {
console.log("e1",e);
this.AssistList.push({
Id: e.Id,
EmployeeName: e.EmployeeName
});
this.AllAssistList.push({
Id: e.Id,
EmployeeName: e.EmployeeName
});
});
}
});
}
},
//获取协助人员
getAssistList() {
const ids = this.stuData.StuList.map(e => e.StuId).toString();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment