index.js 1.05 KB
Newer Older
zenghuan committed
1 2
import Api from "~/service/Api";
import moment from "moment";
李少勇 committed
3 4
import Smtame from "../model";
import Utils from "~/utils";
5
import exportExcel from '~/page/Frontend/Rcvsel/event/exportExcel.js';
zenghuan committed
6
export default {
7
  mixins: [exportExcel],
李少勇 committed
8 9
  methods: {
    async handleSearch() {
zenghuan committed
10 11

    },
李少勇 committed
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
    async handleReset() {
      let resetModel = new Smtame().data
      Utils.copyValueFromVoData(this.model, resetModel);
      this.handleSearch();
    },
    // pageSize改变
    handleSizeChange(val) {
      this.pagination.pageNum = 1;
      this.pagination.pageSize = val;
      this.handleSearch();
    },
    // 页码改变
    handleCurrentChange(val) {
      this.pagination.pageNum = val;
      this.handleSearch();
    },
    handleSelectionChange(val) {
      this.multipleSelection = val;
30 31 32 33 34 35 36 37 38
    },
    exportToExcel() {
      let codeKeysMap = {
        sta: 'stacd1'
      };
      let params = {
        ...this.model.smtp,
      }
      this.exportExcel(this.stmData.columns, '/frontend/smtame/exportExcel', params, codeKeysMap, '问题、异常对账单');
李少勇 committed
39 40
    }
  },
zenghuan committed
41
};