fix : 修复提交校验

This commit is contained in:
2024-07-03 00:38:21 +08:00
parent 928f41112c
commit 0d7c303397
9 changed files with 30 additions and 17 deletions

View File

@@ -89,11 +89,12 @@ const handleSubmit = (instance) => {
if (!instance) return
instance.validate(async (valid) => {
if (!valid) {
return ElNotification({
ElNotification({
title: '提示',
message: '请完善数据,再提交!',
type: 'error'
})
return;
}
let files = []
otherFileList.value.forEach(item => {
@@ -139,11 +140,12 @@ const handleResubmit = (instance) => {
if (!instance) return
instance.validate(async (valid) => {
if (!valid) {
return ElNotification({
ElNotification({
title: '提示',
message: '请完善数据,再提交!',
type: 'error'
})
return;
}
let otherFiles = []
if (name.value === 'Implementation/edit') {

View File

@@ -183,11 +183,12 @@ const handleSubmit = async (instance) => {
if (!instance) return
instance.validate(async (valid) => {
if (!valid) {
return ElNotification({
ElNotification({
title: '提示',
message: '请完善数据,再提交!',
type: 'error'
})
return;
}
let params = {
fileList: fileList.value,

View File

@@ -173,11 +173,12 @@ const handleSubmit = (instance) => {
if (!instance) return
instance.validate(async (valid) => {
if (!valid) {
return ElNotification({
ElNotification({
title: '提示',
message: '请完善数据,再提交!',
type: 'error'
})
return;
}
instance.clearValidate()
tableForm.tableData.forEach(item => {