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 0fe325de
authored
Nov 09, 2023
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
离职分配客户点击详情问题
1 parent
367192ea
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
71 additions
and
75 deletions
vue3-lw-pc/src/views/contentCenter/components/PosterAdd.vue
vue3-lw-pc/src/views/customerManage/dimission/allocatedStaffDetailList.vue
vue3-lw-pc/src/views/contentCenter/components/PosterAdd.vue
View file @
0fe325d
...
@@ -830,7 +830,6 @@ export default {
...
@@ -830,7 +830,6 @@ export default {
if
(
valid
)
{
if
(
valid
)
{
let
laoding
=
this
.
$loading
()
let
laoding
=
this
.
$loading
()
const
form
=
this
.
form
const
form
=
this
.
form
debugger
form
.
tagIds
=
form
.
tags
?.
map
((
item
,
index
)
=>
item
.
tagId
)
+
''
form
.
tagIds
=
form
.
tags
?.
map
((
item
,
index
)
=>
item
.
tagId
)
+
''
form
.
posterJSON
=
this
.
canvas
.
toJSON
([
'customType'
])
form
.
posterJSON
=
this
.
canvas
.
toJSON
([
'customType'
])
let
list
=
form
.
posterJSON
.
objects
let
list
=
form
.
posterJSON
.
objects
...
...
vue3-lw-pc/src/views/customerManage/dimission/allocatedStaffDetailList.vue
View file @
0fe325d
<
script
>
<
script
>
import
{
getAllocateCustomers
,
getAllocateGroups
}
from
'@/api/customer/dimission'
import
{
getAllocateCustomers
,
getAllocateGroups
}
from
'@/api/customer/dimission'
export
default
{
export
default
{
name
:
'AllocatedStaffDetailList'
,
name
:
'AllocatedStaffDetailList'
,
components
:
{},
components
:
{},
props
:
{
props
:
{
dateRange
:
{
dateRange
:
{
type
:
Array
,
type
:
Array
,
default
:
()
=>
[]
default
:
()
=>
[],
},
type
:
{
type
:
String
,
default
:
'customer'
,
},
},
data
()
{
return
{
// 查询参数
query
:
{
pageNum
:
1
,
pageSize
:
10
,
handoverUserId
:
undefined
,
oldOwner
:
undefined
,
beginTime
:
undefined
,
endTime
:
undefined
,
},
},
type
:
{
loading
:
false
,
type
:
String
,
total
:
0
,
default
:
'customer'
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
()
{
gotoRoute
(
row
)
{
return
{
if
(
this
.
type
==
'customer'
)
{
// 查询参数
this
.
$router
.
push
({
query
:
{
name
:
window
.
lwConfig
.
CUSTOMER_DETAIL_ROUTE_NAME
,
pageNum
:
1
,
query
:
{
externalUserid
:
row
.
externalUserid
,
userId
:
row
.
firstUserId
},
pageSize
:
10
,
})
handoverUserId
:
undefined
,
}
else
{
oldOwner
:
undefined
,
this
.
$router
.
push
({
beginTime
:
undefined
,
path
:
window
.
lwConfig
.
GROUP_DETAIL_ROUTE_PATH
,
endTime
:
undefined
query
:
{
chatId
:
row
.
chatId
},
},
})
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
})
},
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
>
</
script
>
<
template
>
<
template
>
<div
class=
"page"
>
<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-if=
"type === 'customer'"
prop=
"customerName"
label=
"客户名称"
></el-table-column>
<el-table-column
v-else
prop=
"groupName"
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>
<el-table-column
:prop=
"type === 'customer' ? 'takeUserName' : 'newOwnerName'"
label=
"接替员工"
></el-table-column>
...
@@ -85,9 +85,7 @@
...
@@ -85,9 +85,7 @@
<el-table-column
prop=
"allocateTime"
label=
"分配时间"
show-overflow-tooltip
></el-table-column>
<el-table-column
prop=
"allocateTime"
label=
"分配时间"
show-overflow-tooltip
></el-table-column>
<el-table-column
label=
"操作"
width=
"100"
>
<el-table-column
label=
"操作"
width=
"100"
>
<template
#
default=
"
{ row }">
<template
#
default=
"
{ row }">
<el-button
v-hasPermi=
"['customerManage:dimission:edit']"
@
click=
"gotoRoute(row)"
text
>
<el-button
@
click=
"gotoRoute(row)"
text
>
查看
</el-button>
查看
</el-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
@@ -97,8 +95,7 @@
...
@@ -97,8 +95,7 @@
:total=
"total"
:total=
"total"
v-model:page=
"query.pageNum"
v-model:page=
"query.pageNum"
v-model:limit=
"query.pageSize"
v-model:limit=
"query.pageSize"
@
pagination=
"getList()"
@
pagination=
"getList()"
/>
/>
</div>
</div>
</template>
</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