Commit 06584ee0 by 无尘

fix: 修改卡券

parent 3e10dbbe
<!--
<select-card :brandId="brandId" @closeCard="closeCard"></select-card>
<select-card :brandId="brandId" @closeCard="closeCard" @returnId="returnId"></select-card>
import selectCard from '@/components/app/card/select-card.vue';
-->
<template>
......@@ -34,6 +34,10 @@
<el-pagination background @current-change="handleCurrentChange" :current-page="currentPage" :page-size="pageSize" layout=" prev, pager, next" :total="total"> </el-pagination>
</div>
</div>
<div slot="footer" class="dialog-footer m-b-20">
<el-button @click="toCancel">取 消</el-button>
<el-button type="primary" @click="toConfirm">确认</el-button>
</div>
</el-dialog>
</template>
<script>
......@@ -65,6 +69,14 @@ export default {
const that = this;
that.$emit('closeCard');
},
toConfirm() {
const that = this;
that.$emit('returnId', that.selectCoupCardId);
},
toCancel() {
const that = this;
that.$emit('closeCard');
},
/**
* 输入
*/
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-04-13 15:27:46
* @LastEditors: 无尘
* @LastEditTime: 2020-04-15 10:36:59
* @LastEditTime: 2020-04-15 11:17:17
-->
<template>
......@@ -90,7 +90,7 @@
</el-form-item>
</el-form>
</div>
<select-card v-if="cardSelectShow" :brandId="brandId" @closeCard="closeCard"></select-card>
<select-card v-if="cardSelectShow" :brandId="brandId" @closeCard="closeCard" @returnId="returnId"></select-card>
</section>
</template>
<script>
......@@ -209,6 +209,11 @@ export default {
const that = this;
that.cardSelectShow = false;
},
returnId(id) {
const that = this;
that.coupCardId = id;
that.cardSelectShow = false;
},
/**
* 确认新建
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment