Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
仟微科技
Link Wechat
提交
5b587766
Link Wechat
项目概览
仟微科技
/
Link Wechat
通知
48
Star
3
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
1
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Link Wechat
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
5b587766
编写于
7月 19, 2021
作者:
X
xinla
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
离职继承完成已分配群聊,交互优化等
上级
edd2d6ad
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
65 addition
and
34 deletion
+65
-34
linkwe-ui/src/api/customer/dimission.js
linkwe-ui/src/api/customer/dimission.js
+22
-4
linkwe-ui/src/layout/components/Breadcrumb/index.vue
linkwe-ui/src/layout/components/Breadcrumb/index.vue
+0
-3
linkwe-ui/src/views/customerManage/dimission/allocatedStaffDetail.vue
...c/views/customerManage/dimission/allocatedStaffDetail.vue
+14
-23
linkwe-ui/src/views/customerManage/dimission/allocatedStaffDetailList.vue
...ews/customerManage/dimission/allocatedStaffDetailList.vue
+23
-4
linkwe-ui/src/views/customerManage/dimission/index.vue
linkwe-ui/src/views/customerManage/dimission/index.vue
+6
-0
未找到文件。
linkwe-ui/src/api/customer/dimission.js
浏览文件 @
5b587766
...
...
@@ -15,7 +15,7 @@ userName:
export
function
getList
(
params
)
{
return
request
({
url
:
service
+
'
/leaveUserAllocateList
'
,
params
,
params
})
}
...
...
@@ -33,7 +33,7 @@ userName:
export
function
getListNo
(
params
)
{
return
request
({
url
:
service
+
'
/leaveUserNoAllocateList
'
,
params
,
params
})
}
...
...
@@ -49,7 +49,7 @@ export function allocate(data) {
return
request
({
url
:
service
+
'
/allocateLeaveUserAboutData
'
,
method
:
'
put
'
,
data
,
data
})
}
...
...
@@ -67,6 +67,24 @@ export function allocate(data) {
export
function
getAllocateCustomers
(
params
)
{
return
request
({
url
:
service
+
'
/getAllocateCustomers
'
,
params
,
params
})
}
/**
* 离职已分配客户群
* @param {*} params
{
"pageNum": 0,
"pageSize": 0,
"beginTime": "",
"endTime": "",
"oldOwner": "" 原群主ID
}
*/
export
function
getAllocateGroups
(
params
)
{
return
request
({
url
:
service
+
'
/getAllocateGroups
'
,
params
})
}
linkwe-ui/src/layout/components/Breadcrumb/index.vue
浏览文件 @
5b587766
...
...
@@ -66,7 +66,6 @@ export default {
let
matched
=
this
.
$route
.
matched
.
filter
(
(
item
)
=>
item
.
meta
&&
item
.
meta
.
title
)
console
.
log
(
matched
)
const
first
=
matched
[
0
]
// if (!this.isDashboard(first)) {
...
...
@@ -91,12 +90,10 @@ export default {
},
handleLink
(
item
)
{
const
{
redirect
,
path
}
=
item
console
.
log
(
redirect
,
'
redirect
'
)
if
(
redirect
)
{
this
.
$router
.
push
(
redirect
)
return
}
console
.
log
(
this
.
pathCompile
(
path
))
this
.
$router
.
push
(
this
.
pathCompile
(
path
))
}
}
...
...
linkwe-ui/src/views/customerManage/dimission/allocatedStaffDetail.vue
浏览文件 @
5b587766
<
script
>
import
{
getAllocateCustomers
}
from
'
@/api/customer/dimission
'
import
AllocatedStaffDetailList
from
'
./allocatedStaffDetailList
'
export
default
{
...
...
@@ -8,18 +7,8 @@ export default {
props
:
{},
data
()
{
return
{
// 查询参数
query
:
{
pageNum
:
1
,
pageSize
:
10
,
handoverUserId
:
undefined
,
beginTime
:
undefined
,
endTime
:
undefined
,
},
loading
:
false
,
total
:
0
,
list
:
[],
dateRange
:
[],
// 离职日期
active
:
'
customer
'
,
dateRange
:
[]
// 离职日期
}
},
watch
:
{},
...
...
@@ -28,13 +17,14 @@ export default {
mounted
()
{},
methods
:
{
getList
()
{
this
.
$refs
.
AllocatedStaffDetailList
.
getList
(
1
)
this
.
$refs
[
this
.
active
]
.
getList
(
1
)
},
resetForm
(
formName
)
{
this
.
dateRange
=
[]
this
.
$refs
[
'
queryForm
'
].
resetFields
()
},
},
this
.
getList
()
}
}
}
</
script
>
...
...
@@ -43,14 +33,14 @@ export default {
<el-form
ref=
"queryForm"
:inline=
"true"
:model=
"query"
label-width=
"100px"
label-width=
"70px"
class=
"top-search"
>
<el-form-item
label=
"离职日期"
>
<el-date-picker
v-model=
"dateRange"
type=
"daterange"
value-format=
"yyyy-MM-dd"
:picker-options=
"pickerOptions"
range-separator=
"至"
start-placeholder=
"开始日期"
...
...
@@ -74,17 +64,18 @@ export default {
</el-form-item>
</el-form>
<el-tabs
v
alue=
"first"
type=
"card
"
>
<el-tab-pane
label=
"已分配客户"
name=
"
first
"
>
<el-tabs
v
-model=
"active
"
>
<el-tab-pane
label=
"已分配客户"
name=
"
customer
"
>
<AllocatedStaffDetailList
ref=
"
AllocatedStaffDetailList
"
ref=
"
customer
"
:dateRange=
"dateRange"
></AllocatedStaffDetailList>
</el-tab-pane>
<el-tab-pane
label=
"已分配群聊"
name=
"
second
"
>
<el-tab-pane
label=
"已分配群聊"
name=
"
group
"
>
<AllocatedStaffDetailList
ref=
"
AllocatedStaffDetailList
"
ref=
"
group
"
:dateRange=
"dateRange"
type=
"group"
></AllocatedStaffDetailList>
</el-tab-pane>
</el-tabs>
...
...
linkwe-ui/src/views/customerManage/dimission/allocatedStaffDetailList.vue
浏览文件 @
5b587766
<
script
>
import
{
getAllocateCustomers
}
from
'
@/api/customer/dimission
'
import
{
getAllocateCustomers
,
getAllocateGroups
}
from
'
@/api/customer/dimission
'
export
default
{
name
:
'
AllocatedStaffDetailList
'
,
...
...
@@ -8,6 +11,10 @@ export default {
dateRange
:
{
type
:
Array
,
default
:
()
=>
[]
},
type
:
{
type
:
String
,
default
:
'
customer
'
}
},
data
()
{
...
...
@@ -17,6 +24,7 @@ export default {
pageNum
:
1
,
pageSize
:
10
,
handoverUserId
:
undefined
,
oldOwner
:
undefined
,
beginTime
:
undefined
,
endTime
:
undefined
},
...
...
@@ -29,6 +37,7 @@ export default {
computed
:
{},
created
()
{
this
.
query
.
handoverUserId
=
this
.
$route
.
query
.
userId
this
.
query
.
oldOwner
=
this
.
$route
.
query
.
userId
this
.
getList
()
},
mounted
()
{},
...
...
@@ -41,7 +50,9 @@ export default {
}
page
&&
(
this
.
query
.
pageNum
=
page
)
this
.
loading
=
true
getAllocateCustomers
(
this
.
query
)
;(
this
.
type
===
'
customer
'
?
getAllocateCustomers
:
getAllocateGroups
)(
this
.
query
)
.
then
(({
rows
,
total
})
=>
{
this
.
list
=
rows
this
.
total
=
+
total
...
...
@@ -63,8 +74,16 @@ export default {
tooltip-effect=
"dark"
style=
"width: 100%"
>
<el-table-column
prop=
"customerName"
label=
"客户名称"
></el-table-column>
<el-table-column
prop=
"takeUserName"
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
:prop=
"type === 'customer' ? 'takeUserName' : 'newOwnerName'"
label=
"接替员工"
></el-table-column>
<el-table-column
prop=
"department"
label=
"接替员工所属部门"
...
...
linkwe-ui/src/views/customerManage/dimission/index.vue
浏览文件 @
5b587766
...
...
@@ -80,6 +80,7 @@ export default {
this
.
dialogVisibleSelectUser
=
true
return
}
let
loading
=
this
.
$loading
()
api
.
allocate
({
handoverUserid
:
this
.
currentRow
.
userId
,
...
...
@@ -87,6 +88,10 @@ export default {
})
.
then
(()
=>
{
this
.
msgSuccess
(
'
操作成功
'
)
loading
.
close
()
})
.
catch
(()
=>
{
loading
.
close
()
})
},
// 选中数据
...
...
@@ -157,6 +162,7 @@ export default {
</div>
<el-table
v-loading=
"loading"
ref=
"multipleTable"
:data=
"list"
tooltip-effect=
"dark"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录