| | |
| | | <template> |
| | | <GlobalWindow |
| | | :title="title" |
| | | :with-footer="false" |
| | | :visible.sync="visible" |
| | | @confirm="confirm" |
| | | > |
| | |
| | | </el-form> |
| | | <!-- 表格和分页 --> |
| | | <template v-slot:table-wrap> |
| | | |
| | | |
| | | <el-table |
| | | v-loading="isWorking.search" |
| | | :data="tableData.list" |
| | |
| | | {{ row.type==0?'领取':'兑换' }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="num" label="咖豆数量" align="center" min-width="100px"> |
| | | <!-- <el-table-column prop="num" label="数量" align="center" min-width="100px"> |
| | | <template slot-scope="{row}"> |
| | | {{ row.num || '-' }} |
| | | </template> |
| | | </el-table-column> |
| | | </el-table-column>--> |
| | | <el-table-column label="状态" align="center" min-width="100px"> |
| | | <template slot-scope="{row}"> |
| | | {{ row.status==0 ? '未使用' : row.status==1 ? '已使用' : '已过期' }} |
| | |
| | | extends: BaseTable, |
| | | components: { GlobalWindow, TableLayout, Pagination }, |
| | | data () { |
| | | |
| | | |
| | | return { |
| | | visible: false, |
| | | title: '', |
| | | getDate: [], |
| | | // 表单数据 |
| | | searchForm: { |
| | | id: null, |
| | | couponId: null, |
| | | member: '', |
| | | methodList:[0,1], |
| | | status: '', |
| | | }, |
| | | |
| | | |
| | | } |
| | | }, |
| | | created () { |
| | |
| | | this.visible = true |
| | | this.$nextTick(() => { |
| | | this.$refs.searchForm.resetFields() |
| | | this.searchForm.id = target |
| | | this.searchForm.couponId = target |
| | | this.search() |
| | | }) |
| | | |
| | | |
| | | }, |
| | | handlePageChange (pageIndex) { |
| | | // debugger |