Commit f62cacaa authored by 黄奎's avatar 黄奎

页面修改

parent bdf50cdf
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
height: 40px; height: 40px;
background-color: rgb(238, 238, 239); background-color: rgb(238, 238, 239);
} }
.stulistNumber { .stulistNumber {
display: inline-block; display: inline-block;
width: 25px; width: 25px;
...@@ -39,6 +40,7 @@ ...@@ -39,6 +40,7 @@
cursor: pointer; cursor: pointer;
color: #2961FE; color: #2961FE;
} }
.OCourseTable { .OCourseTable {
width: 400px; width: 400px;
text-align: center; text-align: center;
...@@ -52,7 +54,6 @@ ...@@ -52,7 +54,6 @@
height: 40px; height: 40px;
background-color: rgb(238, 238, 239); background-color: rgb(238, 238, 239);
} }
</style> </style>
<template> <template>
<div class="stuList"> <div class="stuList">
...@@ -71,8 +72,8 @@ ...@@ -71,8 +72,8 @@
<q-btn color="accent" class="q-mr-md" size="sm" icon="swap_horiz" label="转留学" <q-btn color="accent" class="q-mr-md" size="sm" icon="swap_horiz" label="转留学"
:disable="selection.length === 0" @click="transferAbroad" /> :disable="selection.length === 0" @click="transferAbroad" />
<q-btn color="accent" class="q-mr-md" size="sm" icon="add" label="新增学员" @click="EditStudent(null)" /> <q-btn color="accent" class="q-mr-md" size="sm" icon="add" label="新增学员" @click="EditStudent(null)" />
<q-btn v-if="authObj&&authObj.isShowDownload" color="accent" class="q-mr-md" size="sm" icon="download" label="下载" <q-btn v-if="authObj&&authObj.isShowDownload" color="accent" class="q-mr-md" size="sm" icon="download"
@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="立即推送" :loading="pushing" <q-btn color="accent" unelevated class="q-mr-md" size="sm" icon="swap_horiz" label="立即推送" :loading="pushing"
...@@ -131,7 +132,8 @@ ...@@ -131,7 +132,8 @@
<th>跟进比例</th> <th>跟进比例</th>
<th>跟进备注</th> <th>跟进备注</th>
</tr> </tr>
<tr v-for="(sItem,sIndex) in props.row.AdvisorList" style="border-bottom:1px dashed #d1d1d1;" :key="sIndex"> <tr v-for="(sItem,sIndex) in props.row.AdvisorList" style="border-bottom:1px dashed #d1d1d1;"
:key="sIndex">
<td>{{sItem.AdvisorStatusName}}</td> <td>{{sItem.AdvisorStatusName}}</td>
<td>{{sItem.AdvisorDate}}</td> <td>{{sItem.AdvisorDate}}</td>
<td>{{sItem.AdvisorRate}}</td> <td>{{sItem.AdvisorRate}}</td>
...@@ -154,7 +156,8 @@ ...@@ -154,7 +156,8 @@
<template v-slot:body-cell-OrderCount="props"> <template v-slot:body-cell-OrderCount="props">
<q-td :props="props" v-if="props.row.OrderCount == 0" class="text-grey-4">未报名</q-td> <q-td :props="props" v-if="props.row.OrderCount == 0" class="text-grey-4">未报名</q-td>
<q-td :props="props" v-if="props.row.OrderCount > 0" class="bg-negative text-white" style="cursor:pointer;text-decoration:underline;" @click="getStuRight(props.row,3)"> <q-td :props="props" v-if="props.row.OrderCount > 0" class="bg-negative text-white"
style="cursor:pointer;text-decoration:underline;" @click="getStuRight(props.row,3)">
已报名{{ props.row.OrderCount }}</q-td> 已报名{{ props.row.OrderCount }}</q-td>
</template> </template>
<template v-slot:body-cell-TeacherManager="props"> <template v-slot:body-cell-TeacherManager="props">
...@@ -199,8 +202,9 @@ ...@@ -199,8 +202,9 @@
</q-table> </q-table>
<student-form v-if="isShowStuForm" :save-obj="stuOption" @close="closeStuForm" @success="refreshStuList"> <student-form v-if="isShowStuForm" :save-obj="stuOption" @close="closeStuForm" @success="refreshStuList">
</student-form> </student-form>
<studentRight-form v-if="isShowStuRight" :isJudgeTrans="isJudgeTrans" :BelongType="BelongType" :checkType="checkType" :save-obj="stuOption" <studentRight-form v-if="isShowStuRight" :isJudgeTrans="isJudgeTrans" :BelongType="BelongType"
@close="closeStuForm" @success="refreshStuList" @reload="referDataHandler"> :checkType="checkType" :save-obj="stuOption" @close="closeStuForm" @success="refreshStuList"
@reload="referDataHandler">
</studentRight-form> </studentRight-form>
<studentAdd-form v-if="isShowAdd" :save-obj="stuOption" @close="closeStuForm" @success="refreshStuList"> <studentAdd-form v-if="isShowAdd" :save-obj="stuOption" @close="closeStuForm" @success="refreshStuList">
</studentAdd-form> </studentAdd-form>
...@@ -433,8 +437,9 @@ ...@@ -433,8 +437,9 @@
pushMode: false, pushMode: false,
pushing: false, pushing: false,
assistListFormat: [], assistListFormat: [],
checkType:1, checkType: 1,
isShowAbroad: false isShowAbroad: false,
userInfo: {}, //当前登录人员
}; };
}, },
watch: { watch: {
...@@ -447,12 +452,13 @@ ...@@ -447,12 +452,13 @@
} }
}, },
created() { created() {
this.userInfo = this.getLocalStorage();
this.formatAssistList(); this.formatAssistList();
this.initAuth(); this.initAuth();
}, },
mounted() {}, mounted() {},
computed: { computed: {
...mapGetters(["userInfo", "logo", "name"]) ...mapGetters(["logo", "name"])
}, },
methods: { methods: {
//下载文件 //下载文件
...@@ -605,11 +611,11 @@ ...@@ -605,11 +611,11 @@
this.isShowAbroad = false; this.isShowAbroad = false;
}, },
//点击学生姓名弹出 //点击学生姓名弹出
getStuRight(obj,type) { getStuRight(obj, type) {
if (obj) { if (obj) {
this.stuOption = obj; this.stuOption = obj;
this.BelongType = obj.BelongType; this.BelongType = obj.BelongType;
this.checkType=type; this.checkType = type;
} else { } else {
this.stuOption = null; this.stuOption = null;
} }
...@@ -632,7 +638,7 @@ ...@@ -632,7 +638,7 @@
this.isShowTransfer = true; this.isShowTransfer = true;
}, },
//转留学 //转留学
transferAbroad(){ transferAbroad() {
this.isShowAbroad = true; this.isShowAbroad = true;
}, },
getCurseManager(row) { getCurseManager(row) {
......
...@@ -152,6 +152,11 @@ ...@@ -152,6 +152,11 @@
</template> </template>
<template v-if="item.label=='合计回单'||item.label=='合计到访'||item.label=='合计转化率'"> <template v-if="item.label=='合计回单'||item.label=='合计到访'||item.label=='合计转化率'">
<el-table-column :prop="item.prop" :label="item.label" fixed="right" sortable width="115" :key="index"> <el-table-column :prop="item.prop" :label="item.label" fixed="right" sortable width="115" :key="index">
<template slot-scope="scope">
<a @click="showDetail(scope.row)" style="color:#67C23A;cursor:pointer;text-decoration:underline;">
{{scope.row[item.prop]}}
</a>
</template>
</el-table-column> </el-table-column>
</template> </template>
<template v-if="item.SubList&&item.SubList.length>0"> <template v-if="item.SubList&&item.SubList.length>0">
...@@ -213,6 +218,7 @@ ...@@ -213,6 +218,7 @@
}; };
}, },
created() { created() {
this.getEmployeeList();
this.CurrentUserInfo = this.getLocalStorage(); this.CurrentUserInfo = this.getLocalStorage();
if (this.CurrentUserInfo && this.CurrentUserInfo.ActionMenuList && this.CurrentUserInfo.ActionMenuList.length > if (this.CurrentUserInfo && this.CurrentUserInfo.ActionMenuList && this.CurrentUserInfo.ActionMenuList.length >
0) { 0) {
...@@ -248,13 +254,30 @@ ...@@ -248,13 +254,30 @@
this.msg.endTime = year + strLink + month + strLink + day; this.msg.endTime = year + strLink + month + strLink + day;
this.dateList.push(year + strLink + month + strLink + '01'); this.dateList.push(year + strLink + month + strLink + '01');
this.dateList.push(year + strLink + month + strLink + day); this.dateList.push(year + strLink + month + strLink + day);
this.getEmployeeList();
this.getData(); this.getData();
setTimeout(() => { setTimeout(() => {
this.tableHeight = window.innerHeight - this.$refs.table.$el.offsetTop - 60; this.tableHeight = window.innerHeight - this.$refs.table.$el.offsetTop - 60;
}, 200) }, 200)
}, },
methods: { methods: {
//跳转到客户列表
showDetail(row) {
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: 0,
startTime: this.msg.startTime,
endTime: this.msg.endTime,
empList: row.Id,
})
},
//下载渠道总表
downloadMarketChannelStudentStatic() { downloadMarketChannelStudentStatic() {
var msg = JSON.parse(JSON.stringify(this.msg)); var msg = JSON.parse(JSON.stringify(this.msg));
this.loading = true; this.loading = true;
......
...@@ -126,7 +126,8 @@ ...@@ -126,7 +126,8 @@
StuType: '', StuType: '',
QStudentStatus: 1, //客户状态 1有效 2无效 QStudentStatus: 1, //客户状态 1有效 2无效
AdvisorStatus: '', //当前状态 AdvisorStatus: '', //当前状态
StuChannel:"", StuChannel: "",
CreateIds: [],
}, },
dateArray: [], //日期数组 dateArray: [], //日期数组
pageCount: 0, pageCount: 0,
...@@ -162,6 +163,9 @@ ...@@ -162,6 +163,9 @@
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.empList) {
this.msg.CreateBy = Number(this.$route.query.empList);
}
this.getStatusList(); this.getStatusList();
this.getStudent() this.getStudent()
}, },
......
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