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 f808e2ef
authored
Dec 27, 2021
by
test
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
消息群发详情立即发送状态下隐藏同步按钮
1 parent
bd45b149
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
12 deletions
linkwe-ui/src/utils/request.js
linkwe-ui/src/views/groupMessage/add.vue
linkwe-ui/src/views/groupMessage/detail.vue
linkwe-ui/src/views/groupMessage/record.vue
linkwe-ui/src/utils/request.js
View file @
f808e2e
...
@@ -8,7 +8,7 @@ axios.defaults.headers['Content-Type'] = 'application/json;charset=utf-8'
...
@@ -8,7 +8,7 @@ axios.defaults.headers['Content-Type'] = 'application/json;charset=utf-8'
// 创建axios实例
// 创建axios实例
const
service
=
axios
.
create
({
const
service
=
axios
.
create
({
// axios中请求配置有baseURL选项,表示请求URL公共部分
// axios中请求配置有baseURL选项,表示请求URL公共部分
baseURL
:
process
.
env
.
NODE_ENV
===
'development'
?
'
/
api'
:
process
.
env
.
VUE_APP_BASE_API
,
baseURL
:
process
.
env
.
NODE_ENV
===
'development'
?
'
http://demo.linkwechat.cn/dev-
api'
:
process
.
env
.
VUE_APP_BASE_API
,
// 超时
// 超时
timeout
:
10000
timeout
:
10000
})
})
...
...
linkwe-ui/src/views/groupMessage/add.vue
View file @
f808e2e
...
@@ -373,7 +373,6 @@
...
@@ -373,7 +373,6 @@
return
arr
return
arr
},
},
save
(
materialData
)
{
save
(
materialData
)
{
console
.
log
(
materialData
)
let
list
=
this
.
resetData
(
materialData
.
materialMsgList
)
let
list
=
this
.
resetData
(
materialData
.
materialMsgList
)
let
myObj
=
{
let
myObj
=
{
content
:
materialData
.
welcomeMsg
,
content
:
materialData
.
welcomeMsg
,
...
...
linkwe-ui/src/views/groupMessage/detail.vue
View file @
f808e2e
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
<div
class=
"name"
>
<div
class=
"name"
>
群发统计
群发统计
</div>
</div>
<div
class=
"operation"
>
<div
class=
"operation"
v-if=
"isTask"
>
<span
v-if=
"data.refreshTime"
>
最近同步时间:
{{
data
.
refreshTime
}}
</span>
<span
v-if=
"data.refreshTime"
>
最近同步时间:
{{
data
.
refreshTime
}}
</span>
<el-button
style=
"margin-left:20px;"
type=
"primary"
size=
"mini"
@
click=
"setFn"
>
同步
</el-button>
<el-button
style=
"margin-left:20px;"
type=
"primary"
size=
"mini"
@
click=
"setFn"
>
同步
</el-button>
</div>
</div>
...
@@ -203,12 +203,14 @@
...
@@ -203,12 +203,14 @@
activeName
:
'0'
,
activeName
:
'0'
,
total1
:
0
,
total1
:
0
,
total0
:
0
,
total0
:
0
,
msgId
:
''
msgId
:
''
,
isTask
:
0
}
}
},
},
watch
:
{},
watch
:
{},
computed
:
{},
computed
:
{},
created
()
{
created
()
{
this
.
isTask
=
this
.
$route
.
query
.
isTask
this
.
msgId
=
this
.
$route
.
query
.
id
this
.
msgId
=
this
.
$route
.
query
.
id
this
.
queryMember
.
msgTemplateId
=
this
.
msgId
this
.
queryMember
.
msgTemplateId
=
this
.
msgId
this
.
queryCustomer
.
msgTemplateId
=
this
.
msgId
this
.
queryCustomer
.
msgTemplateId
=
this
.
msgId
...
@@ -226,6 +228,8 @@
...
@@ -226,6 +228,8 @@
}).
then
(()
=>
{
}).
then
(()
=>
{
syncMsg
(
this
.
msgId
).
then
(
fdfd
=>
{
syncMsg
(
this
.
msgId
).
then
(
fdfd
=>
{
this
.
getDetail
()
this
.
getDetail
()
this
.
getMemberList
()
this
.
getCustomerList
()
this
.
$message
({
this
.
$message
({
type
:
'success'
,
type
:
'success'
,
message
:
'同步成功!'
message
:
'同步成功!'
...
@@ -286,18 +290,18 @@
...
@@ -286,18 +290,18 @@
arr
.
push
(
obj
)
arr
.
push
(
obj
)
}
else
if
(
dd
.
msgType
===
'link'
)
{
}
else
if
(
dd
.
msgType
===
'link'
)
{
let
ob
=
{
let
ob
=
{
msgType
:
'
7
'
,
msgType
:
'
8
'
,
materialName
:
dd
.
title
,
materialName
:
dd
.
title
,
content
:
dd
.
linkUrl
materialUrl
:
dd
.
linkUrl
}
}
arr
.
push
(
ob
)
arr
.
push
(
ob
)
}
else
if
(
dd
.
msgType
===
'miniprogram'
)
{
}
else
if
(
dd
.
msgType
===
'miniprogram'
)
{
let
ff
=
{
let
ff
=
{
msgType
:
'
8
'
,
msgType
:
'
9
'
,
materialUrl
:
dd
.
appId
,
digest
:
dd
.
appId
,
materialName
:
dd
.
title
,
materialName
:
dd
.
title
,
coverUrl
:
dd
.
picUrl
,
coverUrl
:
dd
.
picUrl
,
content
:
dd
.
linkUrl
materialUrl
:
dd
.
linkUrl
}
}
arr
.
push
(
ff
)
arr
.
push
(
ff
)
}
}
...
...
linkwe-ui/src/views/groupMessage/record.vue
View file @
f808e2e
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<div>
<div>
<div>
<div>
<div>
<div>
<el-button
type=
"primary"
style=
"margin-bottom: 20px;"
@
click=
"goRoute('', 'add')"
>
新建群发
</el-button>
<el-button
type=
"primary"
style=
"margin-bottom: 20px;"
@
click=
"goRoute('', '
', '
add')"
>
新建群发
</el-button>
</div>
</div>
<el-form
:model=
"query"
ref=
"queryForm"
:inline=
"true"
label-position=
"left"
class=
"top-search"
label-width=
"70px"
>
<el-form
:model=
"query"
ref=
"queryForm"
:inline=
"true"
label-position=
"left"
class=
"top-search"
label-width=
"70px"
>
<el-form-item
label=
"群发内容"
prop=
"content"
>
<el-form-item
label=
"群发内容"
prop=
"content"
>
...
@@ -47,7 +47,7 @@
...
@@ -47,7 +47,7 @@
<el-table-column
label=
"操作"
align=
"center"
width=
"180"
>
<el-table-column
label=
"操作"
align=
"center"
width=
"180"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<!-- v-hasPermi="['enterpriseWechat:view']" -->
<!-- v-hasPermi="['enterpriseWechat:view']" -->
<el-button
size=
"mini"
type=
"text"
@
click=
"goRoute(scope.row.id, 'detail')"
>
详情
</el-button>
<el-button
size=
"mini"
type=
"text"
@
click=
"goRoute(scope.row.id,
scope.row.isTask,
'detail')"
>
详情
</el-button>
<el-divider
v-if=
"scope.row.isTask === 1 && scope.row.status === 0"
direction=
"vertical"
></el-divider>
<el-divider
v-if=
"scope.row.isTask === 1 && scope.row.status === 0"
direction=
"vertical"
></el-divider>
<el-button
size=
"mini"
v-if=
"scope.row.isTask === 1 && scope.row.status === 0"
type=
"text"
@
click=
"cancelSend(scope.row)"
>
取消发送
</el-button>
<el-button
size=
"mini"
v-if=
"scope.row.isTask === 1 && scope.row.status === 0"
type=
"text"
@
click=
"cancelSend(scope.row)"
>
取消发送
</el-button>
<!--
<el-button
v-hasPermi=
"['enterpriseWechat:edit']"
size=
"mini"
type=
"text"
disabled=
""
<!--
<el-button
v-hasPermi=
"['enterpriseWechat:edit']"
size=
"mini"
type=
"text"
disabled=
""
...
@@ -166,11 +166,14 @@
...
@@ -166,11 +166,14 @@
})
})
.
catch
(
function
()
{
})
.
catch
(
function
()
{
})
},
},
goRoute
(
id
,
path
)
{
goRoute
(
id
,
isTask
,
path
)
{
const
query
=
{}
const
query
=
{}
if
(
id
)
{
if
(
id
)
{
query
.
id
=
id
query
.
id
=
id
}
}
if
(
isTask
)
{
query
.
isTask
=
isTask
}
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'/customerMaintain/groupMessage/'
+
path
,
path
:
'/customerMaintain/groupMessage/'
+
path
,
query
query
...
...
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