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 19e8432b
authored
Aug 22, 2023
by
怪兽?别跑
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
无限建群字段
1 parent
09d3d0cf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
53 additions
and
41 deletions
vue3-lw-pc/src/views/drainageCode/group/list.vue
vue3-lw-pc/src/views/drainageCode/group/list.vue
View file @
19e8432
...
@@ -59,7 +59,7 @@
...
@@ -59,7 +59,7 @@
</el-popover>
</el-popover>
</template>
</template>
<
template
#
default=
"{ row }"
>
<
template
#
default=
"{ row }"
>
<a
style=
"color: var(--color); text-decoration: underline"
@
click=
"getDetail(row.id)"
>
<a
style=
"color: var(--color); text-decoration: underline
;
"
@
click=
"getDetail(row.id)"
>
{{
row
.
chatGroupNum
}}
{{
row
.
chatGroupNum
}}
</a>
</a>
</
template
>
</
template
>
...
@@ -112,14 +112,15 @@
...
@@ -112,14 +112,15 @@
@
click=
"
@
click=
"
$router.push(
{
$router.push(
{
path: 'analyse',
path: 'analyse',
query: { id: row.state, groupId: row.id }
,
query: { id: row.state, groupId: row.id }
})
})
">
"
>
统计
统计
</el-button>
</el-button>
<el-button
text
@
click=
"handleDownload(row.id, row.activityName)"
>
下载
</el-button>
<el-button
text
@
click=
"handleDownload(row.id, row.activityName)"
>
下载
</el-button>
<el-button
text
class=
"copy-btn"
:data-clipboard-text=
"row.codeUrl"
>
复制
</el-button>
<el-button
text
class=
"copy-btn"
:data-clipboard-text=
"row.codeUrl"
>
复制
</el-button>
<el-dropdown
style=
"margin-left: 10px"
>
<el-dropdown
style=
"margin-left: 10px
;
"
>
<el-button
text
>
<el-button
text
>
<el-icon-MoreFilled
class=
"el-icon-MoreFilled"
></el-icon-MoreFilled>
<el-icon-MoreFilled
class=
"el-icon-MoreFilled"
></el-icon-MoreFilled>
</el-button>
</el-button>
...
@@ -133,10 +134,11 @@
...
@@ -133,10 +134,11 @@
path: 'groupAdd',
path: 'groupAdd',
query: {
query: {
groupCodeId: row.id,
groupCodeId: row.id,
obj: encodeURIComponent(JSON.stringify(row))
,
obj: encodeURIComponent(JSON.stringify(row))
}
,
}
})
})
">
"
>
编辑
编辑
</el-button>
</el-button>
</el-dropdown-item>
</el-dropdown-item>
...
@@ -154,33 +156,42 @@
...
@@ -154,33 +156,42 @@
:total=
"total"
:total=
"total"
v-model:page=
"query.pageNum"
v-model:page=
"query.pageNum"
v-model:limit=
"query.pageSize"
v-model:limit=
"query.pageSize"
@
pagination=
"getGroupCodes"
/>
@
pagination=
"getGroupCodes"
/>
<el-dialog
v-if=
"realCodeDialog"
title=
"实际群码"
v-model=
"realCodeDialog"
append-to-body
width=
"70%"
>
<el-dialog
v-if=
"realCodeDialog"
title=
"实际群码"
v-model=
"realCodeDialog"
append-to-body
width=
"70%"
>
<RealCode
ref=
"realCode"
:groupCodeId=
"openGroupCodeId"
:status=
"openGroupCodeStatus"
></RealCode>
<RealCode
ref=
"realCode"
:groupCodeId=
"openGroupCodeId"
:status=
"openGroupCodeStatus"
></RealCode>
</el-dialog>
</el-dialog>
<select-tag
v-model:visible=
"showSelectTag"
type=
"2"
:selected=
"tagList"
@
success=
"getSelectTag"
></select-tag>
<select-tag
v-model:visible=
"showSelectTag"
type=
"2"
:selected=
"tagList"
@
success=
"getSelectTag"
></select-tag>
<el-dialog
title=
"当前客群"
v-model=
"detailDialog"
append-to-body
width=
"70%"
>
<el-dialog
title=
"当前客群"
v-model=
"detailDialog"
append-to-body
width=
"70%"
>
<el-table
v-loading=
"loading"
:data=
"tableList"
style=
"width: 100%"
>
<el-table
v-loading=
"loading"
:data=
"tableList"
style=
"width: 100%
;
"
>
<el-table-column
label=
"客群名称"
align=
"center"
min-width=
"100"
prop=
"groupName"
show-overflow-tooltip
/>
<el-table-column
label=
"客群名称"
align=
"center"
min-width=
"100"
prop=
"groupName"
show-overflow-tooltip
/>
<el-table-column>
<
template
#
default=
"{ row }"
>
{{
row
.
status
==
0
?
'未关联'
:
row
.
status
==
1
?
'已关联'
:
''
}}
</
template
>
</el-table-column>
<el-table-column
label=
"群主"
align=
"center"
min-width=
"100"
prop=
"groupOwner"
show-overflow-tooltip
/>
<el-table-column
label=
"群主"
align=
"center"
min-width=
"100"
prop=
"groupOwner"
show-overflow-tooltip
/>
<el-table-column
<el-table-column
label=
"群总人数"
label=
"群总人数"
align=
"center"
align=
"center"
prop=
"chatGroupMemberTotalNum"
prop=
"chatGroupMemberTotalNum"
min-width=
"100"
min-width=
"100"
show-overflow-tooltip
></el-table-column>
show-overflow-tooltip
></el-table-column>
<el-table-column
<el-table-column
label=
"进群人数"
label=
"进群人数"
align=
"center"
align=
"center"
prop=
"joinChatGroupTotalMemberNum"
prop=
"joinChatGroupTotalMemberNum"
min-width=
"100"
min-width=
"100"
show-overflow-tooltip
></el-table-column>
show-overflow-tooltip
></el-table-column>
<el-table-column
<el-table-column
label=
"退群人数"
label=
"退群人数"
align=
"center"
align=
"center"
prop=
"exitChatGroupTotalMemberNum"
prop=
"exitChatGroupTotalMemberNum"
min-width=
"100"
min-width=
"100"
show-overflow-tooltip
></el-table-column>
show-overflow-tooltip
></el-table-column>
<el-table-column
label=
"操作"
align=
"center"
width=
"180"
>
<el-table-column
label=
"操作"
align=
"center"
width=
"180"
>
<
template
#
default=
"{ row }"
>
<
template
#
default=
"{ row }"
>
<el-button
<el-button
...
@@ -189,10 +200,11 @@
...
@@ -189,10 +200,11 @@
$router.push(
{
$router.push(
{
path: '/groupManage/customerGroupManage/group/groupDetail',
path: '/groupManage/customerGroupManage/group/groupDetail',
query: {
query: {
chatId: row.chatId
,
chatId: row.chatId
}
,
}
})
})
">
"
>
查看详情
查看详情
</el-button>
</el-button>
</
template
>
</
template
>
...
@@ -210,12 +222,12 @@
...
@@ -210,12 +222,12 @@
</template>
</template>
<
script
>
<
script
>
import
RealCode
from
'./realCode'
import
RealCode
from
'./realCode'
import
{
getList
,
remove
,
downloadBatch
,
download
,
getTableTotal
}
from
'@/api/drainageCode/group'
import
{
getList
,
remove
,
downloadBatch
,
download
,
getTableTotal
}
from
'@/api/drainageCode/group'
import
ShowTag
from
'@/components/common/ShowTag.vue'
import
ShowTag
from
'@/components/common/ShowTag.vue'
import
SelectTag
from
'@/components/SelectTag.vue'
import
SelectTag
from
'@/components/SelectTag.vue'
export
default
{
export
default
{
components
:
{
RealCode
,
ShowTag
,
SelectTag
},
components
:
{
RealCode
,
ShowTag
,
SelectTag
},
data
()
{
data
()
{
return
{
return
{
...
@@ -223,7 +235,7 @@ export default {
...
@@ -223,7 +235,7 @@ export default {
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
10
,
pageSize
:
10
,
activityName
:
''
,
activityName
:
''
,
tagIds
:
''
,
tagIds
:
''
},
},
tagNames
:
''
,
tagNames
:
''
,
loading
:
false
,
loading
:
false
,
...
@@ -240,7 +252,7 @@ export default {
...
@@ -240,7 +252,7 @@ export default {
tagIndex
:
1
,
tagIndex
:
1
,
tableList
:
[],
tableList
:
[],
loading
:
false
,
loading
:
false
,
detailDialog
:
false
,
detailDialog
:
false
}
}
},
},
watch
:
{
watch
:
{
...
@@ -253,12 +265,12 @@ export default {
...
@@ -253,12 +265,12 @@ export default {
}
else
{
}
else
{
;[
this
.
query
.
beginTime
,
this
.
query
.
endTime
]
=
dateRange
;[
this
.
query
.
beginTime
,
this
.
query
.
endTime
]
=
dateRange
}
}
},
}
},
},
// 如果实际群码弹出框关闭,刷新数据
// 如果实际群码弹出框关闭,刷新数据
realCodeDialog
(
val
)
{
realCodeDialog
(
val
)
{
if
(
val
===
false
)
this
.
getGroupCodes
()
if
(
val
===
false
)
this
.
getGroupCodes
()
},
}
},
},
mounted
()
{
mounted
()
{
this
.
clipboard
=
new
this
.
ClipboardJS
(
'.copy-btn'
)
this
.
clipboard
=
new
this
.
ClipboardJS
(
'.copy-btn'
)
...
@@ -268,7 +280,7 @@ export default {
...
@@ -268,7 +280,7 @@ export default {
this
.
$store
.
setBusininessDesc
(
this
.
$store
.
setBusininessDesc
(
`
`
<div>生成永久二维码,根据规则自动切换企微客群,支持群满自动建群</div>
<div>生成永久二维码,根据规则自动切换企微客群,支持群满自动建群</div>
`
,
`
)
)
},
},
unmounted
()
{
unmounted
()
{
...
@@ -329,7 +341,7 @@ export default {
...
@@ -329,7 +341,7 @@ export default {
this
.
$confirm
(
'是否确认下载所有图片吗?'
,
'提示'
,
{
this
.
$confirm
(
'是否确认下载所有图片吗?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
type
:
'warning'
})
})
.
then
(()
=>
{
.
then
(()
=>
{
return
downloadBatch
(
ids
+
''
)
return
downloadBatch
(
ids
+
''
)
...
@@ -352,7 +364,7 @@ export default {
...
@@ -352,7 +364,7 @@ export default {
this
.
$confirm
(
'确认删除当前群活码?删除操作无法撤销,请谨慎操作。'
,
'警告'
,
{
this
.
$confirm
(
'确认删除当前群活码?删除操作无法撤销,请谨慎操作。'
,
'警告'
,
{
confirmButtonText
:
'确定'
,
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
type
:
'warning'
})
})
.
then
(()
=>
{
.
then
(()
=>
{
const
ids
=
this
.
multiGroupCode
.
map
((
group
)
=>
group
.
id
)
const
ids
=
this
.
multiGroupCode
.
map
((
group
)
=>
group
.
id
)
...
@@ -385,7 +397,7 @@ export default {
...
@@ -385,7 +397,7 @@ export default {
this
.
$confirm
(
'确认删除当前群活码?删除操作无法撤销,请谨慎操作。'
,
'警告'
,
{
this
.
$confirm
(
'确认删除当前群活码?删除操作无法撤销,请谨慎操作。'
,
'警告'
,
{
confirmButtonText
:
'确定'
,
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
type
:
'warning'
})
})
.
then
(()
=>
{
.
then
(()
=>
{
remove
(
codeId
).
then
((
res
)
=>
{
remove
(
codeId
).
then
((
res
)
=>
{
...
@@ -406,29 +418,29 @@ export default {
...
@@ -406,29 +418,29 @@ export default {
this
.
openGroupCodeId
=
groupCodeId
this
.
openGroupCodeId
=
groupCodeId
this
.
openGroupCodeStatus
=
status
this
.
openGroupCodeStatus
=
status
this
.
realCodeDialog
=
true
this
.
realCodeDialog
=
true
},
}
},
}
}
}
</
script
>
</
script
>
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
.overflow-ellipsis
{
.overflow-ellipsis
{
white-space
:
nowrap
;
white-space
:
nowrap
;
overflow
:
hidden
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
text-overflow
:
ellipsis
;
}
}
.table-desc
{
.table-desc
{
max-width
:
150px
;
max-width
:
150px
;
}
}
.code-image
{
.code-image
{
width
:
200px
;
width
:
200px
;
height
:
200px
;
height
:
200px
;
}
}
.code-image--small
{
.code-image--small
{
width
:
50px
;
width
:
50px
;
height
:
50px
;
height
:
50px
;
}
}
.expire-icon
{
.expire-icon
{
color
:
red
;
color
:
red
;
}
}
</
style
>
</
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