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 12f55cbd
authored
Dec 22, 2021
by
李长胜
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
权限修改,1.0.1需求
1 parent
b82d24a2
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
620 additions
and
91 deletions
package.json
src/api/modules/clientGroupManage.js
src/components/basic-dialog/index.vue
src/setup/qiankun.js
src/views/clientGroupManage/clientGroupDetail.vue
src/views/clientGroupManage/clientGroupDetailNext.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
package.json
View file @
12f55cb
...
...
@@ -14,7 +14,7 @@
"echarts"
:
"^5.2.0"
,
"element-ui"
:
"^2.4.5"
,
"glsx-common"
:
"^1.4.6"
,
"glsx-components"
:
"^1.2.
5
"
,
"glsx-components"
:
"^1.2.
7
"
,
"glsx-table"
:
"^1.1.0"
,
"jquery"
:
"^3.6.0"
,
"sha1"
:
"^1.1.1"
,
...
...
src/api/modules/clientGroupManage.js
View file @
12f55cb
...
...
@@ -36,7 +36,16 @@
sign
:
true
})
}
export
function
getClientTableDetail
(
params
){
params
.
method
=
'entmicro.api.customer.detail'
return
http
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
returnAll
:
true
})
}
// 客户群的客户列表获取分页数据接口
export
function
getDetailTableList
(
params
){
params
.
method
=
'entmicro.api.customer.base.cust.page'
...
...
src/components/basic-dialog/index.vue
View file @
12f55cb
...
...
@@ -91,8 +91,8 @@ export default {
}
.el-dialog__body
{
padding
:
0
;
border-top
:
1px
solid
#E6E6E6
;
border-bottom
:
1px
solid
#E6E6E6
;
//
border-top
:
1px
solid
#E6E6E6
;
//
border-bottom
:
1px
solid
#E6E6E6
;
min-height
:
250px
;
//
max-height
:
636px
;
overflow-y
:
auto
;
...
...
src/setup/qiankun.js
View file @
12f55cb
...
...
@@ -12,7 +12,7 @@ import 'glsx-components/dist/glsx-components.css'
let
routes
=
[]
let
router
=
null
let
instance
=
null
export
async
function
bootstrap
({
name
,
id
,
history
,
common
,
messenger
,
globalState
})
{
export
async
function
bootstrap
({
name
,
id
,
history
,
common
,
messenger
,
globalState
,
routerBase
})
{
const
{
response
,
request
,
sign
,
secret
,
sign_common
,
request_common
}
=
await
fetchConfig
(
globalState
.
configSwitch
)
//globalState.configSwitch
Vue
.
prototype
.
$history
=
history
Vue
.
prototype
.
$messenger
=
messenger
...
...
@@ -26,6 +26,7 @@ export async function bootstrap({ name, id, history, common, messenger, globalSt
routes
=
getRoutes
(
routesData
)
// { name, id, }
subscribe
({
messenger
})
Vue
.
use
(
GLButton
,
{
routes
,
routerBase
})
}
export
async
function
mount
(
props
)
{
const
insts
=
render
(
props
.
routerBase
,
routes
)
...
...
src/views/clientGroupManage/clientGroupDetail.vue
View file @
12f55cb
...
...
@@ -25,10 +25,10 @@
<span
class=
"ellipsis-1"
>
{{
leftPanelList
.
groupHostEmail
}}
</span>
</el-tooltip>
</p>
<p>
<
!--
<
p>
<span>
群主部门
</span>
<span
class=
"ellipsis-1"
>
{{
leftPanelList
.
groupHostDepart
}}
</span>
</p>
</p>
-->
<p>
<span>
群管理员
</span>
<el-tooltip
class=
"item"
:content=
"leftPanelList.groupAdmin"
placement=
"top"
>
...
...
@@ -47,7 +47,7 @@
<span>
客户列表
</span>
<span>
{{
clientTableDataNum
||
0
}}
个
</span>
</p>
<search-form
class=
"searchTop border-shadow"
:isNeedThreeBtns=
"false"
:showDefaultTime=
"
tru
e"
:formModel=
"searchForm"
:formList=
"clientGroupFormList"
@
setTableHeightEvent=
"setTableHeightEvent"
>
<search-form
class=
"searchTop border-shadow"
:isNeedThreeBtns=
"false"
:showDefaultTime=
"
fals
e"
:formModel=
"searchForm"
:formList=
"clientGroupFormList"
@
setTableHeightEvent=
"setTableHeightEvent"
>
<span
class=
"inline-b"
slot=
"form-slot"
>
<el-button
plain
@
click=
"resetTable"
>
重置
</el-button>
<el-button
type=
"primary"
@
click=
"searchTable"
>
查询
</el-button>
...
...
@@ -72,23 +72,30 @@
<span
@
click=
"goDetail(scope.scope.id)"
class=
"blue-text"
>
详情
</span>
</
template
>
</GLTable>
<basic-dialog
title=
""
width=
"547px"
:isVisible=
"dialogVisible"
@
confirmDialog=
"handleConfirm"
@
closeDialog=
"handleClose"
>
<div
class=
"content-body"
>
<p>
该客户暂无员工跟进,无法查看该客户详情,
</p>
<p
class=
"bottomText"
>
赶紧去加好友吧!
</p>
</div>
</basic-dialog>
</div>
</div>
</div>
</template>
<
script
>
import
{
getTableDetail
,
getDetailTableList
}
from
'@/api/modules/clientGroupManage'
import
{
getTableDetail
,
getDetailTableList
,
getClientTableDetail
}
from
'@/api/modules/clientGroupManage'
import
url
from
'@/assets/clientDataOverview/nodata.png'
export
default
{
name
:
'clientGroupDetail'
,
data
()
{
return
{
dialogVisible
:
false
,
groupName
:
this
.
$route
.
query
.
groupName
,
url
:
url
,
leftPanelList
:
{},
searchForm
:
{},
searchFormTable
:{},
searchFormTable
:
{},
clientGroupFormList
:
[
{
type
:
'daterange'
,
...
...
@@ -151,7 +158,8 @@ export default {
{
label
:
'客户名称'
,
prop
:
'customerName'
,
addHtml
:
'customerName'
addHtml
:
'customerName'
,
minWidth
:
100
},
{
label
:
'手机号码'
,
...
...
@@ -168,8 +176,13 @@ export default {
addHtml
:
'joinScene'
},
{
label
:
'邀请人'
,
prop
:
'invitePerson'
},
{
label
:
'入群时间'
,
prop
:
'joinTime'
prop
:
'joinTime'
,
width
:
95
}
],
tableOption
:
{
...
...
@@ -198,19 +211,19 @@ export default {
// this.searchTable()
// })
},
watch
:
{
'searchForm.daterange'
:{
deep
:
true
,
// immediate:true,
handler
(
val
)
{
console
.
log
(
'val值:'
,
val
)
if
(
val
){
console
.
log
(
'7777777777777'
)
this
.
searchTable
()
}
}
}
},
//
watch: {
//
'searchForm.daterange':{
//
deep: true,
//
// immediate:true,
//
handler(val) {
//
console.log('val值:',val)
//
if(val){
//
console.log('7777777777777')
// this.searchTable()
//
}
//
}
//
}
//
},
methods
:
{
async
getTableDetail
(
id
=
this
.
$route
.
query
.
id
)
{
...
...
@@ -221,16 +234,16 @@ export default {
}
this
.
leftPanelList
=
res
},
beforeSearchFn
()
{
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)
// 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
delete
this
.
searchFormTable
.
daterange
}
else
{
if
(
this
.
searchFormTable
.
beginTime
)
delete
this
.
searchFormTable
.
beginTime
&&
delete
this
.
searchFormTable
.
endTime
}
...
...
@@ -261,7 +274,18 @@ export default {
this
.
searchForm
=
{
id
:
this
.
$route
.
query
.
id
}
this
.
$refs
.
clientGroupDetail
.
refreshTable
()
},
handleClose
()
{
this
.
dialogVisible
=
!
this
.
dialogVisible
},
handleConfirm
(){
this
.
handleClose
()
},
goDetail
(
id
)
{
// 接口通过了跳转
// getClientTableDetail({id}).then(res=>{
// console.log(res,'kkkkk')
// })
// this.handleClose()
this
.
$router
.
push
({
path
:
'/clientManage/clientDetail'
,
query
:
{
...
...
@@ -405,5 +429,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
>
src/views/clientGroupManage/clientGroupDetailNext.vue
0 → 100644
View file @
12f55cb
<
template
>
<div
class=
"scrm-sub-client-container"
>
<div
class=
"header"
>
<div
class=
"vehicleGroupName"
>
<span>
{{
groupName
}}
</span>
</div>
<button
class=
"backBtn"
@
click=
"goBack"
>
返回客户群管理
</button>
</div>
<div
class=
"content"
>
<div
class=
"leftWrap"
>
<div
class=
"avator"
>
<img
src=
"@/assets/clientDetail/defaultAvator.png"
alt=
""
/>
</div>
<p>
<span>
群主
</span>
<span
class=
"ellipsis-1"
>
{{
leftPanelList
.
groupHostName
}}
</span>
</p>
<p>
<span>
群主手机
</span>
<span
class=
"ellipsis-1"
>
{{
leftPanelList
.
groupHostPhone
}}
</span>
</p>
<p>
<span>
群主邮箱
</span>
<el-tooltip
class=
"item"
:content=
"leftPanelList.groupHostEmail"
placement=
"top"
>
<span
class=
"ellipsis-1"
>
{{
leftPanelList
.
groupHostEmail
}}
</span>
</el-tooltip>
</p>
<!--
<p>
<span>
群主部门
</span>
<span
class=
"ellipsis-1"
>
{{
leftPanelList
.
groupHostDepart
}}
</span>
</p>
-->
<p>
<span>
群管理员
</span>
<el-tooltip
class=
"item"
:content=
"leftPanelList.groupAdmin"
placement=
"top"
>
<span
class=
"ellipsis-1"
>
{{
leftPanelList
.
groupAdmin
}}
</span>
</el-tooltip>
</p>
<p>
<span>
创建时间
</span>
<el-tooltip
class=
"item"
:content=
"leftPanelList.createDate"
placement=
"top"
>
<span
class=
"ellipsis-1"
>
{{
leftPanelList
.
createDate
}}
</span>
</el-tooltip>
</p>
</div>
<div
class=
"rightWrap"
>
<!--
<p>
<span>
客户列表
</span>
<span>
{{
clientTableDataNum
||
0
}}
个
</span>
</p>
-->
<div
class=
"choseRow"
>
<div
class=
"choseItem"
:class=
"
{activeItem:currentIndex==index}" v-for="(item,index) in titles" :key="index" @click="tabClick(index)">
<!--
<span>
{{
item
}}
</span>
<span>
{{
clientTableDataNum
||
0
}}
个
</span>
-->
<span>
{{
item
}}
(
{{
clientTableDataNum
||
0
}}
)个
</span>
</div>
</div>
<search-form
class=
"searchTop border-shadow"
:isNeedThreeBtns=
"false"
:showDefaultTime=
"false"
:formModel=
"searchForm"
:formList=
"clientGroupFormList"
@
setTableHeightEvent=
"setTableHeightEvent"
>
<span
class=
"inline-b"
slot=
"form-slot"
>
<el-button
plain
@
click=
"resetTable"
>
重置
</el-button>
<el-button
type=
"primary"
@
click=
"searchTable"
>
查询
</el-button>
</span>
</search-form>
<!-- :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"
>
<el-tooltip
effect=
"dark"
:content=
"scope.scope.customerName"
placement=
"top"
>
<span
class=
"ellipsis-1"
style=
"display: inline-block; max-width: 70px; text-align: left"
>
{{
scope
.
scope
.
customerName
}}
</span>
</el-tooltip>
<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>
</div>
</div>
</div>
</template>
<
script
>
import
{
getTableDetail
,
getDetailTableList
}
from
'@/api/modules/clientGroupManage'
import
url
from
'@/assets/clientDataOverview/nodata.png'
export
default
{
name
:
'clientGroupDetail'
,
data
()
{
return
{
titles
:[
'全部客户'
,
'潜在客户'
,
'退群客户'
,
'跟进员工'
],
currentIndex
:
0
,
groupName
:
this
.
$route
.
query
.
groupName
,
url
:
url
,
leftPanelList
:
{},
searchForm
:
{},
searchFormTable
:{},
clientGroupFormList
:
[
{
type
:
'daterange'
,
prop
:
'daterange'
,
label
:
'入群时间'
,
pickerOptions
:
{
disabledDate
(
time
)
{
return
time
.
getTime
()
>
Date
.
now
()
||
time
.
getTime
()
<
new
Date
(
'2017-12-31'
).
getTime
()
}
}
},
{
type
:
'select'
,
prop
:
'customerSex'
,
label
:
'性别'
,
placeholder
:
'请选择性别'
,
options
:
[
{
label
:
'全部'
,
value
:
null
},
{
label
:
'男'
,
value
:
1
},
{
label
:
'女'
,
value
:
2
},
{
label
:
'未知'
,
value
:
0
}
]
},
{
type
:
'input'
,
inputType
:
'text'
,
prop
:
'groupNickName'
,
label
:
'本群昵称'
,
placeholder
:
'请输入本群昵称'
},
{
type
:
'input'
,
inputType
:
'text'
,
prop
:
'customerName'
,
label
:
'客户名称'
,
placeholder
:
'请输入客户名称'
}
],
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'count'
},
tableParams
:
{
// btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName
:
'data'
,
tableColumns
:
[
{
label
:
'本群昵称'
,
prop
:
'groupNickName'
},
{
label
:
'客户名称'
,
prop
:
'customerName'
,
addHtml
:
'customerName'
},
{
label
:
'手机号码'
,
prop
:
'customerPhone'
},
{
label
:
'性别'
,
prop
:
'customerSex'
,
addHtml
:
'customerSex'
},
{
label
:
'入群方式'
,
prop
:
'joinScene'
,
addHtml
:
'joinScene'
},
{
label
:
'邀请人'
,
prop
:
'invitePerson'
,
},
{
label
:
'入群时间'
,
prop
:
'joinTime'
,
width
:
95
}
],
tableOption
:
{
width
:
80
,
btnList
:
[
{
name
:
'详情'
,
pType
:
'detail'
}
]
}
},
getListApi
:
getDetailTableList
,
clientTableDataNum
:
0
,
flushTime
:
false
}
},
created
()
{
this
.
getTableDetail
()
this
.
searchForm
=
{
id
:
this
.
$route
.
query
.
id
}
},
mounted
()
{
// this.$nextTick(() => {
// this.searchTable()
// })
},
// watch: {
// 'searchForm.daterange':{
// deep: true,
// // immediate:true,
// handler(val) {
// console.log('val值:',val)
// if(val){
// console.log('7777777777777')
// this.searchTable()
// }
// }
// }
// },
methods
:
{
tabClick
(
index
){
this
.
currentIndex
=
index
;
},
async
getTableDetail
(
id
=
this
.
$route
.
query
.
id
)
{
const
res
=
await
getTableDetail
({
id
:
id
})
console
.
log
(
'获取客户群数据'
,
res
)
if
(
!
res
)
{
return
false
}
this
.
leftPanelList
=
res
},
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
()
})
},
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
()
{
this
.
$router
.
push
({
path
:
'/clientGroupManage/index'
})
},
//搜索表格
searchTable
()
{
this
.
$refs
.
clientGroupDetail
.
refreshTable
()
},
//重置表格
resetTable
()
{
this
.
searchForm
=
{
id
:
this
.
$route
.
query
.
id
}
this
.
$refs
.
clientGroupDetail
.
refreshTable
()
},
goDetail
(
id
)
{
this
.
$router
.
push
({
path
:
'/clientManage/clientDetail'
,
query
:
{
id
:
id
}
})
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.scrm-sub-client-container
{
@import
'@/styles/variables.scss';
@import
'@/styles/resetelement.scss';
.header
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
height
:
72px
;
background
:
#ffffff
;
box-shadow
:
0px
10px
20px
0px
rgba
(
88
,
80
,
255
,
0.1
);
.vehicleGroupName
{
margin-left
:
26px
;
height
:
20px
;
font-size
:
20px
;
font-weight
:
600
;
color
:
#333333
;
line-height
:
20px
;
letter-spacing
:
1px
;
}
.backBtn
{
margin-right
:
20px
;
height
:
32px
;
font-size
:
14px
;
background
:
$
btnBlue
;
color
:
#fff
;
border-radius
:
4px
;
padding
:
0
20px
;
border
:
none
;
&:hover
{
background-color
:
$
lightBtnBlue
;
}
}
}
.content
{
display
:
flex
;
width
:
100%
;
margin-top
:
20px
;
.leftWrap
{
width
:
240px
;
//
height
:
877px
;
min-height
:
270px
;
//calc(100vh
-
92px);
background-color
:
#fff
;
box-sizing
:
border-box
;
.avator
{
margin
:
0
auto
;
margin-top
:
40px
;
width
:
60px
;
height
:
60px
;
text-align
:
center
;
line-height
:
60px
;
img
{
border-radius
:
50%
;
width
:
100%
;
height
:
100%
;
}
}
p
{
padding-left
:
20px
;
position
:
relative
;
margin-top
:
20px
;
span
:
first-child
{
display
:
inline-block
;
height
:
20px
;
font-size
:
14px
;
font-weight
:
600
;
color
:
#333333
;
line-height
:
20px
;
}
span
:nth-child
(
2
)
{
position
:
absolute
;
left
:
100px
;
display
:
inline-block
;
height
:
20px
;
font-size
:
14px
;
font-weight
:
400
;
color
:
#666666
;
line-height
:
20px
;
max-width
:
131px
;
}
}
}
.rightWrap
{
position
:
relative
;
margin-left
:
20px
;
width
:
calc
(
100%
-
260px
);
box-sizing
:
border-box
;
background-color
:
#fff
;
padding
:
20px
;
padding-top
:
50px
;
.choseRow{
position
:
absolute
;
width
:
100%
;
left
:
0
;
top
:
0
;
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
{
border-radius
:
4px
4px
0
0
;
background-color
:
#fff
;
span
{
color
:
$
btnBlue
;
font-weight
:
600
;
}
}
}
.el-button
+
.el-button
{
margin-left
:
20px
;
}
//
.el-button
{
//
font-size
:
14px
;
//
font-weight
:
400
;
//
padding
:
9px
21px
;
//
background
:
$
btnBlue
;
//
border-radius
:
4px
;
//
border
:
none
;
//
}
//
.el-button
:first-child
{
//
background
:
#ffffff
;
//
border-radius
:
4px
;
//
border
:
1px
solid
#999999
;
//
font-weight
:
400
;
//
color
:
#666666
;
//
}
.glsx-table
{
margin-top
:
20px
;
}
}
}
}
</
style
>
src/views/clientGroupManage/components/client.vue
0 → 100644
View file @
12f55cb
File mode changed
src/views/clientGroupManage/components/followEmployee.vue
0 → 100644
View file @
12f55cb
File mode changed
src/views/clientGroupManage/components/leaveGroupClient.vue
0 → 100644
View file @
12f55cb
File mode changed
src/views/clientGroupManage/components/potentialClient.vue
0 → 100644
View file @
12f55cb
File mode changed
src/views/clientGroupManage/index.vue
View file @
12f55cb
...
...
@@ -3,7 +3,7 @@
<div
class=
"scrm-sub-client-container"
>
<!--
<p
class=
"pageTitle"
>
客户群管理
</p>
-->
<div
class=
"pageContent"
>
<search-form
class=
"searchTop border-shadow"
:isHasSyncBtn=
"true"
:showDefaultTime=
"
tru
e"
: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=
"
fals
e"
:merchantModel=
"merchantModel"
:accountLevel=
"accountLevel"
:formModel=
"searchForm"
:formList=
"clientGroupFormList"
@
setTableHeightEvent=
"setTableHeightEvent"
@
resetTable=
"resetTable"
@
searchTable=
"searchTable"
@
syncClick=
"syncClick"
>
<span
class=
"inline-b"
slot=
"form-slot"
>
<el-button
plain
@
click=
"resetTable"
>
重置
</el-button>
<el-button
type=
"primary"
@
click=
"searchTable"
>
查询
</el-button>
...
...
@@ -19,7 +19,8 @@
</span>
<template
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<!--
<auth-button
:data=
"scope.scope"
></auth-button>
-->
<span
@
click=
"goDetail(scope.scope.id, scope.scope.custGroupName)"
class=
"blue-text"
>
详情
</span>
<!--
<span
@
click=
"goDetail(scope.scope.id, scope.scope.custGroupName)"
class=
"blue-text"
>
详情
</span>
-->
<GLButton
@
click=
"goDetail(scope.scope.id, scope.scope.custGroupName)"
fn=
"客户群详情"
type=
"text"
>
详情
</GLButton>
</
template
>
</GLTable>
</div>
...
...
@@ -38,10 +39,6 @@ export default {
isReload
:
true
,
url
:
url
,
sloading
:
false
,
titles
:
[
{
name
:
'客户群总数'
,
num
:
100
,
rate
:
'+10%'
,
isUp
:
true
,
tips
:
'群提示消息1'
},
{
name
:
'新增客户群数'
,
num
:
100
,
rate
:
'+10%'
,
isUp
:
true
,
tips
:
'群提示消息2'
}
],
searchForm
:
{},
searchFormTable
:
{},
clientGroupFormList
:
[
...
...
@@ -103,6 +100,21 @@ export default {
minWidth
:
140
},
{
label
:
'新增群聊成员数'
,
prop
:
'aa'
,
minWidth
:
140
},
{
label
:
'群聊员工数'
,
prop
:
'bb'
,
minWidth
:
140
},
{
label
:
'创建方式'
,
prop
:
'cc'
,
minWidth
:
140
},
{
label
:
'群主'
,
prop
:
'groupHostName'
},
...
...
@@ -179,10 +191,10 @@ export default {
},
setTableFinishFun
(
content
)
{
console
.
log
(
content
,
this
.
$refs
.
clientGroupManage
.
data
.
length
,
'获取数据'
)
if
(
!
this
.
flushTime
)
{
this
.
flushTime
=
true
this
.
searchTable
()
}
//
if (!this.flushTime) {
//
this.flushTime = true
//
this.searchTable()
//
}
//接收到的数据为空
// if (!this.$refs.clientGroupManage.data.length) {
...
...
@@ -214,7 +226,6 @@ export default {
this
.
isReload
=
true
})
},
btnClick
(
ptype
,
scope
)
{},
goDetail
(
id
,
name
)
{
this
.
$router
.
push
({
path
:
'/clientGroupManage/clientGroupDetail'
,
...
...
src/views/clientManage/clientDetail.vue
View file @
12f55cb
...
...
@@ -67,6 +67,12 @@
<span
class=
"ellipsis-1"
>
{{
leftPanelInfo
.
addWay
|
toLabel
}}
</span>
</el-tooltip>
</p>
<p>
<span>
渠道来源
</span>
<el-tooltip
effect=
"dark"
:content=
"leftPanelInfo.addWay | toLabel"
placement=
"top"
>
<span
class=
"ellipsis-1"
>
{{
leftPanelInfo
.
addWay
|
toLabel
}}
</span>
</el-tooltip>
</p>
</div>
<div
class=
"rightWrap"
>
<p><span>
标签信息
</span></p>
...
...
src/views/clientManage/index.vue
View file @
12f55cb
...
...
@@ -3,7 +3,7 @@
<div
class=
"scrm-sub-client-container"
>
<!--
<p
class=
"pageTitle"
>
客户管理
</p>
-->
<div
class=
"pageContent"
>
<search-form
:ploading=
"sloading"
:isHasSyncBtn=
"true"
:showDefaultTime=
"
tru
e"
: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=
"
fals
e"
:merchantModel=
"merchantModel"
:accountLevel=
"accountLevel"
class=
"searchTop border-shadow"
:formModel=
"searchForm"
:formList=
"clientManageFormList"
@
resetTable=
"resetTable"
@
searchTable=
"searchTable"
@
syncClick=
"syncClick"
>
<span
class=
"inline-b"
slot=
"form-slot"
>
<el-button
plain
@
click=
"resetTable"
>
重置
</el-button>
<el-button
type=
"primary"
@
click=
"searchTable"
>
查询
</el-button>
...
...
@@ -66,9 +66,9 @@
<
span
@
click
=
"goDetail(scope.scope.oneId)"
class
=
"blue-text"
>
详情
<
/span
>
<
/template> --
>
<
div
class
=
"table-btns"
slot
=
"optionBtns"
slot
-
scope
=
"scope"
>
<
el
-
button
type
=
"text"
@
click
=
"goDetail(scope.scope.oneId)"
>
详情
<
/el-button
>
<!--
<
el
-
button
type
=
"text"
@
click
=
"goDetail(scope.scope.oneId)"
>
详情
<
/el-button> --
>
<
GLButton
@
click
=
"goDetail(scope.scope.oneId)"
fn
=
"客户详情"
type
=
"text"
>
详情
<
/GLButton>
<
/div
>
<
/GLTable
>
<
/div
>
<
/div
>
...
...
@@ -220,10 +220,15 @@ export default {
minWidth
:
100
}
,
{
label
:
'渠道来源'
,
prop
:
'source'
,
width
:
100
}
,
{
label
:
'是否加企微'
,
//1. 加入,0.未加入
prop
:
'isJoin'
,
addHtml
:
'isJoin'
,
// minW
idth: 100
w
idth
:
100
}
,
{
label
:
'当前状态'
,
...
...
@@ -280,10 +285,13 @@ export default {
this
.
$refs
.
clientManage
.
setTableHeightFun
()
}
,
setTableFinishFun
(
content
)
{
if
(
!
this
.
flushTime
)
{
this
.
flushTime
=
true
this
.
searchTable
()
}
//关闭默认时间30天再刷新,showDefaultTime也要设置false
// if (!this.flushTime)
{
// this.flushTime = true
// this.searchTable()
//
}
//接收到的数据为空
// if (!this.$refs.clientManage.data.length)
{
// this.$refs.clientManage.setTableHeightFun()
...
...
src/views/tagsManage/index.vue
View file @
12f55cb
...
...
@@ -44,36 +44,32 @@
<!-- :class="[expande ? 'expande' : 'close']" -->
<div
id=
"allTagsWrap"
class=
"allTagsWrap"
>
<span
v-for=
"(item, index) in s
cope.scope.labelList
"
:key=
"index"
class=
"ellipsis-1 tag-box-wrap"
>
<span
v-for=
"(item, index) in s
howTagArray(scope.scope.labelList)
"
:key=
"index"
class=
"ellipsis-1 tag-box-wrap"
>
<el-tooltip
class=
"item"
:content=
"item.name"
placement=
"top"
>
<span>
{{ item.name }}
</span>
</el-tooltip>
</span>
<!-- <div class="expande-button-wrap" v-if="!needShowExpande">
<div class="expande-button" @click="expandeClick" v-if="!expande">
<i class="el-icon-arrow-down"></i>
<span>展开</span>
</div>
<div class="expande-button" @click="expandeClick" v-else>
<i class="el-icon-arrow-up"></i>
<span>收起</span>
</div>
</div> -->
<el-popover
v-if=
"scope.scope.labelList.length > 9 "
class=
"ellipsis-1 tag-box-wrap"
placement=
"top"
width=
"600"
trigger=
"hover"
content=
"这是一段内容,这是一段内容,这是一段内容,这是一段内容。"
>
<span
slot=
"reference"
>
...({{ scope.scope.labelList.length }})
</span>
<div
class=
"entmicro-hover"
style=
"height:214px;overflow-y:auto;"
>
<el-tag
type=
"info"
class=
"ellipsis-1"
style=
"margin-right: 10px; margin-bottom: 10px;max-width: 200px;"
v-for=
"(i, sindex) in scope.scope.labelList"
:key=
"sindex"
:disable-transitions=
"false"
>
<el-tooltip
class=
"item"
:content=
"i.name"
placement=
"top"
>
<span>
{{ i.name }}
</span>
</el-tooltip>
</el-tag>
</div>
</el-popover>
</div>
</span>
<
template
slot=
"xxx"
slot-scope=
"scope"
>
<!-- //这版关掉自店标签 -->
<span
@
click=
"btnClick('edit', scope.scope)"
class=
"blue-text"
v-if=
"scope.scope.labelType != '行业标签' && isShowEditBtn(scope.scope)"
>
编辑标签组
</span>
</
template
>
<!-- <div slot="additionalContent">
<div class="additional-text">标签用于对客户进行分类,以便用户能够更好的识别客户类型</div>
<button class="btn-blue">创建标签</button>
</div> -->
</GLTable>
</div>
<basic-dialog
class=
"role"
:title=
"tagDialogTitle"
:width=
"'712px'
"
:isVisible=
"tagVisible"
@
confirmDialog=
"handleConfirm"
@
closeDialog=
"handleClose"
>
<basic-dialog
class=
"role"
:title=
"tagDialogTitle"
width=
"712px
"
:isVisible=
"tagVisible"
@
confirmDialog=
"handleConfirm"
@
closeDialog=
"handleClose"
>
<slot>
<rule-form
:ruleForm=
"tagForm"
:rules=
"tagRules"
:ruleData=
"tagDialogData"
:labelWidth=
"'120px'"
labelPosition=
"right"
ref=
"tagForm"
>
<div
slot=
"tagsGroup-type"
>
...
...
@@ -82,7 +78,8 @@
</el-select>
<!-- id="tagTipMsgRef" -->
<span
class=
"tagTipMsg"
v-if=
"tagDialogTitle == '添加标签组' && !tagForm.initTagsGroup"
>
企业标签
<
template
v-if=
"!((merchantModel == 2 && accountLevel == 4) || (merchantModel == 1 && accountLevel == 1))"
>
和自店标签分别
</
template
>
企业标签
<
template
v-if=
"!((merchantModel == 2 && accountLevel == 4) || (merchantModel == 1 && accountLevel == 1))"
>
和自店标签分别
</
template
>
最多3000个
</span>
<span
class=
"tagTipMsg"
v-if=
"tagDialogTitle == '添加标签组' && tagForm.initTagsGroup == 1"
>
...
...
@@ -196,7 +193,7 @@ export default {
prop
:
'labelTreeReq.labelGroupName'
,
label
:
'搜索'
,
placeholder
:
'请输入标签组或标签名称'
,
clearable
:
true
clearable
:
true
}
],
pageConf
:
{
pageSize
:
'labelTreeReq.pageSize'
,
pageNum
:
'labelTreeReq.pageNum'
,
totalCount
:
'labelGroupCount'
},
...
...
@@ -224,6 +221,7 @@ export default {
{
label
:
'操作'
,
prop
:
'xxx'
,
fixed
:
'right'
,
addHtml
:
'xxx'
,
width
:
120
}
...
...
@@ -238,7 +236,7 @@ export default {
tagVisible
:
false
,
tagForm
:
{
tagsName
:
''
,
initTagsGroup
:
1
,
initTagsGroup
:
1
,
tagsList
:
[]
},
tagDialogData
:
[
...
...
@@ -334,6 +332,13 @@ export default {
// }, 200)
},
methods
:
{
showTagArray
(
list
)
{
if
(
list
.
length
==
0
)
{
return
[]
}
// return list
return
list
.
slice
(
0
,
9
)
},
checkInputContent
(
e
)
{
// console.log(e, '输入框的值')
//确保每个输入框的内容不和已存在的编辑标签相同
...
...
@@ -422,7 +427,7 @@ export default {
case
'create'
:
this
.
tagDialogTitle
=
'添加标签组'
this
.
tagForm
.
tagsForm
=
''
this
.
tagForm
.
initTagsGroup
=
1
//默认改成,企业标签
this
.
tagForm
.
initTagsGroup
=
1
//默认改成,企业标签
this
.
$set
(
this
.
tagDialogData
[
0
],
'disabled'
,
false
)
this
.
handleClose
()
...
...
@@ -644,11 +649,12 @@ export default {
@import
'@/styles/variables.scss'
;
@import
'@/styles/resetelement.scss'
;
.scrm-sub-client-container
{
/deep/.search-form
.el-form-item__content{
width
:
inherit
;
}
/
deep
/
.el-table
tbody
tr
:hover
>
td
{
background-color
:
#f4f3ff
;
}
/deep/.search-form
.el-form-item__content
{
width
:
inherit
;
}
//
/
deep
/
.el-table
tbody
tr
:hover
>
td
{
//
background-color
:
#f4f3ff
;
//
}
.pageTitle
{
position
:
relative
;
...
...
@@ -753,19 +759,19 @@ export default {
.allTagsWrap
{
position
:
relative
;
display
:
-webkit-box
;
//
max-height
:
56px
;
overflow
:
hidden
;
-webkit-line-clamp
:
2
;
-webkit-box-orient
:
vertical
;
padding-bottom
:
-2px
;
box-sizing
:
border-box
;
&:hover
{
-webkit-line-clamp
:
9999
;
//
.tag-box-wrap
{
//
margin-bottom
:
10px
;
//
}
}
//
display
:
-webkit-box
;
//
overflow
:
hidden
;
//
-webkit-line-clamp
:
2
;
//
-webkit-box-orient
:
vertical
;
//
padding-bottom
:
-2px
;
//
box-sizing
:
border-box
;
//
&:hover
{
//
-webkit-line-clamp
:
9999
;
//
//
.tag-box-wrap
{
//
//
margin-bottom
:
10px
;
//
//
}
//
}
.tag-box-wrap
{
display
:
inline-block
;
...
...
@@ -790,9 +796,6 @@ export default {
//
margin-bottom
:
4px
;
//
}
}
//
.tag-box-wrap
+
.tag-box-wrap
{
//
margin-bottom
:
4px
;
//
}
.expande-button-wrap
{
position
:
absolute
;
right
:
0
;
...
...
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