Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
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 58857b7b
authored
Jun 20, 2023
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
CustomerDetail
1 parent
9ce888fa
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
625 additions
and
632 deletions
linkwe-pc/src/views/contentCenter/components/DataDetail.vue
linkwe-pc/src/views/contentCenter/trackMaterial/detail.vue
linkwe-pc/src/views/customerManage/customer.vue
linkwe-pc/src/views/customerManage/lossRemind.vue
linkwe-pc/src/views/contentCenter/components/DataDetail.vue
View file @
58857b7
...
...
@@ -194,7 +194,7 @@ export default {
goDetail
(
row
)
{
let
{
externalUserid
,
firstUserId
:
userId
}
=
row
this
.
$router
.
push
({
path
:
'/operateCenter/customerManage/c
ustomerDetail'
,
name
:
'C
ustomerDetail'
,
query
:
{
externalUserid
,
userId
},
})
},
...
...
linkwe-pc/src/views/contentCenter/trackMaterial/detail.vue
View file @
58857b7
...
...
@@ -249,7 +249,7 @@
show-overflow-tooltip
/>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<
template
slot-scope=
"scope"
>
<el-button
type=
"text"
@
click=
"goDetail(scope.row
.id
)"
v-if=
"scope.row.isCustomer"
>
<el-button
type=
"text"
@
click=
"goDetail(scope.row)"
v-if=
"scope.row.isCustomer"
>
客户详情
</el-button>
</
template
>
...
...
@@ -584,6 +584,13 @@ export default {
this
.
loading
=
false
})
},
goRoute
(
row
)
{
let
{
externalUserid
,
firstUserId
:
userId
}
=
row
this
.
$router
.
push
({
name
:
'CustomerDetail'
,
query
:
{
externalUserid
,
userId
},
})
},
},
mounted
()
{
this
.
dealLength
()
...
...
linkwe-pc/src/views/customerManage/customer.vue
View file @
58857b7
<
script
>
import
*
as
api
from
'@/api/customer'
import
{
getList
as
getListTag
}
from
'@/api/customer/tag'
import
AddTag
from
'@/components/AddTag'
import
SelectTag
from
'@/components/SelectTag'
import
DeleteTag
from
'@/components/DeleteTag'
import
{
dictTrackState
}
from
'@/utils/dictionary'
import
{
getList
}
from
'@/api/salesCenter/businessConver.js'
import
*
as
api
from
'@/api/customer'
import
{
getList
as
getListTag
}
from
'@/api/customer/tag'
import
AddTag
from
'@/components/AddTag'
import
SelectTag
from
'@/components/SelectTag'
import
DeleteTag
from
'@/components/DeleteTag'
import
{
dictTrackState
}
from
'@/utils/dictionary'
import
{
getList
}
from
'@/api/salesCenter/businessConver.js'
export
default
{
name
:
'Customer'
,
components
:
{
AddTag
,
SelectTag
,
DeleteTag
},
props
:
{},
data
()
{
return
{
stageList
:
[],
query
:
{
pageNum
:
1
,
pageSize
:
10
,
name
:
''
,
// "客户名称",
userIds
:
''
,
// "添加人id",
tagIds
:
''
,
// "标签id,多个标签,id使用逗号隔开",
beginTime
:
''
,
// "开始时间",
endTime
:
''
,
// "结束时间"
customerType
:
''
,
//客户类型 1:微信客户;2:企业客户
trackState
:
''
,
//跟进状态 1:待跟进;2:跟进中;3:已成交;4:无意向;5:已流失
addMethod
:
''
,
//添加方式 0:未知来源;1:扫描二维码;2:搜索手机号;3:名片分享;4:群聊;5:手机通讯录;6:微信联系人;7:来自微信好友的添加申请;8:安装第三方应用时自动添加的客服人员;9:搜索邮箱;10:视频号主页添加;11:员工活码;12:新客拉群;13:活动裂变;201:内部成员共享;202:管理员/负责人分配
gender
:
''
,
//0-未知 1-男性 2-女性
noTagCheck
:
false
},
queryTag
:
[],
// 搜索框选择的标签
queryUser
:
[],
// 搜索框选择的添加人
dateRange
:
[],
// 添加日期
loading
:
false
,
total
:
0
,
lastSyncTime
:
''
,
noRepeatCustomerTotal
:
0
,
// 添加标签表单
form
:
{
gourpName
:
''
,
weTags
:
[]
},
list
:
[],
// 客户列表
staffList
:
[],
// 所有员工列表
dialogVisible
:
false
,
// 选择标签弹窗显隐
dialogVisibleSelectUser
:
false
,
// 选择添加人弹窗显隐
dialogVisibleAddTag
:
false
,
// 添加标签弹窗显隐
dialogVisibleExtend
:
false
,
// 在职继承弹窗显隐
extendStaff
:
''
,
// 在职继承选择的员工
currentEidt
:
''
,
// 当前编辑项
selectedTag
:
[],
// 选择的标签
tagDialogType
:
{
title
:
''
,
// 选择标签弹窗标题
type
:
''
// 弹窗类型
},
dictCustomerType
:
Object
.
freeze
({
1
:
'微信客户'
,
2
:
'企业客户'
}),
dictAddType
:
{},
dictTrackState
,
multiObj
:
{
state
:
'add'
,
// 'delete'
title
:
'批量打标签'
,
showDialog
:
false
},
multipleSelection
:
[],
// 多选数组
mulSelectedTag
:
[],
deleteData
:
[],
deleteDialog
:
false
}
},
watch
:
{},
computed
:
{},
created
()
{
this
.
findCustomerAddWay
()
this
.
getStage
()
this
.
getList
()
this
.
getListTag
()
export
default
{
name
:
'Customer'
,
components
:
{
AddTag
,
SelectTag
,
DeleteTag
},
props
:
{},
data
()
{
return
{
stageList
:
[],
query
:
{
pageNum
:
1
,
pageSize
:
10
,
name
:
''
,
// "客户名称",
userIds
:
''
,
// "添加人id",
tagIds
:
''
,
// "标签id,多个标签,id使用逗号隔开",
beginTime
:
''
,
// "开始时间",
endTime
:
''
,
// "结束时间"
customerType
:
''
,
//客户类型 1:微信客户;2:企业客户
trackState
:
''
,
//跟进状态 1:待跟进;2:跟进中;3:已成交;4:无意向;5:已流失
addMethod
:
''
,
//添加方式 0:未知来源;1:扫描二维码;2:搜索手机号;3:名片分享;4:群聊;5:手机通讯录;6:微信联系人;7:来自微信好友的添加申请;8:安装第三方应用时自动添加的客服人员;9:搜索邮箱;10:视频号主页添加;11:员工活码;12:新客拉群;13:活动裂变;201:内部成员共享;202:管理员/负责人分配
gender
:
''
,
//0-未知 1-男性 2-女性
noTagCheck
:
false
,
},
queryTag
:
[],
// 搜索框选择的标签
queryUser
:
[],
// 搜索框选择的添加人
dateRange
:
[],
// 添加日期
loading
:
false
,
total
:
0
,
lastSyncTime
:
''
,
noRepeatCustomerTotal
:
0
,
// 添加标签表单
form
:
{
gourpName
:
''
,
weTags
:
[],
},
list
:
[],
// 客户列表
staffList
:
[],
// 所有员工列表
dialogVisible
:
false
,
// 选择标签弹窗显隐
dialogVisibleSelectUser
:
false
,
// 选择添加人弹窗显隐
dialogVisibleAddTag
:
false
,
// 添加标签弹窗显隐
dialogVisibleExtend
:
false
,
// 在职继承弹窗显隐
extendStaff
:
''
,
// 在职继承选择的员工
currentEidt
:
''
,
// 当前编辑项
selectedTag
:
[],
// 选择的标签
tagDialogType
:
{
title
:
''
,
// 选择标签弹窗标题
type
:
''
,
// 弹窗类型
},
dictCustomerType
:
Object
.
freeze
({
1
:
'微信客户'
,
2
:
'企业客户'
}),
dictAddType
:
{},
dictTrackState
,
multiObj
:
{
state
:
'add'
,
// 'delete'
title
:
'批量打标签'
,
showDialog
:
false
,
},
multipleSelection
:
[],
// 多选数组
mulSelectedTag
:
[],
deleteData
:
[],
deleteDialog
:
false
,
}
},
watch
:
{},
computed
:
{},
created
()
{
this
.
findCustomerAddWay
()
this
.
getStage
()
this
.
getList
()
this
.
getListTag
()
this
.
$store
.
dispatch
(
'app/setBusininessDesc'
,
`
this
.
$store
.
dispatch
(
'app/setBusininessDesc'
,
`
<div>用于查看当前企业所有的客户列表及详细信息,支持对客户进行打标签。</div>
`
)
},
mounted
()
{},
methods
:
{
findCustomerAddWay
()
{
api
.
findCustomerAddWay
().
then
(({
data
})
=>
{
data
.
forEach
((
element
)
=>
{
this
.
dictAddType
[
element
.
code
]
=
element
.
value
})
`
,
)
},
mounted
()
{},
methods
:
{
findCustomerAddWay
()
{
api
.
findCustomerAddWay
().
then
(({
data
})
=>
{
data
.
forEach
((
element
)
=>
{
this
.
dictAddType
[
element
.
code
]
=
element
.
value
})
},
setValue
(
data
)
{
let
str
=
''
this
.
stageList
.
forEach
((
dd
)
=>
{
if
(
dd
.
stageVal
==
data
)
{
str
=
dd
.
stageKey
}
})
return
str
},
unique
(
arr
)
{
if
(
!
Array
.
isArray
(
arr
))
{
console
.
log
(
'type error!'
)
return
})
},
setValue
(
data
)
{
let
str
=
''
this
.
stageList
.
forEach
((
dd
)
=>
{
if
(
dd
.
stageVal
==
data
)
{
str
=
dd
.
stageKey
}
let
res
=
[]
for
(
let
i
=
0
;
i
<
arr
.
length
;
i
++
)
{
if
(
res
.
indexOf
(
arr
[
i
])
===
-
1
)
{
res
.
push
(
arr
[
i
])
}
})
return
str
},
unique
(
arr
)
{
if
(
!
Array
.
isArray
(
arr
))
{
console
.
log
(
'type error!'
)
return
}
let
res
=
[]
for
(
let
i
=
0
;
i
<
arr
.
length
;
i
++
)
{
if
(
res
.
indexOf
(
arr
[
i
])
===
-
1
)
{
res
.
push
(
arr
[
i
])
}
return
res
},
openDeleteDialog
()
{
let
str
=
''
this
.
multipleSelection
.
forEach
((
dd
)
=>
{
if
(
dd
.
tagIds
)
{
str
=
str
+
','
+
dd
.
tagIds
}
}
return
res
},
openDeleteDialog
()
{
let
str
=
''
this
.
multipleSelection
.
forEach
((
dd
)
=>
{
if
(
dd
.
tagIds
)
{
str
=
str
+
','
+
dd
.
tagIds
}
})
this
.
deleteData
=
this
.
unique
(
str
.
split
(
','
))
this
.
deleteDialog
=
true
},
getDeleteData
(
data
)
{
let
arr
=
[]
this
.
multipleSelection
.
forEach
((
dd
)
=>
{
let
obj
=
{
externalUserid
:
dd
.
externalUserid
,
addTag
:
data
,
userId
:
dd
.
firstUserId
,
}
arr
.
push
(
obj
)
})
this
.
loading
=
true
api
.
multiMakeTag
({
addOrRemove
:
false
,
weMakeCustomerTagList
:
arr
})
.
then
((
res
)
=>
{
this
.
getList
(
1
)
this
.
msgSuccess
(
'批量删除标签成功'
)
this
.
deleteData
=
[]
this
.
deleteDialog
=
false
this
.
loading
=
false
})
this
.
deleteData
=
this
.
unique
(
str
.
split
(
','
))
this
.
deleteDialog
=
true
},
getDeleteData
(
data
)
{
let
arr
=
[]
this
.
multipleSelection
.
forEach
((
dd
)
=>
{
let
obj
=
{
externalUserid
:
dd
.
externalUserid
,
addTag
:
data
,
userId
:
dd
.
firstUserId
}
arr
.
push
(
obj
)
.
catch
(()
=>
{
this
.
loading
=
false
})
this
.
loading
=
true
api
.
multiMakeTag
({
addOrRemove
:
false
,
weMakeCustomerTagList
:
arr
})
.
then
((
res
)
=>
{
this
.
getList
(
1
)
this
.
msgSuccess
(
'批量删除标签成功'
)
this
.
deleteData
=
[]
this
.
deleteDialog
=
false
this
.
loading
=
false
})
.
catch
(()
=>
{
this
.
loading
=
false
})
},
multiOperation
(
state
)
{
this
.
multiObj
.
state
=
state
if
(
state
===
'add'
)
{
this
.
multiObj
.
title
=
'批量打标签'
}
else
{
this
.
multiObj
.
title
=
'批量删标签'
},
multiOperation
(
state
)
{
this
.
multiObj
.
state
=
state
if
(
state
===
'add'
)
{
this
.
multiObj
.
title
=
'批量打标签'
}
else
{
this
.
multiObj
.
title
=
'批量删标签'
}
this
.
multiObj
.
showDialog
=
true
},
getMultiOperation
(
data
)
{
let
arr
=
[]
this
.
multipleSelection
.
forEach
((
dd
)
=>
{
let
obj
=
{
externalUserid
:
dd
.
externalUserid
,
addTag
:
data
,
userId
:
dd
.
firstUserId
,
}
this
.
multiObj
.
showDialog
=
true
}
,
getMultiOperation
(
data
)
{
let
arr
=
[]
this
.
multipleSelection
.
forEach
((
dd
)
=>
{
let
obj
=
{
externalUserid
:
dd
.
externalUserid
,
addTag
:
data
,
userId
:
dd
.
firstUserId
}
arr
.
push
(
obj
)
arr
.
push
(
obj
)
}
)
this
.
loading
=
true
api
.
multiMakeTag
({
addOrRemove
:
this
.
multiObj
.
state
===
'add'
?
true
:
false
,
weMakeCustomerTagList
:
arr
})
.
then
((
res
)
=>
{
this
.
getList
(
1
)
this
.
msgSuccess
(
this
.
multiObj
.
state
===
'add'
?
'批量设置标签成功'
:
'批量删除标签成功'
)
this
.
multiObj
.
showDialog
=
false
this
.
multipleSelection
=
[]
this
.
loading
=
false
})
this
.
loading
=
true
api
.
multiMakeTag
({
addOrRemove
:
this
.
multiObj
.
state
===
'add'
?
true
:
false
,
weMakeCustomerTagList
:
arr
})
.
then
((
res
)
=>
{
this
.
getList
(
1
)
this
.
msgSuccess
(
this
.
multiObj
.
state
===
'add'
?
'批量设置标签成功'
:
'批量删除标签成功'
)
this
.
multiObj
.
showDialog
=
false
this
.
multipleSelection
=
[]
this
.
loading
=
false
})
.
catch
(()
=>
{
this
.
loading
=
false
})
},
getStage
()
{
getList
().
then
((
res
)
=>
{
this
.
stageList
=
res
.
data
.
catch
(()
=>
{
this
.
loading
=
false
})
},
getList
(
page
)
{
// console.log(this.dateRange);
if
(
this
.
dateRange
)
{
this
.
query
.
beginTime
=
this
.
dateRange
[
0
]
this
.
query
.
endTime
=
this
.
dateRange
[
1
]
}
else
{
this
.
query
.
beginTime
=
''
this
.
query
.
endTime
=
''
}
page
&&
(
this
.
query
.
pageNum
=
page
)
this
.
query
.
tagIds
=
this
.
queryTag
.
map
((
d
)
=>
d
.
tagId
)
+
''
this
.
query
.
userIds
=
this
.
queryUser
.
map
((
d
)
=>
d
.
userId
)
+
''
this
.
loading
=
true
api
.
getListNew
(
this
.
query
)
.
then
(({
rows
,
total
,
lastSyncTime
,
noRepeatCustomerTotal
})
=>
{
rows
.
forEach
((
element
)
=>
{
if
(
element
.
tagIds
&&
element
.
tagNames
)
{
element
.
tagIds
=
element
.
tagIds
.
split
(
','
)
element
.
tagNames
=
element
.
tagNames
.
split
(
','
)
element
.
tags
=
[]
element
.
tagIds
.
forEach
((
unit
,
index
)
=>
{
element
.
tags
.
push
({
tagId
:
unit
,
tagName
:
element
.
tagNames
[
index
]
})
},
getStage
()
{
getList
().
then
((
res
)
=>
{
this
.
stageList
=
res
.
data
})
},
getList
(
page
)
{
// console.log(this.dateRange);
if
(
this
.
dateRange
)
{
this
.
query
.
beginTime
=
this
.
dateRange
[
0
]
this
.
query
.
endTime
=
this
.
dateRange
[
1
]
}
else
{
this
.
query
.
beginTime
=
''
this
.
query
.
endTime
=
''
}
page
&&
(
this
.
query
.
pageNum
=
page
)
this
.
query
.
tagIds
=
this
.
queryTag
.
map
((
d
)
=>
d
.
tagId
)
+
''
this
.
query
.
userIds
=
this
.
queryUser
.
map
((
d
)
=>
d
.
userId
)
+
''
this
.
loading
=
true
api
.
getListNew
(
this
.
query
)
.
then
(({
rows
,
total
,
lastSyncTime
,
noRepeatCustomerTotal
})
=>
{
rows
.
forEach
((
element
)
=>
{
if
(
element
.
tagIds
&&
element
.
tagNames
)
{
element
.
tagIds
=
element
.
tagIds
.
split
(
','
)
element
.
tagNames
=
element
.
tagNames
.
split
(
','
)
element
.
tags
=
[]
element
.
tagIds
.
forEach
((
unit
,
index
)
=>
{
element
.
tags
.
push
({
tagId
:
unit
,
tagName
:
element
.
tagNames
[
index
],
})
}
})
this
.
list
=
rows
this
.
total
=
+
total
this
.
lastSyncTime
=
lastSyncTime
this
.
noRepeatCustomerTotal
=
+
noRepeatCustomerTotal
this
.
loading
=
false
this
.
multipleSelection
=
[]
})
.
catch
(()
=>
{
this
.
loading
=
false
})
}
})
},
getListTag
(
refresh
)
{
getListTag
().
then
(({
rows
})
=>
{
this
.
listTagOneArray
=
[]
rows
.
forEach
((
element
)
=>
{
element
.
weTags
.
forEach
((
d
)
=>
{
this
.
listTagOneArray
.
push
(
d
)
})
this
.
list
=
rows
this
.
total
=
+
total
this
.
lastSyncTime
=
lastSyncTime
this
.
noRepeatCustomerTotal
=
+
noRepeatCustomerTotal
this
.
loading
=
false
this
.
multipleSelection
=
[]
})
.
catch
(()
=>
{
this
.
loading
=
false
})
},
getListTag
(
refresh
)
{
getListTag
().
then
(({
rows
})
=>
{
this
.
listTagOneArray
=
[]
rows
.
forEach
((
element
)
=>
{
element
.
weTags
.
forEach
((
d
)
=>
{
this
.
listTagOneArray
.
push
(
d
)
})
if
(
refresh
)
{
this
.
$refs
.
selectTag
.
getList
()
this
.
form
=
{
gourpName
:
''
,
weTags
:
[]
}
}
})
},
showTagDialog
()
{
this
.
query
.
noTagCheck
=
false
this
.
selectedTag
=
this
.
queryTag
this
.
tagDialogType
=
{
title
:
'选择标签'
,
type
:
'query'
if
(
refresh
)
{
this
.
$refs
.
selectTag
.
getList
()
this
.
form
=
{
gourpName
:
''
,
weTags
:
[],
}
}
this
.
dialogVisible
=
true
// this.$refs.selectTag.$forceUpdate()
},
makeTag
(
row
)
{
this
.
currentEidt
=
row
// if (!this.multipleSelection.length) {
// this.msgInfo('请选择一位客户')
// return
// }
// if (this.multipleSelection.length > 1) {
// this.msgInfo('同时只能选择一位客户')
// return
// }
this
.
selectedTag
=
[]
let
hasErrorTag
=
[]
let
repeat
=
[]
row
.
tags
&&
row
.
tags
.
forEach
((
unit
)
=>
{
// 判断是否有重复标签
let
isRepeat
=
this
.
selectedTag
.
some
((
d
)
=>
{
return
d
.
tagId
===
unit
.
tagId
})
// 去重
if
(
isRepeat
)
{
repeat
.
push
(
unit
.
tagName
)
return
}
let
filter
=
this
.
listTagOneArray
.
find
((
d
)
=>
{
return
d
.
tagId
===
unit
.
tagId
})
// 如果没有匹配到,则说明该便签处于异常状态,可能已被删除或破坏
if
(
!
filter
)
{
hasErrorTag
.
push
(
unit
.
tagName
)
return
}
this
.
selectedTag
.
push
(
filter
)
})
},
showTagDialog
()
{
this
.
query
.
noTagCheck
=
false
this
.
selectedTag
=
this
.
queryTag
this
.
tagDialogType
=
{
title
:
'选择标签'
,
type
:
'query'
,
}
this
.
dialogVisible
=
true
// this.$refs.selectTag.$forceUpdate()
},
makeTag
(
row
)
{
this
.
currentEidt
=
row
// if (!this.multipleSelection.length) {
// this.msgInfo('请选择一位客户')
// return
// }
// if (this.multipleSelection.length > 1) {
// this.msgInfo('同时只能选择一位客户')
// return
// }
this
.
selectedTag
=
[]
let
hasErrorTag
=
[]
let
repeat
=
[]
row
.
tags
&&
row
.
tags
.
forEach
((
unit
)
=>
{
// 判断是否有重复标签
let
isRepeat
=
this
.
selectedTag
.
some
((
d
)
=>
{
return
d
.
tagId
===
unit
.
tagId
})
// this.multipleSelection.forEach((element) => {
// })
if
(
hasErrorTag
.
length
>
0
)
{
this
.
$notify
({
// title: '标题名称',
message
:
this
.
$createElement
(
'i'
,
{
style
:
'color: red'
},
'已有标签['
+
hasErrorTag
+
']不在标签库中,已被删除或存在异常'
),
type
:
'warning'
,
customClass
:
'mzindex'
// 去重
if
(
isRepeat
)
{
repeat
.
push
(
unit
.
tagName
)
return
}
let
filter
=
this
.
listTagOneArray
.
find
((
d
)
=>
{
return
d
.
tagId
===
unit
.
tagId
})
// this.msgError('已有标签[' + hasErrorTag + ']不在标签库中,已被删除或存在异常')
}
// 如果没有匹配到,则说明该便签处于异常状态,可能已被删除或破坏
if
(
!
filter
)
{
hasErrorTag
.
push
(
unit
.
tagName
)
return
}
this
.
tagDialogType
=
{
title
:
'标签设置'
+
(
repeat
.
length
?
'(重复的标签已去重显示)'
:
''
)
this
.
selectedTag
.
push
(
filter
)
})
// this.multipleSelection.forEach((element) => {
// })
if
(
hasErrorTag
.
length
>
0
)
{
this
.
$notify
({
// title: '标题名称',
message
:
this
.
$createElement
(
'i'
,
{
style
:
'color: red'
},
'已有标签['
+
hasErrorTag
+
']不在标签库中,已被删除或存在异常'
,
),
type
:
'warning'
,
customClass
:
'mzindex'
,
})
// this.msgError('已有标签[' + hasErrorTag + ']不在标签库中,已被删除或存在异常')
}
this
.
tagDialogType
=
{
title
:
'标签设置'
+
(
repeat
.
length
?
'(重复的标签已去重显示)'
:
''
),
}
this
.
dialogVisible
=
true
// this.$refs.selectTag.$forceUpdate()
},
sync
()
{
// const loading = this.$loading({
// lock: true,
// text: 'Loading',
// spinner: 'el-icon-loading',
// background: 'rgba(0, 0, 0, 0.7)',
// })
api
.
sync
()
.
then
(()
=>
{
// loading.close()
this
.
getList
(
1
)
this
.
msgSuccess
(
'后台开始同步数据,请稍后关注进度'
)
})
.
catch
((
fail
)
=>
{
// loading.close()
console
.
log
(
fail
)
})
},
// /** 导出按钮操作 */
// exportCustomer() {
// const queryParams = this.query
// this.$confirm('是否确认导出所有客户数据项?', '警告', {
// confirmButtonText: '确定',
// cancelButtonText: '取消',
// type: 'warning'
// })
// .then(function() {
// return api.exportCustomer(queryParams)
// })
// .then((response) => {
// this.download(response.msg)
// })
// .catch(function() {})
// },
selectedUser
(
list
)
{
this
.
queryUser
=
list
},
submitSelectTag
(
selected
)
{
if
(
this
.
tagDialogType
.
type
===
'query'
)
{
this
.
queryTag
=
selected
this
.
dialogVisible
=
false
}
else
{
let
deleteTag
=
[]
this
.
selectedTag
.
forEach
((
dd
)
=>
{
let
index
=
selected
.
findIndex
((
item
)
=>
item
.
tagId
==
dd
.
tagId
)
if
(
index
==
-
1
)
{
deleteTag
.
push
(
dd
)
}
})
let
data
=
{
externalUserid
:
this
.
currentEidt
.
externalUserid
,
removeTag
:
deleteTag
,
addTag
:
selected
,
userId
:
this
.
currentEidt
.
firstUserId
,
}
this
.
dialogVisible
=
true
// this.$refs.selectTag.$forceUpdate()
},
sync
()
{
// const loading = this.$loading({
// lock: true,
// text: 'Loading',
// spinner: 'el-icon-loading',
// background: 'rgba(0, 0, 0, 0.7)',
// })
// let apiType = {
// add: 'makeLabel',
// remove: 'removeLabel'
// }
this
.
loading
=
true
api
.
sync
(
)
.
makeLabel
(
data
)
.
then
(()
=>
{
// loading.close()
this
.
getList
(
1
)
this
.
msgSuccess
(
'后台开始同步数据,请稍后关注进度'
)
})
.
catch
((
fail
)
=>
{
// loading.close()
console
.
log
(
fail
)
this
.
msgSuccess
(
'操作成功'
)
this
.
dialogVisible
=
false
this
.
getList
()
this
.
loading
=
false
})
},
// /** 导出按钮操作 */
// exportCustomer() {
// const queryParams = this.query
// this.$confirm('是否确认导出所有客户数据项?', '警告', {
// confirmButtonText: '确定',
// cancelButtonText: '取消',
// type: 'warning'
// })
// .then(function() {
// return api.exportCustomer(queryParams)
// })
// .then((response) => {
// this.download(response.msg)
// })
// .catch(function() {})
// },
selectedUser
(
list
)
{
this
.
queryUser
=
list
},
submitSelectTag
(
selected
)
{
if
(
this
.
tagDialogType
.
type
===
'query'
)
{
this
.
queryTag
=
selected
this
.
dialogVisible
=
false
}
else
{
let
deleteTag
=
[]
this
.
selectedTag
.
forEach
((
dd
)
=>
{
let
index
=
selected
.
findIndex
((
item
)
=>
item
.
tagId
==
dd
.
tagId
)
if
(
index
==
-
1
)
{
deleteTag
.
push
(
dd
)
}
.
catch
(()
=>
{
this
.
loading
=
false
})
let
data
=
{
externalUserid
:
this
.
currentEidt
.
externalUserid
,
removeTag
:
deleteTag
,
addTag
:
selected
,
userId
:
this
.
currentEidt
.
firstUserId
}
// let apiType = {
// add: 'makeLabel',
// remove: 'removeLabel'
// }
this
.
loading
=
true
api
.
makeLabel
(
data
)
.
then
(()
=>
{
this
.
msgSuccess
(
'操作成功'
)
this
.
dialogVisible
=
false
this
.
getList
()
this
.
loading
=
false
})
.
catch
(()
=>
{
this
.
loading
=
false
})
}
},
resetForm
(
formName
)
{
this
.
dateRange
=
[]
this
.
queryTag
=
[]
this
.
queryUser
=
[]
this
.
query
.
noTagCheck
=
false
this
.
$refs
[
'queryForm'
].
resetFields
()
this
.
getList
(
1
)
},
// 多选框选中数据
handleSelectionChange
(
selection
)
{
this
.
multipleSelection
=
selection
},
// 用于多选变单选
handleSelection
(
selection
,
row
)
{
this
.
$nextTick
(()
=>
{
this
.
$refs
.
table
.
clearSelection
()
this
.
$refs
.
table
.
toggleRowSelection
(
row
)
})
},
goRoute
(
row
)
{
let
{
externalUserid
,
firstUserId
:
userId
}
=
row
this
.
$router
.
push
({
path
:
'customerDetail'
,
query
:
{
externalUserid
,
userId
}
})
},
}
},
resetForm
(
formName
)
{
this
.
dateRange
=
[]
this
.
queryTag
=
[]
this
.
queryUser
=
[]
this
.
query
.
noTagCheck
=
false
this
.
$refs
[
'queryForm'
].
resetFields
()
this
.
getList
(
1
)
},
// 多选框选中数据
handleSelectionChange
(
selection
)
{
this
.
multipleSelection
=
selection
},
// 用于多选变单选
handleSelection
(
selection
,
row
)
{
this
.
$nextTick
(()
=>
{
this
.
$refs
.
table
.
clearSelection
()
this
.
$refs
.
table
.
toggleRowSelection
(
row
)
})
},
goRoute
(
row
)
{
let
{
externalUserid
,
firstUserId
:
userId
}
=
row
this
.
$router
.
push
({
name
:
'CustomerDetail'
,
query
:
{
externalUserid
,
userId
},
})
},
// 在职继承
async
transfer
(
row
)
{
await
this
.
$refs
[
'SelectStaffForm'
].
validate
()
// if (!this.extendStaff) {
// this.msgError('请选择员工')
// return
// }
let
data
=
{
handoverUserId
:
this
.
currentEidt
.
firstUserId
,
//移交人
takeoverUserId
:
this
.
extendStaff
,
//接受人
externalUserid
:
this
.
currentEidt
.
externalUserid
//客户id,多个客户使用逗号隔开
}
api
.
jobExtends
(
data
).
then
((
res
)
=>
{
this
.
msgSuccess
(
'操作成功'
)
this
.
dialogVisibleExtend
=
false
this
.
getList
()
})
},
setData
(
data
)
{
this
.
queryTag
=
[]
this
.
query
.
tagIds
=
''
// 在职继承
async
transfer
(
row
)
{
await
this
.
$refs
[
'SelectStaffForm'
].
validate
()
// if (!this.extendStaff) {
// this.msgError('请选择员工')
// return
// }
let
data
=
{
handoverUserId
:
this
.
currentEidt
.
firstUserId
,
//移交人
takeoverUserId
:
this
.
extendStaff
,
//接受人
externalUserid
:
this
.
currentEidt
.
externalUserid
,
//客户id,多个客户使用逗号隔开
}
}
}
api
.
jobExtends
(
data
).
then
((
res
)
=>
{
this
.
msgSuccess
(
'操作成功'
)
this
.
dialogVisibleExtend
=
false
this
.
getList
()
})
},
setData
(
data
)
{
this
.
queryTag
=
[]
this
.
query
.
tagIds
=
''
},
},
}
</
script
>
<
template
>
...
...
@@ -461,8 +461,7 @@
v-for=
"(item, index) in stageList"
:key=
"index"
:label=
"item.stageKey"
:value=
"item.stageVal"
></el-option>
:value=
"item.stageVal"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"添加方式"
prop=
"addMethod"
>
...
...
@@ -479,8 +478,7 @@
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
align=
"right"
></el-date-picker>
align=
"right"
></el-date-picker>
</el-form-item>
<el-form-item
label=
"客户标签"
prop=
"customerType"
>
<div
class=
"tag-input"
@
click=
"showTagDialog"
>
...
...
@@ -536,8 +534,7 @@
:data=
"list"
tooltip-effect=
"dark"
highlight-current-row
@
selection-change=
"handleSelectionChange"
>
@
selection-change=
"handleSelectionChange"
>
<!-- -->
<el-table-column
type=
"selection"
align=
"center"
width=
"55"
></el-table-column>
<el-table-column
label=
"客户"
prop=
"customerName"
header-align=
"center"
align=
""
width=
"180"
>
...
...
@@ -597,8 +594,7 @@
@click="
dialogVisibleExtend
=
true
currentEidt
=
row
"
>
">
在职继承
</el-button>
</template>
...
...
@@ -610,8 +606,7 @@
:total="
total
"
:page.sync="
query
.
pageNum
"
:limit.sync="
query
.
pageSize
"
@pagination="
getList
()
"
/>
@pagination="
getList
()
" />
</div>
<!-- 选择标签弹窗 -->
...
...
@@ -620,8 +615,7 @@
:visible.sync="
dialogVisible
"
:title="
tagDialogType
.
title
"
:defaultValues="
selectedTag
"
@success="
submitSelectTag
"
>
@success="
submitSelectTag
">
<!-- <el-button class="
ml20
" type="
primary
" @click="
dialogVisibleAddTag
=
true
"
>添加标签</el-button
> -->
...
...
@@ -648,43 +642,41 @@
:selected="
mulSelectedTag
"
:visible.sync="
multiObj
.
showDialog
"
:title="
multiObj
.
title
"
@success="
getMultiOperation
"
></SelectTag>
@success="
getMultiOperation
"></SelectTag>
<DeleteTag
v-if="
deleteDialog
"
ref="
deleteTag
"
:visible.sync="
deleteDialog
"
:initList="
deleteData
"
:selected="
deleteData
"
@success="
getDeleteData
"
></DeleteTag>
@success="
getDeleteData
"></DeleteTag>
</div>
</template>
<style lang="
scss
"
scoped
>
.
avatar
{
width
:
56
px
;
height
:
56
px
;
flex
:
none
;
border
-
radius
:
var
(
--
border
-
radius
-
big
);
.
avatar
{
width
:
56
px
;
height
:
56
px
;
flex
:
none
;
border
-
radius
:
var
(
--
border
-
radius
-
big
);
}
.
el
-
icon
-
s
-
custom
{
font
-
size
:
16
px
;
// margin-left: 4px;
color
:
#
999
;
&
.
man
{
color
:
#
13
a2e8
;
}
.
el
-
icon
-
s
-
custom
{
font
-
size
:
16
px
;
// margin-left: 4px;
color
:
#
999
;
&
.
man
{
color
:
#
13
a2e8
;
}
&
.
woman
{
color
:
#
f753b2
;
}
}
.
bfc
-
d
+
.
bfc
-
d
.
el
-
checkbox
:
first
-
child
{
margin
-
left
:
10
px
;
&
.
woman
{
color
:
#
f753b2
;
}
}
.
bfc
-
d
+
.
bfc
-
d
.
el
-
checkbox
:
first
-
child
{
margin
-
left
:
10
px
;
}
<
/style
>
<
style
>
.
mzindex
{
z
-
index
:
5000
!
important
;
}
.
mzindex
{
z
-
index
:
5000
!
important
;
}
<
/style
>
linkwe-pc/src/views/customerManage/lossRemind.vue
View file @
58857b7
<
script
>
import
{
getListNew
,
exportCustomer
,
lossRemind
,
getLossRemindStatus
}
from
'@/api/customer'
// import { getList as getListTag } from '@/api/customer/tag'
// import { getList as getListOrganization } from '@/api/organization'
import
{
getListNew
,
exportCustomer
,
lossRemind
,
getLossRemindStatus
}
from
'@/api/customer'
// import { getList as getListTag } from '@/api/customer/tag'
// import { getList as getListOrganization } from '@/api/organization'
import
SelectTag
from
'@/components/SelectTag'
import
SelectTag
from
'@/components/SelectTag'
export
default
{
name
:
'LossRemind'
,
components
:
{
SelectTag
},
props
:
{},
data
()
{
return
{
query
:
{
pageNum
:
1
,
pageSize
:
10
,
name
:
''
,
// "客户名称",
userIds
:
''
,
// "添加人id",
tagIds
:
''
,
// "标签id,多个标签,id使用逗号隔开",
beginTime
:
''
,
// "开始时间",
endTime
:
''
,
// "结束时间"
trackState
:
5
},
queryTag
:
[],
// 搜索框选择的标签
queryUser
:
[],
// 搜索框选择的添加人
dateRange
:
[],
// 添加日期
loading
:
false
,
isMoreFilter
:
false
,
total
:
0
,
// 添加标签表单
form
:
{
gourpName
:
''
,
weTags
:
[]
},
list
:
[],
// 客户列表
listOrganization
:
[],
// 组织架构列表
multipleSelection
:
[],
// 多选数组
dialogVisible
:
false
,
// 选择标签弹窗显隐
dialogVisibleSelectUser
:
false
,
// 选择添加人弹窗显隐
selectedGroup
:
''
,
// 选择的标签分组
selectedTag
:
[],
// 选择的标签
removeTag
:
[],
// 可移除的标签
tagDialogType
:
{
title
:
''
,
// 选择标签弹窗标题
type
:
''
// 弹窗类型
},
isNotice
:
'0'
}
},
watch
:
{},
computed
:
{},
created
()
{
this
.
getList
()
// this.getListTag()
// this.getListOrganization()
this
.
getLossRemindStatus
()
this
.
$store
.
dispatch
(
'app/setBusininessDesc'
,
`
<div>当企业成员被客户删除时,会在流失列表中产生一条记录,开启删除通知后,被删除的成员会收到一条推送</div>
`
)
},
mounted
()
{},
methods
:
{
getList
(
page
)
{
// console.log(this.dateRange);
if
(
this
.
dateRange
)
{
this
.
query
.
beginTime
=
this
.
dateRange
[
0
]
this
.
query
.
endTime
=
this
.
dateRange
[
1
]
}
else
{
this
.
query
.
beginTime
=
''
this
.
query
.
endTime
=
''
}
page
&&
(
this
.
query
.
pageNum
=
page
)
this
.
loading
=
true
getListNew
(
this
.
query
)
.
then
(({
rows
,
total
})
=>
{
this
.
list
=
rows
this
.
total
=
+
total
this
.
loading
=
false
this
.
multipleSelection
=
[]
})
.
catch
(()
=>
{
this
.
loading
=
false
})
},
// getListTag() {
// getListTag().then(({ rows }) => {
// this.listTagOneArray = []
// rows.forEach((element) => {
// element.weTags.forEach((d) => {
// this.listTagOneArray.push(d)
// })
// })
// })
// },
// getListOrganization() {
// getListOrganization().then(({ rows }) => {
// this.listOrganization = Object.freeze(rows)
// })
// },
getLossRemindStatus
()
{
getLossRemindStatus
().
then
(({
data
})
=>
{
this
.
isNotice
=
data
})
export
default
{
name
:
'LossRemind'
,
components
:
{
SelectTag
},
props
:
{},
data
()
{
return
{
query
:
{
pageNum
:
1
,
pageSize
:
10
,
name
:
''
,
// "客户名称",
userIds
:
''
,
// "添加人id",
tagIds
:
''
,
// "标签id,多个标签,id使用逗号隔开",
beginTime
:
''
,
// "开始时间",
endTime
:
''
,
// "结束时间"
trackState
:
5
,
},
showTagDialog
()
{
this
.
selectedTag
=
this
.
queryTag
this
.
tagDialogType
=
{
title
:
'选择标签'
,
type
:
'1'
}
this
.
dialogVisible
=
true
queryTag
:
[],
// 搜索框选择的标签
queryUser
:
[],
// 搜索框选择的添加人
dateRange
:
[],
// 添加日期
loading
:
false
,
isMoreFilter
:
false
,
total
:
0
,
// 添加标签表单
form
:
{
gourpName
:
''
,
weTags
:
[],
},
// /** 导出按钮操作 */
// exportCustomer() {
// const queryParams = this.query
// this.$confirm('是否确认导出所有客户数据项?', '警告', {
// confirmButtonText: '确定',
// cancelButtonText: '取消',
// type: 'warning'
// })
// .then(function() {
// return exportCustomer(queryParams)
// })
// .then((response) => {
// this.download(response.msg)
// })
// .catch(function() {})
// },
selectedUser
(
list
)
{
this
.
queryUser
=
list
this
.
query
.
userIds
=
list
.
map
((
d
)
=>
d
.
userId
)
+
''
list
:
[],
// 客户列表
listOrganization
:
[],
// 组织架构列表
multipleSelection
:
[],
// 多选数组
dialogVisible
:
false
,
// 选择标签弹窗显隐
dialogVisibleSelectUser
:
false
,
// 选择添加人弹窗显隐
selectedGroup
:
''
,
// 选择的标签分组
selectedTag
:
[],
// 选择的标签
removeTag
:
[],
// 可移除的标签
tagDialogType
:
{
title
:
''
,
// 选择标签弹窗标题
type
:
''
,
// 弹窗类型
},
submitSelectTag
(
selected
)
{
if
(
this
.
tagDialogType
.
type
===
'1'
)
{
this
.
query
.
tagIds
=
selected
.
map
((
d
)
=>
d
.
tagId
)
+
''
// debugger;
this
.
queryTag
=
selected
this
.
dialogVisible
=
false
}
},
resetForm
()
{
this
.
dateRange
=
[]
this
.
queryTag
=
[]
this
.
queryUser
=
[]
this
.
$refs
[
'queryForm'
].
resetFields
()
this
.
getList
(
1
)
},
// 多选框选中数据
handleSelectionChange
(
selection
)
{
this
.
multipleSelection
=
selection
},
// 流失提醒开关事件
remindSwitch
(
val
)
{
lossRemind
(
val
).
then
(()
=>
{
this
.
msgSuccess
(
'操作成功'
)
isNotice
:
'0'
,
}
},
watch
:
{},
computed
:
{},
created
()
{
this
.
getList
()
// this.getListTag()
// this.getListOrganization()
this
.
getLossRemindStatus
()
this
.
$store
.
dispatch
(
'app/setBusininessDesc'
,
`
<div>当企业成员被客户删除时,会在流失列表中产生一条记录,开启删除通知后,被删除的成员会收到一条推送</div>
`
,
)
},
mounted
()
{},
methods
:
{
getList
(
page
)
{
// console.log(this.dateRange);
if
(
this
.
dateRange
)
{
this
.
query
.
beginTime
=
this
.
dateRange
[
0
]
this
.
query
.
endTime
=
this
.
dateRange
[
1
]
}
else
{
this
.
query
.
beginTime
=
''
this
.
query
.
endTime
=
''
}
page
&&
(
this
.
query
.
pageNum
=
page
)
this
.
loading
=
true
getListNew
(
this
.
query
)
.
then
(({
rows
,
total
})
=>
{
this
.
list
=
rows
this
.
total
=
+
total
this
.
loading
=
false
this
.
multipleSelection
=
[]
})
.
catch
(()
=>
{
this
.
loading
=
false
})
},
// getListTag() {
// getListTag().then(({ rows }) => {
// this.listTagOneArray = []
// rows.forEach((element) => {
// element.weTags.forEach((d) => {
// this.listTagOneArray.push(d)
// })
// })
// })
// },
// getListOrganization() {
// getListOrganization().then(({ rows }) => {
// this.listOrganization = Object.freeze(rows)
// })
// },
getLossRemindStatus
()
{
getLossRemindStatus
().
then
(({
data
})
=>
{
this
.
isNotice
=
data
})
},
showTagDialog
()
{
this
.
selectedTag
=
this
.
queryTag
this
.
tagDialogType
=
{
title
:
'选择标签'
,
type
:
'1'
,
}
}
}
this
.
dialogVisible
=
true
},
// /** 导出按钮操作 */
// exportCustomer() {
// const queryParams = this.query
// this.$confirm('是否确认导出所有客户数据项?', '警告', {
// confirmButtonText: '确定',
// cancelButtonText: '取消',
// type: 'warning'
// })
// .then(function() {
// return exportCustomer(queryParams)
// })
// .then((response) => {
// this.download(response.msg)
// })
// .catch(function() {})
// },
selectedUser
(
list
)
{
this
.
queryUser
=
list
this
.
query
.
userIds
=
list
.
map
((
d
)
=>
d
.
userId
)
+
''
},
submitSelectTag
(
selected
)
{
if
(
this
.
tagDialogType
.
type
===
'1'
)
{
this
.
query
.
tagIds
=
selected
.
map
((
d
)
=>
d
.
tagId
)
+
''
// debugger;
this
.
queryTag
=
selected
this
.
dialogVisible
=
false
}
},
resetForm
()
{
this
.
dateRange
=
[]
this
.
queryTag
=
[]
this
.
queryUser
=
[]
this
.
$refs
[
'queryForm'
].
resetFields
()
this
.
getList
(
1
)
},
// 多选框选中数据
handleSelectionChange
(
selection
)
{
this
.
multipleSelection
=
selection
},
// 流失提醒开关事件
remindSwitch
(
val
)
{
lossRemind
(
val
).
then
(()
=>
{
this
.
msgSuccess
(
'操作成功'
)
})
},
},
}
</
script
>
<
template
>
...
...
@@ -187,8 +187,7 @@
range-separator=
"-"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
align=
"right"
></el-date-picker>
align=
"right"
></el-date-picker>
</el-form-item>
<el-form-item
label=
"标签"
>
<div
class=
"tag-input"
@
click=
"showTagDialog"
>
...
...
@@ -223,8 +222,7 @@
inactive-value=
"0"
active-color=
"#07c160"
inactive-color=
"#ff4949"
@
change=
"remindSwitch"
></el-switch>
@
change=
"remindSwitch"
></el-switch>
</div>
<!-- v-hasPermi="['customerManage/customer:makeTag']" -->
</div>
...
...
@@ -234,9 +232,8 @@
ref=
"multipleTable"
:data=
"list"
tooltip-effect=
"dark"
style=
"width: 100%;"
@
selection-change=
"handleSelectionChange"
>
style=
"width: 100%"
@
selection-change=
"handleSelectionChange"
>
<!-- <el-table-column type="selection" align="center" width="55"></el-table-column> -->
<el-table-column
label=
"客户"
prop=
"name"
align=
"center"
>
<
template
slot-scope=
"scope"
>
...
...
@@ -254,7 +251,7 @@
<
el
-
table
-
column
prop
=
"firstAddTime"
label
=
"添加时间"
align
=
"center"
>
<!--
<
template
slot
-
scope
=
"scope"
>
{{
scope
.
row
.
weFlowerCustomerRels
[
0
].
createTime
}}
<
/template> --
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"留存天数"
prop
=
"retentionDays"
align
=
"center"
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"留存天数"
prop
=
"retentionDays"
align
=
"center"
><
/el-table-column
>
<
el
-
table
-
column
prop
=
"updateTime"
label
=
"流失时间"
align
=
"center"
>
<!--
<
template
slot
-
scope
=
"scope"
>
{{
scope
.
row
.
weFlowerCustomerRels
[
0
].
createTime
}}
<
/template> --
>
<
/el-table-column
>
...
...
@@ -276,15 +273,14 @@
<el-button
@click="
$router
.
push
({
path
:
'/customerManage/customerManage/customer/c
ustomerDetail'
,
name
:
'C
ustomerDetail'
,
query
:
{
externalUserid
:
row
.
externalUserid
,
userId
:
row
.
firstUserId
}
userId
:
row
.
firstUserId
,
}
,
}
)
"
type="
text
"
>
type="
text
">
查看
</el-button>
<!-- <el-button type="
text
" >编辑</el-button> -->
...
...
@@ -297,8 +293,7 @@
:total="
total
"
:page.sync="
query
.
pageNum
"
:limit.sync="
query
.
pageSize
"
@pagination="
getList
()
"
/>
@pagination="
getList
()
" />
</div>
<!-- 选择标签弹窗 -->
...
...
@@ -307,8 +302,7 @@
:title="
tagDialogType
.
title
"
:selected="
selectedTag
"
:type="
tagDialogType
.
type
"
@success="
submitSelectTag
"
></SelectTag>
@success="
submitSelectTag
"></SelectTag>
<!-- 选择添加人弹窗 -->
<SelectUser :visible.sync="
dialogVisibleSelectUser
" title="
选择添加人
" @success="
selectedUser
"></SelectUser>
...
...
@@ -316,18 +310,18 @@
</template>
<style lang="
scss
"
scoped
>
.
el
-
icon
-
s
-
custom
{
font
-
size
:
16
px
;
margin
-
left
:
4
px
;
color
:
#
999
;
&
.
man
{
color
:
#
13
a2e8
;
}
&
.
woman
{
color
:
#
f753b2
;
}
.
el
-
icon
-
s
-
custom
{
font
-
size
:
16
px
;
margin
-
left
:
4
px
;
color
:
#
999
;
&
.
man
{
color
:
#
13
a2e8
;
}
.
bfc
-
d
+
.
bfc
-
d
.
el
-
checkbox
:
first
-
child
{
margin
-
left
:
10
px
;
&
.
woman
{
color
:
#
f753b2
;
}
}
.
bfc
-
d
+
.
bfc
-
d
.
el
-
checkbox
:
first
-
child
{
margin
-
left
:
10
px
;
}
<
/style
>
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