Commit b44a7f69 authored by zhengke's avatar zhengke

1

parent 28e29bf2
...@@ -135,36 +135,9 @@ ...@@ -135,36 +135,9 @@
</div> </div>
</div> </div>
<div class="makeOutDiv"> <div class="makeOutDiv">
<!-- <table class="makeTable" style="border-collapse:collapse;"> <el-table :data="tableData" style="width: 100%" ref="table" :fit='true' :default-sort="{prop: 'date', order: 'descending'}">
<tr> <el-table-column :prop="index" :label="item" sortable width="160" v-for="(item, index) in tableHeader"
<th>员工</th>
<template v-for="(item,index) in dataList[0].subList">
<th>
{{item.ChannelName}}
</th>
<th>
{{item.ChannelName}}到访
</th>
<th>
{{item.ChannelName}}转化率
</th>
</template>
</tr>
<tr v-for="(cItem,cIndex) in dataList" :key="cIndex">
<td>{{cItem.EmployeeName}}</td>
<template v-for="(sItem,sIndex) in cItem.subList">
<td>
{{sItem.VisitCount}}
</td>
<td>{{sItem.ClueCount}}</td>
<td>{{getStatical(sItem)}}%</td>
</template>
</tr>
</table> -->
<el-table :data="tableData" style="width: 100%" :fit='true' :default-sort="{prop: 'date', order: 'descending'}">
<el-table-column :prop="index" :label="item" sortable show-overflow-tooltip v-for="(item, index) in tableHeader"
:key="index"> :key="index">
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
...@@ -201,6 +174,7 @@ ...@@ -201,6 +174,7 @@
}, },
IsQueryAuth: false, //是否有查询市场部和课程顾问部人员权限 IsQueryAuth: false, //是否有查询市场部和课程顾问部人员权限
IsShowEmpQuery: false, //是否显示员工下拉框 IsShowEmpQuery: false, //是否显示员工下拉框
tableHeight:50
}; };
}, },
created() { created() {
...@@ -238,8 +212,16 @@ ...@@ -238,8 +212,16 @@
this.dateList.push(year + strLink + month + strLink + day); this.dateList.push(year + strLink + month + strLink + day);
this.getEmployeeList(); this.getEmployeeList();
this.getData(); this.getData();
setTimeout(() => {
this.tableHeight = window.innerHeight - this.$refs.table.$el.offsetTop-60;
},200)
}, },
methods: { methods: {
getFixed(index){
if(index==0){
return true
}
},
//获取数据 //获取数据
getData() { getData() {
if (this.dateList && this.dateList.length > 0) { if (this.dateList && this.dateList.length > 0) {
......
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