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 b3f41b77
authored
Apr 18, 2022
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
12c23ffa
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
64 additions
and
61 deletions
src/assets/tagsManage/question.png
src/mixins/tag.js
src/views/clientDataOverview/index copy.vue
src/views/clientManage/clientDetail.vue
src/views/tagsManage/components/tagGroup.vue
src/views/tagsManage/index.vue
src/views/tagsManage/viewCustomers.vue
src/assets/tagsManage/question.png
View file @
b3f41b7
448 Bytes
|
W:
|
H:
608 Bytes
|
W:
|
H:
2-up
Swipe
Onion skin
src/mixins/tag.js
View file @
b3f41b7
...
...
@@ -79,6 +79,9 @@ export default {
console
.
log
(
this
.
tagsPartFormList
[
id
])
})
},
tagLength
(
children
)
{
return
children
.
filter
(
item
=>
item
).
length
},
goDetail
(
scope
)
{
this
.
$router
.
push
(
'/clientManage/clientDetail?id='
+
scope
.
oneId
)
},
...
...
@@ -97,7 +100,7 @@ export default {
//获取选中的标签并排序
getCheckItem
(
item
)
{
const
tree_id
=
[]
const
labelTree
=
this
.
$
refs
.
tagTree
.
labelTree
const
labelTree
=
this
.
$
common
.
utils
.
deepClone
(
this
.
$refs
.
tagTree
.
labelTree
)
labelTree
.
forEach
(
tree_node
=>
{
tree_node
.
children
.
forEach
(
t_node
=>
{
tree_id
.
push
(
t_node
.
id
)
...
...
@@ -122,6 +125,9 @@ export default {
}
})
})
this
.
tagCheckItem
.
forEach
(
tag
=>
{
tag
.
children
=
tag
.
children
.
filter
(
item
=>
item
)
})
},
//导出
handleExport
()
{
...
...
@@ -154,16 +160,13 @@ export default {
this
.
userLoading
=
false
this
.
tableData
=
res
.
data
this
.
tableTotal
=
res
.
count
if
(
this
.
tableTotal
==
0
)
{
this
.
$refs
.
viewCustomers
.
setTableHeightFun
()
}
// this.$nextTick(() => {
// if (tagLists.length == 0) {
// document.querySelector('.noDataText').innerText = '请选择标签'
// } else {
// document.querySelector('.noDataText').innerText = '暂无数据'
// }
// })
this
.
$nextTick
(()
=>
{
if
(
tagLists
.
length
==
0
)
{
document
.
querySelector
(
'.noDataText'
).
innerText
=
'当前未选择标签,快去选择标签查看客户吧!'
}
else
{
document
.
querySelector
(
'.noDataText'
)
?
(
document
.
querySelector
(
'.noDataText'
).
innerText
=
'暂无数据'
)
:
''
}
})
})
.
catch
(
err
=>
{
this
.
userLoading
=
false
...
...
src/views/clientDataOverview/index copy.vue
View file @
b3f41b7
...
...
@@ -187,7 +187,6 @@ export default {
position
:
relative
;
height
:
20px
;
font-size
:
20px
;
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-weight
:
700
;
color
:
#333333
;
line-height
:
20px
;
...
...
@@ -284,7 +283,6 @@ export default {
top
:
365px
;
height
:
20px
;
font-size
:
14px
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
color
:
#333333
;
line-height
:
20px
;
...
...
@@ -296,7 +294,6 @@ export default {
right
:
57px
;
top
:
389px
;
font-size
:
18px
;
font-family
:
PingFangSC-Semibold
,
PingFang
SC
;
font-weight
:
600
;
color
:
#fe9c1c
;
line-height
:
25px
;
...
...
src/views/clientManage/clientDetail.vue
View file @
b3f41b7
...
...
@@ -23,7 +23,7 @@
<span
class=
"ellipsis-1"
>
<!--
{{
leftPanelInfo
.
customerName
}}
-->
{{
beautySub
(
leftPanelInfo
.
customerName
)
}}
<
label
class=
"pure-blue-text font-12"
>
{{
leftPanelInfo
.
type
==
1
?
'@微信'
:
leftPanelInfo
.
type
==
2
?
'@企微'
:
''
}}
</label
>
<
!--
<label
class=
"pure-blue-text font-12"
>
{{
leftPanelInfo
.
type
==
1
?
'@微信'
:
leftPanelInfo
.
type
==
2
?
'@企微'
:
''
}}
</label>
--
>
</span>
</el-tooltip>
</p>
...
...
@@ -235,7 +235,7 @@
<el-button
type=
"primary"
@
click=
"goBack"
>
返回
</el-button>
</div>
</div>
<basic-dialog
class=
"phone-fill-box"
title=
"添加联系电话"
:isVisible=
"phoneVisible"
@
confirmDialog=
"phoneConfirmDialog"
@
closeDialog=
"phoneVisible = false"
>
<basic-dialog
class=
"phone-fill-box"
title=
"添加联系电话"
:isVisible=
"phoneVisible"
@
confirmDialog=
"phoneConfirmDialog"
@
closeDialog=
"phoneVisible = false"
:isShowCloseBtn=
"true"
>
<div
class=
"dialog-form"
>
<label>
联系电话:
</label>
<el-input
v-model
.
trim=
"contactPhone"
size=
"small"
placeholder=
"请输入11位的手机号"
maxlength=
"11"
></el-input>
...
...
@@ -456,7 +456,7 @@ export default {
prop
:
'addWay'
,
addHtml
:
'addWay'
,
align
:
'left'
,
minWidth
:
12
0
width
:
9
0
},
{
label
:
'添加类型'
,
...
...
@@ -476,7 +476,7 @@ export default {
prop
:
'remark'
,
align
:
'left'
,
line
:
1
,
width
:
15
0
width
:
23
0
},
{
label
:
'描述'
,
...
...
src/views/tagsManage/components/tagGroup.vue
View file @
b3f41b7
...
...
@@ -107,7 +107,7 @@ export default {
let
params
=
{
labelTreeReq
:
{
pageNum
:
1
,
pageSize
:
1000
,
pageSize
:
1000
0
,
shopId
:
this
.
$globalState
.
session
.
merchantId
,
labelGroupName
:
this
.
filterText
,
edition
:
this
.
$globalState
.
session
.
merchantModel
...
...
@@ -219,9 +219,12 @@ export default {
margin-right
:
10px
;
}
.el-icon-edit-outline
{
color
:
#
5850ff
;
color
:
#
999
;
font-size
:
15px
;
cursor
:
pointer
;
&:hover
{
color
:
#5850ff
;
}
}
}
}
...
...
src/views/tagsManage/index.vue
View file @
b3f41b7
...
...
@@ -70,7 +70,7 @@
</el-button>
</div>
</div>
<div
class=
"pageContent"
>
<div
class=
"pageContent"
:style=
"{ height: heightBox - 115 + 'px' }"
>
<GLCombiForm
ref=
"formSearch"
:formObj=
"searchForm"
:formData=
"tagsPartFormList"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<div
class=
"clientNumExp"
>
<div
class=
"clientNum"
>
...
...
@@ -558,7 +558,7 @@ export default {
},
mounted
()
{
let
clientHeight
=
document
.
documentElement
.
clientHeight
this
.
heightBox
=
clientHeight
-
1
40
this
.
heightBox
=
clientHeight
-
1
22
//没数据的时候要算高度
// setTimeout(() => {
// if (!this.$refs.tagsManage.data.length) {
...
...
@@ -1128,7 +1128,7 @@ export default {
width
:
260px
;
margin-right
:
10px
;
box-shadow
:
0
10px
20px
0
rgba
(
88
,
80
,
255
,
0.1
);
margin-top
:
2
0px
;
margin-top
:
1
0px
;
background-color
:
#fff
;
}
.client-tabel
{
...
...
@@ -1139,7 +1139,7 @@ export default {
}
.client-title-panel
{
padding
:
16px
;
margin-top
:
2
0px
;
margin-top
:
1
0px
;
background-color
:
#fff
;
box-shadow
:
0
10px
20px
0
rgba
(
88
,
80
,
255
,
0.1
);
}
...
...
@@ -1198,6 +1198,15 @@ export default {
}
}
.pageContent
{
/deep/
{
.noDataImg
{
margin-top
:
100px
;
}
.noDataText
{
margin-bottom
:
100px
;
}
}
overflow-y
:
auto
;
padding
:
20px
20px
30px
;
box-shadow
:
0
10px
20px
0
rgba
(
88
,
80
,
255
,
0
.1
);
margin-top
:
10px
;
...
...
@@ -1218,7 +1227,6 @@ export default {
.clientListNew
{
display
:
flex
;
align-items
:
center
;
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-weight
:
600
;
color
:
#333333
;
font-size
:
20px
;
...
...
@@ -1227,7 +1235,6 @@ export default {
margin-left
:
6px
;
height
:
20px
;
font-size
:
14px
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
color
:
#5850ff
;
line-height
:
20px
;
...
...
src/views/tagsManage/viewCustomers.vue
View file @
b3f41b7
...
...
@@ -29,7 +29,7 @@
</div>
</div>
<div
class=
"scrm-sub-client-container"
>
<div
class=
"pageContent"
>
<div
class=
"pageContent"
>
<div>
<div
class=
"clientNumExp"
>
<div
class=
"clientNum"
>
...
...
@@ -41,30 +41,30 @@
<div
class=
"clientNumText"
>
{{
tableTotal
}}
个
</div>
</div>
</div>
<el-button
class=
"export"
size=
"small"
@
click=
"handleExport"
>
导出
</el-button>
<el-button
class=
"export"
size=
"small"
@
click=
"handleExport"
>
导出
</el-button>
</div>
<GLTable
@
setTableFinishFun=
"setTableFinishFun"
v-if=
"isReload"
ref=
"viewCustomers"
:layout=
"layout"
:hasNum=
"true"
:tableData=
"tableData"
:tableTotal=
"tableTotal"
:noDataImg=
"url"
:pageConf=
"pageConf"
:searchForm=
"searchFormTable"
@
refreshTable=
"getCustomersListData"
:tableParams=
"tableParams"
>
<span
slot=
"qiweimingcheng"
slot-scope=
"scope"
>
<span>
{{
myStandNo
(
scope
.
scope
.
carVin
)
}}
</span>
</span>
<!-- 企微名称 -->
<div
slot=
"nickNameList"
slot-scope=
"scope"
class=
"expandImg"
>
<div
v-for=
"(list, idx) in scope.scope.nickNameList"
:key=
"idx"
>
<div
v-if=
"idx == 0"
>
<span>
{{
list
.
nickName
}}
</span>
<span
class=
"smallFontSize"
:class=
"[list.type == 1 ? 'pure-green-text' : '', list.type == 2 ? 'pure-yello-text' : '']"
>
@
{{
list
.
corpName
}}
</span>
<!-- 企微名称 -->
<div
slot=
"nickNameList"
slot-scope=
"scope"
class=
"expandImg"
>
<div
v-for=
"(list, idx) in scope.scope.nickNameList"
:key=
"idx"
>
<div
v-if=
"idx == 0"
>
<span>
{{
list
.
nickName
}}
</span>
<span
class=
"smallFontSize"
:class=
"[list.type == 1 ? 'pure-green-text' : '', list.type == 2 ? 'pure-yello-text' : '']"
>
@
{{
list
.
corpName
}}
</span>
</div>
<span
v-if=
"idx == 1"
>
<el-popover
placement=
"right-start"
trigger=
"hover"
content=
"这是一段内容,这是一段内容,这是一段内容,这是一段内容。"
>
<div
v-for=
"(i, index) in scope.scope.nickNameList"
style=
"padding-bottom:3px !important"
:key=
"index"
>
<span>
{{
i
.
nickName
}}
</span>
<span
style=
"height: 20px; font-size: 12px; letter-spacing: 0; line-height: 20px; font-weight: 400;margin-left:2px"
:class=
"[i.type == 1 ? 'pure-green-text' : '', i.type == 2 ? 'pure-yello-text' : '']"
>
@
{{
i
.
corpName
}}
</span>
</div>
<img
class=
"imgEll"
src=
"@/assets/tagsManage/ellipsis.png"
alt=
""
slot=
"reference"
/>
</el-popover>
</span>
</div>
<span
v-if=
"idx == 1"
>
<el-popover
placement=
"right-start"
trigger=
"hover"
content=
"这是一段内容,这是一段内容,这是一段内容,这是一段内容。"
>
<div
v-for=
"(i, index) in scope.scope.nickNameList"
style=
"padding-bottom:3px !important"
:key=
"index"
>
<span>
{{
i
.
nickName
}}
</span>
<span
style=
"height: 20px; font-size: 12px; letter-spacing: 0; line-height: 20px; font-weight: 400;margin-left:2px"
:class=
"[i.type == 1 ? 'pure-green-text' : '', i.type == 2 ? 'pure-yello-text' : '']"
>
@
{{
i
.
corpName
}}
</span>
</div>
<img
class=
"imgEll"
src=
"@/assets/tagsManage/ellipsis.png"
alt=
""
slot=
"reference"
/>
</el-popover>
</span>
</div>
</div>
<span
slot=
"carVin"
slot-scope=
"scope"
>
<span>
{{
myStandNo
(
scope
.
scope
.
carVin
)
}}
</span>
</span>
...
...
@@ -332,7 +332,7 @@ export default {
}
},
computed
:
{
items
:
function
()
{
items
:
function
()
{
var
_search
=
this
.
searchLabel
const
labelList
=
this
.
labelList
.
filter
(
item
=>
item
.
labelName
.
indexOf
(
_search
)
>
-
1
)
return
labelList
...
...
@@ -351,18 +351,17 @@ export default {
pageSize
:
this
.
$refs
.
viewCustomers
.
page
.
pageSize
,
pageNum
:
this
.
$refs
.
viewCustomers
.
page
.
pageNum
}
this
.
exportParams
=
{
...
JSON
.
parse
(
JSON
.
stringify
(
this
.
allListParams
))
}
this
.
loading2
=
true
;
this
.
exportParams
=
{
...
JSON
.
parse
(
JSON
.
stringify
(
this
.
allListParams
))
}
this
.
loading2
=
true
getCustomersList
(
params
).
then
(
res
=>
{
this
.
tableData
=
res
.
data
this
.
tableTotal
=
res
.
count
if
(
res
.
data
.
length
==
0
)
{
this
.
$refs
.
viewCustomers
.
setTableHeightFun
()
}
setTimeout
(()
=>
{
this
.
loading2
=
false
;
},
300
)
setTimeout
(()
=>
{
this
.
loading2
=
false
},
300
)
})
},
//获取标签组
...
...
@@ -528,7 +527,7 @@ export default {
}
.imgEll
{
margin-left
:
6.5px
;
cursor
:
pointer
;
cursor
:
pointer
;
//
margin-bottom
:
3px
;
}
}
...
...
@@ -544,7 +543,6 @@ export default {
div
{
margin-top
:
12px
;
font-size
:
14px
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
color
:
#000000
;
}
...
...
@@ -570,7 +568,6 @@ export default {
.clientListNew
{
display
:
flex
;
align-items
:
center
;
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-weight
:
600
;
color
:
#333333
;
font-size
:
20px
;
...
...
@@ -579,7 +576,6 @@ export default {
margin-left
:
6px
;
height
:
20px
;
font-size
:
14px
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
color
:
#5850ff
;
line-height
:
20px
;
...
...
@@ -587,9 +583,9 @@ export default {
}
}
.export
{
color
:
#5850ff
;
border
:
1px
solid
#5850ff
;
}
color
:
#5850ff
;
border
:
1px
solid
#5850ff
;
}
}
::v-deep
.el-dialog
{
height
:
100%
;
...
...
@@ -632,7 +628,6 @@ export default {
letter-spacing
:
1px
;
.labelSetLeft
{
font-size
:
20px
;
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-weight
:
600
;
color
:
#333333
;
line-height
:
20px
;
...
...
@@ -640,7 +635,6 @@ export default {
}
.labelSetLeftRight
{
font-size
:
14px
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
color
:
#333333
;
line-height
:
20px
;
...
...
@@ -730,7 +724,6 @@ export default {
}
.iconLabelstext
{
font-size
:
14px
;
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-weight
:
600
;
color
:
#333333
;
}
...
...
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