From 83af3dd309889489f541fc8e21894c9f79e5788c Mon Sep 17 00:00:00 2001
From: zhangwei <1504152376@qq.com>
Date: 星期五, 22 八月 2025 16:09:58 +0800
Subject: [PATCH] 用户管理

---
 src/views/login/index.vue |  141 ++++++++++++++++++++++++----------------------
 1 files changed, 73 insertions(+), 68 deletions(-)

diff --git a/src/views/login/index.vue b/src/views/login/index.vue
index 71214fe..f79d52d 100644
--- a/src/views/login/index.vue
+++ b/src/views/login/index.vue
@@ -24,7 +24,8 @@
   ElRadioGroup,
   ElRadio,
   ElRow,
-  ElTag
+  ElTag,
+  ElCol
 } from "element-plus";
 import { useLayout } from "@/layout/hooks/useLayout";
 import { useUserStoreHook } from "@/store/modules/user";
@@ -156,78 +157,82 @@
           rules: loginRules,
           size: "large"
         },
-        [
-          h(Motion, { delay: 150 }, [
-            h(
-              ElFormItem,
-              {
-                prop: "exRoleCode",
-                label: ""
-              },
-              [
-                // 鍗曢�夋缁� - 绾靛悜鎺掑垪
-                h(
-                  ElRadioGroup,
-                  {
-                    modelValue: secondId.value,
-                    "onUpdate:modelValue": val => {
-                      secondId.value = val;
-                    }
-                  },
-                  [
-                    // 寰幆娓叉煋鍗曢�夋 - 鏍规嵁姣忛」鐨刬sManager鏄剧ず鏍囩
-                    state.myEnterpriseList.map(item =>
+        {
+          default: () => {
+            return [
+              h(
+                ElFormItem,
+                { prop: "exRoleCode", label: "" },
+                {
+                  default: () => {
+                    return [
                       h(
-                        "el-row",
+                        ElRadioGroup,
                         {
-                          style: {
-                            width: "100%"
-                          }
+                          modelValue: secondId.value,
+                          "onUpdate:modelValue": val => (secondId.value = val)
                         },
-                        [
-                          h(
-                            "el-col",
-                            {
-                              span: 24
-                            },
-                            [
-                              h(
-                                ElRadio,
-                                {
-                                  key: item.customerUserID,
-                                  value: item.customerUserID
-                                },
-                                [
-                                  // 鍗曢�夋鏂囨湰
-                                  item.enterpriseName,
-                                  // 鏍规嵁褰撳墠椤圭殑isManager鏄剧ず鏍囩锛堟斁鍦ㄦ枃鏈悗闈級
-                                  item.isManger
-                                    ? h(
-                                        ElTag,
-                                        {
-                                          type: "primary",
-                                          size: "small",
-                                          style: {
-                                            marginLeft: "8px",
-                                            alignSelf: "center"
-                                          }
-                                        },
-                                        "绠$悊鍛�"
-                                      )
-                                    : null
-                                ]
-                              )
-                            ]
+                        // ElRadioGroup 鐨勫唴瀹规槸寰幆鐢熸垚鐨勶紝鐢ㄥ嚱鏁板寘瑁�
+                        () =>
+                          state.myEnterpriseList.map(item =>
+                            h(
+                              ElRow,
+                              { style: { width: "100%" } },
+                              {
+                                default: () => {
+                                  return [
+                                    h(
+                                      ElCol,
+                                      { span: 24 },
+                                      {
+                                        default: () => {
+                                          return [
+                                            h(
+                                              ElRadio,
+                                              {
+                                                key: item.customerUserID,
+                                                value: item.customerUserID
+                                              },
+                                              // ElRadio 鐨勫唴瀹规槸鍔ㄦ�佺殑锛岀敤鍑芥暟鍖呰9
+                                              () => [
+                                                // 鏂囨湰鐩存帴杩斿洖锛堜笉瑕佸祵濂楀嚱鏁帮級
+                                                item.enterpriseName,
+                                                item.isManger
+                                                  ? h(
+                                                      ElTag,
+                                                      {
+                                                        type: "primary",
+                                                        size: "small",
+                                                        style: {
+                                                          marginLeft: "8px",
+                                                          alignSelf: "center"
+                                                        }
+                                                      },
+                                                      // ElTag 鐨勫唴瀹规槸闈欐�佹枃鏈紝鐩存帴杩斿洖
+                                                      {
+                                                        default: () => "绠$悊鍛�"
+                                                      }
+                                                    )
+                                                  : null
+                                              ]
+                                            )
+                                          ];
+                                        }
+                                      }
+                                    )
+                                  ];
+                                }
+                              }
+                            )
                           )
-                        ]
                       )
-                    )
-                  ]
-                )
-              ]
-            )
-          ])
-        ]
+                    ];
+                  }
+                }
+              )
+            ];
+          }
+        }
       ),
     // jsx 璇硶 锛堟敞鎰忓湪.vue鏂囦欢鍚敤jsx璇硶锛岄渶瑕佸湪script寮�鍚痩ang="tsx"锛�
     closeCallBack: ({ options, args }) => {

--
Gitblit v1.9.1