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 42a2070e
authored
Oct 31, 2021
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge remote-tracking branch 'origin/front_end_1.5'
2 parents
88f39636
d57a7254
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
22 deletions
linkwe-ui/src/layout/components/Navbar.vue
linkwe-ui/src/views/customerManage/customer.vue
linkwe-ui/src/layout/components/Navbar.vue
View file @
42a2070
...
@@ -35,10 +35,7 @@
...
@@ -35,10 +35,7 @@
<screenfull
id=
"screenfull"
class=
"right-menu-item hover-effect"
/>
<screenfull
id=
"screenfull"
class=
"right-menu-item hover-effect"
/>
</
template
>
</
template
>
<el-dropdown
<el-dropdown
class=
"avatar-container right-menu-item hover-effect"
trigger=
"click"
>
class=
"avatar-container right-menu-item hover-effect"
trigger=
"click"
>
<div
class=
"avatar-wrapper"
>
<div
class=
"avatar-wrapper"
>
仟微
仟微
<!-- <img :src="avatar" class="user-avatar"> -->
<!-- <img :src="avatar" class="user-avatar"> -->
...
@@ -99,16 +96,12 @@ export default {
...
@@ -99,16 +96,12 @@ export default {
type
:
'warning'
type
:
'warning'
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
$store
.
dispatch
(
'LogOut'
).
then
(()
=>
{
this
.
$store
.
dispatch
(
'LogOut'
).
then
(()
=>
{
location
.
href
=
'/'
location
.
href
=
process
.
env
.
VUE_APP_BASE_URL
})
})
})
})
},
},
goto
(
type
)
{
goto
(
type
)
{
window
.
open
(
window
.
open
(
type
?
'https://www.yuque.com/linkwechat/help/dsatfs'
:
'https://gitee.com/LinkWeChat/link-wechat'
)
type
?
'https://www.yuque.com/linkwechat/help/dsatfs'
:
'https://gitee.com/LinkWeChat/link-wechat'
)
},
},
goLink
(
path
)
{
goLink
(
path
)
{
if
(
!
isExternal
(
path
))
{
if
(
!
isExternal
(
path
))
{
...
...
linkwe-ui/src/views/customerManage/customer.vue
View file @
42a2070
...
@@ -77,6 +77,19 @@ export default {
...
@@ -77,6 +77,19 @@ export default {
api
api
.
getListNew
(
this
.
query
)
.
getListNew
(
this
.
query
)
.
then
(({
rows
,
total
})
=>
{
.
then
(({
rows
,
total
})
=>
{
rows
.
forEach
((
element
)
=>
{
if
(
element
.
tagIds
&&
element
.
tagNames
)
{
element
.
tagIds
=
element
.
tagIds
.
split
(
','
)
element
.
tagNames
=
element
.
tagNames
.
split
(
','
)
rows
.
tags
=
[]
element
.
tagIds
.
forEach
((
unit
,
index
)
=>
{
rows
.
tags
.
push
({
tagId
:
unit
,
tagId
:
element
.
tagNames
[
index
]
})
})
}
})
this
.
list
=
rows
this
.
list
=
rows
this
.
total
=
+
total
this
.
total
=
+
total
this
.
loading
=
false
this
.
loading
=
false
...
@@ -130,31 +143,30 @@ export default {
...
@@ -130,31 +143,30 @@ export default {
let
hasErrorTag
=
[]
let
hasErrorTag
=
[]
let
repeat
=
[]
let
repeat
=
[]
this
.
multipleSelection
.
forEach
((
element
)
=>
{
this
.
multipleSelection
.
forEach
((
element
)
=>
{
element
.
weFlowerCustomerRels
.
forEach
((
child
)
=>
{
element
.
tags
&&
child
.
weFlowerCustomerTagRels
.
forEach
((
grandchild
)
=>
{
element
.
tags
.
split
(
','
).
forEach
((
unit
)
=>
{
// 判断是否有重复标签
// 判断是否有重复标签
let
isRepeat
=
this
.
selectedTag
.
some
((
d
)
=>
{
let
isRepeat
=
this
.
selectedTag
.
some
((
d
)
=>
{
return
d
.
tagId
===
grandchild
.
tagId
return
d
.
tagId
===
unit
.
tagId
})
})
// 去重
// 去重
if
(
isRepeat
)
{
if
(
isRepeat
)
{
repeat
.
push
(
grandchild
.
tagName
)
repeat
.
push
(
unit
.
tagName
)
return
return
}
}
let
filter
=
this
.
listTagOneArray
.
find
((
d
)
=>
{
let
filter
=
this
.
listTagOneArray
.
find
((
d
)
=>
{
return
d
.
tagId
===
grandchild
.
tagId
return
d
.
tagId
===
unit
.
tagId
})
})
// 如果没有匹配到,则说明该便签处于异常状态,可能已被删除或破坏
// 如果没有匹配到,则说明该便签处于异常状态,可能已被删除或破坏
if
(
!
filter
)
{
if
(
!
filter
)
{
hasErrorTag
.
push
(
grandchild
.
tagName
)
hasErrorTag
.
push
(
unit
.
tagName
)
isError
=
true
isError
=
true
return
return
}
}
this
.
selectedTag
.
push
(
filter
)
this
.
selectedTag
.
push
(
filter
)
})
})
})
})
})
if
(
hasErrorTag
.
length
>
0
)
{
if
(
hasErrorTag
.
length
>
0
)
{
this
.
msgError
(
'已有标签['
+
hasErrorTag
+
']不在标签库中,或存在异常'
)
this
.
msgError
(
'已有标签['
+
hasErrorTag
+
']不在标签库中,或存在异常'
)
...
@@ -219,7 +231,8 @@ export default {
...
@@ -219,7 +231,8 @@ export default {
}
else
{
}
else
{
let
data
=
{
let
data
=
{
externalUserid
:
this
.
multipleSelection
[
0
].
externalUserid
,
externalUserid
:
this
.
multipleSelection
[
0
].
externalUserid
,
addTag
:
selected
addTag
:
selected
,
userId
:
this
.
multipleSelection
[
0
].
firstUserId
}
}
let
apiType
=
{
let
apiType
=
{
add
:
'makeLabel'
,
add
:
'makeLabel'
,
...
@@ -355,7 +368,7 @@ export default {
...
@@ -355,7 +368,7 @@ export default {
</template>
</template>
</el-table-column>
</el-table-column>
<!-- <el-table-column prop="
corpName
" label="
公司名称
" align="
center
"></el-table-column> -->
<!-- <el-table-column prop="
corpName
" label="
公司名称
" align="
center
"></el-table-column> -->
<el-table-column prop="
userName
" label="
添加人(首位)
" align="
center
">
<el-table-column prop="
firstUserId
" label="
添加人(首位)
" align="
center
">
<!-- <template slot-scope="
{
row
}"
>
{{
<!-- <template slot-scope="
{
row
}"
>
{{
row
.
weFlowerCustomerRels
[
0
]
?
row
.
weFlowerCustomerRels
[
0
].
userName
:
''
row
.
weFlowerCustomerRels
[
0
]
?
row
.
weFlowerCustomerRels
[
0
].
userName
:
''
}}
<
/template> --
>
}}
<
/template> --
>
...
@@ -366,14 +379,15 @@ export default {
...
@@ -366,14 +379,15 @@ export default {
}}
<
/template> --
>
}}
<
/template> --
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
prop
=
"tagNames"
label
=
"标签"
align
=
"center"
>
<
el
-
table
-
column
prop
=
"tagNames"
label
=
"标签"
align
=
"center"
>
<
template
slot
-
scope
=
"
{
row
}
" v-if="
row
.
tagNames
">
<
div
v
-
if
=
"row.tagNames"
slot
-
scope
=
"
{
row
}
">
<el-tag type="
info
" v-for="
(
unit
,
unique
)
in
row
.
tagNames
.
split
(
','
)
" :key="
unique
"
>
{{
unit
}}
<
/el-tag
>
<el-tag type="
info
" v-for="
(
unit
,
unique
)
in
row
.
tagNames
" :key="
unique
"
>
{{
unit
}}
<
/el-tag
>
<!--
<
div
v
-
for
=
"(item, index) in row.weFlowerCustomerRels"
:
key
=
"index"
>
<!--
<
div
v
-
for
=
"(item, index) in row.weFlowerCustomerRels"
:
key
=
"index"
>
<
el
-
tag
type
=
"info"
v
-
for
=
"(unit, unique) in item.weFlowerCustomerTagRels"
:
key
=
"unique"
>
{{
<
el
-
tag
type
=
"info"
v
-
for
=
"(unit, unique) in item.weFlowerCustomerTagRels"
:
key
=
"unique"
>
{{
unit
.
tagName
unit
.
tagName
}}
<
/el-tag
>
}}
<
/el-tag
>
<
/div> --
>
<
/div> --
>
<
/template
>
<
/div
>
<
span
v
-
else
>
无标签
<
/span
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"操作"
width
=
"100"
>
<
el
-
table
-
column
label
=
"操作"
width
=
"100"
>
<
template
slot
-
scope
=
"
{
row
}
">
<
template
slot
-
scope
=
"
{
row
}
">
...
...
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