From e14105c5d2c7456b6d13141a0327cc27586dfb2f Mon Sep 17 00:00:00 2001
From: linwenling <3256558519@qq.com>
Date: 星期六, 07 十月 2023 23:16:34 +0800
Subject: [PATCH] 11权限

---
 ruoyi-ui/src/views/system/user/profile/index.vue |   49 ++++++++++++++++++++++---------------------------
 1 files changed, 22 insertions(+), 27 deletions(-)

diff --git a/ruoyi-ui/src/views/system/user/profile/index.vue b/ruoyi-ui/src/views/system/user/profile/index.vue
index 51a17e3..babb9d8 100644
--- a/ruoyi-ui/src/views/system/user/profile/index.vue
+++ b/ruoyi-ui/src/views/system/user/profile/index.vue
@@ -218,43 +218,45 @@
 import userInfo from "./userInfo";
 import resetPwd from "./resetPwd";
 import { getUserProfile ,getSelfPermission} from "@/api/system/user";
+import {updateFamilyevent} from "@/api/bignote";
 
 export default {
   name: "Profile",
   components: { userAvatar, userInfo, resetPwd },
   data() {
     return {
-      data: {
+      formDat: {
         familyName: undefined,
         modelName: undefined,
       },
       selectedFamily: '', // 鍒濆鍖栭�変腑鐨勫搴负绌哄瓧绗︿覆
       SelfPermission:undefined,
+      SelfPermissionList:[],
       user: {},
       roleGroup: {},
       postGroup: {},
       activeTab: "userinfo",
-      activeTab1:"ueserinfopermission"
+      activeTab1:"瀹舵牴缃�"
     };
   },
 
   created() {
     this.getUser();
-    this.getUserPermission();
+    this.getList();
   },
   methods: {
     handleTabClick(tab) {
       this.selectedTab = tab.label;
       if (this.selectedFamily && this.selectedTab) {
-        this.getUserPermission(); // 璋冪敤 getList 鏂规硶
+        this.getList();
       }
     },
     handleDropdownCommand(command) {
-
       this.selectedFamily = command; // 鏇存柊閫変腑鐨勫搴�
+      console.log(this.selectedFamily)
       // 妫�鏌ヤ笅鎷夎彍鍗曞拰鍒囩墖椤甸潰鏄惁閮借閫変腑
       if (this.selectedFamily && this.selectedTab) {
-        this.getUserPermission(); // 璋冪敤 getList 鏂规硶
+        this.getList();
       }
     },
 
@@ -266,30 +268,23 @@
         this.postGroup = response.postGroup;
       });
     },
-    getUserPermission(){
-      console.log(this.selectedTab)
-      console.log(this.selectedFamily)
-      this.data = ({
-        familyName: this.selectedFamily,
-        modelName: this.selectedTab
+    getList() {
+      var formData = {
+        "familyName": "涓�鍙峰搴�",
+        "modelName": "瀹舵牴缃�"
+      };
+
+      var jsonString = JSON.stringify(formData);
+      console.log(jsonString);
+
+      getSelfPermission(jsonString).then(response => {
+        this.SelfPermissionList = response.data;
+        console.log(this.SelfPermissionList)
       });
-      console.log(this.data)
-      console.log(typeof this.data)
-      const jsonData = JSON.stringify(this.data); // 灏嗗璞¤浆鎹负 JSON 瀛楃涓�
-      console.log(jsonData); // 鎵撳嵃 JSON 瀛楃涓�
-      // debugger
-      if(jsonData){
-      getSelfPermission(jsonData).then(response => {
-          this.SelfPermission = response.data;
-          console.log(111);
-          console.log(this.SelfPermission);
-        })
-        .catch(error => {
-          // 澶勭悊閿欒
-        });
-      }
+
     }
   }
+
 };
 </script>
 <style>

--
Gitblit v1.9.1