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 079ded9d
authored
Dec 29, 2021
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v1.0.1' of
http://192.168.3.233:8090/saas/scrm-micro-custom
into v1.0.1
2 parents
612ffcf5
ad24619c
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
1104 additions
and
329 deletions
package.json
src/components/echarts/multipleEchart.vue
src/components/noData/noData.vue
src/views/clientDataOverview/index.vue
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 @
079ded9
...
...
@@ -14,7 +14,7 @@
"echarts"
:
"^5.2.0"
,
"element-ui"
:
"^2.4.5"
,
"glsx-common"
:
"^1.4.6"
,
"glsx-components"
:
"^1.
2.8
"
,
"glsx-components"
:
"^1.
3.0
"
,
"glsx-table"
:
"^1.1.0"
,
"jquery"
:
"^3.6.0"
,
"sha1"
:
"^1.1.1"
,
...
...
src/components/echarts/multipleEchart.vue
View file @
079ded9
...
...
@@ -15,6 +15,10 @@ export default {
type
:
String
,
default
:
''
},
isCloseShowNumTag
:{
type
:
Boolean
,
default
:
false
},
totalData
:
{
type
:
Array
,
// default: () => []
...
...
@@ -210,7 +214,7 @@ export default {
type
:
'bar'
,
data
:
this
.
customerCount
,
//[33600, 18000, 17500, 20000, 17000, 480, 1000, 800, 520, 650, 920, 600],
label
:
{
show
:
true
,
show
:
t
his
.
isCloseShowNumTag
?
false
:
t
rue
,
// formatter: '{b}: {c}',
color
:
'#666666'
,
position
:
'top'
...
...
@@ -236,7 +240,7 @@ export default {
color
:
'#FE9C1C'
},
label
:
{
show
:
true
,
show
:
t
his
.
isCloseShowNumTag
?
false
:
t
rue
,
color
:
'#666666'
,
position
:
'top'
}
...
...
src/components/noData/noData.vue
View file @
079ded9
...
...
@@ -27,6 +27,7 @@ export default {
.scrm-sub-client-container
{
.nodata
{
position
:
absolute
;
text-align
:
center
;
left
:
50%
;
top
:
50%
;
transform
:
translate
(
-50%
,
-50%
);
...
...
src/views/clientDataOverview/index.vue
View file @
079ded9
...
...
@@ -179,7 +179,7 @@
</div>
</div>
<!-- v-if="isShowBarMap" width="100%" -->
<multiple-echart
v-if=
"isReload"
width=
"100%"
height=
"420px"
:totalData=
"allMapList"
></multiple-echart>
<multiple-echart
v-if=
"isReload"
width=
"100%"
height=
"420px"
:totalData=
"allMapList"
:isCloseShowNumTag=
"isCloseShowNumTag"
></multiple-echart>
</
template
>
</div>
<el-dialog
title=
"提示"
:visible
.
sync=
"dialogVisible"
top=
"15vh"
width=
"30%"
:before-close=
"handleClose"
>
...
...
@@ -211,6 +211,7 @@ export default {
},
data
()
{
return
{
isCloseShowNumTag
:
false
,
isReload
:
true
,
isShowModal
:
false
,
isHasCustomerCountBanner
:
false
,
...
...
@@ -485,6 +486,7 @@ export default {
},
clickThirty
()
{
this
.
timeGap
=
30
this
.
isCloseShowNumTag
=
true
if
(
Object
.
keys
(
this
.
thirtyDayStorage
).
length
==
0
)
{
this
.
getDataOverviewBarMapFun
(
30
)
//第一次点击30天,获取数据
}
else
{
...
...
@@ -494,6 +496,7 @@ export default {
},
clickSeven
()
{
this
.
timeGap
=
7
this
.
isCloseShowNumTag
=
false
if
(
Object
.
keys
(
this
.
sevenDayStorage
).
length
==
0
)
{
this
.
getDataOverviewBarMapFun
()
//重新掉一遍接口
}
else
{
...
...
src/views/clientGroupManage/clientGroupDetail.vue
View file @
079ded9
...
...
@@ -44,7 +44,7 @@
</div>
<div
class=
"rightWrap"
>
<p>
<span>
客户列表
</span>
<span>
全部客户
</span>
<span>
{{
clientTableDataNum
||
0
}}
个
</span>
</p>
<search-form
class=
"searchTop border-shadow"
:isNeedThreeBtns=
"false"
:showDefaultTime=
"false"
:formModel=
"searchForm"
:formList=
"clientGroupFormList"
@
setTableHeightEvent=
"setTableHeightEvent"
>
...
...
@@ -90,7 +90,7 @@ export default {
name
:
'clientGroupDetail'
,
data
()
{
return
{
dialogVisible
:
false
,
dialogVisible
:
false
,
groupName
:
this
.
$route
.
query
.
groupName
,
url
:
url
,
leftPanelList
:
{},
...
...
@@ -177,7 +177,7 @@ export default {
},
{
label
:
'邀请人'
,
prop
:
'invitor'
prop
:
'invitor
Name
'
},
{
label
:
'入群时间'
,
...
...
@@ -282,22 +282,22 @@ export default {
},
goDetail
(
id
)
{
// 接口通过了跳转
getClientTableDetail
({
id
}).
then
(
res
=>
{
console
.
log
(
res
,
'666'
)
getClientTableDetail
({
oneId
:
id
}).
then
(
res
=>
{
if
(
res
.
code
==
'0'
)
{
if
(
!
res
.
data
)
{
this
.
dialogVisible
=
true
return
false
}
this
.
$router
.
push
({
path
:
'/clientManage/clientDetail'
,
query
:
{
id
:
id
}
})
}
else
if
(
res
.
code
==
'-1'
&&
res
.
message
==
'该客户暂无员工跟进,无法查看该客户详情'
)
{
this
.
dialogVisible
=
true
this
.
$message
.
error
(
`
${
res
.
message
}
`
)
}
else
{
}
else
{
this
.
$message
({
type
:
'error'
,
message
:
res
.
message
type
:
'error'
,
message
:
res
.
message
})
}
})
...
...
src/views/clientGroupManage/clientGroupDetailNext.vue
View file @
079ded9
...
...
@@ -43,177 +43,84 @@
</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
class=
"choseItem"
:class=
"
{ activeItem: currentIndex == index }" v-for="(item, index) in titles" :key="index" @click="tabClick(index)">
<span>
{{
item
.
name
}}
<template
v-if=
"currentIndex == index"
>
(
{{
item
.
personNum
||
0
}}
)个
</
template
>
</span>
</div>
</div>
<
template
v-if=
"currentIndex == 0"
>
<client
ref=
"childComp"
:url=
"url"
@
goDetail=
"goDetail"
@
getTotal=
"getTotal"
></client>
</
template
>
<
template
v-if=
"currentIndex == 1"
>
<follow-employee
ref=
"childComp"
:url=
"url"
@
getTotal=
"getTotal"
></follow-employee>
</
template
>
<
template
v-if=
"currentIndex == 2"
>
<leave-group-client
ref=
"childComp"
:url=
"url"
@
goDetail=
"goDetail"
></leave-group-client>
</
template
>
<
template
v-if=
"currentIndex == 3"
></
template
>
<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>
<basic-dialog
title=
""
width=
"547px"
:isVisible=
"dialogVisible"
btnOkLabel=
"我知道了"
:isHasCancelBtn=
"false"
@
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
,
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'
export
default
{
name
:
'clientGroupDetail'
,
components
:
{
client
,
followEmployee
,
leaveGroupClient
},
data
()
{
return
{
titles
:[
'全部客户'
,
'潜在客户'
,
'退群客户'
,
'跟进员工'
],
currentIndex
:
0
,
groupName
:
this
.
$route
.
query
.
groupName
,
url
:
url
,
leftPanelList
:
{},
searchForm
:
{},
searchFormTable
:{},
clientGroupFormList
:
[
dialogVisible
:
false
,
// ['全部客户', '跟进员工', '退群客户', '潜在客户']
titles
:
[
{
type
:
'daterange'
,
prop
:
'daterange'
,
label
:
'入群时间'
,
pickerOptions
:
{
disabledDate
(
time
)
{
return
time
.
getTime
()
>
Date
.
now
()
||
time
.
getTime
()
<
new
Date
(
'2017-12-31'
).
getTime
()
}
}
name
:
'全部客户'
,
personNum
:
0
},
{
type
:
'select'
,
prop
:
'customerSex'
,
label
:
'性别'
,
placeholder
:
'请选择性别'
,
options
:
[
{
label
:
'全部'
,
value
:
null
},
{
label
:
'男'
,
value
:
1
},
{
label
:
'女'
,
value
:
2
},
{
label
:
'未知'
,
value
:
0
}
]
name
:
'跟进员工'
,
personNum
:
0
},
{
type
:
'input'
,
inputType
:
'text'
,
prop
:
'groupNickName'
,
label
:
'本群昵称'
,
placeholder
:
'请输入本群昵称'
name
:
'退群客户'
,
personNum
:
0
},
{
type
:
'input'
,
inputType
:
'text'
,
prop
:
'customerName'
,
label
:
'客户名称'
,
placeholder
:
'请输入客户名称'
name
:
'潜在客户'
,
personNum
:
0
}
],
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
,
currentIndex
:
0
,
groupName
:
this
.
$route
.
query
.
groupName
,
url
:
url
,
leftPanelList
:
{},
flushTime
:
false
}
},
created
()
{
this
.
getTableDetail
()
this
.
searchForm
=
{
id
:
this
.
$route
.
query
.
id
}
},
mounted
()
{
// this.$nextTick(() => {
// this.searchTable()
// })
},
// watch: {
// 'searchForm.daterange':{
// deep: true,
...
...
@@ -222,15 +129,21 @@ export default {
// console.log('val值:',val)
// if(val){
// console.log('7777777777777')
// this.searchTable()
// this.searchTable()
// }
// }
// }
// },
methods
:
{
tabClick
(
index
){
this
.
currentIndex
=
index
;
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
)
{
const
res
=
await
getTableDetail
({
id
:
id
})
...
...
@@ -240,49 +153,30 @@ export default {
}
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
// 接口通过了跳转
getClientTableDetail
({
oneId
:
id
}).
then
(
res
=>
{
if
(
res
.
code
==
'0'
)
{
if
(
!
res
.
data
)
{
this
.
dialogVisible
=
true
return
false
}
this
.
$router
.
push
({
path
:
'/clientManage/clientDetail'
,
query
:
{
id
:
id
}
})
}
else
{
this
.
$message
({
type
:
'error'
,
message
:
res
.
message
})
}
})
}
...
...
@@ -380,43 +274,42 @@ export default {
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
;
.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
;
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
;
.activeItem
{
border-radius
:
4px
4px
0
0
;
background-color
:
#fff
;
span
{
color
:
$
btnBlue
;
font-weight
:
600
;
color
:
$
btnBlue
;
font-weight
:
600
;
}
}
}
}
.el-button
+
.el-button
{
margin-left
:
20px
;
...
...
src/views/clientGroupManage/components/client.vue
View file @
079ded9
<
template
>
<div
class=
"sub-container"
>
<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>
</template>
<
script
>
import
{
getDetailTableList
}
from
'@/api/modules/clientGroupManage'
export
default
{
props
:
{
url
:
{
type
:
String
,
default
:
''
}
},
data
()
{
return
{
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
:
'invitorName'
},
{
label
:
'入群时间'
,
prop
:
'joinTime'
,
width
:
95
}
],
tableOption
:
{
width
:
80
,
btnList
:
[
{
name
:
'详情'
,
pType
:
'detail'
}
]
}
},
getListApi
:
getDetailTableList
,
clientTableDataNum
:
0
}
},
created
()
{
this
.
searchForm
=
{
id
:
this
.
$route
.
query
.
id
}
},
methods
:
{
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
this
.
$emit
(
'getTotal'
,
this
.
clientTableDataNum
)
//接收到的数据为空
// if (!this.$refs.clientGroupDetail.data.length) {
// this.$refs.clientGroupDetail.setTableHeightFun()
// }
this
.
$refs
.
clientGroupDetail
.
data
.
length
?
(
this
.
$refs
.
clientGroupDetail
.
tableHeightValues
=
''
)
:
this
.
$refs
.
clientGroupDetail
.
setTableHeightFun
()
},
//搜索表格
searchTable
()
{
this
.
$refs
.
clientGroupDetail
.
refreshTable
()
},
//重置表格
resetTable
()
{
this
.
searchForm
=
{
id
:
this
.
$route
.
query
.
id
}
this
.
$refs
.
clientGroupDetail
.
refreshTable
()
},
goDetail
(
msg
)
{
this
.
$emit
(
'goDetail'
,
msg
)
}
}
}
</
script
>
<
style
lang=
"scss"
scope
>
.sub-container
{
@import
'@/styles/variables.scss';
@import
'@/styles/resetelement.scss';
}
</
style
>
\ No newline at end of file
src/views/clientGroupManage/components/followEmployee.vue
View file @
079ded9
<
template
>
<div
class=
"sub-container"
>
<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>
<GLTable
ref=
"clientGroupDetail"
@
setTableFinishFun=
"setTableFinishFun"
:hasNum=
"true"
:pageConf=
"pageConf"
:getListApi=
"getListApi"
:beforeSearchFn=
"beforeSearchFn"
:searchForm=
"searchFormTable"
:tableParams=
"tableParams"
:headerStyle=
"
{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }" :noDataImg="url">
<span
slot=
"customerSex"
slot-scope=
"scope"
>
<span>
{{
scope
.
scope
.
customerSex
==
2
?
'女'
:
scope
.
scope
.
customerSex
==
1
?
'男'
:
'未知'
}}
</span>
</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>
</template>
<
script
>
// import { getDetailTableList } from '@/api/modules/clientGroupManage'
export
default
{
props
:
{
url
:
{
type
:
String
,
default
:
''
}
},
data
()
{
return
{
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'
,
tableOption
:
false
,
tableColumns
:
[
{
label
:
'本群昵称'
,
prop
:
'groupNickName'
},
{
label
:
'员工名称'
,
prop
:
'customerName'
,
},
{
label
:
'手机号码'
,
prop
:
'customerPhone'
},
{
label
:
'性别'
,
prop
:
'customerSex'
,
addHtml
:
'customerSex'
},
{
label
:
'入群方式'
,
prop
:
'joinScene'
,
addHtml
:
'joinScene'
},
{
label
:
'邀请人'
,
prop
:
'invitorName'
},
{
label
:
'入群时间'
,
prop
:
'joinTime'
,
width
:
95
}
]
},
getListApi
:
''
,
clientTableDataNum
:
0
}
},
created
()
{
this
.
searchForm
=
{
id
:
this
.
$route
.
query
.
id
}
},
methods
:
{
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
this
.
$emit
(
'getTotal'
,
this
.
clientTableDataNum
)
//接收到的数据为空
// if (!this.$refs.clientGroupDetail.data.length) {
// this.$refs.clientGroupDetail.setTableHeightFun()
// }
this
.
$refs
.
clientGroupDetail
.
data
.
length
?
(
this
.
$refs
.
clientGroupDetail
.
tableHeightValues
=
''
)
:
this
.
$refs
.
clientGroupDetail
.
setTableHeightFun
()
},
//搜索表格
searchTable
()
{
this
.
$refs
.
clientGroupDetail
.
refreshTable
()
},
//重置表格
resetTable
()
{
this
.
searchForm
=
{
id
:
this
.
$route
.
query
.
id
}
this
.
$refs
.
clientGroupDetail
.
refreshTable
()
},
goDetail
(
msg
)
{
this
.
$emit
(
'goDetail'
,
msg
)
}
}
}
</
script
>
<
style
lang=
"scss"
scope
>
.sub-container
{
@import
'@/styles/variables.scss';
@import
'@/styles/resetelement.scss';
}
</
style
>
\ No newline at end of file
src/views/clientGroupManage/components/leaveGroupClient.vue
View file @
079ded9
<
template
>
<div
class=
"sub-container"
>
<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>
<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>
</template>
<
script
>
// import { getDetailTableList } from '@/api/modules/clientGroupManage'
export
default
{
props
:
{
url
:
{
type
:
String
,
default
:
''
}
},
data
()
{
return
{
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
:
{
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
:
'invitorName'
},
{
label
:
'入群时间'
,
prop
:
'joinTime'
,
width
:
95
}
],
tableOption
:
{
width
:
80
,
btnList
:
[
{
name
:
'详情'
,
pType
:
'detail'
}
]
}
},
getListApi
:
''
,
clientTableDataNum
:
0
}
},
created
()
{
this
.
searchForm
=
{
id
:
this
.
$route
.
query
.
id
}
},
methods
:
{
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
()
},
//搜索表格
searchTable
()
{
this
.
$refs
.
clientGroupDetail
.
refreshTable
()
},
//重置表格
resetTable
()
{
this
.
searchForm
=
{
id
:
this
.
$route
.
query
.
id
}
this
.
$refs
.
clientGroupDetail
.
refreshTable
()
},
goDetail
(
msg
)
{
this
.
$emit
(
'goDetail'
,
msg
)
}
}
}
</
script
>
<
style
lang=
"scss"
scope
>
.sub-container
{
@import
'@/styles/variables.scss';
@import
'@/styles/resetelement.scss';
}
</
style
>
\ No newline at end of file
src/views/clientGroupManage/components/potentialClient.vue
View file @
079ded9
<
template
>
<div
class=
"sub-container"
>
<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>
</template>
<
script
>
import
{
getDetailTableList
}
from
'@/api/modules/clientGroupManage'
export
default
{
props
:
{
url
:
{
type
:
String
,
default
:
''
}
},
data
()
{
return
{
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
:
'invitorName'
},
{
label
:
'入群时间'
,
prop
:
'joinTime'
,
width
:
95
}
],
tableOption
:
{
width
:
80
,
btnList
:
[
{
name
:
'详情'
,
pType
:
'detail'
}
]
}
},
getListApi
:
getDetailTableList
,
clientTableDataNum
:
0
}
},
created
()
{
this
.
searchForm
=
{
id
:
this
.
$route
.
query
.
id
}
},
methods
:
{
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
()
},
//搜索表格
searchTable
()
{
this
.
$refs
.
clientGroupDetail
.
refreshTable
()
},
//重置表格
resetTable
()
{
this
.
searchForm
=
{
id
:
this
.
$route
.
query
.
id
}
this
.
$refs
.
clientGroupDetail
.
refreshTable
()
},
goDetail
(
msg
)
{
this
.
$emit
(
'goDetail'
,
msg
)
}
}
}
</
script
>
<
style
lang=
"scss"
scope
>
.sub-container
{
@import
'@/styles/variables.scss';
@import
'@/styles/resetelement.scss';
}
</
style
>
\ No newline at end of file
src/views/clientGroupManage/index.vue
View file @
079ded9
...
...
@@ -84,6 +84,11 @@ export default {
prop
:
'custGroupName'
,
minWidth
:
160
},
{
label
:
'当前成员总数'
,
prop
:
'allMembers'
,
minWidth
:
140
},
{
label
:
'当前客户数'
,
prop
:
'totalCount'
,
...
...
@@ -100,12 +105,7 @@ export default {
minWidth
:
160
},
{
label
:
'新增群聊成员数'
,
prop
:
'allMembers'
,
minWidth
:
140
},
{
label
:
'群聊员工数'
,
label
:
'当前跟进员工数'
,
prop
:
'staffs'
,
minWidth
:
140
},
...
...
src/views/clientManage/clientDetail.vue
View file @
079ded9
...
...
@@ -19,7 +19,7 @@
<span>
<!--
{{
leftPanelInfo
.
customerName
}}
-->
{{
beautySub
(
leftPanelInfo
.
customerName
)
}}
<span
style=
"color:#5850ff"
>
{{
leftPanelInfo
.
type
==
1
?
'@微信'
:
leftPanelInfo
.
type
==
2
?
'@企微'
:
''
}}
</span>
<span
style=
"color:
#5850ff"
>
{{
leftPanelInfo
.
type
==
1
?
'@微信'
:
leftPanelInfo
.
type
==
2
?
'@企微'
:
''
}}
</span>
</span>
</span>
</el-tooltip>
...
...
@@ -69,8 +69,8 @@
</p>
<p>
<span>
渠道来源
</span>
<el-tooltip
effect=
"dark"
:content=
"leftPanelInfo.
addWay | toLab
el"
placement=
"top"
>
<span
class=
"ellipsis-1"
>
{{
leftPanelInfo
.
addWay
|
toLab
el
}}
</span>
<el-tooltip
effect=
"dark"
:content=
"leftPanelInfo.
sourceChann
el"
placement=
"top"
>
<span
class=
"ellipsis-1"
>
{{
leftPanelInfo
.
sourceChann
el
}}
</span>
</el-tooltip>
</p>
</div>
...
...
@@ -90,7 +90,12 @@
</p>
<!--1. 车辆信息表 -->
<!-- :row-style="
{ height: 88 + 'px' }" -->
<el-table
:data=
"vehicleTableData"
style=
"width: 100%"
:header-cell-style=
"
{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }">
<GLTable
:hasNum=
"false"
:tableData=
"vehicleTableData"
:hasPage=
"false"
:tableParams=
"vehicleTableParams"
:headerStyle=
"
{ height: '54px' }">
<span
slot=
"standNo"
slot-scope=
"scope"
>
<span>
{{
myStandNo
(
scope
.
scope
.
standNo
)
}}
</span>
</span>
</GLTable>
<!--
<el-table
:data=
"vehicleTableData"
style=
"width: 100%"
:headerStyle=
"
{ height: '54px' }">
<el-table-column
prop=
"standNo"
label=
"车架号(后6位)"
align=
"center"
width=
"120"
>
<template
slot-scope=
"scope"
>
<span>
{{
myStandNo
(
scope
.
scope
)
}}
</span>
...
...
@@ -106,7 +111,7 @@
</
template
>
</el-table-column>
<el-table-column
prop=
"vehicleType"
label=
"车型"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-tooltip
:content=
"scope.row.vehicleType"
placement=
"top"
>
<p
class=
"showOverTooltip"
>
{{
scope
.
row
.
vehicleType
}}
</p>
</el-tooltip>
...
...
@@ -115,26 +120,20 @@
<el-table-column
prop=
"vehicleModelYear"
label=
"年款"
align=
"center"
></el-table-column>
<el-table-column
prop=
"vehiclePrice"
label=
"购车价格"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
vehiclePrice
||
''
}}
</span>
<span>
{{
scope
.
row
.
vehiclePrice
||
''
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"buyTime"
label=
"购车时间"
align=
"center"
></el-table-column>
<el-table-column
prop=
"insBgnTime"
label=
"保险开始时间"
align=
"center"
width=
"120"
></el-table-column>
<el-table-column
prop=
"insEndTime"
label=
"保险到期时间"
align=
"center"
width=
"120"
></el-table-column>
<el-table-column
prop=
"maintRecTime"
label=
"最近保养时间"
align=
"center"
width=
"120"
></el-table-column>
<!-- 无数据插槽用法 -->
<!-- <div slot="empty" class="emptyBg">
<img src="@/assets/clientDataOverview/nodata.png" alt="">
<div>暂无数据</div>
</div> -->
</el-table>
</el-table>
-->
<p>
<span>
跟进员工
</span>
<span>
{{ employTableList.length || 0 }}人
</span>
</p>
<!-- <div></div> -->
<!--2. 员工跟进表 -->
<GLTable
:hasNum=
"false"
:tableData=
"employTableList"
:hasPage=
"false"
:tableParams=
"
tableParams"
:headerStyle=
"{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '1
4px' }"
>
<GLTable
:hasNum=
"false"
:tableData=
"employTableList"
:hasPage=
"false"
:tableParams=
"
employTableParams"
:headerStyle=
"{ height: '5
4px' }"
>
<span
slot=
"addWay"
slot-scope=
"scope"
>
<span>
{{ scope.scope.addWay | toLabel }}
</span>
</span>
...
...
@@ -142,44 +141,18 @@
<span>
{{ addTypeToLable(scope.scope.addType) }}
</span>
</span>
</GLTable>
<!-- <el-table :data="employTableList" style="width: 100%" :header-cell-style="{ background: '#F4F6FC', color: '#333333', fontSize: '14px' }">
<el-table-column prop="staffName" label="跟进员工" align="center"></el-table-column>
<el-table-column prop="departmentName" label="所属部门" align="center"></el-table-column>
<el-table-column prop="addTime" label="添加时间" align="center"></el-table-column>
<el-table-column prop="addWay" label="来源" align="center">
<template slot-scope="scope">
<el-tooltip :content="scope.row.addWay" placement="top">
<p class="showOverTooltip">{{ scope.row.addWay }}</p>
</el-tooltip>
</template>
</el-table-column>
<el-table-column prop="addType" label="添加类型" align="center"></el-table-column>
<el-table-column prop="remarkMobiles" label="备注手机号" align="center"></el-table-column>
<el-table-column prop="remark" label="备注" align="center"></el-table-column>
<el-table-column prop="description" label="描述" align="center"></el-table-column>
</el-table> -->
<p>
<span>
所属群聊
</span>
<span>
{{ clientGroupTableList.length || 0 }}个
</span>
</p>
<!-- <div>所属客户群表格,待定</div> -->
<!-- 3.所属客户群/群聊 -->
<el-table
:data=
"clientGroupTableList"
style=
"width: 100%"
:header-cell-style=
"{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }"
>
<el-table-column
label=
"客户群名称"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
groupName
||
'群聊(默认)'
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"groupHostName"
label=
"群主"
align=
"center"
></el-table-column>
<el-table-column
prop=
"membersNumber"
label=
"客户数"
align=
"center"
></el-table-column>
<el-table-column
prop=
"groupNickName"
label=
"本群昵称"
align=
"center"
></el-table-column>
<el-table-column
prop=
"joinTime"
label=
"入群时间"
align=
"center"
></el-table-column>
<el-table-column
label=
"操作"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<span
class=
"blue-text"
@
click=
"goDetail(scope.row.id, scope.row.groupName)"
>
详情
</span>
</
template
>
</el-table-column>
</el-table>
<GLTable
:hasNum=
"false"
:tableData=
"clientGroupTableList"
:hasPage=
"false"
:tableParams=
"clientGroupTableParams"
:headerStyle=
"{ height: '54px' }"
>
<span
slot=
"groupName"
slot-scope=
"scope"
>
<span>
{{ scope.scope.groupName || '群聊(默认)' }}
</span>
</span>
<div
class=
"table-btns"
slot=
"optionBtns"
slot-scope=
"scope"
>
<el-button
type=
"text"
@
click=
"goDetail(scope.scope.id, scope.scope.groupName)"
>
详情
</el-button>
</div>
</GLTable>
</div>
</div>
<basic-dialog
class=
"tags"
:title=
"tagsDialogTitle"
:width=
"'712px'"
:isShowThirdBtn=
"true"
@
btnEvent=
"goNewTag"
:isVisible=
"tagsVisible"
@
confirmDialog=
"handleConfirm"
@
closeDialog=
"handleClose"
>
...
...
@@ -219,10 +192,78 @@ export default {
// { name: '初次沟通', id: 2 }
],
vehicleTableData
:
[],
vehicleTableParams
:
{
listName
:
'vehicleInfoList'
,
tableOption
:
false
,
tableColumns
:
[
{
label
:
'车架号(后6位)'
,
prop
:
'standNo'
,
addHtml
:
'standNo'
,
minWidth
:
'120'
},
{
label
:
'车牌号'
,
prop
:
'vehicleNo'
,
minWidth
:
'100'
},
{
label
:
'车辆品牌'
,
prop
:
'vehicleBrand'
,
minWidth
:
'100'
},
{
label
:
'车系'
,
prop
:
'vehicleTrain'
,
width
:
160
,
line
:
2
},
{
label
:
'车型'
,
prop
:
'vehicleType'
,
width
:
160
,
line
:
2
},
{
label
:
'年款'
,
prop
:
'vehicleModelYear'
,
minWidth
:
'100'
},
{
label
:
'购车价格'
,
prop
:
'vehiclePrice'
,
minWidth
:
'100'
,
formatter
:
cellValue
=>
{
return
cellValue
.
vehiclePrice
||
''
}
},
{
label
:
'购车时间'
,
prop
:
'buyTime'
,
minWidth
:
'120'
},
{
label
:
'保险开始时间'
,
prop
:
'insBgnTime'
,
minWidth
:
'120'
},
{
label
:
'保险到期时间'
,
prop
:
'insEndTime'
,
minWidth
:
'120'
},
{
label
:
'最近保养时间'
,
prop
:
'maintRecTime'
,
minWidth
:
'120'
},
]
},
//员工跟进
t
ableParams
:
{
employT
ableParams
:
{
listName
:
'staffFollows'
,
// tableOption: tru
e,
tableOption
:
fals
e
,
tableColumns
:
[
{
label
:
'跟进员工'
,
...
...
@@ -263,8 +304,43 @@ export default {
]
},
employTableList
:
[],
employTableTotal
:
0
,
clientGroupTableList
:
[],
clientGroupTableParams
:
{
listName
:
'customerBases'
,
tableColumns
:
[
{
label
:
'客户群名称'
,
prop
:
'groupName'
,
addHtml
:
'groupName'
},
{
label
:
'群主'
,
prop
:
'groupHostName'
},
{
label
:
'客户数'
,
prop
:
'membersNumber'
},
{
label
:
'本群昵称'
,
prop
:
'groupNickName'
},
{
label
:
'入群时间'
,
prop
:
'joinTime'
},
{
label
:
'操作'
,
prop
:
'optionBtns'
,
width
:
'80px'
,
addHtml
:
'optionBtns'
,
fixed
:
'right'
}
]
// tableOption:{
// width:80
// }
},
//弹窗数据
tagsDialogTitle
:
'添加标签'
,
tagsVisible
:
false
,
...
...
@@ -278,7 +354,7 @@ export default {
merchantId
:
10001001
,
merchantModel
:
1
,
//集团:1,门店:2
userType
:
0
,
//1是商户,2是员工
userid
:
0
//小龙需要用户id
userid
:
0
//小龙需要用户id
}
},
created
()
{
...
...
@@ -300,16 +376,16 @@ export default {
str:需要进行处理的字符串,可含汉字
len:需要显示多少个汉字,两个英文字母相当于一个汉字
*/
myStandNo
(
row
)
{
if
(
!
row
)
{
myStandNo
(
standNo
)
{
if
(
!
standNo
)
{
return
''
}
return
row
.
standNo
.
substring
(
row
.
standNo
.
length
-
6
)
return
standNo
.
substring
(
standNo
.
length
-
6
)
},
beautySub
(
value
)
{
if
(
value
&&
value
.
length
>=
7
)
{
return
value
.
substring
(
0
,
6
)
+
'...'
if
(
value
&&
value
.
length
>=
6
)
{
return
value
.
substring
(
0
,
5
)
+
'...'
}
else
{
return
value
}
...
...
@@ -363,7 +439,7 @@ export default {
if
(
!
res
)
{
return
false
}
this
.
userid
=
res
.
userid
;
this
.
userid
=
res
.
userid
this
.
leftPanelInfo
=
res
.
info
this
.
vehicleTableData
=
res
.
vehicleInfoList
||
[]
this
.
employTableList
=
res
.
staffFollows
||
[]
...
...
@@ -445,7 +521,7 @@ export default {
'req.labelGroupId'
:
item
.
labelGroup
.
id
,
'req.edition'
:
this
.
merchantModel
,
'req.merchantId'
:
this
.
merchantId
,
'req.staffId'
:
this
.
userid
'req.staffId'
:
this
.
userid
// 'req.labelIdList': item.labelList.map(ele => ele.id)
}
var
ids
=
item
.
labelList
.
map
(
ele
=>
ele
.
id
)
...
...
@@ -608,7 +684,7 @@ export default {
display
:
-webkit-box
;
text-overflow
:
ellipsis
;
overflow
:
hidden
;
/*这里是2行*/
/*这里是2行*/
-webkit-line-clamp
:
2
;
-webkit-box-orient
:
vertical
;
}
...
...
src/views/clientManage/index.vue
View file @
079ded9
...
...
@@ -25,16 +25,19 @@
</span>
<div
slot=
"followStaff"
class=
"entmicro"
slot-scope=
"scope"
>
<div
class=
"entmicro-tag"
v-for=
"(tag, idx) in followList(scope.scope.followStaff)"
:key=
"idx"
>
<el-tag
type=
"info"
v-if=
"idx
< 3
"
:disable-transitions=
"false"
>
<i
class=
"el-icon-user-solid"
></i>
{{
tag
}}
</el-tag>
<el-tooltip
effect=
"dark"
:content=
"tag"
placement=
"top"
>
<el-tag
type=
"info"
class=
"ellipsis-1"
v-if=
"idx
< 3
"
:disable-transitions=
"false"
>
<i
class=
"el-icon-user-solid"
></i>
{{
tag
}}
</el-tag>
</el-tooltip>
<el-tag
type=
"info"
v-if=
"followList(scope.scope.followStaff).length > 3 && idx == 3"
>
<el-popover
placement=
"top"
width=
"600"
trigger=
"hover"
content=
"这是一段内容,这是一段内容,这是一段内容,这是一段内容。"
>
<
span
slot=
"reference"
>
...(
{{
followList
(
scope
.
scope
.
followStaff
).
length
}}
)
</span
>
<div
class=
"entmicro-hover"
>
<el-tag
type=
"info"
style=
"margin-right:
10px;margin-bottom:10px;
"
v-for=
"(i, index) in followList(scope.scope.followStaff)"
:key=
"index"
:disable-transitions=
"false"
>
<i
class=
"el-icon-user-solid"
style=
"color:#75acff"
></i>
<
div
slot=
"reference"
>
...(
{{
followList
(
scope
.
scope
.
followStaff
).
length
}}
)
</div
>
<div
class=
"entmicro-hover"
>
<el-tag
type=
"info"
style=
"margin-right:
10px; margin-bottom: 10px
"
v-for=
"(i, index) in followList(scope.scope.followStaff)"
:key=
"index"
:disable-transitions=
"false"
>
<i
class=
"el-icon-user-solid"
style=
"color:
#75acff"
></i>
<!--
{{
i
.
staffName
}}{{
i
.
departmentName
?
`(${i.departmentName
}
)`
:
''
}}
-->
{{
i
}}
<
/el-tag
>
...
...
@@ -66,8 +69,8 @@
<
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> --
>
<
GLButton
@
click
=
"goDetail(scope.scope.oneId)"
fn
=
"客户详情"
type
=
"text"
>
详情
<
/GLButton>
<!--
<
el
-
button
type
=
"text"
@
click
=
"goDetail(scope.scope.oneId)"
>
详情
<
/el-button> --
>
<
GLButton
@
click
=
"goDetail(scope.scope.oneId)"
fn
=
"客户详情"
type
=
"text"
>
详情
<
/GLButton
>
<
/div
>
<
/GLTable
>
<
/div
>
...
...
@@ -182,7 +185,7 @@ export default {
// btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName
:
'data'
,
// tableOption: true,
tableOption
:
false
,
tableOption
:
false
,
tableColumns
:
[
{
label
:
'客户ID'
,
...
...
@@ -220,7 +223,7 @@ export default {
minWidth
:
100
}
,
{
label
:
'渠道来源'
,
label
:
'渠道来源'
,
prop
:
'sourceChannel'
,
width
:
100
}
,
...
...
@@ -242,13 +245,13 @@ export default {
width
:
95
}
,
{
label
:
'操作'
,
prop
:
'optionBtns'
,
width
:
'80px'
,
addHtml
:
'optionBtns'
,
fixed
:
'right'
label
:
'操作'
,
prop
:
'optionBtns'
,
width
:
'80px'
,
addHtml
:
'optionBtns'
,
fixed
:
'right'
}
]
,
]
// tableOption:
{
// width: 80
//
}
...
...
@@ -291,7 +294,6 @@ export default {
// this.searchTable()
//
}
//接收到的数据为空
// if (!this.$refs.clientManage.data.length)
{
// this.$refs.clientManage.setTableHeightFun()
...
...
@@ -447,13 +449,10 @@ export default {
font
-
size
:
14
px
;
}
}
// span
{
// line-height: 20px;
//
}
}
.
el
-
tag
{
margin
-
right
:
10
px
;
ma
rgin
-
bottom
:
10
px
;
//
margin-right: 10px;
ma
x
-
width
:
1
10
px
;
cursor
:
pointer
;
background
-
color
:
#
fff
!
important
;
}
...
...
src/views/tagsManage/index.vue
View file @
079ded9
...
...
@@ -6,12 +6,12 @@
<span
class=
"toptips"
>
<!-- v-if="!((merchantModel==2 && accountLevel==4) || (merchantModel==1 && accountLevel==1))" -->
<span>
共有
{{
numberObj
.
groupCount
||
0
}}
个标签组
,
{{
numberObj
.
bizLabelCount
||
0
}}
个企业标签
共有
{{
numberObj
.
groupCount
||
0
}}
个标签组
<template
v-if=
"!(merchantModel == 1 && accountLevel == 4)"
>
,
{{
numberObj
.
bizLabelCount
||
0
}}
个企业标签
</
template
>
<
template
v-if=
"!((merchantModel == 2 && accountLevel == 4) || (merchantModel == 1 && accountLevel == 1))"
>
,
{{
numberObj
.
rcLabelCount
||
0
}}
个自店标签
</
template
>
</span>
<span
class=
"iconPanelWrap"
v-if=
"!isFirstShow"
>
<el-popover
placement=
"top"
width=
"666"
trigger=
"hover"
>
<div>
企业标签为全局标签,员工可在企微APP端客户详情、客户跟进等模块查看和打标签,最多3000个;
</div>
<div
v-if=
"!(merchantModel == 1 && accountLevel == 4)"
>
企业标签为全局标签,员工可在企微APP端客户详情、客户跟进等模块查看和打标签,最多3000个;
</div>
<div
v-if=
"!((merchantModel == 2 && accountLevel == 4) || (merchantModel == 1 && accountLevel == 1))"
>
自店标签为企业商户自有标签,员工可在企微APP端客户跟进等模块查看和打标签,最多3000个;
</div>
<div>
行业标签为通过大数据算法规则生成的标签
</div>
<img
src=
"@/assets/tagsManage/question.png"
slot=
"reference"
alt=
""
/>
...
...
@@ -19,7 +19,7 @@
</span>
</span>
<div
class=
"initPanel"
v-if=
"isFirstShow"
>
企业标签为全局标签,员工可在企微APP端客户详情、客户跟进等模块查看和打标签,最多3000个;
<
template
v-if=
"!(merchantModel == 1 && accountLevel == 4)"
>
企业标签为全局标签,员工可在企微APP端客户详情、客户跟进等模块查看和打标签,最多3000个;
</
template
>
<
template
v-if=
"!((merchantModel == 2 && accountLevel == 4) || (merchantModel == 1 && accountLevel == 1))"
>
自店标签为企业商户自有标签,员工可在企微APP端客户跟进等模块查看和打标签,最多3000个;
</
template
>
行业标签为通过大数据算法规则生成的标签
...
...
@@ -63,7 +63,7 @@
</div>
</span>
<
template
slot=
"xxx"
slot-scope=
"scope"
>
<!-- //这版关掉自店标签 -->
<!-- //这版关掉自店标签
1.0.1允许集团的门店打字店标签,也可以编辑
-->
<span
@
click=
"btnClick('edit', scope.scope)"
class=
"blue-text"
v-if=
"scope.scope.labelType != '行业标签' && isShowEditBtn(scope.scope)"
>
编辑标签组
</span>
</
template
>
...
...
@@ -79,8 +79,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 == 1 && accountLevel == 4)"
>
企业标签
</
template
>
<
template
v-if=
"!((merchantModel == 2 && accountLevel == 4) || (merchantModel == 1 && accountLevel == 1))"
>
<template
v-if=
"!(merchantModel == 1 && accountLevel == 4)"
>
和
</
template
>
自店标签分别
</template>
最多3000个
</span>
<span
class=
"tagTipMsg"
v-if=
"tagDialogTitle == '添加标签组' && tagForm.initTagsGroup == 1"
>
...
...
@@ -301,12 +301,22 @@ export default {
this
.
merchantModel
=
this
.
$globalState
.
session
.
merchantModel
this
.
accountLevel
=
this
.
$globalState
.
session
.
accountLevel
this
.
userType
=
this
.
$globalState
.
session
.
userType
console
.
log
(
this
.
$globalState
.
session
,
'555'
)
// if (this.merchantModel == 1) {
// if (!(this.accountLevel == 1 && this.userType == 1)) this.tagsGroupList.splice(0, 1) //只能创建自店标签
// }
//1.0.1集团下的门店只能创建自店标签
if
(
this
.
merchantModel
==
1
)
{
if
((
this
.
accountLevel
==
4
))
{
this
.
tagsGroupList
.
splice
(
0
,
1
)
//只能创建自店标签
this
.
tagsPartFormList
[
0
].
options
.
splice
(
0
,
1
)
}
}
if
(
this
.
merchantModel
==
1
)
{
if
(
this
.
accountLevel
==
1
)
{
//集团下的工厂只能创建企微标签,自店标签不要了
//集团下的工厂只能创建企微标签,自店标签不要了
this
.
tagsGroupList
.
splice
(
1
,
1
)
this
.
tagsPartFormList
[
0
].
options
.
splice
(
1
,
1
)
}
...
...
@@ -352,7 +362,7 @@ export default {
isShowEditBtn
(
row
)
{
//集团模式下,只有集团能可以编辑企业,自店,其他只能编辑自店
//单店模式下,仅门店和员工可以编辑
if
(
row
.
labelType
==
'自店标签'
)
{
if
(
row
.
labelType
==
'自店标签'
&&
(
!
(
this
.
merchantModel
==
1
&&
this
.
accountLevel
==
4
))
)
{
return
false
}
if
(
this
.
merchantModel
==
1
)
{
...
...
@@ -427,8 +437,12 @@ export default {
switch
(
pType
)
{
case
'create'
:
this
.
tagDialogTitle
=
'添加标签组'
this
.
tagForm
.
tagsForm
=
''
this
.
tagForm
.
tagsForm
=
''
this
.
tagForm
.
initTagsGroup
=
1
//默认改成,企业标签
if
(
this
.
merchantModel
==
1
&&
this
.
accountLevel
==
4
){
this
.
tagForm
.
initTagsGroup
=
2
}
this
.
$set
(
this
.
tagDialogData
[
0
],
'disabled'
,
false
)
this
.
handleClose
()
...
...
@@ -515,6 +529,9 @@ export default {
if
(
!
this
.
tagVisible
&&
this
.
$refs
.
tagForm
)
{
this
.
$refs
.
tagForm
.
$children
[
0
].
resetFields
()
this
.
tagForm
.
initTagsGroup
=
1
if
(
this
.
merchantModel
==
1
&&
this
.
accountLevel
==
4
){
this
.
tagForm
.
initTagsGroup
=
2
}
this
.
tagForm
.
tagsName
=
''
// console.log(this.tagForm.initTagsGroup, '7777')
// console.log(this.tagForm, '内')
...
...
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