Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
soss
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
hooloo
web
soss
Commits
60410311
Commit
60410311
authored
Jul 26, 2022
by
lixiaomin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改优惠券列表
parent
1c32f146
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
26 deletions
+14
-26
src/api/coupon/coupon.js
+4
-19
src/views/coupon/coupon/index.vue
+10
-7
No files found.
src/api/coupon/coupon.js
View file @
60410311
import
request
from
"@/utils/request"
;
// 查询列表
export
function
listC
lass
(
query
)
{
export
function
listC
oupon
(
data
)
{
return
request
({
url
:
"/
system/category
/list"
,
method
:
"
ge
t"
,
params
:
query
,
url
:
"/
coupon
/list"
,
method
:
"
pos
t"
,
data
:
data
,
});
}
// 查询详细
export
function
getClass
(
id
)
{
return
request
({
url
:
"/system/category/"
+
id
,
method
:
"get"
,
});
}
// 新增
export
function
addCoupon
(
data
)
{
...
...
@@ -43,11 +36,3 @@ export function delClass(id) {
});
}
// 查询排序列表
export
function
turnList
(
query
)
{
return
request
({
url
:
"/system/category/turnOrder"
,
method
:
"get"
,
params
:
query
,
});
}
src/views/coupon/coupon/index.vue
View file @
60410311
...
...
@@ -30,7 +30,7 @@
</el-col>
</el-row>
<el-table
v-loading=
"loading"
:data=
"coupon
Type
List"
>
<el-table
v-loading=
"loading"
:data=
"couponList"
>
<el-table-column
label=
"优惠券名称"
align=
"center"
prop=
"name"
>
<template
slot-scope=
"scope"
>
<a
@
click=
"handleUpdate(scope.row)"
style=
"color: blue"
>
{{
scope
.
row
.
name
}}
</a>
...
...
@@ -137,7 +137,7 @@
</el-col>
<el-col
:span=
"7"
>
<el-form-item
label=
"优惠券可领取时间"
>
<el-date-picker
v-model=
"form.
start
Time"
type=
"datetime"
value-format=
"yyyy-MM-dd HH:mm:ss"
placeholder=
"请选择领取日期"
style=
"width: 205px;"
/>
<el-date-picker
v-model=
"form.
receivable
Time"
type=
"datetime"
value-format=
"yyyy-MM-dd HH:mm:ss"
placeholder=
"请选择领取日期"
style=
"width: 205px;"
/>
</el-form-item>
</el-col>
</el-row>
...
...
@@ -184,7 +184,7 @@
<
script
>
import
{
addCoupon
,
addCoupon
,
listCoupon
}
from
"@/api/coupon/coupon"
;
import
{
getCouCategoryList
}
from
"@/api/coupon/couponType"
;
import
GiveCoupon
from
'./giveCoupon.vue'
;
...
...
@@ -203,7 +203,7 @@ export default {
// 总条数
total
:
0
,
// 表格数据
coupon
Type
List
:
[],
couponList
:
[],
// 弹出层标题
title
:
""
,
// 是否显示弹出层
...
...
@@ -213,7 +213,8 @@ export default {
pageNum
:
1
,
pageSize
:
10
,
name
:
null
,
state
:
null
state
:
null
,
categoryId
:
null
},
// 表单参数
form
:
{
...
...
@@ -388,10 +389,12 @@ export default {
/** 查询列表 */
getList
()
{
this
.
loading
=
true
;
listClass
(
this
.
queryParams
).
then
((
response
)
=>
{
this
.
couponTypeList
=
response
.
rows
;
listCoupon
(
this
.
queryParams
).
then
((
response
)
=>
{
if
(
response
.
code
==
200
){
this
.
couponList
=
response
.
rows
;
this
.
total
=
response
.
total
;
this
.
loading
=
false
;
}
});
},
// 取消按钮
...
...
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