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 1f110bd8
authored
Jun 19, 2023
by
ext.wangyuman1
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
朋友圈模块
1 parent
d741374f
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
83 additions
and
118 deletions
vue3-lw-pc/src/components/RemoteDataView.vue
vue3-lw-pc/src/views/friendCircle/components/Custom.vue
vue3-lw-pc/src/views/friendCircle/components/FirendContent.vue
vue3-lw-pc/src/views/friendCircle/components/Interaction.vue
vue3-lw-pc/src/views/friendCircle/components/Record.vue
vue3-lw-pc/src/views/friendCircle/components/ViewDetail.vue
vue3-lw-pc/src/views/friendCircle/list.vue
vue3-lw-pc/src/views/friendCircle/publish.vue
vue3-lw-pc/src/components/RemoteDataView.vue
View file @
1f110bd
...
@@ -103,7 +103,6 @@ export default {
...
@@ -103,7 +103,6 @@ export default {
if
(
this
.
type
==
'table'
)
{
if
(
this
.
type
==
'table'
)
{
this
.
query
.
pageSize
||
(
this
.
query
.
pageSize
=
10
)
this
.
query
.
pageSize
||
(
this
.
query
.
pageSize
=
10
)
}
}
if
(
this
.
dateRange
)
{
if
(
this
.
dateRange
)
{
this
.
query
.
beginTime
=
this
.
dateRange
[
0
]
this
.
query
.
beginTime
=
this
.
dateRange
[
0
]
this
.
query
.
endTime
=
this
.
dateRange
[
1
]
this
.
query
.
endTime
=
this
.
dateRange
[
1
]
...
@@ -243,7 +242,8 @@ export default {
...
@@ -243,7 +242,8 @@ export default {
range-separator=
"-"
range-separator=
"-"
start-placeholder=
"开始日期"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
end-placeholder=
"结束日期"
@
change=
"getList(1)"
></el-date-picker>
@
change=
"getList(1)"
></el-date-picker>
</
template
>
</
template
>
<el-input
<el-input
v-if=
"isGroupOwnerQuery"
v-if=
"isGroupOwnerQuery"
...
@@ -251,19 +251,22 @@ export default {
...
@@ -251,19 +251,22 @@ export default {
:model-value=
"userArray.map((e) => e.name) + ''"
:model-value=
"userArray.map((e) => e.name) + ''"
readonly
readonly
@
click=
"showDialog('_groupOwners')"
@
click=
"showDialog('_groupOwners')"
placeholder=
"请选择群主"
></el-input>
placeholder=
"请选择群主"
></el-input>
<el-select
<el-select
style=
"margin-left: 20px"
style=
"margin-left: 20px"
v-if=
"isGroupQuery"
v-if=
"isGroupQuery"
v-model=
"query.chatIds"
v-model=
"query.chatIds"
placeholder=
"请选择群聊"
placeholder=
"请选择群聊"
clearable
clearable
@
change=
"getList()"
>
@
change=
"getList()"
>
<el-option
<el-option
v-for=
"item in groupChats"
v-for=
"item in groupChats"
:key=
"item.chatId"
:key=
"item.chatId"
:label=
"item.groupName"
:label=
"item.groupName"
:value=
"item.chatId"
></el-option>
:value=
"item.chatId"
></el-option>
</el-select>
</el-select>
<el-input
<el-input
v-if=
"isDepartOrStaff"
v-if=
"isDepartOrStaff"
...
@@ -271,12 +274,20 @@ export default {
...
@@ -271,12 +274,20 @@ export default {
:model-value=
"userArray.map((e) => e.name) + ''"
:model-value=
"userArray.map((e) => e.name) + ''"
readonly
readonly
@
click=
"showDialog('_users')"
@
click=
"showDialog('_users')"
placeholder=
"请选择部门或员工"
/>
placeholder=
"请选择部门或员工"
<el-button
v-if=
"requestExport"
class=
"fr"
type=
"primary"
@
click=
"exprotTable"
>
导出 Excel
</el-button>
/>
<el-button
v-if=
"requestExport"
class=
"fr"
type=
"primary"
@
click=
"exprotTable"
>
导出 Excel
</el-button
>
</div>
</div>
<div
v-loading=
"loading"
>
<div
v-loading=
"loading"
>
<ChartLine
v-if=
"type == 'lineChart'"
:xData=
"xData"
:legend=
"legend"
:series=
"data"
></ChartLine>
<ChartLine
v-if=
"type == 'lineChart'"
:xData=
"xData"
:legend=
"legend"
:series=
"data"
></ChartLine>
<
template
v-else-if=
"type == 'table'"
>
<
template
v-else-if=
"type == 'table'"
>
<el-table
:data=
"data"
style=
"width: 100%"
>
<el-table
:data=
"data"
style=
"width: 100%"
>
...
@@ -285,13 +296,15 @@ export default {
...
@@ -285,13 +296,15 @@ export default {
:key=
"index"
:key=
"index"
:prop=
"item.prop"
:prop=
"item.prop"
:label=
"item.label"
:label=
"item.label"
align=
"center"
></el-table-column>
align=
"center"
></el-table-column>
</el-table>
</el-table>
<pagination
<pagination
: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=
"getList()"
/>
@
pagination=
"getList()"
/>
</
template
>
</
template
>
<ChartBar
v-else-if=
"'barChart'.includes(type)"
:xData=
"xData"
:series=
"data"
></ChartBar>
<ChartBar
v-else-if=
"'barChart'.includes(type)"
:xData=
"xData"
:series=
"data"
></ChartBar>
...
@@ -301,7 +314,8 @@ export default {
...
@@ -301,7 +314,8 @@ export default {
:xData=
"xData"
:xData=
"xData"
:legend=
"legend"
:legend=
"legend"
:series=
"data"
:series=
"data"
:option=
"option"
></ChartLine>
:option=
"option"
></ChartLine>
</div>
</div>
<SelectUser
<SelectUser
...
@@ -309,7 +323,8 @@ export default {
...
@@ -309,7 +323,8 @@ export default {
title=
"组织架构"
title=
"组织架构"
:defaultValues=
"userArray"
:defaultValues=
"userArray"
@
success=
"getSelectUser"
@
success=
"getSelectUser"
:isOnlyLeaf=
"dialogType === '_groupOwners'"
></SelectUser>
:isOnlyLeaf=
"dialogType === '_groupOwners'"
></SelectUser>
</div>
</div>
</template>
</template>
...
...
vue3-lw-pc/src/views/friendCircle/components/Custom.vue
View file @
1f110bd
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<div
style=
"display: flex; align-items: center"
>
<div
style=
"display: flex; align-items: center"
>
<!--
<search-title
:showMore=
"true"
@
search=
"getTableFn"
></search-title>
-->
<!--
<search-title
:showMore=
"true"
@
search=
"getTableFn"
></search-title>
-->
<el-input
<el-input
style=
"width: 150px"
style=
"width: 150px
; margin-right: 20px
"
:model-value=
"userName"
:model-value=
"userName"
readonly
readonly
@
click=
"dialogVisible = true"
@
click=
"dialogVisible = true"
...
...
vue3-lw-pc/src/views/friendCircle/components/FirendContent.vue
View file @
1f110bd
<
template
>
<
template
>
<div
class=
"content"
>
<div
class=
"content"
>
<!-- 欢迎语 -->
<!-- 欢迎语 -->
<div
class=
"item"
v-if=
"templateInfo"
>
<!--
<div
class=
"item"
v-if=
"templateInfo"
>
<!--
<div
class=
"avatar222"
><img
src=
"../../assets/drainageCode/header.png"
/></div>
-->
<div
class=
"msg"
>
<div
class=
"msg"
>
<div
class=
"word"
>
<div
class=
"word"
>
<p
<p
...
@@ -11,14 +10,25 @@
...
@@ -11,14 +10,25 @@
>
</p>
>
</p>
</div>
</div>
</div>
</div>
</div>
-->
<div
class=
"item"
v-if=
"list[0].mediaType === '4'"
>
<div
class=
"msg"
>
<div
class=
"word"
>
<p
style=
"line-height: 18px"
v-html=
"list[0].content?.replace(/\n|\r\n/g, '
<br>
').replace(/ /g, '
&
nbsp')"
>
</p>
</div>
</div>
</div>
</div>
<div
style=
"display: flex; flex-wrap: wrap"
>
<div
class=
"item"
v-for=
"(data, key) in list"
:key=
"key"
>
<div
class=
"item"
v-for=
"(data, key) in list"
:key=
"key"
>
<!--
<div
class=
"avatar222"
><img
src=
"../../assets/drainageCode/header.png"
/></div>
-->
<!--
<div
class=
"avatar222"
><img
src=
"../../assets/drainageCode/header.png"
/></div>
-->
<div
class=
"msg"
v-if=
"data.mediaType === '4'"
>
<!--
<div
class=
"msg"
v-if=
"data.mediaType === '4'"
>
<div
class=
"word"
>
<div
class=
"word"
>
<p
style=
"white-space: pre-line"
>
{{
data
.
content
}}
</p>
<p
style=
"white-space: pre-line"
>
{{
data
.
content
}}
</p>
</div>
</div>
</div>
</div>
-->
<div
class=
"msg"
v-if=
"data.mediaType === '0'"
>
<div
class=
"msg"
v-if=
"data.mediaType === '0'"
>
<div
class=
"image"
>
<div
class=
"image"
>
<img
:src=
"data.materialUrl"
/>
<img
:src=
"data.materialUrl"
/>
...
@@ -112,8 +122,6 @@
...
@@ -112,8 +122,6 @@
</div>
</div>
</div>
</div>
</div>
</div>
<div
v-if=
"article"
>
<p
v-html=
"article"
></p>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -127,10 +135,10 @@ export default {
...
@@ -127,10 +135,10 @@ export default {
default
:
'客户'
,
default
:
'客户'
,
},
},
// 文章详情展示
// 文章详情展示
article
:
{
//
article: {
type
:
String
,
//
type: String,
default
:
null
,
//
default: null,
},
//
},
// 内容
// 内容
templateInfo
:
{
templateInfo
:
{
type
:
String
,
type
:
String
,
...
@@ -237,7 +245,6 @@ export default {
...
@@ -237,7 +245,6 @@ export default {
.item
{
.item
{
font-size
:
12px
;
font-size
:
12px
;
font-weight
:
400
;
font-weight
:
400
;
color
:
#666666
;
color
:
#666666
;
display
:
flex
;
display
:
flex
;
...
@@ -263,23 +270,6 @@ export default {
...
@@ -263,23 +270,6 @@ export default {
box-sizing
:
border-box
;
box-sizing
:
border-box
;
word-break
:
break-all
;
word-break
:
break-all
;
margin-left
:
5px
;
margin-left
:
5px
;
&:before
{
content
:
' '
;
display
:
block
;
position
:
absolute
;
left
:
-5px
;
box-shadow
:
0px
2px
6px
0px
rgba
(
60
,
136
,
240
,
0.1
);
border-width
:
5px
;
border-left
:
0
;
width
:
0
;
border-style
:
solid
;
border-color
:
transparent
;
border-right-color
:
#fff
;
top
:
8px
;
z-index
:
888
;
}
.word
{
.word
{
padding
:
5px
12px
;
padding
:
5px
12px
;
}
}
...
@@ -295,14 +285,15 @@ export default {
...
@@ -295,14 +285,15 @@ export default {
.word-and-image
{
.word-and-image
{
padding
:
12px
;
padding
:
12px
;
min-width
:
160px
;
.sub-content
{
.sub-content
{
margin-top
:
10px
;
margin-top
:
10px
;
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
font-size
:
12px
;
font-size
:
12px
;
font-weight
:
400
;
font-weight
:
400
;
color
:
#999999
;
color
:
#999999
;
img
{
img
{
height
:
40px
;
height
:
40px
;
width
:
40px
;
width
:
40px
;
...
...
vue3-lw-pc/src/views/friendCircle/components/Interaction.vue
View file @
1f110bd
...
@@ -13,7 +13,13 @@
...
@@ -13,7 +13,13 @@
<
script
>
<
script
>
import
{
statisticMoments
}
from
'@/api/circle'
import
{
statisticMoments
}
from
'@/api/circle'
import
Record
from
'./Record.vue'
import
ViewDetail
from
'./ViewDetail'
export
default
{
export
default
{
components
:
{
Record
,
ViewDetail
,
},
data
()
{
data
()
{
return
{
return
{
activeName
:
'first'
,
activeName
:
'first'
,
...
...
vue3-lw-pc/src/views/friendCircle/components/Record.vue
View file @
1f110bd
<
template
>
<
template
>
<div>
<div>
<div
style=
"display: flex; align-items: center; justify-content: space-between
"
>
<div
class=
"content-box
"
>
<div
style=
"display: flex; align-items: center"
>
<div
style=
"display: flex; align-items: center"
>
<el-date-picker
<el-date-picker
clearable
v-model=
"dateRange"
v-model=
"dateRange"
value-format=
"YYYY-MM-DD HH:mm:ss"
type=
"datetimerange"
type=
"daterange"
v-bind=
"pickerOptions"
range-separator=
"-"
range-separator=
"-"
start-placeholder=
"开始时间"
start-placeholder=
"开始时间"
end-placeholder=
"结束时间"
end-placeholder=
"结束时间"
align=
"right"
align=
"right"
></el-date-picker>
clearable
>
</el-date-picker>
<el-input
<el-input
style=
"width: 150px"
style=
"width: 150px
; margin: 0 20px
"
:model-value=
"userName"
:model-value=
"userName"
readonly
readonly
@
click=
"dialogVisible = true"
@
click=
"dialogVisible = true"
...
@@ -32,7 +31,6 @@
...
@@ -32,7 +31,6 @@
<el-button
@
click=
"resetQuery"
>
清空
</el-button>
<el-button
@
click=
"resetQuery"
>
清空
</el-button>
</div>
</div>
<div>
<div>
<el-button
type=
"primary"
@
click=
"remind(id)"
>
提醒执行
</el-button>
<el-button
type=
"primary"
@
click=
"exportFn"
v-loading=
"exportLoading"
>
导出
</el-button>
<el-button
type=
"primary"
@
click=
"exportFn"
v-loading=
"exportLoading"
>
导出
</el-button>
</div>
</div>
</div>
</div>
...
@@ -51,13 +49,7 @@
...
@@ -51,13 +49,7 @@
min-width=
"100"
min-width=
"100"
show-overflow-tooltip
show-overflow-tooltip
></el-table-column>
></el-table-column>
<el-table-column
<el-table-column
label=
"互动类型"
align=
"center"
prop=
"timeOutNum"
show-overflow-tooltip
>
label=
"执行人所属部门"
align=
"center"
prop=
"deptName"
show-overflow-tooltip
></el-table-column>
<el-table-column
label=
"执行状态"
align=
"center"
prop=
"timeOutNum"
show-overflow-tooltip
>
<template
#
default=
"
{ row }">
<template
#
default=
"
{ row }">
<div>
<div>
{{
row
}}
{{
row
}}
...
@@ -75,7 +67,7 @@
...
@@ -75,7 +67,7 @@
: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=
"get
TableChangeSize
()"
@
pagination=
"get
List
()"
/>
/>
</div>
</div>
</template>
</template>
...
@@ -102,16 +94,28 @@ export default {
...
@@ -102,16 +94,28 @@ export default {
this
.
query
.
beginTime
=
''
this
.
query
.
beginTime
=
''
this
.
query
.
endTime
=
''
this
.
query
.
endTime
=
''
}
}
},
getTableChangeSize
()
{
this
.
loading
=
true
this
.
loading
=
true
getTableTotal
(
this
.
query
).
then
((
res
)
=>
{
getTableTotal
(
this
.
query
).
then
((
res
)
=>
{
this
.
tableList
=
res
.
data
this
.
tableList
=
res
.
data
this
.
loading
=
false
this
.
loading
=
false
})
})
},
},
resetQuery
()
{
this
.
query
=
{
pageSize
:
10
,
pageNum
:
1
,
}
this
.
dateRange
=
[]
this
.
getList
()
},
},
},
}
}
</
script
>
</
script
>
<
style
></
style
>
<
style
lang=
"scss"
scoped
>
.content-box
{
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
}
</
style
>
vue3-lw-pc/src/views/friendCircle/components/ViewDetail.vue
View file @
1f110bd
...
@@ -38,6 +38,7 @@
...
@@ -38,6 +38,7 @@
<el-button
text
@
click=
"goDetail(scope.row.id)"
v-if=
"scope.row.isCustomer"
<el-button
text
@
click=
"goDetail(scope.row.id)"
v-if=
"scope.row.isCustomer"
>
客户详情
</el-button
>
客户详情
</el-button
>
>
<el-button
text
v-else
>
-
</el-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
...
vue3-lw-pc/src/views/friendCircle/list.vue
View file @
1f110bd
...
@@ -73,7 +73,11 @@
...
@@ -73,7 +73,11 @@
</div>
</div>
</div>
</div>
<el-table
ref=
"table"
v-loading=
"loading"
:data=
"tableData"
>
<el-table
ref=
"table"
v-loading=
"loading"
:data=
"tableData"
>
<el-table-column
show-overflow-tooltip
prop=
"name"
label=
"任务名称"
></el-table-column>
<el-table-column
show-overflow-tooltip
prop=
"name"
label=
"任务名称"
>
<
template
#
default=
"{ row }"
>
{{
row
.
name
?
row
.
name
:
'—'
}}
</
template
>
</el-table-column>
<el-table-column
show-overflow-tooltip
prop=
"sendType"
label=
"发送方式"
>
<el-table-column
show-overflow-tooltip
prop=
"sendType"
label=
"发送方式"
>
<
template
#
default=
"{ row }"
>
<
template
#
default=
"{ row }"
>
{{
dealSendType
(
row
.
sendType
)
}}
{{
dealSendType
(
row
.
sendType
)
}}
...
@@ -116,55 +120,6 @@
...
@@ -116,55 +120,6 @@
:defaultValues=
"userArray"
:defaultValues=
"userArray"
@
success=
"getSelectUser"
@
success=
"getSelectUser"
></SelectUser>
></SelectUser>
<!-- <el-dialog title="详情" v-model="detailDialogVisible" width="40%">
<el-form label-position="right" label-width="100px">
<span style="margin-left: 40px; font-size: 16px">内容:</span>
<template v-for="(data, index) in detail.otherContent" :key="index">
<el-form-item label=" " v-if="data.annexType === 'text'">
{{ data.other }}
</el-form-item>
<el-form-item label=" " v-if="data.annexType === 'video'">
<div style="display: inline-block; margin-right: 10px">
<video style="width: 200px; height: 200px" :src="data.annexUrl" controls></video>
</div>
</el-form-item>
<el-form-item label=" " v-if="data.annexType === 'link'">
<div style="display: inline-block; margin-right: 10px">
<span style="width: 100px; height: 100px">{{ data.annexUrl }}</span>
</div>
</el-form-item>
</template>
<el-form-item label=" ">
<div class="img_list">
<div v-for="(data, index) in detail.otherContent">
<el-image
class="item"
style="width: 100px; height: 100px"
:preview-src-list="[data.annexUrl]"
v-if="data.annexType === 'image'"
:src="data.annexUrl"
></el-image>
</div>
</div>
</el-form-item>
<el-form-item label="已发送员工" v-if="detail.addUserName">
<el-tag v-for="(data, key) in detail.addUserName.split(',')" :key="key">{{
data
}}</el-tag>
</el-form-item>
<el-form-item label="未发送员工" v-if="detail.noAddUserName">
<el-tag v-for="(data, key) in detail.noAddUserName.split(',')" :key="key">{{
data
}}</el-tag>
</el-form-item>
<template #footer>
<span class="dialog-footer">
<el-button @click="detailDialogVisible = false">取 消</el-button>
<el-button type="primary" @click="detailDialogVisible = false">确 定</el-button>
</span>
</template>
</el-form>
</el-dialog> -->
</div>
</div>
</template>
</template>
<
script
>
<
script
>
...
@@ -175,7 +130,6 @@ export default {
...
@@ -175,7 +130,6 @@ export default {
components
:
{},
components
:
{},
data
()
{
data
()
{
return
{
return
{
// disable: false,
value1
:
[],
value1
:
[],
dialogVisible
:
false
,
dialogVisible
:
false
,
userArray
:
[],
userArray
:
[],
...
@@ -184,16 +138,10 @@ export default {
...
@@ -184,16 +138,10 @@ export default {
pageNum
:
1
,
pageNum
:
1
,
executeStartTime
:
''
,
executeStartTime
:
''
,
executeEndTime
:
''
,
executeEndTime
:
''
,
// beginTime: '',
// endTime: '',
// creator: '',
// type: 0,
},
},
loading
:
false
,
loading
:
false
,
tableData
:
[],
tableData
:
[],
total
:
0
,
total
:
0
,
// detailDialogVisible: false,
// detail: {},
sendType
:
[
sendType
:
[
{
label
:
'企微群发'
,
value
:
0
},
{
label
:
'企微群发'
,
value
:
0
},
{
label
:
'成员群发'
,
value
:
1
},
{
label
:
'成员群发'
,
value
:
1
},
...
...
vue3-lw-pc/src/views/friendCircle/publish.vue
View file @
1f110bd
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