From 663489b2ce63ee84851dfbc2db32814e40ae9a89 Mon Sep 17 00:00:00 2001
From: dengjunjie <dengjunjie@hnkhzn.com>
Date: 星期五, 25 十月 2024 23:15:10 +0800
Subject: [PATCH] 优化WCS用户管理功能

---
 项目代码/WCS/WIDESEAWCS_Client/src/views/system/UserInfo.vue |   61 ++++++++++++++++++++++--------
 1 files changed, 45 insertions(+), 16 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Client/src/views/system/UserInfo.vue" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Client/src/views/system/UserInfo.vue"
index 32eb1d3..39daa23 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Client/src/views/system/UserInfo.vue"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Client/src/views/system/UserInfo.vue"
@@ -1,11 +1,27 @@
 <template>
-  <VolBox :width="500" :height="270" v-model="modifyOptions.model" title="淇敼瀵嗙爜">
+  <VolBox
+    :width="500"
+    :height="270"
+    v-model="modifyOptions.model"
+    title="淇敼瀵嗙爜"
+  >
     <div style="padding:10px;20px;">
-      <VolForm ref="pwd" :formRules="modifyOptions.data" :formFields="modifyOptions.fields"></VolForm>
+      <VolForm
+        ref="pwd"
+        :formRules="modifyOptions.data"
+        :formFields="modifyOptions.fields"
+      ></VolForm>
     </div>
     <template #footer>
-      <div style="text-align: center;">
-        <el-button type="primary" size="mini" icon="md-checkmark-circle" long @click="savePwd">淇濆瓨</el-button>
+      <div style="text-align: center">
+        <el-button
+          type="primary"
+          size="mini"
+          icon="md-checkmark-circle"
+          long
+          @click="savePwd"
+          >淇濆瓨</el-button
+        >
       </div>
     </template>
   </VolBox>
@@ -21,7 +37,14 @@
             <span>娉ㄥ唽鏃ユ湡锛歿{ userInfo.createDate }}</span>
           </p>
           <p>
-            <el-button type="error" @click="modifyPwd" size="small" icon="md-lock" long>淇敼瀵嗙爜</el-button>
+            <el-button
+              type="error"
+              @click="modifyPwd"
+              size="small"
+              icon="md-lock"
+              long
+              >淇敼瀵嗙爜</el-button
+            >
             <!-- <el-button
               style="padding: 3px 16px"
               @click="modifyImg"
@@ -35,7 +58,13 @@
       </div>
     </div>
     <div class="right">
-      <vol-form ref="form" :load-key="true" :width="500" :formRules="editFormOptions" :formFields="editFormFields">
+      <vol-form
+        ref="form"
+        :load-key="true"
+        :width="500"
+        :formRules="editFormOptions"
+        :formFields="editFormFields"
+      >
         <div class="footer">
           <!-- <el-button
             style="margin-top: 2px"
@@ -49,7 +78,6 @@
         </div>
       </vol-form>
     </div>
-
   </div>
 </template>
 <script>
@@ -99,7 +127,7 @@
     },
   },
   created() {
-    this.http.post("/api/Sys_User/getCurrentUserInfo", {}, true).then((x) => {
+    this.http.post("/api/User/getCurrentUserInfo", {}, true).then((x) => {
       if (!x.status) {
         return this.$message(x.message);
       }
@@ -177,11 +205,12 @@
         ],
         [
           {
-            columnType: "string",
+            dataKey: "tree_roles",
             title: "瑙掕壊",
-            field: "roleName",
+            field: "role_Id",
             disabled: true,
-            type: "text",
+            data: [],
+            type: "select",
           },
         ],
         [
@@ -234,15 +263,15 @@
   padding-bottom: 20px;
 }
 
-.binding-group>>>.ivu-cell-link {
+.binding-group >>> .ivu-cell-link {
   text-align: left;
 }
 
-.binding-group>>>.ivu-card-body {
+.binding-group >>> .ivu-card-body {
   padding: 0 16px;
 }
 
-.binding-group>>>.ivu-cell-title {
+.binding-group >>> .ivu-cell-title {
   line-height: 24px;
   font-size: 12px;
 }
@@ -277,7 +306,7 @@
       font-weight: 900;
     }
 
-    >p {
+    > p {
       padding-top: 5px;
     }
   }
@@ -292,7 +321,7 @@
     border: 3px solid #dfdfdf;
   }
 
-  >div {
+  > div {
     float: left;
     // height: 480px;
     padding-top: 10px;

--
Gitblit v1.9.3