|
@@ -18,7 +18,7 @@
|
|
|
<li>1) 导入的Excel文件中必须包含名为“记账类型”、“记账名称”、“费用承担方类型”、“费用承担方”、“费用承担金额”的列,且名称必须相同</li>
|
|
|
<li>2) 其他列可根据实际情况填写,如果符合规则,系统会一起导入</li>
|
|
|
</ul>
|
|
|
- <a-button type="link" icon="download" style="padding: 0 0 0 23px;" @click="handleExport">下载导入模板</a-button>
|
|
|
+ <a-button type="link" icon="download" style="padding: 0 0 0 23px;" :loading="exportLoading" @click="handleExport">下载导入模板</a-button>
|
|
|
</div>
|
|
|
<div class="explain-item">
|
|
|
<div class="explain-tit">
|
|
@@ -86,7 +86,8 @@ export default {
|
|
|
paramsData: null,
|
|
|
uploadParams: {
|
|
|
savePathType: 'local'
|
|
|
- }
|
|
|
+ },
|
|
|
+ exportLoading: false
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@@ -127,6 +128,10 @@ export default {
|
|
|
},
|
|
|
// 下载模板
|
|
|
handleExport () {
|
|
|
+ this.exportLoading = true
|
|
|
+ setTimeout(() => {
|
|
|
+ this.exportLoading = false
|
|
|
+ }, 1000)
|
|
|
const link = document.createElement('a')
|
|
|
link.style.display = 'none'
|
|
|
link.href = 'https://jg-ocs.oss-cn-beijing.aliyuncs.com/templ/promo/expenseAccountDetailImport.xlsx?t=' + new Date().getTime()
|