| | |
| | | if (!formEl) return; |
| | | formEl.resetFields(); |
| | | // ruleForm.value.accidentExpressId = item[0].id |
| | | ruleForm.value = {} |
| | | accidentName.value = '' |
| | | accidentDepartmentId.value = '' |
| | | occurrencePlace.value = '' |
| | |
| | | </el-row> |
| | | <template #footer> |
| | | <span class="dialog-footer"> |
| | | <el-button @click="handleClose()" size="default">关闭</el-button> |
| | | <el-button @click="closeDialog()" size="default">关闭</el-button> |
| | | <el-button type="primary" @click="submitForm" size="default">确定</el-button> |
| | | </span> |
| | | </template> |
| | |
| | | }; |
| | | // 右方点击添加后显示标签 |
| | | const dynamicTags = ref([]); |
| | | const closeDialog=()=>{ |
| | | dialogVisible.value = false |
| | | handleClose() |
| | | }; |
| | | const handleClose = () => { |
| | | dynamicTags.value = []; |
| | | radio1.value = ''; |
| | |
| | | checkedItem, |
| | | submitReset, |
| | | submitForm, |
| | | closeDialog |
| | | }; |
| | | }, |
| | | }); |
| | |
| | | // 表单提交验证必填项 |
| | | const submitForm = async (title: string, formEl: FormInstance | undefined) => { |
| | | ruleForm.value.userList = ruleForm.value.userList.concat(ruleForm.value.chargeUserList) |
| | | delete ruleForm.value.planName |
| | | delete ruleForm.value.chargeUserListString |
| | | delete ruleForm.value.userListString |
| | | delete ruleForm.value.chargeUserList |
| | | delete ruleForm.value.gmtModitify |
| | | if (title == '新建应急演练计划发布') { |
| | | if (!formEl) return; |
| | | await formEl.validate((valid, fields) => { |