优惠券管理修改中

master
Sigo 4 years ago
parent 1cf9218462
commit 228a298c6f

@ -0,0 +1,12 @@
import {
service
} from "../../utils/service";
// 主页查询
export function getList(params) {
return service({
url: "/platformCoupon",
method: "get",
params
});
}

@ -619,30 +619,30 @@ export default {
//
{
name: "优惠券",
index: "90",
index: "100",
icon: "el-icon-s-ticket",
number: "1000",
number: "400",
menuLists: [
{
name: "发布",
icon: "el-icon-s-promotion",
route: "/couponIssue",
index: "couponIssue",
number: "1000100",
number: "400100",
},
{
name: "管理",
icon: "el-icon-s-operation",
route: "/couponMane",
index: "couponMane",
number: "1000200",
number: "400100",
},
{
name: "领取消费",
icon: "el-icon-time",
route: "/couponRecord",
index: "couponRecord",
number: "1000300",
number: "400100",
},
],
},

@ -1,21 +1,5 @@
<template>
<div class="container">
<!-- <vab-query-form>
<vab-query-form-left-panel :span="12">
<el-button icon="el-icon-s-promotion" type="primary" @click="handleIssue"></el-button>
<el-button icon="el-icon-full-screen" type="warning" @click="handleVerification"></el-button>
</vab-query-form-left-panel>
<vab-query-form-right-panel :span="12">
<el-form :inline="true" class="docTime" :model="queryForm" @submit.native.prevent>
<el-form-item>
<el-input v-model="queryForm.name" placeholder="优惠券名称" clearable style="width: 150px"></el-input>
</el-form-item>
<el-form-item>
<el-button icon="el-icon-search" type="primary" @click="queryData"></el-button>
</el-form-item>
</el-form>
</vab-query-form-right-panel>
</vab-query-form> -->
<div class="query-form">
<div class="query-form-left-panel">
<el-button icon="el-icon-s-promotion" type="primary" size="mini" @click="handleIssue"></el-button>
@ -35,7 +19,7 @@
<el-table style="width: 100%;margin-top:5px" max-height="650" :header-cell-style="{background: 'linear-gradient(#6cb3ff, #1873d4)' ,color:'#eeeeee'}" ref="list" class="custom-table" highlight-current-row border v-loading="listLoading" :data="list" :element-loading-text="elementLoadingText" @row-dblclick="handleGoter">
<el-table-column show-overflow-tooltip align="center" min-width="130" prop="name" label="优惠券名称"></el-table-column>
<el-table-column show-overflow-tooltip align="center" min-width="130" prop="name" label="优惠券类型"></el-table-column>
<el-table-column show-overflow-tooltip align="center" min-width="130" prop="couponNum" label="发行数量"></el-table-column>
<el-table-column show-overflow-tooltip align="center" min-width="130" prop="couponNumber" label="优惠券数量"></el-table-column>
<el-table-column show-overflow-tooltip align="center" min-width="130" prop="deductionAmount" label="优惠"></el-table-column>
<el-table-column show-overflow-tooltip align="center" min-width="130" prop="shareAmount" label="分润"></el-table-column>
<!-- <el-table-column show-overflow-tooltip align="center" min-width="130" prop="phone" label="手机号码"></el-table-column> -->
@ -65,7 +49,8 @@
</template>
<script>
import Verification from './components/verification'
import Verification from './components/verification';
import { getList } from "@/api/discount-coupon/management.js";
export default {
name: 'active',
components: { Verification },
@ -82,6 +67,9 @@ export default {
layout: 'total, sizes, prev, pager, next, jumper',
}
},
created() {
this.fetchData()
},
methods: {
// -
handleSizeChange(val) {
@ -99,7 +87,15 @@ export default {
this.fetchData()
},
//
fetchData() { },
async fetchData() {
this.listLoading = true
let { list, pageNum, pageSize } = await getList(this.queryForm)
this.listLoading = false
this.list = Array.from(list);
this.queryForm.pageNum = pageNum
this.queryForm.pageSize = pageSize
// console.log('res', res);
},
//
handleGoter(row) {
this.$router.push({ name: 'AllGot', params: row })

Loading…
Cancel
Save