Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
罗超
SuperMan
Commits
23eb6d7b
Commit
23eb6d7b
authored
Jan 16, 2025
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
自动发放
parent
9c34f36d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
652 additions
and
0 deletions
+652
-0
fill.js
src/assets/common/lang/zhCN/fill.js
+6
-0
autorelease.vue
src/components/activity/autorelease.vue
+167
-0
addAutorelease.vue
src/components/activity/components/addAutorelease.vue
+471
-0
config.js
src/router/config.js
+8
-0
No files found.
src/assets/common/lang/zhCN/fill.js
View file @
23eb6d7b
...
...
@@ -8086,5 +8086,11 @@ export const obj = {
caistpccjsfoot
:
'彩色(图片尺寸:128x107)'
,
},
//#endregion
//#region ending v1.0.2
v102
:{
tianjzdfffa
:
'添加自动发放方案'
,
chufasj
:
'触发事件'
,
},
//#endregion
}
export
default
obj
;
src/components/activity/autorelease.vue
0 → 100644
View file @
23eb6d7b
<
template
>
<div
class=
"page_fnDm page_RecPayQuery"
>
<div
class=
"query-box"
style=
"margin-bottom: 0px;"
>
<ul
class=
"clearfix"
>
<li
class=
"hight_query"
>
<button
class=
"hollowFixedBtn"
@
click=
"getDateList()"
>
{{
$t
(
'pub.searchBtn'
)
}}
</button>
<button
class=
"normalBtn"
@
click=
"addRecharge"
>
{{
$t
(
'objFill.v102.tianjzdfffa'
)
}}
</button>
</li>
</ul>
</div>
<div
class=
"_fnDm_content"
v-loading=
'loading'
style=
"padding-top: 20px;"
>
<el-table
:data=
"tableData"
style=
"width: 100%;"
border
v-loading=
"loading"
>
<el-table-column
prop=
"ID"
label=
"ID"
width=
"100"
>
</el-table-column>
<el-table-column
prop=
"TriggerTypeStr"
label=
"触发事件"
>
</el-table-column>
<el-table-column
prop=
"DiscountCouponName"
label=
"优惠券"
>
</el-table-column>
<el-table-column
prop=
"GrantNum"
label=
"发放次数限制"
>
<template
slot-scope=
"scope"
>
<div
v-if=
"scope.row.GrantNum==0"
>
无限制
</div>
<div
v-if=
"scope.row.GrantNum>0"
>
{{
scope
.
row
.
GrantNum
}}
次
</div>
</
template
>
</el-table-column>
<el-table-column
fixed=
"right"
label=
"操作"
width=
"100"
>
<
template
slot-scope=
"scope"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"编辑"
placement=
"top"
>
<img
src=
"../../assets/img/setup/edit.png"
alt=
""
class=
"imgstyle"
@
click=
"Edit(scope.row)"
>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"删除"
placement=
"top"
>
<img
src=
"../../assets/img/setup/del.png"
alt=
""
class=
"imgstyle"
@
click=
"delete_b(scope.row)"
>
</el-tooltip>
</
template
>
</el-table-column>
</el-table>
</div>
<el-pagination
style=
"text-align:right"
background
@
current-change=
"handleCurrentChange"
:page-size=
"msg.pageSize"
layout=
"prev, pager, next"
:total=
"count"
>
</el-pagination>
<addAutorelease
v-if=
"addAutoreleaseShow"
:infoData=
"infoData"
@
Success=
"infoData=null,addAutoreleaseShow=false,getDateList()"
@
close=
"infoData=null,addAutoreleaseShow=false"
/>
</div>
</template>
<
script
>
import
addAutorelease
from
"./components/addAutorelease"
;
export
default
{
name
:
"autorelease"
,
components
:
{
addAutorelease
},
data
(){
return
{
msg
:{
pageIndex
:
1
,
pageSize
:
20
,
BranchId
:
-
1
,
TriggerType
:
-
1
},
tableData
:[],
count
:
0
,
loading
:
false
,
addAutoreleaseShow
:
false
,
infoData
:
null
,
options
:
[],
}
},
created
(){
this
.
getDateList
();
},
methods
:{
getrigger
(){
this
.
apipost
(
"coupon_post_GetTriggerTypeEnumList"
,{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
options
=
res
.
data
.
data
;
this
.
options
.
unshift
({
Name
:
'不限'
,
Id
:
-
1
})
}
else
{
this
.
Info
(
res
.
data
.
message
);
}
})
},
getDateList
(){
this
.
loading
=
true
;
this
.
apipost
(
"coupon_post_GetSelfMotionPageLis"
,
this
.
msg
,
res
=>
{
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
==
1
){
this
.
tableData
=
res
.
data
.
data
.
pageData
;
this
.
count
=
res
.
data
.
data
.
count
;
}
else
{
this
.
Info
(
res
.
data
.
message
);
}
})
},
addRecharge
(){
this
.
addAutoreleaseShow
=
true
},
Edit
(
row
){
this
.
infoData
=
row
this
.
addAutoreleaseShow
=
true
},
delete_b
(
row
){
let
that
=
this
;
that
.
Confirm
(
"是否删除?"
,
function
()
{
that
.
apipost
(
"coupon_post_DelDiscountSelfMotion"
,
{
Id
:
row
.
ID
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
that
.
Success
(
res
.
data
.
message
);
that
.
getDateList
();
}
else
{
that
.
Error
(
res
.
data
.
message
);
}
},
);
});
},
handleCurrentChange
(
val
)
{
this
.
msg
.
pageIndex
=
val
;
this
.
getDateList
();
},
}
}
</
script
>
<
style
scoped
>
/
deep
/
.el-table
th
.el-table__cell
{
background-color
:
#E6E6E6
;
}
.el-form-item
{
margin-bottom
:
5px
;
}
</
style
>
\ No newline at end of file
src/components/activity/components/addAutorelease.vue
0 → 100644
View file @
23eb6d7b
This diff is collapsed.
Click to expand it.
src/router/config.js
View file @
23eb6d7b
...
...
@@ -5699,6 +5699,14 @@ export default {
meta
:
{
title
:
'抽奖列表'
}
},
{
path
:
'/autorelease'
,
name
:
'autorelease'
,
component
:
resolve
=>
require
([
'@/components/activity/autorelease'
],
resolve
),
meta
:
{
title
:
'自动发放'
}
},
{
path
:
'/awardList'
,
name
:
'awardList'
,
...
...
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