| | |
| | | </el-form> |
| | | <template #footer> |
| | | <span class="dialog-footer"> |
| | | <el-button size="default" type="primary" @click="addForm(ruleFormRef)">继续添加</el-button> |
| | | <!-- <el-button size="default" type="primary" @click="addForm(ruleFormRef)">继续添加</el-button>--> |
| | | <el-button size="default" @click="resetForm(ruleFormRef)">关闭</el-button> |
| | | <el-button size="default" type="primary" v-if="disabled == true ? false : true" @click="submitForm(titles, ruleFormRef)" >确定</el-button> |
| | | </span> |
| | |
| | | }) |
| | | const titles = ref(); |
| | | const disabled = ref(); |
| | | //继续添加 |
| | | const addForm = (formEl: FormInstance | undefined) => { |
| | | emit('myAdd', ruleForm.value); |
| | | formEl.resetFields(); |
| | | } |
| | | const submitForm = async (title: string, formEl: FormInstance | undefined) => { |
| | | if (title == '新建应急队伍人员') { |
| | | if (!formEl) return; |
| | |
| | | openUser, |
| | | userRef, |
| | | onUser, |
| | | addForm, |
| | | submitForm, |
| | | }; |
| | | }, |