|
|
@@ -413,19 +413,14 @@ export default window.$crudCommon({
|
|
|
cancelButtonText: "取消",
|
|
|
type: "warning"
|
|
|
}).then(() => {
|
|
|
- const loading = this.$loading({
|
|
|
- lock: true,
|
|
|
- text: '数据同步中...',
|
|
|
- spinner: 'el-icon-loading',
|
|
|
- background: 'rgba(0, 0, 0, 0.7)'
|
|
|
- });
|
|
|
+ const _pageLoading = this.getPageLoading("数据同步中,请耐心等待...");
|
|
|
obj[type].method({ yearAndMonth: this.params.yearAndMonth }).then(() => {
|
|
|
this.$message.success('同步成功!');
|
|
|
this.page.currentPage = 1;
|
|
|
this.getList();
|
|
|
- loading.close();
|
|
|
+ _pageLoading.close();
|
|
|
}).catch(() => {
|
|
|
- loading.close();
|
|
|
+ _pageLoading.close();
|
|
|
});
|
|
|
});
|
|
|
},
|
|
|
@@ -435,13 +430,17 @@ export default window.$crudCommon({
|
|
|
cancelButtonText: "取消",
|
|
|
type: "warning"
|
|
|
}).then(() => {
|
|
|
+ const _pageLoading = this.getPageLoading("数据读取中,请耐心等待...");
|
|
|
this.api.feachProjectPersonList({ yearAndMonth: this.params.yearAndMonth}).then(res => {
|
|
|
+ _pageLoading.close();
|
|
|
let data = res.data;
|
|
|
if (data.success) {
|
|
|
this.$message.success('引用成功!');
|
|
|
this.page.currentPage = 1;
|
|
|
this.getList(this.page);
|
|
|
}
|
|
|
+ }).catch(err => {
|
|
|
+ _pageLoading.close();
|
|
|
});
|
|
|
});
|
|
|
},
|