coupon add valid days
This commit is contained in:
parent
ab7f83229e
commit
f0ce6523d6
@ -11,6 +11,7 @@ export interface ICouponData {
|
|||||||
count: number
|
count: number
|
||||||
validBegin?: number
|
validBegin?: number
|
||||||
validEnd?: number
|
validEnd?: number
|
||||||
|
validDays?: number
|
||||||
limitOne: number
|
limitOne: number
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -20,7 +21,8 @@ export const defaultCouponData: ICouponData = {
|
|||||||
content: '',
|
content: '',
|
||||||
total: 0,
|
total: 0,
|
||||||
count: 0,
|
count: 0,
|
||||||
limitOne: 0
|
limitOne: 0,
|
||||||
|
validDays: 0
|
||||||
}
|
}
|
||||||
|
|
||||||
export const getCoupons = (params: any) =>
|
export const getCoupons = (params: any) =>
|
||||||
|
@ -72,7 +72,14 @@
|
|||||||
</router-link>
|
</router-link>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
label="有效天数"
|
||||||
|
>
|
||||||
|
<template slot-scope="{row}">
|
||||||
|
<span>{{ row.validDays? row.validDays : '不限制' }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
|
||||||
<!-- <el-table-column-->
|
<!-- <el-table-column-->
|
||||||
<!-- label="有效期"-->
|
<!-- label="有效期"-->
|
||||||
<!-- >-->
|
<!-- >-->
|
||||||
|
@ -58,6 +58,18 @@
|
|||||||
readonly
|
readonly
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item
|
||||||
|
label="有效天数"
|
||||||
|
prop="validDays"
|
||||||
|
>
|
||||||
|
<el-input
|
||||||
|
v-model="postForm.validDays"
|
||||||
|
type="number"
|
||||||
|
name="validDays"
|
||||||
|
style="width: 50%"
|
||||||
|
placeholder="领取后多少时间过期(单位: 天)"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
<!-- <el-form-item-->
|
<!-- <el-form-item-->
|
||||||
<!-- label="每人限领"-->
|
<!-- label="每人限领"-->
|
||||||
<!-- prop="limitOne"-->
|
<!-- prop="limitOne"-->
|
||||||
|
Loading…
x
Reference in New Issue
Block a user