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
6245bb88
Commit
6245bb88
authored
Jan 04, 2022
by
黑潮
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/12月迭代'
parents
44d2c01a
15f5784f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
7 deletions
+16
-7
group-send.vue
src/views/card/group-send.vue
+9
-4
form.js
src/views/ecm/form.js
+7
-3
No files found.
src/views/card/group-send.vue
View file @
6245bb88
...
...
@@ -163,6 +163,7 @@ import { listTemplateVariables } from '@/service/api/msgApi.js';
import
{
formatDateTimeByType
}
from
'@/utils/index.js'
;
import
itemCard
from
'./partials/item-card.vue'
;
import
varDialog
from
'./partials/variables.vue'
;
import
{
_debounce
}
from
'@/utils/index'
;
export
default
{
name
:
'card-group'
,
components
:
{
...
...
@@ -491,7 +492,10 @@ export default {
},
// 保存校验
async
submit
(
formName
)
{
submit
:
_debounce
(
async
function
(
formName
)
{
if
(
this
.
loading
)
{
return
;
}
if
(
this
.
form
.
putOnType
==
1
&&
!
this
.
form
.
putOnTime
)
{
this
.
$tips
({
type
:
'warning'
,
message
:
'请设置发送时间'
});
return
;
...
...
@@ -524,9 +528,10 @@ export default {
return
false
;
}
});
},
}
)
,
// 计算发送多少人
async
sendCard
()
{
this
.
loading
=
true
;
let
params
=
{
// memberSearchDTO:this.form.memberSearchDTO,
memberSearchDTO
:
this
.
form
.
memberType
?
this
.
form
.
memberGroupIds
:
this
.
form
.
memberSearchDTO
,
...
...
@@ -536,8 +541,8 @@ export default {
};
// console.log(this.form.memberGroupIds);
let
res
=
await
checkPutonMemberIds
(
params
);
if
(
res
.
errorCode
===
0
)
{
let
res
=
await
checkPutonMemberIds
(
params
)
.
finally
(()
=>
(
this
.
loading
=
false
))
;
if
(
res
&&
res
.
errorCode
===
0
)
{
let
sumPerson
=
res
.
result
.
totalSendCount
;
let
html
=
``
;
console
.
log
(
this
.
cardInfo
);
...
...
src/views/ecm/form.js
View file @
6245bb88
...
...
@@ -293,8 +293,9 @@ export default {
// 区分人员筛选和会员分组,需要传这个flag
groupType
:
this
.
form
.
memberType
};
const
res
=
await
checkMessageSendCount
(
params
);
if
(
res
.
errorCode
===
0
)
{
this
.
loading
=
true
;
const
res
=
await
checkMessageSendCount
(
params
).
finally
(()
=>
(
this
.
loading
=
false
));
if
(
res
&&
res
.
errorCode
===
0
)
{
this
.
$confirm
(
`<div>
<div class="inline-block w300 vertical-middle ">
...
...
@@ -650,6 +651,9 @@ export default {
},
// 保存 校验
submit
:
_debounce
(
async
function
(
formName
)
{
if
(
this
.
loading
)
{
return
;
}
if
(
this
.
$refs
.
marketingEvent
.
list
.
length
<
1
)
{
this
.
$tips
({
type
:
'warning'
,
message
:
'请至少保存一条营销事件'
});
return
;
...
...
@@ -994,6 +998,7 @@ export default {
.
then
(
res
=>
{
if
(
res
.
errorCode
===
0
)
{
if
(
this
.
isEdit
)
{
this
.
loading
=
false
;
this
.
$confirm
(
'操作成功, 是否返回列表?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
...
...
@@ -1003,7 +1008,6 @@ export default {
this
.
$router
.
push
(
'/ecm/list'
);
})
.
catch
(
err
=>
{
this
.
loading
=
false
;
this
.
getEcmInfo
();
});
}
else
{
...
...
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