Commit 0d742cb8 authored by 黄奎's avatar 黄奎

页面修改

parent de2c9db9
......@@ -78,7 +78,8 @@
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-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
......@@ -473,18 +474,18 @@
stuOption: null,
isShowAdd: false,
selection: [],
isShowTransfer: false,//是否显示转订单弹窗
isShowTransfer: false, //是否显示转订单弹窗
BelongType: 1,
pushMode: false,//是否显示推送按钮
pushMode: false, //是否显示推送按钮
pushing: false,
assistListFormat: [],
checkType: 1, //打开右侧弹窗类型
isShowAbroad: false, //是否显示转留学就业订单弹窗
userInfo: {}, //当前登录人员
isShowTrans: false,
transMsg:{
StuIds:'',
CreateBy:1
transMsg: {
StuIds: '',
CreateBy: ''
},
//员工列表
employeeList: [],
......@@ -790,26 +791,35 @@
);
});
},
//保存批量转交
saveTransForm(){
console.log(this.transMsg,'transMsg');
if(this.selection.length==0){
saveTransForm() {
if (this.selection.length == 0) {
this.$q.notify({
type: "negative",
position: "top",
message: '请选择推送学员'
});
}else{
return;
}
if (this.transMsg.CreateBy == "") {
this.$q.notify({
type: "negative",
position: "top",
message: '请选择接收人员!'
});
return;
}
let newArr = []
this.selection.forEach(x=>{
this.selection.forEach(x => {
newArr.push(x.StuId);
})
this.transMsg.StuIds = newArr.toString();
BatchForwardStudent(this.transMsg).then(res => {
if(res.Code==1){
if (res.Code == 1) {
this.refreshStuList();
this.selection = [];
this.transMsg.StuIds = "";
this.transMsg.CreateBy = "";
this.pushMode = false;
this.$q.notify({
type: "iconfont icon-chenggong",
......@@ -818,7 +828,7 @@
});
}
});
}
}
}
};
......
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