Commit aff9835b authored by zhengke's avatar zhengke
parents 36e3ab57 0d742cb8
...@@ -585,7 +585,14 @@ export function BatchForwardStudent(data) { ...@@ -585,7 +585,14 @@ export function BatchForwardStudent(data) {
} }
//全公司每日数据统计
export function GetStudentCompany(data) {
return request({
url: '/StudentStat/GetStudentCompany',
method: 'post',
data
});
}
......
...@@ -78,7 +78,8 @@ ...@@ -78,7 +78,8 @@
label="下载" @click="downloadStudent" /> label="下载" @click="downloadStudent" />
</div> </div>
<div class="page-option" v-if="pushMode"> <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-popup-proxy :offset="[10, 10]">
<q-banner v-if="isShowTrans"> <q-banner v-if="isShowTrans">
<q-select style="margin-top:20px;" filled v-model="transMsg.CreateBy" @filter="filterEmployee" use-input <q-select style="margin-top:20px;" filled v-model="transMsg.CreateBy" @filter="filterEmployee" use-input
...@@ -473,18 +474,18 @@ ...@@ -473,18 +474,18 @@
stuOption: null, stuOption: null,
isShowAdd: false, isShowAdd: false,
selection: [], selection: [],
isShowTransfer: false,//是否显示转订单弹窗 isShowTransfer: false, //是否显示转订单弹窗
BelongType: 1, BelongType: 1,
pushMode: false,//是否显示推送按钮 pushMode: false, //是否显示推送按钮
pushing: false, pushing: false,
assistListFormat: [], assistListFormat: [],
checkType: 1, //打开右侧弹窗类型 checkType: 1, //打开右侧弹窗类型
isShowAbroad: false, //是否显示转留学就业订单弹窗 isShowAbroad: false, //是否显示转留学就业订单弹窗
userInfo: {}, //当前登录人员 userInfo: {}, //当前登录人员
isShowTrans: false, isShowTrans: false,
transMsg:{ transMsg: {
StuIds:'', StuIds: '',
CreateBy:1 CreateBy: ''
}, },
//员工列表 //员工列表
employeeList: [], employeeList: [],
...@@ -803,35 +804,44 @@ ...@@ -803,35 +804,44 @@
); );
}); });
}, },
//保存批量转交 //保存批量转交
saveTransForm(){ saveTransForm() {
console.log(this.transMsg,'transMsg'); if (this.selection.length == 0) {
if(this.selection.length==0){
this.$q.notify({ this.$q.notify({
type: "negative", type: "negative",
position: "top", position: "top",
message: '请选择推送学员' message: '请选择推送学员'
}); });
}else{ return;
let newArr = [] }
this.selection.forEach(x=>{ if (this.transMsg.CreateBy == "") {
newArr.push(x.StuId); this.$q.notify({
}) type: "negative",
this.transMsg.StuIds = newArr.toString(); position: "top",
BatchForwardStudent(this.transMsg).then(res => { message: '请选择接收人员!'
if(res.Code==1){
this.refreshStuList();
this.selection = [];
this.pushMode = false;
this.$q.notify({
type: "iconfont icon-chenggong",
position: "top",
message: r.Message
});
}
}); });
return;
} }
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.transMsg.StuIds = "";
this.transMsg.CreateBy = "";
this.pushMode = false;
this.$q.notify({
type: "iconfont icon-chenggong",
position: "top",
message: r.Message
});
}
});
} }
} }
}; };
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
</template> </template>
<script> <script>
import { import {
GetStudentStatic GetStudentCompany
} from '../../api/sale/sale'; } from '../../api/sale/sale';
import { import {
EduDownLoad EduDownLoad
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
export default { export default {
props: {}, props: {},
meta: { meta: {
title: "课程顾问部每日数据统计" title: "全公司每日数据统计"
}, },
components: {}, components: {},
data() { data() {
...@@ -277,9 +277,9 @@ ...@@ -277,9 +277,9 @@
this.loading = true; this.loading = true;
var msg = JSON.parse(JSON.stringify(this.msg)); var msg = JSON.parse(JSON.stringify(this.msg));
EduDownLoad( EduDownLoad(
"/StudentStat/DownLoadStudentStatic", "/StudentStat/DownLoadStudentCompany",
msg, msg,
"课程顾问部每日数据统计.xls", res => { "全公司每日数据统计.xls", res => {
this.loading = false; this.loading = false;
} }
); );
...@@ -294,7 +294,7 @@ ...@@ -294,7 +294,7 @@
//获取数据 //获取数据
getList() { getList() {
this.loading = true; this.loading = true;
GetStudentStatic(this.msg).then(res => { GetStudentCompany(this.msg).then(res => {
this.loading = false; this.loading = false;
if (res.Code == 1) { if (res.Code == 1) {
this.dataList = res.Data; this.dataList = res.Data;
......
...@@ -1096,9 +1096,9 @@ const routes = [{ ...@@ -1096,9 +1096,9 @@ const routes = [{
import("pages/sale/everyMonthTotal.vue") import("pages/sale/everyMonthTotal.vue")
}, },
{ {
path: "/sale/monthTotal2", path: "/sale/companyday",
component: ()=> component: ()=>
import("pages/sale/monthTotal2.vue") import("pages/sale/companyday.vue")
}, },
{ {
path: "/activity/activeType", //活动 活动类型 path: "/activity/activeType", //活动 活动类型
......
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