问题修改

This commit is contained in:
zhujiyan
2024-05-29 15:06:53 +08:00
parent 62e68e4434
commit 32be424616
12 changed files with 137 additions and 244 deletions

View File

@@ -395,9 +395,15 @@ const confirmForm = () => {
form.value.planId = props.planId
let confirmFormData = JSON.parse(JSON.stringify(form.value))
addPlanProblemFormData(confirmFormData).then(res => {
ruleFormRef.value.resetFields()
resetForm()
close()
if (res.code == 'A0000') {
ElMessage({
message: '新增实施问题成功',
type: 'success'
})
ruleFormRef.value.resetFields()
resetForm()
close()
}
})
} else {
console.log('表单验证失败')
@@ -407,17 +413,3 @@ const confirmForm = () => {
}
defineExpose({ open })
</script>
<style lang="scss" scoped>
.fixed-dialog {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
max-height: calc(100% - 30px);
}
.el-form {
}
.dialog-footer {
padding: 10px;
}
</style>