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 038bf9fa
authored
Dec 30, 2020
by
xinlaa
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
群发调试
1 parent
cd8c0876
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
178 additions
and
10 deletions
linkwe-ui/src/api/groupMessage.js
linkwe-ui/src/views/groupMessage/detail.vue
linkwe-ui/src/views/groupMessage/record.vue
linkwe-ui/src/api/groupMessage.js
View file @
038bf9f
import
request
from
'@/utils/request'
import
request
from
"@/utils/request"
;
const
service
=
window
.
CONFIG
.
services
.
wecom
+
'/customerMessagePush'
const
service
=
window
.
CONFIG
.
services
.
wecom
+
"/customerMessagePush"
;
/**
/**
* 新增企业id
* 新增企业id
...
@@ -35,10 +35,10 @@ const service = window.CONFIG.services.wecom + '/customerMessagePush'
...
@@ -35,10 +35,10 @@ const service = window.CONFIG.services.wecom + '/customerMessagePush'
*/
*/
export
function
add
(
data
)
{
export
function
add
(
data
)
{
return
request
({
return
request
({
url
:
service
+
'/add'
,
url
:
service
+
"/add"
,
method
:
'post'
,
method
:
"post"
,
data
,
data
})
})
;
}
}
/**
/**
...
@@ -53,8 +53,32 @@ endTime:结束时间}
...
@@ -53,8 +53,32 @@ endTime:结束时间}
*/
*/
export
function
getList
(
data
)
{
export
function
getList
(
data
)
{
return
request
({
return
request
({
url
:
service
+
'/list'
,
url
:
service
+
"/list"
,
method
:
'get'
,
method
:
"get"
,
data
,
data
})
});
}
/**
* 群发消息详情
* @param {*} messageId:微信消息id
*/
export
function
getDetail
(
messageId
)
{
return
request
({
url
:
service
+
"/getInfo"
,
params
:
{
messageId
}
});
}
/**
*
* @param {*}
* messageId:微信消息id
status:发送状态 0-未发送 1-已发送 2-因客户不是好友导致发送失败 3-因客户已经收到其他群发消息导致发送失败
*/
export
function
getPushResult
(
params
)
{
return
request
({
url
:
service
+
"/pushResults"
,
params
});
}
}
linkwe-ui/src/views/groupMessage/detail.vue
0 → 100644
View file @
038bf9f
<
script
>
import
{
getPushResult
}
from
"@/api/groupMessage"
;
export
default
{
components
:
{},
props
:
{},
data
()
{
return
{
query
:
{
pageNum
:
1
,
pageSize
:
10
,
messageId
:
""
,
status
:
0
},
// 表格数据
list
:
[],
form
:
{},
activeName
:
"1"
,
total1
:
0
,
total2
:
0
};
},
watch
:
{},
computed
:
{},
created
()
{
this
.
id
=
this
.
$route
.
query
.
id
;
this
.
id
&&
this
.
getList
();
},
mounted
()
{},
methods
:
{
getList
(
page
)
{
this
.
query
=
{
messageId
:
this
.
id
,
status
:
0
};
page
&&
(
this
.
query
.
pageNum
=
page
);
this
.
loading
=
true
;
getPushResult
(
this
.
query
)
.
then
(({
rows
,
total
})
=>
{
this
.
list
=
rows
;
this
.
total
=
+
total
;
this
.
loading
=
false
;
this
.
ids
=
[];
})
.
catch
(()
=>
{
this
.
loading
=
false
;
});
}
}
};
</
script
>
<
template
>
<div>
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleClick"
>
<el-tab-pane
:label=
"`待发送($
{total1})`" name="1">
<div
class=
"ar"
>
<el-button
type=
"primary"
>
发布动态
</el-button>
</div>
<el-table
v-loading=
"loading"
:data=
"list"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
label=
"发送员工"
align=
"center"
prop=
"title"
/>
<el-table-column
label=
"发送客户"
align=
"center"
prop=
"operTime"
>
<template
slot-scope=
"scope"
>
<span>
{{
parseTime
(
scope
.
row
.
operTime
)
}}
</span>
</
template
>
</el-table-column>
</el-table>
<pagination
v-show=
"total > 0"
:total=
"total"
:page
.
sync=
"query.pageNum"
:limit
.
sync=
"query.pageSize"
@
pagination=
"getList"
/>
</el-tab-pane>
<el-tab-pane
:label=
"`已发送(${total2})`"
name=
"2"
>
<el-table
v-loading=
"loading"
:data=
"list"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
label=
"发送员工"
align=
"center"
prop=
"title"
/>
<el-table-column
label=
"发送客户"
align=
"center"
prop=
"operTime"
>
<
template
slot-scope=
"scope"
>
<span>
{{
parseTime
(
scope
.
row
.
operTime
)
}}
</span>
</
template
>
</el-table-column>
</el-table>
<pagination
v-show=
"total > 0"
:total=
"total"
:page
.
sync=
"query.pageNum"
:limit
.
sync=
"query.pageSize"
@
pagination=
"getList"
/>
</el-tab-pane>
</el-tabs>
</div>
</template>
<
style
lang=
"less"
scoped
></
style
>
linkwe-ui/src/views/groupMessage/record.vue
View file @
038bf9f
...
@@ -2,6 +2,16 @@
...
@@ -2,6 +2,16 @@
import
{
getList
}
from
"@/api/groupMessage"
;
import
{
getList
}
from
"@/api/groupMessage"
;
export
default
{
export
default
{
name
:
"Operlog"
,
name
:
"Operlog"
,
filters
:
{
sendInfo
(
data
)
{
if
(
data
.
timedTask
==
1
)
{
return
"定时任务 发送时间:"
+
data
.
settingTime
;
}
else
{
let
unit
=
data
.
expectSend
==
1
?
"个群"
:
"人"
;
return
`预计发送
${
data
.
expectSend
}${
unit
}
,已成功发送
${
data
.
actualSend
}${
unit
}
`
;
}
}
},
data
()
{
data
()
{
return
{
return
{
// 遮罩层
// 遮罩层
...
@@ -88,6 +98,9 @@ export default {
...
@@ -88,6 +98,9 @@ export default {
this
.
msgSuccess
(
"删除成功"
);
this
.
msgSuccess
(
"删除成功"
);
})
})
.
catch
(
function
()
{});
.
catch
(
function
()
{});
},
goRoute
(
id
,
path
)
{
this
.
$router
.
push
({
path
:
"/groupMessage/"
+
path
,
query
:
{
id
}
});
}
}
}
}
};
};
...
@@ -165,6 +178,30 @@ export default {
...
@@ -165,6 +178,30 @@ export default {
>
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"发送情况"
align=
"center"
prop=
"sendInfo"
>
<el-table-column
label=
"发送情况"
align=
"center"
prop=
"sendInfo"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
|
sendInfo
}}
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
align=
"center"
width=
"180"
>
<
template
slot-scope=
"scope"
>
<el-button
v-hasPermi=
"['enterpriseWechat:view']"
size=
"mini"
type=
"text"
icon=
"el-icon-view"
@
click=
"goRoute(scope.row.messageId, 'detail')"
>
查看
</el-button
>
<el-button
v-hasPermi=
"['enterpriseWechat:edit']"
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
disabled=
""
@
click=
"goRoute(scope.row, 1)"
>
编辑
</el-button
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
...
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