Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
marketing
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
marketing-web
marketing
Commits
81753bc4
Commit
81753bc4
authored
Apr 14, 2020
by
chenxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 群发 定时必填时间限制
parent
449ad3c2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
0 deletions
+12
-0
group-send.vue
src/views/card/group-send.vue
+4
-0
form.vue
src/views/message/form.vue
+4
-0
form.vue
src/views/wechat/form.vue
+4
-0
No files found.
src/views/card/group-send.vue
View file @
81753bc4
...
...
@@ -465,6 +465,10 @@ export default {
// 保存校验
async
submit
(
formName
)
{
if
(
this
.
info
.
putOnType
==
1
&&
!
this
.
info
.
putOnTime
)
{
this
.
$tips
({
type
:
'warning'
,
message
:
'请设置发送时间'
});
return
;
}
if
(
this
.
form
.
putOnType
==
1
&&
new
Date
().
getTime
()
+
1000
*
60
*
5
>=
new
Date
(
this
.
form
.
putOnTime
))
{
this
.
$tips
({
type
:
'warning'
,
message
:
'定时发送的时间点必须晚于当前时间5分钟后'
});
return
;
...
...
src/views/message/form.vue
View file @
81753bc4
...
...
@@ -207,6 +207,10 @@ export default {
},
//提交表单
async
sendSms
()
{
if
(
this
.
info
.
sendType
==
1
&&
!
this
.
info
.
sendTime
)
{
this
.
$tips
({
type
:
'warning'
,
message
:
'请设置发送时间'
});
return
;
}
if
(
this
.
info
.
sendType
==
1
&&
new
Date
().
getTime
()
+
1000
*
60
*
5
>=
new
Date
(
this
.
info
.
sendTime
))
{
this
.
$tips
({
type
:
'warning'
,
message
:
'定时发送的时间点必须晚于当前时间5分钟后'
});
return
;
...
...
src/views/wechat/form.vue
View file @
81753bc4
...
...
@@ -267,6 +267,10 @@ export default {
// console.log(this.info);
// // 这里强制获取人群筛选器的配置项
// await this.$refs.peopleFilter.confirmSet();
if
(
this
.
info
.
sendType
==
1
&&
!
this
.
info
.
sendTime
)
{
this
.
$tips
({
type
:
'warning'
,
message
:
'请设置发送时间'
});
return
;
}
if
(
this
.
info
.
sendType
==
1
&&
new
Date
().
getTime
()
+
1000
*
60
*
5
>=
new
Date
(
this
.
info
.
sendTime
))
{
this
.
$tips
({
type
:
'warning'
,
message
:
'定时发送的时间点必须晚于当前时间5分钟后'
});
return
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment