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
6d3718a3
Commit
6d3718a3
authored
Aug 14, 2020
by
chenxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: build
parent
ab57e6cc
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
8 deletions
+18
-8
index.html
dist/index.html
+2
-2
cdKey.10403b2fa917a4d3c6f2.js
dist/static/js/cdKey.10403b2fa917a4d3c6f2.js
+0
-2
cdKey.9f5437e4f0a3a4acde1d.js
dist/static/js/cdKey.9f5437e4f0a3a4acde1d.js
+2
-0
manifest.64c9b57eb6e2e5fe5c59.js
dist/static/js/manifest.64c9b57eb6e2e5fe5c59.js
+2
-2
cdKeyApi.js
src/service/api/cdKeyApi.js
+3
-0
list.vue
src/views/cdkey/list.vue
+9
-2
No files found.
dist/index.html
View file @
6d3718a3
<!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/fonts/iconfont.css
><link
rel=
stylesheet
type=
text/css
href=
static/css/common.css
><link
rel=
stylesheet
href=
//web-1251519181.file.myqcloud.com/components/element.2.12.0.css
><link
href=
/marketing/static/css/main.5806127cadb7278d56a799d9ba18dc8e.css
rel=
stylesheet
></head><body><div
id=
app
></div><script
src=
//web-1251519181.file.myqcloud.com/lib/vue/2.5.2/vue.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/element.2.12.0.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/header.2.0.36.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/footer.2.0.04.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/card.2.0.12.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/store.2.0.01.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/member-group.2.2.22.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/store-card.2.0.18.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/confirm-people.2.0.01.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/people.2.0.42.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/export-excel.2.0.13.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/input.2.0.20.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/delete.2.0.00.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/selector.1.2.10.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/pagination.1.0.8.js
></script><script
type=
text/javascript
src=
/marketing/static/js/manifest.c9f01e2df2322d89a3e6.js
></script><script
type=
text/javascript
src=
/marketing/static/js/vendor.b30a466c3b2d11195801.js
></script><script
type=
text/javascript
src=
/marketing/static/js/main.639926e246003bf2a575.js
></script></body></html>
<!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/fonts/iconfont.css
><link
rel=
stylesheet
type=
text/css
href=
static/css/common.css
><link
rel=
stylesheet
href=
//web-1251519181.file.myqcloud.com/components/element.2.12.0.css
><link
href=
/marketing/static/css/main.5806127cadb7278d56a799d9ba18dc8e.css
rel=
stylesheet
></head><body><div
id=
app
></div><script
src=
//web-1251519181.file.myqcloud.com/lib/vue/2.5.2/vue.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/element.2.12.0.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/header.2.0.36.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/footer.2.0.04.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/card.2.0.12.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/store.2.0.01.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/member-group.2.2.22.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/store-card.2.0.18.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/confirm-people.2.0.01.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/people.2.0.42.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/export-excel.2.0.13.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/input.2.0.20.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/delete.2.0.00.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/selector.1.2.10.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/pagination.1.0.8.js
></script><script
type=
text/javascript
src=
/marketing/static/js/manifest.64c9b57eb6e2e5fe5c59.js
></script><script
type=
text/javascript
src=
/marketing/static/js/vendor.b30a466c3b2d11195801.js
></script><script
type=
text/javascript
src=
/marketing/static/js/main.639926e246003bf2a575.js
></script></body></html>
\ No newline at end of file
\ No newline at end of file
dist/static/js/cdKey.10403b2fa917a4d3c6f2.js
deleted
100644 → 0
View file @
ab57e6cc
webpackJsonp
([
8
],{
"+UPp"
:
function
(
e
,
t
){},
"0SQO"
:
function
(
e
,
t
,
a
){
"use strict"
;
t
.
a
=
{
methods
:{
refresh
:
function
(){
this
.
listParams
.
currentPage
=
1
,
this
.
getTableList
()},
handleSizeChange
:
function
(
e
){
this
.
listParams
.
pageSize
=
e
,
this
.
getTableList
()},
handleCurrentChange
:
function
(
e
){
this
.
listParams
.
currentPage
=
e
,
this
.
getTableList
()}}}},
"1ION"
:
function
(
e
,
t
,
a
){
"use strict"
;
a
.
d
(
t
,
"a"
,
function
(){
return
r
}),
a
.
d
(
t
,
"c"
,
function
(){
return
s
}),
a
.
d
(
t
,
"f"
,
function
(){
return
l
}),
a
.
d
(
t
,
"d"
,
function
(){
return
o
}),
a
.
d
(
t
,
"e"
,
function
(){
return
c
}),
a
.
d
(
t
,
"b"
,
function
(){
return
d
});
var
i
=
a
(
"6Hqf"
),
n
=
"api-marketing/"
,
r
=
(
a
(
"2uFj"
).
a
.
api
,
function
(
e
){
return
Object
(
i
.
b
)(
n
+
"marketing-activity-page"
,
e
)}),
s
=
function
(
e
){
return
Object
(
i
.
b
)(
n
+
"del-marketing-activity"
,
e
)},
l
=
function
(
e
){
return
Object
(
i
.
b
)(
n
+
"expire-marketing-activity"
,
e
)},
o
=
function
(
e
){
return
Object
(
i
.
b
)(
n
+
"get-marketing-activity-detail"
,
e
)},
c
=
function
(
e
){
return
Object
(
i
.
b
)(
n
+
"save-edit-marketing-activity"
,
e
)},
d
=
function
(
e
){
return
Object
(
i
.
b
)(
n
+
"marketing-activity-statistics"
,
e
)}},
"5LRq"
:
function
(
e
,
t
){},
"6ncD"
:
function
(
e
,
t
,
a
){
"use strict"
;
var
i
=
{
name
:
"time-count"
,
data
:
function
(){
return
{
isStart
:
!
1
,
globalTimer
:
null
,
countString
:
"0秒"
,
day
:
0
,
hour
:
0
,
minute
:
0
,
second
:
0
,
millisecond
:
0
,
countVal
:
this
.
defaultVal
,
pauseTime
:
0
,
nowDate
:
Date
.
now
()}},
watch
:{
countString
:{
deep
:
!
0
,
handler
:
function
(
e
,
t
){
this
.
needSendSunc
&&
this
.
passToParent
(
e
)}},
needSendSunc
:{
deep
:
!
0
,
handler
:
function
(
e
){
e
&&
this
.
passToParent
(
this
.
countString
)}}},
props
:{
sendSync
:{
type
:
Boolean
,
default
:
!
1
},
autoStart
:{
type
:
Boolean
,
default
:
!
1
},
defaultVal
:{
type
:
Number
,
default
:
0
}},
mounted
:
function
(){
this
.
autoStart
&&
this
.
startCountFn
()},
computed
:{
needSendSunc
:
function
(){
return
this
.
sendSync
}},
created
:
function
(){
this
.
$on
(
"startCount"
,
function
(){
this
.
startCountFn
()}),
this
.
$on
(
"stopCount"
,
function
(){
this
.
stopCountFn
()})},
methods
:{
counterFn
:
function
(
e
){
var
t
=
this
,
a
=
(
new
Date
).
getTime
(),
i
=
0
;
this
.
pauseTime
<=
0
?
i
=
e
-
a
:(
this
.
pauseTime
=
this
.
pauseTime
+
10
,
i
=
e
-
this
.
pauseTime
),
i
<=
0
&&
(
this
.
stopCountFn
(),
this
.
$nextTick
(
function
(
e
){
t
.
countString
=
""
}));
var
n
=
i
%
864
e5
,
r
=
n
%
36
e5
,
s
=
r
%
6
e4
;
this
.
day
=
Math
.
floor
(
i
/
864
e5
),
this
.
hour
=
Math
.
floor
(
n
/
36
e5
),
this
.
minute
=
Math
.
floor
(
r
/
6
e4
),
this
.
second
=
Math
.
round
(
s
/
1
e3
),
this
.
day
>
0
?
this
.
countString
=
this
.
day
+
"天 "
+
this
.
hour
+
"小时 "
+
this
.
minute
+
"分 "
+
this
.
second
+
"秒"
:
this
.
hour
>
0
?
this
.
countString
=
this
.
hour
+
"小时 "
+
this
.
minute
+
"分 "
+
this
.
second
+
"秒"
:
this
.
minute
>
0
?
this
.
countString
=
this
.
minute
+
"分 "
+
this
.
second
+
"秒"
:
this
.
countString
=
this
.
second
+
"秒"
},
startCountFn
:
function
(){
var
e
=
this
;
if
(
!
this
.
isStart
){
this
.
countVal
=
this
.
countVal
?
this
.
countVal
:(
new
Date
).
getTime
();
var
t
=
setInterval
(
function
(
t
){
e
.
counterFn
(
e
.
countVal
)},
1
e3
);
this
.
globalTimer
=
t
,
this
.
isStart
=!
0
}},
stopCountFn
:
function
(){
this
.
isStart
&&
(
window
.
clearInterval
(
this
.
globalTimer
),
this
.
globalTimer
=
null
,
this
.
isStart
=!
1
,
this
.
pauseTime
=
(
new
Date
).
getTime
())},
passToParent
:
function
(
e
){
this
.
$emit
(
"getDataFromChild"
,
e
)}},
beforeDestroy
:
function
(){
this
.
stopCountFn
()}},
n
=
{
render
:
function
(){
var
e
=
this
.
$createElement
,
t
=
this
.
_self
.
_c
||
e
;
return
t
(
"div"
,[
t
(
"span"
,{
attrs
:{
sendSync
:
this
.
sendSync
,
autoStart
:
this
.
autoStart
,
defaultVal
:
this
.
defaultVal
}},[
this
.
_v
(
this
.
_s
(
this
.
countString
))])])},
staticRenderFns
:[]},
r
=
a
(
"VU/8"
)(
i
,
n
,
!
1
,
null
,
null
,
null
);
t
.
a
=
r
.
exports
},
AQXh
:
function
(
e
,
t
,
a
){
"use strict"
;
var
i
=
{
name
:
"dm-upload"
,
props
:{
model
:{
type
:
Object
,
default
:
function
(){
return
{
code
:
""
,
imgUrl
:
""
,
wxImg
:
""
}}},
width
:{
type
:
String
,
default
:
"auto"
},
tips
:{
type
:
String
,
default
:
"图片建议尺寸:100*100"
},
className
:{
type
:
String
,
default
:
""
},
label
:{
type
:
String
,
default
:
"上传"
},
fileType
:{
type
:
String
,
default
:
"file"
},
acceptType
:{
type
:
String
,
default
:
"image/gif, image/jpeg,image/png"
},
showImg
:{
type
:
Boolean
,
default
:
!
0
},
tipsStyle
:
Object
,
url
:{
type
:
String
,
default
:
""
},
needExtraParams
:{
type
:
Boolean
,
default
:
!
1
},
paramsObj
:{
type
:
Object
},
noUse
:{
type
:
Boolean
,
default
:
!
1
},
iconClass
:{
type
:
String
,
default
:
""
},
needAxiosDataBack
:{
type
:
Boolean
,
default
:
!
1
}},
watch
:{
model
:{
handler
:
function
(
e
){
this
.
$emit
(
"update:model"
,
this
.
model
),
this
.
$emit
(
"backImg"
,
this
.
model
)},
deep
:
!
0
}},
data
:
function
(){
return
{
disabled
:
!
1
,
loading
:
!
1
}},
methods
:{
dataBack
:
function
(
e
,
t
){
this
.
$emit
(
"dataBack"
,
e
,
t
)}}},
n
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,[
a
(
"label"
,{
staticClass
:
"el-button el-button--primary"
,
class
:{
"is-disabled"
:
e
.
disabled
||
e
.
noUse
}},[
e
.
iconClass
?
a
(
"i"
,{
staticClass
:
"mr5"
,
class
:
e
.
iconClass
}):
e
.
_e
(),
e
.
_v
(
"
\
n "
+
e
.
_s
(
e
.
disabled
?
"上传中..."
:
e
.
label
)
+
"
\
n "
),
a
(
"input"
,{
directives
:[{
name
:
"upload"
,
rawName
:
"v-upload"
,
value
:
this
,
expression
:
"this"
}],
ref
:
"uploader"
,
staticStyle
:{
display
:
"none"
},
attrs
:{
type
:
"file"
,
disabled
:
e
.
disabled
||
e
.
noUse
,
accept
:
e
.
acceptType
}})]),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"fz12 gray"
,
style
:
e
.
tipsStyle
},[
e
.
_v
(
" "
+
e
.
_s
(
e
.
tips
))])])},
staticRenderFns
:[]};
var
r
=
a
(
"VU/8"
)(
i
,
n
,
!
1
,
function
(
e
){
a
(
"5LRq"
)},
"data-v-1b5ce2bf"
,
null
);
t
.
a
=
r
.
exports
},
BPmr
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
i
=
{
render
:
function
(){
var
e
=
this
.
$createElement
,
t
=
this
.
_self
.
_c
||
e
;
return
t
(
"div"
,[
t
(
"router-view"
)],
1
)},
staticRenderFns
:[]},
n
=
a
(
"VU/8"
)({
name
:
"cdkey"
,
created
:
function
(){
var
e
=
this
;
this
.
$store
.
commit
(
"aside_handler"
,
!
1
),
this
.
$nextTick
(
function
(
t
){
e
.
$store
.
commit
(
"aside_handler"
,
!
0
)})}},
i
,
!
1
,
null
,
null
,
null
);
t
.
default
=
n
.
exports
},
D4hP
:
function
(
e
,
t
){},
Dd8w
:
function
(
e
,
t
,
a
){
"use strict"
;
t
.
__esModule
=!
0
;
var
i
,
n
=
a
(
"woOf"
),
r
=
(
i
=
n
)
&&
i
.
__esModule
?
i
:{
default
:
i
};
t
.
default
=
r
.
default
||
function
(
e
){
for
(
var
t
=
1
;
t
<
arguments
.
length
;
t
++
){
var
a
=
arguments
[
t
];
for
(
var
i
in
a
)
Object
.
prototype
.
hasOwnProperty
.
call
(
a
,
i
)
&&
(
e
[
i
]
=
a
[
i
])}
return
e
}},
GZBk
:
function
(
e
,
t
,
a
){
"use strict"
;
a
.
d
(
t
,
"h"
,
function
(){
return
s
}),
a
.
d
(
t
,
"g"
,
function
(){
return
l
}),
a
.
d
(
t
,
"e"
,
function
(){
return
o
}),
a
.
d
(
t
,
"f"
,
function
(){
return
c
}),
a
.
d
(
t
,
"d"
,
function
(){
return
d
}),
a
.
d
(
t
,
"i"
,
function
(){
return
u
}),
a
.
d
(
t
,
"a"
,
function
(){
return
m
}),
a
.
d
(
t
,
"b"
,
function
(){
return
p
}),
a
.
d
(
t
,
"c"
,
function
(){
return
f
});
var
i
=
a
(
"6Hqf"
),
n
=
a
(
"2uFj"
),
r
=
"api-marketing/"
,
s
=
(
n
.
a
.
api
,
function
(
e
){
return
Object
(
i
.
b
)(
r
+
"cdkey-plan-record"
,
e
)}),
l
=
function
(
e
){
return
Object
(
i
.
b
)(
r
+
"cdkey-plan-forbid"
,
e
)},
o
=
function
(
e
){
return
Object
(
i
.
b
)(
r
+
"cdkey-plan-delete"
,
e
)},
c
=
function
(
e
){
return
Object
(
i
.
b
)(
r
+
"cdkey-plan-edit"
,
e
)},
d
=
function
(
e
){
return
Object
(
i
.
b
)(
r
+
"cdkey-log-record"
,
e
)},
u
=
r
+
"cdkey-plan-save"
,
m
=
r
+
"cdkey-check"
,
p
=
n
.
a
.
api
+
r
+
"cdkey-export?requestProject=marketing"
,
f
=
n
.
a
.
api
+
r
+
"cdkey-fail-export"
},
UsD7
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
i
=
a
(
"Xxa5"
),
n
=
a
.
n
(
i
),
r
=
a
(
"exGp"
),
s
=
a
.
n
(
r
),
l
=
a
(
"GZBk"
),
o
=
a
(
"0xDb"
),
c
=
a
(
"6ncD"
),
d
=
a
(
"0SQO"
),
u
=
{
name
:
"cdkey-list"
,
components
:{
timeCounts
:
c
.
a
},
mixins
:[
d
.
a
],
data
:
function
(){
return
{
status
:[{
value
:
1
,
label
:
"未生效"
},{
value
:
2
,
label
:
"生效中"
},{
value
:
4
,
label
:
"已失效"
}],
loading
:
!
1
,
tableList
:[],
listParams
:{
cdkeyPlanStatus
:
""
,
cdkeyType
:
""
,
cdkeyEffectTime
:
""
,
cdkeyLimitTime
:
""
,
cdkeyName
:
""
,
currentPage
:
1
,
pageSize
:
20
},
dateTime
:[
""
,
""
],
total
:
0
,
codeVisible
:
!
1
,
projectName
:
"marketing"
,
dialogVisible
:
!
1
,
excelUrl
:
""
,
params
:{}}},
created
:
function
(){
this
.
$store
.
commit
(
"mutations_breadcrumb"
,[{
name
:
"营销管理"
,
path
:
""
},{
name
:
"兑换码"
,
path
:
""
},{
name
:
"兑换码列表"
,
path
:
""
}]),
this
.
getTableList
()},
methods
:{
formatDateTimeByType
:
o
.
f
,
getTableList
:
function
(){
var
e
=
this
;
return
s
()(
n
.
a
.
mark
(
function
t
(){
var
a
;
return
n
.
a
.
wrap
(
function
(
t
){
for
(;;)
switch
(
t
.
prev
=
t
.
next
){
case
0
:
return
t
.
prev
=
0
,
e
.
loading
=!
0
,
e
.
dateTime
?(
e
.
listParams
.
cdkeyEffectTime
=
Object
(
o
.
f
)(
e
.
dateTime
[
0
],
"yyyy-MM-dd"
),
e
.
listParams
.
cdkeyLimitTime
=
Object
(
o
.
f
)(
e
.
dateTime
[
1
],
"yyyy-MM-dd"
)):
e
.
listParams
.
cdkeyEffectTime
=
e
.
listParams
.
cdkeyLimitTime
=
""
,
t
.
next
=
5
,
Object
(
l
.
h
)(
e
.
listParams
);
case
5
:
0
===
(
a
=
t
.
sent
).
errorCode
&&
a
.
result
?(
e
.
tableList
=
a
.
result
.
result
||
[],
e
.
total
=
a
.
result
.
totalCount
):(
e
.
tableList
=
[],
e
.
total
=
0
),
e
.
loading
=!
1
,
t
.
next
=
13
;
break
;
case
10
:
t
.
prev
=
10
,
t
.
t0
=
t
.
catch
(
0
),
e
.
loading
=!
1
;
case
13
:
case
"end"
:
return
t
.
stop
()}},
t
,
e
,[[
0
,
10
]])}))()},
delData
:
function
(
e
){
var
t
=
this
,
a
=
e
.
cdkeyPlanId
;
this
.
loading
=!
0
,
Object
(
l
.
e
)({
cdkeyPlanId
:
a
}).
then
(
function
(
e
){
t
.
$tips
({
type
:
"success"
,
message
:
"删除成功!"
}),
t
.
getTableList
()}).
catch
(
function
(
e
){
t
.
$tips
({
type
:
"error"
,
message
:
"删除失败!"
})}).
finally
(
function
(){
t
.
loading
=!
1
})},
invalidData
:
function
(
e
){
var
t
=
this
,
a
=
e
.
cdkeyPlanId
;
this
.
loading
=!
0
,
Object
(
l
.
g
)({
cdkeyPlanId
:
a
}).
then
(
function
(
e
){
t
.
$tips
({
type
:
"success"
,
message
:
"禁用成功!"
}),
t
.
getTableList
()}).
catch
(
function
(
e
){
t
.
$tips
({
type
:
"error"
,
message
:
"禁用失败!"
})}).
finally
(
function
(){
t
.
loading
=!
1
})},
cdkeyExport
:
function
(
e
){
var
t
=
e
.
cdkeyPlanId
;
this
.
dialogVisible
=!
0
,
this
.
excelUrl
=
l
.
b
,
this
.
params
=
{
cdkeyPlanId
:
t
,
requestProject
:
"marketing"
}}}},
m
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"section"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loading
,
expression
:
"loading"
}],
staticClass
:
"dm-wrap"
},[
a
(
"div"
,{
staticClass
:
"clearfix pb22"
},[
a
(
"el-input"
,{
staticClass
:
"w280"
,
attrs
:{
placeholder
:
"请输入兑换码名称"
,
clearable
:
""
},
on
:{
change
:
e
.
refresh
},
model
:{
value
:
e
.
listParams
.
cdkeyName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
listParams
,
"cdkeyName"
,
t
)},
expression
:
"listParams.cdkeyName"
}},[
a
(
"i"
,{
staticClass
:
"el-input__icon el-icon-search"
,
attrs
:{
slot
:
"prefix"
},
slot
:
"prefix"
})]),
e
.
_v
(
" "
),
a
(
"el-date-picker"
,{
staticClass
:
"w300"
,
attrs
:{
type
:
"daterange"
,
"range-separator"
:
"至"
,
"start-placeholder"
:
"兑换开始日期"
,
"end-placeholder"
:
"兑换结束日期"
},
on
:{
change
:
e
.
refresh
},
model
:{
value
:
e
.
dateTime
,
callback
:
function
(
t
){
e
.
dateTime
=
t
},
expression
:
"dateTime"
}}),
e
.
_v
(
" "
),
a
(
"el-select"
,{
staticClass
:
"dm-select"
,
attrs
:{
clearable
:
""
,
placeholder
:
"兑换码类型"
},
on
:{
change
:
e
.
refresh
},
model
:{
value
:
e
.
listParams
.
cdkeyType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
listParams
,
"cdkeyType"
,
t
)},
expression
:
"listParams.cdkeyType"
}},[
a
(
"el-option"
,{
attrs
:{
label
:
"专属码"
,
value
:
1
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"通用码"
,
value
:
2
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-select"
,{
staticClass
:
"dm-select"
,
attrs
:{
clearable
:
""
,
placeholder
:
"兑换码状态"
},
on
:{
change
:
e
.
refresh
},
model
:{
value
:
e
.
listParams
.
cdkeyPlanStatus
,
callback
:
function
(
t
){
e
.
$set
(
e
.
listParams
,
"cdkeyPlanStatus"
,
t
)},
expression
:
"listParams.cdkeyPlanStatus"
}},
e
.
_l
(
e
.
status
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
value
,
attrs
:{
label
:
e
.
label
,
value
:
e
.
value
}})}),
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"fr"
},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
codeVisible
=!
0
}}},[
e
.
_v
(
"兑换链接"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
return
e
.
$router
.
push
(
"/cdKey/add"
)}}},[
e
.
_v
(
"新建兑换码"
)])],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
tooltipEffect
:
"light"
,
data
:
e
.
tableList
}},[
a
(
"el-table-column"
,{
attrs
:{
"min-width"
:
"150"
,
align
:
"left"
,
prop
:
"cdkeyName"
,
label
:
"兑换码名称"
,
fixed
:
"left"
,
"show-overflow-tooltip"
:
!
0
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
"show-overflow-tooltip"
:
!
0
,
"min-width"
:
"150"
,
align
:
"left"
,
prop
:
"createTime"
,
label
:
"有效期"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"div"
,[
e
.
_v
(
e
.
_s
(
e
.
formatDateTimeByType
(
t
.
row
.
cdkeyEffectTime
,
"yyyy-MM-dd HH:mm:ss"
))
+
"~"
)]),
e
.
_v
(
" "
),
a
(
"div"
,[
e
.
_v
(
e
.
_s
(
e
.
formatDateTimeByType
(
t
.
row
.
cdkeyLimitTime
,
"yyyy-MM-dd HH:mm:ss"
)))])]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
"show-overflow-tooltip"
:
!
0
,
"min-width"
:
"120"
,
align
:
"left"
,
label
:
"兑换码类型"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
1
==
t
.
row
.
cdkeyType
?
"专属码"
:
"通用码"
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
"show-overflow-tooltip"
:
!
0
,
"min-width"
:
"140"
,
align
:
"left"
,
prop
:
"cdkeyContentDescribe"
,
label
:
"兑换码内容"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
1
==
t
.
row
.
cdkeyType
?
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
return
e
.
cdkeyExport
(
t
.
row
)}}},[
e
.
_v
(
"导出兑换码列表"
)]):
a
(
"span"
,[
e
.
_v
(
e
.
_s
(
t
.
row
.
cdkeyValue
))])]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
"min-width"
:
"120"
,
align
:
"left"
,
prop
:
"cdkeyCount"
,
label
:
"兑换码数量"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
"show-overflow-tooltip"
:
!
0
,
"min-width"
:
"140"
,
align
:
"left"
,
prop
:
"cdkeyContentDescribe"
,
label
:
"兑换内容"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
"show-overflow-tooltip"
:
!
0
,
"min-width"
:
"120"
,
align
:
"left"
,
prop
:
"createTime"
,
label
:
"兑换码状态"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
1
==
t
.
row
.
cdkeyPlanStatus
?
a
(
"div"
,[
a
(
"span"
,{
staticClass
:
"dm-status--warning"
}),
e
.
_v
(
"未生效"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
2
==
t
.
row
.
cdkeyPlanStatus
?
a
(
"div"
,[
a
(
"span"
,{
staticClass
:
"dm-status--primary--flash"
}),
e
.
_v
(
"生效中"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
3
==
t
.
row
.
cdkeyPlanStatus
?
a
(
"div"
,[
e
.
_v
(
"已过期"
),
a
(
"span"
,{
staticClass
:
"dm-status--info"
})]):
e
.
_e
(),
e
.
_v
(
" "
),
4
==
t
.
row
.
cdkeyPlanStatus
?
a
(
"div"
,[
a
(
"span"
,{
staticClass
:
"dm-status--info"
}),
e
.
_v
(
"已失效"
)]):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
,
align
:
"left"
,
width
:
"160px"
,
fixed
:
"right"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
1
==
t
.
row
.
cdkeyPlanStatus
?
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
return
e
.
$router
.
push
(
"/cdKey/edit/"
+
t
.
row
.
cdkeyPlanId
)}}},[
e
.
_v
(
"编辑"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
1
!=
t
.
row
.
cdkeyPlanStatus
?
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
return
e
.
$router
.
push
(
"/cdKey/info/"
+
t
.
row
.
cdkeyPlanId
)}}},[
e
.
_v
(
"详情"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
2
==
t
.
row
.
cdkeyPlanStatus
?
a
(
"dm-delete"
,{
attrs
:{
tips
:
"是否禁用该条数据?"
},
on
:{
confirm
:
function
(
a
){
return
e
.
invalidData
(
t
.
row
)}}},[
a
(
"el-button"
,{
attrs
:{
type
:
"text"
}},[
e
.
_v
(
"禁用"
)])],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
1
==
t
.
row
.
cdkeyPlanStatus
?
a
(
"dm-delete"
,{
attrs
:{
tips
:
"是否删除该条数据?"
},
on
:{
confirm
:
function
(
a
){
return
e
.
delData
(
t
.
row
)}}},[
a
(
"el-button"
,{
attrs
:{
type
:
"text"
}},[
e
.
_v
(
"删除"
)])],
1
):
e
.
_e
()]}}])})],
1
),
e
.
_v
(
" "
),
a
(
"dm-pagination"
,{
directives
:[{
name
:
"show"
,
rawName
:
"v-show"
,
value
:
e
.
tableList
.
length
,
expression
:
"tableList.length"
}],
staticClass
:
"dm-pagination"
,
attrs
:{
background
:
""
,
"current-page"
:
e
.
listParams
.
currentPage
,
"page-sizes"
:[
20
,
40
,
60
,
80
],
"page-size"
:
e
.
listParams
.
pageSize
,
layout
:
"total, sizes, prev, pager, next"
,
total
:
e
.
total
},
on
:{
"size-change"
:
e
.
handleSizeChange
,
"current-change"
:
e
.
handleCurrentChange
}}),
e
.
_v
(
" "
),
a
(
"el-dialog"
,{
attrs
:{
title
:
"生成链接"
,
visible
:
e
.
codeVisible
,
width
:
"500px"
},
on
:{
"update:visible"
:
function
(
t
){
e
.
codeVisible
=
t
}}},[
a
(
"div"
,{
staticClass
:
"text-center pt20"
},[
a
(
"img"
,{
attrs
:{
src
:
""
,
width
:
"192"
,
height
:
"192"
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticStyle
:{
"margin-top"
:
"11px"
,
color
:
"#606266"
,
"padding-bottom"
:
"50px"
}},[
e
.
_v
(
"- 兑换码链接二维码 -"
)])])]),
e
.
_v
(
" "
),
a
(
"vue-gic-export-excel"
,{
attrs
:{
dialogVisible
:
e
.
dialogVisible
,
dataArr
:
e
.
tableList
,
type
:
2
,
excelUrl
:
e
.
excelUrl
,
params
:
e
.
params
,
projectName
:
e
.
projectName
},
on
:{
"update:dialogVisible"
:
function
(
t
){
e
.
dialogVisible
=
t
},
"update:dialog-visible"
:
function
(
t
){
e
.
dialogVisible
=
t
}}})],
1
)},
staticRenderFns
:[]},
p
=
a
(
"VU/8"
)(
u
,
m
,
!
1
,
null
,
null
,
null
);
t
.
default
=
p
.
exports
},
oqbS
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
i
=
a
(
"Dd8w"
),
n
=
a
.
n
(
i
),
r
=
a
(
"fZjL"
),
s
=
a
.
n
(
r
),
l
=
a
(
"mtWM"
),
o
=
a
.
n
(
l
),
c
=
a
(
"AQXh"
),
d
=
a
(
"0xDb"
),
u
=
a
(
"v7us"
),
m
=
a
(
"GZBk"
),
p
=
{
name
:
"cdkey-form"
,
data
:
function
(){
var
e
=
this
;
return
{
loading
:
!
1
,
cdkeyPlanId
:
this
.
$route
.
params
.
id
,
cdkeyFailExportUrl
:
m
.
c
,
ruleForm
:{
cdkeyContentType
:
""
,
cdkeyContentRelated
:
""
,
cdkeyContentDescribe
:
""
,
cdkeyMode
:
1
,
cdkeyType
:
1
,
cdkeyValue
:
""
,
cdkeyEffectTime
:
""
,
cdkeyLimitTime
:
""
,
cdkeyName
:
""
,
marketingActivityId
:
""
},
importRes
:{
file
:
null
,
fileId
:
""
,
fileName
:
""
,
size
:
""
,
fail
:
0
,
success
:
0
,
failData
:[],
total
:
0
},
rules
:{
cdkeyName
:[{
required
:
!
0
,
message
:
"请输入兑换码名称"
,
trigger
:
"change"
}],
cdkeyCount
:[{
validator
:
function
(
t
,
a
,
i
){
if
(
!
a
){
var
n
=
"请输入"
+
(
2
==
e
.
ruleForm
.
cdkeyType
?
"兑换次数上限"
:
"兑换码数量"
);
return
2
==
e
.
ruleForm
.
cdkeyMode
&&
(
n
=
e
.
importRes
.
fileName
?
"手工导入数据无可用码"
:
"请上传文件"
),
i
(
new
Error
(
""
+
n
))}
i
()},
trigger
:
"change"
}],
cdkeyContentRelated
:[{
required
:
!
0
,
message
:
"请选择卡券"
,
trigger
:
"change"
}],
fileId
:[{
validator
:
function
(
t
,
a
,
i
){
if
(
2
==
e
.
ruleForm
.
cdkeyMode
&&!
e
.
importRes
.
fileId
&&
e
.
isAdd
)
return
i
(
new
Error
(
t
.
message
));
i
()},
message
:
"请上传文件"
,
trigger
:
"change"
}],
dateTime
:[{
required
:
!
0
,
validator
:
function
(
t
,
a
,
i
){
if
(
e
.
isEdit
&&
i
(),
e
.
dateTime
&&
e
.
dateTime
[
0
]){
var
n
=
e
.
dateTime
[
0
],
r
=
e
.
dateTime
[
1
];
new
Date
(
r
).
getTime
()
-
new
Date
(
n
).
getTime
()
>
7776
e6
&&
e
.
canEdit
&&
i
(
new
Error
(
t
.
message
||
"时间跨度不能超过三个月"
)),
i
()}
else
i
(
new
Error
(
"有效期不能为空"
))},
trigger
:
"change"
}],
cdkeyValue
:[{
required
:
!
0
,
validator
:
function
(
t
,
a
,
i
){
if
(
2
==
e
.
ruleForm
.
cdkeyType
)
return
e
.
ruleForm
.
cdkeyValue
||
i
(
new
Error
(
"请输入码值"
)),
/^
[
0-9A-Za-z
]{8}
$/
.
test
(
e
.
ruleForm
.
cdkeyValue
)
||
i
(
new
Error
(
"码值限定8位,包含数字及字母"
)),
i
();
i
()},
trigger
:
"change"
}]},
uploadUrl
:
m
.
a
,
pickerOptions
:{
disabledDate
:
function
(
e
){
return
Date
.
now
()
>=
e
.
getTime
()
+
864
e5
}},
dateTime
:[],
projectName
:
"marketing"
,
dialogVisible
:
!
1
,
excelUrl
:
""
,
params
:{},
showCardDialog
:
!
1
,
isAdd
:
"add"
===
this
.
$route
.
meta
.
type
,
isEdit
:
"edit"
===
this
.
$route
.
meta
.
type
,
isInfo
:
"info"
===
this
.
$route
.
meta
.
type
}},
components
:{
activitySelect
:
u
.
a
,
file
:
c
.
a
},
computed
:{
canEdit
:
function
(){
return
this
.
isAdd
||
this
.
isEdit
&&
new
Date
<
this
.
dateTime
[
0
]}},
methods
:{
changeCdkeyValue
:
function
(
e
){
2
==
e
&&
(
this
.
ruleForm
.
cdkeyMode
=
1
),
this
.
$refs
.
ruleForm
.
validateField
(
"cdkeyCount"
)},
changeCdKeyMode
:
function
(
e
){
2
==
e
&&
(
this
.
ruleForm
.
cdkeyCount
=
this
.
importRes
.
success
||
0
),
this
.
$refs
.
ruleForm
.
validateField
(
"cdkeyCount"
)},
downloadMX
:
function
(){
window
.
open
(
"/marketing/static/file/兑换码模板示例.xlsx"
,
"_blank"
)},
getInfo
:
function
(){
var
e
=
this
;
this
.
loading
=!
0
,
Object
(
m
.
f
)({
cdkeyPlanId
:
this
.
cdkeyPlanId
}).
then
(
function
(
t
){
s
()(
e
.
ruleForm
).
map
(
function
(
a
){
e
.
ruleForm
[
a
]
=
t
.
result
[
a
]}),
e
.
dateTime
=
[
t
.
result
.
cdkeyEffectTime
,
t
.
result
.
cdkeyLimitTime
]}).
finally
(
function
(){
e
.
loading
=!
1
})},
submit
:
Object
(
d
.
a
)(
function
(){
var
e
=
this
;
this
.
loading
||
this
.
$refs
.
ruleForm
.
validate
(
function
(
t
){
if
(
t
){
e
.
loading
=!
0
;
var
a
=
n
()({},
e
.
ruleForm
);
a
.
cdkeyEffectTime
=
Object
(
d
.
f
)(
e
.
dateTime
[
0
],
"yyyy-MM-dd HH:mm:ss"
),
a
.
cdkeyLimitTime
=
Object
(
d
.
f
)(
e
.
dateTime
[
1
],
"yyyy-MM-dd HH:mm:ss"
),
delete
a
.
fileId
;
var
i
=
new
FormData
;
i
.
append
(
"requestProject"
,
"gic-web"
),
2
==
a
.
cdkeyMode
&&
i
.
append
(
"file"
,
e
.
importRes
.
file
),
e
.
isEdit
&&
i
.
append
(
"cdkeyPlanId"
,
e
.
cdkeyPlanId
),
s
()(
a
).
forEach
(
function
(
e
){
i
.
append
(
e
,
a
[
e
])}),
o
.
a
.
post
(
m
.
i
,
i
).
then
(
function
(
t
){
0
===
t
.
data
.
errorCode
?(
e
.
$tips
({
message
:
"操作成功!"
}),
e
.
$router
.
push
(
"/cdKey/list"
)):
e
.
$tips
({
type
:
"error"
,
message
:
t
.
data
.
message
})}).
catch
(
function
(
t
){
e
.
$tips
({
type
:
"error"
,
message
:
t
.
message
})}).
finally
(
function
(){
e
.
loading
=!
1
})}})}),
cdkeyFailExport
:
function
(){
var
e
=
new
FormData
;
e
.
append
(
"requestProject"
,
"gic-web"
),
e
.
append
(
"file"
,
this
.
importRes
.
file
);
var
t
=
new
XMLHttpRequest
;
t
.
withCredentials
=!
0
,
t
.
responseType
=
"blob"
,
t
.
onload
=
function
(){
if
(
200
===
t
.
status
&&
4
==
t
.
readyState
){
var
e
=
t
.
response
,
a
=
document
.
createElement
(
"a"
),
i
=
window
.
URL
.
createObjectURL
(
e
);
a
.
href
=
i
,
a
.
download
=
"兑换码导入失败记录"
+
(
new
Date
).
getTime
()
+
".xls"
,
a
.
click
()}},
t
.
open
(
"post"
,
m
.
c
,
!
0
),
t
.
send
(
e
)},
cleanCard
:
function
(){
this
.
ruleForm
.
cdkeyContentRelated
=
""
,
this
.
ruleForm
.
cdkeyContentDescribe
=
""
,
this
.
ruleForm
.
cdkeyContentType
=
""
,
this
.
$refs
.
ruleForm
.
validateField
(
"cdkeyContentDescribe"
)},
selectCard
:
function
(
e
){
e
&&
(
this
.
ruleForm
.
cdkeyContentType
=
1
,
this
.
ruleForm
.
cdkeyContentRelated
=
e
.
coupCardId
,
this
.
ruleForm
.
cdkeyContentDescribe
=
e
.
cardName
,
this
.
$refs
.
ruleForm
.
validateField
(
"cdkeyContentDescribe"
)),
this
.
showCardDialog
=!
1
},
dataBack
:
function
(
e
,
t
){
this
.
importRes
.
file
=
e
,
this
.
importRes
.
fileName
=
e
.
name
.
length
>
15
?
e
.
name
.
substring
(
0
,
15
)
+
"..."
:
e
.
name
,
this
.
importRes
.
fileId
=
new
Date
,
this
.
importRes
.
size
=
(
e
.
size
/
1024
).
toFixed
(
2
),
this
.
importRes
.
success
=
t
.
success
,
this
.
ruleForm
.
cdkeyCount
=
t
.
success
,
this
.
importRes
.
fail
=
t
.
fail
,
this
.
importRes
.
total
=
t
.
total
,
this
.
importRes
.
failData
=
t
.
failData
,
this
.
$refs
.
ruleForm
.
validateField
(
"fileId"
),
this
.
$refs
.
ruleForm
.
validateField
(
"cdkeyCount"
)},
cdkeyExport
:
function
(){
this
.
dialogVisible
=!
0
,
this
.
excelUrl
=
m
.
b
,
this
.
params
=
{
cdkeyPlanId
:
this
.
cdkeyExport
,
requestProject
:
"marketing"
}}},
mounted
:
function
(){
this
.
isAdd
||
this
.
getInfo
()},
created
:
function
(){
var
e
=
this
.
isAdd
?
"新建兑换码"
:
this
.
isInfo
?
"编辑兑换码"
:
"兑换码详情"
;
this
.
$store
.
commit
(
"mutations_breadcrumb"
,[{
name
:
"营销管理"
,
path
:
""
},{
name
:
"兑换码"
,
path
:
""
},{
name
:
e
,
path
:
""
}])}},
f
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loading
,
expression
:
"loading"
}],
staticClass
:
"dm-wrap"
},[
a
(
"el-form"
,{
ref
:
"ruleForm"
,
attrs
:{
model
:
e
.
ruleForm
,
rules
:
e
.
rules
,
"label-width"
:
"140px"
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"兑换码名称"
,
prop
:
"cdkeyName"
}},[
a
(
"dm-input"
,{
staticClass
:
"w400"
,
attrs
:{
disabled
:
!
e
.
canEdit
,
placeholder
:
"请输入兑换码名称"
,
byteType
:
1
,
maxlength
:
24
},
model
:{
value
:
e
.
ruleForm
.
cdkeyName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
ruleForm
,
"cdkeyName"
,
t
)},
expression
:
"ruleForm.cdkeyName"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
prop
:
"marketingActivityId"
}},[
a
(
"activity-select"
,{
staticClass
:
"activity"
,
staticStyle
:{
"margin-left"
:
"-68px"
},
attrs
:{
actId
:
e
.
ruleForm
.
marketingActivityId
,
readOnly
:
!
e
.
canEdit
},
on
:{
"update:actId"
:
function
(
t
){
return
e
.
$set
(
e
.
ruleForm
,
"marketingActivityId"
,
t
)},
"update:act-id"
:
function
(
t
){
return
e
.
$set
(
e
.
ruleForm
,
"marketingActivityId"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
prop
:
"dateTime"
,
label
:
"有效期"
}},[
a
(
"el-date-picker"
,{
staticClass
:
"w400"
,
attrs
:{
disabled
:
!
e
.
canEdit
,
type
:
"datetimerange"
,
"picker-options"
:
e
.
pickerOptions
,
"range-separator"
:
"至"
,
"start-placeholder"
:
"开始日期"
,
"end-placeholder"
:
"结束日期"
},
model
:{
value
:
e
.
dateTime
,
callback
:
function
(
t
){
e
.
dateTime
=
t
},
expression
:
"dateTime"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"兑换码类型"
,
prop
:
"cdkeyValue"
}},[
a
(
"el-radio-group"
,{
attrs
:{
disabled
:
!
e
.
isAdd
},
on
:{
change
:
e
.
changeCdkeyValue
},
model
:{
value
:
e
.
ruleForm
.
cdkeyType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
ruleForm
,
"cdkeyType"
,
t
)},
expression
:
"ruleForm.cdkeyType"
}},[
a
(
"el-radio"
,{
staticStyle
:{
"margin-right"
:
"44px"
},
attrs
:{
label
:
1
}},[
e
.
_v
(
"专属码"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
2
}},[
e
.
_v
(
"通用码"
)])],
1
),
e
.
_v
(
" "
),
2
==
e
.
ruleForm
.
cdkeyType
?
a
(
"div"
,[
a
(
"div"
,{
staticClass
:
"code1"
},[
e
.
_v
(
"码值:"
),
a
(
"el-input"
,{
staticStyle
:{
width
:
"180px"
},
attrs
:{
disabled
:
!
e
.
isAdd
,
clearable
:
""
,
maxlength
:
"12"
,
palceholder
:
"请输入码值"
},
model
:{
value
:
e
.
ruleForm
.
cdkeyValue
,
callback
:
function
(
t
){
e
.
$set
(
e
.
ruleForm
,
"cdkeyValue"
,
t
)},
expression
:
"ruleForm.cdkeyValue"
}})],
1
)]):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
1
==
e
.
ruleForm
.
cdkeyType
?
a
(
"el-form-item"
,{
attrs
:{
label
:
"券码生成方式"
,
prop
:
"fileId"
}},[
a
(
"el-radio-group"
,{
attrs
:{
disabled
:
!
e
.
isAdd
},
on
:{
change
:
e
.
changeCdKeyMode
},
model
:{
value
:
e
.
ruleForm
.
cdkeyMode
,
callback
:
function
(
t
){
e
.
$set
(
e
.
ruleForm
,
"cdkeyMode"
,
t
)},
expression
:
"ruleForm.cdkeyMode"
}},[
a
(
"el-radio"
,{
attrs
:{
label
:
1
}},[
e
.
_v
(
"系统生成"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
2
}},[
e
.
_v
(
"手工导入"
)])],
1
),
e
.
_v
(
" "
),
2
!=
e
.
ruleForm
.
cdkeyMode
||
e
.
isAdd
?
e
.
_e
():
a
(
"el-button"
,{
staticClass
:
"ml20"
,
attrs
:{
type
:
"text"
},
on
:{
click
:
e
.
cdkeyExport
}},[
e
.
_v
(
"导出兑换码列表"
)]),
e
.
_v
(
" "
),
2
==
e
.
ruleForm
.
cdkeyMode
?
a
(
"div"
,[
e
.
isAdd
?
a
(
"div"
,{
staticClass
:
"code2"
},[
a
(
"div"
,[
a
(
"file"
,{
ref
:
"fileUpload"
,
staticClass
:
"inline-block"
,
attrs
:{
needAxiosDataBack
:
""
,
label
:
"点击上传"
,
acceptType
:
".csv, .xlsx"
,
tips
:
""
,
url
:
e
.
uploadUrl
,
iconClass
:
"el-icon-upload2"
},
on
:{
dataBack
:
e
.
dataBack
,
backImg
:
e
.
backImg
}}),
e
.
_v
(
" "
),
a
(
"el-button"
,{
staticClass
:
"ml20"
,
attrs
:{
type
:
"text"
},
on
:{
click
:
e
.
downloadMX
}},[
e
.
_v
(
"下载模板"
)])],
1
),
e
.
_v
(
" "
),
e
.
importRes
.
fileId
?
a
(
"div"
,{
staticClass
:
"success-file"
},[
a
(
"span"
,{
staticClass
:
"fl"
,
staticStyle
:{
"max-width"
:
"500px"
,
overflow
:
"hidden"
}},[
a
(
"i"
,{
staticClass
:
"iconfont mr5 icon-excel"
,
staticStyle
:{
color
:
"#23B08D"
}}),
e
.
_v
(
e
.
_s
(
e
.
importRes
.
fileName
)
+
"("
+
e
.
_s
(
e
.
importRes
.
size
)
+
"kb)"
)]),
e
.
_v
(
" "
),
a
(
"i"
,{
staticClass
:
"el-icon-success fr success-color ml5"
,
staticStyle
:{
"line-height"
:
"40px"
}})]):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
importRes
.
fileId
?
a
(
"div"
,{
staticStyle
:{
"line-height"
:
"1"
}},[
e
.
_v
(
"导入成功"
+
e
.
_s
(
e
.
importRes
.
success
)
+
"条,导入失败"
),
a
(
"span"
,{
staticClass
:
"warning-span"
},[
e
.
_v
(
e
.
_s
(
e
.
importRes
.
fail
))]),
e
.
_v
(
"条
\
n "
),
e
.
importRes
.
fail
>
0
?[
e
.
_v
(
","
),
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
e
.
cdkeyFailExport
}},[
e
.
_v
(
"下载导入失败记录"
)])]:
e
.
_e
()],
2
):
e
.
_e
()]):
e
.
_e
()]):
e
.
_e
()],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
staticClass
:
"is-required"
,
attrs
:{
label
:
2
==
e
.
ruleForm
.
cdkeyType
?
"兑换次数上限"
:
"兑换码数量"
,
prop
:
"cdkeyCount"
}},[
a
(
"el-input-number"
,{
staticStyle
:{
width
:
"140px"
},
attrs
:{
disabled
:
!
e
.
isAdd
||
2
==
e
.
ruleForm
.
cdkeyMode
,
"controls-position"
:
"right"
,
min
:
0
,
max
:
1
e3
},
model
:{
value
:
e
.
ruleForm
.
cdkeyCount
,
callback
:
function
(
t
){
e
.
$set
(
e
.
ruleForm
,
"cdkeyCount"
,
t
)},
expression
:
"ruleForm.cdkeyCount"
}}),
e
.
_v
(
" "
),
2
!=
e
.
ruleForm
.
cdkeyType
?
a
(
"span"
,{
staticClass
:
"gray ml10"
},[
e
.
_v
(
"券码数量请控制在10000以内"
)]):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"兑换内容"
,
prop
:
"cdkeyContentRelated"
}},[
a
(
"el-button"
,{
directives
:[{
name
:
"show"
,
rawName
:
"v-show"
,
value
:
!
e
.
ruleForm
.
cdkeyContentRelated
,
expression
:
"!ruleForm.cdkeyContentRelated"
}],
staticStyle
:{
"border-style"
:
"dashed"
,
width
:
"105px"
},
attrs
:{
type
:
"plain"
},
on
:{
click
:
function
(
t
){
e
.
showCardDialog
=!
0
}}},[
e
.
_v
(
"选择卡券"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
directives
:[{
name
:
"show"
,
rawName
:
"v-show"
,
value
:
e
.
ruleForm
.
cdkeyContentRelated
,
expression
:
"ruleForm.cdkeyContentRelated"
}]},[
e
.
_v
(
"
\
n "
+
e
.
_s
(
e
.
ruleForm
.
cdkeyContentDescribe
)
+
"
\
n "
),
e
.
canEdit
?
a
(
"el-button"
,{
staticClass
:
"ml10"
,
attrs
:{
type
:
"text"
},
on
:{
click
:
e
.
cleanCard
}},[
e
.
_v
(
"删除"
)]):
e
.
_e
()],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,[
e
.
canEdit
?
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
submit
}},[
e
.
_v
(
"确认"
+
e
.
_s
(
e
.
isAdd
?
"新建"
:
"保存"
))]):
e
.
_e
()],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"vue-gic-card"
,{
attrs
:{
appendToBody
:
""
,
showCardDialog
:
e
.
showCardDialog
,
cardLimit
:
-
1
,
cardType
:
null
},
on
:{
selectCard
:
e
.
selectCard
}}),
e
.
_v
(
" "
),
a
(
"vue-gic-export-excel"
,{
attrs
:{
dialogVisible
:
e
.
dialogVisible
,
dataArr
:[
1
,
2
,
3
],
type
:
2
,
excelUrl
:
e
.
excelUrl
,
params
:
e
.
params
,
projectName
:
e
.
projectName
},
on
:{
"update:dialogVisible"
:
function
(
t
){
e
.
dialogVisible
=
t
},
"update:dialog-visible"
:
function
(
t
){
e
.
dialogVisible
=
t
}}})],
1
)},
staticRenderFns
:[]};
var
h
=
a
(
"VU/8"
)(
p
,
f
,
!
1
,
function
(
e
){
a
(
"D4hP"
)},
"data-v-1c28f6fa"
,
null
);
t
.
default
=
h
.
exports
},
v7us
:
function
(
e
,
t
,
a
){
"use strict"
;
var
i
=
a
(
"1ION"
),
n
=
{
name
:
"activity-use-select"
,
props
:{
actId
:{
default
:
""
,
type
:
String
},
readOnly
:{
default
:
!
1
,
type
:
Boolean
},
onlySelect
:{
default
:
!
1
,
type
:
Boolean
},
colon
:{
default
:
!
1
,
type
:
Boolean
}},
data
:
function
(){
return
{
loading
:
!
1
,
marketingActivityId
:
""
,
info
:{},
tableList
:[],
total
:
0
,
listParams
:{
expireType
:
-
1
,
search
:
""
,
currentPage
:
1
,
pageSize
:
10
},
nomore
:
!
1
,
disabled
:
!
1
}},
watch
:{
actId
:{
handler
:
function
(
e
){
e
&&
this
.
readOnly
&&
(
this
.
marketingActivityId
=
e
,
this
.
getActivityInfo
())},
immediate
:
!
0
}},
directives
:{
loadmore
:{
inserted
:
function
(
e
,
t
){
e
.
querySelector
(
".el-select-dropdown .el-select-dropdown__wrap"
).
addEventListener
(
"scroll"
,
function
(){
this
.
scrollHeight
-
this
.
scrollTop
<=
this
.
clientHeight
&&
t
.
value
()})}}},
methods
:{
toAdd
:
function
(){
console
.
log
(
window
.
location
.
origin
+
window
.
location
.
pathname
+
"activity/add"
),
window
.
location
.
href
=
window
.
location
.
origin
+
window
.
location
.
pathname
+
"#/activity/add"
,
window
.
location
.
reload
()},
setInfo
:
function
(
e
){
var
t
=
this
;
this
.
loading
=!
0
,
Object
(
i
.
d
)({
marketingActivityId
:
e
}).
then
(
function
(
a
){
t
.
loading
=!
1
,
t
.
tableList
=
a
.
result
?[
a
.
result
]:[],
t
.
marketingActivityId
=
e
}).
catch
(
function
(){
t
.
loading
=!
1
})},
getActivityInfo
:
function
(){
var
e
=
this
;
this
.
loading
=!
0
,
Object
(
i
.
d
)({
marketingActivityId
:
this
.
actId
}).
then
(
function
(
t
){
e
.
loading
=!
1
,
e
.
info
=
t
.
result
.
activityInfo
||
{}}).
catch
(
function
(){
e
.
loading
=!
1
})},
updateActId
:
function
(
e
){
this
.
$emit
(
"update:actId"
,
e
),
this
.
$emit
(
"actUpdate"
),
e
||
this
.
remoteMethod
(
""
)},
remoteMethod
:
function
(
e
){
this
.
listParams
.
search
=
e
,
this
.
listParams
.
currentPage
=
1
,
this
.
tableList
=
[],
this
.
nomore
=!
1
,
this
.
getList
()},
getMore
:
function
(){
this
.
nomore
||
(
this
.
listParams
.
currentPage
=
1
*
this
.
listParams
.
currentPage
+
1
,
this
.
getList
())},
getList
:
function
(){
var
e
=
this
;
this
.
nomore
||
(
this
.
loading
=!
0
,
this
.
nomore
=!
1
,
Object
(
i
.
a
)(
this
.
listParams
).
then
(
function
(
t
){
e
.
loading
=!
1
;
var
a
=
t
.
result
.
result
||
[],
i
=
e
.
tableList
.
concat
(
a
),
n
=
t
.
result
.
totalCount
||
0
;
e
.
tableList
=
i
,
e
.
total
=
n
,
e
.
nomore
=
n
<=
i
.
length
||
n
-
i
.
length
<
e
.
listParams
.
pagesize
}).
catch
(
function
(){
e
.
loading
=!
1
}))}},
mounted
:
function
(){
!
this
.
readOnly
&&
this
.
getList
()}},
r
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
readOnly
&&
e
.
loading
,
expression
:
"readOnly && loading"
}],
class
:{
"inline-block"
:
e
.
onlySelect
}},[
e
.
onlySelect
?
a
(
"el-select"
,{
directives
:[{
name
:
"loadmore"
,
rawName
:
"v-loadmore"
,
value
:
e
.
getMore
,
expression
:
"getMore"
}],
attrs
:{
remote
:
""
,
filterable
:
""
,
clearable
:
""
,
"remote-method"
:
e
.
remoteMethod
,
size
:
"small"
,
disabled
:
e
.
readOnly
,
placeholder
:
"选择营销活动"
},
on
:{
change
:
e
.
updateActId
},
model
:{
value
:
e
.
marketingActivityId
,
callback
:
function
(
t
){
e
.
marketingActivityId
=
t
},
expression
:
"marketingActivityId"
}},
e
.
_l
(
e
.
tableList
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
marketingActivityId
,
attrs
:{
label
:
e
.
name
,
value
:
e
.
marketingActivityId
}})}),
1
):[
e
.
readOnly
?
a
(
"div"
,[
a
(
"span"
,{
staticClass
:
"dm-input_label"
},[
e
.
_v
(
"营销活动"
),
e
.
colon
?
a
(
"span"
,[
e
.
_v
(
":"
)]):
e
.
_e
()]),
e
.
_v
(
" "
),
a
(
"p"
,{
staticClass
:
"inline-block"
},[
e
.
_v
(
e
.
_s
(
e
.
info
.
name
||
"--"
)
+
" "
),
0
===
e
.
info
.
status
?
a
(
"span"
,{
staticClass
:
"fz12 gray ml10"
},[
e
.
_v
(
"当前计划使用的营销活动已删除"
)]):
e
.
_e
()])]):
a
(
"div"
,[
a
(
"span"
,{
staticClass
:
"dm-input_label"
},[
e
.
_v
(
"营销活动"
),
e
.
colon
?
a
(
"span"
,[
e
.
_v
(
":"
)]):
e
.
_e
()]),
e
.
_v
(
" "
),
a
(
"el-select"
,{
directives
:[{
name
:
"loadmore"
,
rawName
:
"v-loadmore"
,
value
:
e
.
getMore
,
expression
:
"getMore"
}],
staticClass
:
"w250 act-select"
,
attrs
:{
remote
:
""
,
filterable
:
""
,
clearable
:
""
,
"remote-method"
:
e
.
remoteMethod
,
size
:
"small"
,
disabled
:
e
.
readOnly
||
e
.
disabled
,
placeholder
:
"选择营销活动"
},
on
:{
change
:
e
.
updateActId
},
model
:{
value
:
e
.
marketingActivityId
,
callback
:
function
(
t
){
e
.
marketingActivityId
=
t
},
expression
:
"marketingActivityId"
}},
e
.
_l
(
e
.
tableList
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
marketingActivityId
,
attrs
:{
label
:
e
.
name
,
value
:
e
.
marketingActivityId
}})}),
1
),
e
.
_v
(
" "
),
a
(
"el-button"
,{
staticClass
:
"ml10"
,
attrs
:{
type
:
"text"
},
on
:{
click
:
e
.
toAdd
}},[
e
.
_v
(
"去新建"
)])],
1
)]],
2
)},
staticRenderFns
:[]};
var
s
=
a
(
"VU/8"
)(
n
,
r
,
!
1
,
function
(
e
){
a
(
"+UPp"
)},
"data-v-aabd71bc"
,
null
);
t
.
a
=
s
.
exports
},
wFKx
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
i
=
a
(
"Xxa5"
),
n
=
a
.
n
(
i
),
r
=
a
(
"exGp"
),
s
=
a
.
n
(
r
),
l
=
a
(
"GZBk"
),
o
=
a
(
"0xDb"
),
c
=
{
name
:
"cdkey-record"
,
mixins
:[
a
(
"0SQO"
).
a
],
data
:
function
(){
return
{
recordLoading
:
!
1
,
tableList
:[],
listParams
:{
beginTime
:
""
,
endTime
:
""
,
search
:
""
,
currentPage
:
1
,
pageSize
:
20
},
dateTime
:[
""
,
""
],
total
:
0
}},
created
:
function
(){
this
.
$store
.
commit
(
"mutations_breadcrumb"
,[{
name
:
"营销管理"
,
path
:
""
},{
name
:
"兑换码"
,
path
:
""
},{
name
:
"兑换记录"
,
path
:
""
}]),
this
.
getTableList
()},
methods
:{
formatDateTimeByType
:
o
.
f
,
getTableList
:
function
(){
var
e
=
this
;
return
s
()(
n
.
a
.
mark
(
function
t
(){
var
a
;
return
n
.
a
.
wrap
(
function
(
t
){
for
(;;)
switch
(
t
.
prev
=
t
.
next
){
case
0
:
return
t
.
prev
=
0
,
e
.
recordLoading
=!
0
,
e
.
dateTime
?(
e
.
listParams
.
beginTime
=
Object
(
o
.
f
)(
e
.
dateTime
[
0
],
"yyyy-MM-dd"
),
e
.
listParams
.
endTime
=
Object
(
o
.
f
)(
e
.
dateTime
[
1
],
"yyyy-MM-dd"
)):
e
.
listParams
.
beginTime
=
e
.
listParams
.
endTime
=
""
,
t
.
next
=
5
,
Object
(
l
.
d
)(
e
.
listParams
);
case
5
:
0
===
(
a
=
t
.
sent
).
errorCode
&&
a
.
result
?(
e
.
tableList
=
a
.
result
.
result
||
[],
e
.
total
=
a
.
result
.
totalCount
):(
e
.
tableList
=
[],
e
.
total
=
0
),
e
.
recordLoading
=!
1
,
t
.
next
=
13
;
break
;
case
10
:
t
.
prev
=
10
,
t
.
t0
=
t
.
catch
(
0
),
e
.
recordLoading
=!
1
;
case
13
:
case
"end"
:
return
t
.
stop
()}},
t
,
e
,[[
0
,
10
]])}))()}}},
d
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"section"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
recordLoading
,
expression
:
"recordLoading"
}],
staticClass
:
"dm-wrap"
},[
a
(
"div"
,{
staticClass
:
"clearfix pb22"
},[
a
(
"el-input"
,{
staticClass
:
"w350"
,
attrs
:{
placeholder
:
"请输入用户信息/兑换码名称"
,
clearable
:
""
},
on
:{
change
:
e
.
refresh
},
model
:{
value
:
e
.
listParams
.
search
,
callback
:
function
(
t
){
e
.
$set
(
e
.
listParams
,
"search"
,
t
)},
expression
:
"listParams.search"
}},[
a
(
"i"
,{
staticClass
:
"el-input__icon el-icon-search"
,
attrs
:{
slot
:
"prefix"
},
slot
:
"prefix"
})]),
e
.
_v
(
" "
),
a
(
"el-date-picker"
,{
staticClass
:
"w350"
,
attrs
:{
type
:
"daterange"
,
"range-separator"
:
"至"
,
"start-placeholder"
:
"兑换开始日期"
,
"end-placeholder"
:
"兑换结束日期"
},
on
:{
change
:
e
.
refresh
},
model
:{
value
:
e
.
dateTime
,
callback
:
function
(
t
){
e
.
dateTime
=
t
},
expression
:
"dateTime"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
tooltipEffect
:
"light"
,
data
:
e
.
tableList
}},[
a
(
"el-table-column"
,{
attrs
:{
"show-overflow-tooltip"
:
!
0
,
"min-width"
:
"120"
,
"header-align"
:
"left"
,
fixed
:
"left"
,
align
:
"left"
,
prop
:
"memberId"
,
label
:
"会员信息"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"a"
,{
attrs
:{
href
:
"/member/#/wechatmemberDetail?memberId="
+
t
.
row
.
memberId
,
target
:
"_blank"
}},[
a
(
"img"
,{
staticClass
:
"vertical-middle table__avatar--40"
,
attrs
:{
src
:
t
.
row
.
memberImgUrl
||
e
.
defaultAvatar
,
width
:
"60"
,
height
:
"60"
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"inline-block vertical-middle"
},[
a
(
"p"
,{
staticClass
:
"table-name--ellipsis"
},[
e
.
_v
(
e
.
_s
(
t
.
row
.
memberName
||
"--"
))])])])]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
"show-overflow-tooltip"
:
!
0
,
"min-width"
:
"120"
,
align
:
"left"
,
label
:
"兑换时间"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"p"
,{
staticClass
:
"cell-time"
},[
e
.
_v
(
"
\
n "
+
e
.
_s
(
e
.
formatDateTimeByType
(
t
.
row
.
createTime
,
"yyyy-MM-dd-HH-mm"
,
!
0
).
y
)),
a
(
"br"
),
e
.
_v
(
" "
),
a
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
formatDateTimeByType
(
t
.
row
.
createTime
,
"yyyy-MM-dd-HH-mm"
,
!
0
).
h
))])])]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
"min-width"
:
"140"
,
align
:
"left"
,
prop
:
"cdkeyName"
,
label
:
"兑换码名称"
,
"show-overflow-tooltip"
:
!
0
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
"show-overflow-tooltip"
:
!
0
,
"min-width"
:
"120"
,
align
:
"left"
,
label
:
"兑换码类型"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
1
==
t
.
row
.
cdkeyType
?
"专属码"
:
"通用码"
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
"show-overflow-tooltip"
:
!
0
,
"min-width"
:
"140"
,
align
:
"left"
,
prop
:
"cdkey"
,
label
:
"兑换码码值"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
"show-overflow-tooltip"
:
!
0
,
"min-width"
:
"140"
,
align
:
"left"
,
prop
:
"cdkeyContentDescribe"
,
label
:
"兑换内容"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
"show-overflow-tooltip"
:
!
0
,
"min-width"
:
"120"
,
align
:
"left"
,
prop
:
"createTime"
,
label
:
"兑换码状态"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
1
==
t
.
row
.
convertibilityStatus
?
a
(
"div"
,{
staticClass
:
"dm-status--success"
},[
e
.
_v
(
"成功"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
2
==
t
.
row
.
convertibilityStatus
?
a
(
"div"
,{
staticClass
:
"dm-status--error"
},[
e
.
_v
(
"失败"
)]):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
"show-overflow-tooltip"
:
!
0
,
"min-width"
:
"120"
,
align
:
"left"
,
prop
:
"convertibilityRemark"
,
label
:
"备注"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
convertibilityRemark
||
"--"
)
+
"
\
n "
)]}}])})],
1
),
e
.
_v
(
" "
),
a
(
"dm-pagination"
,{
directives
:[{
name
:
"show"
,
rawName
:
"v-show"
,
value
:
e
.
tableList
.
length
,
expression
:
"tableList.length"
}],
staticClass
:
"dm-pagination"
,
attrs
:{
background
:
""
,
"current-page"
:
e
.
listParams
.
currentPage
,
"page-sizes"
:[
20
,
40
,
60
,
80
],
"page-size"
:
e
.
listParams
.
pageSize
,
layout
:
"total, sizes, prev, pager, next"
,
total
:
e
.
total
},
on
:{
"size-change"
:
e
.
handleSizeChange
,
"current-change"
:
e
.
handleCurrentChange
}})],
1
)},
staticRenderFns
:[]},
u
=
a
(
"VU/8"
)(
c
,
d
,
!
1
,
null
,
null
,
null
);
t
.
default
=
u
.
exports
}});
\ No newline at end of file
dist/static/js/cdKey.9f5437e4f0a3a4acde1d.js
0 → 100644
View file @
6d3718a3
webpackJsonp
([
8
],{
"+UPp"
:
function
(
e
,
t
){},
"0SQO"
:
function
(
e
,
t
,
a
){
"use strict"
;
t
.
a
=
{
methods
:{
refresh
:
function
(){
this
.
listParams
.
currentPage
=
1
,
this
.
getTableList
()},
handleSizeChange
:
function
(
e
){
this
.
listParams
.
pageSize
=
e
,
this
.
getTableList
()},
handleCurrentChange
:
function
(
e
){
this
.
listParams
.
currentPage
=
e
,
this
.
getTableList
()}}}},
"1ION"
:
function
(
e
,
t
,
a
){
"use strict"
;
a
.
d
(
t
,
"a"
,
function
(){
return
r
}),
a
.
d
(
t
,
"c"
,
function
(){
return
s
}),
a
.
d
(
t
,
"f"
,
function
(){
return
l
}),
a
.
d
(
t
,
"d"
,
function
(){
return
o
}),
a
.
d
(
t
,
"e"
,
function
(){
return
c
}),
a
.
d
(
t
,
"b"
,
function
(){
return
d
});
var
i
=
a
(
"6Hqf"
),
n
=
"api-marketing/"
,
r
=
(
a
(
"2uFj"
).
a
.
api
,
function
(
e
){
return
Object
(
i
.
b
)(
n
+
"marketing-activity-page"
,
e
)}),
s
=
function
(
e
){
return
Object
(
i
.
b
)(
n
+
"del-marketing-activity"
,
e
)},
l
=
function
(
e
){
return
Object
(
i
.
b
)(
n
+
"expire-marketing-activity"
,
e
)},
o
=
function
(
e
){
return
Object
(
i
.
b
)(
n
+
"get-marketing-activity-detail"
,
e
)},
c
=
function
(
e
){
return
Object
(
i
.
b
)(
n
+
"save-edit-marketing-activity"
,
e
)},
d
=
function
(
e
){
return
Object
(
i
.
b
)(
n
+
"marketing-activity-statistics"
,
e
)}},
"5LRq"
:
function
(
e
,
t
){},
"6ncD"
:
function
(
e
,
t
,
a
){
"use strict"
;
var
i
=
{
name
:
"time-count"
,
data
:
function
(){
return
{
isStart
:
!
1
,
globalTimer
:
null
,
countString
:
"0秒"
,
day
:
0
,
hour
:
0
,
minute
:
0
,
second
:
0
,
millisecond
:
0
,
countVal
:
this
.
defaultVal
,
pauseTime
:
0
,
nowDate
:
Date
.
now
()}},
watch
:{
countString
:{
deep
:
!
0
,
handler
:
function
(
e
,
t
){
this
.
needSendSunc
&&
this
.
passToParent
(
e
)}},
needSendSunc
:{
deep
:
!
0
,
handler
:
function
(
e
){
e
&&
this
.
passToParent
(
this
.
countString
)}}},
props
:{
sendSync
:{
type
:
Boolean
,
default
:
!
1
},
autoStart
:{
type
:
Boolean
,
default
:
!
1
},
defaultVal
:{
type
:
Number
,
default
:
0
}},
mounted
:
function
(){
this
.
autoStart
&&
this
.
startCountFn
()},
computed
:{
needSendSunc
:
function
(){
return
this
.
sendSync
}},
created
:
function
(){
this
.
$on
(
"startCount"
,
function
(){
this
.
startCountFn
()}),
this
.
$on
(
"stopCount"
,
function
(){
this
.
stopCountFn
()})},
methods
:{
counterFn
:
function
(
e
){
var
t
=
this
,
a
=
(
new
Date
).
getTime
(),
i
=
0
;
this
.
pauseTime
<=
0
?
i
=
e
-
a
:(
this
.
pauseTime
=
this
.
pauseTime
+
10
,
i
=
e
-
this
.
pauseTime
),
i
<=
0
&&
(
this
.
stopCountFn
(),
this
.
$nextTick
(
function
(
e
){
t
.
countString
=
""
}));
var
n
=
i
%
864
e5
,
r
=
n
%
36
e5
,
s
=
r
%
6
e4
;
this
.
day
=
Math
.
floor
(
i
/
864
e5
),
this
.
hour
=
Math
.
floor
(
n
/
36
e5
),
this
.
minute
=
Math
.
floor
(
r
/
6
e4
),
this
.
second
=
Math
.
round
(
s
/
1
e3
),
this
.
day
>
0
?
this
.
countString
=
this
.
day
+
"天 "
+
this
.
hour
+
"小时 "
+
this
.
minute
+
"分 "
+
this
.
second
+
"秒"
:
this
.
hour
>
0
?
this
.
countString
=
this
.
hour
+
"小时 "
+
this
.
minute
+
"分 "
+
this
.
second
+
"秒"
:
this
.
minute
>
0
?
this
.
countString
=
this
.
minute
+
"分 "
+
this
.
second
+
"秒"
:
this
.
countString
=
this
.
second
+
"秒"
},
startCountFn
:
function
(){
var
e
=
this
;
if
(
!
this
.
isStart
){
this
.
countVal
=
this
.
countVal
?
this
.
countVal
:(
new
Date
).
getTime
();
var
t
=
setInterval
(
function
(
t
){
e
.
counterFn
(
e
.
countVal
)},
1
e3
);
this
.
globalTimer
=
t
,
this
.
isStart
=!
0
}},
stopCountFn
:
function
(){
this
.
isStart
&&
(
window
.
clearInterval
(
this
.
globalTimer
),
this
.
globalTimer
=
null
,
this
.
isStart
=!
1
,
this
.
pauseTime
=
(
new
Date
).
getTime
())},
passToParent
:
function
(
e
){
this
.
$emit
(
"getDataFromChild"
,
e
)}},
beforeDestroy
:
function
(){
this
.
stopCountFn
()}},
n
=
{
render
:
function
(){
var
e
=
this
.
$createElement
,
t
=
this
.
_self
.
_c
||
e
;
return
t
(
"div"
,[
t
(
"span"
,{
attrs
:{
sendSync
:
this
.
sendSync
,
autoStart
:
this
.
autoStart
,
defaultVal
:
this
.
defaultVal
}},[
this
.
_v
(
this
.
_s
(
this
.
countString
))])])},
staticRenderFns
:[]},
r
=
a
(
"VU/8"
)(
i
,
n
,
!
1
,
null
,
null
,
null
);
t
.
a
=
r
.
exports
},
AQXh
:
function
(
e
,
t
,
a
){
"use strict"
;
var
i
=
{
name
:
"dm-upload"
,
props
:{
model
:{
type
:
Object
,
default
:
function
(){
return
{
code
:
""
,
imgUrl
:
""
,
wxImg
:
""
}}},
width
:{
type
:
String
,
default
:
"auto"
},
tips
:{
type
:
String
,
default
:
"图片建议尺寸:100*100"
},
className
:{
type
:
String
,
default
:
""
},
label
:{
type
:
String
,
default
:
"上传"
},
fileType
:{
type
:
String
,
default
:
"file"
},
acceptType
:{
type
:
String
,
default
:
"image/gif, image/jpeg,image/png"
},
showImg
:{
type
:
Boolean
,
default
:
!
0
},
tipsStyle
:
Object
,
url
:{
type
:
String
,
default
:
""
},
needExtraParams
:{
type
:
Boolean
,
default
:
!
1
},
paramsObj
:{
type
:
Object
},
noUse
:{
type
:
Boolean
,
default
:
!
1
},
iconClass
:{
type
:
String
,
default
:
""
},
needAxiosDataBack
:{
type
:
Boolean
,
default
:
!
1
}},
watch
:{
model
:{
handler
:
function
(
e
){
this
.
$emit
(
"update:model"
,
this
.
model
),
this
.
$emit
(
"backImg"
,
this
.
model
)},
deep
:
!
0
}},
data
:
function
(){
return
{
disabled
:
!
1
,
loading
:
!
1
}},
methods
:{
dataBack
:
function
(
e
,
t
){
this
.
$emit
(
"dataBack"
,
e
,
t
)}}},
n
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,[
a
(
"label"
,{
staticClass
:
"el-button el-button--primary"
,
class
:{
"is-disabled"
:
e
.
disabled
||
e
.
noUse
}},[
e
.
iconClass
?
a
(
"i"
,{
staticClass
:
"mr5"
,
class
:
e
.
iconClass
}):
e
.
_e
(),
e
.
_v
(
"
\
n "
+
e
.
_s
(
e
.
disabled
?
"上传中..."
:
e
.
label
)
+
"
\
n "
),
a
(
"input"
,{
directives
:[{
name
:
"upload"
,
rawName
:
"v-upload"
,
value
:
this
,
expression
:
"this"
}],
ref
:
"uploader"
,
staticStyle
:{
display
:
"none"
},
attrs
:{
type
:
"file"
,
disabled
:
e
.
disabled
||
e
.
noUse
,
accept
:
e
.
acceptType
}})]),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"fz12 gray"
,
style
:
e
.
tipsStyle
},[
e
.
_v
(
" "
+
e
.
_s
(
e
.
tips
))])])},
staticRenderFns
:[]};
var
r
=
a
(
"VU/8"
)(
i
,
n
,
!
1
,
function
(
e
){
a
(
"5LRq"
)},
"data-v-1b5ce2bf"
,
null
);
t
.
a
=
r
.
exports
},
BPmr
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
i
=
{
render
:
function
(){
var
e
=
this
.
$createElement
,
t
=
this
.
_self
.
_c
||
e
;
return
t
(
"div"
,[
t
(
"router-view"
)],
1
)},
staticRenderFns
:[]},
n
=
a
(
"VU/8"
)({
name
:
"cdkey"
,
created
:
function
(){
var
e
=
this
;
this
.
$store
.
commit
(
"aside_handler"
,
!
1
),
this
.
$nextTick
(
function
(
t
){
e
.
$store
.
commit
(
"aside_handler"
,
!
0
)})}},
i
,
!
1
,
null
,
null
,
null
);
t
.
default
=
n
.
exports
},
D4hP
:
function
(
e
,
t
){},
Dd8w
:
function
(
e
,
t
,
a
){
"use strict"
;
t
.
__esModule
=!
0
;
var
i
,
n
=
a
(
"woOf"
),
r
=
(
i
=
n
)
&&
i
.
__esModule
?
i
:{
default
:
i
};
t
.
default
=
r
.
default
||
function
(
e
){
for
(
var
t
=
1
;
t
<
arguments
.
length
;
t
++
){
var
a
=
arguments
[
t
];
for
(
var
i
in
a
)
Object
.
prototype
.
hasOwnProperty
.
call
(
a
,
i
)
&&
(
e
[
i
]
=
a
[
i
])}
return
e
}},
GZBk
:
function
(
e
,
t
,
a
){
"use strict"
;
a
.
d
(
t
,
"h"
,
function
(){
return
s
}),
a
.
d
(
t
,
"g"
,
function
(){
return
l
}),
a
.
d
(
t
,
"e"
,
function
(){
return
o
}),
a
.
d
(
t
,
"f"
,
function
(){
return
c
}),
a
.
d
(
t
,
"d"
,
function
(){
return
d
}),
a
.
d
(
t
,
"j"
,
function
(){
return
u
}),
a
.
d
(
t
,
"i"
,
function
(){
return
m
}),
a
.
d
(
t
,
"a"
,
function
(){
return
p
}),
a
.
d
(
t
,
"b"
,
function
(){
return
f
}),
a
.
d
(
t
,
"c"
,
function
(){
return
h
});
var
i
=
a
(
"6Hqf"
),
n
=
a
(
"2uFj"
),
r
=
"api-marketing/"
,
s
=
(
n
.
a
.
api
,
function
(
e
){
return
Object
(
i
.
b
)(
r
+
"cdkey-plan-record"
,
e
)}),
l
=
function
(
e
){
return
Object
(
i
.
b
)(
r
+
"cdkey-plan-forbid"
,
e
)},
o
=
function
(
e
){
return
Object
(
i
.
b
)(
r
+
"cdkey-plan-delete"
,
e
)},
c
=
function
(
e
){
return
Object
(
i
.
b
)(
r
+
"cdkey-plan-edit"
,
e
)},
d
=
function
(
e
){
return
Object
(
i
.
b
)(
r
+
"cdkey-log-record"
,
e
)},
u
=
function
(
e
){
return
Object
(
i
.
b
)(
r
+
"get-cdkey-wxa-qr-code-image"
,
e
)},
m
=
r
+
"cdkey-plan-save"
,
p
=
r
+
"cdkey-check"
,
f
=
n
.
a
.
api
+
r
+
"cdkey-export?requestProject=marketing"
,
h
=
n
.
a
.
api
+
r
+
"cdkey-fail-export"
},
UsD7
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
i
=
a
(
"Xxa5"
),
n
=
a
.
n
(
i
),
r
=
a
(
"exGp"
),
s
=
a
.
n
(
r
),
l
=
a
(
"GZBk"
),
o
=
a
(
"0xDb"
),
c
=
a
(
"6ncD"
),
d
=
a
(
"0SQO"
),
u
=
{
name
:
"cdkey-list"
,
components
:{
timeCounts
:
c
.
a
},
mixins
:[
d
.
a
],
data
:
function
(){
return
{
status
:[{
value
:
1
,
label
:
"未生效"
},{
value
:
2
,
label
:
"生效中"
},{
value
:
4
,
label
:
"已失效"
}],
loading
:
!
1
,
tableList
:[],
listParams
:{
cdkeyPlanStatus
:
""
,
cdkeyType
:
""
,
cdkeyEffectTime
:
""
,
cdkeyLimitTime
:
""
,
cdkeyName
:
""
,
currentPage
:
1
,
pageSize
:
20
},
dateTime
:[
""
,
""
],
total
:
0
,
qrUrl
:
""
,
codeVisible
:
!
1
,
projectName
:
"marketing"
,
dialogVisible
:
!
1
,
excelUrl
:
""
,
params
:{}}},
created
:
function
(){
this
.
$store
.
commit
(
"mutations_breadcrumb"
,[{
name
:
"营销管理"
,
path
:
""
},{
name
:
"兑换码"
,
path
:
""
},{
name
:
"兑换码列表"
,
path
:
""
}]),
this
.
getTableList
(),
this
.
getCdkeyWxaQrCodeImage
()},
methods
:{
formatDateTimeByType
:
o
.
f
,
getCdkeyWxaQrCodeImage
:
function
(){
var
e
=
this
;
Object
(
l
.
j
)().
then
(
function
(
t
){
e
.
qrUrl
=
t
.
result
})},
getTableList
:
function
(){
var
e
=
this
;
return
s
()(
n
.
a
.
mark
(
function
t
(){
var
a
;
return
n
.
a
.
wrap
(
function
(
t
){
for
(;;)
switch
(
t
.
prev
=
t
.
next
){
case
0
:
return
t
.
prev
=
0
,
e
.
loading
=!
0
,
e
.
dateTime
?(
e
.
listParams
.
cdkeyEffectTime
=
Object
(
o
.
f
)(
e
.
dateTime
[
0
],
"yyyy-MM-dd"
),
e
.
listParams
.
cdkeyLimitTime
=
Object
(
o
.
f
)(
e
.
dateTime
[
1
],
"yyyy-MM-dd"
)):
e
.
listParams
.
cdkeyEffectTime
=
e
.
listParams
.
cdkeyLimitTime
=
""
,
t
.
next
=
5
,
Object
(
l
.
h
)(
e
.
listParams
);
case
5
:
0
===
(
a
=
t
.
sent
).
errorCode
&&
a
.
result
?(
e
.
tableList
=
a
.
result
.
result
||
[],
e
.
total
=
a
.
result
.
totalCount
):(
e
.
tableList
=
[],
e
.
total
=
0
),
e
.
loading
=!
1
,
t
.
next
=
13
;
break
;
case
10
:
t
.
prev
=
10
,
t
.
t0
=
t
.
catch
(
0
),
e
.
loading
=!
1
;
case
13
:
case
"end"
:
return
t
.
stop
()}},
t
,
e
,[[
0
,
10
]])}))()},
delData
:
function
(
e
){
var
t
=
this
,
a
=
e
.
cdkeyPlanId
;
this
.
loading
=!
0
,
Object
(
l
.
e
)({
cdkeyPlanId
:
a
}).
then
(
function
(
e
){
t
.
$tips
({
type
:
"success"
,
message
:
"删除成功!"
}),
t
.
getTableList
()}).
catch
(
function
(
e
){
t
.
$tips
({
type
:
"error"
,
message
:
"删除失败!"
})}).
finally
(
function
(){
t
.
loading
=!
1
})},
invalidData
:
function
(
e
){
var
t
=
this
,
a
=
e
.
cdkeyPlanId
;
this
.
loading
=!
0
,
Object
(
l
.
g
)({
cdkeyPlanId
:
a
}).
then
(
function
(
e
){
t
.
$tips
({
type
:
"success"
,
message
:
"禁用成功!"
}),
t
.
getTableList
()}).
catch
(
function
(
e
){
t
.
$tips
({
type
:
"error"
,
message
:
"禁用失败!"
})}).
finally
(
function
(){
t
.
loading
=!
1
})},
cdkeyExport
:
function
(
e
){
var
t
=
e
.
cdkeyPlanId
;
this
.
dialogVisible
=!
0
,
this
.
excelUrl
=
l
.
b
,
this
.
params
=
{
cdkeyPlanId
:
t
,
requestProject
:
"marketing"
}}}},
m
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"section"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loading
,
expression
:
"loading"
}],
staticClass
:
"dm-wrap"
},[
a
(
"div"
,{
staticClass
:
"clearfix pb22"
},[
a
(
"el-input"
,{
staticClass
:
"w280"
,
attrs
:{
placeholder
:
"请输入兑换码名称"
,
clearable
:
""
},
on
:{
change
:
e
.
refresh
},
model
:{
value
:
e
.
listParams
.
cdkeyName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
listParams
,
"cdkeyName"
,
t
)},
expression
:
"listParams.cdkeyName"
}},[
a
(
"i"
,{
staticClass
:
"el-input__icon el-icon-search"
,
attrs
:{
slot
:
"prefix"
},
slot
:
"prefix"
})]),
e
.
_v
(
" "
),
a
(
"el-date-picker"
,{
staticClass
:
"w300"
,
attrs
:{
type
:
"daterange"
,
"range-separator"
:
"至"
,
"start-placeholder"
:
"兑换开始日期"
,
"end-placeholder"
:
"兑换结束日期"
},
on
:{
change
:
e
.
refresh
},
model
:{
value
:
e
.
dateTime
,
callback
:
function
(
t
){
e
.
dateTime
=
t
},
expression
:
"dateTime"
}}),
e
.
_v
(
" "
),
a
(
"el-select"
,{
staticClass
:
"dm-select"
,
attrs
:{
clearable
:
""
,
placeholder
:
"兑换码类型"
},
on
:{
change
:
e
.
refresh
},
model
:{
value
:
e
.
listParams
.
cdkeyType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
listParams
,
"cdkeyType"
,
t
)},
expression
:
"listParams.cdkeyType"
}},[
a
(
"el-option"
,{
attrs
:{
label
:
"专属码"
,
value
:
1
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"通用码"
,
value
:
2
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-select"
,{
staticClass
:
"dm-select"
,
attrs
:{
clearable
:
""
,
placeholder
:
"兑换码状态"
},
on
:{
change
:
e
.
refresh
},
model
:{
value
:
e
.
listParams
.
cdkeyPlanStatus
,
callback
:
function
(
t
){
e
.
$set
(
e
.
listParams
,
"cdkeyPlanStatus"
,
t
)},
expression
:
"listParams.cdkeyPlanStatus"
}},
e
.
_l
(
e
.
status
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
value
,
attrs
:{
label
:
e
.
label
,
value
:
e
.
value
}})}),
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"fr"
},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
codeVisible
=!
0
}}},[
e
.
_v
(
"兑换链接"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
return
e
.
$router
.
push
(
"/cdKey/add"
)}}},[
e
.
_v
(
"新建兑换码"
)])],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
tooltipEffect
:
"light"
,
data
:
e
.
tableList
}},[
a
(
"el-table-column"
,{
attrs
:{
"min-width"
:
"150"
,
align
:
"left"
,
prop
:
"cdkeyName"
,
label
:
"兑换码名称"
,
fixed
:
"left"
,
"show-overflow-tooltip"
:
!
0
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
"show-overflow-tooltip"
:
!
0
,
"min-width"
:
"150"
,
align
:
"left"
,
prop
:
"createTime"
,
label
:
"有效期"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"div"
,[
e
.
_v
(
e
.
_s
(
e
.
formatDateTimeByType
(
t
.
row
.
cdkeyEffectTime
,
"yyyy-MM-dd HH:mm:ss"
))
+
"~"
)]),
e
.
_v
(
" "
),
a
(
"div"
,[
e
.
_v
(
e
.
_s
(
e
.
formatDateTimeByType
(
t
.
row
.
cdkeyLimitTime
,
"yyyy-MM-dd HH:mm:ss"
)))])]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
"show-overflow-tooltip"
:
!
0
,
"min-width"
:
"120"
,
align
:
"left"
,
label
:
"兑换码类型"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
1
==
t
.
row
.
cdkeyType
?
"专属码"
:
"通用码"
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
"show-overflow-tooltip"
:
!
0
,
"min-width"
:
"140"
,
align
:
"left"
,
prop
:
"cdkeyContentDescribe"
,
label
:
"兑换码内容"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
1
==
t
.
row
.
cdkeyType
?
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
return
e
.
cdkeyExport
(
t
.
row
)}}},[
e
.
_v
(
"导出兑换码列表"
)]):
a
(
"span"
,[
e
.
_v
(
e
.
_s
(
t
.
row
.
cdkeyValue
))])]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
"min-width"
:
"120"
,
align
:
"left"
,
prop
:
"cdkeyCount"
,
label
:
"兑换码数量"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
"show-overflow-tooltip"
:
!
0
,
"min-width"
:
"140"
,
align
:
"left"
,
prop
:
"cdkeyContentDescribe"
,
label
:
"兑换内容"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
"show-overflow-tooltip"
:
!
0
,
"min-width"
:
"120"
,
align
:
"left"
,
prop
:
"createTime"
,
label
:
"兑换码状态"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
1
==
t
.
row
.
cdkeyPlanStatus
?
a
(
"div"
,[
a
(
"span"
,{
staticClass
:
"dm-status--warning"
}),
e
.
_v
(
"未生效"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
2
==
t
.
row
.
cdkeyPlanStatus
?
a
(
"div"
,[
a
(
"span"
,{
staticClass
:
"dm-status--primary--flash"
}),
e
.
_v
(
"生效中"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
3
==
t
.
row
.
cdkeyPlanStatus
?
a
(
"div"
,[
e
.
_v
(
"已过期"
),
a
(
"span"
,{
staticClass
:
"dm-status--info"
})]):
e
.
_e
(),
e
.
_v
(
" "
),
4
==
t
.
row
.
cdkeyPlanStatus
?
a
(
"div"
,[
a
(
"span"
,{
staticClass
:
"dm-status--info"
}),
e
.
_v
(
"已失效"
)]):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
,
align
:
"left"
,
width
:
"160px"
,
fixed
:
"right"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
1
==
t
.
row
.
cdkeyPlanStatus
?
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
return
e
.
$router
.
push
(
"/cdKey/edit/"
+
t
.
row
.
cdkeyPlanId
)}}},[
e
.
_v
(
"编辑"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
1
!=
t
.
row
.
cdkeyPlanStatus
?
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
return
e
.
$router
.
push
(
"/cdKey/info/"
+
t
.
row
.
cdkeyPlanId
)}}},[
e
.
_v
(
"详情"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
2
==
t
.
row
.
cdkeyPlanStatus
?
a
(
"dm-delete"
,{
attrs
:{
tips
:
"是否禁用该条数据?"
},
on
:{
confirm
:
function
(
a
){
return
e
.
invalidData
(
t
.
row
)}}},[
a
(
"el-button"
,{
attrs
:{
type
:
"text"
}},[
e
.
_v
(
"禁用"
)])],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
1
==
t
.
row
.
cdkeyPlanStatus
?
a
(
"dm-delete"
,{
attrs
:{
tips
:
"是否删除该条数据?"
},
on
:{
confirm
:
function
(
a
){
return
e
.
delData
(
t
.
row
)}}},[
a
(
"el-button"
,{
attrs
:{
type
:
"text"
}},[
e
.
_v
(
"删除"
)])],
1
):
e
.
_e
()]}}])})],
1
),
e
.
_v
(
" "
),
a
(
"dm-pagination"
,{
directives
:[{
name
:
"show"
,
rawName
:
"v-show"
,
value
:
e
.
tableList
.
length
,
expression
:
"tableList.length"
}],
staticClass
:
"dm-pagination"
,
attrs
:{
background
:
""
,
"current-page"
:
e
.
listParams
.
currentPage
,
"page-sizes"
:[
20
,
40
,
60
,
80
],
"page-size"
:
e
.
listParams
.
pageSize
,
layout
:
"total, sizes, prev, pager, next"
,
total
:
e
.
total
},
on
:{
"size-change"
:
e
.
handleSizeChange
,
"current-change"
:
e
.
handleCurrentChange
}}),
e
.
_v
(
" "
),
a
(
"el-dialog"
,{
attrs
:{
title
:
"生成链接"
,
visible
:
e
.
codeVisible
,
width
:
"500px"
},
on
:{
"update:visible"
:
function
(
t
){
e
.
codeVisible
=
t
}}},[
a
(
"div"
,{
staticClass
:
"text-center pt20"
},[
a
(
"img"
,{
attrs
:{
src
:
e
.
qrUrl
,
width
:
"192"
,
height
:
"192"
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticStyle
:{
"margin-top"
:
"11px"
,
color
:
"#606266"
,
"padding-bottom"
:
"50px"
}},[
e
.
_v
(
"- 兑换码链接二维码 -"
)])])]),
e
.
_v
(
" "
),
a
(
"vue-gic-export-excel"
,{
attrs
:{
dialogVisible
:
e
.
dialogVisible
,
dataArr
:
e
.
tableList
,
type
:
2
,
excelUrl
:
e
.
excelUrl
,
params
:
e
.
params
,
projectName
:
e
.
projectName
},
on
:{
"update:dialogVisible"
:
function
(
t
){
e
.
dialogVisible
=
t
},
"update:dialog-visible"
:
function
(
t
){
e
.
dialogVisible
=
t
}}})],
1
)},
staticRenderFns
:[]},
p
=
a
(
"VU/8"
)(
u
,
m
,
!
1
,
null
,
null
,
null
);
t
.
default
=
p
.
exports
},
oqbS
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
i
=
a
(
"Dd8w"
),
n
=
a
.
n
(
i
),
r
=
a
(
"fZjL"
),
s
=
a
.
n
(
r
),
l
=
a
(
"mtWM"
),
o
=
a
.
n
(
l
),
c
=
a
(
"AQXh"
),
d
=
a
(
"0xDb"
),
u
=
a
(
"v7us"
),
m
=
a
(
"GZBk"
),
p
=
{
name
:
"cdkey-form"
,
data
:
function
(){
var
e
=
this
;
return
{
loading
:
!
1
,
cdkeyPlanId
:
this
.
$route
.
params
.
id
,
cdkeyFailExportUrl
:
m
.
c
,
ruleForm
:{
cdkeyContentType
:
""
,
cdkeyContentRelated
:
""
,
cdkeyContentDescribe
:
""
,
cdkeyMode
:
1
,
cdkeyType
:
1
,
cdkeyValue
:
""
,
cdkeyEffectTime
:
""
,
cdkeyLimitTime
:
""
,
cdkeyName
:
""
,
marketingActivityId
:
""
},
importRes
:{
file
:
null
,
fileId
:
""
,
fileName
:
""
,
size
:
""
,
fail
:
0
,
success
:
0
,
failData
:[],
total
:
0
},
rules
:{
cdkeyName
:[{
required
:
!
0
,
message
:
"请输入兑换码名称"
,
trigger
:
"change"
}],
cdkeyCount
:[{
validator
:
function
(
t
,
a
,
i
){
if
(
!
a
){
var
n
=
"请输入"
+
(
2
==
e
.
ruleForm
.
cdkeyType
?
"兑换次数上限"
:
"兑换码数量"
);
return
2
==
e
.
ruleForm
.
cdkeyMode
&&
(
n
=
e
.
importRes
.
fileName
?
"手工导入数据无可用码"
:
"请上传文件"
),
i
(
new
Error
(
""
+
n
))}
i
()},
trigger
:
"change"
}],
cdkeyContentRelated
:[{
required
:
!
0
,
message
:
"请选择卡券"
,
trigger
:
"change"
}],
fileId
:[{
validator
:
function
(
t
,
a
,
i
){
if
(
2
==
e
.
ruleForm
.
cdkeyMode
&&!
e
.
importRes
.
fileId
&&
e
.
isAdd
)
return
i
(
new
Error
(
t
.
message
));
i
()},
message
:
"请上传文件"
,
trigger
:
"change"
}],
dateTime
:[{
required
:
!
0
,
validator
:
function
(
t
,
a
,
i
){
if
(
e
.
isEdit
&&
i
(),
e
.
dateTime
&&
e
.
dateTime
[
0
]){
var
n
=
e
.
dateTime
[
0
],
r
=
e
.
dateTime
[
1
];
new
Date
(
r
).
getTime
()
-
new
Date
(
n
).
getTime
()
>
7776
e6
&&
e
.
canEdit
&&
i
(
new
Error
(
t
.
message
||
"时间跨度不能超过三个月"
)),
i
()}
else
i
(
new
Error
(
"有效期不能为空"
))},
trigger
:
"change"
}],
cdkeyValue
:[{
required
:
!
0
,
validator
:
function
(
t
,
a
,
i
){
if
(
2
==
e
.
ruleForm
.
cdkeyType
)
return
e
.
ruleForm
.
cdkeyValue
||
i
(
new
Error
(
"请输入码值"
)),
/^
[
0-9A-Za-z
]{8}
$/
.
test
(
e
.
ruleForm
.
cdkeyValue
)
||
i
(
new
Error
(
"码值限定8位,包含数字及字母"
)),
i
();
i
()},
trigger
:
"change"
}]},
uploadUrl
:
m
.
a
,
pickerOptions
:{
disabledDate
:
function
(
e
){
return
Date
.
now
()
>=
e
.
getTime
()
+
864
e5
}},
dateTime
:[],
projectName
:
"marketing"
,
dialogVisible
:
!
1
,
excelUrl
:
""
,
params
:{},
showCardDialog
:
!
1
,
isAdd
:
"add"
===
this
.
$route
.
meta
.
type
,
isEdit
:
"edit"
===
this
.
$route
.
meta
.
type
,
isInfo
:
"info"
===
this
.
$route
.
meta
.
type
}},
components
:{
activitySelect
:
u
.
a
,
file
:
c
.
a
},
computed
:{
canEdit
:
function
(){
return
this
.
isAdd
||
this
.
isEdit
&&
new
Date
<
this
.
dateTime
[
0
]}},
methods
:{
changeCdkeyValue
:
function
(
e
){
2
==
e
&&
(
this
.
ruleForm
.
cdkeyMode
=
1
),
this
.
$refs
.
ruleForm
.
validateField
(
"cdkeyCount"
)},
changeCdKeyMode
:
function
(
e
){
2
==
e
&&
(
this
.
ruleForm
.
cdkeyCount
=
this
.
importRes
.
success
||
0
),
this
.
$refs
.
ruleForm
.
validateField
(
"cdkeyCount"
)},
downloadMX
:
function
(){
window
.
open
(
"/marketing/static/file/兑换码模板示例.xlsx"
,
"_blank"
)},
getInfo
:
function
(){
var
e
=
this
;
this
.
loading
=!
0
,
Object
(
m
.
f
)({
cdkeyPlanId
:
this
.
cdkeyPlanId
}).
then
(
function
(
t
){
s
()(
e
.
ruleForm
).
map
(
function
(
a
){
e
.
ruleForm
[
a
]
=
t
.
result
[
a
]}),
e
.
dateTime
=
[
t
.
result
.
cdkeyEffectTime
,
t
.
result
.
cdkeyLimitTime
]}).
finally
(
function
(){
e
.
loading
=!
1
})},
submit
:
Object
(
d
.
a
)(
function
(){
var
e
=
this
;
this
.
loading
||
this
.
$refs
.
ruleForm
.
validate
(
function
(
t
){
if
(
t
){
e
.
loading
=!
0
;
var
a
=
n
()({},
e
.
ruleForm
);
a
.
cdkeyEffectTime
=
Object
(
d
.
f
)(
e
.
dateTime
[
0
],
"yyyy-MM-dd HH:mm:ss"
),
a
.
cdkeyLimitTime
=
Object
(
d
.
f
)(
e
.
dateTime
[
1
],
"yyyy-MM-dd HH:mm:ss"
),
delete
a
.
fileId
;
var
i
=
new
FormData
;
i
.
append
(
"requestProject"
,
"gic-web"
),
2
==
a
.
cdkeyMode
&&
i
.
append
(
"file"
,
e
.
importRes
.
file
),
e
.
isEdit
&&
i
.
append
(
"cdkeyPlanId"
,
e
.
cdkeyPlanId
),
s
()(
a
).
forEach
(
function
(
e
){
i
.
append
(
e
,
a
[
e
])}),
o
.
a
.
post
(
m
.
i
,
i
).
then
(
function
(
t
){
0
===
t
.
data
.
errorCode
?(
e
.
$tips
({
message
:
"操作成功!"
}),
e
.
$router
.
push
(
"/cdKey/list"
)):
e
.
$tips
({
type
:
"error"
,
message
:
t
.
data
.
message
})}).
catch
(
function
(
t
){
e
.
$tips
({
type
:
"error"
,
message
:
t
.
message
})}).
finally
(
function
(){
e
.
loading
=!
1
})}})}),
cdkeyFailExport
:
function
(){
var
e
=
new
FormData
;
e
.
append
(
"requestProject"
,
"gic-web"
),
e
.
append
(
"file"
,
this
.
importRes
.
file
);
var
t
=
new
XMLHttpRequest
;
t
.
withCredentials
=!
0
,
t
.
responseType
=
"blob"
,
t
.
onload
=
function
(){
if
(
200
===
t
.
status
&&
4
==
t
.
readyState
){
var
e
=
t
.
response
,
a
=
document
.
createElement
(
"a"
),
i
=
window
.
URL
.
createObjectURL
(
e
);
a
.
href
=
i
,
a
.
download
=
"兑换码导入失败记录"
+
(
new
Date
).
getTime
()
+
".xls"
,
a
.
click
()}},
t
.
open
(
"post"
,
m
.
c
,
!
0
),
t
.
send
(
e
)},
cleanCard
:
function
(){
this
.
ruleForm
.
cdkeyContentRelated
=
""
,
this
.
ruleForm
.
cdkeyContentDescribe
=
""
,
this
.
ruleForm
.
cdkeyContentType
=
""
,
this
.
$refs
.
ruleForm
.
validateField
(
"cdkeyContentDescribe"
)},
selectCard
:
function
(
e
){
e
&&
(
this
.
ruleForm
.
cdkeyContentType
=
1
,
this
.
ruleForm
.
cdkeyContentRelated
=
e
.
coupCardId
,
this
.
ruleForm
.
cdkeyContentDescribe
=
e
.
cardName
,
this
.
$refs
.
ruleForm
.
validateField
(
"cdkeyContentDescribe"
)),
this
.
showCardDialog
=!
1
},
dataBack
:
function
(
e
,
t
){
this
.
importRes
.
file
=
e
,
this
.
importRes
.
fileName
=
e
.
name
.
length
>
15
?
e
.
name
.
substring
(
0
,
15
)
+
"..."
:
e
.
name
,
this
.
importRes
.
fileId
=
new
Date
,
this
.
importRes
.
size
=
(
e
.
size
/
1024
).
toFixed
(
2
),
this
.
importRes
.
success
=
t
.
success
,
this
.
ruleForm
.
cdkeyCount
=
t
.
success
,
this
.
importRes
.
fail
=
t
.
fail
,
this
.
importRes
.
total
=
t
.
total
,
this
.
importRes
.
failData
=
t
.
failData
,
this
.
$refs
.
ruleForm
.
validateField
(
"fileId"
),
this
.
$refs
.
ruleForm
.
validateField
(
"cdkeyCount"
)},
cdkeyExport
:
function
(){
this
.
dialogVisible
=!
0
,
this
.
excelUrl
=
m
.
b
,
this
.
params
=
{
cdkeyPlanId
:
this
.
cdkeyExport
,
requestProject
:
"marketing"
}}},
mounted
:
function
(){
this
.
isAdd
||
this
.
getInfo
()},
created
:
function
(){
var
e
=
this
.
isAdd
?
"新建兑换码"
:
this
.
isInfo
?
"编辑兑换码"
:
"兑换码详情"
;
this
.
$store
.
commit
(
"mutations_breadcrumb"
,[{
name
:
"营销管理"
,
path
:
""
},{
name
:
"兑换码"
,
path
:
""
},{
name
:
e
,
path
:
""
}])}},
f
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loading
,
expression
:
"loading"
}],
staticClass
:
"dm-wrap"
},[
a
(
"el-form"
,{
ref
:
"ruleForm"
,
attrs
:{
model
:
e
.
ruleForm
,
rules
:
e
.
rules
,
"label-width"
:
"140px"
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"兑换码名称"
,
prop
:
"cdkeyName"
}},[
a
(
"dm-input"
,{
staticClass
:
"w400"
,
attrs
:{
disabled
:
!
e
.
canEdit
,
placeholder
:
"请输入兑换码名称"
,
byteType
:
1
,
maxlength
:
24
},
model
:{
value
:
e
.
ruleForm
.
cdkeyName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
ruleForm
,
"cdkeyName"
,
t
)},
expression
:
"ruleForm.cdkeyName"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
prop
:
"marketingActivityId"
}},[
a
(
"activity-select"
,{
staticClass
:
"activity"
,
staticStyle
:{
"margin-left"
:
"-68px"
},
attrs
:{
actId
:
e
.
ruleForm
.
marketingActivityId
,
readOnly
:
!
e
.
canEdit
},
on
:{
"update:actId"
:
function
(
t
){
return
e
.
$set
(
e
.
ruleForm
,
"marketingActivityId"
,
t
)},
"update:act-id"
:
function
(
t
){
return
e
.
$set
(
e
.
ruleForm
,
"marketingActivityId"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
prop
:
"dateTime"
,
label
:
"有效期"
}},[
a
(
"el-date-picker"
,{
staticClass
:
"w400"
,
attrs
:{
disabled
:
!
e
.
canEdit
,
type
:
"datetimerange"
,
"picker-options"
:
e
.
pickerOptions
,
"range-separator"
:
"至"
,
"start-placeholder"
:
"开始日期"
,
"end-placeholder"
:
"结束日期"
},
model
:{
value
:
e
.
dateTime
,
callback
:
function
(
t
){
e
.
dateTime
=
t
},
expression
:
"dateTime"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"兑换码类型"
,
prop
:
"cdkeyValue"
}},[
a
(
"el-radio-group"
,{
attrs
:{
disabled
:
!
e
.
isAdd
},
on
:{
change
:
e
.
changeCdkeyValue
},
model
:{
value
:
e
.
ruleForm
.
cdkeyType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
ruleForm
,
"cdkeyType"
,
t
)},
expression
:
"ruleForm.cdkeyType"
}},[
a
(
"el-radio"
,{
staticStyle
:{
"margin-right"
:
"44px"
},
attrs
:{
label
:
1
}},[
e
.
_v
(
"专属码"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
2
}},[
e
.
_v
(
"通用码"
)])],
1
),
e
.
_v
(
" "
),
2
==
e
.
ruleForm
.
cdkeyType
?
a
(
"div"
,[
a
(
"div"
,{
staticClass
:
"code1"
},[
e
.
_v
(
"码值:"
),
a
(
"el-input"
,{
staticStyle
:{
width
:
"180px"
},
attrs
:{
disabled
:
!
e
.
isAdd
,
clearable
:
""
,
maxlength
:
"12"
,
palceholder
:
"请输入码值"
},
model
:{
value
:
e
.
ruleForm
.
cdkeyValue
,
callback
:
function
(
t
){
e
.
$set
(
e
.
ruleForm
,
"cdkeyValue"
,
t
)},
expression
:
"ruleForm.cdkeyValue"
}})],
1
)]):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
1
==
e
.
ruleForm
.
cdkeyType
?
a
(
"el-form-item"
,{
attrs
:{
label
:
"券码生成方式"
,
prop
:
"fileId"
}},[
a
(
"el-radio-group"
,{
attrs
:{
disabled
:
!
e
.
isAdd
},
on
:{
change
:
e
.
changeCdKeyMode
},
model
:{
value
:
e
.
ruleForm
.
cdkeyMode
,
callback
:
function
(
t
){
e
.
$set
(
e
.
ruleForm
,
"cdkeyMode"
,
t
)},
expression
:
"ruleForm.cdkeyMode"
}},[
a
(
"el-radio"
,{
attrs
:{
label
:
1
}},[
e
.
_v
(
"系统生成"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
attrs
:{
label
:
2
}},[
e
.
_v
(
"手工导入"
)])],
1
),
e
.
_v
(
" "
),
2
!=
e
.
ruleForm
.
cdkeyMode
||
e
.
isAdd
?
e
.
_e
():
a
(
"el-button"
,{
staticClass
:
"ml20"
,
attrs
:{
type
:
"text"
},
on
:{
click
:
e
.
cdkeyExport
}},[
e
.
_v
(
"导出兑换码列表"
)]),
e
.
_v
(
" "
),
2
==
e
.
ruleForm
.
cdkeyMode
?
a
(
"div"
,[
e
.
isAdd
?
a
(
"div"
,{
staticClass
:
"code2"
},[
a
(
"div"
,[
a
(
"file"
,{
ref
:
"fileUpload"
,
staticClass
:
"inline-block"
,
attrs
:{
needAxiosDataBack
:
""
,
label
:
"点击上传"
,
acceptType
:
".csv, .xlsx"
,
tips
:
""
,
url
:
e
.
uploadUrl
,
iconClass
:
"el-icon-upload2"
},
on
:{
dataBack
:
e
.
dataBack
,
backImg
:
e
.
backImg
}}),
e
.
_v
(
" "
),
a
(
"el-button"
,{
staticClass
:
"ml20"
,
attrs
:{
type
:
"text"
},
on
:{
click
:
e
.
downloadMX
}},[
e
.
_v
(
"下载模板"
)])],
1
),
e
.
_v
(
" "
),
e
.
importRes
.
fileId
?
a
(
"div"
,{
staticClass
:
"success-file"
},[
a
(
"span"
,{
staticClass
:
"fl"
,
staticStyle
:{
"max-width"
:
"500px"
,
overflow
:
"hidden"
}},[
a
(
"i"
,{
staticClass
:
"iconfont mr5 icon-excel"
,
staticStyle
:{
color
:
"#23B08D"
}}),
e
.
_v
(
e
.
_s
(
e
.
importRes
.
fileName
)
+
"("
+
e
.
_s
(
e
.
importRes
.
size
)
+
"kb)"
)]),
e
.
_v
(
" "
),
a
(
"i"
,{
staticClass
:
"el-icon-success fr success-color ml5"
,
staticStyle
:{
"line-height"
:
"40px"
}})]):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
importRes
.
fileId
?
a
(
"div"
,{
staticStyle
:{
"line-height"
:
"1"
}},[
e
.
_v
(
"导入成功"
+
e
.
_s
(
e
.
importRes
.
success
)
+
"条,导入失败"
),
a
(
"span"
,{
staticClass
:
"warning-span"
},[
e
.
_v
(
e
.
_s
(
e
.
importRes
.
fail
))]),
e
.
_v
(
"条
\
n "
),
e
.
importRes
.
fail
>
0
?[
e
.
_v
(
","
),
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
e
.
cdkeyFailExport
}},[
e
.
_v
(
"下载导入失败记录"
)])]:
e
.
_e
()],
2
):
e
.
_e
()]):
e
.
_e
()]):
e
.
_e
()],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
staticClass
:
"is-required"
,
attrs
:{
label
:
2
==
e
.
ruleForm
.
cdkeyType
?
"兑换次数上限"
:
"兑换码数量"
,
prop
:
"cdkeyCount"
}},[
a
(
"el-input-number"
,{
staticStyle
:{
width
:
"140px"
},
attrs
:{
disabled
:
!
e
.
isAdd
||
2
==
e
.
ruleForm
.
cdkeyMode
,
"controls-position"
:
"right"
,
min
:
0
,
max
:
1
e3
},
model
:{
value
:
e
.
ruleForm
.
cdkeyCount
,
callback
:
function
(
t
){
e
.
$set
(
e
.
ruleForm
,
"cdkeyCount"
,
t
)},
expression
:
"ruleForm.cdkeyCount"
}}),
e
.
_v
(
" "
),
2
!=
e
.
ruleForm
.
cdkeyType
?
a
(
"span"
,{
staticClass
:
"gray ml10"
},[
e
.
_v
(
"券码数量请控制在10000以内"
)]):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"兑换内容"
,
prop
:
"cdkeyContentRelated"
}},[
a
(
"el-button"
,{
directives
:[{
name
:
"show"
,
rawName
:
"v-show"
,
value
:
!
e
.
ruleForm
.
cdkeyContentRelated
,
expression
:
"!ruleForm.cdkeyContentRelated"
}],
staticStyle
:{
"border-style"
:
"dashed"
,
width
:
"105px"
},
attrs
:{
type
:
"plain"
},
on
:{
click
:
function
(
t
){
e
.
showCardDialog
=!
0
}}},[
e
.
_v
(
"选择卡券"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
directives
:[{
name
:
"show"
,
rawName
:
"v-show"
,
value
:
e
.
ruleForm
.
cdkeyContentRelated
,
expression
:
"ruleForm.cdkeyContentRelated"
}]},[
e
.
_v
(
"
\
n "
+
e
.
_s
(
e
.
ruleForm
.
cdkeyContentDescribe
)
+
"
\
n "
),
e
.
canEdit
?
a
(
"el-button"
,{
staticClass
:
"ml10"
,
attrs
:{
type
:
"text"
},
on
:{
click
:
e
.
cleanCard
}},[
e
.
_v
(
"删除"
)]):
e
.
_e
()],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,[
e
.
canEdit
?
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
submit
}},[
e
.
_v
(
"确认"
+
e
.
_s
(
e
.
isAdd
?
"新建"
:
"保存"
))]):
e
.
_e
()],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"vue-gic-card"
,{
attrs
:{
appendToBody
:
""
,
showCardDialog
:
e
.
showCardDialog
,
cardLimit
:
-
1
,
cardType
:
null
},
on
:{
selectCard
:
e
.
selectCard
}}),
e
.
_v
(
" "
),
a
(
"vue-gic-export-excel"
,{
attrs
:{
dialogVisible
:
e
.
dialogVisible
,
dataArr
:[
1
,
2
,
3
],
type
:
2
,
excelUrl
:
e
.
excelUrl
,
params
:
e
.
params
,
projectName
:
e
.
projectName
},
on
:{
"update:dialogVisible"
:
function
(
t
){
e
.
dialogVisible
=
t
},
"update:dialog-visible"
:
function
(
t
){
e
.
dialogVisible
=
t
}}})],
1
)},
staticRenderFns
:[]};
var
h
=
a
(
"VU/8"
)(
p
,
f
,
!
1
,
function
(
e
){
a
(
"D4hP"
)},
"data-v-1c28f6fa"
,
null
);
t
.
default
=
h
.
exports
},
v7us
:
function
(
e
,
t
,
a
){
"use strict"
;
var
i
=
a
(
"1ION"
),
n
=
{
name
:
"activity-use-select"
,
props
:{
actId
:{
default
:
""
,
type
:
String
},
readOnly
:{
default
:
!
1
,
type
:
Boolean
},
onlySelect
:{
default
:
!
1
,
type
:
Boolean
},
colon
:{
default
:
!
1
,
type
:
Boolean
}},
data
:
function
(){
return
{
loading
:
!
1
,
marketingActivityId
:
""
,
info
:{},
tableList
:[],
total
:
0
,
listParams
:{
expireType
:
-
1
,
search
:
""
,
currentPage
:
1
,
pageSize
:
10
},
nomore
:
!
1
,
disabled
:
!
1
}},
watch
:{
actId
:{
handler
:
function
(
e
){
e
&&
this
.
readOnly
&&
(
this
.
marketingActivityId
=
e
,
this
.
getActivityInfo
())},
immediate
:
!
0
}},
directives
:{
loadmore
:{
inserted
:
function
(
e
,
t
){
e
.
querySelector
(
".el-select-dropdown .el-select-dropdown__wrap"
).
addEventListener
(
"scroll"
,
function
(){
this
.
scrollHeight
-
this
.
scrollTop
<=
this
.
clientHeight
&&
t
.
value
()})}}},
methods
:{
toAdd
:
function
(){
console
.
log
(
window
.
location
.
origin
+
window
.
location
.
pathname
+
"activity/add"
),
window
.
location
.
href
=
window
.
location
.
origin
+
window
.
location
.
pathname
+
"#/activity/add"
,
window
.
location
.
reload
()},
setInfo
:
function
(
e
){
var
t
=
this
;
this
.
loading
=!
0
,
Object
(
i
.
d
)({
marketingActivityId
:
e
}).
then
(
function
(
a
){
t
.
loading
=!
1
,
t
.
tableList
=
a
.
result
?[
a
.
result
]:[],
t
.
marketingActivityId
=
e
}).
catch
(
function
(){
t
.
loading
=!
1
})},
getActivityInfo
:
function
(){
var
e
=
this
;
this
.
loading
=!
0
,
Object
(
i
.
d
)({
marketingActivityId
:
this
.
actId
}).
then
(
function
(
t
){
e
.
loading
=!
1
,
e
.
info
=
t
.
result
.
activityInfo
||
{}}).
catch
(
function
(){
e
.
loading
=!
1
})},
updateActId
:
function
(
e
){
this
.
$emit
(
"update:actId"
,
e
),
this
.
$emit
(
"actUpdate"
),
e
||
this
.
remoteMethod
(
""
)},
remoteMethod
:
function
(
e
){
this
.
listParams
.
search
=
e
,
this
.
listParams
.
currentPage
=
1
,
this
.
tableList
=
[],
this
.
nomore
=!
1
,
this
.
getList
()},
getMore
:
function
(){
this
.
nomore
||
(
this
.
listParams
.
currentPage
=
1
*
this
.
listParams
.
currentPage
+
1
,
this
.
getList
())},
getList
:
function
(){
var
e
=
this
;
this
.
nomore
||
(
this
.
loading
=!
0
,
this
.
nomore
=!
1
,
Object
(
i
.
a
)(
this
.
listParams
).
then
(
function
(
t
){
e
.
loading
=!
1
;
var
a
=
t
.
result
.
result
||
[],
i
=
e
.
tableList
.
concat
(
a
),
n
=
t
.
result
.
totalCount
||
0
;
e
.
tableList
=
i
,
e
.
total
=
n
,
e
.
nomore
=
n
<=
i
.
length
||
n
-
i
.
length
<
e
.
listParams
.
pagesize
}).
catch
(
function
(){
e
.
loading
=!
1
}))}},
mounted
:
function
(){
!
this
.
readOnly
&&
this
.
getList
()}},
r
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
readOnly
&&
e
.
loading
,
expression
:
"readOnly && loading"
}],
class
:{
"inline-block"
:
e
.
onlySelect
}},[
e
.
onlySelect
?
a
(
"el-select"
,{
directives
:[{
name
:
"loadmore"
,
rawName
:
"v-loadmore"
,
value
:
e
.
getMore
,
expression
:
"getMore"
}],
attrs
:{
remote
:
""
,
filterable
:
""
,
clearable
:
""
,
"remote-method"
:
e
.
remoteMethod
,
size
:
"small"
,
disabled
:
e
.
readOnly
,
placeholder
:
"选择营销活动"
},
on
:{
change
:
e
.
updateActId
},
model
:{
value
:
e
.
marketingActivityId
,
callback
:
function
(
t
){
e
.
marketingActivityId
=
t
},
expression
:
"marketingActivityId"
}},
e
.
_l
(
e
.
tableList
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
marketingActivityId
,
attrs
:{
label
:
e
.
name
,
value
:
e
.
marketingActivityId
}})}),
1
):[
e
.
readOnly
?
a
(
"div"
,[
a
(
"span"
,{
staticClass
:
"dm-input_label"
},[
e
.
_v
(
"营销活动"
),
e
.
colon
?
a
(
"span"
,[
e
.
_v
(
":"
)]):
e
.
_e
()]),
e
.
_v
(
" "
),
a
(
"p"
,{
staticClass
:
"inline-block"
},[
e
.
_v
(
e
.
_s
(
e
.
info
.
name
||
"--"
)
+
" "
),
0
===
e
.
info
.
status
?
a
(
"span"
,{
staticClass
:
"fz12 gray ml10"
},[
e
.
_v
(
"当前计划使用的营销活动已删除"
)]):
e
.
_e
()])]):
a
(
"div"
,[
a
(
"span"
,{
staticClass
:
"dm-input_label"
},[
e
.
_v
(
"营销活动"
),
e
.
colon
?
a
(
"span"
,[
e
.
_v
(
":"
)]):
e
.
_e
()]),
e
.
_v
(
" "
),
a
(
"el-select"
,{
directives
:[{
name
:
"loadmore"
,
rawName
:
"v-loadmore"
,
value
:
e
.
getMore
,
expression
:
"getMore"
}],
staticClass
:
"w250 act-select"
,
attrs
:{
remote
:
""
,
filterable
:
""
,
clearable
:
""
,
"remote-method"
:
e
.
remoteMethod
,
size
:
"small"
,
disabled
:
e
.
readOnly
||
e
.
disabled
,
placeholder
:
"选择营销活动"
},
on
:{
change
:
e
.
updateActId
},
model
:{
value
:
e
.
marketingActivityId
,
callback
:
function
(
t
){
e
.
marketingActivityId
=
t
},
expression
:
"marketingActivityId"
}},
e
.
_l
(
e
.
tableList
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
marketingActivityId
,
attrs
:{
label
:
e
.
name
,
value
:
e
.
marketingActivityId
}})}),
1
),
e
.
_v
(
" "
),
a
(
"el-button"
,{
staticClass
:
"ml10"
,
attrs
:{
type
:
"text"
},
on
:{
click
:
e
.
toAdd
}},[
e
.
_v
(
"去新建"
)])],
1
)]],
2
)},
staticRenderFns
:[]};
var
s
=
a
(
"VU/8"
)(
n
,
r
,
!
1
,
function
(
e
){
a
(
"+UPp"
)},
"data-v-aabd71bc"
,
null
);
t
.
a
=
s
.
exports
},
wFKx
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
i
=
a
(
"Xxa5"
),
n
=
a
.
n
(
i
),
r
=
a
(
"exGp"
),
s
=
a
.
n
(
r
),
l
=
a
(
"GZBk"
),
o
=
a
(
"0xDb"
),
c
=
{
name
:
"cdkey-record"
,
mixins
:[
a
(
"0SQO"
).
a
],
data
:
function
(){
return
{
recordLoading
:
!
1
,
tableList
:[],
listParams
:{
beginTime
:
""
,
endTime
:
""
,
search
:
""
,
currentPage
:
1
,
pageSize
:
20
},
dateTime
:[
""
,
""
],
total
:
0
}},
created
:
function
(){
this
.
$store
.
commit
(
"mutations_breadcrumb"
,[{
name
:
"营销管理"
,
path
:
""
},{
name
:
"兑换码"
,
path
:
""
},{
name
:
"兑换记录"
,
path
:
""
}]),
this
.
getTableList
()},
methods
:{
formatDateTimeByType
:
o
.
f
,
getTableList
:
function
(){
var
e
=
this
;
return
s
()(
n
.
a
.
mark
(
function
t
(){
var
a
;
return
n
.
a
.
wrap
(
function
(
t
){
for
(;;)
switch
(
t
.
prev
=
t
.
next
){
case
0
:
return
t
.
prev
=
0
,
e
.
recordLoading
=!
0
,
e
.
dateTime
?(
e
.
listParams
.
beginTime
=
Object
(
o
.
f
)(
e
.
dateTime
[
0
],
"yyyy-MM-dd"
),
e
.
listParams
.
endTime
=
Object
(
o
.
f
)(
e
.
dateTime
[
1
],
"yyyy-MM-dd"
)):
e
.
listParams
.
beginTime
=
e
.
listParams
.
endTime
=
""
,
t
.
next
=
5
,
Object
(
l
.
d
)(
e
.
listParams
);
case
5
:
0
===
(
a
=
t
.
sent
).
errorCode
&&
a
.
result
?(
e
.
tableList
=
a
.
result
.
result
||
[],
e
.
total
=
a
.
result
.
totalCount
):(
e
.
tableList
=
[],
e
.
total
=
0
),
e
.
recordLoading
=!
1
,
t
.
next
=
13
;
break
;
case
10
:
t
.
prev
=
10
,
t
.
t0
=
t
.
catch
(
0
),
e
.
recordLoading
=!
1
;
case
13
:
case
"end"
:
return
t
.
stop
()}},
t
,
e
,[[
0
,
10
]])}))()}}},
d
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"section"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
recordLoading
,
expression
:
"recordLoading"
}],
staticClass
:
"dm-wrap"
},[
a
(
"div"
,{
staticClass
:
"clearfix pb22"
},[
a
(
"el-input"
,{
staticClass
:
"w350"
,
attrs
:{
placeholder
:
"请输入用户信息/兑换码名称"
,
clearable
:
""
},
on
:{
change
:
e
.
refresh
},
model
:{
value
:
e
.
listParams
.
search
,
callback
:
function
(
t
){
e
.
$set
(
e
.
listParams
,
"search"
,
t
)},
expression
:
"listParams.search"
}},[
a
(
"i"
,{
staticClass
:
"el-input__icon el-icon-search"
,
attrs
:{
slot
:
"prefix"
},
slot
:
"prefix"
})]),
e
.
_v
(
" "
),
a
(
"el-date-picker"
,{
staticClass
:
"w350"
,
attrs
:{
type
:
"daterange"
,
"range-separator"
:
"至"
,
"start-placeholder"
:
"兑换开始日期"
,
"end-placeholder"
:
"兑换结束日期"
},
on
:{
change
:
e
.
refresh
},
model
:{
value
:
e
.
dateTime
,
callback
:
function
(
t
){
e
.
dateTime
=
t
},
expression
:
"dateTime"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
tooltipEffect
:
"light"
,
data
:
e
.
tableList
}},[
a
(
"el-table-column"
,{
attrs
:{
"show-overflow-tooltip"
:
!
0
,
"min-width"
:
"120"
,
"header-align"
:
"left"
,
fixed
:
"left"
,
align
:
"left"
,
prop
:
"memberId"
,
label
:
"会员信息"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"a"
,{
attrs
:{
href
:
"/member/#/wechatmemberDetail?memberId="
+
t
.
row
.
memberId
,
target
:
"_blank"
}},[
a
(
"img"
,{
staticClass
:
"vertical-middle table__avatar--40"
,
attrs
:{
src
:
t
.
row
.
memberImgUrl
||
e
.
defaultAvatar
,
width
:
"60"
,
height
:
"60"
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"inline-block vertical-middle"
},[
a
(
"p"
,{
staticClass
:
"table-name--ellipsis"
},[
e
.
_v
(
e
.
_s
(
t
.
row
.
memberName
||
"--"
))])])])]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
"show-overflow-tooltip"
:
!
0
,
"min-width"
:
"120"
,
align
:
"left"
,
label
:
"兑换时间"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"p"
,{
staticClass
:
"cell-time"
},[
e
.
_v
(
"
\
n "
+
e
.
_s
(
e
.
formatDateTimeByType
(
t
.
row
.
createTime
,
"yyyy-MM-dd-HH-mm"
,
!
0
).
y
)),
a
(
"br"
),
e
.
_v
(
" "
),
a
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
formatDateTimeByType
(
t
.
row
.
createTime
,
"yyyy-MM-dd-HH-mm"
,
!
0
).
h
))])])]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
"min-width"
:
"140"
,
align
:
"left"
,
prop
:
"cdkeyName"
,
label
:
"兑换码名称"
,
"show-overflow-tooltip"
:
!
0
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
"show-overflow-tooltip"
:
!
0
,
"min-width"
:
"120"
,
align
:
"left"
,
label
:
"兑换码类型"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
1
==
t
.
row
.
cdkeyType
?
"专属码"
:
"通用码"
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
"show-overflow-tooltip"
:
!
0
,
"min-width"
:
"140"
,
align
:
"left"
,
prop
:
"cdkey"
,
label
:
"兑换码码值"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
"show-overflow-tooltip"
:
!
0
,
"min-width"
:
"140"
,
align
:
"left"
,
prop
:
"cdkeyContentDescribe"
,
label
:
"兑换内容"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
"show-overflow-tooltip"
:
!
0
,
"min-width"
:
"120"
,
align
:
"left"
,
prop
:
"createTime"
,
label
:
"兑换码状态"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
1
==
t
.
row
.
convertibilityStatus
?
a
(
"div"
,{
staticClass
:
"dm-status--success"
},[
e
.
_v
(
"成功"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
2
==
t
.
row
.
convertibilityStatus
?
a
(
"div"
,{
staticClass
:
"dm-status--error"
},[
e
.
_v
(
"失败"
)]):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
"show-overflow-tooltip"
:
!
0
,
"min-width"
:
"120"
,
align
:
"left"
,
prop
:
"convertibilityRemark"
,
label
:
"备注"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
convertibilityRemark
||
"--"
)
+
"
\
n "
)]}}])})],
1
),
e
.
_v
(
" "
),
a
(
"dm-pagination"
,{
directives
:[{
name
:
"show"
,
rawName
:
"v-show"
,
value
:
e
.
tableList
.
length
,
expression
:
"tableList.length"
}],
staticClass
:
"dm-pagination"
,
attrs
:{
background
:
""
,
"current-page"
:
e
.
listParams
.
currentPage
,
"page-sizes"
:[
20
,
40
,
60
,
80
],
"page-size"
:
e
.
listParams
.
pageSize
,
layout
:
"total, sizes, prev, pager, next"
,
total
:
e
.
total
},
on
:{
"size-change"
:
e
.
handleSizeChange
,
"current-change"
:
e
.
handleCurrentChange
}})],
1
)},
staticRenderFns
:[]},
u
=
a
(
"VU/8"
)(
c
,
d
,
!
1
,
null
,
null
,
null
);
t
.
default
=
u
.
exports
}});
\ No newline at end of file
dist/static/js/manifest.
c9f01e2df2322d89a3e6
.js
→
dist/static/js/manifest.
64c9b57eb6e2e5fe5c59
.js
View file @
6d3718a3
!
function
(
e
){
var
r
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
t
,
a
,
c
){
for
(
var
i
,
f
,
u
,
s
=
0
,
l
=
[];
s
<
t
.
length
;
s
++
)
f
=
t
[
s
],
n
[
f
]
&&
l
.
push
(
n
[
f
][
0
]),
n
[
f
]
=
0
;
for
(
i
in
a
)
Object
.
prototype
.
hasOwnProperty
.
call
(
a
,
i
)
&&
(
e
[
i
]
=
a
[
i
]);
for
(
r
&&
r
(
t
,
a
,
c
);
l
.
length
;)
l
.
shift
()();
if
(
c
)
for
(
s
=
0
;
s
<
c
.
length
;
s
++
)
u
=
o
(
o
.
s
=
c
[
s
]);
return
u
};
var
t
=
{},
n
=
{
14
:
0
};
function
o
(
r
){
if
(
t
[
r
])
return
t
[
r
].
exports
;
var
n
=
t
[
r
]
=
{
i
:
r
,
l
:
!
1
,
exports
:{}};
return
e
[
r
].
call
(
n
.
exports
,
n
,
n
.
exports
,
o
),
n
.
l
=!
0
,
n
.
exports
}
o
.
e
=
function
(
e
){
var
r
=
n
[
e
];
if
(
0
===
r
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
r
)
return
r
[
2
];
var
t
=
new
Promise
(
function
(
t
,
o
){
r
=
n
[
e
]
=
[
t
,
o
]});
r
[
2
]
=
t
;
var
a
=
document
.
getElementsByTagName
(
"head"
)[
0
],
c
=
document
.
createElement
(
"script"
);
c
.
type
=
"text/javascript"
,
c
.
charset
=
"utf-8"
,
c
.
async
=!
0
,
c
.
timeout
=
12
e4
,
o
.
nc
&&
c
.
setAttribute
(
"nonce"
,
o
.
nc
),
c
.
src
=
o
.
p
+
"static/js/"
+
({
0
:
"card"
,
1
:
"game"
,
2
:
"wechat"
,
3
:
"message"
,
4
:
"ewash"
,
5
:
"ecm"
,
6
:
"evaluation"
,
7
:
"activity"
,
8
:
"cdKey"
,
9
:
"recharge"
,
10
:
"msg"
,
11
:
"calllog"
}[
e
]
||
e
)
+
"."
+
{
0
:
"8f5b7121286326833189"
,
1
:
"3718a613133aa34b9424"
,
2
:
"0927e95d3fe5b6f648da"
,
3
:
"2d2ca8276e939c42e37e"
,
4
:
"0f8f5a7e1a28450e55c7"
,
5
:
"3f053d97d3e9aea26c10"
,
6
:
"a69c5c6513644d0f2537"
,
7
:
"c9e4106934931698098b"
,
8
:
"10403b2fa917a4d3c6f2"
,
9
:
"e8e771469c2137096ce5"
,
10
:
"08d7348811ff689c70ac"
,
11
:
"07f9326e2a68fd201646"
}[
e
]
+
".js"
;
var
i
=
setTimeout
(
f
,
12
e4
);
function
f
(){
c
.
onerror
=
c
.
onload
=
null
,
clearTimeout
(
i
);
var
r
=
n
[
e
];
0
!==
r
&&
(
r
&&
r
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
n
[
e
]
=
void
0
)}
return
c
.
onerror
=
c
.
onload
=
f
,
a
.
appendChild
(
c
),
t
},
o
.
m
=
e
,
o
.
c
=
t
,
o
.
d
=
function
(
e
,
r
,
t
){
o
.
o
(
e
,
r
)
||
Object
.
defineProperty
(
e
,
r
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
t
})},
o
.
n
=
function
(
e
){
var
r
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
o
.
d
(
r
,
"a"
,
r
),
r
},
o
.
o
=
function
(
e
,
r
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
r
)},
o
.
p
=
"/marketing/"
,
o
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
!
function
(
e
){
var
r
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
t
,
a
,
c
){
for
(
var
i
,
f
,
u
,
s
=
0
,
d
=
[];
s
<
t
.
length
;
s
++
)
f
=
t
[
s
],
n
[
f
]
&&
d
.
push
(
n
[
f
][
0
]),
n
[
f
]
=
0
;
for
(
i
in
a
)
Object
.
prototype
.
hasOwnProperty
.
call
(
a
,
i
)
&&
(
e
[
i
]
=
a
[
i
]);
for
(
r
&&
r
(
t
,
a
,
c
);
d
.
length
;)
d
.
shift
()();
if
(
c
)
for
(
s
=
0
;
s
<
c
.
length
;
s
++
)
u
=
o
(
o
.
s
=
c
[
s
]);
return
u
};
var
t
=
{},
n
=
{
14
:
0
};
function
o
(
r
){
if
(
t
[
r
])
return
t
[
r
].
exports
;
var
n
=
t
[
r
]
=
{
i
:
r
,
l
:
!
1
,
exports
:{}};
return
e
[
r
].
call
(
n
.
exports
,
n
,
n
.
exports
,
o
),
n
.
l
=!
0
,
n
.
exports
}
o
.
e
=
function
(
e
){
var
r
=
n
[
e
];
if
(
0
===
r
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
r
)
return
r
[
2
];
var
t
=
new
Promise
(
function
(
t
,
o
){
r
=
n
[
e
]
=
[
t
,
o
]});
r
[
2
]
=
t
;
var
a
=
document
.
getElementsByTagName
(
"head"
)[
0
],
c
=
document
.
createElement
(
"script"
);
c
.
type
=
"text/javascript"
,
c
.
charset
=
"utf-8"
,
c
.
async
=!
0
,
c
.
timeout
=
12
e4
,
o
.
nc
&&
c
.
setAttribute
(
"nonce"
,
o
.
nc
),
c
.
src
=
o
.
p
+
"static/js/"
+
({
0
:
"card"
,
1
:
"game"
,
2
:
"wechat"
,
3
:
"message"
,
4
:
"ewash"
,
5
:
"ecm"
,
6
:
"evaluation"
,
7
:
"activity"
,
8
:
"cdKey"
,
9
:
"recharge"
,
10
:
"msg"
,
11
:
"calllog"
}[
e
]
||
e
)
+
"."
+
{
0
:
"8f5b7121286326833189"
,
1
:
"3718a613133aa34b9424"
,
2
:
"0927e95d3fe5b6f648da"
,
3
:
"2d2ca8276e939c42e37e"
,
4
:
"0f8f5a7e1a28450e55c7"
,
5
:
"3f053d97d3e9aea26c10"
,
6
:
"a69c5c6513644d0f2537"
,
7
:
"c9e4106934931698098b"
,
8
:
"9f5437e4f0a3a4acde1d"
,
9
:
"e8e771469c2137096ce5"
,
10
:
"08d7348811ff689c70ac"
,
11
:
"07f9326e2a68fd201646"
}[
e
]
+
".js"
;
var
i
=
setTimeout
(
f
,
12
e4
);
function
f
(){
c
.
onerror
=
c
.
onload
=
null
,
clearTimeout
(
i
);
var
r
=
n
[
e
];
0
!==
r
&&
(
r
&&
r
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
n
[
e
]
=
void
0
)}
return
c
.
onerror
=
c
.
onload
=
f
,
a
.
appendChild
(
c
),
t
},
o
.
m
=
e
,
o
.
c
=
t
,
o
.
d
=
function
(
e
,
r
,
t
){
o
.
o
(
e
,
r
)
||
Object
.
defineProperty
(
e
,
r
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
t
})},
o
.
n
=
function
(
e
){
var
r
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
o
.
d
(
r
,
"a"
,
r
),
r
},
o
.
o
=
function
(
e
,
r
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
r
)},
o
.
p
=
"/marketing/"
,
o
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
\ No newline at end of file
\ No newline at end of file
src/service/api/cdKeyApi.js
View file @
6d3718a3
...
@@ -19,6 +19,9 @@ export const cdkeyPlanEdit = params => requests(PREFIX + 'cdkey-plan-edit', para
...
@@ -19,6 +19,9 @@ export const cdkeyPlanEdit = params => requests(PREFIX + 'cdkey-plan-edit', para
// 兑换记录
// 兑换记录
export
const
cdkeyLogRecord
=
params
=>
requests
(
PREFIX
+
'cdkey-log-record'
,
params
);
export
const
cdkeyLogRecord
=
params
=>
requests
(
PREFIX
+
'cdkey-log-record'
,
params
);
// 兑换记录
export
const
getCdkeyWxaQrCodeImage
=
params
=>
requests
(
PREFIX
+
'get-cdkey-wxa-qr-code-image'
,
params
);
// 保存/修改兑换码计划
// 保存/修改兑换码计划
export
const
cdkeyPlanSave
=
PREFIX
+
'cdkey-plan-save'
;
export
const
cdkeyPlanSave
=
PREFIX
+
'cdkey-plan-save'
;
...
...
src/views/cdkey/list.vue
View file @
6d3718a3
...
@@ -62,7 +62,7 @@
...
@@ -62,7 +62,7 @@
<dm-pagination
v-show=
"tableList.length"
background
class=
"dm-pagination"
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:current-page=
"listParams.currentPage"
:page-sizes=
"[20, 40, 60, 80]"
:page-size=
"listParams.pageSize"
layout=
"total, sizes, prev, pager, next"
:total=
"total"
></dm-pagination>
<dm-pagination
v-show=
"tableList.length"
background
class=
"dm-pagination"
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:current-page=
"listParams.currentPage"
:page-sizes=
"[20, 40, 60, 80]"
:page-size=
"listParams.pageSize"
layout=
"total, sizes, prev, pager, next"
:total=
"total"
></dm-pagination>
<el-dialog
title=
"生成链接"
:visible
.
sync=
"codeVisible"
width=
"500px"
>
<el-dialog
title=
"生成链接"
:visible
.
sync=
"codeVisible"
width=
"500px"
>
<div
class=
"text-center pt20"
>
<div
class=
"text-center pt20"
>
<img
src=
"
"
width=
"192"
height=
"192"
/>
<img
:src=
"qrUrl
"
width=
"192"
height=
"192"
/>
<div
style=
"margin-top:11px;color:#606266;padding-bottom:50px;"
>
- 兑换码链接二维码 -
</div>
<div
style=
"margin-top:11px;color:#606266;padding-bottom:50px;"
>
- 兑换码链接二维码 -
</div>
</div>
</div>
</el-dialog>
</el-dialog>
...
@@ -71,7 +71,7 @@
...
@@ -71,7 +71,7 @@
</template>
</template>
<
script
>
<
script
>
import
{
cdkeyPlanRecord
,
cdkeyPlanForbid
,
cdkeyPlanDelete
,
cdkeyExport
}
from
'@/service/api/cdKeyApi.js'
;
import
{
cdkeyPlanRecord
,
cdkeyPlanForbid
,
cdkeyPlanDelete
,
cdkeyExport
,
getCdkeyWxaQrCodeImage
}
from
'@/service/api/cdKeyApi.js'
;
import
{
formatDateTimeByType
}
from
'@/utils/index.js'
;
import
{
formatDateTimeByType
}
from
'@/utils/index.js'
;
import
timeCounts
from
'@/components/timeCount/index.vue'
;
import
timeCounts
from
'@/components/timeCount/index.vue'
;
import
tableMethods
from
'@/mixins/tableMethods.js'
;
import
tableMethods
from
'@/mixins/tableMethods.js'
;
...
@@ -97,6 +97,7 @@ export default {
...
@@ -97,6 +97,7 @@ export default {
},
},
dateTime
:
[
''
,
''
],
dateTime
:
[
''
,
''
],
total
:
0
,
total
:
0
,
qrUrl
:
''
,
codeVisible
:
false
,
codeVisible
:
false
,
// 导出
// 导出
projectName
:
'marketing'
,
// 当前项目名
projectName
:
'marketing'
,
// 当前项目名
...
@@ -108,9 +109,15 @@ export default {
...
@@ -108,9 +109,15 @@ export default {
created
()
{
created
()
{
this
.
$store
.
commit
(
'mutations_breadcrumb'
,
[{
name
:
'营销管理'
,
path
:
''
},
{
name
:
'兑换码'
,
path
:
''
},
{
name
:
'兑换码列表'
,
path
:
''
}]);
// eslint-disable-line
this
.
$store
.
commit
(
'mutations_breadcrumb'
,
[{
name
:
'营销管理'
,
path
:
''
},
{
name
:
'兑换码'
,
path
:
''
},
{
name
:
'兑换码列表'
,
path
:
''
}]);
// eslint-disable-line
this
.
getTableList
();
this
.
getTableList
();
this
.
getCdkeyWxaQrCodeImage
();
},
},
methods
:
{
methods
:
{
formatDateTimeByType
,
formatDateTimeByType
,
getCdkeyWxaQrCodeImage
()
{
getCdkeyWxaQrCodeImage
().
then
(
res
=>
{
this
.
qrUrl
=
res
.
result
;
});
},
async
getTableList
()
{
async
getTableList
()
{
try
{
try
{
this
.
loading
=
true
;
this
.
loading
=
true
;
...
...
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