|
|
@@ -396,11 +396,20 @@ 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)'
|
|
|
+ });
|
|
|
obj[type].method({ yearAndMonth: this.params.yearAndMonth }).then(() => {
|
|
|
this.$message.success('同步成功!');
|
|
|
this.page.currentPage = 1;
|
|
|
this.getList();
|
|
|
- })
|
|
|
+ loading.close();
|
|
|
+ }).catch(() => {
|
|
|
+ loading.close();
|
|
|
+ });
|
|
|
});
|
|
|
},
|
|
|
},
|