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

页面修改

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