refactor(项目设置): 上传新文件添加loading
--bug=1007520 --user=lyh 【项目设置】文件管理-上传新文件,上传jar包后没有反应 https://www.tapd.cn/55049933/s/1060116
This commit is contained in:
parent
bb8c95a962
commit
b1b9a870c9
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<el-card>
|
<el-card v-loading="result.loading">
|
||||||
<template v-slot:header>
|
<template v-slot:header>
|
||||||
<ms-table-header title="" :condition.sync="condition" @search="getProjectFiles"
|
<ms-table-header title="" :condition.sync="condition" @search="getProjectFiles"
|
||||||
:show-create="false">
|
:show-create="false">
|
||||||
|
@ -105,6 +105,7 @@ export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
loadFileVisible: false,
|
loadFileVisible: false,
|
||||||
|
result: {},
|
||||||
projectLoadingResult: {},
|
projectLoadingResult: {},
|
||||||
currentPage: 1,
|
currentPage: 1,
|
||||||
pageSize: 5,
|
pageSize: 5,
|
||||||
|
@ -164,7 +165,7 @@ export default {
|
||||||
'Content-Type': undefined
|
'Content-Type': undefined
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
this.$request(options, (response) => {
|
this.result = this.$request(options, () => {
|
||||||
this.$success(this.$t('commons.save_success'));
|
this.$success(this.$t('commons.save_success'));
|
||||||
this.getProjectFiles();
|
this.getProjectFiles();
|
||||||
});
|
});
|
||||||
|
@ -191,7 +192,7 @@ export default {
|
||||||
'Content-Type': undefined
|
'Content-Type': undefined
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
this.$request(options, (response) => {
|
this.result = this.$request(options, () => {
|
||||||
this.$success(this.$t('commons.save_success'));
|
this.$success(this.$t('commons.save_success'));
|
||||||
this.currentRow = null;
|
this.currentRow = null;
|
||||||
this.getProjectFiles();
|
this.getProjectFiles();
|
||||||
|
|
Loading…
Reference in New Issue