修改
This commit is contained in:
parent
c9ac53f06e
commit
3f7b35a7f4
@ -38,12 +38,14 @@
|
||||
>计算工资</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
|
||||
<!--handleExport-->
|
||||
<el-button
|
||||
type="warning"
|
||||
plain
|
||||
icon="el-icon-download"
|
||||
size="mini"
|
||||
@click="handleExport"
|
||||
@click="submitFormExport"
|
||||
v-hasPermi="['finance:financeDetail:export']"
|
||||
>导出</el-button>
|
||||
</el-col>
|
||||
@ -51,7 +53,7 @@
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="detailList">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<!-- <el-table-column type="selection" width="55" align="center" /> -->
|
||||
<el-table-column label="员工姓名" align="center" prop="name" />
|
||||
<el-table-column label="工资月份" align="center" prop="month" width="100">
|
||||
<template slot-scope="scope">
|
||||
@ -379,7 +381,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listDetail, getDetail, delDetail, addDetail, updateDetail } from "@/api/finance/financeDetail";
|
||||
import { listDetail, getDetail, delDetail, addDetail, updateDetail,exportgzd } from "@/api/finance/financeDetail";
|
||||
import Treeselect from "@riophae/vue-treeselect";
|
||||
import { listAllDepts } from '@/api/system/dept';
|
||||
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
||||
@ -559,10 +561,25 @@ export default {
|
||||
},
|
||||
submitFormExport(){
|
||||
let param = this.form;
|
||||
exportPayroll(param).then(response => {
|
||||
this.downloadExcel(response.msg);
|
||||
this.openExport = false;
|
||||
})
|
||||
// exportPayroll(param).then(response => {
|
||||
// this.downloadExcel(response.msg);
|
||||
// this.openExport = false;
|
||||
// })
|
||||
console.log(1)
|
||||
if(this.queryParams.month == '' || this.queryParams.month == null){
|
||||
this.$message({
|
||||
message: '请选择月份',
|
||||
type: 'warning'
|
||||
});
|
||||
}else{
|
||||
exportgzd({
|
||||
month:this.queryParams.month
|
||||
}).then(response => {
|
||||
this.downloadExcel(response.msg);
|
||||
this.openExport = false;
|
||||
})
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user