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 10a519c8
authored
Mar 10, 2021
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
--no commit message
1 parent
229ec9e4
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
62 additions
and
35 deletions
linkwe-ui/src/api/communityOperating/newCustomer.js
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 @
10a519c
...
@@ -112,7 +112,7 @@ export function update(data) {
...
@@ -112,7 +112,7 @@ export function update(data) {
*/
*/
export
function
remove
(
ids
)
{
export
function
remove
(
ids
)
{
return
request
({
return
request
({
url
:
service
+
'/delete'
+
ids
,
url
:
service
+
'/delete
/
'
+
ids
,
method
:
'DELETE'
,
method
:
'DELETE'
,
})
})
}
}
...
...
linkwe-ui/src/views/communityOperating/newCustomer/aev.vue
View file @
10a519c
...
@@ -76,7 +76,7 @@ export default {
...
@@ -76,7 +76,7 @@ export default {
},
},
// 选择人员变化事件
// 选择人员变化事件
selectedUser
(
users
)
{
selectedUser
(
users
)
{
debugger
//
debugger
this
.
form
.
weEmpleCodeUseScops
=
users
.
map
((
d
)
=>
{
this
.
form
.
weEmpleCodeUseScops
=
users
.
map
((
d
)
=>
{
return
{
return
{
businessId
:
d
.
id
||
d
.
userId
,
businessId
:
d
.
id
||
d
.
userId
,
...
@@ -112,7 +112,7 @@ export default {
...
@@ -112,7 +112,7 @@ export default {
this
.
$refs
.
form
.
validate
((
valid
)
=>
{
this
.
$refs
.
form
.
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
this
.
loading
=
true
this
.
loading
=
true
;(
this
.
form
.
id
?
update
:
add
)({
WeCommunityNewGroupDto
:
this
.
form
}
)
;(
this
.
form
.
newGroupId
?
update
:
add
)(
this
.
form
)
.
then
(({
data
})
=>
{
.
then
(({
data
})
=>
{
this
.
msgSuccess
(
'操作成功'
)
this
.
msgSuccess
(
'操作成功'
)
this
.
loading
=
false
this
.
loading
=
false
...
...
linkwe-ui/src/views/communityOperating/newCustomer/list.vue
View file @
10a519c
...
@@ -96,8 +96,8 @@ export default {
...
@@ -96,8 +96,8 @@ export default {
})
})
.
catch
(
function
()
{})
.
catch
(
function
()
{})
},
},
download
(
id
,
userName
,
empleCodeName
)
{
download
(
data
)
{
let
name
=
userName
+
'-'
+
empleCodeName
+
'.png'
let
name
=
data
.
activityScene
+
'-'
+
data
.
newGroupId
+
'.png'
download
(
id
).
then
((
res
)
=>
{
download
(
id
).
then
((
res
)
=>
{
if
(
res
!=
null
)
{
if
(
res
!=
null
)
{
let
blob
=
new
Blob
([
res
],
{
type
:
'application/zip'
})
let
blob
=
new
Blob
([
res
],
{
type
:
'application/zip'
})
...
@@ -196,8 +196,17 @@ export default {
...
@@ -196,8 +196,17 @@ export default {
<div
class=
"fxbw mb10 aic"
>
<div
class=
"fxbw mb10 aic"
>
<div
class=
"total"
>
<div
class=
"total"
>
<el-button
type=
"primary"
@
click=
"goRoute()"
>
新建自动拉群
</el-button>
<el-button
type=
"primary"
@
click=
"goRoute()"
>
新建自动拉群
</el-button>
<!-- 新客自动拉群
<!-- 新客自动拉群 -->
客户通过员工活码添加员工,自动发送入群引导语、群活码,客户扫码入群。 -->
<el-tooltip
effect=
"light"
content=
"客户通过员工活码添加员工,自动发送入群引导语、群活码,客户扫码入群。"
placement=
"top-start"
>
<i
class=
"el-icon-question"
style=
"font-size: 26px;vertical-align: middle; margin-left: 10px;"
></i>
</el-tooltip>
</div>
</div>
<div>
<div>
<el-button
type=
"primary"
@
click=
"download()"
>
批量下载
</el-button>
<el-button
type=
"primary"
@
click=
"download()"
>
批量下载
</el-button>
...
@@ -218,45 +227,69 @@ export default {
...
@@ -218,45 +227,69 @@ 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=
"createTime"
label=
"活码名称"
align=
"center"
>
<el-table-column
prop=
"activityScene"
label=
"活码名称"
align=
"center"
>
</el-table-column>
<el-table-column
label=
"员工活码"
align=
"center"
prop=
"qrCode"
>
<
template
slot-scope=
"{ row }"
>
<el-image
v-if=
"row.qrCode"
:src=
"row.qrCode"
class=
"code-image"
>
</el-image>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
label=
"员工活码"
prop=
"weEmpleCodeUseScops"
label=
"使用员工"
align=
"center"
align=
"center"
prop=
"name"
:show-overflow-tooltip=
"true"
:show-overflow-tooltip=
"true"
/>
>
<el-table-column
prop=
"createTime"
label=
"活动名称"
align=
"center"
>
<
template
slot-scope=
"{ row }"
>
<
template
slot-scope=
"scope"
>
{{
<el-tag
Math
.
floor
(
Math
.
random
()
*
10000
)
size=
"medium"
}}
</
template
>
type=
"info"
</el-table-column>
v-for=
"(item, index) in row.weEmpleCodeUseScops"
<el-table-column
prop=
"createTime"
label=
"使用员工"
align=
"center"
>
:key=
"index"
已结束
>
{{
item
.
businessName
}}
</el-tag
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
label=
"客户标签"
label=
"客户标签"
align=
"center"
align=
"center"
prop=
"createTime"
width=
"160"
width=
"160"
></el-table-column>
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"{ row }"
>
<el-tag
size=
"medium"
type=
"info"
v-for=
"(item, index) in row.weEmpleCodeTags"
:key=
"index"
>
{{
item
.
tagName
}}
</el-tag
>
</
template
>
</el-table-column>
<el-table-column
<el-table-column
label=
"实际群聊"
label=
"实际群聊"
align=
"center"
align=
"center"
prop=
"createTime"
:show-overflow-tooltip=
"true"
width=
"160"
>
></el-table-column>
<
template
slot-scope=
"{ row }"
>
<el-tag
size=
"medium"
v-for=
"(item, index) in row.weGroupUserScops"
:key=
"index"
>
{{
item
.
chatGroupName
}}
</el-tag
>
</
template
>
</el-table-column>
<el-table-column
<el-table-column
label=
"添加好友数"
label=
"添加好友数"
align=
"center"
align=
"center"
prop=
"createTime"
prop=
"joinFriendNums"
width=
"160"
></el-table-column>
></el-table-column>
<el-table-column
<el-table-column
label=
"创建人"
label=
"创建人"
align=
"center"
align=
"center"
prop=
"createTime"
prop=
"createBy"
width=
"160"
></el-table-column>
></el-table-column>
<el-table-column
<el-table-column
label=
"创建时间"
label=
"创建时间"
...
@@ -273,26 +306,20 @@ export default {
...
@@ -273,26 +306,20 @@ export default {
<
template
slot-scope=
"{ row }"
>
<
template
slot-scope=
"{ row }"
>
<el-button
<el-button
v-hasPermi=
"['enterpriseWechat:edit']"
v-hasPermi=
"['enterpriseWechat:edit']"
size=
"mini"
type=
"text"
type=
"text"
icon=
"el-icon-edit"
@
click=
"goRoute(row.newGroupId)"
@
click=
"goRoute(row.id)"
>
编辑
</el-button
>
编辑
</el-button
>
>
<el-button
<el-button
v-hasPermi=
"['enterpriseWechat:view']"
v-hasPermi=
"['enterpriseWechat:view']"
size=
"mini"
type=
"text"
type=
"text"
icon=
"el-icon-view"
@
click=
"download(row)"
@
click=
"download(row)"
>
下载
</el-button
>
下载
</el-button
>
>
<el-button
<el-button
v-hasPermi=
"['enterpriseWechat:edit']"
v-hasPermi=
"['enterpriseWechat:edit']"
size=
"mini"
type=
"text"
type=
"text"
icon=
"el-icon-edit"
@
click=
"remove(row.newGroupId)"
@
click=
"remove(row.id)"
>
删除
</el-button
>
删除
</el-button
>
>
</
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