修改bug
This commit is contained in:
parent
474de2892a
commit
6150f127ca
|
|
@ -198,6 +198,7 @@
|
||||||
|
|
||||||
if(formData.status == 'modifyFail' && !formData.applyContent){
|
if(formData.status == 'modifyFail' && !formData.applyContent){
|
||||||
createMessage.warning('请填写驳回原因');
|
createMessage.warning('请填写驳回原因');
|
||||||
|
confirmLoading.value = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -554,7 +554,15 @@ async function submitForm() {
|
||||||
if (errorFields) {
|
if (errorFields) {
|
||||||
const firstField = errorFields[0];
|
const firstField = errorFields[0];
|
||||||
if (firstField) {
|
if (firstField) {
|
||||||
formRef.value.scrollToField(firstField.name, { behavior: 'smooth', block: 'center' });
|
// formRef.value.scrollToField(firstField.name, { behavior: 'smooth', block: 'center' });
|
||||||
|
// 延迟滚动到表单底部,显示完整的错误区域
|
||||||
|
// const formElement = formRef.value.$el;
|
||||||
|
// if (formElement) {
|
||||||
|
// formElement.scrollIntoView({
|
||||||
|
// behavior: 'smooth',
|
||||||
|
// block: 'end' // 滚动到表单底部
|
||||||
|
// });
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return Promise.reject(errorFields);
|
return Promise.reject(errorFields);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue