Commit 461c68fb by xuyl

v1.2.1更新

1 parent e9f9b6b4
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
"dependencies": { "dependencies": {
"axios": "^0.21.1", "axios": "^0.21.1",
"core-js": "^3.4.4", "core-js": "^3.4.4",
"dayjs": "^1.10.7",
"echarts": "^5.2.0", "echarts": "^5.2.0",
"element-ui": "^2.4.5", "element-ui": "^2.4.5",
"glsx-common": "^1.4.6", "glsx-common": "^1.4.6",
......
...@@ -20,8 +20,26 @@ ...@@ -20,8 +20,26 @@
<span class="ellipsis-1" style="display: inline-block; max-width: 70px; text-align: left">{{ scope.scope.customerName }}</span> <span class="ellipsis-1" style="display: inline-block; max-width: 70px; text-align: left">{{ scope.scope.customerName }}</span>
</el-tooltip> </el-tooltip>
<span :class="[scope.scope.type == 1 ? 'pure-blue-text' : '', scope.scope.type == 2 ? 'pure-yello-text' : '']">{{ scope.scope.type == 1 ? '@微信' : scope.scope.type == 2 ? '@企微' : '' }}</span> <span style="font-size:12px" :class="[scope.scope.type == 1 ? 'pure-blue-text' : '', scope.scope.type == 2 ? 'pure-yello-text' : '']">{{ scope.scope.type == 1 ? '@微信' : scope.scope.type == 2 ? '@企微' : '' }}</span>
</span> </span>
<!-- 企微名称 -->
<div slot="nickNameList" slot-scope="scope" class="expandImg">
<div v-for="(list, idx) in scope.scope.nickNameList" :key="idx">
<div v-if="idx == 0">
<span>{{ list.nickName }}</span>
<span class="smallFontSize" :class="[list.type == 1 ? 'pure-green-text' : '', list.type == 2 ? 'pure-yello-text' : '']">@{{ list.corpName }}</span>
</div>
<span v-if="idx > 0">
<el-popover placement="right-start" trigger="hover" content="这是一段内容,这是一段内容,这是一段内容,这是一段内容。">
<div v-for="(i, index) in scope.scope.nickNameList" :key="index">
<span>{{ i.nickName }}</span>
<span style="height: 20px; font-family: PingFangSC-Regular; font-size: 12px; letter-spacing: 0; line-height: 20px; font-weight: 400; margin-left: 2px" :class="[i.type == 1 ? 'pure-green-text' : '', list.type == 2 ? 'pure-yello-text' : '']">@{{ i.corpName }}</span>
</div>
<img class="imgEll" src="@/assets/tagsManage/ellipsis.png" alt="" slot="reference" />
</el-popover>
</span>
</div>
</div>
</GLTable> </GLTable>
</div> </div>
</div> </div>
...@@ -50,7 +68,13 @@ export default { ...@@ -50,7 +68,13 @@ export default {
minWidth: '120' minWidth: '120'
}, },
{ {
label: '手机号', label: '企微名称',
prop: 'nickNameList',
addHtml: 'nickNameList',
minWidth: 220
},
{
label: '联系电话',
prop: 'customerPhone', prop: 'customerPhone',
minWidth: '110' minWidth: '110'
}, },
...@@ -129,6 +153,30 @@ export default { ...@@ -129,6 +153,30 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
@import '@/styles/variables.scss'; @import '@/styles/variables.scss';
.expandImg {
display: flex;
justify-content: center;
.smallFontSize {
margin-left: 2px;
height: 20px;
font-family: PingFangSC-Regular;
font-size: 12px;
letter-spacing: 0;
line-height: 20px;
font-weight: 400;
}
.imgEll {
margin-left: 6.5px;
cursor: pointer;
// margin-bottom:3px;
}
}
.pure-green-text {
color: #61cc43;
}
.pure-yello-text {
color: #fb8f28;
}
.scrm-sub-client-container { .scrm-sub-client-container {
.head-container { .head-container {
position: relative; position: relative;
......
...@@ -24,6 +24,24 @@ ...@@ -24,6 +24,24 @@
</span> </span>
</el-tooltip> </el-tooltip>
</p> </p>
<div class="newStyle">
<span class="WechatName">企微名称</span>
<div class="nameListItem">
<div v-for="(item, index) in nickNameList" :key="index" style="margin-bottom=5px">
<el-tooltip effect="dark" placement="top">
<div class="qiweiItem" slot="content">
<span class="qiweiItemNick">{{ item.nickName }}</span>
<span class="qiweiItemCrop" :class="[item.type == 1 ? 'pure-green-text' : '', item.type == 2 ? 'pure-yello-text' : '']">@{{ item.corpName }}</span>
</div>
<div class="qiweiItem">
<span class="qiweiItemNick">{{ item.nickName }}</span>
<span class="qiweiItemCrop" :class="[item.type == 1 ? 'pure-green-text' : '', item.type == 2 ? 'pure-yello-text' : '']">@{{ item.corpName }}</span>
</div>
</el-tooltip>
</div>
</div>
</div>
<p> <p>
<span>联系电话</span> <span>联系电话</span>
<span class="ellipsis-1">{{ leftPanelInfo.customerPhone }}</span> <span class="ellipsis-1">{{ leftPanelInfo.customerPhone }}</span>
...@@ -206,6 +224,8 @@ export default { ...@@ -206,6 +224,8 @@ export default {
}, },
data() { data() {
return { return {
isShowTooltip: false,
remark: '' ,
sloading: false, sloading: false,
panelContent: '说明:标签信息包含跟进员工标记的企业标签和自店标签,以及通过大数据算法生成的系统标签', panelContent: '说明:标签信息包含跟进员工标记的企业标签和自店标签,以及通过大数据算法生成的系统标签',
url: url, url: url,
...@@ -367,6 +387,7 @@ export default { ...@@ -367,6 +387,7 @@ export default {
//标签信息的内容 //标签信息的内容
currentIndex: 1, currentIndex: 1,
clientTagsList: [], clientTagsList: [],
nickNameList: [],
tagsParams: { tagsParams: {
listName: 'labelInfos', listName: 'labelInfos',
tableOption: false, tableOption: false,
...@@ -428,6 +449,14 @@ export default { ...@@ -428,6 +449,14 @@ export default {
console.log(this.tagsParams, 'kkkk') console.log(this.tagsParams, 'kkkk')
}, },
methods: { methods: {
onMouseEnter (str) {
// const tag = this.$refs[str]
// const parentWidth = tag.parentNode.offsetWidth // 获取元素父级可视宽度
// const contentWidth = tag.offsetWidth // 获取元素可视宽度
// this.isShowTooltip = contentWidth <= parentWidth
console.log(111)
},
closePanel() { closePanel() {
this.isFirstShow = false this.isFirstShow = false
}, },
...@@ -522,6 +551,7 @@ export default { ...@@ -522,6 +551,7 @@ export default {
this.tagsList = res.labels || [] this.tagsList = res.labels || []
this.labelIdList = (res.labels || []).map(item => item.labelId) this.labelIdList = (res.labels || []).map(item => item.labelId)
this.clientTagsList = res.labelInfos || [] this.clientTagsList = res.labelInfos || []
this.nickNameList = res.nickNameList || []
}, },
goNewTag() { goNewTag() {
this.$router.push({ path: '/tagsManage/index' }) this.$router.push({ path: '/tagsManage/index' })
...@@ -572,7 +602,7 @@ export default { ...@@ -572,7 +602,7 @@ export default {
if (labels.labelType == '企业标签') { if (labels.labelType == '企业标签') {
allTagsList[0].labelType = '企业标签' allTagsList[0].labelType = '企业标签'
allTagsList[0].children.push(labels) allTagsList[0].children.push(labels)
} else if(labels.labelType == '自店标签') { } else if (labels.labelType == '自店标签') {
allTagsList[1].labelType = '自店标签' allTagsList[1].labelType = '自店标签'
allTagsList[1].children.push(labels) allTagsList[1].children.push(labels)
} }
...@@ -686,7 +716,60 @@ export default { ...@@ -686,7 +716,60 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
@import '@/styles/variables.scss'; @import '@/styles/variables.scss';
@import '@/styles/resetelement.scss'; @import '@/styles/resetelement.scss';
.pure-green-text {
color: #61cc43;
}
.pure-yello-text {
color: #fb8f28;
}
.newStyle {
display: flex;
font-size: 14px;
margin: 20px 0;
.nameListItem {
display: flex;
flex-direction: column;
margin-left: 22px;
.qiweiItem {
max-width: 140px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
.qiweiItemNick {
height: 20px;
font-family: PingFangSC-Regular;
font-size: 14px;
color: #666666;
letter-spacing: 0;
line-height: 20px;
font-weight: 400;
}
.qiweiItemCrop {
margin-left: 2px;
height: 20px;
font-family: PingFangSC-Regular;
font-size: 12px;
color: #fb8f28;
letter-spacing: 0;
line-height: 20px;
font-weight: 400;
}
}
}
.WechatName {
font-weight: 600;
color: #333333;
line-height: 20px;
margin-left: 20px;
height: 20px;
}
}
.overHidden {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.scrm-sub-client-container { .scrm-sub-client-container {
.header { .header {
display: flex; display: flex;
......
...@@ -16,12 +16,12 @@ ...@@ -16,12 +16,12 @@
<GLTable @setTableFinishFun="setTableFinishFun" v-if="isReload" ref="clientManage" :hasNum="true" :getListApi="getListApi" :beforeSearchFn="beforeSearchFn" :searchForm="searchFormTable" :noDataImg="url" :pageConf="pageConf" :tableParams="tableParams"> <GLTable @setTableFinishFun="setTableFinishFun" v-if="isReload" ref="clientManage" :hasNum="true" :getListApi="getListApi" :beforeSearchFn="beforeSearchFn" :searchForm="searchFormTable" :noDataImg="url" :pageConf="pageConf" :tableParams="tableParams">
<span slot="customerName" class="flex-center" slot-scope="scope"> <span slot="customerName" class="flex-center" slot-scope="scope">
<el-tooltip effect="dark" :content="scope.scope.customerName" placement="top"> <el-tooltip effect="dark" :content="scope.scope.customerName" placement="top">
<span class="ellipsis-1" style="display: inline-block; max-width: 70px; text-align: left">{{ scope.scope.customerName }}</span> <span class="ellipsis-1" style="display: inline-block; max-width: 70px; text-align: left;">{{ scope.scope.customerName }}</span>
</el-tooltip> </el-tooltip>
<!-- <span class="pure-blue-text">{{ scope.scope.type == 1 ? '@微信' : scope.scope.type == 2 ? '@企微' : '' }}</span> --> <!-- <span class="pure-blue-text">{{ scope.scope.type == 1 ? '@微信' : scope.scope.type == 2 ? '@企微' : '' }}</span> -->
<span class="pure-blue-text">{{ scope.scope.type == 1 ? '@微信' : scope.scope.type == 2 ? '@企微' : scope.scope.type == null ? '' :''}}</span> <span class="pure-blue-text" style="font-size:12px">{{ scope.scope.type == 1 ? '@微信' : scope.scope.type == 2 ? '@企微' : scope.scope.type == null ? '' : '' }}</span>
</span> </span>
<span slot="customerSex" slot-scope="scope"> <span slot="customerSex" slot-scope="scope">
<span>{{ scope.scope.customerSex == 0 ? '未知' : scope.scope.customerSex == 1 ? '男' : scope.scope.customerSex == 2 ? '女' : '' }}</span> <span>{{ scope.scope.customerSex == 0 ? '未知' : scope.scope.customerSex == 1 ? '男' : scope.scope.customerSex == 2 ? '女' : '' }}</span>
...@@ -49,7 +49,24 @@ ...@@ -49,7 +49,24 @@
</el-tag> </el-tag>
</div> </div>
</div> </div>
<!-- 企微名称 -->
<div slot="nickNameList" slot-scope="scope" class="expandImg">
<div v-for="(list, idx) in scope.scope.nickNameList" :key="idx">
<div v-if="idx == 0">
<span>{{ list.nickName }}</span>
<span class="smallFontSize" :class="[list.type == 1 ? 'pure-green-text' : '', list.type == 2 ? 'pure-yello-text' : '']">@{{ list.corpName }}</span>
</div>
<span v-if="idx > 0">
<el-popover placement="right-start" trigger="hover" content="这是一段内容,这是一段内容,这是一段内容,这是一段内容。">
<div v-for="(i, index) in scope.scope.nickNameList" :key="index">
<span>{{ i.nickName }}</span>
<span style="height: 20px; font-family: PingFangSC-Regular; font-size: 12px; letter-spacing: 0; line-height: 20px; font-weight: 400;margin-left:2px" :class="[i.type == 1 ? 'pure-green-text' : '', list.type == 2 ? 'pure-yello-text' : '']">@{{ i.corpName }}</span>
</div>
<img class="imgEll" src="@/assets/tagsManage/ellipsis.png" alt="" slot="reference" />
</el-popover>
</span>
</div>
</div>
<span slot="customerPhone" slot-scope="scope"> <span slot="customerPhone" slot-scope="scope">
<span>{{ scope.scope.customerPhone == 'null' ? '' : scope.scope.customerPhone }}</span> <span>{{ scope.scope.customerPhone == 'null' ? '' : scope.scope.customerPhone }}</span>
</span> </span>
...@@ -163,8 +180,8 @@ export default { ...@@ -163,8 +180,8 @@ export default {
type: 'input', type: 'input',
inputType: 'text', inputType: 'text',
prop: 'customerPhone', prop: 'customerPhone',
label: '手机号', label: '联系电话',
placeholder: '请输入手机号' placeholder: '联系电话'
}, },
{ {
type: 'input', type: 'input',
...@@ -179,6 +196,13 @@ export default { ...@@ -179,6 +196,13 @@ export default {
prop: 'followStaff', prop: 'followStaff',
label: '跟进员工', label: '跟进员工',
placeholder: '请输入跟进员工' placeholder: '请输入跟进员工'
},
{
type: 'input',
inputType: 'text',
prop: 'nickName',
label: '企微名称',
placeholder: '请输入企微名称'
} }
], ],
...@@ -200,7 +224,13 @@ export default { ...@@ -200,7 +224,13 @@ export default {
minWidth: 150 minWidth: 150
}, },
{ {
label: '手机号', label: '企微名称',
prop: 'nickNameList',
addHtml: 'nickNameList',
minWidth: 220
},
{
label: '联系电话',
prop: 'customerPhone', prop: 'customerPhone',
addHtml: 'customerPhone', addHtml: 'customerPhone',
minWidth: 110 minWidth: 110
...@@ -232,7 +262,7 @@ export default { ...@@ -232,7 +262,7 @@ export default {
{ {
label: '所属渠道', label: '所属渠道',
prop: 'sourceChannel', prop: 'sourceChannel',
width: 100 width: 120
}, },
{ {
label: '添加来源', label: '添加来源',
...@@ -275,6 +305,15 @@ export default { ...@@ -275,6 +305,15 @@ export default {
} }
this.getDictionaryFun() this.getDictionaryFun()
}, },
// filters:{
// // 截取@后面的文字
// cutText(str){
// let index = str.lastIndexOf("\@")
// start = str.substring(0,index)
// res = str.substring(index+1,str.length)
// return
// }
// },
methods: { methods: {
followList(str) { followList(str) {
if (!str) { if (!str) {
...@@ -417,6 +456,30 @@ export default { ...@@ -417,6 +456,30 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
@import '@/styles/variables.scss'; @import '@/styles/variables.scss';
@import '@/styles/resetelement.scss'; @import '@/styles/resetelement.scss';
.expandImg {
display: flex;
justify-content: center;
.smallFontSize {
margin-left: 2px;
height: 20px;
font-family: PingFangSC-Regular;
font-size: 12px;
letter-spacing: 0;
line-height: 20px;
font-weight: 400;
}
.imgEll {
margin-left: 6.5px;
cursor: pointer;
// margin-bottom:3px;
}
}
.pure-green-text {
color: #61cc43;
}
.pure-yello-text {
color: #fb8f28;
}
.scrm-sub-client-container { .scrm-sub-client-container {
.pageTitle { .pageTitle {
margin-bottom: 20px; margin-bottom: 20px;
......
<template> <template>
<div> <div v-loading="loading2">
<div class="scrm-sub-client-container"> <div class="scrm-sub-client-container">
<div class="pageContent"> <div class="pageContent">
<div class="labelSet"> <div class="labelSet">
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
</div> </div>
</div> </div>
<div class="scrm-sub-client-container"> <div class="scrm-sub-client-container">
<div class="pageContent"> <div class="pageContent" >
<div> <div>
<div class="clientNumExp"> <div class="clientNumExp">
<div class="clientNum"> <div class="clientNum">
...@@ -44,6 +44,27 @@ ...@@ -44,6 +44,27 @@
<div class="export" @click="handleExport">导出</div> <div class="export" @click="handleExport">导出</div>
</div> </div>
<GLTable @setTableFinishFun="setTableFinishFun" v-if="isReload" ref="viewCustomers" :layout="layout" :hasNum="true" :tableData="tableData" :tableTotal="tableTotal" :noDataImg="url" :pageConf="pageConf" :searchForm="searchFormTable" @refreshTable="getCustomersListData" :tableParams="tableParams"> <GLTable @setTableFinishFun="setTableFinishFun" v-if="isReload" ref="viewCustomers" :layout="layout" :hasNum="true" :tableData="tableData" :tableTotal="tableTotal" :noDataImg="url" :pageConf="pageConf" :searchForm="searchFormTable" @refreshTable="getCustomersListData" :tableParams="tableParams">
<span slot="qiweimingcheng" slot-scope="scope">
<span>{{ myStandNo(scope.scope.carVin) }}</span>
</span>
<!-- 企微名称 -->
<div slot="nickNameList" slot-scope="scope" class="expandImg">
<div v-for="(list, idx) in scope.scope.nickNameList" :key="idx">
<div v-if="idx == 0">
<span>{{ list.nickName }}</span>
<span class="smallFontSize" :class="[list.type == 1 ? 'pure-green-text' : '', list.type == 2 ? 'pure-yello-text' : '']">@{{ list.corpName }}</span>
</div>
<span v-if="idx > 0">
<el-popover placement="right-start" trigger="hover" content="这是一段内容,这是一段内容,这是一段内容,这是一段内容。">
<div v-for="(i, index) in scope.scope.nickNameList" :key="index">
<span>{{ i.nickName }}</span>
<span style="height: 20px; font-family: PingFangSC-Regular; font-size: 12px; letter-spacing: 0; line-height: 20px; font-weight: 400;margin-left:2px" :class="[i.type == 1 ? 'pure-green-text' : '', list.type == 2 ? 'pure-yello-text' : '']">@{{ i.corpName }}</span>
</div>
<img class="imgEll" src="@/assets/tagsManage/ellipsis.png" alt="" slot="reference" />
</el-popover>
</span>
</div>
</div>
<span slot="carVin" slot-scope="scope"> <span slot="carVin" slot-scope="scope">
<span>{{ myStandNo(scope.scope.carVin) }}</span> <span>{{ myStandNo(scope.scope.carVin) }}</span>
</span> </span>
...@@ -100,6 +121,7 @@ export default { ...@@ -100,6 +121,7 @@ export default {
components: {}, components: {},
data() { data() {
return { return {
loading2: false,
checkedId: '', checkedId: '',
allListParams: { allListParams: {
tagLists: [] tagLists: []
...@@ -130,7 +152,7 @@ export default { ...@@ -130,7 +152,7 @@ export default {
type: 'input', type: 'input',
inputType: 'text', inputType: 'text',
prop: 'phoneNumber', prop: 'phoneNumber',
label: '手机号', label: '联系电话',
placeholder: '' placeholder: ''
}, },
{ {
...@@ -215,18 +237,19 @@ export default { ...@@ -215,18 +237,19 @@ export default {
tableColumns: [ tableColumns: [
{ {
label: '客户姓名', label: '客户姓名',
prop: 'customerName' prop: 'customerName',
// width: 160 minWidth: 150
}, },
// {
// label: '企微名称',
// prop: 'nickname'
// // minWidth:
// },
{ {
label: '手机号', label: '企微名称',
prop: 'customerPhone' prop: 'nickNameList',
// width: 160 addHtml: 'nickNameList',
minWidth: 220
},
{
label: '联系电话',
prop: 'customerPhone',
minWidth: 110
}, },
{ {
label: '车牌号', label: '车牌号',
...@@ -234,10 +257,10 @@ export default { ...@@ -234,10 +257,10 @@ export default {
// width: 160 // width: 160
}, },
{ {
label: '车架号(后6位)', label: '车架号(后6位)',
prop: 'carVin', prop: 'carVin',
addHtml: 'carVin' addHtml: 'carVin',
// width: 160 minWidth: '110'
}, },
{ {
label: '车系', label: '车系',
...@@ -246,19 +269,19 @@ export default { ...@@ -246,19 +269,19 @@ export default {
}, },
{ {
label: '跟进员工', label: '跟进员工',
prop: 'followStaff' prop: 'followStaff',
// width: 160 minWidth: 120
}, },
{ {
label: '是否加企微', label: '是否加企微',
prop: 'isJoin', prop: 'isJoin',
addHtml: 'isJoin' addHtml: 'isJoin',
// width: 160 width: 100
}, },
{ {
label: '添加时间', label: '添加时间',
prop: 'addTime' prop: 'addTime',
// width: 160 width: 150
} }
] ]
}, },
...@@ -329,12 +352,17 @@ export default { ...@@ -329,12 +352,17 @@ export default {
pageNum: this.$refs.viewCustomers.page.pageNum pageNum: this.$refs.viewCustomers.page.pageNum
} }
this.exportParams = {...JSON.parse(JSON.stringify(this.allListParams))} this.exportParams = {...JSON.parse(JSON.stringify(this.allListParams))}
this.loading2 = true;
getCustomersList(params).then(res => { getCustomersList(params).then(res => {
this.tableData = res.data this.tableData = res.data
this.tableTotal = res.count this.tableTotal = res.count
if (res.data.length == 0) { if (res.data.length == 0) {
this.$refs.viewCustomers.setTableHeightFun() this.$refs.viewCustomers.setTableHeightFun()
} }
setTimeout(()=>{
this.loading2 = false;
},300)
}) })
}, },
//获取标签组 //获取标签组
...@@ -487,6 +515,31 @@ export default { ...@@ -487,6 +515,31 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
@import '@/styles/variables.scss'; @import '@/styles/variables.scss';
@import '@/styles/resetelement.scss'; @import '@/styles/resetelement.scss';
.expandImg {
display: flex;
justify-content: center;
.smallFontSize {
margin-left: 2px;
height: 20px;
font-family: PingFangSC-Regular;
font-size: 12px;
letter-spacing: 0;
line-height: 20px;
font-weight: 400;
}
.imgEll {
margin-left: 6.5px;
cursor: pointer;
// margin-bottom:3px;
}
}
.pure-green-text {
color: #61cc43;
}
.pure-yello-text {
color: #fb8f28;
}
.noRelatedLabel { .noRelatedLabel {
margin-top: 59px; margin-top: 59px;
text-align: center; text-align: center;
...@@ -545,6 +598,7 @@ export default { ...@@ -545,6 +598,7 @@ export default {
border-radius: 4px; border-radius: 4px;
text-align: center; text-align: center;
border: 1px solid rgba(105, 105, 105, 0.3); border: 1px solid rgba(105, 105, 105, 0.3);
cursor: pointer;
} }
} }
::v-deep .el-dialog { ::v-deep .el-dialog {
...@@ -646,6 +700,7 @@ export default { ...@@ -646,6 +700,7 @@ export default {
font-size: 20px; font-size: 20px;
} }
.glsx-table { .glsx-table {
// min-width: 1250px;
/deep/ .el-table__fixed, /deep/ .el-table__fixed,
/deep/ .el-table__fixed-right { /deep/ .el-table__fixed-right {
height: 100% !important; //设置高优先,以覆盖内联样式 height: 100% !important; //设置高优先,以覆盖内联样式
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!