|
@@ -2162,6 +2162,13 @@ export default {
|
|
|
this.$message.error('新建训练营失败: ' + (error.message || '未知错误'));
|
|
this.$message.error('新建训练营失败: ' + (error.message || '未知错误'));
|
|
|
});
|
|
});
|
|
|
}else {
|
|
}else {
|
|
|
|
|
+ // 显示全屏加载圈和遮蔽层
|
|
|
|
|
+ const loadingInstance = this.$loading({
|
|
|
|
|
+ lock: true,
|
|
|
|
|
+ text: '复制营期中,请耐心等待...',
|
|
|
|
|
+ spinner: 'el-icon-loading',
|
|
|
|
|
+ background: 'rgba(0, 0, 0, 0.7)'
|
|
|
|
|
+ });
|
|
|
// 调用批量添加小节接口
|
|
// 调用批量添加小节接口
|
|
|
copyExistCampPeriod(submitData).then(response => {
|
|
copyExistCampPeriod(submitData).then(response => {
|
|
|
if (response.code === 200) {
|
|
if (response.code === 200) {
|
|
@@ -2175,6 +2182,8 @@ export default {
|
|
|
}
|
|
}
|
|
|
}).catch(error => {
|
|
}).catch(error => {
|
|
|
this.$message.error('复制营期失败:' + (error.message || '未知错误'));
|
|
this.$message.error('复制营期失败:' + (error.message || '未知错误'));
|
|
|
|
|
+ }).finally(() => {
|
|
|
|
|
+ loadingInstance.close(); // 关闭加载圈
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
} catch (error) {
|
|
} catch (error) {
|