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 b513a7a9
authored
Nov 09, 2023
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'vue3-master' into xxj-23.10.16-老客拉群优化-open
2 parents
ea69fb1d
c563825d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
94 additions
and
104 deletions
vue3-lw-pc/src/components/DeleteTag.vue
vue3-lw-pc/src/components/SelectTag1.vue
vue3-lw-pc/src/views/contentCenter/components/PosterAdd.vue
vue3-lw-pc/src/views/customerManage/customer.vue
vue3-lw-pc/src/views/customerManage/dimission/allocatedStaffDetailList.vue
vue3-lw-pc/src/components/DeleteTag.vue
View file @
b513a7a
...
...
@@ -65,12 +65,15 @@ export default {
mounted
()
{},
methods
:
{
setData
()
{
this
.
list
=
[]
if
(
this
.
initList
.
length
)
{
this
.
init
.
forEach
((
dd
,
index
)
=>
{
let
once
=
false
dd
.
weTags
.
forEach
((
ff
)
=>
{
if
(
this
.
initList
.
includes
(
ff
.
tagId
))
{
ff
.
show
=
true
this
.
list
[
index
]
=
dd
once
||
this
.
list
.
push
(
dd
)
once
=
true
}
})
})
...
...
@@ -128,7 +131,7 @@ export default {
<el-dialog
:title=
"title"
v-model=
"Pvisible"
:destroy-on-close=
"destroyOnClose"
>
<div
v-loading=
"loading"
>
<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-title"
>
{{
item
.
groupName
}}
</div>
<div
v-if=
"item.weTags"
class=
"label-group-item-body"
>
...
...
vue3-lw-pc/src/components/SelectTag1.vue
View file @
b513a7a
...
...
@@ -20,6 +20,7 @@ export default {
},
data
()
{
return
{
loading
:
true
,
list
:
[],
listOneArray
:
[],
selectedList
:
[],
...
...
@@ -45,15 +46,20 @@ export default {
mounted
()
{},
methods
:
{
getList
()
{
getList
({
groupTagType
:
this
.
type
}).
then
(({
rows
})
=>
{
this
.
list
=
rows
this
.
listOneArray
=
[]
this
.
list
.
forEach
((
element
)
=>
{
element
.
weTags
.
forEach
((
d
)
=>
{
this
.
listOneArray
.
push
({
tagId
:
d
.
tagId
,
name
:
d
.
name
})
this
.
loading
=
true
getList
({
groupTagType
:
this
.
type
})
.
then
(({
rows
})
=>
{
this
.
list
=
rows
this
.
listOneArray
=
[]
this
.
list
.
forEach
((
element
)
=>
{
element
.
weTags
.
forEach
((
d
)
=>
{
this
.
listOneArray
.
push
({
tagId
:
d
.
tagId
,
name
:
d
.
name
})
})
})
})
})
.
finally
(()
=>
{
this
.
loading
=
false
})
},
submit
()
{
// 统一数据格式
...
...
@@ -81,7 +87,7 @@ export default {
</
script
>
<
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
class=
"label-group-item-title"
>
{{
item
.
groupName
}}
</div>
<div
v-if=
"item.weTags"
class=
"label-group-item-body"
>
...
...
vue3-lw-pc/src/views/contentCenter/components/PosterAdd.vue
View file @
b513a7a
...
...
@@ -830,7 +830,6 @@ export default {
if
(
valid
)
{
let
laoding
=
this
.
$loading
()
const
form
=
this
.
form
debugger
form
.
tagIds
=
form
.
tags
?.
map
((
item
,
index
)
=>
item
.
tagId
)
+
''
form
.
posterJSON
=
this
.
canvas
.
toJSON
([
'customType'
])
let
list
=
form
.
posterJSON
.
objects
...
...
vue3-lw-pc/src/views/customerManage/customer.vue
View file @
b513a7a
...
...
@@ -92,27 +92,12 @@ export default {
})
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
=
''
let
tagIds
=
[]
this
.
multipleSelection
.
forEach
((
dd
)
=>
{
if
(
dd
.
tagIds
)
{
str
=
str
+
','
+
dd
.
tagIds
}
dd
.
tagIds
&&
tagIds
.
push
(...
dd
.
tagIds
)
})
this
.
deleteData
=
this
.
unique
(
str
.
split
(
','
))
this
.
deleteData
=
Array
.
from
(
new
Set
(
tagIds
))
this
.
deleteDialog
=
true
},
getDeleteData
(
data
)
{
...
...
@@ -576,7 +561,7 @@ export default {
}}
<
/template> --
>
<
/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
}
">
<el-button text @click="
goRoute
(
row
)
">查看</el-button>
<template v-if="
row
.
isJoinBlacklist
==
1
">
...
...
vue3-lw-pc/src/views/customerManage/dimission/allocatedStaffDetailList.vue
View file @
b513a7a
<
script
>
import
{
getAllocateCustomers
,
getAllocateGroups
}
from
'@/api/customer/dimission'
import
{
getAllocateCustomers
,
getAllocateGroups
}
from
'@/api/customer/dimission'
export
default
{
name
:
'AllocatedStaffDetailList'
,
components
:
{},
props
:
{
dateRange
:
{
type
:
Array
,
default
:
()
=>
[]
export
default
{
name
:
'AllocatedStaffDetailList'
,
components
:
{},
props
:
{
dateRange
:
{
type
:
Array
,
default
:
()
=>
[],
},
type
:
{
type
:
String
,
default
:
'customer'
,
},
},
data
()
{
return
{
// 查询参数
query
:
{
pageNum
:
1
,
pageSize
:
10
,
handoverUserId
:
undefined
,
oldOwner
:
undefined
,
beginTime
:
undefined
,
endTime
:
undefined
,
},
type
:
{
type
:
String
,
default
:
'customer'
loading
:
false
,
total
:
0
,
list
:
[],
}
},
watch
:
{},
computed
:
{},
created
()
{
this
.
query
.
handoverUserId
=
this
.
$route
.
query
.
userId
this
.
query
.
oldOwner
=
this
.
$route
.
query
.
userId
this
.
query
.
leaveUserId
=
this
.
$route
.
query
.
leaveUserId
this
.
getList
()
},
mounted
()
{},
methods
:
{
/** 查询 */
getList
(
page
)
{
if
(
this
.
dateRange
)
{
this
.
query
.
beginTime
=
this
.
dateRange
[
0
]
this
.
query
.
endTime
=
this
.
dateRange
[
1
]
}
page
&&
(
this
.
query
.
pageNum
=
page
)
this
.
loading
=
true
;(
this
.
type
===
'customer'
?
getAllocateCustomers
:
getAllocateGroups
)(
this
.
query
)
.
then
(({
rows
,
total
})
=>
{
this
.
list
=
rows
this
.
total
=
+
total
this
.
loading
=
false
})
.
catch
(()
=>
{
this
.
loading
=
false
})
},
data
()
{
return
{
// 查询参数
query
:
{
pageNum
:
1
,
pageSize
:
10
,
handoverUserId
:
undefined
,
oldOwner
:
undefined
,
beginTime
:
undefined
,
endTime
:
undefined
},
loading
:
false
,
total
:
0
,
list
:
[]
gotoRoute
(
row
)
{
if
(
this
.
type
==
'customer'
)
{
this
.
$router
.
push
({
name
:
window
.
lwConfig
.
CUSTOMER_DETAIL_ROUTE_NAME
,
query
:
{
externalUserid
:
row
.
externalUserid
,
userId
:
row
.
firstUserId
},
})
}
else
{
this
.
$router
.
push
({
path
:
window
.
lwConfig
.
GROUP_DETAIL_ROUTE_PATH
,
query
:
{
chatId
:
row
.
chatId
},
})
}
},
watch
:
{},
computed
:
{},
created
()
{
this
.
query
.
handoverUserId
=
this
.
$route
.
query
.
userId
this
.
query
.
oldOwner
=
this
.
$route
.
query
.
userId
this
.
query
.
leaveUserId
=
this
.
$route
.
query
.
leaveUserId
this
.
getList
()
},
mounted
()
{},
methods
:
{
/** 查询 */
getList
(
page
)
{
if
(
this
.
dateRange
)
{
this
.
query
.
beginTime
=
this
.
dateRange
[
0
]
this
.
query
.
endTime
=
this
.
dateRange
[
1
]
}
page
&&
(
this
.
query
.
pageNum
=
page
)
this
.
loading
=
true
;(
this
.
type
===
'customer'
?
getAllocateCustomers
:
getAllocateGroups
)(
this
.
query
)
.
then
(({
rows
,
total
})
=>
{
this
.
list
=
rows
this
.
total
=
+
total
this
.
loading
=
false
})
.
catch
(()
=>
{
this
.
loading
=
false
})
},
gotoRoute
(
row
)
{
if
(
this
.
type
==
'customer'
)
{
this
.
$router
.
push
({
name
:
window
.
lwConfig
.
CUSTOMER_DETAIL_ROUTE_NAME
,
query
:
{
externalUserid
:
row
.
externalUserid
,
userId
:
row
.
firstUserId
,
isDelete
:
true
}
})
}
else
{
this
.
$router
.
push
({
path
:
window
.
lwConfig
.
GROUP_DETAIL_ROUTE_PATH
,
query
:
{
chatId
:
row
.
chatId
}
})
}
}
}
}
},
}
</
script
>
<
template
>
<div
class=
"page"
>
<el-table
ref=
"multipleTable"
:data=
"list"
tooltip-effect=
"dark"
style=
"width: 100%
;
"
>
<el-table
ref=
"multipleTable"
:data=
"list"
tooltip-effect=
"dark"
style=
"width: 100%"
>
<el-table-column
v-if=
"type === 'customer'"
prop=
"customerName"
label=
"客户名称"
></el-table-column>
<el-table-column
v-else
prop=
"groupName"
label=
"群名称"
></el-table-column>
<el-table-column
:prop=
"type === 'customer' ? 'takeUserName' : 'newOwnerName'"
label=
"接替员工"
></el-table-column>
...
...
@@ -85,9 +85,7 @@
<el-table-column
prop=
"allocateTime"
label=
"分配时间"
show-overflow-tooltip
></el-table-column>
<el-table-column
label=
"操作"
width=
"100"
>
<template
#
default=
"
{ row }">
<el-button
v-hasPermi=
"['customerManage:dimission:edit']"
@
click=
"gotoRoute(row)"
text
>
查看
</el-button>
<el-button
@
click=
"gotoRoute(row)"
text
>
查看
</el-button>
</
template
>
</el-table-column>
</el-table>
...
...
@@ -97,8 +95,7 @@
:total=
"total"
v-model:page=
"query.pageNum"
v-model:limit=
"query.pageSize"
@
pagination=
"getList()"
/>
@
pagination=
"getList()"
/>
</div>
</template>
...
...
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