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 b04d94b1
authored
Nov 19, 2023
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
朋友圈修改
1 parent
4e620424
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
50 deletions
vue3-lw-pc/src/api/circle.js
vue3-lw-pc/src/views/friendCircle/list.vue
vue3-lw-pc/src/views/friendCircle/publish.vue
vue3-lw-pc/src/views/friendCircle/statistics.vue
vue3-lw-pc/src/api/circle.js
View file @
b04d94b
...
@@ -17,9 +17,9 @@ export function getEnterpriceList(data) {
...
@@ -17,9 +17,9 @@ export function getEnterpriceList(data) {
// })
// })
// }
// }
// 朋友圈 全部 同步
// 朋友圈 全部 同步
export
function
syncHMoments
(
data
)
{
export
function
syncHMoments
(
id
)
{
return
request
({
return
request
({
url
:
service
+
'/moments/sync/'
+
data
,
url
:
service
+
'/moments/sync/'
+
id
,
})
})
}
}
...
...
vue3-lw-pc/src/views/friendCircle/list.vue
View file @
b04d94b
<
template
>
<
template
>
<div>
<div>
<el-form
<el-form
:model=
"query"
label-position=
"left"
ref=
"queryForm"
:inline=
"true"
label-width=
"70px"
class=
"top-search"
>
:model=
"query"
label-position=
"left"
ref=
"queryForm"
:inline=
"true"
label-width=
"70px"
class=
"top-search"
>
<el-form-item
prop=
"name"
>
<el-form-item
prop=
"name"
>
<el-input
v-model=
"query.name"
placeholder=
"请输入任务名称"
></el-input>
<el-input
v-model=
"query.name"
placeholder=
"请输入任务名称"
></el-input>
</el-form-item>
</el-form-item>
...
@@ -17,12 +10,7 @@
...
@@ -17,12 +10,7 @@
<el-form-item
prop=
"sendType"
>
<el-form-item
prop=
"sendType"
>
<!--
<el-input
v-model=
"query"
placeholder=
"请输入创建人"
></el-input>
-->
<!--
<el-input
v-model=
"query"
placeholder=
"请输入创建人"
></el-input>
-->
<el-select
clearable
v-model=
"query.sendType"
placeholder=
"请选择发送方式"
>
<el-select
clearable
v-model=
"query.sendType"
placeholder=
"请选择发送方式"
>
<el-option
<el-option
v-for=
"(item, index) in sendType"
:key=
"index"
:label=
"item.label"
:value=
"item.value"
></el-option>
v-for=
"(item, index) in sendType"
:key=
"index"
:label=
"item.label"
:value=
"item.value"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
prop=
"creator"
>
<el-form-item
prop=
"creator"
>
...
@@ -31,8 +19,7 @@
...
@@ -31,8 +19,7 @@
v-for=
"(item, index) in taskStatus"
v-for=
"(item, index) in taskStatus"
:key=
"index"
:key=
"index"
:label=
"item.label"
:label=
"item.label"
:value=
"item.value"
:value=
"item.value"
></el-option>
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
...
@@ -45,8 +32,7 @@
...
@@ -45,8 +32,7 @@
range-separator=
"—"
range-separator=
"—"
start-placeholder=
"执行开始时间"
start-placeholder=
"执行开始时间"
end-placeholder=
"执行结束时间"
end-placeholder=
"执行结束时间"
style=
"width: 240px"
style=
"width: 240px"
></el-date-picker>
></el-date-picker>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<!-- v-hasPermi="['wecom:code:list']" -->
<!-- v-hasPermi="['wecom:code:list']" -->
...
@@ -56,21 +42,17 @@
...
@@ -56,21 +42,17 @@
</el-form>
</el-form>
<div
class=
"g-card"
>
<div
class=
"g-card"
>
<div
class=
"mid-action"
>
<div
class=
"mid-action"
>
<div>
<!--
<div>
<!--
<span
class=
"desc"
v-if=
"lastSyncTime"
>
最近同步:
{{
lastSyncTime
}}
</span>
<span
class=
"desc"
v-else
>
暂无记录,请手动点击同步
</span>
-->
<ButtonSync
@
click=
"syncFn"
>
同步
</ButtonSync>
<ButtonSync
@
click=
"syncFn"
>
同步
</ButtonSync>
</div>
</div>
-->
<div>
<div>
<el-button
type=
"primary"
@
click=
"gotoRoute"
style=
"margin-right: 10px"
>
新建朋友圈
</el-button>
<el-popover
placement=
"top"
trigger=
"hover"
>
<el-popover
placement=
"top"
trigger=
"hover"
>
<template
#
reference
>
<template
#
reference
>
<el-icon-QuestionFilled
class=
"el-icon-QuestionFilled mr5"
></el-icon-QuestionFilled>
<el-icon-QuestionFilled
class=
"el-icon-QuestionFilled mr5"
></el-icon-QuestionFilled>
</
template
>
</
template
>
<div>
企业每分钟创建朋友圈的频率:10条/分钟
</div>
<div>
企业每分钟创建朋友圈的频率:10条/分钟
</div>
</el-popover>
</el-popover>
<el-button
type=
"primary"
@
click=
"gotoRoute"
style=
"margin-right: 10px"
>
新建朋友圈
</el-button
>
</div>
</div>
</div>
</div>
<el-table
ref=
"table"
v-loading=
"loading"
:data=
"tableData"
>
<el-table
ref=
"table"
v-loading=
"loading"
:data=
"tableData"
>
...
@@ -100,29 +82,22 @@
...
@@ -100,29 +82,22 @@
<el-table-column
show-overflow-tooltip
prop=
"finishRate"
label=
"完成率"
></el-table-column>
<el-table-column
show-overflow-tooltip
prop=
"finishRate"
label=
"完成率"
></el-table-column>
<el-table-column
label=
"操作"
align=
"center"
width=
"200"
>
<el-table-column
label=
"操作"
align=
"center"
width=
"200"
>
<
template
#
default=
"{ row }"
>
<
template
#
default=
"{ row }"
>
<el-button
text
@
click=
"remind(row.id)"
v-if=
"row.status === 2 && row.sendType !== 0"
<el-button
text
@
click=
"remind(row.id)"
v-if=
"row.status === 2 && row.sendType !== 0"
>
提醒执行
</el-button>
>
提醒执行
</el-button
<el-button
text
@
click=
"syncFn(row.id)"
v-if=
"row.sendType == 0"
>
同步
</el-button>
>
<el-button
text
@
click=
"statistics(row)"
>
统计
</el-button>
<el-button
text
@
click=
"statistics(row)"
>
统计
</el-button>
<el-button
text
@
click=
"detailFn(row)"
>
查看
</el-button>
<el-button
text
@
click=
"detailFn(row)"
>
查看
</el-button>
<el-button
text
@
click=
"cease(row.id)"
v-if=
"row.status !== 3"
>
停止
</el-button>
<el-button
text
@
click=
"cease(row.id)"
v-if=
"row.status !== 3"
>
停止
</el-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
<pagination
<pagination
:total=
"total"
v-model:page=
"query.pageNum"
v-model:limit=
"query.pageSize"
@
pagination=
"getList()"
/>
:total=
"total"
v-model:page=
"query.pageNum"
v-model:limit=
"query.pageSize"
@
pagination=
"getList()"
/>
</div>
</div>
<SelectUser
<SelectUser
v-model:visible=
"dialogVisible"
v-model:visible=
"dialogVisible"
title=
"组织架构"
title=
"组织架构"
:defaultValues=
"userArray"
:defaultValues=
"userArray"
@
success=
"getSelectUser"
@
success=
"getSelectUser"
></SelectUser>
></SelectUser>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
...
@@ -206,7 +181,7 @@ export default {
...
@@ -206,7 +181,7 @@ export default {
{
{
confirmButtonText
:
'确定'
,
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
}
}
,
)
)
.
then
(()
=>
{
.
then
(()
=>
{
cancelMoments
(
id
).
then
((
res
)
=>
{
cancelMoments
(
id
).
then
((
res
)
=>
{
...
@@ -274,8 +249,8 @@ export default {
...
@@ -274,8 +249,8 @@ export default {
},
},
})
})
},
},
syncFn
()
{
syncFn
(
id
)
{
syncHMoments
(
2
).
then
((
res
)
=>
{
syncHMoments
(
id
).
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
this
.
msgSuccess
(
res
.
data
)
this
.
msgSuccess
(
res
.
data
)
this
.
getList
()
this
.
getList
()
...
@@ -344,7 +319,7 @@ export default {
...
@@ -344,7 +319,7 @@ export default {
this
.
$store
.
setBusininessDesc
(
this
.
$store
.
setBusininessDesc
(
`
`
<div>可对企业的朋友圈资源进行统一运营,联动互动功能进行自动打标签,统计成员朋友圈执行效率功能等等</div>
<div>可对企业的朋友圈资源进行统一运营,联动互动功能进行自动打标签,统计成员朋友圈执行效率功能等等</div>
`
`
,
)
)
},
},
}
}
...
...
vue3-lw-pc/src/views/friendCircle/publish.vue
View file @
b04d94b
This diff is collapsed.
Click to expand it.
vue3-lw-pc/src/views/friendCircle/statistics.vue
View file @
b04d94b
<
template
>
<
template
>
<div
class=
"g-card"
>
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleClick"
>
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleClick"
>
<el-tab-pane
label=
"员工统计"
name=
"first"
v-if=
"this.type !== 3"
><Staff
/></el-tab-pane>
<el-tab-pane
label=
"员工统计"
name=
"first"
v-if=
"this.type !== 3"
><Staff
/></el-tab-pane>
<el-tab-pane
label=
"客户统计"
name=
"second"
><Custom
/></el-tab-pane>
<el-tab-pane
label=
"客户统计"
name=
"second"
><Custom
/></el-tab-pane>
<!--
<el-tab-pane
label=
"互动统计"
name=
"third"
><Interaction
/></el-tab-pane>
-->
<el-tab-pane
label=
"互动统计"
name=
"third"
><Interaction
/></el-tab-pane>
</el-tabs>
</el-tabs>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
Staff
from
'./components/Staff.vue'
import
Staff
from
'./components/Staff.vue'
...
@@ -14,7 +12,6 @@ import Interaction from './components/Interaction.vue'
...
@@ -14,7 +12,6 @@ import Interaction from './components/Interaction.vue'
export
default
{
export
default
{
components
:
{
Staff
,
Custom
,
Interaction
},
components
:
{
Staff
,
Custom
,
Interaction
},
mounted
()
{
mounted
()
{
this
.
type
=
this
.
$route
.
query
.
type
this
.
type
=
this
.
$route
.
query
.
type
if
(
this
.
type
===
3
)
{
if
(
this
.
type
===
3
)
{
this
.
activeName
=
'second'
this
.
activeName
=
'second'
...
...
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