Bläddra i källkod

update 用户管理

linweizeng 3 år sedan
förälder
incheckning
9bf2efca28
1 ändrade filer med 14 tillägg och 14 borttagningar
  1. 14 14
      src/views/platform/org/employee/edit/index.vue

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

@@ -247,17 +247,17 @@
                 })
             },
             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('请输入正确的手机号')
@@ -289,7 +289,7 @@
                                     this.closeDialog()
                                 } else {
                                     this.init()
-                                    this.$refs.attrInfo.clearData()
+                                    // this.$refs.attrInfo.clearData()
                                 }
                             }
                         )
@@ -310,7 +310,7 @@
                     if (this.$refs.orgInfo) {
                         this.$refs.orgInfo.init()
                     }
-                    this.$refs.positionInfo.init()
+                    // this.$refs.positionInfo.init()
                     if (this.$refs.roleInfo) {
                         this.$refs.roleInfo.init()
                     }
@@ -323,9 +323,9 @@
                 })
                 if (this.$utils.isEmpty(this.formId)) {
                     // 清空拓展属性数据
-                    this.$nextTick(() => {
-                        this.$refs.attrInfo.clearData()
-                    })
+                    // this.$nextTick(() => {
+                    //     this.$refs.attrInfo.clearData()
+                    // })
                     return
                 }
                 this.dialogLoading = true
@@ -338,9 +338,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
                 })