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 3bbfdbd4
authored
Jun 03, 2023
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
--no commit message
1 parent
57d61e59
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
61 additions
and
63 deletions
linkwe-pc/src/views/customerManage/dimission/allocatedStaffDetailList.vue
linkwe-pc/src/views/customerManage/dimission/allocatedStaffDetailList.vue
View file @
3bbfdbd
<
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
:
()
=>
[]
},
type
:
{
type
:
String
,
default
:
'customer'
}
},
data
()
{
return
{
// 查询参数
query
:
{
pageNum
:
1
,
pageSize
:
10
,
handoverUserId
:
undefined
,
oldOwner
:
undefined
,
beginTime
:
undefined
,
endTime
:
undefined
},
loading
:
false
,
total
:
0
,
list
:
[]
}
export
default
{
name
:
'AllocatedStaffDetailList'
,
components
:
{},
props
:
{
dateRange
:
{
type
:
Array
,
default
:
()
=>
[],
},
watch
:
{},
computed
:
{},
created
()
{
this
.
query
.
handoverUserId
=
this
.
$route
.
query
.
userId
this
.
query
.
oldOwner
=
this
.
$route
.
query
.
userId
this
.
getList
()
type
:
{
type
:
String
,
default
:
'customer'
,
},
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
:
[],
}
}
},
watch
:
{},
computed
:
{},
created
()
{
this
.
query
.
handoverUserId
=
this
.
$route
.
query
.
userId
this
.
query
.
oldOwner
=
this
.
$route
.
query
.
userId
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
})
},
},
}
</
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>
...
...
@@ -75,12 +75,11 @@
v-hasPermi=
"['customerManage:dimission:edit']"
@
click=
"
$router.push(
{
path
: 'customerDetail',
query: { externalUserid: row.externalUserid, userId: row.firstUserId, isDelete: true }
name
: 'customerDetail',
query: { externalUserid: row.externalUserid, userId: row.firstUserId, isDelete: true }
,
})
"
type="text"
>
type="text">
查看
</el-button>
</
template
>
...
...
@@ -92,8 +91,7 @@
:total=
"total"
:page
.
sync=
"query.pageNum"
:limit
.
sync=
"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