Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-custom
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c4b41bc2
authored
Jan 07, 2022
by
李长胜
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1.0.2内容调整
1 parent
291cb446
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
998 additions
and
494 deletions
src/api/modules/clientGroupManage.js
src/api/modules/clientManage.js
src/api/modules/tagsManage.js
src/common/util.js
src/components/search-form/index.vue
src/components/tipPanel/index.vue
src/setup/qiankun.js
src/views/clientGroupManage/clientGroupDetail.vue
src/views/clientGroupManage/clientGroupDetailNext.vue → src/views/clientGroupManage/clientGroupDetailold.vue
src/views/clientGroupManage/components/client.vue
src/views/clientGroupManage/components/followEmployee.vue
src/views/clientGroupManage/components/leaveGroupClient.vue
src/views/clientGroupManage/components/potentialClient.vue
src/views/clientGroupManage/index.vue
src/views/clientManage/clientDetail.vue
src/views/clientManage/index.vue
src/views/tagsManage/index.vue
src/api/modules/clientGroupManage.js
View file @
c4b41bc
...
@@ -57,3 +57,106 @@
...
@@ -57,3 +57,106 @@
})
})
}
}
/*
未授权时,打开进入页面即弹出提示。 触发条件:跟企业微信相关且该账户暂未绑定企业微信时提示
*/
export
function
getStatus
(
params
)
{
params
.
method
=
'scrm.api.work.wechat.access.status'
return
http
({
url
:
'/rop-scrm-wechat/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
/*
跟进员工
*/
// POST /router/entmicro.api.customer.base.staff.page/1.0.0
export
function
getDetailStaffTableList
(
params
){
params
.
method
=
'entmicro.api.customer.base.staff.page'
return
http
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
/*
退群客户
*/
export
function
getDetailQuitTableList
(
params
){
params
.
method
=
'entmicro.api.customer.base.quit.cust.page'
return
http
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
/*
潜在客户
*/
export
function
getDetailPotentialTableList
(
params
){
params
.
method
=
'entmicro.api.customer.base.potential.cust.page'
return
http
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
//客户群管理(群聊管理)导出
export
function
clientGroupExportApi
(
params
){
params
.
method
=
`entmicro.api.customer.base.list.export`
return
http
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'GET'
,
data
:
params
,
sign
:
true
})
}
// 全部客户导出
export
function
clientExportApi
(
params
){
params
.
method
=
`entmicro.api.customer.base.cust.export`
return
http
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'GET'
,
data
:
params
,
sign
:
true
})
}
//跟进员工导出
export
function
followEmployeeExportApi
(
params
){
params
.
method
=
`entmicro.api.customer.base.staff.export`
return
http
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'GET'
,
data
:
params
,
sign
:
true
})
}
//退群客户导出
export
function
leaveGroupExportApi
(
params
){
params
.
method
=
`entmicro.api.customer.base.quit.export`
return
http
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'GET'
,
data
:
params
,
sign
:
true
})
}
//潜在客户导出
export
function
potentialClientExportApi
(
params
){
params
.
method
=
`entmicro.api.customer.base.potential.export`
return
http
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'GET'
,
data
:
params
,
sign
:
true
})
}
\ No newline at end of file
\ No newline at end of file
src/api/modules/clientManage.js
View file @
c4b41bc
...
@@ -103,3 +103,15 @@
...
@@ -103,3 +103,15 @@
sign
:
true
sign
:
true
})
})
}
}
// entmicro.api.customer.list.export
//客户信息管理导出
export
function
clientManageExportApi
(
params
){
params
.
method
=
`entmicro.api.customer.list.export`
return
http
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'GET'
,
data
:
params
,
sign
:
true
})
}
\ No newline at end of file
\ No newline at end of file
src/api/modules/tagsManage.js
View file @
c4b41bc
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
})
})
}
}
// /router/datahub.api.label.addlabel/1.0.0
export
function
newAddTag
(
params
){
export
function
newAddTag
(
params
){
params
.
method
=
'scrm.api.datahub.label.addlabel'
params
.
method
=
'scrm.api.datahub.label.addlabel'
// params.method='scrm.api.datahub.labelgroup.addLabel'
// params.method='scrm.api.datahub.labelgroup.addLabel'
...
...
src/common/util.js
View file @
c4b41bc
...
@@ -5,6 +5,42 @@ import Vue from 'vue'
...
@@ -5,6 +5,42 @@ import Vue from 'vue'
let
loadingInstance
=
''
let
loadingInstance
=
''
export
const
Util
=
{
export
const
Util
=
{
getExplorer
:
function
()
{
var
ua
=
navigator
.
userAgent
.
toLocaleLowerCase
()
var
browserType
=
null
if
(
ua
.
match
(
/msie/
)
!=
null
||
ua
.
match
(
/trident/
)
!=
null
)
{
browserType
=
'IE'
}
else
if
(
ua
.
match
(
/firefox/
)
!=
null
)
{
browserType
=
'火狐'
}
else
if
(
ua
.
match
(
/ubrowser/
)
!=
null
)
{
browserType
=
'UC'
}
else
if
(
ua
.
match
(
/opera/
)
!=
null
)
{
browserType
=
'欧朋'
}
else
if
(
ua
.
match
(
/bidubrowser/
)
!=
null
)
{
browserType
=
'百度'
}
else
if
(
ua
.
match
(
/metasr/
)
!=
null
)
{
browserType
=
'搜狗'
}
else
if
(
ua
.
match
(
/tencenttraveler/
)
!=
null
||
ua
.
match
(
/qqbrowse/
)
!=
null
)
{
browserType
=
'QQ'
}
else
if
(
ua
.
match
(
/maxthon/
)
!=
null
)
{
browserType
=
'遨游'
}
else
{
browserType
=
'谷歌'
}
return
browserType
},
exportFn
:
function
(
url
)
{
let
browserType
=
getExplorer
()
if
(
browserType
==
'QQ'
)
{
window
.
open
(
url
)
return
}
let
iframe
=
document
.
createElement
(
'iframe'
)
iframe
.
style
.
display
=
'none'
iframe
.
src
=
url
document
.
body
.
appendChild
(
iframe
)
},
/**
/**
* 校验手机号码格式
* 校验手机号码格式
*/
*/
...
@@ -122,4 +158,6 @@ export const Util = {
...
@@ -122,4 +158,6 @@ export const Util = {
export
const
validationTel
=
Util
.
validationTel
;
export
const
validationTel
=
Util
.
validationTel
;
export
const
checkPhone
=
Util
.
checkPhone
;
export
const
checkPhone
=
Util
.
checkPhone
;
export
const
getExplorer
=
Util
.
getExplorer
;
export
const
exportFn
=
Util
.
exportFn
;
src/components/search-form/index.vue
View file @
c4b41bc
...
@@ -18,6 +18,7 @@
...
@@ -18,6 +18,7 @@
</div>
</div>
</div>
</div>
<div
class=
"firstRowBtn"
v-if=
"!expande && isShowBtns && isNeedThreeBtns"
>
<div
class=
"firstRowBtn"
v-if=
"!expande && isShowBtns && isNeedThreeBtns"
>
<el-button
type=
"primary"
size=
"small"
@
click=
"handleExport"
>
导出
</el-button>
<el-button
plain
@
click=
"resetTable"
size=
"small"
>
重置
</el-button>
<el-button
plain
@
click=
"resetTable"
size=
"small"
>
重置
</el-button>
<el-button
type=
"primary"
@
click=
"searchTable"
size=
"small"
>
查询
</el-button>
<el-button
type=
"primary"
@
click=
"searchTable"
size=
"small"
>
查询
</el-button>
<!-- v-if="(merchantModel == 1 && accountLevel == 1) || (merchantModel == 2 && accountLevel == 4)" -->
<!-- v-if="(merchantModel == 1 && accountLevel == 1) || (merchantModel == 2 && accountLevel == 4)" -->
...
@@ -92,6 +93,10 @@ export default {
...
@@ -92,6 +93,10 @@ export default {
type
:
Boolean
,
type
:
Boolean
,
default
:
false
default
:
false
},
},
isThreeRowShow
:{
type
:
Boolean
,
default
:
false
},
merchantModel
:
{
merchantModel
:
{
type
:
Number
,
type
:
Number
,
default
:
1
default
:
1
...
@@ -123,8 +128,9 @@ export default {
...
@@ -123,8 +128,9 @@ export default {
//调用默认时间(30天)
//调用默认时间(30天)
this
.
getPassMonthFormatDate
()
this
.
getPassMonthFormatDate
()
}
}
this
.
$nextTick
(()
=>
{
var
sf
=
document
.
getElementById
(
'searchForm'
)
var
sf
=
document
.
getElementById
(
'searchForm'
)
// this.$nextTick(() => {
console
.
log
(
sf
.
clientWidth
,
'555'
)
if
(
sf
.
clientWidth
<
1280
&&
this
.
isHasSyncBtn
)
{
if
(
sf
.
clientWidth
<
1280
&&
this
.
isHasSyncBtn
)
{
console
.
log
(
sf
.
clientWidth
,
'sf'
)
console
.
log
(
sf
.
clientWidth
,
'sf'
)
document
.
querySelector
(
'.itemWidth'
).
style
.
maxWidth
=
700
+
'px'
document
.
querySelector
(
'.itemWidth'
).
style
.
maxWidth
=
700
+
'px'
...
@@ -132,16 +138,26 @@ export default {
...
@@ -132,16 +138,26 @@ export default {
if
(
sf
.
clientWidth
<
952
&&
this
.
isHasSyncBtn
)
{
if
(
sf
.
clientWidth
<
952
&&
this
.
isHasSyncBtn
)
{
this
.
isShowBtns
=
false
this
.
isShowBtns
=
false
}
}
let
lineHeight
=
75
//75
let
lineHeight
=
75
//75
if
(
document
.
getElementById
(
'searchForm'
).
offsetHeight
>
lineHeight
*
2
)
{
if
(
document
.
getElementById
(
'searchForm'
).
offsetHeight
>
lineHeight
*
2
)
{
//
console.log('第一次searchForm高度', document.getElementById('searchForm').offsetHeight)
console
.
log
(
'第一次searchForm高度'
,
document
.
getElementById
(
'searchForm'
).
offsetHeight
)
this
.
expande
=
false
this
.
expande
=
false
this
.
needShowExpande
=
true
this
.
needShowExpande
=
true
}
else
{
}
else
{
this
.
needShowExpande
=
false
this
.
needShowExpande
=
false
this
.
expande
=
true
this
.
expande
=
true
}
}
if
(
sf
.
clientWidth
<
840
&&
this
.
isThreeRowShow
){
document
.
querySelector
(
'.itemWidth'
).
style
.
minHeight
=
document
.
querySelector
(
'.itemWidth'
).
offsetHeight
+
50
+
'px'
// 客户群里面四个表做特殊处理,当为苹果笔记本电脑尺寸时,不是现实展开收起按钮
this
.
needShowExpande
=
false
this
.
expande
=
true
}
})
//有数据不算表格高度,没数据算高度
//有数据不算表格高度,没数据算高度
// setTimeout(() => {
// setTimeout(() => {
// this.$emit('setTableHeightEvent')
// this.$emit('setTableHeightEvent')
...
@@ -209,12 +225,15 @@ export default {
...
@@ -209,12 +225,15 @@ export default {
syncClick
()
{
syncClick
()
{
this
.
$emit
(
'syncClick'
)
this
.
$emit
(
'syncClick'
)
},
},
handleExport
(){
this
.
$emit
(
'handleExport'
)
},
expandeClick
()
{
expandeClick
()
{
this
.
expande
=
!
this
.
expande
this
.
expande
=
!
this
.
expande
setTimeout
(()
=>
{
//
setTimeout(() => {
this
.
$emit
(
'setTableHeightEvent'
)
//
this.$emit('setTableHeightEvent')
},
200
)
//
}, 200)
},
},
//时间选择器显示默认一月的时间
//时间选择器显示默认一月的时间
/* 获取过去时间,并传值给现在时间 */
/* 获取过去时间,并传值给现在时间 */
...
@@ -257,7 +276,7 @@ export default {
...
@@ -257,7 +276,7 @@ export default {
</
script
>
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
.search-form
{
.search-form
{
padding
:
18px
25px
0
0
;
padding
:
18px
0
0
0
;
position
:
relative
;
position
:
relative
;
overflow
:
hidden
;
overflow
:
hidden
;
min-height
:
50px
;
min-height
:
50px
;
...
@@ -271,11 +290,11 @@ export default {
...
@@ -271,11 +290,11 @@ export default {
right
:
52px
;
right
:
52px
;
z-index
:
1
;
z-index
:
1
;
.el-button
+
.el-button
{
.el-button
+
.el-button
{
margin-left
:
2
0px
;
margin-left
:
1
0px
;
}
}
}
}
.itemWidth
{
.itemWidth
{
max-width
:
10
50
px
;
max-width
:
10
27
px
;
min-width
:
660px
;
min-width
:
660px
;
}
}
.expande-button-wrap
{
.expande-button-wrap
{
...
@@ -314,6 +333,10 @@ export default {
...
@@ -314,6 +333,10 @@ export default {
.el-select
{
.el-select
{
width
:
215px
;
width
:
215px
;
}
}
.el-select
>
.el-input
{
width
:
215px
;
}
.el-form-item__content
{
.el-form-item__content
{
width
:
100%
;
width
:
100%
;
}
}
...
...
src/components/tipPanel/index.vue
0 → 100644
View file @
c4b41bc
<
template
>
<div>
<div
class=
"initPanel"
:style=
"
{ width: panelWidth, minHeight: panelMinHeight }">
{{
panelContent
}}
<img
src=
"@/assets/tagsManage/Shape.png"
alt=
""
/>
<i
class=
"el-icon-close"
v-if=
"isShowCloseBtn"
@
click=
"closeInitPanel"
></i>
</div>
</div>
</
template
>
<
script
>
export
default
{
props
:
{
panelWidth
:
{
type
:
String
,
default
:
''
},
panelMinHeight
:
{
type
:
String
,
default
:
'20px'
},
panelContent
:
{
type
:
String
,
default
:
'请传入面板内容'
},
isShowCloseBtn
:{
type
:
Boolean
,
default
:
false
}
},
data
()
{
return
{}
},
methods
:
{
closeInitPanel
()
{
this
.
$emit
(
'closePanel'
)
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.initPanel
{
position
:
relative
;
margin-bottom
:
20px
;
box-sizing
:
border-box
;
background
:
#e6e9ff
;
border
:
1px
solid
#5850ff
;
border-radius
:
4px
;
padding
:
10px
38px
;
font-size
:
14px
;
font-weight
:
400
;
color
:
rgba
(
0
,
0
,
0
,
0.65
);
line-height
:
20px
;
img
{
position
:
absolute
;
left
:
16px
;
top
:
13px
;
}
i
{
position
:
absolute
;
top
:
14px
;
right
:
18px
;
width
:
9px
;
height
:
9px
;
cursor
:
pointer
;
}
}
</
style
>
src/setup/qiankun.js
View file @
c4b41bc
...
@@ -19,6 +19,7 @@ export async function bootstrap({ name, id, history, common, messenger, globalSt
...
@@ -19,6 +19,7 @@ export async function bootstrap({ name, id, history, common, messenger, globalSt
Vue
.
prototype
.
$globalState
=
globalState
Vue
.
prototype
.
$globalState
=
globalState
Vue
.
prototype
.
$common
=
common
Vue
.
prototype
.
$common
=
common
Vue
.
prototype
.
$http
=
new
common
.
Http
({
response
,
request
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http
=
new
common
.
Http
({
response
,
request
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
// Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: "mini-14eda653-4284-4165-bb85-325bb82a516d-rop" } })
Vue
.
prototype
.
$http_common
=
new
common
.
Http
({
response
,
signWay
:
"md5"
,
request
:
request_common
,
sign
:
sign_common
,
secret
,
alert
:
ElementUI
.
Message
.
error
,
headers
:
{
TGT
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http_common
=
new
common
.
Http
({
response
,
signWay
:
"md5"
,
request
:
request_common
,
sign
:
sign_common
,
secret
,
alert
:
ElementUI
.
Message
.
error
,
headers
:
{
TGT
:
globalState
.
session
.
token
}
})
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
//Vue.use(GLButton, { permissions: globalState.permissions || ['1-1-1-1', '2-1-1-1', '3-1-1-1'] })
//Vue.use(GLButton, { permissions: globalState.permissions || ['1-1-1-1', '2-1-1-1', '3-1-1-1'] })
...
...
src/views/clientGroupManage/clientGroupDetail.vue
View file @
c4b41bc
...
@@ -43,35 +43,27 @@
...
@@ -43,35 +43,27 @@
</p>
</p>
</div>
</div>
<div
class=
"rightWrap"
>
<div
class=
"rightWrap"
>
<p>
<div
class=
"choseRow"
>
<span>
全部客户
</span>
<div
class=
"choseItem"
:class=
"
{ activeItem: currentIndex == index }" v-for="(item, index) in titles" :key="index" @click="tabClick(index)">
<span>
{{
clientTableDataNum
||
0
}}
个
</span>
<span>
</p>
{{
item
.
name
}}
<search-form
class=
"searchTop border-shadow"
:isNeedThreeBtns=
"false"
:showDefaultTime=
"false"
:formModel=
"searchForm"
:formList=
"clientGroupFormList"
@
setTableHeightEvent=
"setTableHeightEvent"
>
<template>
(
{{
item
.
personNum
||
0
}}
)个
</
template
>
<span
class=
"inline-b"
slot=
"form-slot"
>
</span>
<el-button
plain
@
click=
"resetTable"
>
重置
</el-button>
</div>
<el-button
type=
"primary"
@
click=
"searchTable"
>
查询
</el-button>
</div>
</span>
<
template
v-if=
"currentIndex == 0"
>
</search-form>
<client
ref=
"childComp"
:url=
"url"
@
goDetail=
"goDetail"
></client>
<!-- :tableId="$route.query.id" 去掉,表格组件也应该去掉 -->
</
template
>
<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">
<
template
v-if=
"currentIndex == 1"
>
<span
slot=
"customerName"
class=
"flex-center"
slot-scope=
"scope"
>
<follow-employee
ref=
"childComp"
:url=
"url"
></follow-employee>
<el-tooltip
effect=
"dark"
:content=
"scope.scope.customerName"
placement=
"top"
>
</
template
>
<span
class=
"ellipsis-1"
style=
"display: inline-block; max-width: 70px; text-align: left"
>
{{
scope
.
scope
.
customerName
}}
</span>
<
template
v-if=
"currentIndex == 2"
>
</el-tooltip>
<leave-group-client
ref=
"childComp"
:url=
"url"
@
goDetail=
"goDetail"
></leave-group-client>
</
template
>
<
template
v-if=
"currentIndex == 3"
>
<potential-client
ref=
"childComp"
:url=
"url"
></potential-client>
</
template
>
<span
class=
"pure-blue-text"
>
{{
scope
.
scope
.
type
==
1
?
'@微信'
:
scope
.
scope
.
type
==
2
?
'@企微'
:
''
}}
</span>
</span>
<span
slot=
"customerSex"
slot-scope=
"scope"
>
<span>
{{
scope
.
scope
.
customerSex
==
2
?
'女'
:
scope
.
scope
.
customerSex
==
1
?
'男'
:
'未知'
}}
</span>
</span>
<span
slot=
"joinScene"
slot-scope=
"scope"
>
<span>
{{
scope
.
scope
.
joinScene
==
1
?
'直接邀请入群'
:
scope
.
scope
.
joinScene
==
2
?
'通过邀请链接入群'
:
scope
.
scope
.
joinScene
==
3
?
'通过扫描群二维码入群'
:
''
}}
</span>
</span>
<template
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<span
@
click=
"goDetail(scope.scope.id)"
class=
"blue-text"
>
详情
</span>
</
template
>
</GLTable>
<basic-dialog
title=
""
width=
"547px"
:isVisible=
"dialogVisible"
btnOkLabel=
"我知道了"
:isHasCancelBtn=
"false"
@
confirmDialog=
"handleConfirm"
@
closeDialog=
"handleClose"
>
<basic-dialog
title=
""
width=
"547px"
:isVisible=
"dialogVisible"
btnOkLabel=
"我知道了"
:isHasCancelBtn=
"false"
@
confirmDialog=
"handleConfirm"
@
closeDialog=
"handleClose"
>
<div
class=
"content-body"
>
<div
class=
"content-body"
>
<p>
该客户暂无员工跟进,无法查看该客户详情,
</p>
<p>
该客户暂无员工跟进,无法查看该客户详情,
</p>
...
@@ -84,133 +76,53 @@
...
@@ -84,133 +76,53 @@
</template>
</template>
<
script
>
<
script
>
import
{
getTableDetail
,
getDetailTableList
,
getClientTableDetail
}
from
'@/api/modules/clientGroupManage'
import
{
getTableDetail
,
getClientTableDetail
}
from
'@/api/modules/clientGroupManage'
import
client
from
'@/views/clientGroupManage/components/client.vue'
import
followEmployee
from
'@/views/clientGroupManage/components/followEmployee.vue'
import
leaveGroupClient
from
'@/views/clientGroupManage/components/leaveGroupClient.vue'
import
potentialClient
from
'@/views/clientGroupManage/components/potentialClient.vue'
import
url
from
'@/assets/clientDataOverview/nodata.png'
import
url
from
'@/assets/clientDataOverview/nodata.png'
export
default
{
export
default
{
name
:
'clientGroupDetail'
,
name
:
'clientGroupDetail'
,
components
:
{
client
,
followEmployee
,
leaveGroupClient
,
potentialClient
},
data
()
{
data
()
{
return
{
return
{
dialogVisible
:
false
,
dialogVisible
:
false
,
groupName
:
this
.
$route
.
query
.
groupName
,
// ['全部客户', '跟进员工', '退群客户', '潜在客户']
url
:
url
,
titles
:
[
leftPanelList
:
{},
searchForm
:
{},
searchFormTable
:
{},
clientGroupFormList
:
[
{
{
type
:
'daterange'
,
name
:
'全部客户'
,
prop
:
'daterange'
,
personNum
:
0
label
:
'入群时间'
,
pickerOptions
:
{
disabledDate
(
time
)
{
return
time
.
getTime
()
>
Date
.
now
()
||
time
.
getTime
()
<
new
Date
(
'2017-12-31'
).
getTime
()
}
}
},
},
{
{
type
:
'select'
,
name
:
'跟进员工'
,
prop
:
'customerSex'
,
personNum
:
0
label
:
'性别'
,
placeholder
:
'请选择性别'
,
options
:
[
{
label
:
'全部'
,
value
:
null
},
{
label
:
'男'
,
value
:
1
},
{
label
:
'女'
,
value
:
2
},
{
label
:
'未知'
,
value
:
0
}
]
},
},
{
{
type
:
'input'
,
name
:
'退群客户'
,
inputType
:
'text'
,
personNum
:
0
prop
:
'groupNickName'
,
label
:
'本群昵称'
,
placeholder
:
'请输入本群昵称'
},
},
{
{
type
:
'input'
,
name
:
'潜在客户'
,
inputType
:
'text'
,
personNum
:
0
prop
:
'customerName'
,
label
:
'客户名称'
,
placeholder
:
'请输入客户名称'
}
}
],
],
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'count'
},
currentIndex
:
0
,
tableParams
:
{
groupName
:
this
.
$route
.
query
.
groupName
,
// btnId: new Date().getTime() + parseInt(Math.random() * 1000),
url
:
url
,
listName
:
'data'
,
leftPanelList
:
{},
tableColumns
:
[
{
label
:
'本群昵称'
,
prop
:
'groupNickName'
},
{
label
:
'客户名称'
,
prop
:
'customerName'
,
addHtml
:
'customerName'
,
minWidth
:
100
},
{
label
:
'手机号码'
,
prop
:
'customerPhone'
},
{
label
:
'性别'
,
prop
:
'customerSex'
,
addHtml
:
'customerSex'
},
{
label
:
'入群方式'
,
prop
:
'joinScene'
,
addHtml
:
'joinScene'
},
{
label
:
'邀请人'
,
prop
:
'invitorName'
},
{
label
:
'入群时间'
,
prop
:
'joinTime'
,
width
:
95
}
],
tableOption
:
{
width
:
80
,
btnList
:
[
{
name
:
'详情'
,
pType
:
'detail'
}
]
}
},
getListApi
:
getDetailTableList
,
clientTableDataNum
:
0
,
flushTime
:
false
flushTime
:
false
}
}
},
},
created
()
{
created
()
{
this
.
getTableDetail
()
this
.
getTableDetail
()
this
.
searchForm
=
{
id
:
this
.
$route
.
query
.
id
}
},
mounted
()
{
// this.$nextTick(() => {
// this.searchTable()
// })
},
},
// watch: {
// watch: {
// 'searchForm.daterange':{
// 'searchForm.daterange':{
// deep: true,
// deep: true,
...
@@ -226,55 +138,30 @@ export default {
...
@@ -226,55 +138,30 @@ export default {
// },
// },
methods
:
{
methods
:
{
// getTotal(num) {
// if (this.currentIndex == 0) {
// this.$set(this.titles[0], 'personNum', num)
// }
// },
tabClick
(
index
)
{
this
.
currentIndex
=
index
},
async
getTableDetail
(
id
=
this
.
$route
.
query
.
id
)
{
async
getTableDetail
(
id
=
this
.
$route
.
query
.
id
)
{
const
res
=
await
getTableDetail
({
id
:
id
})
const
res
=
await
getTableDetail
({
id
:
id
,
pageNum
:
1
,
pageSize
:
10
})
console
.
log
(
'获取客户群数据'
,
res
)
console
.
log
(
'获取客户群数据'
,
res
)
if
(
!
res
)
{
if
(
!
res
)
{
return
false
return
false
}
}
this
.
leftPanelList
=
res
this
.
leftPanelList
=
res
this
.
$set
(
this
.
titles
[
0
],
'personNum'
,
res
.
allCount
)
this
.
$set
(
this
.
titles
[
1
],
'personNum'
,
res
.
staffCount
)
this
.
$set
(
this
.
titles
[
2
],
'personNum'
,
res
.
quitCount
)
this
.
$set
(
this
.
titles
[
3
],
'personNum'
,
res
.
potentialCount
)
},
},
beforeSearchFn
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
this
.
searchFormTable
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
// console.log(this.searchForm,'数据')
// console.log(this.searchForm.daterange,this.searchForm.id,this.searchFormTable,'时间选择器')
// console.log(this.searchForm)
if
(
this
.
searchFormTable
.
daterange
)
{
this
.
searchFormTable
.
beginTime
=
this
.
searchForm
.
daterange
[
0
]
this
.
searchFormTable
.
endTime
=
this
.
searchForm
.
daterange
[
1
]
delete
this
.
searchFormTable
.
daterange
}
else
{
if
(
this
.
searchFormTable
.
beginTime
)
delete
this
.
searchFormTable
.
beginTime
&&
delete
this
.
searchFormTable
.
endTime
}
resolve
()
})
},
setTableHeightEvent
()
{
this
.
$refs
.
clientGroupDetail
.
setTableHeightFun
()
},
setTableFinishFun
(
content
)
{
//content是第一页的数据
console
.
log
(
content
)
this
.
clientTableDataNum
=
this
.
$refs
.
clientGroupDetail
.
total
//接收到的数据为空
// if (!this.$refs.clientGroupDetail.data.length) {
// this.$refs.clientGroupDetail.setTableHeightFun()
// }
this
.
$refs
.
clientGroupDetail
.
data
.
length
?
(
this
.
$refs
.
clientGroupDetail
.
tableHeightValues
=
''
)
:
this
.
$refs
.
clientGroupDetail
.
setTableHeightFun
()
},
goBack
()
{
goBack
()
{
this
.
$router
.
push
({
path
:
'/clientGroupManage/index'
})
this
.
$router
.
push
({
path
:
'/clientGroupManage/index'
})
},
},
//搜索表格
searchTable
()
{
this
.
$refs
.
clientGroupDetail
.
refreshTable
()
},
//重置表格
resetTable
()
{
this
.
searchForm
=
{
id
:
this
.
$route
.
query
.
id
}
this
.
$refs
.
clientGroupDetail
.
refreshTable
()
},
handleClose
()
{
handleClose
()
{
this
.
dialogVisible
=
!
this
.
dialogVisible
this
.
dialogVisible
=
!
this
.
dialogVisible
},
},
...
@@ -390,32 +277,50 @@ export default {
...
@@ -390,32 +277,50 @@ export default {
}
}
}
}
.rightWrap
{
.rightWrap
{
position
:
relative
;
margin-left
:
20px
;
margin-left
:
20px
;
width
:
calc
(
100%
-
260px
);
width
:
calc
(
100%
-
260px
);
box-sizing
:
border-box
;
box-sizing
:
border-box
;
background-color
:
#fff
;
background-color
:
#fff
;
padding
:
20px
;
padding
:
20px
;
>
p
{
padding-top
:
50px
;
height
:
20px
;
.choseRow
{
line-height
:
20px
;
position
:
absolute
;
margin-bottom
:
10px
;
width
:
100%
;
span
{
left
:
0
;
vertical-align
:
middle
;
top
:
0
;
}
display
:
flex
;
span
:first-child
{
background-color
:
$
bgColor
;
font-size
:
18px
;
z-index
:
10
;
font-weight
:
400
;
.choseItem
{
color
:
#333333
;
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
;
}
}
}
span
:nth-child
(
2
)
{
.activeItem
{
margin-left
:
6px
;
border-radius
:
4px
4px
0
0
;
font-size
:
14px
;
span
{
font-weight
:
400
;
color
:
$
btnBlue
;
color
:
$
btnBlue
;
font-weight
:
600
;
height
:
20px
;
}
line-height
:
20px
;
box-sizing
:
border-box
;
border-bottom
:
0
!
important
;
}
}
}
}
.el-button
+
.el-button
{
.el-button
+
.el-button
{
margin-left
:
20px
;
margin-left
:
20px
;
}
}
...
@@ -439,7 +344,7 @@ export default {
...
@@ -439,7 +344,7 @@ export default {
}
}
}
}
}
}
/
deep
/
.el-dialog__header
{
/
deep
/
.el-dialog__header
{
border
:
0
;
border
:
0
;
}
}
/
deep
/
.el-dialog__body
{
/
deep
/
.el-dialog__body
{
...
...
src/views/clientGroupManage/clientGroupDetail
Next
.vue
→
src/views/clientGroupManage/clientGroupDetail
old
.vue
View file @
c4b41bc
...
@@ -43,25 +43,36 @@
...
@@ -43,25 +43,36 @@
</p>
</p>
</div>
</div>
<div
class=
"rightWrap"
>
<div
class=
"rightWrap"
>
<div
class=
"choseRow"
>
<p>
<div
class=
"choseItem"
:class=
"
{ activeItem: currentIndex == index }" v-for="(item, index) in titles" :key="index" @click="tabClick(index)">
<span>
全部客户
</span>
<span>
<span>
{{
clientTableDataNum
||
0
}}
个
</span>
{{
item
.
name
}}
</p>
<template
v-if=
"currentIndex == index"
>
(
{{
item
.
personNum
||
0
}}
)个
</
template
>
<search-form
class=
"searchTop border-shadow"
:isNeedThreeBtns=
"false"
:showDefaultTime=
"false"
:formModel=
"searchForm"
:formList=
"clientGroupFormList"
@
setTableHeightEvent=
"setTableHeightEvent"
>
</span>
<span
class=
"inline-b"
slot=
"form-slot"
>
</div>
<el-button
type=
"primary"
>
导出
</el-button>
</div>
<el-button
plain
@
click=
"resetTable"
>
重置
</el-button>
<
template
v-if=
"currentIndex == 0"
>
<el-button
type=
"primary"
@
click=
"searchTable"
>
查询
</el-button>
<client
ref=
"childComp"
:url=
"url"
@
goDetail=
"goDetail"
@
getTotal=
"getTotal"
></client>
</span>
</
template
>
</search-form>
<
template
v-if=
"currentIndex == 1"
>
<!-- :tableId="$route.query.id" 去掉,表格组件也应该去掉 -->
<follow-employee
ref=
"childComp"
:url=
"url"
@
getTotal=
"getTotal"
></follow-employee>
<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">
</
template
>
<span
slot=
"customerName"
class=
"flex-center"
slot-scope=
"scope"
>
<
template
v-if=
"currentIndex == 2"
>
<el-tooltip
effect=
"dark"
:content=
"scope.scope.customerName"
placement=
"top"
>
<leave-group-client
ref=
"childComp"
:url=
"url"
@
goDetail=
"goDetail"
></leave-group-client>
<span
class=
"ellipsis-1"
style=
"display: inline-block; max-width: 70px; text-align: left"
>
{{
scope
.
scope
.
customerName
}}
</span>
</
template
>
</el-tooltip>
<
template
v-if=
"currentIndex == 3"
></
template
>
<span
class=
"pure-blue-text"
>
{{
scope
.
scope
.
type
==
1
?
'@微信'
:
scope
.
scope
.
type
==
2
?
'@企微'
:
''
}}
</span>
</span>
<span
slot=
"customerSex"
slot-scope=
"scope"
>
<span>
{{
scope
.
scope
.
customerSex
==
2
?
'女'
:
scope
.
scope
.
customerSex
==
1
?
'男'
:
'未知'
}}
</span>
</span>
<span
slot=
"joinScene"
slot-scope=
"scope"
>
<span>
{{
scope
.
scope
.
joinScene
==
1
?
'直接邀请入群'
:
scope
.
scope
.
joinScene
==
2
?
'通过邀请链接入群'
:
scope
.
scope
.
joinScene
==
3
?
'通过扫描群二维码入群'
:
''
}}
</span>
</span>
<template
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<span
@
click=
"goDetail(scope.scope.id)"
class=
"blue-text"
>
详情
</span>
</
template
>
</GLTable>
<basic-dialog
title=
""
width=
"547px"
:isVisible=
"dialogVisible"
btnOkLabel=
"我知道了"
:isHasCancelBtn=
"false"
@
confirmDialog=
"handleConfirm"
@
closeDialog=
"handleClose"
>
<basic-dialog
title=
""
width=
"547px"
:isVisible=
"dialogVisible"
btnOkLabel=
"我知道了"
:isHasCancelBtn=
"false"
@
confirmDialog=
"handleConfirm"
@
closeDialog=
"handleClose"
>
<div
class=
"content-body"
>
<div
class=
"content-body"
>
<p>
该客户暂无员工跟进,无法查看该客户详情,
</p>
<p>
该客户暂无员工跟进,无法查看该客户详情,
</p>
...
@@ -74,53 +85,133 @@
...
@@ -74,53 +85,133 @@
</template>
</template>
<
script
>
<
script
>
import
{
getTableDetail
,
getClientTableDetail
}
from
'@/api/modules/clientGroupManage'
import
{
getTableDetail
,
getDetailTableList
,
getClientTableDetail
}
from
'@/api/modules/clientGroupManage'
import
client
from
'@/views/clientGroupManage/components/client.vue'
import
followEmployee
from
'@/views/clientGroupManage/components/followEmployee.vue'
import
leaveGroupClient
from
'@/views/clientGroupManage/components/leaveGroupClient.vue'
import
url
from
'@/assets/clientDataOverview/nodata.png'
import
url
from
'@/assets/clientDataOverview/nodata.png'
export
default
{
export
default
{
name
:
'clientGroupDetail'
,
name
:
'clientGroupDetail'
,
components
:
{
client
,
followEmployee
,
leaveGroupClient
},
data
()
{
data
()
{
return
{
return
{
dialogVisible
:
false
,
dialogVisible
:
false
,
// ['全部客户', '跟进员工', '退群客户', '潜在客户']
groupName
:
this
.
$route
.
query
.
groupName
,
titles
:
[
url
:
url
,
leftPanelList
:
{},
searchForm
:
{},
searchFormTable
:
{},
clientGroupFormList
:
[
{
{
name
:
'全部客户'
,
type
:
'daterange'
,
personNum
:
0
prop
:
'daterange'
,
label
:
'入群时间'
,
pickerOptions
:
{
disabledDate
(
time
)
{
return
time
.
getTime
()
>
Date
.
now
()
||
time
.
getTime
()
<
new
Date
(
'2017-12-31'
).
getTime
()
}
}
},
},
{
{
name
:
'跟进员工'
,
type
:
'select'
,
personNum
:
0
prop
:
'customerSex'
,
label
:
'性别'
,
placeholder
:
'请选择性别'
,
options
:
[
{
label
:
'全部'
,
value
:
null
},
{
label
:
'男'
,
value
:
1
},
{
label
:
'女'
,
value
:
2
},
{
label
:
'未知'
,
value
:
0
}
]
},
},
{
{
name
:
'退群客户'
,
type
:
'input'
,
personNum
:
0
inputType
:
'text'
,
prop
:
'groupNickName'
,
label
:
'本群昵称'
,
placeholder
:
'请输入本群昵称'
},
},
{
{
name
:
'潜在客户'
,
type
:
'input'
,
personNum
:
0
inputType
:
'text'
,
prop
:
'customerName'
,
label
:
'客户名称'
,
placeholder
:
'请输入客户名称'
}
}
],
],
currentIndex
:
0
,
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'count'
},
groupName
:
this
.
$route
.
query
.
groupName
,
tableParams
:
{
url
:
url
,
// btnId: new Date().getTime() + parseInt(Math.random() * 1000),
leftPanelList
:
{},
listName
:
'data'
,
tableColumns
:
[
{
label
:
'本群昵称'
,
prop
:
'groupNickName'
},
{
label
:
'客户名称'
,
prop
:
'customerName'
,
addHtml
:
'customerName'
,
minWidth
:
100
},
{
label
:
'手机号码'
,
prop
:
'customerPhone'
},
{
label
:
'性别'
,
prop
:
'customerSex'
,
addHtml
:
'customerSex'
},
{
label
:
'入群方式'
,
prop
:
'joinScene'
,
addHtml
:
'joinScene'
},
{
label
:
'邀请人'
,
prop
:
'invitorName'
},
{
label
:
'入群时间'
,
prop
:
'joinTime'
,
width
:
95
}
],
tableOption
:
{
width
:
80
,
btnList
:
[
{
name
:
'详情'
,
pType
:
'detail'
}
]
}
},
getListApi
:
getDetailTableList
,
clientTableDataNum
:
0
,
flushTime
:
false
flushTime
:
false
}
}
},
},
created
()
{
created
()
{
this
.
getTableDetail
()
this
.
getTableDetail
()
this
.
searchForm
=
{
id
:
this
.
$route
.
query
.
id
}
},
mounted
()
{
// this.$nextTick(() => {
// this.searchTable()
// })
},
},
// watch: {
// watch: {
// 'searchForm.daterange':{
// 'searchForm.daterange':{
// deep: true,
// deep: true,
...
@@ -136,14 +227,6 @@ export default {
...
@@ -136,14 +227,6 @@ export default {
// },
// },
methods
:
{
methods
:
{
getTotal
(
num
)
{
if
(
this
.
currentIndex
==
0
)
{
this
.
$set
(
this
.
titles
[
0
],
'personNum'
,
num
)
}
},
tabClick
(
index
)
{
this
.
currentIndex
=
index
},
async
getTableDetail
(
id
=
this
.
$route
.
query
.
id
)
{
async
getTableDetail
(
id
=
this
.
$route
.
query
.
id
)
{
const
res
=
await
getTableDetail
({
id
:
id
})
const
res
=
await
getTableDetail
({
id
:
id
})
console
.
log
(
'获取客户群数据'
,
res
)
console
.
log
(
'获取客户群数据'
,
res
)
...
@@ -152,11 +235,53 @@ export default {
...
@@ -152,11 +235,53 @@ export default {
}
}
this
.
leftPanelList
=
res
this
.
leftPanelList
=
res
},
},
beforeSearchFn
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
this
.
searchFormTable
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
// console.log(this.searchForm,'数据')
// console.log(this.searchForm.daterange,this.searchForm.id,this.searchFormTable,'时间选择器')
// console.log(this.searchForm)
if
(
this
.
searchFormTable
.
daterange
)
{
this
.
searchFormTable
.
beginTime
=
this
.
searchForm
.
daterange
[
0
]
this
.
searchFormTable
.
endTime
=
this
.
searchForm
.
daterange
[
1
]
delete
this
.
searchFormTable
.
daterange
}
else
{
if
(
this
.
searchFormTable
.
beginTime
)
delete
this
.
searchFormTable
.
beginTime
&&
delete
this
.
searchFormTable
.
endTime
}
resolve
()
})
},
setTableHeightEvent
()
{
this
.
$refs
.
clientGroupDetail
.
setTableHeightFun
()
},
setTableFinishFun
(
content
)
{
//content是第一页的数据
console
.
log
(
content
)
this
.
clientTableDataNum
=
this
.
$refs
.
clientGroupDetail
.
total
//接收到的数据为空
// if (!this.$refs.clientGroupDetail.data.length) {
// this.$refs.clientGroupDetail.setTableHeightFun()
// }
this
.
$refs
.
clientGroupDetail
.
data
.
length
?
(
this
.
$refs
.
clientGroupDetail
.
tableHeightValues
=
''
)
:
this
.
$refs
.
clientGroupDetail
.
setTableHeightFun
()
},
goBack
()
{
goBack
()
{
this
.
$router
.
push
({
path
:
'/clientGroupManage/index'
})
this
.
$router
.
push
({
path
:
'/clientGroupManage/index'
})
},
},
//搜索表格
searchTable
()
{
this
.
$refs
.
clientGroupDetail
.
refreshTable
()
},
//重置表格
resetTable
()
{
this
.
searchForm
=
{
id
:
this
.
$route
.
query
.
id
}
this
.
$refs
.
clientGroupDetail
.
refreshTable
()
},
handleClose
()
{
this
.
dialogVisible
=
!
this
.
dialogVisible
},
handleConfirm
()
{
this
.
handleClose
()
},
goDetail
(
id
)
{
goDetail
(
id
)
{
// 接口通过了跳转
// 接口通过了跳转
getClientTableDetail
({
oneId
:
id
}).
then
(
res
=>
{
getClientTableDetail
({
oneId
:
id
}).
then
(
res
=>
{
...
@@ -266,50 +391,32 @@ export default {
...
@@ -266,50 +391,32 @@ export default {
}
}
}
}
.rightWrap
{
.rightWrap
{
position
:
relative
;
margin-left
:
20px
;
margin-left
:
20px
;
width
:
calc
(
100%
-
260px
);
width
:
calc
(
100%
-
260px
);
box-sizing
:
border-box
;
box-sizing
:
border-box
;
background-color
:
#fff
;
background-color
:
#fff
;
padding
:
20px
;
padding
:
20px
;
padding-top
:
50px
;
>
p
{
.choseRow
{
height
:
20px
;
position
:
absolute
;
line-height
:
20px
;
width
:
100%
;
margin-bottom
:
10px
;
left
:
0
;
span
{
top
:
0
;
vertical-align
:
middle
;
display
:
flex
;
background-color
:
$
bgColor
;
z-index
:
10
;
padding
:
2px
0
0
0
;
.choseItem
{
height
:
40px
;
line-height
:
40px
;
width
:
180px
;
//
background
:
#FFFFFF
;
text-align
:
center
;
border
:
1px
solid
#eeedff
;
border-bottom
:
0
;
&:first-child
{
border-left
:
0
;
}
span
{
font-weight
:
400
;
font-size
:
14px
;
color
:
#37383a
;
}
}
}
.activeItem
{
span
:first-child
{
border-radius
:
4px
4px
0
0
;
font-size
:
18px
;
background-color
:
#fff
;
font-weight
:
400
;
span
{
color
:
#333333
;
color
:
$
btnBlue
;
}
font-weight
:
600
;
span
:nth-child
(
2
)
{
}
margin-left
:
6px
;
font-size
:
14px
;
font-weight
:
400
;
color
:
$
btnBlue
;
height
:
20px
;
line-height
:
20px
;
}
}
}
}
.el-button
+
.el-button
{
.el-button
+
.el-button
{
margin-left
:
20px
;
margin-left
:
20px
;
}
}
...
@@ -333,5 +440,27 @@ export default {
...
@@ -333,5 +440,27 @@ export default {
}
}
}
}
}
}
/
deep
/
.el-dialog__header
{
border
:
0
;
}
/
deep
/
.el-dialog__body
{
border-bottom
:
1px
solid
#e6e6e6
;
padding
:
0px
65px
35px
;
min-height
:
0
;
.container
{
font-size
:
18px
;
text-align
:
center
;
font-weight
:
400
;
color
:
#333333
;
.bottomText
{
margin-top
:
10px
;
}
}
}
/
deep
/
.el-dialog__footer
{
text-align
:
center
;
padding-top
:
15px
;
padding-bottom
:
15px
;
}
}
}
</
style
>
</
style
>
src/views/clientGroupManage/components/client.vue
View file @
c4b41bc
<
template
>
<
template
>
<div
class=
"sub-container"
>
<div
class=
"sub-container"
>
<search-form
class=
"searchTop border-shadow"
:is
NeedThreeBtns=
"false"
:showDefaultTime=
"false"
:formModel=
"searchForm"
:formList=
"clientGroupFormList"
@
setTableHeightEvent=
"setTableHeightEvent"
>
<search-form
class=
"searchTop border-shadow"
:is
HasSyncBtn=
"true"
:isThreeRowShow=
"true"
:showDefaultTime=
"false"
:formModel=
"searchForm"
:formList=
"clientGroupFormList"
@
setTableHeightEvent=
"setTableHeightEvent"
>
<span
class=
"inline-b"
slot=
"form-slot"
>
<span
class=
"inline-b"
slot=
"form-slot"
>
<el-button
type=
"primary"
@
click=
"handleExport"
>
导出
</el-button>
<el-button
plain
@
click=
"resetTable"
>
重置
</el-button>
<el-button
plain
@
click=
"resetTable"
>
重置
</el-button>
<el-button
type=
"primary"
@
click=
"searchTable"
>
查询
</el-button>
<el-button
type=
"primary"
@
click=
"searchTable"
>
查询
</el-button>
</span>
</span>
...
@@ -29,7 +30,7 @@
...
@@ -29,7 +30,7 @@
</template>
</template>
<
script
>
<
script
>
import
{
getDetailTableList
}
from
'@/api/modules/clientGroupManage'
import
{
getDetailTableList
,
clientExportApi
}
from
'@/api/modules/clientGroupManage'
export
default
{
export
default
{
props
:
{
props
:
{
url
:
{
url
:
{
...
@@ -98,16 +99,19 @@ export default {
...
@@ -98,16 +99,19 @@ export default {
tableColumns
:
[
tableColumns
:
[
{
{
label
:
'本群昵称'
,
label
:
'本群昵称'
,
prop
:
'groupNickName'
prop
:
'groupNickName'
,
minWidth
:
120
},
},
{
{
label
:
'客户名称'
,
label
:
'客户名称'
,
prop
:
'customerName'
,
prop
:
'customerName'
,
addHtml
:
'customerName'
addHtml
:
'customerName'
,
minWidth
:
150
},
},
{
{
label
:
'手机号码'
,
label
:
'手机号码'
,
prop
:
'customerPhone'
prop
:
'customerPhone'
,
minWidth
:
120
},
},
{
{
label
:
'性别'
,
label
:
'性别'
,
...
@@ -117,11 +121,13 @@ export default {
...
@@ -117,11 +121,13 @@ export default {
{
{
label
:
'入群方式'
,
label
:
'入群方式'
,
prop
:
'joinScene'
,
prop
:
'joinScene'
,
addHtml
:
'joinScene'
addHtml
:
'joinScene'
,
minWidth
:
120
},
},
{
{
label
:
'邀请人'
,
label
:
'邀请人'
,
prop
:
'invitorName'
prop
:
'invitorName'
,
minWidth
:
120
},
},
{
{
label
:
'入群时间'
,
label
:
'入群时间'
,
...
@@ -149,16 +155,31 @@ export default {
...
@@ -149,16 +155,31 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
getParams
(){
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
if
(
params
.
daterange
)
{
params
.
beginTime
=
this
.
searchForm
.
daterange
[
0
]
params
.
endTime
=
this
.
searchForm
.
daterange
[
1
]
}
else
{
if
(
params
.
beginTime
)
delete
params
.
beginTime
&&
delete
params
.
endTime
}
delete
params
.
daterange
return
params
},
beforeSearchFn
()
{
beforeSearchFn
()
{
// return new Promise((resolve, reject) => {
// this.searchFormTable = JSON.parse(JSON.stringify(this.searchForm))
// if (this.searchFormTable.daterange) {
// this.searchFormTable.beginTime = this.searchForm.daterange[0]
// this.searchFormTable.endTime = this.searchForm.daterange[1]
// delete this.searchFormTable.daterange
// } else {
// if (this.searchFormTable.beginTime) delete this.searchFormTable.beginTime && delete this.searchFormTable.endTime
// }
// resolve()
// })
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
this
.
searchFormTable
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
this
.
searchFormTable
=
this
.
getParams
()
if
(
this
.
searchFormTable
.
daterange
)
{
this
.
searchFormTable
.
beginTime
=
this
.
searchForm
.
daterange
[
0
]
this
.
searchFormTable
.
endTime
=
this
.
searchForm
.
daterange
[
1
]
delete
this
.
searchFormTable
.
daterange
}
else
{
if
(
this
.
searchFormTable
.
beginTime
)
delete
this
.
searchFormTable
.
beginTime
&&
delete
this
.
searchFormTable
.
endTime
}
resolve
()
resolve
()
})
})
},
},
...
@@ -169,13 +190,20 @@ export default {
...
@@ -169,13 +190,20 @@ export default {
//content是第一页的数据
//content是第一页的数据
console
.
log
(
content
)
console
.
log
(
content
)
this
.
clientTableDataNum
=
this
.
$refs
.
clientGroupDetail
.
total
this
.
clientTableDataNum
=
this
.
$refs
.
clientGroupDetail
.
total
this
.
$emit
(
'getTotal'
,
this
.
clientTableDataNum
)
//
this.$emit('getTotal',this.clientTableDataNum)
//接收到的数据为空
//接收到的数据为空
// if (!this.$refs.clientGroupDetail.data.length) {
// if (!this.$refs.clientGroupDetail.data.length) {
// this.$refs.clientGroupDetail.setTableHeightFun()
// this.$refs.clientGroupDetail.setTableHeightFun()
// }
// }
this
.
$refs
.
clientGroupDetail
.
data
.
length
?
(
this
.
$refs
.
clientGroupDetail
.
tableHeightValues
=
''
)
:
this
.
$refs
.
clientGroupDetail
.
setTableHeightFun
()
this
.
$refs
.
clientGroupDetail
.
data
.
length
?
(
this
.
$refs
.
clientGroupDetail
.
tableHeightValues
=
''
)
:
this
.
$refs
.
clientGroupDetail
.
setTableHeightFun
()
},
},
//导出
handleExport
(){
var
params
=
this
.
getParams
()
clientExportApi
(
params
).
then
(
res
=>
{
this
.
$Utils
.
exportFn
(
res
)
})
},
//搜索表格
//搜索表格
searchTable
()
{
searchTable
()
{
this
.
$refs
.
clientGroupDetail
.
refreshTable
()
this
.
$refs
.
clientGroupDetail
.
refreshTable
()
...
...
src/views/clientGroupManage/components/followEmployee.vue
View file @
c4b41bc
<
template
>
<
template
>
<div
class=
"sub-container"
>
<div
class=
"sub-container"
>
<search-form
class=
"searchTop border-shadow"
:is
NeedThreeBtns=
"fals
e"
:showDefaultTime=
"false"
:formModel=
"searchForm"
:formList=
"clientGroupFormList"
@
setTableHeightEvent=
"setTableHeightEvent"
>
<search-form
class=
"searchTop border-shadow"
:is
HasSyncBtn=
"true"
:isThreeRowShow=
"tru
e"
:showDefaultTime=
"false"
:formModel=
"searchForm"
:formList=
"clientGroupFormList"
@
setTableHeightEvent=
"setTableHeightEvent"
>
<span
class=
"inline-b"
slot=
"form-slot"
>
<span
class=
"inline-b"
slot=
"form-slot"
>
<el-button
type=
"primary"
@
click=
"handleExport"
>
导出
</el-button>
<el-button
plain
@
click=
"resetTable"
>
重置
</el-button>
<el-button
plain
@
click=
"resetTable"
>
重置
</el-button>
<el-button
type=
"primary"
@
click=
"searchTable"
>
查询
</el-button>
<el-button
type=
"primary"
@
click=
"searchTable"
>
查询
</el-button>
</span>
</span>
...
@@ -22,7 +23,7 @@
...
@@ -22,7 +23,7 @@
</template>
</template>
<
script
>
<
script
>
// import { getDetailTableList
} from '@/api/modules/clientGroupManage'
import
{
getDetailStaffTableList
,
followEmployeeExportApi
}
from
'@/api/modules/clientGroupManage'
export
default
{
export
default
{
props
:
{
props
:
{
url
:
{
url
:
{
...
@@ -92,16 +93,19 @@ export default {
...
@@ -92,16 +93,19 @@ export default {
tableColumns
:
[
tableColumns
:
[
{
{
label
:
'本群昵称'
,
label
:
'本群昵称'
,
prop
:
'groupNickName'
prop
:
'groupNickName'
,
minWidth
:
120
},
},
{
{
label
:
'员工名称'
,
label
:
'员工名称'
,
prop
:
'customerName'
,
prop
:
'customerName'
,
minWidth
:
150
},
},
{
{
label
:
'手机号码'
,
label
:
'手机号码'
,
prop
:
'customerPhone'
prop
:
'customerPhone'
,
minWidth
:
120
},
},
{
{
label
:
'性别'
,
label
:
'性别'
,
...
@@ -111,21 +115,23 @@ export default {
...
@@ -111,21 +115,23 @@ export default {
{
{
label
:
'入群方式'
,
label
:
'入群方式'
,
prop
:
'joinScene'
,
prop
:
'joinScene'
,
addHtml
:
'joinScene'
addHtml
:
'joinScene'
,
minWidth
:
120
},
},
{
{
label
:
'邀请人'
,
label
:
'邀请人'
,
prop
:
'invitorName'
prop
:
'invitorName'
,
minWidth
:
120
},
},
{
{
label
:
'入群时间'
,
label
:
'入群时间'
,
prop
:
'joinTime'
,
prop
:
'joinTime'
,
width
:
9
5
width
:
9
8
}
}
]
]
},
},
getListApi
:
''
,
getListApi
:
getDetailStaffTableList
,
clientTableDataNum
:
0
clientTableDataNum
:
0
}
}
},
},
...
@@ -135,16 +141,31 @@ export default {
...
@@ -135,16 +141,31 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
getParams
(){
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
if
(
params
.
daterange
)
{
params
.
beginTime
=
this
.
searchForm
.
daterange
[
0
]
params
.
endTime
=
this
.
searchForm
.
daterange
[
1
]
}
else
{
if
(
params
.
beginTime
)
delete
params
.
beginTime
&&
delete
params
.
endTime
}
delete
params
.
daterange
return
params
},
beforeSearchFn
()
{
beforeSearchFn
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
// return new Promise((resolve, reject) => {
this
.
searchFormTable
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
// this.searchFormTable = JSON.parse(JSON.stringify(this.searchForm))
if
(
this
.
searchFormTable
.
daterange
)
{
// if (this.searchFormTable.daterange) {
this
.
searchFormTable
.
beginTime
=
this
.
searchForm
.
daterange
[
0
]
// this.searchFormTable.beginTime = this.searchForm.daterange[0]
this
.
searchFormTable
.
endTime
=
this
.
searchForm
.
daterange
[
1
]
// this.searchFormTable.endTime = this.searchForm.daterange[1]
delete
this
.
searchFormTable
.
daterange
// delete this.searchFormTable.daterange
}
else
{
// } else {
if
(
this
.
searchFormTable
.
beginTime
)
delete
this
.
searchFormTable
.
beginTime
&&
delete
this
.
searchFormTable
.
endTime
// if (this.searchFormTable.beginTime) delete this.searchFormTable.beginTime && delete this.searchFormTable.endTime
}
// }
// resolve()
// })
return
new
Promise
((
resolve
,
reject
)
=>
{
this
.
searchFormTable
=
this
.
getParams
()
resolve
()
resolve
()
})
})
},
},
...
@@ -155,13 +176,20 @@ export default {
...
@@ -155,13 +176,20 @@ export default {
//content是第一页的数据
//content是第一页的数据
console
.
log
(
content
)
console
.
log
(
content
)
this
.
clientTableDataNum
=
this
.
$refs
.
clientGroupDetail
.
total
this
.
clientTableDataNum
=
this
.
$refs
.
clientGroupDetail
.
total
this
.
$emit
(
'getTotal'
,
this
.
clientTableDataNum
)
//
this.$emit('getTotal',this.clientTableDataNum)
//接收到的数据为空
//接收到的数据为空
// if (!this.$refs.clientGroupDetail.data.length) {
// if (!this.$refs.clientGroupDetail.data.length) {
// this.$refs.clientGroupDetail.setTableHeightFun()
// this.$refs.clientGroupDetail.setTableHeightFun()
// }
// }
this
.
$refs
.
clientGroupDetail
.
data
.
length
?
(
this
.
$refs
.
clientGroupDetail
.
tableHeightValues
=
''
)
:
this
.
$refs
.
clientGroupDetail
.
setTableHeightFun
()
this
.
$refs
.
clientGroupDetail
.
data
.
length
?
(
this
.
$refs
.
clientGroupDetail
.
tableHeightValues
=
''
)
:
this
.
$refs
.
clientGroupDetail
.
setTableHeightFun
()
},
},
//导出
handleExport
(){
var
params
=
this
.
getParams
()
followEmployeeExportApi
(
params
).
then
(
res
=>
{
this
.
$Utils
.
exportFn
(
res
)
})
},
//搜索表格
//搜索表格
searchTable
()
{
searchTable
()
{
this
.
$refs
.
clientGroupDetail
.
refreshTable
()
this
.
$refs
.
clientGroupDetail
.
refreshTable
()
...
...
src/views/clientGroupManage/components/leaveGroupClient.vue
View file @
c4b41bc
<
template
>
<
template
>
<div
class=
"sub-container"
>
<div
class=
"sub-container"
>
<search-form
class=
"searchTop border-shadow"
:is
NeedThreeBtns=
"fals
e"
:showDefaultTime=
"false"
:formModel=
"searchForm"
:formList=
"clientGroupFormList"
@
setTableHeightEvent=
"setTableHeightEvent"
>
<search-form
class=
"searchTop border-shadow"
:is
HasSyncBtn=
"true"
:isThreeRowShow=
"tru
e"
:showDefaultTime=
"false"
:formModel=
"searchForm"
:formList=
"clientGroupFormList"
@
setTableHeightEvent=
"setTableHeightEvent"
>
<span
class=
"inline-b"
slot=
"form-slot"
>
<span
class=
"inline-b"
slot=
"form-slot"
>
<el-button
type=
"primary"
@
click=
"handleExport"
>
导出
</el-button>
<el-button
plain
@
click=
"resetTable"
>
重置
</el-button>
<el-button
plain
@
click=
"resetTable"
>
重置
</el-button>
<el-button
type=
"primary"
@
click=
"searchTable"
>
查询
</el-button>
<el-button
type=
"primary"
@
click=
"searchTable"
>
查询
</el-button>
</span>
</span>
...
@@ -28,7 +29,7 @@
...
@@ -28,7 +29,7 @@
</template>
</template>
<
script
>
<
script
>
// import { getDetailTableList
} from '@/api/modules/clientGroupManage'
import
{
getDetailQuitTableList
,
leaveGroupExportApi
}
from
'@/api/modules/clientGroupManage'
export
default
{
export
default
{
props
:
{
props
:
{
url
:
{
url
:
{
...
@@ -96,16 +97,19 @@ export default {
...
@@ -96,16 +97,19 @@ export default {
tableColumns
:
[
tableColumns
:
[
{
{
label
:
'本群昵称'
,
label
:
'本群昵称'
,
prop
:
'groupNickName'
prop
:
'groupNickName'
,
minWidth
:
120
},
},
{
{
label
:
'客户名称'
,
label
:
'客户名称'
,
prop
:
'customerName'
,
prop
:
'customerName'
,
addHtml
:
'customerName'
addHtml
:
'customerName'
,
minWidth
:
150
},
},
{
{
label
:
'手机号码'
,
label
:
'手机号码'
,
prop
:
'customerPhone'
prop
:
'customerPhone'
,
minWidth
:
120
},
},
{
{
label
:
'性别'
,
label
:
'性别'
,
...
@@ -115,16 +119,18 @@ export default {
...
@@ -115,16 +119,18 @@ export default {
{
{
label
:
'入群方式'
,
label
:
'入群方式'
,
prop
:
'joinScene'
,
prop
:
'joinScene'
,
addHtml
:
'joinScene'
addHtml
:
'joinScene'
,
minWidth
:
120
},
},
{
{
label
:
'邀请人'
,
label
:
'邀请人'
,
prop
:
'invitorName'
prop
:
'invitorName'
,
minWidth
:
120
},
},
{
{
label
:
'入群时间'
,
label
:
'入群时间'
,
prop
:
'joinTime'
,
prop
:
'joinTime'
,
width
:
9
5
width
:
9
8
}
}
],
],
tableOption
:
{
tableOption
:
{
...
@@ -137,7 +143,7 @@ export default {
...
@@ -137,7 +143,7 @@ export default {
]
]
}
}
},
},
getListApi
:
''
,
getListApi
:
getDetailQuitTableList
,
clientTableDataNum
:
0
clientTableDataNum
:
0
}
}
},
},
...
@@ -147,16 +153,31 @@ export default {
...
@@ -147,16 +153,31 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
getParams
(){
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
if
(
params
.
daterange
)
{
params
.
beginTime
=
this
.
searchForm
.
daterange
[
0
]
params
.
endTime
=
this
.
searchForm
.
daterange
[
1
]
}
else
{
if
(
params
.
beginTime
)
delete
params
.
beginTime
&&
delete
params
.
endTime
}
delete
params
.
daterange
return
params
},
beforeSearchFn
()
{
beforeSearchFn
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
// return new Promise((resolve, reject) => {
this
.
searchFormTable
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
// this.searchFormTable = JSON.parse(JSON.stringify(this.searchForm))
if
(
this
.
searchFormTable
.
daterange
)
{
// if (this.searchFormTable.daterange) {
this
.
searchFormTable
.
beginTime
=
this
.
searchForm
.
daterange
[
0
]
// this.searchFormTable.beginTime = this.searchForm.daterange[0]
this
.
searchFormTable
.
endTime
=
this
.
searchForm
.
daterange
[
1
]
// this.searchFormTable.endTime = this.searchForm.daterange[1]
delete
this
.
searchFormTable
.
daterange
// delete this.searchFormTable.daterange
}
else
{
// } else {
if
(
this
.
searchFormTable
.
beginTime
)
delete
this
.
searchFormTable
.
beginTime
&&
delete
this
.
searchFormTable
.
endTime
// if (this.searchFormTable.beginTime) delete this.searchFormTable.beginTime && delete this.searchFormTable.endTime
}
// }
// resolve()
// })
return
new
Promise
((
resolve
,
reject
)
=>
{
this
.
searchFormTable
=
this
.
getParams
()
resolve
()
resolve
()
})
})
},
},
...
@@ -173,6 +194,13 @@ export default {
...
@@ -173,6 +194,13 @@ export default {
// }
// }
this
.
$refs
.
clientGroupDetail
.
data
.
length
?
(
this
.
$refs
.
clientGroupDetail
.
tableHeightValues
=
''
)
:
this
.
$refs
.
clientGroupDetail
.
setTableHeightFun
()
this
.
$refs
.
clientGroupDetail
.
data
.
length
?
(
this
.
$refs
.
clientGroupDetail
.
tableHeightValues
=
''
)
:
this
.
$refs
.
clientGroupDetail
.
setTableHeightFun
()
},
},
//导出
handleExport
(){
var
params
=
this
.
getParams
()
leaveGroupExportApi
(
params
).
then
(
res
=>
{
this
.
$Utils
.
exportFn
(
res
)
})
},
//搜索表格
//搜索表格
searchTable
()
{
searchTable
()
{
this
.
$refs
.
clientGroupDetail
.
refreshTable
()
this
.
$refs
.
clientGroupDetail
.
refreshTable
()
...
...
src/views/clientGroupManage/components/potentialClient.vue
View file @
c4b41bc
<
template
>
<
template
>
<div
class=
"sub-container"
>
<div
class=
"sub-container"
>
<search-form
class=
"searchTop border-shadow"
:is
NeedThreeBtns=
"fals
e"
:showDefaultTime=
"false"
:formModel=
"searchForm"
:formList=
"clientGroupFormList"
@
setTableHeightEvent=
"setTableHeightEvent"
>
<search-form
class=
"searchTop border-shadow"
:is
HasSyncBtn=
"true"
:isThreeRowShow=
"tru
e"
:showDefaultTime=
"false"
:formModel=
"searchForm"
:formList=
"clientGroupFormList"
@
setTableHeightEvent=
"setTableHeightEvent"
>
<span
class=
"inline-b"
slot=
"form-slot"
>
<span
class=
"inline-b"
slot=
"form-slot"
>
<el-button
type=
"primary"
@
click=
"handleExport"
>
导出
</el-button>
<el-button
plain
@
click=
"resetTable"
>
重置
</el-button>
<el-button
plain
@
click=
"resetTable"
>
重置
</el-button>
<el-button
type=
"primary"
@
click=
"searchTable"
>
查询
</el-button>
<el-button
type=
"primary"
@
click=
"searchTable"
>
查询
</el-button>
</span>
</span>
...
@@ -29,7 +30,7 @@
...
@@ -29,7 +30,7 @@
</template>
</template>
<
script
>
<
script
>
import
{
getDetail
TableList
}
from
'@/api/modules/clientGroupManage'
import
{
getDetail
PotentialTableList
,
potentialClientExportApi
}
from
'@/api/modules/clientGroupManage'
export
default
{
export
default
{
props
:
{
props
:
{
url
:
{
url
:
{
...
@@ -52,43 +53,36 @@ export default {
...
@@ -52,43 +53,36 @@ export default {
}
}
}
}
},
},
{
//
{
type
:
'select'
,
//
type: 'select',
prop
:
'customerSex'
,
//
prop: 'customerSex',
label
:
'性别'
,
//
label: '性别',
placeholder
:
'请选择性别'
,
//
placeholder: '请选择性别',
options
:
[
//
options: [
{
//
{
label
:
'全部'
,
//
label: '全部',
value
:
null
//
value: null
},
//
},
{
//
{
label
:
'男'
,
//
label: '男',
value
:
1
//
value: 1
},
//
},
{
//
{
label
:
'女'
,
//
label: '女',
value
:
2
//
value: 2
},
//
},
{
//
{
label
:
'未知'
,
//
label: '未知',
value
:
0
//
value: 0
}
//
}
]
//
]
},
//
},
{
{
type
:
'input'
,
type
:
'input'
,
inputType
:
'text'
,
inputType
:
'text'
,
prop
:
'groupNickName'
,
prop
:
'groupNickName'
,
label
:
'本群昵称'
,
label
:
'本群昵称'
,
placeholder
:
'请输入本群昵称'
placeholder
:
'请输入本群昵称'
},
{
type
:
'input'
,
inputType
:
'text'
,
prop
:
'customerName'
,
label
:
'客户名称'
,
placeholder
:
'请输入客户名称'
}
}
],
],
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'count'
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'count'
},
...
@@ -100,20 +94,15 @@ export default {
...
@@ -100,20 +94,15 @@ export default {
label
:
'本群昵称'
,
label
:
'本群昵称'
,
prop
:
'groupNickName'
prop
:
'groupNickName'
},
},
{
// {
label
:
'客户名称'
,
// label: '手机号码',
prop
:
'customerName'
,
// prop: 'customerPhone'
addHtml
:
'customerName'
// },
},
// {
{
// label: '性别',
label
:
'手机号码'
,
// prop: 'customerSex',
prop
:
'customerPhone'
// addHtml: 'customerSex'
},
// },
{
label
:
'性别'
,
prop
:
'customerSex'
,
addHtml
:
'customerSex'
},
{
{
label
:
'入群方式'
,
label
:
'入群方式'
,
prop
:
'joinScene'
,
prop
:
'joinScene'
,
...
@@ -126,20 +115,20 @@ export default {
...
@@ -126,20 +115,20 @@ export default {
{
{
label
:
'入群时间'
,
label
:
'入群时间'
,
prop
:
'joinTime'
,
prop
:
'joinTime'
,
width
:
9
5
width
:
9
8
}
}
],
],
tableOption
:
{
//
tableOption: {
width
:
80
,
//
width: 80,
btnList
:
[
//
btnList: [
{
//
{
name
:
'详情'
,
//
name: '详情',
pType
:
'detail'
//
pType: 'detail'
}
//
}
]
//
]
}
//
}
},
},
getListApi
:
getDetailTableList
,
getListApi
:
getDetail
Potential
TableList
,
clientTableDataNum
:
0
clientTableDataNum
:
0
}
}
},
},
...
@@ -149,16 +138,31 @@ export default {
...
@@ -149,16 +138,31 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
getParams
(){
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
if
(
params
.
daterange
)
{
params
.
beginTime
=
this
.
searchForm
.
daterange
[
0
]
params
.
endTime
=
this
.
searchForm
.
daterange
[
1
]
}
else
{
if
(
params
.
beginTime
)
delete
params
.
beginTime
&&
delete
params
.
endTime
}
delete
params
.
daterange
return
params
},
beforeSearchFn
()
{
beforeSearchFn
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
// return new Promise((resolve, reject) => {
this
.
searchFormTable
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
// this.searchFormTable = JSON.parse(JSON.stringify(this.searchForm))
if
(
this
.
searchFormTable
.
daterange
)
{
// if (this.searchFormTable.daterange) {
this
.
searchFormTable
.
beginTime
=
this
.
searchForm
.
daterange
[
0
]
// this.searchFormTable.beginTime = this.searchForm.daterange[0]
this
.
searchFormTable
.
endTime
=
this
.
searchForm
.
daterange
[
1
]
// this.searchFormTable.endTime = this.searchForm.daterange[1]
delete
this
.
searchFormTable
.
daterange
// delete this.searchFormTable.daterange
}
else
{
// } else {
if
(
this
.
searchFormTable
.
beginTime
)
delete
this
.
searchFormTable
.
beginTime
&&
delete
this
.
searchFormTable
.
endTime
// if (this.searchFormTable.beginTime) delete this.searchFormTable.beginTime && delete this.searchFormTable.endTime
}
// }
// resolve()
// })
return
new
Promise
((
resolve
,
reject
)
=>
{
this
.
searchFormTable
=
this
.
getParams
()
resolve
()
resolve
()
})
})
},
},
...
@@ -175,6 +179,13 @@ export default {
...
@@ -175,6 +179,13 @@ export default {
// }
// }
this
.
$refs
.
clientGroupDetail
.
data
.
length
?
(
this
.
$refs
.
clientGroupDetail
.
tableHeightValues
=
''
)
:
this
.
$refs
.
clientGroupDetail
.
setTableHeightFun
()
this
.
$refs
.
clientGroupDetail
.
data
.
length
?
(
this
.
$refs
.
clientGroupDetail
.
tableHeightValues
=
''
)
:
this
.
$refs
.
clientGroupDetail
.
setTableHeightFun
()
},
},
//导出
handleExport
(){
var
params
=
this
.
getParams
()
potentialClientExportApi
(
params
).
then
(
res
=>
{
this
.
$Utils
.
exportFn
(
res
)
})
},
//搜索表格
//搜索表格
searchTable
()
{
searchTable
()
{
this
.
$refs
.
clientGroupDetail
.
refreshTable
()
this
.
$refs
.
clientGroupDetail
.
refreshTable
()
...
...
src/views/clientGroupManage/index.vue
View file @
c4b41bc
...
@@ -3,8 +3,9 @@
...
@@ -3,8 +3,9 @@
<div
class=
"scrm-sub-client-container"
>
<div
class=
"scrm-sub-client-container"
>
<!--
<p
class=
"pageTitle"
>
客户群管理
</p>
-->
<!--
<p
class=
"pageTitle"
>
客户群管理
</p>
-->
<div
class=
"pageContent"
>
<div
class=
"pageContent"
>
<search-form
class=
"searchTop border-shadow"
:isHasSyncBtn=
"true"
:showDefaultTime=
"false"
:merchantModel=
"merchantModel"
:accountLevel=
"accountLevel"
:formModel=
"searchForm"
:formList=
"clientGroupFormList"
@
setTableHeightEvent=
"setTableHeightEvent"
@
resetTable=
"resetTable"
@
searchTable=
"searchTable"
@
syncClick=
"syncClick"
>
<search-form
class=
"searchTop border-shadow"
:isHasSyncBtn=
"true"
:showDefaultTime=
"false"
:merchantModel=
"merchantModel"
:accountLevel=
"accountLevel"
:formModel=
"searchForm"
:formList=
"clientGroupFormList"
@
setTableHeightEvent=
"setTableHeightEvent"
@
resetTable=
"resetTable"
@
searchTable=
"searchTable"
@
handleExport=
"handleExport"
@
syncClick=
"syncClick"
>
<span
class=
"inline-b"
slot=
"form-slot"
>
<span
class=
"inline-b"
slot=
"form-slot"
>
<el-button
type=
"primary"
@
click=
"handleExport"
>
导出
</el-button>
<el-button
plain
@
click=
"resetTable"
>
重置
</el-button>
<el-button
plain
@
click=
"resetTable"
>
重置
</el-button>
<el-button
type=
"primary"
@
click=
"searchTable"
>
查询
</el-button>
<el-button
type=
"primary"
@
click=
"searchTable"
>
查询
</el-button>
<!-- v-if="(merchantModel == 1 && accountLevel == 1) || (merchantModel == 2 && accountLevel == 4)"允许所有人同步 -->
<!-- v-if="(merchantModel == 1 && accountLevel == 1) || (merchantModel == 2 && accountLevel == 4)"允许所有人同步 -->
...
@@ -29,7 +30,7 @@
...
@@ -29,7 +30,7 @@
</template>
</template>
<
script
>
<
script
>
import
{
getTableList
,
syncCustomerBase
}
from
'@/api/modules/clientGroupManage'
import
{
getTableList
,
syncCustomerBase
,
getStatus
,
clientGroupExportApi
}
from
'@/api/modules/clientGroupManage'
import
url
from
'@/assets/clientDataOverview/nodata.png'
import
url
from
'@/assets/clientDataOverview/nodata.png'
export
default
{
export
default
{
name
:
'clientGroupManage'
,
name
:
'clientGroupManage'
,
...
@@ -56,8 +57,8 @@ export default {
...
@@ -56,8 +57,8 @@ export default {
type
:
'input'
,
type
:
'input'
,
inputType
:
'text'
,
inputType
:
'text'
,
prop
:
'custGroupName'
,
prop
:
'custGroupName'
,
label
:
'
客户群
名称'
,
label
:
'
群聊
名称'
,
placeholder
:
'请输入
客户群
名称'
placeholder
:
'请输入
群聊
名称'
},
},
{
{
type
:
'input'
,
type
:
'input'
,
...
@@ -72,6 +73,26 @@ export default {
...
@@ -72,6 +73,26 @@ export default {
prop
:
'groupAdminName'
,
prop
:
'groupAdminName'
,
label
:
'管理员'
,
label
:
'管理员'
,
placeholder
:
'请输入管理员'
placeholder
:
'请输入管理员'
},
{
type
:
'select'
,
prop
:
'creationMethod'
,
label
:
'创建方式'
,
placeholder
:
'请选择'
,
options
:
[
{
label
:
'全部'
,
value
:
null
},
{
label
:
'手动拉群'
,
value
:
1
},
{
label
:
'一客一群'
,
value
:
2
}
]
}
}
],
],
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'count'
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'count'
},
...
@@ -80,11 +101,11 @@ export default {
...
@@ -80,11 +101,11 @@ export default {
listName
:
'data'
,
listName
:
'data'
,
tableColumns
:
[
tableColumns
:
[
{
{
label
:
'
客户群
名称'
,
label
:
'
群聊
名称'
,
prop
:
'custGroupName'
,
prop
:
'custGroupName'
,
minWidth
:
160
minWidth
:
160
},
},
{
{
label
:
'当前成员总数'
,
label
:
'当前成员总数'
,
prop
:
'allMembers'
,
prop
:
'allMembers'
,
minWidth
:
140
minWidth
:
140
...
@@ -110,11 +131,6 @@ export default {
...
@@ -110,11 +131,6 @@ export default {
minWidth
:
140
minWidth
:
140
},
},
{
{
label
:
'创建方式'
,
prop
:
'creationMethod'
,
minWidth
:
140
},
{
label
:
'群主'
,
label
:
'群主'
,
prop
:
'groupHostName'
prop
:
'groupHostName'
},
},
...
@@ -123,13 +139,18 @@ export default {
...
@@ -123,13 +139,18 @@ export default {
prop
:
'groupAdminName'
prop
:
'groupAdminName'
},
},
{
{
label
:
'创建方式'
,
prop
:
'creationMethod'
,
minWidth
:
140
},
{
label
:
'创建时间'
,
label
:
'创建时间'
,
prop
:
'addTime'
,
prop
:
'addTime'
,
width
:
95
width
:
95
}
}
],
],
tableOption
:
{
tableOption
:
{
width
:
170
,
width
:
170
// btnList: [
// btnList: [
// {
// {
// name: '详情',
// name: '详情',
...
@@ -145,8 +166,8 @@ export default {
...
@@ -145,8 +166,8 @@ export default {
flushTime
:
false
flushTime
:
false
}
}
},
},
activated
()
{
activated
()
{
this
.
searchTable
()
;
this
.
searchTable
()
},
},
created
()
{
created
()
{
if
(
window
.
__POWERED_BY_QIANKUN__
)
{
if
(
window
.
__POWERED_BY_QIANKUN__
)
{
...
@@ -166,8 +187,38 @@ export default {
...
@@ -166,8 +187,38 @@ export default {
// }
// }
// }
// }
// },
// },
mounted
()
{},
beforeDestroy
()
{
this
.
$message
.
closeAll
()
},
mounted
()
{
this
.
wxTips
()
},
methods
:
{
methods
:
{
jumpWx
()
{
this
.
$history
.
push
(
'/home/enterpriseWechat/index'
)
},
wxTips
()
{
const
menu
=
JSON
.
parse
(
sessionStorage
[
'SCRM_BASE_MENULIST'
])
menu
.
forEach
(
item
=>
{
if
(
!
item
.
children
)
{
return
}
item
.
children
.
forEach
(
itm
=>
{
if
(
itm
.
path
==
'/enterpriseWechat/index'
)
{
getStatus
({}).
then
(
res
=>
{
if
(
res
.
status
!=
'SUCCESS'
)
{
const
h
=
this
.
$createElement
this
.
$message
({
showClose
:
true
,
duration
:
0
,
message
:
h
(
'p'
,
null
,
[
h
(
'span'
,
null
,
'此功能需完成【企业微信授权】后方可使用! '
),
h
(
'span'
,
{
on
:
{
click
:
this
.
jumpWx
},
style
:
{
marginRight
:
'150px'
,
cursor
:
'pointer'
,
color
:
'#5850ff'
}
},
[
'企业微信授权 '
,
h
(
'i'
,
{
class
:
'el-icon-d-arrow-right'
},
''
)])])
})
}
})
}
})
})
},
syncClick
()
{
syncClick
()
{
let
_this
=
this
let
_this
=
this
_this
.
sloading
=
true
_this
.
sloading
=
true
...
@@ -182,8 +233,9 @@ export default {
...
@@ -182,8 +233,9 @@ export default {
})
})
.
catch
(
err
=>
{
.
catch
(
err
=>
{
_this
.
sloading
=
false
_this
.
sloading
=
false
}).
finally
(()
=>
{
})
_this
.
sloading
=
false
;
.
finally
(()
=>
{
_this
.
sloading
=
false
})
})
},
},
setTableHeightEvent
()
{
setTableHeightEvent
()
{
...
@@ -202,19 +254,41 @@ export default {
...
@@ -202,19 +254,41 @@ export default {
// }
// }
this
.
$refs
.
clientGroupManage
.
data
.
length
?
(
this
.
$refs
.
clientGroupManage
.
tableHeightValues
=
''
)
:
this
.
$refs
.
clientGroupManage
.
setTableHeightFun
()
this
.
$refs
.
clientGroupManage
.
data
.
length
?
(
this
.
$refs
.
clientGroupManage
.
tableHeightValues
=
''
)
:
this
.
$refs
.
clientGroupManage
.
setTableHeightFun
()
},
},
//导出
handleExport
(){
var
params
=
this
.
getParams
()
clientGroupExportApi
(
params
).
then
(
res
=>
{
this
.
$Utils
.
exportFn
(
res
)
})
},
searchTable
()
{
searchTable
()
{
this
.
$refs
.
clientGroupManage
.
refreshTable
()
this
.
$refs
.
clientGroupManage
.
refreshTable
()
},
},
getParams
(){
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
if
(
params
.
daterange
)
{
params
.
beginTime
=
this
.
searchForm
.
daterange
[
0
]
params
.
endTime
=
this
.
searchForm
.
daterange
[
1
]
}
else
{
if
(
params
.
beginTime
)
delete
params
.
beginTime
&&
delete
params
.
endTime
}
delete
params
.
daterange
return
params
},
beforeSearchFn
()
{
beforeSearchFn
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
// return new Promise((resolve, reject) => {
this
.
searchFormTable
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
// this.searchFormTable = JSON.parse(JSON.stringify(this.searchForm))
if
(
this
.
searchFormTable
.
daterange
)
{
// if (this.searchFormTable.daterange) {
this
.
searchFormTable
.
beginTime
=
this
.
searchForm
.
daterange
[
0
]
// this.searchFormTable.beginTime = this.searchForm.daterange[0]
this
.
searchFormTable
.
endTime
=
this
.
searchForm
.
daterange
[
1
]
// this.searchFormTable.endTime = this.searchForm.daterange[1]
delete
this
.
searchFormTable
.
daterange
// delete this.searchFormTable.daterange
}
else
{
// } else {
if
(
this
.
searchFormTable
.
beginTime
)
delete
this
.
searchFormTable
.
beginTime
&&
delete
this
.
searchFormTable
.
endTime
// if (this.searchFormTable.beginTime) delete this.searchFormTable.beginTime && delete this.searchFormTable.endTime
}
// }
// resolve()
// })
return
new
Promise
((
resolve
,
reject
)
=>
{
this
.
searchFormTable
=
this
.
getParams
()
resolve
()
resolve
()
})
})
},
},
...
@@ -258,8 +332,20 @@ export default {
...
@@ -258,8 +332,20 @@ export default {
//
min-width
:
1300px
;
//
min-width
:
1300px
;
background-color
:
#fff
;
background-color
:
#fff
;
.el-button
+
.el-button
{
.el-button
+
.el-button
{
margin-left
:
2
0px
;
margin-left
:
1
0px
;
}
}
}
}
.el-message--info
{
height
:
40px
;
background
:
#e6e9ff
;
border
:
1px
solid
#5850ff
;
border-radius
:
4px
;
font-size
:
14px
;
color
:
rgba
(
0
,
0
,
0
,
0.65
);
}
.el-message
.el-icon-info
{
color
:
#5850ff
;
font-size
:
16px
;
}
}
}
</
style
>
</
style
>
src/views/clientManage/clientDetail.vue
View file @
c4b41bc
...
@@ -68,7 +68,7 @@
...
@@ -68,7 +68,7 @@
</el-tooltip>
</el-tooltip>
</p>
</p>
<p>
<p>
<span>
渠道来源
</span>
<span>
所属渠道
</span>
<el-tooltip
effect=
"dark"
:content=
"leftPanelInfo.sourceChannel"
placement=
"top"
>
<el-tooltip
effect=
"dark"
:content=
"leftPanelInfo.sourceChannel"
placement=
"top"
>
<span
class=
"ellipsis-1"
>
{{
leftPanelInfo
.
sourceChannel
}}
</span>
<span
class=
"ellipsis-1"
>
{{
leftPanelInfo
.
sourceChannel
}}
</span>
</el-tooltip>
</el-tooltip>
...
@@ -124,9 +124,11 @@
...
@@ -124,9 +124,11 @@
</GLTable>
</GLTable>
</
template
>
</
template
>
<div
v-show=
"currentIndex == 2"
class=
"clientTagsWrap"
>
<div
v-show=
"currentIndex == 2"
class=
"clientTagsWrap"
>
<div
style=
"height:40px"
></div>
<div
style=
"height: 40px"
></div>
<!-- //提示面板组件 -->
<tip-panel
panelWidth=
"666px"
panelMinHeight=
"45px"
:panelContent=
"panelContent"
></tip-panel>
<!-- v-if="userType == 2" -->
<!-- v-if="userType == 2" -->
<el-button
type=
"primary"
class=
"addTagBtn"
size=
"small"
@
click=
"btnClick('create')"
v-if=
"userType == 2"
>
添加标签
</el-button>
<el-button
type=
"primary"
class=
"addTagBtn"
size=
"small"
@
click=
"btnClick('create')"
v-if=
"userType == 2"
>
添加标签
</el-button>
<GLTable
ref=
"clientTagsListRef"
:hasNum=
"false"
:noDataImg=
"url"
noDataText=
"客户暂无已添加的标签"
:tableData=
"clientTagsList"
:hasPage=
"false"
:tableParams=
"tagsParams"
:headerStyle=
"{ height: '54px' }"
>
<GLTable
ref=
"clientTagsListRef"
:hasNum=
"false"
:noDataImg=
"url"
noDataText=
"客户暂无已添加的标签"
:tableData=
"clientTagsList"
:hasPage=
"false"
:tableParams=
"tagsParams"
:headerStyle=
"{ height: '54px' }"
>
<span
slot=
"labelGroupInfo"
slot-scope=
"scope"
>
<span
slot=
"labelGroupInfo"
slot-scope=
"scope"
>
<span>
{{ scope.scope.labelGroupInfo.labelGroupName }}
</span>
<span>
{{ scope.scope.labelGroupInfo.labelGroupName }}
</span>
...
@@ -163,15 +165,15 @@
...
@@ -163,15 +165,15 @@
<span
v-for=
"(i, j) in item.labelList"
:key=
"j"
class=
"ellipsis-1"
:class=
"{ activeTag: i.checked }"
:title=
"i.name"
@
click=
"checkNewTag(i.checked, j, item.labelList, i.original)"
>
{{ i.name }}
</span>
<span
v-for=
"(i, j) in item.labelList"
:key=
"j"
class=
"ellipsis-1"
:class=
"{ activeTag: i.checked }"
:title=
"i.name"
@
click=
"checkNewTag(i.checked, j, item.labelList, i.original)"
>
{{ i.name }}
</span>
</div>
</div>
</div>
</div>
<
template
v-if=
"merchantModel == 1 && accountLevel == 4"
>
<
template
v-if=
"merchantModel == 1 && accountLevel == 4"
>
<p
class=
"dialogSubTitle"
>
自店标签
</p>
<p
class=
"dialogSubTitle"
>
自店标签
</p>
<div
class=
"ownShopRowData"
v-for=
"(xItem, xIndex) in ownShopTagsList"
:key=
"xIndex"
>
<div
class=
"ownShopRowData"
v-for=
"(xItem, xIndex) in ownShopTagsList"
:key=
"xIndex"
>
<span
:title=
"xItem.labelGroup.name"
>
{{
xItem
.
labelGroup
.
name
}}
</span>
<span
:title=
"xItem.labelGroup.name"
>
{{
xItem
.
labelGroup
.
name
}}
</span>
<div
class=
"tagsBox"
>
<div
class=
"tagsBox"
>
<span
v-for=
"(m, n) in xItem.labelList"
:key=
"n"
class=
"ellipsis-1"
:class=
"
{ activeTag: m.checked }" :title="m.name" @click="checkNewTag(m.checked, n, xItem.labelList, m.original)">
{{
m
.
name
}}
</span>
<span
v-for=
"(m, n) in xItem.labelList"
:key=
"n"
class=
"ellipsis-1"
:class=
"
{ activeTag: m.checked }" :title="m.name" @click="checkNewTag(m.checked, n, xItem.labelList, m.original)">
{{
m
.
name
}}
</span>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
<!-- 这里btn-behind插槽莫名失效了,原因:??? -->
<!-- 这里btn-behind插槽莫名失效了,原因:??? -->
...
@@ -183,12 +185,17 @@
...
@@ -183,12 +185,17 @@
<
script
>
<
script
>
import
{
getAllTagTree
,
getSingleClientTag
,
addSingleClientTag
,
getTableDetail
}
from
'@/api/modules/clientManage'
import
{
getAllTagTree
,
getSingleClientTag
,
addSingleClientTag
,
getTableDetail
}
from
'@/api/modules/clientManage'
import
url
from
"@/assets/clientDetail/noDataBox.png"
import
tipPanel
from
'@/components/tipPanel/index.vue'
import
url
from
'@/assets/clientDetail/noDataBox.png'
export
default
{
export
default
{
name
:
'clientDetail'
,
name
:
'clientDetail'
,
components
:
{
tipPanel
},
data
()
{
data
()
{
return
{
return
{
url
:
url
,
panelContent
:
'说明:标签信息包含跟进员工标记的企业标签和自店标签,以及通过大数据算法生成的系统标签'
,
url
:
url
,
leftPanelInfo
:
{},
leftPanelInfo
:
{},
labelIdList
:
[],
//存放用户被标记标签的id
labelIdList
:
[],
//存放用户被标记标签的id
tagsList
:
[
tagsList
:
[
...
@@ -312,7 +319,7 @@ export default {
...
@@ -312,7 +319,7 @@ export default {
listName
:
'customerBases'
,
listName
:
'customerBases'
,
tableColumns
:
[
tableColumns
:
[
{
{
label
:
'
客户群
名称'
,
label
:
'
群聊
名称'
,
prop
:
'groupName'
,
prop
:
'groupName'
,
addHtml
:
'groupName'
addHtml
:
'groupName'
},
},
...
@@ -358,6 +365,14 @@ export default {
...
@@ -358,6 +365,14 @@ export default {
width
:
'160'
width
:
'160'
},
},
{
{
label
:
'标签组类型'
,
prop
:
'labelGroupInfo'
,
formatter
:
cellValue
=>
{
return
cellValue
.
labelGroupInfo
.
labelGroupType
},
width
:
'160'
},
{
label
:
'已打标签'
,
label
:
'已打标签'
,
prop
:
'labelInfoList'
,
prop
:
'labelInfoList'
,
addHtml
:
'labelInfoList'
,
addHtml
:
'labelInfoList'
,
...
@@ -379,7 +394,8 @@ export default {
...
@@ -379,7 +394,8 @@ export default {
merchantModel
:
1
,
//集团:1,门店:2
merchantModel
:
1
,
//集团:1,门店:2
accountLevel
:
0
,
//1,2,3,4工厂,省代,市代,门店
accountLevel
:
0
,
//1,2,3,4工厂,省代,市代,门店
userType
:
0
,
//1是商户,2是员工
userType
:
0
,
//1是商户,2是员工
userid
:
0
//小龙需要用户id
userid
:
0
,
//小龙需要用户id
staffId
:
0
}
}
},
},
...
@@ -398,13 +414,13 @@ export default {
...
@@ -398,13 +414,13 @@ export default {
console
.
log
(
this
.
tagsParams
,
'kkkk'
)
console
.
log
(
this
.
tagsParams
,
'kkkk'
)
},
},
methods
:
{
methods
:
{
tabClick
(
index
)
{
closePanel
()
{
// if (!this.$refs.memberOrderRef.data.length) {
this
.
isFirstShow
=
false
// this.$refs.memberOrderRef.setTableHeightFun()
},
// }
tabClick
(
index
)
{
this
.
currentIndex
=
index
this
.
currentIndex
=
index
if
(
this
.
currentIndex
==
2
&&
this
.
clientTagsList
.
length
<=
0
)
{
if
(
this
.
currentIndex
==
2
&&
this
.
clientTagsList
.
length
<=
0
)
{
this
.
$refs
.
clientTagsListRef
.
setTableHeightFun
()
this
.
$refs
.
clientTagsListRef
.
setTableHeightFun
()
}
}
},
},
showTagArray
(
list
)
{
showTagArray
(
list
)
{
...
@@ -484,6 +500,7 @@ export default {
...
@@ -484,6 +500,7 @@ export default {
return
false
return
false
}
}
this
.
userid
=
res
.
userid
this
.
userid
=
res
.
userid
this
.
staffId
=
res
.
staffId
this
.
leftPanelInfo
=
res
.
info
this
.
leftPanelInfo
=
res
.
info
this
.
vehicleTableData
=
res
.
vehicleInfoList
||
[]
this
.
vehicleTableData
=
res
.
vehicleInfoList
||
[]
this
.
employTableList
=
res
.
staffFollows
||
[]
this
.
employTableList
=
res
.
staffFollows
||
[]
...
@@ -566,7 +583,9 @@ export default {
...
@@ -566,7 +583,9 @@ export default {
'req.labelGroupId'
:
item
.
labelGroup
.
id
,
'req.labelGroupId'
:
item
.
labelGroup
.
id
,
'req.edition'
:
this
.
merchantModel
,
'req.edition'
:
this
.
merchantModel
,
'req.merchantId'
:
this
.
merchantId
,
'req.merchantId'
:
this
.
merchantId
,
'req.staffId'
:
this
.
userid
'req.uuId'
:
this
.
userid
,
'req.staffId'
:
this
.
staffId
// 'req.labelIdList': item.labelList.map(ele => ele.id)
// 'req.labelIdList': item.labelList.map(ele => ele.id)
}
}
var
ids
=
item
.
labelList
.
map
(
ele
=>
ele
.
id
)
var
ids
=
item
.
labelList
.
map
(
ele
=>
ele
.
id
)
...
@@ -759,7 +778,7 @@ export default {
...
@@ -759,7 +778,7 @@ export default {
}
}
}
}
.addTagBtn
{
.addTagBtn
{
margin-bottom
:
10px
;
margin-bottom
:
10px
;
}
}
//
处理客户标签的样式
//
处理客户标签的样式
.clientTagsWrap
{
.clientTagsWrap
{
...
...
src/views/clientManage/index.vue
View file @
c4b41bc
...
@@ -3,9 +3,9 @@
...
@@ -3,9 +3,9 @@
<div
class=
"scrm-sub-client-container"
>
<div
class=
"scrm-sub-client-container"
>
<!--
<p
class=
"pageTitle"
>
客户管理
</p>
-->
<!--
<p
class=
"pageTitle"
>
客户管理
</p>
-->
<div
class=
"pageContent"
>
<div
class=
"pageContent"
>
<search-form
:ploading=
"sloading"
:isHasSyncBtn=
"true"
:showDefaultTime=
"false"
:merchantModel=
"merchantModel"
:accountLevel=
"accountLevel"
class=
"searchTop border-shadow"
:formModel=
"searchForm"
:formList=
"clientManageFormList"
@
resetTable=
"resetTable"
@
searchTable=
"searchTable"
@
syncClick=
"syncClick"
>
<search-form
:ploading=
"sloading"
:isHasSyncBtn=
"true"
:showDefaultTime=
"false"
:merchantModel=
"merchantModel"
:accountLevel=
"accountLevel"
class=
"searchTop border-shadow"
:formModel=
"searchForm"
:formList=
"clientManageFormList"
@
resetTable=
"resetTable"
@
searchTable=
"searchTable"
@
handleExport=
"handleExport"
@
syncClick=
"syncClick"
>
<span
class=
"inline-b"
slot=
"form-slot"
>
<span
class=
"inline-b"
slot=
"form-slot"
>
<el-button
type=
"primary"
>
导出
</el-button>
<el-button
type=
"primary"
@
click=
"handleExport"
>
导出
</el-button>
<el-button
plain
@
click=
"resetTable"
>
重置
</el-button>
<el-button
plain
@
click=
"resetTable"
>
重置
</el-button>
<el-button
type=
"primary"
@
click=
"searchTable"
>
查询
</el-button>
<el-button
type=
"primary"
@
click=
"searchTable"
>
查询
</el-button>
<!-- v-if="(merchantModel == 1 && accountLevel == 1) || (merchantModel == 2 && accountLevel == 4)" 不做判定了, 允许所有人同步 -->
<!-- v-if="(merchantModel == 1 && accountLevel == 1) || (merchantModel == 2 && accountLevel == 4)" 不做判定了, 允许所有人同步 -->
...
@@ -80,7 +80,7 @@
...
@@ -80,7 +80,7 @@
<
/template
>
<
/template
>
<
script
>
<
script
>
import
{
getTableList
,
getDictionaryFun
,
syncCustomer
}
from
'@/api/modules/clientManage'
import
{
getTableList
,
getDictionaryFun
,
syncCustomer
,
clientManageExportApi
}
from
'@/api/modules/clientManage'
import
url
from
'@/assets/clientDataOverview/nodata.png'
import
url
from
'@/assets/clientDataOverview/nodata.png'
export
default
{
export
default
{
name
:
'clientManage'
,
name
:
'clientManage'
,
...
@@ -146,7 +146,7 @@ export default {
...
@@ -146,7 +146,7 @@ export default {
{
{
type
:
'select'
,
type
:
'select'
,
prop
:
'addWay'
,
prop
:
'addWay'
,
label
:
'来源'
,
label
:
'
添加
来源'
,
placeholder
:
'请选择当前来源'
,
placeholder
:
'请选择当前来源'
,
options
:
[]
//this.$Constants.SOURCE_OPTION
options
:
[]
//this.$Constants.SOURCE_OPTION
}
,
}
,
...
@@ -216,17 +216,6 @@ export default {
...
@@ -216,17 +216,6 @@ export default {
minWidth
:
120
minWidth
:
120
}
,
}
,
{
{
label
:
'来源'
,
prop
:
'addWay'
,
addHtml
:
'addWay'
,
minWidth
:
100
}
,
{
label
:
'渠道来源'
,
prop
:
'sourceChannel'
,
width
:
100
}
,
{
label
:
'是否加企微'
,
//1. 加入,0.未加入
label
:
'是否加企微'
,
//1. 加入,0.未加入
prop
:
'isJoin'
,
prop
:
'isJoin'
,
addHtml
:
'isJoin'
,
addHtml
:
'isJoin'
,
...
@@ -239,6 +228,17 @@ export default {
...
@@ -239,6 +228,17 @@ export default {
minWidth
:
100
minWidth
:
100
}
,
}
,
{
{
label
:
'所属渠道'
,
prop
:
'sourceChannel'
,
width
:
100
}
,
{
label
:
'添加来源'
,
prop
:
'addWay'
,
addHtml
:
'addWay'
,
minWidth
:
100
}
,
{
label
:
'添加时间'
,
label
:
'添加时间'
,
prop
:
'addTime'
,
prop
:
'addTime'
,
width
:
98
width
:
98
...
@@ -299,17 +299,31 @@ export default {
...
@@ -299,17 +299,31 @@ export default {
//
}
//
}
this
.
$refs
.
clientManage
.
data
.
length
?
(
this
.
$refs
.
clientManage
.
tableHeightValues
=
''
)
:
this
.
$refs
.
clientManage
.
setTableHeightFun
()
this
.
$refs
.
clientManage
.
data
.
length
?
(
this
.
$refs
.
clientManage
.
tableHeightValues
=
''
)
:
this
.
$refs
.
clientManage
.
setTableHeightFun
()
}
,
}
,
getParams
(){
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
if
(
params
.
daterange
)
{
params
.
beginTime
=
this
.
searchForm
.
daterange
[
0
]
params
.
endTime
=
this
.
searchForm
.
daterange
[
1
]
}
else
{
if
(
params
.
beginTime
)
delete
params
.
beginTime
&&
delete
params
.
endTime
}
delete
params
.
daterange
return
params
}
,
beforeSearchFn
()
{
beforeSearchFn
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
// return new Promise((resolve, reject) =>
{
this
.
searchFormTable
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
// this.searchFormTable = JSON.parse(JSON.stringify(this.searchForm))
console
.
log
(
this
.
searchFormTable
.
daterange
,
'时间'
)
// if (this.searchFormTable.daterange)
{
if
(
this
.
searchFormTable
.
daterange
)
{
// this.searchFormTable.beginTime = this.searchForm.daterange[0]
this
.
searchFormTable
.
beginTime
=
this
.
searchForm
.
daterange
[
0
]
// this.searchFormTable.endTime = this.searchForm.daterange[1]
this
.
searchFormTable
.
endTime
=
this
.
searchForm
.
daterange
[
1
]
// delete this.searchFormTable.daterange
}
else
{
//
}
else
{
if
(
this
.
searchFormTable
.
beginTime
)
delete
this
.
searchFormTable
.
beginTime
&&
delete
this
.
searchFormTable
.
endTime
// if (this.searchFormTable.beginTime) delete this.searchFormTable.beginTime && delete this.searchFormTable.endTime
}
//
}
delete
this
.
searchFormTable
.
daterange
// resolve()
//
}
)
return
new
Promise
((
resolve
,
reject
)
=>
{
this
.
searchFormTable
=
this
.
getParams
()
resolve
()
resolve
()
}
)
}
)
}
,
}
,
...
@@ -345,6 +359,13 @@ export default {
...
@@ -345,6 +359,13 @@ export default {
return
curElement
.
label
return
curElement
.
label
}
,
}
,
//导出
handleExport
(){
var
params
=
this
.
getParams
()
clientManageExportApi
(
params
).
then
(
res
=>
{
this
.
$Utils
.
exportFn
(
res
)
}
)
}
,
//搜索表格
//搜索表格
searchTable
()
{
searchTable
()
{
this
.
$refs
.
clientManage
.
refreshTable
()
this
.
$refs
.
clientManage
.
refreshTable
()
...
@@ -411,7 +432,7 @@ export default {
...
@@ -411,7 +432,7 @@ export default {
// min-width: 1300px;
// min-width: 1300px;
background
-
color
:
#
fff
;
background
-
color
:
#
fff
;
.
el
-
button
+
.
el
-
button
{
.
el
-
button
+
.
el
-
button
{
margin
-
left
:
2
0
px
;
margin
-
left
:
1
0
px
;
}
}
.
searchTop
{
.
searchTop
{
// margin-bottom: 20px;
// margin-bottom: 20px;
...
...
src/views/tagsManage/index.vue
View file @
c4b41bc
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
<!-- v-if="!(merchantModel == 1 && accountLevel == 4)" -->
<!-- v-if="!(merchantModel == 1 && accountLevel == 4)" -->
<div>
企业标签为全局标签,员工可在企微APP端客户详情、客户跟进等模块查看和打标签,最多3000个;
</div>
<div>
企业标签为全局标签,员工可在企微APP端客户详情、客户跟进等模块查看和打标签,最多3000个;
</div>
<div
v-if=
"!((merchantModel == 2 && accountLevel == 4) || (merchantModel == 1 && accountLevel == 1))"
>
自店标签为企业商户自有标签,员工可在企微APP端客户跟进等模块查看和打标签,最多3000个;
</div>
<div
v-if=
"!((merchantModel == 2 && accountLevel == 4) || (merchantModel == 1 && accountLevel == 1))"
>
自店标签为企业商户自有标签,员工可在企微APP端客户跟进等模块查看和打标签,最多3000个;
</div>
<div>
行业
标签为通过大数据算法规则生成的标签
</div>
<div>
系统
标签为通过大数据算法规则生成的标签
</div>
<img
src=
"@/assets/tagsManage/question.png"
slot=
"reference"
alt=
""
/>
<img
src=
"@/assets/tagsManage/question.png"
slot=
"reference"
alt=
""
/>
</el-popover>
</el-popover>
</span>
</span>
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
<div
class=
"initPanel"
v-if=
"isFirstShow"
>
<div
class=
"initPanel"
v-if=
"isFirstShow"
>
<
template
v-if=
"!(merchantModel == 1 && accountLevel == 4)"
>
企业标签为全局标签,员工可在企微APP端客户详情、客户跟进等模块查看和打标签,最多3000个;
</
template
>
<
template
v-if=
"!(merchantModel == 1 && accountLevel == 4)"
>
企业标签为全局标签,员工可在企微APP端客户详情、客户跟进等模块查看和打标签,最多3000个;
</
template
>
<
template
v-if=
"!((merchantModel == 2 && accountLevel == 4) || (merchantModel == 1 && accountLevel == 1))"
>
自店标签为企业商户自有标签,员工可在企微APP端客户跟进等模块查看和打标签,最多3000个;
</
template
>
<
template
v-if=
"!((merchantModel == 2 && accountLevel == 4) || (merchantModel == 1 && accountLevel == 1))"
>
自店标签为企业商户自有标签,员工可在企微APP端客户跟进等模块查看和打标签,最多3000个;
</
template
>
行业
标签为通过大数据算法规则生成的标签
系统
标签为通过大数据算法规则生成的标签
<img
src=
"@/assets/tagsManage/Shape.png"
alt=
""
/>
<img
src=
"@/assets/tagsManage/Shape.png"
alt=
""
/>
<i
class=
"el-icon-close"
@
click=
"closeInitPanel"
></i>
<i
class=
"el-icon-close"
@
click=
"closeInitPanel"
></i>
</div>
</div>
...
@@ -66,7 +66,7 @@
...
@@ -66,7 +66,7 @@
</span>
</span>
<
template
slot=
"xxx"
slot-scope=
"scope"
>
<
template
slot=
"xxx"
slot-scope=
"scope"
>
<!-- //这版关掉自店标签 1.0.1允许集团的门店打字店标签,也可以编辑-->
<!-- //这版关掉自店标签 1.0.1允许集团的门店打字店标签,也可以编辑-->
<span
@
click=
"btnClick('edit', scope.scope)"
class=
"blue-text"
v-if=
"scope.scope.labelType != '
行业
标签' && isShowEditBtn(scope.scope)"
>
编辑标签组
</span>
<span
@
click=
"btnClick('edit', scope.scope)"
class=
"blue-text"
v-if=
"scope.scope.labelType != '
系统
标签' && isShowEditBtn(scope.scope)"
>
编辑标签组
</span>
</
template
>
</
template
>
</GLTable>
</GLTable>
</div>
</div>
...
@@ -208,8 +208,8 @@ export default {
...
@@ -208,8 +208,8 @@ export default {
value
:
'自店标签'
value
:
'自店标签'
},
},
{
{
label
:
'
行业
标签'
,
label
:
'
系统
标签'
,
value
:
'
行业
标签'
value
:
'
系统
标签'
}
}
]
]
},
},
...
@@ -832,7 +832,7 @@ export default {
...
@@ -832,7 +832,7 @@ export default {
margin-top
:
20px
;
margin-top
:
20px
;
background-color
:
#fff
;
background-color
:
#fff
;
.el-button
+
.el-button
{
.el-button
+
.el-button
{
margin-left
:
2
0px
;
margin-left
:
1
0px
;
}
}
.allTagsWrap
{
.allTagsWrap
{
...
@@ -854,7 +854,7 @@ export default {
...
@@ -854,7 +854,7 @@ export default {
display
:
inline-block
;
display
:
inline-block
;
margin-right
:
10px
;
margin-right
:
10px
;
//
margin-bottom
:
2
px
;
margin-bottom
:
10
px
;
padding
:
0
10px
;
padding
:
0
10px
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
min-width
:
76px
;
min-width
:
76px
;
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment