Skip to content

Commit 6f8b984

Browse files
committed
Merge remote-tracking branch 'origin/feature/1.8.0-uniapp' into feature/1.8.0-uniapp
2 parents 47dfc07 + c23b85e commit 6f8b984

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

src/api/mall/CouponTemplete/CouponTemplete.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import request from '@/utils/request'
33
// 创建优惠券模板
44
export function create(data) {
55
return request({
6-
url: '/coupon/CouponTemplete/create',
6+
url: '/coupon/template/create',
77
method: 'post',
88
data: data
99
})
@@ -12,7 +12,7 @@ export function create(data) {
1212
// 更新优惠券模板
1313
export function update(data) {
1414
return request({
15-
url: '/coupon/CouponTemplete/update',
15+
url: '/coupon/template/update',
1616
method: 'put',
1717
data: data
1818
})
@@ -21,23 +21,23 @@ export function update(data) {
2121
// 删除优惠券模板
2222
export function deleteCouponTemplete (id) {
2323
return request({
24-
url: '/coupon/CouponTemplete/delete?id=' + id,
24+
url: '/coupon/template/delete?id=' + id,
2525
method: 'delete'
2626
})
2727
}
2828

2929
// 获得优惠券模板
3030
export function get(id) {
3131
return request({
32-
url: '/coupon/CouponTemplete/get?id=' + id,
32+
url: '/coupon/template/get?id=' + id,
3333
method: 'get'
3434
})
3535
}
3636

3737
// 获得优惠券模板分页
3838
export function getPage(query) {
3939
return request({
40-
url: '/coupon/CouponTemplete/page',
40+
url: '/coupon/template/page',
4141
method: 'get',
4242
params: query
4343
})
@@ -46,7 +46,7 @@ export function getPage(query) {
4646
// 导出优惠券模板 Excel
4747
export function exportExcel(query) {
4848
return request({
49-
url: '/coupon/CouponTemplete/export-excel',
49+
url: '/coupon/template/export-excel',
5050
method: 'get',
5151
params: query,
5252
responseType: 'blob'

src/views/mall/CouponTemplete/index.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343

4444
<!-- 列表 -->
4545
<el-table v-loading="loading" :data="list">
46-
<el-table-column label="用户ID" align="center" prop="id" />
4746

4847
<!-- todo 优惠券类型-->
4948
<el-table-column label="优惠券类型" align="center" prop="type" />
@@ -229,6 +228,7 @@
229228

230229
<script>
231230
import { create, update, deleteCouponTemplete, get, getPage, exportExcel } from "@/api/mall/CouponTemplete/CouponTemplete.js";
231+
import {getDictDatas} from "@/utils/dict";
232232
233233
export default {
234234
name: "",
@@ -288,6 +288,9 @@ export default {
288288
endTime: [],
289289
createTime: [],
290290
},
291+
//数据字典
292+
datas:getDictDatas(),
293+
291294
// 表单参数
292295
form: {},
293296
// 表单校验

0 commit comments

Comments
 (0)