From 17efddc6a667670dca682bf36b51a43e99615e6d Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期三, 16 十月 2024 15:59:38 +0800
Subject: [PATCH] 代码初始化

---
 admin/src/components/business/OperaDeviceRoleWindow.vue |   34 ++++++++++++++++++++++++++--------
 1 files changed, 26 insertions(+), 8 deletions(-)

diff --git a/admin/src/components/business/OperaDeviceRoleWindow.vue b/admin/src/components/business/OperaDeviceRoleWindow.vue
index 211f896..84844fb 100644
--- a/admin/src/components/business/OperaDeviceRoleWindow.vue
+++ b/admin/src/components/business/OperaDeviceRoleWindow.vue
@@ -2,7 +2,7 @@
     <GlobalWindow
         :title="title"
         :visible.sync="visible"
-        width="900px"
+        width="1000px"
         :confirm-working="isWorking"
         @confirm="confirm"
     >
@@ -32,6 +32,7 @@
                     :filter-method="filterMethod"
                     filter-placeholder="璇疯緭鍏ラ棬绂佺偣鎴栧尯鍩熷悕绉�"
                     v-model="form.doorIds"
+                    class="transfer"
                     :data="device">
                 </el-transfer>
             </el-form-item>
@@ -119,7 +120,7 @@
               this.$emit('success')
             })
             .catch(e => {
-              this.$tip.apiFailed(e)
+              // this.$tip.apiFailed(e)
             })
             .finally(() => {
               this.isWorking = false
@@ -148,7 +149,7 @@
               this.$emit('success')
             })
             .catch(e => {
-              this.$tip.apiFailed(e)
+              // this.$tip.apiFailed(e)
             })
             .finally(() => {
               this.isWorking = false
@@ -158,7 +159,7 @@
     },
     // 鑾峰彇璁惧
     getLists () {
-      getList({})
+      getList({type:0, isdeleted:0 })
         .then(res => {
           this.device = res.map(item => {
             return {
@@ -196,8 +197,25 @@
 }
 </script>
 
-<style>
-    .el-transfer-panel {
-        width: 350px !important;
-    }
+<style lang="scss" scoped>
+.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