Commit 5839a541 authored by 黄奎's avatar 黄奎

页面修改

parent ad0f605f
...@@ -263,19 +263,22 @@ ...@@ -263,19 +263,22 @@
methods: { methods: {
//跳转到客户列表 //跳转到客户列表
showDetail(row) { showDetail(row) {
var url = "/sale/mystu";
if (this.CurrentUserInfo && (this.CurrentUserInfo.IsMarket == 1 || this.CurrentUserInfo.IsCourseConsultant == if (this.CurrentUserInfo && (this.CurrentUserInfo.IsMarket == 1 || this.CurrentUserInfo.IsCourseConsultant ==
1)) { 1)) {
url = "/sale/mystu"; var url = "/sale/mystu";
this.OpenNewUrl(url, {
startTime: this.msg.startTime,
endTime: this.msg.endTime,
createBy: row.Id,
})
} else { } else {
url = '/school/student'; var url = '/school/student';
this.OpenNewUrl(url, {
startTime: this.msg.startTime,
endTime: this.msg.endTime,
createBy: row.Id,
})
} }
this.OpenNewUrl(url, {
ChannelId: 0,
startTime: this.msg.startTime,
endTime: this.msg.endTime,
createBy: row.Id,
})
}, },
//下载渠道总表 //下载渠道总表
downloadMarketChannelStudentStatic() { downloadMarketChannelStudentStatic() {
......
...@@ -195,10 +195,12 @@ ...@@ -195,10 +195,12 @@
customFromList: [], //客户来源 customFromList: [], //客户来源
StuChannelList: [], //收客渠道 StuChannelList: [], //收客渠道
allStuChannelList: [], //所有收客渠道 allStuChannelList: [], //所有收客渠道
consultList: [] consultList: [],
CurrentUserInfo: {},
}; };
}, },
created() { created() {
this.CurrentUserInfo = this.getLocalStorage();
this.getSchool(); this.getSchool();
this.getStuStageList(); this.getStuStageList();
this.getCustomTypeList(); this.getCustomTypeList();
...@@ -217,6 +219,12 @@ ...@@ -217,6 +219,12 @@
if (this.$route.query.ChannelId) { if (this.$route.query.ChannelId) {
this.msg.StuChannel = this.$route.query.ChannelId; this.msg.StuChannel = this.$route.query.ChannelId;
} }
if (this.$route.query.createBy) {
if (this.CurrentUserInfo.IsManager == 1 && this.CurrentUserInfo.IsMarket == 1) {
this.msg.BelongType = 4;
this.msg.CreateIds.push(Number(this.$route.query.createBy));
}
}
this.getCustomerList(); this.getCustomerList();
this.getCustomFrom(); this.getCustomFrom();
this.GetStuChannelList(); this.GetStuChannelList();
...@@ -329,7 +337,7 @@ ...@@ -329,7 +337,7 @@
this.msg.StartTime = ""; this.msg.StartTime = "";
this.msg.EndTime = ""; this.msg.EndTime = "";
} }
this.loading = true; this.loading = true;
getStudentPage(this.msg) getStudentPage(this.msg)
.then(res => { .then(res => {
......
...@@ -69,7 +69,6 @@ ...@@ -69,7 +69,6 @@
</a> </a>
</template> </template>
</el-table-column> </el-table-column>
</el-table-column>
<el-table-column prop="OrderCount" label="合同数" sortable> <el-table-column prop="OrderCount" label="合同数" sortable>
<template slot-scope="scope"> <template slot-scope="scope">
<a @click="showDetail(scope.row)" style="color:#67C23A;cursor:pointer;text-decoration:underline;"> <a @click="showDetail(scope.row)" style="color:#67C23A;cursor:pointer;text-decoration:underline;">
......
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