|
@@ -7,7 +7,6 @@
|
|
</h2>
|
|
</h2>
|
|
<div class="m-core">
|
|
<div class="m-core">
|
|
<save-form
|
|
<save-form
|
|
-
|
|
|
|
:inline="true"
|
|
:inline="true"
|
|
:model="searchForm"
|
|
:model="searchForm"
|
|
@submit="search"
|
|
@submit="search"
|
|
@@ -58,7 +57,6 @@
|
|
type="primary"
|
|
type="primary"
|
|
style="margin-bottom: 30px"
|
|
style="margin-bottom: 30px"
|
|
@click="gotoDetail()"
|
|
@click="gotoDetail()"
|
|
-
|
|
|
|
>新增优惠券</el-button
|
|
>新增优惠券</el-button
|
|
>
|
|
>
|
|
</auth>
|
|
</auth>
|
|
@@ -68,7 +66,6 @@
|
|
style="width: 100%"
|
|
style="width: 100%"
|
|
:header-cell-style="{ background: '#EDEEF0', color: '#444' }"
|
|
:header-cell-style="{ background: '#EDEEF0', color: '#444' }"
|
|
:data="tableList"
|
|
:data="tableList"
|
|
-
|
|
|
|
>
|
|
>
|
|
<el-table-column
|
|
<el-table-column
|
|
align="center"
|
|
align="center"
|
|
@@ -153,11 +150,7 @@
|
|
<div>{{ scope.row.fullAmount | hasMoneyFormat }}</div>
|
|
<div>{{ scope.row.fullAmount | hasMoneyFormat }}</div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column
|
|
|
|
- align="center"
|
|
|
|
- prop="cloudStudyUseStudentDuty"
|
|
|
|
-
|
|
|
|
- >
|
|
|
|
|
|
+ <el-table-column align="center" prop="cloudStudyUseStudentDuty">
|
|
<template slot="header" slot-scope="slot">
|
|
<template slot="header" slot-scope="slot">
|
|
<div class="titleCell">
|
|
<div class="titleCell">
|
|
<span>领取上限</span>
|
|
<span>领取上限</span>
|
|
@@ -179,11 +172,7 @@
|
|
<div>{{ scope.row.limitExchangeNum }}</div>
|
|
<div>{{ scope.row.limitExchangeNum }}</div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column
|
|
|
|
- align="center"
|
|
|
|
- prop="cloudStudyUseStudentDuty"
|
|
|
|
-
|
|
|
|
- >
|
|
|
|
|
|
+ <el-table-column align="center" prop="cloudStudyUseStudentDuty">
|
|
<template slot="header" slot-scope="slot">
|
|
<template slot="header" slot-scope="slot">
|
|
<div class="titleCell">
|
|
<div class="titleCell">
|
|
<span>有效期天数</span>
|
|
<span>有效期天数</span>
|
|
@@ -365,8 +354,8 @@
|
|
/>
|
|
/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <el-dialog :title="title" :visible.sync="addCouponVisible" width="1000px">
|
|
|
|
- <couponGrant :activeRow="activeRow"/>
|
|
|
|
|
|
+ <el-dialog :title="title" :visible.sync="addCouponVisible" width="1200px">
|
|
|
|
+ <couponGrant :activeRow="activeRow" />
|
|
<span slot="footer" class="dialog-footer">
|
|
<span slot="footer" class="dialog-footer">
|
|
<el-button @click="addCouponVisible = false">取 消</el-button>
|
|
<el-button @click="addCouponVisible = false">取 消</el-button>
|
|
<el-button @click="addCouponVisible = false" type="primary"
|
|
<el-button @click="addCouponVisible = false" type="primary"
|
|
@@ -374,6 +363,19 @@
|
|
>
|
|
>
|
|
</span>
|
|
</span>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
+ <el-dialog
|
|
|
|
+ title="发放记录"
|
|
|
|
+ :visible.sync="giveCouponVisible"
|
|
|
|
+ width="1200px"
|
|
|
|
+ >
|
|
|
|
+ <couponRecord :activeRow="activeRow" />
|
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
|
+ <el-button @click="giveCouponVisible = false">取 消</el-button>
|
|
|
|
+ <el-button @click="giveCouponVisible = false" type="primary"
|
|
|
|
+ >确 定</el-button
|
|
|
|
+ >
|
|
|
|
+ </span>
|
|
|
|
+ </el-dialog>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -385,9 +387,10 @@ import load from "@/utils/loading";
|
|
import { getSysCoupon, resetSysCoupon, delSysCoupon } from "./api";
|
|
import { getSysCoupon, resetSysCoupon, delSysCoupon } from "./api";
|
|
import { couponTypeList } from "@/utils/searchArray";
|
|
import { couponTypeList } from "@/utils/searchArray";
|
|
import Tooltip from "@/components/Tooltip/index";
|
|
import Tooltip from "@/components/Tooltip/index";
|
|
-import couponGrant from './couponGrant'
|
|
|
|
|
|
+import couponGrant from "./couponGrant";
|
|
|
|
+import couponRecord from './couponRecord'
|
|
export default {
|
|
export default {
|
|
- components: { pagination, Tooltip,couponGrant },
|
|
|
|
|
|
+ components: { pagination, Tooltip, couponGrant,couponRecord },
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
couponTypeList,
|
|
couponTypeList,
|
|
@@ -396,7 +399,7 @@ export default {
|
|
type: null,
|
|
type: null,
|
|
status: null,
|
|
status: null,
|
|
},
|
|
},
|
|
- activeRow:null,
|
|
|
|
|
|
+ activeRow: null,
|
|
tableList: [],
|
|
tableList: [],
|
|
organList: [],
|
|
organList: [],
|
|
rules: {
|
|
rules: {
|
|
@@ -406,8 +409,9 @@ export default {
|
|
total: 0, // 总条数
|
|
total: 0, // 总条数
|
|
page_size: [10, 20, 40, 50], // 选择限制显示条数
|
|
page_size: [10, 20, 40, 50], // 选择限制显示条数
|
|
},
|
|
},
|
|
- addCouponVisible:false,
|
|
|
|
- title:''
|
|
|
|
|
|
+ addCouponVisible: false,
|
|
|
|
+ giveCouponVisible: false,
|
|
|
|
+ title: "",
|
|
};
|
|
};
|
|
},
|
|
},
|
|
//生命周期 - 创建完成(可以访问当前this实例)
|
|
//生命周期 - 创建完成(可以访问当前this实例)
|
|
@@ -521,7 +525,10 @@ export default {
|
|
// query: { row: JSON.stringify(row) },
|
|
// query: { row: JSON.stringify(row) },
|
|
// });
|
|
// });
|
|
},
|
|
},
|
|
- getCouponRecord(row) {},
|
|
|
|
|
|
+ getCouponRecord(row) {
|
|
|
|
+ this.activeRow = row;
|
|
|
|
+ this.giveCouponVisible = true;
|
|
|
|
+ },
|
|
},
|
|
},
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|