Commit 396a7a69 authored by 黄奎's avatar 黄奎

页面修改

parent 3d84540a
...@@ -149,8 +149,8 @@ ...@@ -149,8 +149,8 @@
<el-date-picker v-model="dateList" type="daterange" align="right" value-format="yyyy-MM-dd" @change="searchData" <el-date-picker v-model="dateList" type="daterange" align="right" value-format="yyyy-MM-dd" @change="searchData"
unlink-panels range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"> unlink-panels range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期">
</el-date-picker> </el-date-picker>
<el-select v-model="msg.empList" @change="searchData" style="width:180px;margin-left:10px;" collapse-tags multiple <el-select v-if="IsShowEmpQuery" v-model="msg.empList" @change="searchData"
filterable placeholder="请选择"> style="width:180px;margin-left:10px;" collapse-tags multiple filterable placeholder="请选择">
<el-option v-for="item in myEmployeeList" :key="item.Id" :label="item.EmployeeName" :value="item.Id"> <el-option v-for="item in myEmployeeList" :key="item.Id" :label="item.EmployeeName" :value="item.Id">
</el-option> </el-option>
</el-select> </el-select>
...@@ -158,8 +158,8 @@ ...@@ -158,8 +158,8 @@
</div> </div>
<div class="Check_Content"> <div class="Check_Content">
<div class="Check_ListContent"> <div class="Check_ListContent">
<div class="Check_Item" @click="comType=1,searchData() " :class="{'ckedClass':comType==1}">市场部数据统计</div> <div class="Check_Item" v-if="IsQueryAuth||CurrentUserInfo.IsMarket==1" @click="comType=1,searchData() " :class="{'ckedClass':comType==1}">市场部数据统计</div>
<div class="Check_Item" @click="comType=2,searchData()" :class="{'ckedClass':comType==2}">课程顾问部统计</div> <div class="Check_Item" v-if="IsQueryAuth||CurrentUserInfo.IsCourseConsultant==1" @click="comType=2,searchData()" :class="{'ckedClass':comType==2}">课程顾问部统计</div>
</div> </div>
</div> </div>
<template v-if="comType==1"> <template v-if="comType==1">
...@@ -758,7 +758,7 @@ ...@@ -758,7 +758,7 @@
msg: { msg: {
startTime: "", startTime: "",
endTime: "", endTime: "",
empList: [3015] empList: []
}, },
series: [{ series: [{
name: "新增条数", name: "新增条数",
...@@ -847,6 +847,7 @@ ...@@ -847,6 +847,7 @@
ConsultObj: {}, //课程顾问数据 ConsultObj: {}, //课程顾问数据
IsQueryAuth: false, //是否有查询市场部和课程顾问部人员权限 IsQueryAuth: false, //是否有查询市场部和课程顾问部人员权限
CurrentUserInfo: {}, //当前登录用户信息 CurrentUserInfo: {}, //当前登录用户信息
IsShowEmpQuery: false, //是否显示员工下拉框
}; };
}, },
created() { created() {
...@@ -859,13 +860,18 @@ ...@@ -859,13 +860,18 @@
} }
}); });
} }
console.log("IsQueryAuth", this.IsQueryAuth); if (this.IsQueryAuth || (this.CurrentUserInfo.IsManager == 1 && this.CurrentUserInfo.IsCourseConsultant == 1) || (
console.log("CurrentUserInfo", this.CurrentUserInfo); this.CurrentUserInfo.IsManager == 1 && this.CurrentUserInfo.IsMarket == 1)) {
this.IsShowEmpQuery = true;
} else {
this.msg.empList.push(this.CurrentUserInfo.Id);
}
}, },
mounted() { mounted() {
this.searchData(); this.searchData();
}, },
methods: { methods: {
//获取员工列表 //获取员工列表
getEmployeeList() { getEmployeeList() {
var qMsg = { var qMsg = {
......
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