doum
19 小时以前 28db820caf0ed90f4326d29cb0fa7a19cba92775
admin/src/components/business/OperaCouponUsedDetail.vue
@@ -1,6 +1,7 @@
<template>
  <GlobalWindow
    :title="title"
    :with-footer="false"
    :visible.sync="visible"
    @confirm="confirm"
  >
@@ -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