修改海南测试问题
This commit is contained in:
@@ -102,7 +102,7 @@ const rules = {
|
||||
}
|
||||
const formRef = ref()
|
||||
const submit = () => {
|
||||
console.log('🚀 ~ open ~ form.value:', form.value)
|
||||
|
||||
formRef.value.validate(valid => {
|
||||
if (valid) {
|
||||
loading.value = true
|
||||
|
||||
@@ -246,7 +246,7 @@ const submitFn = async (flag: boolean) => {
|
||||
cancelFn()
|
||||
ElMessage.success('保存成功!')
|
||||
emit('onsubmit')
|
||||
})
|
||||
}).catch(() => { loading.value = false})
|
||||
} else {
|
||||
formRef.value.validate(async (valid: any) => {
|
||||
if (valid) {
|
||||
@@ -261,13 +261,13 @@ const submitFn = async (flag: boolean) => {
|
||||
cancelFn()
|
||||
ElMessage.success('计划新增成功!')
|
||||
emit('onsubmit')
|
||||
})
|
||||
}).catch(() => { loading.value = false})
|
||||
} else {
|
||||
await updateSurveyPlan(addForm).then(res => {
|
||||
cancelFn()
|
||||
ElMessage.success('重新发起成功!')
|
||||
emit('onsubmit')
|
||||
})
|
||||
}).catch(() => { loading.value = false})
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1050,7 +1050,7 @@ const confirmForm = async (flag: boolean) => {
|
||||
addUploadRef.value?.submitForm(res.data)
|
||||
resetForm()
|
||||
close()
|
||||
})
|
||||
}).catch(() => { loading.value = false})
|
||||
} else {
|
||||
await submitFormData(confirmFormData).then(res => {
|
||||
ElMessage({
|
||||
@@ -1061,7 +1061,7 @@ const confirmForm = async (flag: boolean) => {
|
||||
addUploadRef.value?.submitForm(res.data)
|
||||
resetForm()
|
||||
close()
|
||||
})
|
||||
}).catch(() => { loading.value = false})
|
||||
}
|
||||
} else {
|
||||
await ruleFormRef.value.validate( async (valid: any) => {
|
||||
@@ -1202,7 +1202,7 @@ const confirmForm = async (flag: boolean) => {
|
||||
addUploadRef.value?.submitForm(res.data)
|
||||
resetForm()
|
||||
close()
|
||||
})
|
||||
}).catch(() => { loading.value = false})
|
||||
} else {
|
||||
confirmFormData.id = resendId.value
|
||||
if (controFlag.value) confirmFormData.dataType = 1
|
||||
@@ -1219,7 +1219,7 @@ const confirmForm = async (flag: boolean) => {
|
||||
addUploadRef.value?.submitForm(res.data)
|
||||
resetForm()
|
||||
close()
|
||||
})
|
||||
}).catch(() => { loading.value = false})
|
||||
} else {
|
||||
await resend(confirmFormData).then(res => {
|
||||
ElMessage({
|
||||
@@ -1229,7 +1229,7 @@ const confirmForm = async (flag: boolean) => {
|
||||
ruleFormRef.value.resetFields()
|
||||
resetForm()
|
||||
close()
|
||||
})
|
||||
}).catch(() => { loading.value = false})
|
||||
}
|
||||
} else {
|
||||
await updateFormData(confirmFormData).then(res => {
|
||||
@@ -1241,7 +1241,7 @@ const confirmForm = async (flag: boolean) => {
|
||||
ruleFormRef.value.resetFields()
|
||||
resetForm()
|
||||
close()
|
||||
})
|
||||
}).catch(() => { loading.value = false})
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
@@ -219,7 +219,7 @@ const submit = async (flag: boolean) => {
|
||||
ElMessage.success('重新发起成功')
|
||||
tableStore.index()
|
||||
dialogVisible.value = false
|
||||
})
|
||||
}).catch(() => { loading.value = false })
|
||||
} else {
|
||||
//此时该告警单处于待反馈状态
|
||||
await addFeedback(subForm).then(res => {
|
||||
@@ -227,7 +227,7 @@ const submit = async (flag: boolean) => {
|
||||
ElMessage.success('申请成功')
|
||||
tableStore.index()
|
||||
dialogVisible.value = false
|
||||
})
|
||||
}).catch(() => { loading.value = false })
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
@@ -954,7 +954,7 @@ const confirmForm = async (flag: boolean) => {
|
||||
ruleFormRef.value.resetFields()
|
||||
resetForm()
|
||||
close()
|
||||
})
|
||||
}).catch(() => { loading.value = false})
|
||||
} else {
|
||||
// 先判断提交终端信息与监测点信息
|
||||
// 提交监测点信息
|
||||
@@ -994,7 +994,7 @@ const confirmForm = async (flag: boolean) => {
|
||||
ruleFormRef.value.resetFields()
|
||||
resetForm()
|
||||
close()
|
||||
})
|
||||
}).catch(() => { loading.value = false})
|
||||
} else {
|
||||
confirmFormData.id = resendId.value
|
||||
await updateMointorPointFormData(confirmFormData).then(res => {
|
||||
@@ -1007,7 +1007,7 @@ const confirmForm = async (flag: boolean) => {
|
||||
resetForm()
|
||||
close()
|
||||
}
|
||||
})
|
||||
}).catch(() => { loading.value = false})
|
||||
}
|
||||
} else {
|
||||
// // console.log('表单验证失败')
|
||||
|
||||
@@ -1167,7 +1167,7 @@ const disabledDate = time => {
|
||||
const importType = ref(null)
|
||||
const resendId = ref('')
|
||||
const open = async (row: any) => {
|
||||
console.log('🚀 ~ open ~ row:', row.row)
|
||||
|
||||
let flag = row.row ? true : false
|
||||
importType.value = null
|
||||
if (!flag) await getPowerCompanyList(false)
|
||||
@@ -1273,7 +1273,7 @@ const confirmForm = async (flag: boolean) => {
|
||||
resetForm()
|
||||
close()
|
||||
}
|
||||
})
|
||||
}).catch(() => { loading.value = false})
|
||||
} else {
|
||||
// 提交终端信息
|
||||
ruleFormRef.value.validate(async (valid) => {
|
||||
@@ -1311,7 +1311,7 @@ const confirmForm = async (flag: boolean) => {
|
||||
resetForm()
|
||||
close()
|
||||
}
|
||||
})
|
||||
}).catch(() => { loading.value = false})
|
||||
} else {
|
||||
confirmFormData.reporter = adminInfo.$state.id
|
||||
confirmFormData.orgId = adminInfo.$state.deptId
|
||||
@@ -1328,7 +1328,7 @@ const confirmForm = async (flag: boolean) => {
|
||||
resetForm()
|
||||
close()
|
||||
}
|
||||
})
|
||||
}).catch(() => { loading.value = false})
|
||||
}
|
||||
} else {
|
||||
console.log('表单验证失败')
|
||||
|
||||
Reference in New Issue
Block a user