Commit a274d219 by 李长胜

调整更近人员

1 parent df7d4a23
......@@ -37,10 +37,10 @@ export default {
if (this.totalData && this.totalData.length > 0) {
this.dateArray = this.totalData.map(item => item.dateTime) //日期
this.customerCount = this.totalData.map(item => item.newCustomerCount)
this.customerRatio = this.totalData.map(item => item.customerRatio.toFixed(4) * 100)
this.customerRatio = this.totalData.map(item => item.customerRatio * 100)
this.entmicroCount = this.totalData.map(item => item.newEntmicroCount)
this.entmicroRatio = this.totalData.map(item => item.entmicroRatio.toFixed(4) * 100)
this.entmicroRatio = this.totalData.map(item => item.entmicroRatio * 100)
this.initChart()
}
......@@ -52,10 +52,10 @@ export default {
handler(val) {
this.dateArray = this.totalData.map(item => item.dateTime) //日期
this.customerCount = this.totalData.map(item => item.newCustomerCount)
this.customerRatio = this.totalData.map(item => item.customerRatio.toFixed(4) * 100)
this.customerRatio = this.totalData.map(item => item.customerRatio * 100)
this.entmicroCount = this.totalData.map(item => item.newEntmicroCount)
this.entmicroRatio = this.totalData.map(item => item.entmicroRatio.toFixed(4) * 100)
this.entmicroRatio = this.totalData.map(item => item.entmicroRatio * 100)
this.initChart()
}
......
......@@ -17,6 +17,14 @@
<div class="table-box">
<el-table class="table-list__box" ref="tableList" :data="dataList" :height="tableHeight" border stripe tooltip-effect="dark">
<el-table-column v-for="column in columns" :key="column.key" :prop="column.key" :label="column.label" :width="column.width" :min-width="150" sortable show-overflow-tooltip filter-placement="bottom"></el-table-column>
<template slot="empty" class="emptyBg">
<div class="noDataImgWrap" style="width:64px;height:41px;margin:0 auto;">
<img class="noDataImg" style="width:100%;height:100%;" src="@/assets/clientDataOverview/nodata.png" alt="" />
</div>
<!-- <div>{{ noDataText }}</div> -->
<div>暂无数据</div>
<slot name="additionalContent"></slot>
</template>
</el-table>
<!-- 分页 -->
<div class="pagination__wrapper">
......@@ -64,7 +72,7 @@ export default {
console.log(this.tableHeight, 'tableHeight')
})
this.dataList = demo.data.rows.concat([])
this.dataList = []//demo.data.rows.concat([])
}
}
</script>
......
......@@ -23,6 +23,27 @@
<span slot="customerSex" slot-scope="scope">
<span>{{ scope.scope.customerSex == 0 ? '未知' : scope.scope.customerSex == 1 ? '男' : '女' }}</span>
</span>
<div slot="followStaff" class="entmicro" slot-scope="scope">
<div class="entmicro-tag" v-for="(tag, idx) in followList(scope.scope.followStaff)" :key="idx">
<el-tag type="info" v-if="idx < 3" :disable-transitions="false">
<i class="el-icon-user-solid"></i>
{{ tag }}
</el-tag>
<el-tag type="info" v-if="followList(scope.scope.followStaff).length > 3 && idx == 3">
<el-popover placement="top" width="600" trigger="hover" content="这是一段内容,这是一段内容,这是一段内容,这是一段内容。">
<span slot="reference">...({{ followList(scope.scope.followStaff).length }})</span>
<div class="entmicro-hover">
<el-tag type="info" v-for="(i, index) in followList(scope.scope.followStaff)" :key="index" :disable-transitions="false">
<i class="el-icon-user-solid"></i>
<!-- {{ i.staffName }}{{ i.departmentName ? `(${i.departmentName})` : '' }} -->
{{ i }}
</el-tag>
</div>
</el-popover>
</el-tag>
</div>
</div>
<span slot="customerPhone" slot-scope="scope">
<span>{{ scope.scope.customerPhone == 'null' ? '' : scope.scope.customerPhone }}</span>
</span>
......@@ -184,8 +205,8 @@ export default {
{
label: '跟进员工',
prop: 'followStaff',
minWidth:'120'
// addHtml:'followStaff'
addHtml: 'followStaff',
minWidth: 110
},
{
label: '来源',
......@@ -249,6 +270,12 @@ export default {
},
methods: {
followList(str) {
if (!str) {
return []
}
return str.split(',')
},
statusText(text) {
return text === -1 ? '删除好友' : text === 0 ? '正常' : ''
},
......@@ -408,6 +435,42 @@ export default {
// .glsx-table {
// margin-top: 20px;
// }
.entmicro {
// overflow: hidden;
// text-overflow: ellipsis;
// display: -webkit-box;
// -webkit-line-clamp: 2;
// -webkit-box-orient: vertical;
// text-align: left;
i {
color: #75acff;
margin-right: 3px;
font-size: 14px;
}
&-tag {
display: inline-block;
}
&-hover {
max-height: 214px;
overflow: auto;
i {
color: #75acff;
margin-right: 3px;
font-size: 14px;
}
}
// span {
// line-height: 20px;
// }
}
.el-tag {
margin-right: 10px;
margin-bottom: 10px;
cursor: pointer;
background-color: #fff !important;
}
}
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!