普测测试流程

This commit is contained in:
2024-06-04 10:51:54 +08:00
parent b919fb8447
commit 031c0d178d
9 changed files with 412 additions and 498 deletions

View File

@@ -228,25 +228,11 @@ const audit = (filePath: any) => {
if (form.value.customSubstationFlag == '0') {
addForm.substation = addForm.substation.join(',')
}
console.log(addForm, '提交')
addSurveyPlan(addForm).then(res => {
cancelFn()
emit('onsubmit')
})
return
if (title.value == '普测计划新增') {
addSurvey({ ...form.value, filePath: filePath }).then((res: any) => {
ElMessage.success('新增成功!')
cancelFn()
emit('onsubmit')
})
} else if (title.value == '重新发起计划') {
auditSurvey({ ...form.value, filePath: filePath }).then((res: any) => {
ElMessage.success('重新发起计划成功!')
cancelFn()
emit('onsubmit')
})
}
}
// 上传文件
// 文件数超出提示