|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<a-card :bordered="false">
|
|
|
-
|
|
|
+ <a-spin :spinning="spinning" tip="执行中,请稍后...">
|
|
|
<!-- 查询区域 -->
|
|
|
<div class="table-page-search-wrapper">
|
|
|
<a-form layout="inline" @keyup.enter.native="searchQuery">
|
|
@@ -75,7 +75,7 @@
|
|
|
<div class="table-operator">
|
|
|
<a-button type="primary" @click="exportList" icon="plus">导出</a-button>
|
|
|
</div>
|
|
|
-
|
|
|
+
|
|
|
<a-table
|
|
|
ref="tableRef"
|
|
|
size="middle"
|
|
@@ -87,11 +87,11 @@
|
|
|
:scroll="{x: 2000}"
|
|
|
:loading="loading"
|
|
|
:footer="showTotal"
|
|
|
- @change="handleTableChange">
|
|
|
+ @change="handleTableChange">
|
|
|
</a-table>
|
|
|
</div>
|
|
|
<!-- table区域-end -->
|
|
|
-
|
|
|
+</a-spin>
|
|
|
<!-- 表单区域 -->
|
|
|
</a-card>
|
|
|
</template>
|
|
@@ -115,6 +115,7 @@
|
|
|
DateTime:[moment().subtract(1, 'months'),moment().subtract(1, 'months'),],
|
|
|
mode2: ['month', 'month'],
|
|
|
open:false,
|
|
|
+ spinning:false,
|
|
|
// 表头
|
|
|
columns: [
|
|
|
{
|
|
@@ -286,6 +287,7 @@
|
|
|
var param = Object.assign({}, this.queryParam)
|
|
|
param.syHireType = (param.syHireType).toString()
|
|
|
getAction('/salary/salaryManagement/querySalaryTotalList',param).then(res=>{
|
|
|
+ this.spinning = false
|
|
|
if(res.success){
|
|
|
this.dataSource =res.result.records
|
|
|
this.totalDataSourceList(res.data)
|
|
@@ -331,7 +333,8 @@
|
|
|
this.mode2 = [mode[0] === 'date' ? 'month' : mode[0], mode[1] === 'date' ? 'month' : mode[1]];
|
|
|
},
|
|
|
searchQuery(){
|
|
|
- this.toggleSearchStatus = false
|
|
|
+ this.spinning = true
|
|
|
+ // this.toggleSearchStatus = false
|
|
|
this.queryParam.pageNo = 1
|
|
|
this.getTableList()
|
|
|
},
|
|
@@ -341,6 +344,7 @@
|
|
|
endDate:moment().subtract(1, 'months').format('YYYY-MM'),
|
|
|
syHireType:['在职','退休返聘']
|
|
|
}
|
|
|
+ this.spinning = true
|
|
|
this.getTableList()
|
|
|
},
|
|
|
handleTableChange(pagination, filters, sorter) {
|
|
@@ -349,9 +353,12 @@
|
|
|
this.getTableList()
|
|
|
},
|
|
|
exportList(){
|
|
|
+ this.spinning = true
|
|
|
var param1 = Object.assign({}, this.queryParam)
|
|
|
param1.syHireType = (param1.syHireType).toString()
|
|
|
downFile('/salary/salaryManagement/exportXls3',param1).then(data => {
|
|
|
+ console.log("================"+data)
|
|
|
+ this.spinning = false
|
|
|
if (!data) {
|
|
|
this.$message.warning('文件下载失败')
|
|
|
return
|
|
@@ -369,7 +376,15 @@
|
|
|
document.body.removeChild(link) // 下载完成移除元素
|
|
|
window.URL.revokeObjectURL(url) // 释放掉blob对象
|
|
|
}
|
|
|
- })
|
|
|
+ }).catch(
|
|
|
+ error => {
|
|
|
+ this.alertMsg(error.toString());
|
|
|
+ }
|
|
|
+ )
|
|
|
+ },
|
|
|
+ alertMsg(st){
|
|
|
+ this.spinning = false
|
|
|
+ this.$message.warning('文件导出失败,请联系系统管理员'+st)
|
|
|
},
|
|
|
showTotal(data) {
|
|
|
return (
|