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
3142b6fd
Commit
3142b6fd
authored
Nov 12, 2018
by
zhangmeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
71199f13
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
110 additions
and
110 deletions
+110
-110
index.html
dist/index.html
+2
-2
app.91379a22644397b84610.js
dist/static/js/app.91379a22644397b84610.js
+0
-0
batch-dialog.vue
src/views/ecm/batch-dialog.vue
+1
-1
list.vue
src/views/ecm/list.vue
+107
-107
No files found.
dist/index.html
View file @
3142b6fd
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><meta
name=
viewport
content=
"width=device-width,initial-scale=1"
><link
rel=
"shortcut icon"
href=
./static/img/favicon.ico
><title>
GIC后台
</title><link
rel=
stylesheet
type=
text/css
href=
static/css/iconfont.css
><link
rel=
stylesheet
type=
text/css
href=
static/css/common.css
><link
href=
/marketing/static/css/app.50b60f2ce454775a58f1431c490672f6.css
rel=
stylesheet
></head><body><div
id=
app
></div><script
type=
text/javascript
src=
/marketing/static/js/manifest.0a85049e489e85ac5f0a.js
></script><script
type=
text/javascript
src=
/marketing/static/js/vendor.3e2a22ee87104fc44e91.js
></script><script
type=
text/javascript
src=
/marketing/static/js/app.8c9725cbbb69439066e5.js
></script></body></html>
\ No newline at end of file
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><meta
name=
viewport
content=
"width=device-width,initial-scale=1"
><link
rel=
"shortcut icon"
href=
./static/img/favicon.ico
><title>
GIC后台
</title><link
rel=
stylesheet
type=
text/css
href=
static/css/iconfont.css
><link
rel=
stylesheet
type=
text/css
href=
static/css/common.css
><link
href=
/marketing/static/css/app.50b60f2ce454775a58f1431c490672f6.css
rel=
stylesheet
></head><body><div
id=
app
></div><script
type=
text/javascript
src=
/marketing/static/js/manifest.0a85049e489e85ac5f0a.js
></script><script
type=
text/javascript
src=
/marketing/static/js/vendor.3e2a22ee87104fc44e91.js
></script><script
type=
text/javascript
src=
/marketing/static/js/app.91379a22644397b84610.js
></script></body></html>
\ No newline at end of file
dist/static/js/app.
8c9725cbbb69439066e5
.js
→
dist/static/js/app.
91379a22644397b84610
.js
View file @
3142b6fd
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/views/ecm/batch-dialog.vue
View file @
3142b6fd
...
...
@@ -52,7 +52,7 @@ export default {
},
data
()
{
return
{
successOptions
:[{
value
:
''
,
label
:
'
所有类型
'
},{
value
:
0
,
label
:
'不满足'
},{
value
:
1
,
label
:
'满足'
}],
successOptions
:[{
value
:
''
,
label
:
'
发送条件
'
},{
value
:
0
,
label
:
'不满足'
},{
value
:
1
,
label
:
'满足'
}],
listParams
:{
ecmPlanQuartzLogId
:
''
,
success
:
''
,
...
...
src/views/ecm/list.vue
View file @
3142b6fd
...
...
@@ -46,120 +46,120 @@ import {loadEcmList,deleteEcm,offlineEcmPlan} from '@/service/api/ecmApi.js';
import
{
sceneSettingList
}
from
'@/service/api/commonApi.js'
;
const
marketingTypeOptions
=
[{
value
:
''
,
label
:
'所有发送类型'
},{
value
:
'card'
,
label
:
'卡券营销'
}
,{
value
:
'message'
,
label
:
'短信营销'
}
,{
value
:
'teletext'
,
label
:
'图文营销'
},{
value
:
'text'
,
label
:
'文本营销'
},{
value
:
'teltask'
,
label
:
'话务'
},{
value
:
'image'
,
label
:
'微信图片'
}];
export
default
{
name
:
'ecm'
,
data
()
{
return
{
effectTypeOption
:[{
value
:
-
1
,
label
:
'所有时效'
},{
value
:
0
,
label
:
'实时'
},{
value
:
1
,
label
:
'定时'
}],
onlineOptions
:[{
value
:
''
,
label
:
'所有上线状态'
},{
value
:
0
,
label
:
'待上线'
},{
value
:
1
,
label
:
'已上线'
},{
value
:
2
,
label
:
'已下线'
}],
sceneSettingIdOptions
:[],
marketingTypeOptions
,
listParams
:{
effectType
:
-
1
,
marketingType
:
''
,
sceneSettingId
:
''
,
onlineStatus
:
''
,
searchName
:
''
,
currentPage
:
1
,
pageSize
:
20
},
total
:
0
,
loading
:
false
,
tableHeader
:[
{
label
:
'计划名称'
,
prop
:
'ecmPlanName'
,
minWidth
:
'120'
,
align
:
'left'
,
fixed
:
'left'
},
{
label
:
'时效'
,
prop
:
'effectType'
,
width
:
'120'
,
align
:
'left'
,
formatter
(
row
){
return
row
.
effectType
?(
`<span><i class="el-icon-time fz18 vertical-middle"></i><span class="vertical-middle"> 每天
${
row
.
effectTime
}
:00</span></span>`
):
'实时'
}},
{
label
:
'营销方式'
,
prop
:
'marketingType'
,
minWidth
:
'120'
,
align
:
'left'
},
{
label
:
'营销场景'
,
prop
:
'sceneSettingName'
,
width
:
'120'
,
align
:
'left'
},
{
label
:
'营销人次'
,
prop
:
'timesForPeople'
,
width
:
'120'
,
align
:
'left'
},
{
label
:
'上线状态'
,
prop
:
'onlineStatus'
,
width
:
'120'
,
align
:
'left'
,
formatter
(
row
){
let
result
=
'--'
;
switch
(
row
.
onlineStatus
)
{
case
0
:
result
=
'<span class="dm-status--primary">待上线</span>'
;
break
;
case
1
:
result
=
'<span class="dm-status--success">已上线</span>'
;
break
;
case
2
:
result
=
'<span class="dm-status--info">已下线</span>'
;
break
;
}
return
result
;
}},
],
tableList
:[]
}
name
:
'ecm'
,
data
()
{
return
{
effectTypeOption
:[{
value
:
-
1
,
label
:
'所有时效'
},{
value
:
0
,
label
:
'实时'
},{
value
:
1
,
label
:
'定时'
}],
onlineOptions
:[{
value
:
''
,
label
:
'所有上线状态'
},{
value
:
0
,
label
:
'待上线'
},{
value
:
1
,
label
:
'已上线'
},{
value
:
2
,
label
:
'已下线'
}],
sceneSettingIdOptions
:[],
marketingTypeOptions
,
listParams
:{
effectType
:
-
1
,
marketingType
:
''
,
sceneSettingId
:
''
,
onlineStatus
:
''
,
searchName
:
''
,
currentPage
:
1
,
pageSize
:
20
},
total
:
0
,
loading
:
false
,
tableHeader
:[
{
label
:
'计划名称'
,
prop
:
'ecmPlanName'
,
minWidth
:
'120'
,
align
:
'left'
,
fixed
:
'left'
},
{
label
:
'时效'
,
prop
:
'effectType'
,
width
:
'120'
,
align
:
'left'
,
formatter
(
row
){
return
row
.
effectType
?(
`<span><i class="el-icon-time fz18 vertical-middle"></i><span class="vertical-middle"> 每天
${
row
.
effectTime
}
:00</span></span>`
):
'实时'
}},
{
label
:
'营销方式'
,
prop
:
'marketingType'
,
minWidth
:
'120'
,
align
:
'left'
},
{
label
:
'营销场景'
,
prop
:
'sceneSettingName'
,
width
:
'120'
,
align
:
'left'
},
{
label
:
'营销人次'
,
prop
:
'timesForPeople'
,
width
:
'120'
,
align
:
'left'
},
{
label
:
'上线状态'
,
prop
:
'onlineStatus'
,
width
:
'120'
,
align
:
'left'
,
formatter
(
row
){
let
result
=
'--'
;
switch
(
row
.
onlineStatus
)
{
case
0
:
result
=
'<span class="dm-status--primary">待上线</span>'
;
break
;
case
1
:
result
=
'<span class="dm-status--success">已上线</span>'
;
break
;
case
2
:
result
=
'<span class="dm-status--info">已下线</span>'
;
break
;
}
return
result
;
}},
],
tableList
:[]
}
},
created
()
{
this
.
loadEcmList
();
this
.
sceneSettingList
();
this
.
$store
.
commit
(
'aside_handler'
,
false
);
this
.
$store
.
commit
(
'mutations_breadcrumb'
,[{
name
:
'营销管理'
,
path
:
''
},{
name
:
'智能营销'
,
path
:
'/ecm'
}]);
},
methods
:
{
search
()
{
this
.
listParams
.
currentPage
=
1
;
this
.
loadEcmList
();
},
created
()
{
handleSizeChange
(
val
)
{
this
.
listParams
.
pageSize
=
val
;
this
.
loadEcmList
();
this
.
sceneSettingList
();
this
.
$store
.
commit
(
'aside_handler'
,
false
);
this
.
$store
.
commit
(
'mutations_breadcrumb'
,[{
name
:
'营销管理'
,
path
:
''
},{
name
:
'智能营销'
,
path
:
'/ecm'
}]);
},
methods
:
{
search
()
{
this
.
listParams
.
currentPage
=
1
;
this
.
loadEcmList
();
},
handleSizeChange
(
val
)
{
this
.
listParams
.
pageSize
=
val
;
this
.
loadEcmList
();
},
handleCurrentChange
(
val
)
{
this
.
listParams
.
currentPage
=
val
;
this
.
loadEcmList
();
},
async
loadEcmList
()
{
this
.
loading
=
true
;
let
res
=
await
loadEcmList
(
this
.
listParams
);
console
.
log
(
res
)
this
.
tableList
=
res
.
result
.
result
||
[];
this
.
total
=
res
.
result
.
totalCount
;
this
.
loading
=
false
;
},
//编辑
editData
(
row
){
this
.
$router
.
push
(
'/ecm/edit/'
+
row
.
ecmPlanId
)
},
// 记录
toRecord
(
row
){
this
.
$router
.
push
(
`/ecm/
${
row
.
effectType
?
'batchlist'
:
'currentlist'
}
/
${
row
.
ecmPlanId
}
/
${
row
.
ecmPlanName
}
`
);
},
// 删除
async
delData
(
row
){
try
{
let
res
=
await
deleteEcm
({
ecmPlanId
:
row
.
ecmPlanId
});
if
(
res
.
errorCode
===
0
)
{
this
.
$tips
({
type
:
'success'
,
message
:
'删除成功!'
});
this
.
loadEcmList
();
}
else
{
this
.
$tips
({
type
:
'error'
,
message
:
res
.
message
||
'删除失败!'
});
}
}
catch
(
err
)
{
this
.
$tips
({
type
:
'error'
,
message
:
'删除失败!'
});
handleCurrentChange
(
val
)
{
this
.
listParams
.
currentPage
=
val
;
this
.
loadEcmList
();
},
async
loadEcmList
()
{
this
.
loading
=
true
;
let
res
=
await
loadEcmList
(
this
.
listParams
);
console
.
log
(
res
)
this
.
tableList
=
res
.
result
.
result
||
[];
this
.
total
=
res
.
result
.
totalCount
;
this
.
loading
=
false
;
},
//编辑
editData
(
row
){
this
.
$router
.
push
(
'/ecm/edit/'
+
row
.
ecmPlanId
)
},
// 记录
toRecord
(
row
){
this
.
$router
.
push
(
`/ecm/
${
row
.
effectType
?
'batchlist'
:
'currentlist'
}
/
${
row
.
ecmPlanId
}
/
${
row
.
ecmPlanName
}
`
);
},
// 删除
async
delData
(
row
){
try
{
let
res
=
await
deleteEcm
({
ecmPlanId
:
row
.
ecmPlanId
});
if
(
res
.
errorCode
===
0
)
{
this
.
$tips
({
type
:
'success'
,
message
:
'删除成功!'
});
this
.
loadEcmList
();
}
else
{
this
.
$tips
({
type
:
'error'
,
message
:
res
.
message
||
'删除失败!'
});
}
}
,
// 下线
async
offlineEcmPlan
(
row
){
try
{
let
res
=
await
offlineEcmPlan
({
ecmPlanId
:
row
.
ecmPlanId
});
if
(
res
.
errorCode
===
0
)
{
this
.
$tips
({
type
:
'success'
,
message
:
'下线成功!'
});
this
.
loadEcmList
(
);
}
else
{
this
.
$tips
({
type
:
'error'
,
message
:
res
.
message
||
'下线失败
!'
});
}
}
catch
(
err
)
{
this
.
$tips
({
type
:
'error'
,
message
:
'下线失败!'
});
}
catch
(
err
)
{
this
.
$tips
({
type
:
'error'
,
message
:
'删除失败!'
});
}
},
// 下线
async
offlineEcmPlan
(
row
)
{
try
{
let
res
=
await
offlineEcmPlan
({
ecmPlanId
:
row
.
ecmPlanId
}
);
if
(
res
.
errorCode
===
0
)
{
this
.
$tips
({
type
:
'success'
,
message
:
'下线成功
!'
});
this
.
loadEcmList
();
}
else
{
this
.
$tips
({
type
:
'error'
,
message
:
res
.
message
||
'下线失败!'
});
}
},
async
sceneSettingList
()
{
let
res
=
await
sceneSettingList
();
this
.
sceneSettingIdOptions
=
res
.
result
||
[];
this
.
sceneSettingIdOptions
.
unshift
({
sceneName
:
'所有营销场景'
,
sceneSettingId
:
''
})
}
catch
(
err
)
{
this
.
$tips
({
type
:
'error'
,
message
:
'下线失败!'
});
}
},
async
sceneSettingList
()
{
let
res
=
await
sceneSettingList
();
this
.
sceneSettingIdOptions
=
res
.
result
||
[];
this
.
sceneSettingIdOptions
.
unshift
({
sceneName
:
'所有营销场景'
,
sceneSettingId
:
''
})
}
}
}
</
script
>
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