zhaoke před 1 rokem
rodič
revize
e8e1e87661
1 změnil soubory, kde provedl 6 přidání a 3 odebrání
  1. 6 3
      src/views/newUserManagement/index.vue

+ 6 - 3
src/views/newUserManagement/index.vue

@@ -533,10 +533,12 @@ export default {
         if (b) {
           this.ruleForm.user_pwd = MD5(this.ruleForm.user_pwd)
           const data = _.cloneDeep(this.ruleForm)
-          if (data.user_group_id) {
-            delete data.user_group_id
+          const { user_id, user_pwd } = data
+          const newData = {
+            user_id,
+            user_pwd
           }
-          const { code } = await this.getChangeList(SERVICE_ID.getUserTableId, data, 2, 'user_id')
+          const { code } = await this.getChangeList(SERVICE_ID.getUserTableId, newData, 2, 'user_id')
           this.tipMsg(code)
           const result = await this.getQueryList(SERVICE_ID.getUserTableId, {
             up_user_group_id: this.treeCheckObj.user_group_id
@@ -567,6 +569,7 @@ export default {
               this.ruleForm.up_user_group_id = this.ruleForm.user_group_id
               const data = _.cloneDeep(this.ruleForm)
               delete data.user_group_id
+              delete data.user_pwd
               const { code } = await this.getChangeList(SERVICE_ID.getUserTableId, data, 2, 'user_id')
               this.tipMsg(code)
               const result = await this.getQueryList(SERVICE_ID.getUserTableId, {