|
@@ -595,7 +595,8 @@
|
|
|
<div class="el-upload__tip" style="color:red" slot="tip">提示:仅允许导入“xls”或“xlsx”格式文件!</div>
|
|
|
</el-upload>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
- <el-button type="primary" @click="submitFileForm">确 定</el-button>
|
|
|
+ <el-button type="primary" @click="submitFileForm"
|
|
|
+ v-loading.fullscreen.lock="fullscreenLoading">确 定</el-button>
|
|
|
<el-button @click="upload.open = false">取 消</el-button>
|
|
|
</div>
|
|
|
<form ref="downloadFileForm" :action="upload.downloadAction" target="FORMSUBMIT">
|
|
@@ -642,7 +643,9 @@
|
|
|
<!-- <div class="el-upload__tip" style="color:red" slot="tip">提示:仅允许导入“xls”或“xlsx”格式文件!</div>-->
|
|
|
</el-upload>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
- <el-button type="primary" @click="thirdSubmitFileForm">确 定</el-button>
|
|
|
+ <el-button type="primary" v-loading.fullscreen.lock="fullscreenLoading"
|
|
|
+ @click="thirdSubmitFileForm">确 定
|
|
|
+ </el-button>
|
|
|
<el-button @click="thirdUpload.open = false">取 消</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
@@ -670,7 +673,7 @@
|
|
|
:show-overflow-tooltip="true"
|
|
|
align="center">
|
|
|
<template slot-scope="scope">
|
|
|
- <a class="link-type" @click="handleDownload(scope.row)">
|
|
|
+ <a class="link-type" @click="handleDownload(scope.row)">
|
|
|
<span>{{ scope.row.fileName }}</span>
|
|
|
</a>
|
|
|
</template>
|
|
@@ -702,6 +705,7 @@ export default {
|
|
|
components: {Treeselect, YearApprove},
|
|
|
data() {
|
|
|
return {
|
|
|
+ fullscreenLoading: false,
|
|
|
submitData: {
|
|
|
plantCode: null,
|
|
|
year: null,
|
|
@@ -1262,6 +1266,7 @@ export default {
|
|
|
this.upload.open = false;
|
|
|
this.upload.isUploading = false;
|
|
|
this.$refs.upload.clearFiles();
|
|
|
+ this.fullscreenLoading = false;
|
|
|
if (response.data.length > 0) {
|
|
|
let failrow = ''
|
|
|
for (let i = 0; i < response.data.length; i++) {
|
|
@@ -1276,6 +1281,7 @@ export default {
|
|
|
// 提交上传文件
|
|
|
submitFileForm() {
|
|
|
this.$refs.upload.submit();
|
|
|
+ this.fullscreenLoading = true;
|
|
|
},
|
|
|
/** 导出按钮操作 */
|
|
|
handleExport() {
|
|
@@ -1299,6 +1305,7 @@ export default {
|
|
|
this.submitData.plantCode = this.plantCodeThird;
|
|
|
this.submitData.year = new Date(this.importThirdYear).getFullYear();
|
|
|
this.$refs.thirdUpload.submit();
|
|
|
+ this.fullscreenLoading = true;
|
|
|
},
|
|
|
//第三方数据列表
|
|
|
thirdPartyList() {
|
|
@@ -1317,6 +1324,7 @@ export default {
|
|
|
this.thirdUpload.open = false;
|
|
|
this.thirdUpload.isUploading = false;
|
|
|
this.$refs.thirdUpload.clearFiles();
|
|
|
+ this.fullscreenLoading = false;
|
|
|
if (response.data.length > 0) {
|
|
|
this.$alert(this.$t('导入成功'));
|
|
|
} else {
|