|
@@ -22,7 +22,7 @@
|
|
|
<li>4) “是否淘汰”字段,如果确定淘汰,则输入“是”,如果不淘汰,则不需要输入,保持为空即可</li>
|
|
|
<li>5) “淘汰描述”字段,只有当是否淘汰为“是”时,才能录入淘汰描述,否则,淘汰描述只能保持为空</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">
|
|
@@ -84,7 +84,8 @@ export default {
|
|
|
paramsData: null,
|
|
|
uploadParams: {
|
|
|
savePathType: 'local'
|
|
|
- }
|
|
|
+ },
|
|
|
+ exportLoading: false
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@@ -109,8 +110,10 @@ export default {
|
|
|
handleExport () {
|
|
|
const _this = this
|
|
|
_this.spinning = true
|
|
|
+ _this.exportLoading = true
|
|
|
predictProductInfoExport({}).then(res => {
|
|
|
_this.spinning = false
|
|
|
+ _this.exportLoading = false
|
|
|
if (res.type == 'application/json') {
|
|
|
var reader = new FileReader()
|
|
|
reader.addEventListener('loadend', function () {
|