三级页面修改
This commit is contained in:
@@ -730,6 +730,7 @@ export default {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let loadingInstance = null;
|
||||||
try {
|
try {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
|
|
||||||
@@ -759,11 +760,12 @@ export default {
|
|||||||
};
|
};
|
||||||
|
|
||||||
console.log('提交的合卷数据:', mergeData);
|
console.log('提交的合卷数据:', mergeData);
|
||||||
const loadingInstance = this.$loading({
|
loadingInstance = this.$loading({
|
||||||
lock: true,
|
lock: true,
|
||||||
text: '正在合卷,请稍后...',
|
text: '正在合卷,请稍后...',
|
||||||
background: 'rgba(0, 0, 0, 0.7)'
|
background: 'rgba(0, 0, 0, 0.7)'
|
||||||
})
|
});
|
||||||
|
|
||||||
const response = await mergeMaterialCoil(mergeData);
|
const response = await mergeMaterialCoil(mergeData);
|
||||||
if (response.code === 200) {
|
if (response.code === 200) {
|
||||||
this.$message.success('合卷保存成功');
|
this.$message.success('合卷保存成功');
|
||||||
@@ -783,7 +785,9 @@ export default {
|
|||||||
console.error(error);
|
console.error(error);
|
||||||
} finally {
|
} finally {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
loadingInstance.close();
|
if (loadingInstance) {
|
||||||
|
loadingInstance.close();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user