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 09e0b8d9
authored
Nov 09, 2023
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复 客户批量删除标签问题
1 parent
0fe325de
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
28 deletions
vue3-lw-pc/src/components/DeleteTag.vue
vue3-lw-pc/src/components/SelectTag1.vue
vue3-lw-pc/src/views/customerManage/customer.vue
vue3-lw-pc/src/components/DeleteTag.vue
View file @
09e0b8d
...
@@ -65,6 +65,7 @@ export default {
...
@@ -65,6 +65,7 @@ export default {
mounted
()
{},
mounted
()
{},
methods
:
{
methods
:
{
setData
()
{
setData
()
{
this
.
list
=
[]
if
(
this
.
initList
.
length
)
{
if
(
this
.
initList
.
length
)
{
this
.
init
.
forEach
((
dd
,
index
)
=>
{
this
.
init
.
forEach
((
dd
,
index
)
=>
{
dd
.
weTags
.
forEach
((
ff
)
=>
{
dd
.
weTags
.
forEach
((
ff
)
=>
{
...
@@ -128,7 +129,7 @@ export default {
...
@@ -128,7 +129,7 @@ export default {
<el-dialog
:title=
"title"
v-model=
"Pvisible"
:destroy-on-close=
"destroyOnClose"
>
<el-dialog
:title=
"title"
v-model=
"Pvisible"
:destroy-on-close=
"destroyOnClose"
>
<div
v-loading=
"loading"
>
<div
v-loading=
"loading"
>
<section
class=
"label-group"
>
<section
class=
"label-group"
>
<template
v-for=
"
item in list"
:key=
"item.groupId
"
>
<template
v-for=
"
(item, index) in list"
:key=
"index
"
>
<div
class=
"label-group-item"
v-if=
"item"
>
<div
class=
"label-group-item"
v-if=
"item"
>
<div
class=
"label-group-item-title"
>
{{
item
.
groupName
}}
</div>
<div
class=
"label-group-item-title"
>
{{
item
.
groupName
}}
</div>
<div
v-if=
"item.weTags"
class=
"label-group-item-body"
>
<div
v-if=
"item.weTags"
class=
"label-group-item-body"
>
...
...
vue3-lw-pc/src/components/SelectTag1.vue
View file @
09e0b8d
...
@@ -20,6 +20,7 @@ export default {
...
@@ -20,6 +20,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
loading
:
true
,
list
:
[],
list
:
[],
listOneArray
:
[],
listOneArray
:
[],
selectedList
:
[],
selectedList
:
[],
...
@@ -45,15 +46,20 @@ export default {
...
@@ -45,15 +46,20 @@ export default {
mounted
()
{},
mounted
()
{},
methods
:
{
methods
:
{
getList
()
{
getList
()
{
getList
({
groupTagType
:
this
.
type
}).
then
(({
rows
})
=>
{
this
.
loading
=
true
this
.
list
=
rows
getList
({
groupTagType
:
this
.
type
})
this
.
listOneArray
=
[]
.
then
(({
rows
})
=>
{
this
.
list
.
forEach
((
element
)
=>
{
this
.
list
=
rows
element
.
weTags
.
forEach
((
d
)
=>
{
this
.
listOneArray
=
[]
this
.
listOneArray
.
push
({
tagId
:
d
.
tagId
,
name
:
d
.
name
})
this
.
list
.
forEach
((
element
)
=>
{
element
.
weTags
.
forEach
((
d
)
=>
{
this
.
listOneArray
.
push
({
tagId
:
d
.
tagId
,
name
:
d
.
name
})
})
})
})
})
})
})
.
finally
(()
=>
{
this
.
loading
=
false
})
},
},
submit
()
{
submit
()
{
// 统一数据格式
// 统一数据格式
...
@@ -81,7 +87,7 @@ export default {
...
@@ -81,7 +87,7 @@ export default {
</
script
>
</
script
>
<
template
>
<
template
>
<section
class=
"label-group"
>
<section
class=
"label-group"
v-loading=
"loading"
>
<div
v-for=
"item in list"
:key=
"item.groupId"
class=
"label-group-item"
>
<div
v-for=
"item in list"
:key=
"item.groupId"
class=
"label-group-item"
>
<div
class=
"label-group-item-title"
>
{{
item
.
groupName
}}
</div>
<div
class=
"label-group-item-title"
>
{{
item
.
groupName
}}
</div>
<div
v-if=
"item.weTags"
class=
"label-group-item-body"
>
<div
v-if=
"item.weTags"
class=
"label-group-item-body"
>
...
...
vue3-lw-pc/src/views/customerManage/customer.vue
View file @
09e0b8d
...
@@ -92,27 +92,12 @@ export default {
...
@@ -92,27 +92,12 @@ export default {
})
})
return
str
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
()
{
openDeleteDialog
()
{
let
str
=
''
let
tagIds
=
[]
this
.
multipleSelection
.
forEach
((
dd
)
=>
{
this
.
multipleSelection
.
forEach
((
dd
)
=>
{
if
(
dd
.
tagIds
)
{
dd
.
tagIds
&&
tagIds
.
push
(...
dd
.
tagIds
)
str
=
str
+
','
+
dd
.
tagIds
}
})
})
this
.
deleteData
=
this
.
unique
(
str
.
split
(
','
))
this
.
deleteData
=
Array
.
from
(
new
Set
(
tagIds
))
this
.
deleteDialog
=
true
this
.
deleteDialog
=
true
},
},
getDeleteData
(
data
)
{
getDeleteData
(
data
)
{
...
@@ -576,7 +561,7 @@ export default {
...
@@ -576,7 +561,7 @@ export default {
}}
<
/template> --
>
}}
<
/template> --
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"操作"
width
=
"2
00"
align
=
"center
"
>
<
el
-
table
-
column
label
=
"操作"
width
=
"2
20"
align
=
"center"
fixed
=
"right
"
>
<
template
#
default
=
"
{
row
,
$index
}
">
<
template
#
default
=
"
{
row
,
$index
}
">
<el-button text @click="
goRoute
(
row
)
">查看</el-button>
<el-button text @click="
goRoute
(
row
)
">查看</el-button>
<template v-if="
row
.
isJoinBlacklist
==
1
">
<template v-if="
row
.
isJoinBlacklist
==
1
">
...
...
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