13937891274
2022-08-10 d7cfa29b8fa22749b6b4371fc8de2133972e231b
src/views/contingencyManagement/contingency/component/addEmergencyPersonnel.vue
@@ -62,7 +62,7 @@
      </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>
@@ -148,11 +148,6 @@
    })
    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;
@@ -292,7 +287,6 @@
      openUser,
      userRef,
      onUser,
      addForm,
      submitForm,
    };
  },