From 9057e04efad1b7d61c77a72e5c37a504d0aee935 Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期五, 26 九月 2025 09:24:03 +0800
Subject: [PATCH] H5静态化

---
 admin/src/components/system/user/RoleConfigWindow.vue |   53 +++++++++++++----------------------------------------
 1 files changed, 13 insertions(+), 40 deletions(-)

diff --git a/admin/src/components/system/user/RoleConfigWindow.vue b/admin/src/components/system/user/RoleConfigWindow.vue
index fa1461f..96cf087 100644
--- a/admin/src/components/system/user/RoleConfigWindow.vue
+++ b/admin/src/components/system/user/RoleConfigWindow.vue
@@ -2,16 +2,13 @@
   <GlobalWindow
     :visible.sync="visible"
     :confirm-working="isWorking"
-    width="620px"
+    width="582px"
     title="閰嶇疆鐢ㄦ埛瑙掕壊"
     @confirm="confirm"
   >
     <p class="tip" v-if="user != null">涓虹敤鎴� <em>{{user.realname}}</em> 閰嶇疆瑙掕壊</p>
-    <p class="tip-warn"><i class="el-icon-warning"></i>鎻愰啋锛氳鑹查厤缃悗闇�閲嶆柊鐧诲綍鍚庣敓鏁�</p>
-    <div class="df_center">
-      <el-transfer
+    <el-transfer
       v-model="selectedIds"
-      class="transfer"
       :titles="['鏈巿鏉冭鑹�', '宸叉巿鏉冭鑹�']"
       :props="{
         key: 'id',
@@ -19,7 +16,6 @@
       }"
       :data="roles">
     </el-transfer>
-    </div>
   </GlobalWindow>
 </template>
 
@@ -45,6 +41,11 @@
     }
   },
   methods: {
+    /**
+     * 鎵撳紑绐楀彛
+     *
+     * @param user 鐩爣鐢ㄦ埛
+     */
     open (user) {
       fetchAllRoles()
         .then(records => {
@@ -73,7 +74,9 @@
           this.$tip.apiFailed(e)
         })
     },
-    // 纭閫夋嫨瑙掕壊
+    /**
+     * 纭閫夋嫨瑙掕壊
+     */
     confirm () {
       if (this.isWorking) {
         return
@@ -84,9 +87,11 @@
         roleIds: this.selectedIds
       })
         .then(() => {
-          this.$tip.apiSuccess('瑙掕壊閰嶇疆鎴愬姛锛岀敤鎴烽噸鏂扮櫥褰曞悗鐢熸晥')
           this.visible = false
           this.$emit('success')
+          setTimeout(() => {
+            this.$dialog.attentionConfirm('瑙掕壊閰嶇疆鎴愬姛锛岀敤鎴烽渶閲嶆柊鐧诲綍鍚庣敓鏁�').then(() => {})
+          }, 300)
         })
         .catch(e => {
           this.$tip.apiFailed(e)
@@ -113,38 +118,6 @@
       color: $primary-color;
       font-weight: bold;
     }
-  }
-  .tip-warn {
-    margin: 4px 0 12px 0;
-    font-size: 12px;
-    color: #999;
-    i {
-      color: orange;
-      margin-right: 4px;
-      font-size: 14px;
-      position: relative;
-      top: 1px;
-    }
-  }
-}
-.transfer {
-  height: 600px;
-  width: 100%;
-  display: flex;
-  justify-content: center;
-  align-items: center;
-
-  ::v-deep .el-transfer-panel {
-    flex: 1;
-    height: 100%;
-  }
-
-  ::v-deep .el-transfer-panel__body {
-    height: 500px;
-  }
-
-  ::v-deep .el-transfer-panel__list.is-filterable {
-    height: 480px;
   }
 }
 </style>

--
Gitblit v1.9.3