From 085fa2fb257e9f11f8f6d34bf12e2dc281c36b4d Mon Sep 17 00:00:00 2001
From: odc.xiaohui <xiaohui@Q1>
Date: 星期四, 09 二月 2023 11:28:21 +0800
Subject: [PATCH] 2023/2/9 肖辉 修改部门管理

---
 src/views/systemSetting/baseSetting/user/components/updateUser/index.vue |   67 +++++++++++----------------------
 1 files changed, 23 insertions(+), 44 deletions(-)

diff --git a/src/views/systemSetting/baseSetting/user/components/updateUser/index.vue b/src/views/systemSetting/baseSetting/user/components/updateUser/index.vue
index 86f30f7..68dbf83 100644
--- a/src/views/systemSetting/baseSetting/user/components/updateUser/index.vue
+++ b/src/views/systemSetting/baseSetting/user/components/updateUser/index.vue
@@ -60,8 +60,8 @@
     },
     created() {
         this.user = JSON.parse(JSON.stringify(this.userInfo));
-        this.tempName = this.user.departName;
-        this.selectOrg.orgsid.push(this.user.departmentId);
+        this.tempName = this.user.depart[0].departName;
+        this.selectOrg.orgsid.push(this.user.depart[0].id);
         // 鑾峰彇鎵�鏈夎鑹插垪琛�
         this.getRoleList();
         // 鑾峰彇褰撳墠鐢ㄦ埛瑙掕壊鍒楄〃
@@ -83,6 +83,7 @@
         // 淇敼鐢ㄦ埛淇℃伅
         handleUser() {
             const { flag, user, tempName, selectOrg, tempRole, isArraySame } = this;
+            let umsDepartManage = { userId: user.id, departId: selectOrg.orgsid[0] }
             this.$refs.user.validate((valid) => {
                 if (valid) {
                     user.isDy = `${user.isDy}`;
@@ -95,30 +96,8 @@
                         } else {
                             if (user.departName) {
                                 this.$axios({
-                                    method: 'post',
-                                    url: `sccg/admin/update/${user.id}`,
-                                    data: {
-                                        "id": user.id,
-                                        "username": user.username,
-                                        "password": user.password,
-                                        "icon": user.icon,
-                                        "email": user.email,
-                                        "nickName": user.nickName,
-                                        "note": user.note,
-                                        "createTime": user.createTime,
-                                        "loginTime": user.loginTime,
-                                        "status": user.status ? 1 : 0,
-                                        "macAddress": user.macAddress,
-                                        "ipAddress": user.ipAddress,
-                                        "isDy": `${user.isDy}`,
-                                        "sex": `${user.sex}`,
-                                        "jobTitle": user.jobTitle,
-                                        "departmentId": selectOrg.orgsid[0],
-                                        "departName": user.departName,
-                                        "userType": user.userType,
-                                        "zj": user.zj,
-                                        "mobile": user.mobile,
-                                    }
+                                    method: 'put',
+                                    url: `/sccg/depart/user_update_depart?userId=` + user.id + '&departId=' + selectOrg.orgsid[0]
                                 })
                                     .then(res => {
                                         this.$message({
@@ -151,8 +130,8 @@
                         }
                         else {
                             this.$axios({
-                                method: 'post',
-                                url: 'sccg/admin/role/update?adminId=' + user.id + '&roleIds=' + user.role,
+                                method: 'put',
+                                url: 'sccg/depart/user_update_Role?id=' + user.id + '&roles=' + user.role,
                             })
                                 .then(res => {
                                     this.$message({
@@ -244,21 +223,21 @@
 <style lang="scss" scoped>
 .updateUser {
     border-radius: 1px;
-    background-color: #09152f;
+    // background-color: #09152f;
 
-    :deep(.el-tag) {
-        background-color: #09152f;
-    }
+    // :deep(.el-tag) {
+    //     background-color: #09152f;
+    // }
 
-    .el-select-dropdown.is-multiple .el-select-dropdown__item.selected {
-        background-color: #09152f;
-        color: #4b9bb7;
-    }
+    // .el-select-dropdown.is-multiple .el-select-dropdown__item.selected {
+    //     background-color: #09152f;
+    //     color: #4b9bb7;
+    // }
 
     main {
         text-align: left;
         padding: 0 55px;
-        background-color: #09152f;
+        // background-color: #09152f;
         padding-bottom: 50px;
 
         .mainContent {
@@ -300,12 +279,12 @@
     }
 }
 
-.updateUser::v-deep .el-form-item__label {
-    color: #4b9bb7;
-}
+// .updateUser::v-deep .el-form-item__label {
+//     color: #4b9bb7;
+// }
 
-.updateUser::v-deep .el-input__inner {
-    background-color: #09152f;
-    border: 1px solid #17324c;
-}
+// .updateUser::v-deep .el-input__inner {
+//     background-color: #09152f;
+//     border: 1px solid #17324c;
+// }
 </style>
\ No newline at end of file

--
Gitblit v1.8.0