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
1b9aa362
Commit
1b9aa362
authored
Apr 23, 2021
by
黑潮
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 筛选条件
parent
84cdcb62
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
7 deletions
+33
-7
batch-list.vue
src/views/ecm/batch-list.vue
+18
-3
list.vue
src/views/ecm/list.vue
+15
-4
No files found.
src/views/ecm/batch-list.vue
View file @
1b9aa362
...
...
@@ -3,7 +3,7 @@
<div
class=
"pb22 clearfix"
>
<el-date-picker
class=
"w250"
v-model=
"dateTime"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
@
change=
"search"
></el-date-picker>
<el-select
class=
"dm-select"
clearable
v-model=
"listParams.type"
placeholder=
"选择上线状态"
@
change=
"search"
>
<el-option
v-for=
"(v, i) in
t
ypeOptions"
:key=
"i"
:label=
"v.label"
:value=
"v.value"
></el-option>
<el-option
v-for=
"(v, i) in
showT
ypeOptions"
:key=
"i"
:label=
"v.label"
:value=
"v.value"
></el-option>
</el-select>
<el-input
v-model=
"listParams.title"
class=
"w200"
placeholder=
"输入营销内容标题"
clearable
@
change=
"search"
><i
slot=
"prefix"
class=
"el-input__icon el-icon-search"
></i></el-input>
</div>
...
...
@@ -44,7 +44,7 @@
</section>
</template>
<
script
>
import
{
ecmBatchSendInfos
}
from
'@/service/api/ecmApi.js'
;
import
{
ecmBatchSendInfos
,
getUseStoredFalg
,
getXsxsFalg
}
from
'@/service/api/ecmApi.js'
;
import
{
formatDateTimeByType
}
from
'@/utils/index.js'
;
import
batchDialog
from
'./batch-dialog'
;
...
...
@@ -57,7 +57,7 @@ export default {
let
that
=
this
;
return
{
dateTime
:
[
Date
.
now
()
-
30
*
24
*
60
*
60
*
1000
,
Date
.
now
()],
typeOptions
:
[{
value
:
''
,
label
:
'所有营销方式'
},
{
value
:
'teletext'
,
label
:
'图文'
},
{
value
:
'text'
,
label
:
'文本'
},
{
value
:
'image'
,
label
:
'图片'
},
{
value
:
'card'
,
label
:
'卡券'
},
{
value
:
'wxa'
,
label
:
'小程序'
},
{
value
:
'message'
,
label
:
'短信'
},
{
value
:
'teltask'
,
label
:
'话务'
},
{
value
:
'integral'
,
label
:
'积分'
}],
// eslint-disable-line
typeOptions
:
[{
value
:
''
,
label
:
'所有营销方式'
,
visible
:
true
},
{
value
:
'teletext'
,
label
:
'图文'
,
visible
:
true
},
{
value
:
'text'
,
label
:
'文本'
,
visible
:
true
},
{
value
:
'image'
,
label
:
'图片'
,
visible
:
true
},
{
value
:
'card'
,
label
:
'卡券'
,
visible
:
true
},
{
value
:
'wxa'
,
label
:
'小程序'
,
visible
:
true
},
{
value
:
'message'
,
label
:
'短信'
,
visible
:
true
},
{
value
:
'teltask'
,
label
:
'话务'
,
visible
:
true
},
{
value
:
'integral'
,
label
:
'积分'
,
visible
:
true
},
{
value
:
'grade'
,
label
:
'会员卡升级'
,
visible
:
false
},
{
value
:
'qywx'
,
label
:
'企微任务'
,
visible
:
false
}],
// eslint-disable-line
listParams
:
{
ecmPlanId
:
this
.
$route
.
params
.
id
,
beginTime
:
''
,
...
...
@@ -118,6 +118,16 @@ export default {
};
},
created
()
{
getXsxsFalg
().
then
(
res
=>
{
if
(
res
.
result
)
{
this
.
typeOptions
.
find
(
el
=>
el
.
value
==
'qywx'
).
visible
=
true
;
}
});
getUseStoredFalg
().
then
(
res
=>
{
if
(
res
.
result
.
useStoredFlag
)
{
this
.
typeOptions
.
find
(
el
=>
el
.
value
==
'grade'
).
visible
=
true
;
}
});
this
.
ecmBatchSendInfos
();
this
.
$store
.
commit
(
'mutations_breadcrumb'
,
[{
name
:
'营销管理'
,
path
:
''
},
{
name
:
'智能营销'
,
path
:
'/ecm'
},
{
name
:
this
.
$route
.
query
.
name
+
' - 批次记录'
,
path
:
''
}]);
// eslint-disable-line
},
...
...
@@ -137,6 +147,11 @@ export default {
beforeDestroy
()
{
this
.
$store
.
commit
(
'mutations_layoutTips'
,
''
);
},
computed
:
{
showTypeOptions
()
{
return
this
.
typeOptions
.
filter
(
el
=>
el
.
visible
==
true
);
}
},
methods
:
{
formatDateTimeByType
,
search
()
{
...
...
src/views/ecm/list.vue
View file @
1b9aa362
...
...
@@ -5,7 +5,7 @@
<el-option
v-for=
"(v, i) in effectTypeOption"
:key=
"i"
:label=
"v.label"
:value=
"v.value"
></el-option>
</el-select>
<el-select
class=
"dm-select"
clearable
v-model=
"listParams.marketingType"
placeholder=
"选择营销方式"
@
change=
"search"
>
<el-option
v-for=
"(v, i) in
m
arketingTypeOptions"
:key=
"i"
:label=
"v.label"
:value=
"v.value"
></el-option>
<el-option
v-for=
"(v, i) in
showM
arketingTypeOptions"
:key=
"i"
:label=
"v.label"
:value=
"v.value"
></el-option>
</el-select>
<dm-activity-select
class=
"vertical-middle w150 mr5"
onlySelect
width=
"150"
:actId
.
sync=
"listParams.marketingActivityId"
@
actUpdate=
"search"
></dm-activity-select>
<el-select
class=
"dm-select"
clearable
v-model=
"listParams.onlineStatus"
placeholder=
"选择上线状态"
@
change=
"search"
>
...
...
@@ -44,9 +44,9 @@
</template>
<
script
>
import
activitySelect
from
'@/components/activity-select/index.vue'
;
import
{
loadEcmList
,
deleteEcm
,
offlineEcmPlan
,
getUseStoredFalg
}
from
'@/service/api/ecmApi.js'
;
import
{
loadEcmList
,
deleteEcm
,
offlineEcmPlan
,
getUseStoredFalg
,
getXsxsFalg
}
from
'@/service/api/ecmApi.js'
;
import
{
formatDateTimeByType
}
from
'@/utils/index.js'
;
const
marketingTypeOptions
=
[{
value
:
''
,
label
:
'所有发送类型'
},
{
value
:
'card'
,
label
:
'卡券营销'
},
{
value
:
'message'
,
label
:
'短信营销'
},
{
value
:
'teletext'
,
label
:
'图文营销'
},
{
value
:
'text'
,
label
:
'文本营销'
},
{
value
:
'teltask'
,
label
:
'话务'
},
{
value
:
'image'
,
label
:
'微信图片'
}];
// eslint-disable-line
const
marketingTypeOptions
=
[{
value
:
''
,
label
:
'所有发送类型'
,
visible
:
true
},
{
value
:
'card'
,
label
:
'卡券营销'
,
visible
:
true
},
{
value
:
'message'
,
label
:
'短信营销'
,
visible
:
true
},
{
value
:
'teletext'
,
label
:
'图文营销'
,
visible
:
true
},
{
value
:
'text'
,
label
:
'文本营销'
,
visible
:
true
},
{
value
:
'teltask'
,
label
:
'话务'
,
visible
:
true
},
{
value
:
'image'
,
label
:
'微信图片'
,
visible
:
true
},
{
value
:
'grade'
,
label
:
'会员卡升级'
,
visible
:
false
},
{
value
:
'qywx'
,
label
:
'企微任务'
,
visible
:
false
}];
// eslint-disable-line
export
default
{
name
:
'ecm'
,
data
()
{
...
...
@@ -130,15 +130,26 @@ export default {
activitySelect
},
created
()
{
getXsxsFalg
().
then
(
res
=>
{
this
.
xsxsFlag
=
res
.
result
;
if
(
this
.
xsxsFlag
)
{
this
.
marketingTypeOptions
.
find
(
el
=>
el
.
value
==
'qywx'
).
visible
=
true
;
}
});
getUseStoredFalg
().
then
(
res
=>
{
if
(
res
.
result
.
useStoredFlag
)
{
this
.
marketingTypeOptions
=
[...
this
.
marketingTypeOptions
,
{
value
:
'grade'
,
label
:
'会员卡升级'
}]
;
this
.
marketingTypeOptions
.
find
(
el
=>
el
.
value
==
'grade'
).
visible
=
true
;
}
});
this
.
loadEcmList
();
this
.
$store
.
commit
(
'aside_handler'
,
false
);
this
.
$store
.
commit
(
'mutations_breadcrumb'
,
[{
name
:
'营销管理'
,
path
:
''
},
{
name
:
'智能营销'
,
path
:
'/ecm'
}]);
// eslint-disable-line
},
computed
:
{
showMarketingTypeOptions
()
{
return
this
.
marketingTypeOptions
.
filter
(
el
=>
el
.
visible
==
true
);
}
},
methods
:
{
search
()
{
this
.
listParams
.
currentPage
=
1
;
...
...
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