Merge branch 'master' of https://sinanoaq.cn:8888/r/gtqtOut
| | |
| | | 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 |
| | | }; |
| | | }, |
| | | }); |
| | |
| | | <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" class="mb20"> |
| | | <el-form-item label="相关附件" prop="fileList"> |
| | | <el-upload |
| | | v-model:file-list="ruleForm.fileList" |
| | | v-model:file-list="fileList" |
| | | class="upload-demo" |
| | | action="https://run.mocky.io/v3/9d059bf9-4660-45f2-925d-ce80ad6c4d15" |
| | | :on-change="handleChange" |
| | |
| | | if (!formEl) return; |
| | | await formEl.validate((valid, fields) => { |
| | | if (valid) { |
| | | ruleForm.value.fileList=[] |
| | | isShowDialog.value = false; |
| | | contingencyApi() |
| | | .editEmergencyTeam(ruleForm.value) |
| | |
| | | // 表单提交验证必填项 |
| | | 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) => { |