Commit dd6d1e30 authored by zhengke's avatar zhengke

修改

parent 06cb72f0
......@@ -575,6 +575,17 @@ export function GetStudentMarketYearRate(data) {
});
}
//保存批量转交
export function BatchForwardStudent(data) {
return request({
url: '/User/BatchForwardStudent',
method: 'post',
data
});
}
......
......@@ -65,6 +65,8 @@
<div class="col-2 q-table__title">学员信息</div>
<q-space />
<div class="page-option" v-if="!pushMode">
<q-btn color="accent" outline class="q-mr-md" size="sm" icon="swap_horiz" label="批量转交"
@click="pushMode = true" />
<q-btn color="accent" outline class="q-mr-md" size="sm" icon="swap_horiz" label="推送课程顾问"
v-if="userInfo.IsCourseConsultant == 0" @click="pushMode = true" />
<q-btn color="accent" class="q-mr-md" size="sm" icon="swap_horiz" label="转订单"
......@@ -76,6 +78,16 @@
label="下载" @click="downloadStudent" />
</div>
<div class="page-option" v-if="pushMode">
<q-btn color="accent" unelevated class="q-mr-md" size="sm" icon="swap_horiz" label="转交" @click="isShowTrans = true">
<q-popup-proxy :offset="[10, 10]">
<q-banner v-if="isShowTrans">
<q-select style="margin-top:20px;" filled v-model="transMsg.CreateBy" @filter="filterEmployee" use-input
:options="myEmployeeList" option-label="EmployeeName" option-value="Id" emit-value map-options />
<q-btn label="保存" style="float:right;margin-top:15px" color="accent q-mb-lg" size="sm"
@click="saveTransForm" />
</q-banner>
</q-popup-proxy>
</q-btn>
<q-btn color="accent" unelevated class="q-mr-md" size="sm" icon="swap_horiz" label="立即推送" :loading="pushing"
@click="assistBatchHandler" />
<q-btn color="accent" outline size="sm" label="退出" :disable="pushing" @click="
......@@ -245,11 +257,16 @@
mapGetters
} from "vuex";
import {
SetStudentAssistBatch
SetStudentAssistBatch,
BatchForwardStudent
} from "../../../api/sale/sale";
import {
EduDownLoad
} from "../../../api/common/common";
import {
queryEmployee
} from "../../../api/users/user";
export default {
props: {
//数据列表
......@@ -464,6 +481,14 @@
checkType: 1, //打开右侧弹窗类型
isShowAbroad: false, //是否显示转留学就业订单弹窗
userInfo: {}, //当前登录人员
isShowTrans: false,
transMsg:{
StuIds:'',
CreateBy:1
},
//员工列表
employeeList: [],
myEmployeeList: [],
};
},
watch: {
......@@ -479,7 +504,9 @@
this.userInfo = this.getLocalStorage();
this.formatAssistList();
},
mounted() {},
mounted() {
this.getEmployeeList();
},
computed: {
...mapGetters(["logo", "name"])
},
......@@ -745,6 +772,53 @@
position: "top",
message: msg
});
},
//获取员工列表
getEmployeeList() {
queryEmployee({
IsLeave: 1
}).then(res => {
this.employeeList = res.Data;
this.myEmployeeList = res.Data;
});
},
//筛选员工
filterEmployee(val, update, abort) {
update(() => {
this.myEmployeeList = this.employeeList.filter(
v => v.EmployeeName.indexOf(val) > -1
);
});
},
//保存批量转交
saveTransForm(){
console.log(this.transMsg,'transMsg');
if(this.selection.length==0){
this.$q.notify({
type: "negative",
position: "top",
message: '请选择推送学员'
});
}else{
let newArr = []
this.selection.forEach(x=>{
newArr.push(x.StuId);
})
this.transMsg.StuIds = newArr.toString();
BatchForwardStudent(this.transMsg).then(res => {
if(res.Code==1){
this.refreshStuList();
this.selection = [];
this.pushMode = false;
this.$q.notify({
type: "iconfont icon-chenggong",
position: "top",
message: r.Message
});
}
});
}
}
}
};
......
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