Commit 6cb12ec6 by 张杰

v1.5.0版本需求

1 parent acc3a083
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
<el-button type="primary" size="small" v-if="showResult && uploadResult.failFile" @click="downloadFail()">导出失败记录</el-button> <el-button type="primary" size="small" v-if="showResult && uploadResult.failFile" @click="downloadFail()">导出失败记录</el-button>
</div> </div>
<div class=""> <div class="">
<el-button type="primary" size="small" :loading="loading" :disabled="!uploadFile.name" v-if="!showResult" @click="saveFile()">确认</el-button> <el-button type="primary" size="small" :loading="aloading" :disabled="!uploadFile.name" v-if="!showResult" @click="saveFile()">确认</el-button>
<el-button type="default" size="small" @click="closeDialog()">关闭</el-button> <el-button type="default" size="small" @click="closeDialog()">关闭</el-button>
</div> </div>
</div> </div>
...@@ -129,6 +129,7 @@ export default { ...@@ -129,6 +129,7 @@ export default {
showPopover: false, showPopover: false,
cloading: false, cloading: false,
loading: false, loading: false,
aloading:false,
isTimeOut: false, isTimeOut: false,
sTime: "", sTime: "",
eTime: "", eTime: "",
...@@ -280,13 +281,13 @@ export default { ...@@ -280,13 +281,13 @@ export default {
return false; return false;
} }
console.log(this.uploadFile); console.log(this.uploadFile);
this.loading = true; this.aloading = true;
this.$refs.elUpload.submit(); this.$refs.elUpload.submit();
}, },
// 监听文件上传成功 // 监听文件上传成功
onSuccess(response, file, fileList) { onSuccess(response, file, fileList) {
this.loading = false; this.aloading = false;
if (response.code != 200) { if (response.code != 200) {
showToast({ showToast({
message: response.message, message: response.message,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!