index.vue 2.28 KB
<template>
  <div class="container">
    <div class="sticky">
      <GLCombiForm
          ref="showSearch"
          :rowNumber="1"
          :formObj="searchForm"
          :formData="searchFormData"
          @handleOk="handleSearch"
          @handleRest="handleReset"
      >
      </GLCombiForm>
      <div class="sticky-btns">
        <div class="btns">
          <el-button
              @click="handleExport('winningGoodsExportApi')"
          >导出
          </el-button>
        </div>
      </div>
    </div>
    <div class="tabelList">
      <div class="table-title">实物奖品核销列表</div>
      <GLTable
          ref="listRef"
          :getListApi="getListApi"
          :searchForm="tableSearchForm"
          :noDataImg="url"
          :tableParams="tableParams"
          :pageConf="pageConf"
      >
        <span
            slot="auth-button"
            slot-scope="scope"
        >
          <GLTableButton
              :buttonList="tableButtonList"
              :buttonItem="scope.scope"
              :buttonNum="3"
          ></GLTableButton>
        </span>
      </GLTable>
    </div>
  </div>
</template>

<script type='text/ecmascript-6'>
import dataImportMixin from "./dataImportMixin";
import repeatMethods from "../common/repeatMethods";
export default {
  name: 'DisplayRecord',
  mixins: [dataImportMixin,repeatMethods],
  components:{
  },
  data() {
    return {
    }
  },
  mounted() {
  },
  methods: {
    getParams() {
      let params = JSON.parse(JSON.stringify(this.searchForm))
      this.updateParams(params, 'exchangeTime', 'exchangeTime', 'startExchangeTime', 'endExchangeTime');
      return params
    }
  }
}
</script>

<style scoped lang='scss'>
.container {
  height: 100%;
  background-color: #fff;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  padding: 20px;

  .table-title {
    font-weight: 700;
    font-size: 16px;
    color: #333333;
    padding-bottom: 18px;
  }

  .sticky {
    position: relative;
    z-index: 2;

    &-btns {
      position: absolute;
      right: 0;
      bottom: -23px;
      overflow: hidden;

      .el-button + .el-button {
        margin-left: 8px;
      }

      .btns {
        transition: all 0.25s;

        .el-button {
          padding: 8px 15px;
          min-width: 60px;
        }
      }
    }
  }
}
</style>