refactor(项目设置): 上传新文件添加loading

--bug=1007520 --user=lyh
【项目设置】文件管理-上传新文件,上传jar包后没有反应
https://www.tapd.cn/55049933/s/1060116
This commit is contained in:
shiziyuan9527 2021-10-27 18:21:12 +08:00 committed by shiziyuan9527
parent bb8c95a962
commit b1b9a870c9
1 changed files with 4 additions and 3 deletions

View File

@ -1,5 +1,5 @@
<template>
<el-card>
<el-card v-loading="result.loading">
<template v-slot:header>
<ms-table-header title="" :condition.sync="condition" @search="getProjectFiles"
:show-create="false">
@ -105,6 +105,7 @@ export default {
data() {
return {
loadFileVisible: false,
result: {},
projectLoadingResult: {},
currentPage: 1,
pageSize: 5,
@ -164,7 +165,7 @@ export default {
'Content-Type': undefined
}
};
this.$request(options, (response) => {
this.result = this.$request(options, () => {
this.$success(this.$t('commons.save_success'));
this.getProjectFiles();
});
@ -191,7 +192,7 @@ export default {
'Content-Type': undefined
}
};
this.$request(options, (response) => {
this.result = this.$request(options, () => {
this.$success(this.$t('commons.save_success'));
this.currentRow = null;
this.getProjectFiles();