Przeglądaj źródła

update 用户管理

linweizeng 3 lat temu
rodzic
commit
450197eede
1 zmienionych plików z 11 dodań i 11 usunięć
  1. 11 11
      src/views/platform/org/employee/edit/index.vue

+ 11 - 11
src/views/platform/org/employee/edit/index.vue

@@ -221,17 +221,17 @@
                 return true
             },
             saveData() {
-                const attrValidator = this.$refs['attrInfo'] ? this.$refs['attrInfo'].callback() : null
+                // const attrValidator = this.$refs['attrInfo'] ? this.$refs['attrInfo'].callback() : null
                 const vo = this.formatSubmitData()
                 if (!this.$utils.isEmpty(this.formId) && !this.ceroParams) {
                     delete vo.partyEmployeePo.password
                 }
                 this.dialogLoading = true
-                if (!attrValidator) {
-                    ActionUtils.warning('请检查表单数据是否填写正确')
-                    this.dialogLoading = false
-                    return
-                }
+                // if (!attrValidator) {
+                //     ActionUtils.warning('请检查表单数据是否填写正确')
+                //     this.dialogLoading = false
+                //     return
+                // }
                 const { mobile = '' } = vo.user || {}
                 if (mobile && !this.checkPhone(mobile)) {
                     ActionUtils.warning('请输入正确的手机号')
@@ -263,7 +263,7 @@
                                     this.closeDialog()
                                 } else {
                                     this.init()
-                                    this.$refs.attrInfo.clearData()
+                                    // this.$refs.attrInfo.clearData()
                                 }
                             }
                         )
@@ -298,7 +298,7 @@
                 if (this.$utils.isEmpty(this.formId)) {
                     // 清空拓展属性数据
                     this.$nextTick(() => {
-                        this.$refs.attrInfo.clearData()
+                        // this.$refs.attrInfo.clearData()
                     })
                     return
                 }
@@ -312,9 +312,9 @@
                     this.employee.posItemList = response.variables.partyPositions || []
                     this.employee.roleItemList = response.variables.partyRoles || []
                     this.employee.userGroupItemList = response.variables.partyGroups || []
-                    this.$nextTick(() => {
-                        this.$refs.attrInfo.loadAttrData()
-                    })
+                    // this.$nextTick(() => {
+                    //     this.$refs.attrInfo.loadAttrData()
+                    // })
                 }).catch(() => {
                     this.dialogLoading = false
                 })