普测测试流程
This commit is contained in:
@@ -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')
|
||||
})
|
||||
}
|
||||
}
|
||||
// 上传文件
|
||||
// 文件数超出提示
|
||||
|
||||
Reference in New Issue
Block a user