|
|
@ -68,7 +68,7 @@ |
|
|
</el-upload> |
|
|
</el-upload> |
|
|
</div> |
|
|
</div> |
|
|
<span slot="footer" class="dialog-footer"> |
|
|
<span slot="footer" class="dialog-footer"> |
|
|
<el-button type="primary" @click="saveUploadFile">保存</el-button> |
|
|
|
|
|
|
|
|
<el-button type="primary" :loading="saveLoading" :disabled="saveLoading" @click="saveUploadFile">保存</el-button> |
|
|
<el-button type="primary" @click="closeDialog">关闭</el-button> |
|
|
<el-button type="primary" @click="closeDialog">关闭</el-button> |
|
|
</span> |
|
|
</span> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
@ -91,6 +91,7 @@ |
|
|
buList: [], |
|
|
buList: [], |
|
|
titleCon: '文件导入', |
|
|
titleCon: '文件导入', |
|
|
visible: false, |
|
|
visible: false, |
|
|
|
|
|
saveLoading: false, |
|
|
fileList: [], |
|
|
fileList: [], |
|
|
pageData: { |
|
|
pageData: { |
|
|
site: '', |
|
|
site: '', |
|
|
@ -296,7 +297,7 @@ |
|
|
return false |
|
|
return false |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this.saveLoading = true |
|
|
const formData = new FormData() |
|
|
const formData = new FormData() |
|
|
formData.append("buNo",this.pageData.buNo) |
|
|
formData.append("buNo",this.pageData.buNo) |
|
|
formData.append("site",this.pageData.site) |
|
|
formData.append("site",this.pageData.site) |
|
|
@ -318,6 +319,11 @@ |
|
|
confirmButtonText: '确定' |
|
|
confirmButtonText: '确定' |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
}).catch((error) => { |
|
|
|
|
|
console.error('保存失败:', error) |
|
|
|
|
|
this.$message.error('保存失败,请重试') |
|
|
|
|
|
}).finally(() => { |
|
|
|
|
|
this.saveLoading = false |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|