Commit 4274ecaf by 杨明

Merge branch 'v2.1.0' of http://192.168.3.233:8090/saas/scrm-micro-custom into yangm_dev_v2.1.0

2 parents c910e100 3d6cb570
......@@ -15,7 +15,7 @@
"echarts": "^5.2.0",
"element-ui": "^2.4.5",
"glsx-common": "^1.4.6",
"glsx-components": "^1.4.1",
"glsx-components": "^1.4.2",
"glsx-table": "^1.1.0",
"jquery": "^3.6.0",
"sha1": "^1.1.1",
......
......@@ -43,25 +43,29 @@
</p>
</div>
<div class="rightWrap" :style="{ 'min-height': heightBox + 'px' }">
<div class="choseRow">
<div class="choseItem" :class="{ activeItem: currentIndex == index }" v-for="(item, index) in titles" :key="index" @click="tabClick(index)">
<span>
{{ item.name }}
<template>({{ item.personNum || 0 }})个</template>
</span>
<div class="rightWrapBtn" style="display: flex">
<div class="choseRow">
<div class="choseItem" :class="{ activeItem: currentIndex == index }" v-for="(item, index) in titles" :key="index" @click="tabClick(index)">
<span>
{{ item.name }}
<template>({{ item.personNum || 0 }})个</template>
</span>
</div>
<el-button style="border: 1px solid #5850ff; color: #5850ff; right: 0px; position: absolute;background:none;" size="small" @click="handleExport(currentIndex)">导出</el-button>
</div>
</div>
<template v-if="currentIndex == 0">
<client ref="childComp" :url="url" @goDetail="goDetail"></client>
<client ref="childCompClient" :url="url" @goDetail="goDetail"></client>
</template>
<template v-if="currentIndex == 1">
<follow-employee ref="childComp" :url="url"></follow-employee>
<follow-employee ref="childCompFollow" :url="url"></follow-employee>
</template>
<template v-if="currentIndex == 2">
<leave-group-client ref="childComp" :url="url" @goDetail="goDetail"></leave-group-client>
<leave-group-client ref="childCompLeave" :url="url" @goDetail="goDetail"></leave-group-client>
</template>
<template v-if="currentIndex == 3">
<potential-client ref="childComp" :url="url"></potential-client>
<potential-client ref="childCompPotential" :url="url"></potential-client>
</template>
<basic-dialog title="" width="547px" :isVisible="dialogVisible" btnOkLabel="我知道了" :isHasCancelBtn="false" @confirmDialog="handleConfirm" @closeDialog="handleClose">
......@@ -145,6 +149,17 @@ export default {
// this.$set(this.titles[0], 'personNum', num)
// }
// },
handleExport(currentIndex) {
if (currentIndex == 0) {
this.$refs.childCompClient.handleExport()
} else if (currentIndex == 1) {
this.$refs.childCompFollow.handleExport()
} else if (currentIndex == 2) {
this.$refs.childCompLeave.handleExport()
} else {
this.$refs.childCompPotential.handleExport()
}
},
tabClick(index) {
this.currentIndex = index
},
......@@ -286,40 +301,43 @@ export default {
background-color: #fff;
padding: 20px;
padding-top: 50px;
.choseRow {
position: absolute;
width: 100%;
left: 0;
top: 0;
.rightWrapBtn {
display: flex;
background-color: $bgColor;
z-index: 10;
.choseItem {
height: 40px;
line-height: 40px;
width: 180px;
box-sizing: border-box;
background: #ffffff;
text-align: center;
border: 1px solid #eeedff;
cursor: pointer;
&:first-child {
border-left: 0;
}
span {
font-weight: 400;
font-size: 14px;
color: #37383a;
.choseRow {
position: absolute;
width: 100%;
left: 0;
top: 0;
display: flex;
background-color: $bgColor;
z-index: 10;
.choseItem {
height: 40px;
line-height: 40px;
width: 180px;
box-sizing: border-box;
background: #ffffff;
text-align: center;
border: 1px solid #eeedff;
cursor: pointer;
&:first-child {
border-left: 0;
}
span {
font-weight: 400;
font-size: 14px;
color: #37383a;
}
}
}
.activeItem {
border-radius: 4px 4px 0 0;
span {
color: $btnBlue;
font-weight: 600;
.activeItem {
border-radius: 4px 4px 0 0;
span {
color: $btnBlue;
font-weight: 600;
}
box-sizing: border-box;
border-bottom: 0 !important;
}
box-sizing: border-box;
border-bottom: 0 !important;
}
}
......
......@@ -2,12 +2,12 @@
<div class="sub-container">
<GLCombiForm class="sub-form-style" :formObj="searchForm" :formData="clientGroupFormList" @handleOk="searchTable" @handleRest="resetTable"></GLCombiForm>
<!-- :tableId="$route.query.id" 去掉,表格组件也应该去掉 -->
<div class="leadList">
<!-- <div class="leadList">
<div>
<span></span>
</div>
<el-button size="small" @click="handleExport">导出</el-button>
</div>
</div> -->
<GLTable ref="clientGroupDetail" @setTableFinishFun="setTableFinishFun" :hasNum="true" :pageConf="pageConf" :getListApi="getListApi" :beforeSearchFn="beforeSearchFn" :searchForm="searchFormTable" :tableParams="tableParams" :headerStyle="{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }" :noDataImg="url">
<span slot="customerName" slot-scope="scope">
<el-tooltip effect="dark" :content="scope.scope.customerName" placement="top">
......@@ -45,9 +45,7 @@ export default {
type: 'datePicker',
name: 'daterange',
label: '入群时间',
datePickerAttrs: {
'value-format': 'yyyy-MM-dd'
},
valueFormat: 'yyyy-MM-dd',
pickerOptions: {
disabledDate(time) {
return time.getTime() > Date.now() || time.getTime() < new Date('2017-12-31').getTime()
......
<template>
<div class="sub-container">
<GLCombiForm class="sub-form-style" :formObj="searchForm" :formData="clientGroupFormList" @handleOk="searchTable" @handleRest="resetTable">
</GLCombiForm>
<div class="leadList">
<GLCombiForm class="sub-form-style" :formObj="searchForm" :formData="clientGroupFormList" @handleOk="searchTable" @handleRest="resetTable"></GLCombiForm>
<!-- <div class="leadList">
<div>
<span></span>
</div>
<el-button size="small" @click="handleExport">导出</el-button>
</div>
</div> -->
<GLTable ref="clientGroupDetail" @setTableFinishFun="setTableFinishFun" :hasNum="true" :pageConf="pageConf" :getListApi="getListApi" :beforeSearchFn="beforeSearchFn" :searchForm="searchFormTable" :tableParams="tableParams" :headerStyle="{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }" :noDataImg="url">
<span slot="customerSex" slot-scope="scope">
<span>{{ scope.scope.customerSex == 2 ? '女' : scope.scope.customerSex == 1 ? '男' : '未知' }}</span>
......@@ -40,9 +39,7 @@ export default {
type: 'datePicker',
name: 'daterange',
label: '入群时间',
datePickerAttrs: {
'value-format': 'yyyy-MM-dd'
},
valueFormat: 'yyyy-MM-dd',
pickerOptions: {
disabledDate(time) {
return time.getTime() > Date.now() || time.getTime() < new Date('2017-12-31').getTime()
......
<template>
<div class="sub-container">
<GLCombiForm class="sub-form-style" :formObj="searchForm" :formData="clientGroupFormList" @handleOk="searchTable" @handleRest="resetTable"></GLCombiForm>
<div class="leadList">
<!-- <div class="leadList">
<div>
<span></span>
</div>
<el-button size="small" @click="handleExport">导出</el-button>
</div>
</div> -->
<GLTable ref="clientGroupDetail" @setTableFinishFun="setTableFinishFun" :hasNum="true" :pageConf="pageConf" :getListApi="getListApi" :beforeSearchFn="beforeSearchFn" :searchForm="searchFormTable" :tableParams="tableParams" :headerStyle="{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }" :noDataImg="url">
<span slot="customerName" class="flex-center" slot-scope="scope">
<el-tooltip effect="dark" :content="scope.scope.customerName" placement="top">
......@@ -44,9 +44,7 @@ export default {
type: 'datePicker',
name: 'daterange',
label: '入群时间',
datePickerAttrs: {
'value-format': 'yyyy-MM-dd'
},
valueFormat: 'yyyy-MM-dd',
pickerOptions: {
disabledDate(time) {
return time.getTime() > Date.now() || time.getTime() < new Date('2017-12-31').getTime()
......
<template>
<div class="sub-container">
<GLCombiForm :formObj="searchForm" :formData="clientGroupFormList" @handleOk="searchTable" @handleRest="resetTable">n></GLCombiForm>
<div class="leadList">
<!-- <div class="leadList">
<div>
<span></span>
</div>
<el-button size="small" @click="handleExport">导出</el-button>
</div>
</div> -->
<!-- :tableId="$route.query.id" 去掉,表格组件也应该去掉 -->
<GLTable ref="clientGroupDetail" @setTableFinishFun="setTableFinishFun" :hasNum="true" :pageConf="pageConf" :getListApi="getListApi" :beforeSearchFn="beforeSearchFn" :searchForm="searchFormTable" :tableParams="tableParams" :headerStyle="{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }" :noDataImg="url">
<span slot="customerName" class="flex-center" slot-scope="scope">
......@@ -45,9 +45,7 @@ export default {
type: 'datePicker',
name: 'daterange',
label: '入群时间',
datePickerAttrs: {
'value-format': 'yyyy-MM-dd'
},
valueFormat: 'yyyy-MM-dd',
pickerOptions: {
disabledDate(time) {
return time.getTime() > Date.now() || time.getTime() < new Date('2017-12-31').getTime()
......
......@@ -13,8 +13,8 @@
<div class="leftWrapTop">
<div class="baseInfo">
<span>基本信息</span>
<i class="el-icon-arrow-down iconStyle" @click="switchBaseInfo()" v-if="isShowBaseInfo"></i>
<i class="el-icon-arrow-up iconStyle" @click="switchBaseInfo()" v-else></i>
<i class="el-icon-arrow-up iconStyle" @click="switchBaseInfo()" v-if="isShowBaseInfo"></i>
<i class="el-icon-arrow-down iconStyle" @click="switchBaseInfo()" v-else></i>
</div>
<div class="leftWrapBottom" v-if="isShowBaseInfo">
<p>
......@@ -121,11 +121,12 @@
</div>
<div class="expande-button" v-if="expande" @click="expandeClick(false, 'expande')">
<span class="font-14 color-58">收起</span>
<i class="el-icon-arrow-down color-58"></i>
<i class="el-icon-arrow-up color-58"></i>
</div>
<div class="expande-button" @click="expandeClick(true, 'expande')" v-if="vehicleTableData.length > 1 && !expande">
<span class="font-14 color-58">更多车辆</span>
<i class="el-icon-arrow-up color-58"></i>
<i class="el-icon-arrow-down color-58"></i>
</div>
</div>
<layout-row class="layout-detail" :layoutData="vehicleTableData" :layoutParams="vehicleTableParams" :isHidden="expande"></layout-row>
......@@ -137,11 +138,12 @@
</div>
<div class="expande-button" v-if="deviceExpande" @click="expandeClick(false, 'deviceExpande')">
<span class="font-14 color-58">收起</span>
<i class="el-icon-arrow-down color-58"></i>
<i class="el-icon-arrow-up color-58"></i>
</div>
<div class="expande-button" @click="expandeClick(true, 'deviceExpande')" v-if="deviceTableData.length > 1 && !deviceExpande">
<span class="font-14 color-58">更多设备</span>
<i class="el-icon-arrow-up color-58"></i>
<i class="el-icon-arrow-down color-58"></i>
</div>
</div>
<layout-row class="layout-detail" :layoutData="deviceTableData" :layoutParams="deviceTableParams" :isHidden="deviceExpande"></layout-row>
......@@ -154,11 +156,12 @@
</div>
<div class="expande-button" v-if="guaranteeExpande" @click="expandeClick(false, 'guaranteeExpande')">
<span class="font-14 color-58">收起</span>
<i class="el-icon-arrow-down color-58"></i>
<i class="el-icon-arrow-up color-58"></i>
</div>
<div class="expande-button" @click="expandeClick(true, 'guaranteeExpande')" v-if="guaranteeTableData.length > 1 && !guaranteeExpande">
<span class="font-14 color-58">更多保单</span>
<i class="el-icon-arrow-up color-58"></i>
<i class="el-icon-arrow-down color-58"></i>
</div>
</div>
<layout-row class="layout-detail" :layoutData="guaranteeTableData" :layoutParams="guaranteeTableParams" :isHidden="guaranteeExpande"></layout-row>
......
......@@ -17,6 +17,7 @@
<span>{{ scope.scope.customerSex == 0 ? '未知' : scope.scope.customerSex == 1 ? '男' : scope.scope.customerSex == 2 ? '女' : '' }}</span>
</span>
<div slot="followStaff" class="entmicro" slot-scope="scope">
<div v-if="!followList(scope.scope.followStaff).length">--</div>
<div class="entmicro-tag" style="padding-right:3px" v-for="(tag, idx) in followList(scope.scope.followStaff)" :key="idx">
<el-tooltip effect="dark" :content="tag" placement="top">
<el-tag type="info" class="ellipsis-1" v-if="idx < 2" :disable-transitions="false">
......@@ -27,9 +28,9 @@
<el-tag type="info" v-if="followList(scope.scope.followStaff).length > 2 && idx == 2">
<el-popover placement="top" width="600" trigger="hover" content="这是一段内容,这是一段内容,这是一段内容,这是一段内容。">
<div class="entmicro-hover" slot="reference">...({{ followList(scope.scope.followStaff).length }})</div>
<div slot="reference">...({{ followList(scope.scope.followStaff).length }})</div>
<div class="entmicro-hover">
<el-tag type="info" style="margin-right: 10px; margin-bottom: 10px" v-for="(i, index) in followList(scope.scope.followStaff)" :key="index" :disable-transitions="false">
<el-tag style="margin-left:4px" type="info" v-for="(i, index) in followList(scope.scope.followStaff)" :key="index" :disable-transitions="false">
<i class="el-icon-user-solid" style="color: #75acff"></i>
{{ i }}
</el-tag>
......@@ -40,6 +41,7 @@
</div>
<!-- 企微名称 -->
<div slot="nickNameList" slot-scope="scope" class="expandImg">
<div v-if="!scope.scope.nickNameList.length">--</div>
<div v-for="(list, idx) in scope.scope.nickNameList" :key="idx">
<div v-if="idx == 0">
<span>{{ list.nickName }}</span>
......@@ -57,9 +59,8 @@
</div>
</div>
<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 slot="addWay" slot-scope="scope">
<el-tooltip effect="dark" :content="toLabel(scope.scope.addWay)" placement="top">
<span style="display: inline-block; max-width: 120px; text-align: left">{{ toLabel(scope.scope.addWay) }}</span>
......@@ -100,7 +101,10 @@ export default {
url: url,
sloading: false,
CLIENTSTATUS: this.$Constants.CLIENT_STATUS,
searchForm: {},
searchForm: {
followStaff: '',
addWay: ''
},
searchFormTable: {},
clientManageFormList: [
{
......@@ -288,16 +292,17 @@ export default {
{
label: '操作',
prop: 'optionBtns',
width: '60px',
width: '62px',
addHtml: 'optionBtns',
fixed: 'right'
}
]
},
followList2: [],
getListApi: getTableList,
sourceList: [],
merchantModel: 1,
sourceList: [],
followstaffList: [],
queryFlag: 0,
accountLevel: 0, //1,2,3,4工厂,省代,市代,门店
flushTime: false
}
......@@ -372,7 +377,18 @@ export default {
// }
// resolve()
// })
return new Promise((resolve, reject) => {
return new Promise(async (resolve, reject) => {
if (Object.keys(this.$route.query).length && this.queryFlag == 0) {
console.log('进来了')
const res = JSON.parse(window.localStorage.getItem('sourceList'))
this.searchForm.followStaff = this.$route.query.staffName || ''
let add_way = this.$route.query.addWay || ''
let addWayObj = res.find(i => i.label === add_way)
let addWayVal = addWayObj.value
this.searchForm.addWay = addWayVal
this.queryFlag =1
}
this.searchFormTable = this.getParams()
resolve()
})
......@@ -388,7 +404,7 @@ export default {
})
let data = res.map(item => {
return {
...item,
// ...item,
label: item.dictLabel,
value: item.dictValue
}
......@@ -419,7 +435,7 @@ export default {
}
})
staff.unshift({ label: '全部', value: '' })
this.followstaffList = staff
this.$nextTick(() => {
this.clientManageFormList[id].optionList = staff
})
......@@ -445,8 +461,6 @@ export default {
},
//搜索表格
searchTable() {
console.log('进来了1111111111111111111111111')
console.log(this.searchForm)
this.$refs.clientManage.refreshTable()
},
syncClick() {
......@@ -467,10 +481,6 @@ export default {
},
//重置表格
resetTable() {
// this.isReload = false
// this.$nextTick(() => {
// this.isReload = true
// })
this.searchForm = {}
this.$refs.clientManage.refreshTable()
// 点击之后强制页面刷新
......@@ -491,6 +501,12 @@ export default {
mounted() {
let clientHeight = document.documentElement.clientHeight
this.heightBox = clientHeight - 130
// 页面首次加载添加缓存
// if (sessionStorage.getItem('isReload')) {
// this.$$route.query = ''
// } else {
// sessionStorage.setItem('isReload', true)
// }
}
}
</script>
......@@ -571,33 +587,13 @@ export default {
}
.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;
display: flex;
i {
color: #75acff;
margin-right: 3px;
font-size: 14px;
}
}
.entmicro-tag + .entmicro-tag {
margin-top: 4px;
}
// }
}
.el-tag {
......
......@@ -14,7 +14,7 @@
<yl-descriptions v-if="leadType == 5 || leadType == 6" ref="ylDeacriptions" :tableModel="orderDescriModel" :showData="leadBaseList" />
</div>
<!-- 跟进记录 -->
<div class="baseTitle">
<div class="baseTitle" >
<p class="title">跟进记录</p>
<hr />
<div class="timestamp" v-if="this.leadFollowRecord.length > 0">
......@@ -28,7 +28,7 @@
</el-timeline-item>
</el-timeline>
</div>
<div class="noRecord" v-else>
<div :style="{ 'height': clientHeight- 450 + 'px' }" class="noRecord" v-else>
<img src="@/assets/leadManage/noRecord.png" alt="" />
</div>
</div>
......@@ -268,6 +268,8 @@ export default {
.noRecord {
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;//img如果超出这个div会隐藏超出部分
}
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!