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 ad10ea0c
authored
Nov 18, 2020
by
xinlaa
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
员工活码接口对接中
1 parent
300429e3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
83 additions
and
15 deletions
linkwe-ui/src/api/drainageCode/staff.js
linkwe-ui/src/components/SelectTag.vue
linkwe-ui/src/components/SelectUser.vue
linkwe-ui/src/views/drainageCode/staff/add.vue
linkwe-ui/src/views/drainageCode/staff/list.vue
linkwe-ui/src/api/drainageCode/staff.js
View file @
ad10ea0
import
request
from
'@/utils/request'
import
request
from
'@/utils/request'
const
service
=
window
.
CONFIG
.
services
.
wecom
+
'/
user
'
const
service
=
window
.
CONFIG
.
services
.
wecom
+
'/
code
'
/**
/**
* 获取
离职未分配员工
列表
* 获取
员工活码
列表
* @param {*} params
* @param {*} params
* {
{
* pageNum:
"pageNum": "当前页",
pageSize:
"pageSize": "每页显示条数",
userName:离职人员名称
"useUserName": "使用员工姓名",
beginTime:}
"mobile": "使用员工手机号",
"activityScene": "活动场景",
"createBy": "createBy",
"beginTime": "开始时间",
"endTime": "结束时间"
}
*/
*/
export
function
getList
(
params
)
{
export
function
getList
(
params
)
{
return
request
({
return
request
({
url
:
service
+
'/l
eaveUserNoAllocateL
ist'
,
url
:
service
+
'/list'
,
params
,
params
,
})
})
}
}
/**
/**
* 分配离职员工数据
* 根据id获取员工活码详情
* @param {*} params
*/
export
function
getDetail
(
id
)
{
return
request
({
url
:
service
+
'/'
+
id
,
})
}
/**
* 编辑员工活码
* @param {*} data
* @param {*} data
{
{
"handoverUserid": "原跟进成员的userid",
"id": "员工活码id",
"takeoverUserid": "接替成员的userid"
"isJoinConfirmFriends": "客户添加时无需经过确认自动成为好友",
"codeType": "活码类型:1:单人;2:多人;3:批量;",
"activityScene": "活动场景",
"welcomeMsg": "欢迎语",
"mediaId": "素材的id",
"weEmpleCodeUseScops": [{
"id": "主键",
"empleCodeId": "员工活码id",
"useUserId": "活码类型下业务使用人的id"
}],
"weEmpleCodeTags": [{
"id": "",
"tagId": "标签id",
"tagName": "标签",
"empleCodeId": "员工活码id"
}]
}
}
*/
*/
export
function
alloc
ate
(
data
)
{
export
function
upd
ate
(
data
)
{
return
request
({
return
request
({
url
:
service
+
'/
allocateLeaveUserAboutData
'
,
url
:
service
+
'/
update
'
,
method
:
'put'
,
method
:
'put'
,
data
,
data
,
})
})
}
}
/**
* 新增员工活码
* @param {*} data
{
"codeType": "活码类型:1:单人;2:多人;3:批量;",
"isJoinConfirmFriends": "客户添加时无需经过确认自动成为好友:1:是;0:否",
"activityScene": "活动场景",
"welcomeMsg": "欢迎语",
"weEmpleCodeUseScops": [{
"businessId": "使用人员id或者组织架构id",
"businessName": "使用名称",
"businessIdType": "业务id类型1:组织机构id,2:成员id"
}],
"weEmpleCodeTags": [{
"tagId": "标签id",
"tagName": "标签"
}]
}
*/
export
function
add
(
data
)
{
return
request
({
url
:
service
+
'/add'
,
method
:
'post'
,
data
,
})
}
/**
* 根据id获取员工活码详情
* @param {*} params
*/
export
function
remove
(
id
)
{
return
request
({
url
:
service
+
'/delete'
+
id
,
method
:
'delete'
,
})
}
linkwe-ui/src/components/SelectTag.vue
View file @
ad10ea0
...
@@ -12,7 +12,7 @@ export default {
...
@@ -12,7 +12,7 @@ export default {
},
},
title
:
{
title
:
{
type
:
String
,
type
:
String
,
default
:
'选择
成员
'
,
default
:
'选择
标签
'
,
},
},
selected
:
{
selected
:
{
type
:
Array
,
type
:
Array
,
...
...
linkwe-ui/src/components/SelectUser.vue
View file @
ad10ea0
...
@@ -12,7 +12,7 @@ export default {
...
@@ -12,7 +12,7 @@ export default {
},
},
title
:
{
title
:
{
type
:
String
,
type
:
String
,
default
:
'
选择成员
'
,
default
:
'
组织架构
'
,
},
},
// 是否 只选择叶子节点(人员节点)/禁止选择父节点(部门节点)
// 是否 只选择叶子节点(人员节点)/禁止选择父节点(部门节点)
isOnlyLeaf
:
{
isOnlyLeaf
:
{
...
...
linkwe-ui/src/views/drainageCode/staff/add.vue
View file @
ad10ea0
This diff is collapsed.
Click to expand it.
linkwe-ui/src/views/drainageCode/staff/list.vue
View file @
ad10ea0
This diff is collapsed.
Click to expand it.
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