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 7d7ac476
authored
Apr 15, 2021
by
jzou
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
'新客修改'
1 parent
a2d0b469
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
254 additions
and
246 deletions
linkwe-ui/src/api/communityOperating/newCustomer.js
linkwe-ui/src/views/communityOperating/groupSOP/aev.vue
linkwe-ui/src/views/communityOperating/newCustomer/aev.vue
linkwe-ui/src/views/communityOperating/newCustomer/list.vue
linkwe-ui/src/api/communityOperating/newCustomer.js
View file @
7d7ac47
...
@@ -30,37 +30,17 @@ export function getDetail(id) {
...
@@ -30,37 +30,17 @@ export function getDetail(id) {
* 新增新客自动拉群
* 新增新客自动拉群
* @param {Object} data
* @param {Object} data
{
{
"activityScene": "string",
"codeName": "string",
"groupCodeId": 0,
"groupCodeId": 'string',
"isJoinConfirmFriends": true,
"skipVerify": true,
"mediaId": 0,
"tagList": [],
"qrCode": "string",
"emplList": [],
"weEmpleCodeTags": [
{
"delFlag": 0,
"empleCodeId": 0,
"id": 0,
"tagId": "string",
"tagName": "string"
}
],
"weEmpleCodeUseScops": [
{
"businessId": "string",
"businessIdType": 0,
"businessName": "string",
"delFlag": 0,
"empleCodeId": 0,
"id": 0,
"mobile": "string"
}
],
"welcomeMsg": "string"
"welcomeMsg": "string"
}
}
*/
*/
export
function
add
(
data
)
{
export
function
add
(
data
)
{
return
request
({
return
request
({
url
:
service
+
'/
add
'
,
url
:
service
+
'/'
,
method
:
'post'
,
method
:
'post'
,
data
,
data
,
})
})
...
@@ -70,37 +50,17 @@ export function add(data) {
...
@@ -70,37 +50,17 @@ export function add(data) {
* 修改新客自动拉群
* 修改新客自动拉群
* @param {*} data
* @param {*} data
{
{
"activityScene": "string",
"codeName": "string",
"groupCodeId": 0,
"groupCodeId": 'string',
"isJoinConfirmFriends": true,
"skipVerify": true,
"mediaId": 0,
"tagList": [],
"qrCode": "string",
"emplList": [],
"weEmpleCodeTags": [
{
"delFlag": 0,
"empleCodeId": 0,
"id": 0,
"tagId": "string",
"tagName": "string"
}
],
"weEmpleCodeUseScops": [
{
"businessId": "string",
"businessIdType": 0,
"businessName": "string",
"delFlag": 0,
"empleCodeId": 0,
"id": 0,
"mobile": "string"
}
],
"welcomeMsg": "string"
"welcomeMsg": "string"
}
}
*/
*/
export
function
update
(
data
)
{
export
function
update
(
id
,
data
)
{
return
request
({
return
request
({
url
:
service
+
'/
update'
,
url
:
service
+
'/
'
+
id
,
method
:
'put'
,
method
:
'put'
,
data
,
data
,
})
})
...
@@ -112,7 +72,7 @@ export function update(data) {
...
@@ -112,7 +72,7 @@ export function update(data) {
*/
*/
export
function
remove
(
ids
)
{
export
function
remove
(
ids
)
{
return
request
({
return
request
({
url
:
service
+
'/
delete/
'
+
ids
,
url
:
service
+
'/'
+
ids
,
method
:
'DELETE'
,
method
:
'DELETE'
,
})
})
}
}
...
...
linkwe-ui/src/views/communityOperating/groupSOP/aev.vue
View file @
7d7ac47
...
@@ -258,11 +258,14 @@ export default {
...
@@ -258,11 +258,14 @@ export default {
getDetail
(
id
)
{
getDetail
(
id
)
{
this
.
loading
=
true
this
.
loading
=
true
getDetail
(
id
).
then
(({
data
})
=>
{
getDetail
(
id
).
then
(({
data
})
=>
{
this
.
form
=
data
this
.
dateRange
=
[
this
.
form
.
startExeTime
,
this
.
form
.
stopExeTime
]
this
.
dateRange
=
[
this
.
form
.
startExeTime
,
this
.
form
.
stopExeTime
]
this
.
customerGroups
=
data
.
groupList
this
.
customerGroups
=
data
.
groupList
this
.
form
.
ruleName
=
data
.
ruleName
||
''
this
.
form
.
title
=
data
.
title
||
''
this
.
form
.
content
=
data
.
content
||
''
this
.
form
.
picList
=
data
.
picList
||
[]
this
.
form
.
materialIdList
=
[]
this
.
form
.
materialIdList
=
[]
for
(
let
material
of
data
.
materialList
)
{
for
(
let
material
of
data
.
materialList
)
{
...
...
linkwe-ui/src/views/communityOperating/newCustomer/aev.vue
View file @
7d7ac47
<
script
>
import
{
getDetail
,
add
,
update
}
from
'@/api/communityOperating/newCustomer'
// import { getList } from '@/api/drainageCode/welcome'
import
PhoneDialog
from
'@/components/PhoneDialog'
import
SelectUser
from
'@/components/SelectUser'
import
SelectTag
from
'@/components/SelectTag'
import
SelectQrCode
from
'@/components/SelectQrCode'
export
default
{
components
:
{
PhoneDialog
,
SelectTag
,
SelectUser
,
SelectQrCode
},
data
()
{
return
{
dialogVisibleSelectUser
:
false
,
dialogVisibleSelectTag
:
false
,
dialogVisibleSelectQrCode
:
false
,
// 遮罩层
loading
:
false
,
// 表单参数
form
:
{
activityScene
:
''
,
groupCodeId
:
undefined
,
isJoinConfirmFriends
:
0
,
// mediaId: 0,
qrCode
:
''
,
weEmpleCodeTags
:
[
// {
// delFlag: 0,
// empleCodeId: 0,
// id: 0,
// tagId: 'string',
// tagName: 'string',
// },
],
weEmpleCodeUseScops
:
[
// {
// businessId: 'string',
// businessIdType: 0,
// businessName: 'string',
// delFlag: 0,
// empleCodeId: 0,
// id: 0,
// mobile: 'string',
// },
],
welcomeMsg
:
''
,
},
rules
:
Object
.
freeze
({
activityScene
:
[{
required
:
true
,
message
:
'必填项'
,
trigger
:
'blur'
}],
weEmpleCodeUseScops
:
[
{
required
:
true
,
message
:
'必填项'
,
trigger
:
'change'
},
],
welcomeMsg
:
[{
required
:
true
,
message
:
'必填项'
,
trigger
:
'blur'
}],
qrCode
:
[{
required
:
true
,
message
:
'必填项'
,
trigger
:
'change'
}],
}),
materialSelected
:
''
,
}
},
created
()
{
let
id
=
this
.
$route
.
query
.
id
id
&&
this
.
getDetail
(
id
)
this
.
$route
.
meta
.
title
=
(
id
?
'编辑'
:
'新建'
)
+
'新客自动拉群'
},
methods
:
{
/** 获取详情 */
getDetail
(
id
)
{
this
.
loading
=
true
getDetail
(
id
).
then
(({
data
})
=>
{
this
.
form
=
data
this
.
materialSelected
=
data
.
weMaterial
==
null
?
''
:
data
.
weMaterial
.
materialUrl
this
.
loading
=
false
})
},
codeTypeChange
()
{
this
.
form
.
weEmpleCodeUseScops
=
[]
this
.
form
.
qrCode
=
''
},
// 选择人员变化事件
selectedUser
(
users
)
{
// debugger
this
.
form
.
weEmpleCodeUseScops
=
users
.
map
((
d
)
=>
{
return
{
businessId
:
d
.
id
||
d
.
userId
,
businessName
:
d
.
name
,
businessIdType
:
d
.
userId
?
2
:
1
,
mobile
:
d
.
mobile
,
empleCodeId
:
d
.
empleCodeId
,
}
})
},
submitSelectTag
(
data
)
{
this
.
form
.
weEmpleCodeTags
=
data
.
map
((
d
)
=>
({
tagId
:
d
.
tagId
,
tagName
:
d
.
name
,
}))
},
// 选择二维码确认按钮
submitSelectQrCode
(
data
)
{
// debugger
this
.
form
.
groupCodeId
=
data
.
id
this
.
form
.
qrCode
=
data
.
codeUrl
this
.
$refs
.
form
.
validateField
(
'qrCode'
)
},
removeMaterial
()
{
this
.
form
.
mediaId
=
''
this
.
materialSelected
=
''
},
submit
()
{
if
(
!
this
.
form
.
weEmpleCodeUseScops
.
length
)
{
this
.
msgError
(
'请至少选择一名使用员工'
)
return
}
this
.
$refs
.
form
.
validate
((
valid
)
=>
{
if
(
valid
)
{
this
.
loading
=
true
;(
this
.
form
.
newGroupId
?
update
:
add
)(
this
.
form
)
.
then
(({
data
})
=>
{
this
.
msgSuccess
(
'操作成功'
)
this
.
loading
=
false
this
.
$router
.
back
()
})
.
catch
(()
=>
{
this
.
loading
=
false
})
}
})
},
},
}
</
script
>
<
template
>
<
template
>
<div
class=
"wrap"
v-loading=
"loading"
>
<div
class=
"wrap"
v-loading=
"loading"
>
<el-form
:model=
"form"
ref=
"form"
:rules=
"rules"
label-width=
"100px"
>
<el-form
:model=
"form"
ref=
"form"
:rules=
"rules"
label-width=
"100px"
>
<el-form-item
label=
"活码名称"
prop=
"
activityScen
e"
>
<el-form-item
label=
"活码名称"
prop=
"
codeNam
e"
>
<el-input
<el-input
v-model=
"form.
activityScen
e"
v-model=
"form.
codeNam
e"
maxlength=
"30"
maxlength=
"30"
show-word-limit
show-word-limit
placeholder=
"请输入"
placeholder=
"请输入"
clearable
clearable
/>
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"使用员工"
prop=
"
weEmpleCodeUseScop
s"
>
<el-form-item
label=
"使用员工"
prop=
"
user
s"
>
<!-- closable -->
<!-- closable -->
<el-tag
<el-tag
size=
"medium"
size=
"medium"
v-for=
"(
item, index) in form.weEmpleCodeUseScop
s"
v-for=
"(
user, index) in user
s"
:key=
"index"
:key=
"index"
>
{{
item
.
businessName
}}
</el-tag
>
{{
user
.
businessName
}}
</el-tag
>
>
<el-button
<el-button
type=
"primary"
type=
"primary"
...
@@ -154,7 +25,7 @@ export default {
...
@@ -154,7 +25,7 @@ export default {
icon=
"el-icon-plus"
icon=
"el-icon-plus"
size=
"mini"
size=
"mini"
@
click=
"dialogVisibleSelectUser = true"
@
click=
"dialogVisibleSelectUser = true"
>
{{
form
.
weEmpleCodeUseScop
s
.
length
?
'修改'
:
'添加'
}}
</el-button
>
{{
user
s
.
length
?
'修改'
:
'添加'
}}
</el-button
>
>
</el-form-item>
</el-form-item>
...
@@ -169,8 +40,8 @@ export default {
...
@@ -169,8 +40,8 @@ export default {
clearable
clearable
/>
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"选择群活码"
prop=
"qrCode"
>
<el-form-item
label=
"选择群活码"
>
<el-image
v-if=
"
form.qrCode"
:src=
"form.qrCode
"
class=
"code-image"
>
<el-image
v-if=
"
groupQrCode && groupQrCode.codeUrl"
:src=
"groupQrCode.codeUrl
"
class=
"code-image"
>
</el-image>
</el-image>
<el-button
<el-button
...
@@ -180,16 +51,16 @@ export default {
...
@@ -180,16 +51,16 @@ export default {
icon=
"el-icon-plus"
icon=
"el-icon-plus"
size=
"mini"
size=
"mini"
@
click=
"dialogVisibleSelectQrCode = true"
@
click=
"dialogVisibleSelectQrCode = true"
>
{{
form
.
qrCode
?
'修改'
:
'选择'
}}
</el-button
>
{{
groupQrCode
&&
groupQrCode
.
codeUrl
?
'修改'
:
'选择'
}}
</el-button
>
>
</el-form-item>
</el-form-item>
<el-form-item
label=
"新客户标签"
prop=
"
weEmpleCodeT
ags"
>
<el-form-item
label=
"新客户标签"
prop=
"
t
ags"
>
<!-- closable -->
<!-- closable -->
<el-tag
<el-tag
size=
"medium"
size=
"medium"
v-for=
"(
item, index) in form.weEmpleCodeT
ags"
v-for=
"(
tag, index) in t
ags"
:key=
"index"
:key=
"index"
>
{{
item
.
tagName
}}
</el-tag
>
{{
tag
.
tagName
}}
</el-tag
>
>
<el-button
<el-button
type=
"primary"
type=
"primary"
...
@@ -204,11 +75,11 @@ export default {
...
@@ -204,11 +75,11 @@ export default {
根据使用场景做标签记录,扫码添加的客户,可自动打上标签
根据使用场景做标签记录,扫码添加的客户,可自动打上标签
</div>
-->
</div>
-->
</el-form-item>
</el-form-item>
<el-form-item
label=
"添加设置"
prop=
"
isJoinConfirmFriends
"
>
<el-form-item
label=
"添加设置"
prop=
"
skipVerify
"
>
<el-checkbox
<el-checkbox
:true-label=
"1"
:true-label=
"1"
:false-label=
"0"
:false-label=
"0"
v-model=
"form.
isJoinConfirmFriends
"
v-model=
"form.
skipVerify
"
>
客户添加时无需经过确认自动成为好友
</el-checkbox
>
客户添加时无需经过确认自动成为好友
</el-checkbox
>
>
</el-form-item>
</el-form-item>
...
@@ -224,9 +95,9 @@ export default {
...
@@ -224,9 +95,9 @@ export default {
<PhoneDialog
<PhoneDialog
:message=
"form.welcomeMsg || '请输入加群引导语'"
:message=
"form.welcomeMsg || '请输入加群引导语'"
:isOther=
"
!!materialSelected
"
:isOther=
"
(groupQrCode && groupQrCode.codeUrl) ? true : false
"
>
>
<el-image
style=
"border-radius: 6px;
"
:src=
"materialSelected
"
fit=
"fit"
>
<el-image
style=
"border-radius: 6px;
width: 100px;"
:src=
"groupQrCode.codeUrl
"
fit=
"fit"
>
</el-image>
</el-image>
</PhoneDialog>
</PhoneDialog>
</div>
</div>
...
@@ -238,13 +109,13 @@ export default {
...
@@ -238,13 +109,13 @@ export default {
title=
"选择使用员工"
title=
"选择使用员工"
:isOnlyLeaf=
"form.codeType !== 2"
:isOnlyLeaf=
"form.codeType !== 2"
:isSigleSelect=
"form.codeType == 1"
:isSigleSelect=
"form.codeType == 1"
@
success=
"s
elected
User"
@
success=
"s
ubmitSelect
User"
></SelectUser>
></SelectUser>
<!-- 选择标签弹窗 -->
<!-- 选择标签弹窗 -->
<SelectTag
<SelectTag
:visible
.
sync=
"dialogVisibleSelectTag"
:visible
.
sync=
"dialogVisibleSelectTag"
:selected=
"
form.toTag
"
:selected=
"
tags
"
@
success=
"submitSelectTag"
@
success=
"submitSelectTag"
>
>
</SelectTag>
</SelectTag>
...
@@ -253,10 +124,155 @@ export default {
...
@@ -253,10 +124,155 @@ export default {
<SelectQrCode
<SelectQrCode
:visible
.
sync=
"dialogVisibleSelectQrCode"
:visible
.
sync=
"dialogVisibleSelectQrCode"
@
success=
"submitSelectQrCode"
@
success=
"submitSelectQrCode"
:selected=
"codes"
>
>
</SelectQrCode>
</SelectQrCode>
</div>
</div>
</
template
>
</
template
>
<
script
>
import
{
getDetail
,
add
,
update
}
from
'@/api/communityOperating/newCustomer'
import
PhoneDialog
from
'@/components/PhoneDialog'
import
SelectUser
from
'@/components/SelectUser'
import
SelectTag
from
'@/components/SelectTag'
import
SelectQrCode
from
'@/components/SelectQrCode'
export
default
{
components
:
{
PhoneDialog
,
SelectTag
,
SelectUser
,
SelectQrCode
},
data
()
{
return
{
newGroupId
:
''
,
dialogVisibleSelectUser
:
false
,
dialogVisibleSelectTag
:
false
,
dialogVisibleSelectQrCode
:
false
,
// 遮罩层
loading
:
false
,
// 表单参数
form
:
{
codeName
:
''
,
groupCodeId
:
undefined
,
skipVerify
:
0
,
tagList
:
[],
emplList
:
[],
welcomeMsg
:
''
,
},
tags
:
[],
users
:
[],
codes
:
[],
groupQrCode
:
{},
rules
:
Object
.
freeze
({
codeName
:
[{
required
:
true
,
message
:
'必填项'
,
trigger
:
'blur'
}],
tagList
:
[
{
required
:
true
,
message
:
'必填项'
,
trigger
:
'change'
},
],
welcomeMsg
:
[{
required
:
true
,
message
:
'必填项'
,
trigger
:
'blur'
}]
})
}
},
methods
:
{
/** 获取详情 */
getDetail
(
id
)
{
this
.
loading
=
true
getDetail
(
id
).
then
(({
data
})
=>
{
this
.
form
.
codeName
=
data
.
codeName
this
.
form
.
skipVerify
=
data
.
skipVerify
this
.
form
.
welcomeMsg
=
data
.
welcomeMsg
this
.
form
.
groupCodeId
=
data
.
groupCodeInfo
.
id
this
.
codes
=
[
data
.
groupCodeInfo
]
this
.
groupQrCode
=
data
.
groupCodeInfo
this
.
tags
=
data
.
tagList
this
.
users
=
data
.
emplList
this
.
loading
=
false
})
},
// 选择人员变化事件
submitSelectUser
(
users
)
{
this
.
users
=
users
.
map
((
d
)
=>
{
return
{
businessId
:
d
.
id
||
d
.
userId
,
businessName
:
d
.
name
,
businessIdType
:
d
.
userId
?
2
:
1
,
mobile
:
d
.
mobile
,
empleCodeId
:
d
.
empleCodeId
}
})
},
submitSelectTag
(
tags
)
{
this
.
tags
=
tags
.
map
((
t
)
=>
{
return
{
tagId
:
t
.
tagId
,
tagName
:
t
.
name
}
})
},
// 选择二维码确认按钮
submitSelectQrCode
(
data
)
{
this
.
groupQrCode
=
data
this
.
form
.
groupCodeId
=
data
.
id
},
submit
()
{
if
(
!
this
.
users
.
length
)
{
this
.
msgError
(
'请至少选择一名使用员工'
)
return
}
if
(
!
this
.
form
.
groupCodeId
)
{
this
.
msgError
(
'请选择一个群活码'
)
return
}
this
.
$refs
.
form
.
validate
((
valid
)
=>
{
if
(
valid
)
{
this
.
loading
=
true
if
(
this
.
newGroupId
)
{
update
(
this
.
newGroupId
,
this
.
form
).
then
(()
=>
{
this
.
msgSuccess
(
'更新成功'
)
this
.
loading
=
false
this
.
$router
.
back
()
}).
catch
(()
=>
{
this
.
loading
=
false
})
}
else
{
add
(
this
.
form
).
then
(()
=>
{
this
.
msgSuccess
(
'添加成功'
)
this
.
loading
=
false
this
.
$router
.
back
()
}).
catch
(()
=>
{
this
.
loading
=
false
})
}
}
})
}
},
watch
:
{
tags
(
tags
)
{
this
.
form
.
tagList
=
tags
.
map
((
t
)
=>
t
.
tagId
)
},
users
(
users
)
{
this
.
form
.
emplList
=
users
.
map
((
u
)
=>
u
.
businessId
)
}
},
created
()
{
this
.
newGroupId
=
this
.
$route
.
query
.
id
this
.
newGroupId
&&
this
.
getDetail
(
this
.
newGroupId
)
this
.
$route
.
meta
.
title
=
(
this
.
newGroupId
?
'编辑'
:
'新建'
)
+
'新客自动拉群'
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.wrap
{
.wrap
{
display
:
flex
;
display
:
flex
;
...
...
linkwe-ui/src/views/communityOperating/newCustomer/list.vue
View file @
7d7ac47
...
@@ -14,7 +14,7 @@ export default {
...
@@ -14,7 +14,7 @@ export default {
query
:
{
query
:
{
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
10
,
pageSize
:
10
,
empl
e
CodeName
:
''
,
emplCodeName
:
''
,
createBy
:
''
,
createBy
:
''
,
beginTime
:
''
,
// "开始时间",
beginTime
:
''
,
// "开始时间",
endTime
:
''
,
// "结束时间"
endTime
:
''
,
// "结束时间"
...
@@ -35,7 +35,6 @@ export default {
...
@@ -35,7 +35,6 @@ export default {
ids
:
[],
ids
:
[],
}
}
},
},
watch
:
{},
computed
:
{},
computed
:
{},
created
()
{
created
()
{
this
.
getList
()
this
.
getList
()
...
@@ -45,22 +44,14 @@ export default {
...
@@ -45,22 +44,14 @@ export default {
},
},
methods
:
{
methods
:
{
getList
(
page
)
{
getList
(
page
)
{
if
(
this
.
dateRange
[
0
])
{
this
.
query
.
beginTime
=
this
.
dateRange
[
0
]
this
.
query
.
endTime
=
this
.
dateRange
[
1
]
}
else
{
this
.
query
.
beginTime
=
''
this
.
query
.
endTime
=
''
}
page
&&
(
this
.
query
.
pageNum
=
page
)
page
&&
(
this
.
query
.
pageNum
=
page
)
this
.
loading
=
true
this
.
loading
=
true
getList
(
this
.
query
)
.
then
(({
rows
,
total
})
=>
{
getList
(
this
.
query
)
.
then
(({
rows
,
total
})
=>
{
this
.
list
=
rows
this
.
list
=
rows
this
.
total
=
+
total
this
.
total
=
+
total
this
.
loading
=
false
this
.
loading
=
false
})
}).
catch
(()
=>
{
.
catch
(()
=>
{
this
.
loading
=
false
this
.
loading
=
false
})
})
},
},
...
@@ -77,7 +68,7 @@ export default {
...
@@ -77,7 +68,7 @@ export default {
},
},
// 多选框选中数据
// 多选框选中数据
handleSelectionChange
(
selection
)
{
handleSelectionChange
(
selection
)
{
this
.
ids
=
selection
.
map
((
item
)
=>
item
.
newGroupI
d
)
this
.
ids
=
selection
.
map
((
item
)
=>
item
.
i
d
)
},
},
/** 删除按钮操作 */
/** 删除按钮操作 */
remove
(
id
)
{
remove
(
id
)
{
...
@@ -97,8 +88,8 @@ export default {
...
@@ -97,8 +88,8 @@ export default {
.
catch
(
function
()
{})
.
catch
(
function
()
{})
},
},
download
(
data
)
{
download
(
data
)
{
let
name
=
data
.
activityScene
+
'-'
+
data
.
newGroupId
+
'.png'
let
name
=
data
.
codeName
+
'.png'
download
(
data
.
newGroupI
d
).
then
((
res
)
=>
{
download
(
data
.
i
d
).
then
((
res
)
=>
{
if
(
res
!=
null
)
{
if
(
res
!=
null
)
{
let
blob
=
new
Blob
([
res
],
{
type
:
'application/zip'
})
let
blob
=
new
Blob
([
res
],
{
type
:
'application/zip'
})
let
url
=
window
.
URL
.
createObjectURL
(
blob
)
let
url
=
window
.
URL
.
createObjectURL
(
blob
)
...
@@ -134,7 +125,27 @@ export default {
...
@@ -134,7 +125,27 @@ export default {
})
})
.
catch
(
function
()
{})
.
catch
(
function
()
{})
},
},
// 重置查询参数
resetQuery
()
{
this
.
dateRange
=
[]
this
.
$refs
[
'queryForm'
].
resetFields
()
this
.
getList
(
1
)
},
},
},
watch
:
{
// 日期选择器数据同步至查询参数
dateRange
(
dateRange
)
{
if
(
!
dateRange
||
dateRange
.
length
!==
2
)
{
this
.
query
.
beginTime
=
''
this
.
query
.
endTime
=
''
}
else
{
[
this
.
query
.
beginTime
,
this
.
query
.
endTime
]
=
dateRange
}
}
}
}
}
</
script
>
</
script
>
...
@@ -148,22 +159,11 @@ export default {
...
@@ -148,22 +159,11 @@ export default {
class=
"top-search"
class=
"top-search"
size=
"small"
size=
"small"
>
>
<el-form-item
label=
"活码名称"
>
<el-form-item
label=
"活码名称"
prop=
"emplCodeName"
>
<el-input
v-model=
"query.empl
e
CodeName"
placeholder=
"请输入"
></el-input>
<el-input
v-model=
"query.emplCodeName"
placeholder=
"请输入"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"创建人"
>
<el-form-item
label=
"创建人"
prop=
"createBy"
>
<el-input
v-model=
"query.createBy"
placeholder=
"请输入"
></el-input>
<el-input
v-model=
"query.createBy"
placeholder=
"请输入"
></el-input>
<!--
<div
class=
"tag-input"
@
click=
"dialogVisibleSelectUser = true"
>
<span
class=
"tag-place"
v-if=
"!queryUser.length"
>
请选择
</span>
<template
v-else
>
<el-tag
type=
"info"
v-for=
"(unit, unique) in queryUser"
:key=
"unique"
>
{{
unit
.
name
}}
</el-tag
>
</
template
>
</div>
-->
</el-form-item>
</el-form-item>
<el-form-item
label=
"创建时间"
>
<el-form-item
label=
"创建时间"
>
<el-date-picker
<el-date-picker
...
@@ -187,7 +187,7 @@ export default {
...
@@ -187,7 +187,7 @@ export default {
<el-button
<el-button
v-hasPermi=
"['customerManage:customer:query']"
v-hasPermi=
"['customerManage:customer:query']"
type=
"info"
type=
"info"
@
click=
"reset
Form
()"
@
click=
"reset
Query
()"
>
重置
</el-button
>
重置
</el-button
>
>
</el-form-item>
</el-form-item>
...
@@ -233,16 +233,33 @@ export default {
...
@@ -233,16 +233,33 @@ export default {
@
selection-change=
"handleSelectionChange"
@
selection-change=
"handleSelectionChange"
>
>
<el-table-column
type=
"selection"
width=
"50"
align=
"center"
/>
<el-table-column
type=
"selection"
width=
"50"
align=
"center"
/>
<el-table-column
prop=
"
activityScen
e"
label=
"活码名称"
align=
"center"
>
<el-table-column
prop=
"
codeNam
e"
label=
"活码名称"
align=
"center"
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"员工活码"
align=
"center"
prop=
"qrCode"
>
<el-table-column
label=
"员工活码"
align=
"center"
prop=
"qrCode"
width=
"130"
>
<
template
slot-scope=
"{ row }"
>
<template
#
default=
"
{ row }">
<el-image
v-if=
"row.qrCode"
:src=
"row.qrCode"
class=
"code-image"
>
<el-popover
placement=
"bottom"
trigger=
"hover"
>
<el-image
slot=
"reference"
:src=
"row.emplCodeUrl"
class=
"code-image--small"
></el-image>
<el-image
:src=
"row.emplCodeUrl"
class=
"code-image"
>
</el-image>
</el-image>
</el-popover>
</
template
>
</
template
>
<!-- <template slot-scope="{ row }">
<el-image v-if="row.emplCodeUrl" :src="row.emplCodeUrl" class="code-image">
</el-image>
</template> -->
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
prop=
"
weEmpleCodeUseScops
"
prop=
"
emplList
"
label=
"使用员工"
label=
"使用员工"
align=
"center"
align=
"center"
:show-overflow-tooltip=
"true"
:show-overflow-tooltip=
"true"
...
@@ -251,7 +268,7 @@ export default {
...
@@ -251,7 +268,7 @@ export default {
<el-tag
<el-tag
size=
"medium"
size=
"medium"
type=
"info"
type=
"info"
v-for=
"(item, index) in row.
weEmpleCodeUseScops
"
v-for=
"(item, index) in row.
emplList
"
:key=
"index"
:key=
"index"
>
{{
item
.
businessName
}}
</el-tag
>
{{
item
.
businessName
}}
</el-tag
>
>
...
@@ -267,7 +284,7 @@ export default {
...
@@ -267,7 +284,7 @@ export default {
<el-tag
<el-tag
size=
"medium"
size=
"medium"
type=
"info"
type=
"info"
v-for=
"(item, index) in row.
weEmpleCodeTags
"
v-for=
"(item, index) in row.
tagList
"
:key=
"index"
:key=
"index"
>
{{
item
.
tagName
}}
</el-tag
>
{{
item
.
tagName
}}
</el-tag
>
>
...
@@ -281,16 +298,16 @@ export default {
...
@@ -281,16 +298,16 @@ export default {
<
template
slot-scope=
"{ row }"
>
<
template
slot-scope=
"{ row }"
>
<el-tag
<el-tag
size=
"medium"
size=
"medium"
v-for=
"(item, index) in row.
weGroupUserScops
"
v-for=
"(item, index) in row.
groupList
"
:key=
"index"
:key=
"index"
>
{{
item
.
chatG
roupName
}}
</el-tag
>
{{
item
.
g
roupName
}}
</el-tag
>
>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
label=
"添加好友数"
label=
"添加好友数"
align=
"center"
align=
"center"
prop=
"
joinFriendNums
"
prop=
"
cusNumber
"
></el-table-column>
></el-table-column>
<el-table-column
<el-table-column
label=
"创建人"
label=
"创建人"
...
@@ -313,7 +330,7 @@ export default {
...
@@ -313,7 +330,7 @@ export default {
<el-button
<el-button
v-hasPermi=
"['enterpriseWechat:edit']"
v-hasPermi=
"['enterpriseWechat:edit']"
type=
"text"
type=
"text"
@
click=
"goRoute(row.
newGroupI
d)"
@
click=
"goRoute(row.
i
d)"
>
编辑
</el-button
>
编辑
</el-button
>
>
<el-button
<el-button
...
@@ -325,7 +342,7 @@ export default {
...
@@ -325,7 +342,7 @@ export default {
<el-button
<el-button
v-hasPermi=
"['enterpriseWechat:edit']"
v-hasPermi=
"['enterpriseWechat:edit']"
type=
"text"
type=
"text"
@
click=
"remove(row.
newGroupI
d)"
@
click=
"remove(row.
i
d)"
>
删除
</el-button
>
删除
</el-button
>
>
</
template
>
</
template
>
...
@@ -341,3 +358,15 @@ export default {
...
@@ -341,3 +358,15 @@ export default {
/>
/>
</div>
</div>
</template>
</template>
<
style
scoped
lang=
"scss"
>
.code-image
{
width
:
200px
;
height
:
200px
;
}
.code-image--small
{
width
:
50px
;
height
:
50px
;
}
</
style
>
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