doum
17 小时以前 1e4f8276eb86dde67135126cbb9bae19bb845823
admin/src/components/business/OperaCouponUsedDetail.vue
@@ -1,12 +1,13 @@
<template>
  <GlobalWindow
    :title="title"
    :with-footer="false"
    :visible.sync="visible"
    @confirm="confirm"
  >
    <TableLayout :permissions="['business:coupon:query']">
      <!-- 搜索表单 -->
      <el-form ref="searchForm" slot="search-form" :model="searchForm" label-width="100px" inline>
      <el-form ref="searchForm" slot="search-form" :model="searchForm" label-width="100px" >
        <el-form-item label="兑换人" prop="member">
          <el-input v-model="searchForm.member" placeholder="请输入昵称" @keypress.enter.native="search"></el-input>
        </el-form-item>
@@ -28,7 +29,7 @@
      </el-form>
      <!-- 表格和分页 -->
      <template v-slot:table-wrap>
        <el-table
          v-loading="isWorking.search"
          :data="tableData.list"
@@ -49,11 +50,11 @@
              {{ 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 ? '已使用' : '已过期' }}
@@ -83,18 +84,19 @@
  extends: BaseTable,
  components: { GlobalWindow, TableLayout, Pagination },
  data () {
    return {
      visible: false,
      title: '',
      getDate: [],
      // 表单数据
      searchForm: {
        id: null,
        couponId: null,
        member: '',
        methodList:[0,1],
        status: '',
      },
    }
  },
  created () {
@@ -109,10 +111,10 @@
      this.visible = true
      this.$nextTick(() => {
        this.$refs.searchForm.resetFields()
        this.searchForm.id = target
        this.searchForm.couponId = target
        this.search()
      })
    },
    handlePageChange (pageIndex) {
      // debugger