|
@@ -88,7 +88,7 @@
|
|
</div>
|
|
</div>
|
|
<div class="table-btns">
|
|
<div class="table-btns">
|
|
<el-tooltip class="item" effect="dark" content="导出需要大量计算,请耐心等候,不要频繁点击" placement="top">
|
|
<el-tooltip class="item" effect="dark" content="导出需要大量计算,请耐心等候,不要频繁点击" placement="top">
|
|
- <el-button type="primary" size="small" @click="exportBtnFn">导 出</el-button>
|
|
|
|
|
|
+ <el-button type="primary" size="small" @click="exportBtnFn" :loading="exportLoading">导 出</el-button>
|
|
</el-tooltip>
|
|
</el-tooltip>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@@ -230,7 +230,8 @@ export default {
|
|
checkResult: [{ required: true, message: '请选择审批意见', trigger: 'change' }]
|
|
checkResult: [{ required: true, message: '请选择审批意见', trigger: 'change' }]
|
|
},
|
|
},
|
|
infoLoading: false,
|
|
infoLoading: false,
|
|
- infoContent: ''
|
|
|
|
|
|
+ infoContent: '',
|
|
|
|
+ exportLoading: false
|
|
};
|
|
};
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -370,6 +371,7 @@ export default {
|
|
}
|
|
}
|
|
|
|
|
|
try {
|
|
try {
|
|
|
|
+ this.exportLoading = true;
|
|
const obj = {
|
|
const obj = {
|
|
year: this.searchFrom.year,
|
|
year: this.searchFrom.year,
|
|
quarter: this.searchFrom.quarter
|
|
quarter: this.searchFrom.quarter
|
|
@@ -383,7 +385,10 @@ export default {
|
|
document.body.appendChild(link);
|
|
document.body.appendChild(link);
|
|
link.click();
|
|
link.click();
|
|
document.body.removeChild(link);
|
|
document.body.removeChild(link);
|
|
- } catch (err) {}
|
|
|
|
|
|
+ this.exportLoading = false;
|
|
|
|
+ } catch (err) {
|
|
|
|
+ this.exportLoading = false;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
};
|
|
};
|