Commit 8552561e authored by 黄奎's avatar 黄奎

页面修改

parent e012c224
......@@ -54,7 +54,7 @@
</el-table-column>
<el-table-column prop="ChannelName" label="渠道名">
<template slot-scope="scope">
<div class="CustomerName" style="text-decoration:underline;" v-if="scope.row.CustomerType||scope.row.ChannelType==1"
<div class="CustomerName" style="text-decoration:underline;" v-if="scope.row.ChannelType>0"
@click="showDetail(scope.row)">
{{scope.row.ChannelName}}
</div>
......@@ -231,24 +231,47 @@
},
//客户详情
showDetail(row) {
var params = {
ChannelId: 0,
CategoryId: 0,
CreateType: 0,
CategoryId: 0,
StuSourceId: 0,
startTime: this.msg.startTime,
endTime: this.msg.endTime,
empList: this.msg.empList.toString(),
};
//个人创建
if (row.ChannelType == 1) {
var url = "/sale/mystu";
if (this.CurrentUserInfo && (this.CurrentUserInfo.IsMarket == 1 || this.CurrentUserInfo.IsCourseConsultant ==
1)) {
url = "/sale/mystu";
} else {
url = '/school/student';
}
this.OpenNewUrl(url, {
ChannelId: row.ChannelId,
startTime: this.msg.startTime,
endTime: this.msg.endTime,
empList: this.msg.empList.toString(),
})
params.ChannelId = row.ChannelId;
}
//同行介绍
if (row.ChannelType == 2) {
params.CategoryId = row.ChannelId;
}
//内部介绍
if (row.ChannelType == 3) {
params.CreateType = 3;
params.StuSourceId = row.ChannelId;
}
//学员转介绍
if (row.ChannelType == 4) {
params.CreateType = 4;
params.StuSourceId = row.ChannelId;
}
var url = "/sale/mystu";
if (this.CurrentUserInfo && (this.CurrentUserInfo.IsMarket == 1 || this.CurrentUserInfo.IsCourseConsultant ==
1)) {
url = "/sale/mystu";
} else {
this.curRowId = row.ChannelId;
this.isShowDetailForm = true;
url = '/school/student';
}
this.OpenNewUrl(url, params)
// else {
// this.curRowId = row.ChannelId;
// this.isShowDetailForm = true;
// }
},
//关闭弹窗
closeCustomForm() {
......
......@@ -218,7 +218,7 @@
this.msg.EndTime = this.$route.query.endTime;
}
if (this.$route.query.ChannelId) {
this.msg.StuChannel = this.$route.query.ChannelId;
this.msg.StuChannel = Number(this.$route.query.ChannelId);
}
if (this.$route.query.CategoryId) {
this.msg.CategoryId = this.$route.query.CategoryId;
......
......@@ -138,7 +138,7 @@
CreateIds: [],
CreateType: "", //来源类型
StuSourceId: "", //来源人编号
CategoryId:"",//同行编号
CategoryId: "", //同行编号
},
dateArray: [], //日期数组
pageCount: 0,
......@@ -175,7 +175,7 @@
this.msg.EndTime = this.$route.query.endTime;
}
if (this.$route.query.ChannelId) {
this.msg.StuChannel = this.$route.query.ChannelId;
this.msg.StuChannel = Number(this.$route.query.ChannelId);
}
if (this.$route.query.createBy) {
this.msg.CreateBy = Number(this.$route.query.createBy);
......
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