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 3872cf15
authored
Nov 23, 2023
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
客户批量打,删标签修改
1 parent
a2f9e255
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
13 deletions
vue3-lw-pc/src/views/customerManage/customer.vue
vue3-lw-pc/src/views/customerManage/customer.vue
View file @
3872cf1
...
@@ -91,6 +91,7 @@ export default {
...
@@ -91,6 +91,7 @@ export default {
})
})
return
str
return
str
},
},
openDeleteDialog
()
{
openDeleteDialog
()
{
let
tagIds
=
[]
let
tagIds
=
[]
this
.
multipleSelection
.
forEach
((
dd
)
=>
{
this
.
multipleSelection
.
forEach
((
dd
)
=>
{
...
@@ -99,6 +100,7 @@ export default {
...
@@ -99,6 +100,7 @@ export default {
this
.
deleteData
=
Array
.
from
(
new
Set
(
tagIds
))
this
.
deleteData
=
Array
.
from
(
new
Set
(
tagIds
))
this
.
deleteDialog
=
true
this
.
deleteDialog
=
true
},
},
// 批量删标签
getDeleteData
(
data
)
{
getDeleteData
(
data
)
{
let
arr
=
[]
let
arr
=
[]
this
.
multipleSelection
.
forEach
((
dd
)
=>
{
this
.
multipleSelection
.
forEach
((
dd
)
=>
{
...
@@ -111,7 +113,7 @@ export default {
...
@@ -111,7 +113,7 @@ export default {
})
})
this
.
loading
=
true
this
.
loading
=
true
api
api
.
multiMakeTag
({
addOrRemove
:
false
,
weMakeCustomerTagList
:
arr
})
.
multiMakeTag
({
removeTag
:
arr
})
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
this
.
getList
(
1
)
this
.
getList
(
1
)
this
.
msgSuccess
(
'批量删除标签成功'
)
this
.
msgSuccess
(
'批量删除标签成功'
)
...
@@ -123,15 +125,17 @@ export default {
...
@@ -123,15 +125,17 @@ export default {
this
.
loading
=
false
this
.
loading
=
false
})
})
},
},
multiOperation
(
state
)
{
this
.
multiObj
.
state
=
state
// multiOperation(state) {
if
(
state
===
'add'
)
{
// this.multiObj.state = state
this
.
multiObj
.
title
=
'批量打标签'
// if (state === 'add') {
}
else
{
// this.multiObj.title = '批量打标签'
this
.
multiObj
.
title
=
'批量删标签'
// } else {
}
// this.multiObj.title = '批量删标签'
this
.
multiObj
.
showDialog
=
true
// }
},
// this.multiObj.showDialog = true
// },
// 批量打标签
getMultiOperation
(
data
)
{
getMultiOperation
(
data
)
{
let
arr
=
[]
let
arr
=
[]
this
.
multipleSelection
.
forEach
((
dd
)
=>
{
this
.
multipleSelection
.
forEach
((
dd
)
=>
{
...
@@ -144,10 +148,14 @@ export default {
...
@@ -144,10 +148,14 @@ export default {
})
})
this
.
loading
=
true
this
.
loading
=
true
api
api
.
multiMakeTag
({
addOrRemove
:
this
.
multiObj
.
state
===
'add'
?
true
:
false
,
weMakeCustomerTagList
:
arr
})
.
multiMakeTag
({
// addOrRemove: this.multiObj.state === 'add' ? true : false,
// weMakeCustomerTagList: arr,
addTag
:
arr
,
})
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
this
.
getList
(
1
)
this
.
getList
(
1
)
this
.
msgSuccess
(
this
.
multiObj
.
state
===
'add'
?
'批量设置标签成功'
:
'批量删除
标签成功'
)
this
.
msgSuccess
(
'批量设置
标签成功'
)
this
.
multiObj
.
showDialog
=
false
this
.
multiObj
.
showDialog
=
false
this
.
multipleSelection
=
[]
this
.
multipleSelection
=
[]
this
.
loading
=
false
this
.
loading
=
false
...
@@ -499,7 +507,11 @@ export default {
...
@@ -499,7 +507,11 @@ export default {
<span
class=
"desc"
>
最近同步:{{ lastSyncTime }}
</span>
<span
class=
"desc"
>
最近同步:{{ lastSyncTime }}
</span>
<ButtonSync
:lastSyncTime=
"lastSyncTime"
@
click=
"sync"
>
同步客户
</ButtonSync>
<ButtonSync
:lastSyncTime=
"lastSyncTime"
@
click=
"sync"
>
同步客户
</ButtonSync>
<!-- <el-button v-hasPermi="['customerManage:customer:checkRepeat']" type="primary">查看重复客户</el-button> -->
<!-- <el-button v-hasPermi="['customerManage:customer:checkRepeat']" type="primary">查看重复客户</el-button> -->
<el-button
class=
"ml10"
type=
"primary"
:disabled=
"!multipleSelection.length"
@
click=
"multiOperation('add')"
>
<el-button
class=
"ml10"
type=
"primary"
:disabled=
"!multipleSelection.length"
@
click=
"multiObj.showDialog = true"
>
批量打标签
批量打标签
</el-button>
</el-button>
<el-button
type=
"primary"
:disabled=
"!multipleSelection.length"
@
click=
"openDeleteDialog()"
>
<el-button
type=
"primary"
:disabled=
"!multipleSelection.length"
@
click=
"openDeleteDialog()"
>
...
@@ -614,6 +626,7 @@ export default {
...
@@ -614,6 +626,7 @@ export default {
<
/template
>
<
/template
>
<
/el-dialog
>
<
/el-dialog
>
<!--
批量打标签
-->
<
SelectTag
<
SelectTag
v
-
if
=
"multiObj.showDialog"
v
-
if
=
"multiObj.showDialog"
ref
=
"multiTag"
ref
=
"multiTag"
...
@@ -621,6 +634,7 @@ export default {
...
@@ -621,6 +634,7 @@ export default {
v
-
model
:
visible
=
"multiObj.showDialog"
v
-
model
:
visible
=
"multiObj.showDialog"
:
title
=
"multiObj.title"
:
title
=
"multiObj.title"
@
success
=
"getMultiOperation"
><
/SelectTag
>
@
success
=
"getMultiOperation"
><
/SelectTag
>
<!--
批量删标签
-->
<
DeleteTag
<
DeleteTag
v
-
if
=
"deleteDialog"
v
-
if
=
"deleteDialog"
ref
=
"deleteTag"
ref
=
"deleteTag"
...
...
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