From c054516a38a2613a4e7399ba62694fbd99a606fe Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期五, 06 一月 2023 09:10:09 +0800
Subject: [PATCH] 1.组织架构表格拖动实现demo

---
 src/views/jcsz/wldw.vue |   19 ++++++++++++++-----
 1 files changed, 14 insertions(+), 5 deletions(-)

diff --git a/src/views/jcsz/wldw.vue b/src/views/jcsz/wldw.vue
index 31b1ed2..5892f65 100644
--- a/src/views/jcsz/wldw.vue
+++ b/src/views/jcsz/wldw.vue
@@ -20,10 +20,10 @@
           :model="form"
           label-width="100px"
           inline
-          style="display: flex;justify-content: space-between"
+          style="display: flex;"
         >
           <div class="elForm">
-            <el-form-item label-width="70px" label="鍗曚綅缂栫爜" style=" display: flex;">
+            <el-form-item label="鍗曚綅缂栫爜" style=" display: flex;">
               <el-input v-model="form.CuntUnitCode" placeholder="璇疯緭鍏�" style="width: 200px" />
             </el-form-item>
             <el-form-item label="鍗曚綅鍚嶇О" style=" display: flex;">
@@ -49,7 +49,10 @@
               <el-input v-model="form.CreateUser" style="width: 200px" placeholder="璇疯緭鍏�" />
             </el-form-item>
           </div>
-          <div class="bodySearchReset" :style="{marginLeft:$store.state.app.sidebar.opened?'5%':'10%'}">
+          <div
+            class="bodySearchReset"
+            :style="{marginLeft:$store.state.app.sidebar.opened? $store.state.settings.menuIsHorizontal?'15%':'3%':'10%'}"
+          >
             <el-button type="primary" icon="el-icon-search" @click="search">鏌ヨ</el-button>
             <el-button type="info" icon="el-icon-refresh" @click="reset">閲嶇疆</el-button>
           </div>
@@ -86,6 +89,7 @@
           <el-table-column
             prop="code"
             label="鍗曚綅缂栫爜"
+            show-tooltip-when-overflow
             sortable="custom"
             min-width="110"
           />
@@ -98,6 +102,7 @@
           />
           <el-table-column
             label="鍗曚綅灞炴��"
+            show-tooltip-when-overflow
             width="240"
           >
             <!--            sortable="custom"-->
@@ -140,6 +145,7 @@
             prop="conttacts"
             label="鑱旂郴浜�"
             width="110"
+            show-tooltip-when-overflow
             sortable="custom"
           >
             <template slot-scope="{row}">
@@ -150,6 +156,7 @@
           <el-table-column
             prop="conttphone"
             label="鑱旂郴鏂瑰紡"
+            show-tooltip-when-overflow
             width="160"
             sortable="custom"
           >
@@ -174,6 +181,7 @@
             prop="lm_user"
             label="鍒涘缓浜哄憳"
             width="110"
+            show-tooltip-when-overflow
             sortable="custom"
           />
           <el-table-column
@@ -181,6 +189,7 @@
             label="鍒涘缓鏃堕棿"
             sortable="custom"
             width="160"
+            show-tooltip-when-overflow
           />
           <el-table-column
             label="鎿嶄綔"
@@ -190,10 +199,10 @@
             <template slot-scope="{row}">
               <div class="operationClass">
                 <el-tooltip class="item" effect="dark" content="缂栬緫" placement="top">
-                  <i class="el-icon-edit-outline" @click="edit('edit',row)" />
+                  <i :style="{color:$store.state.settings.theme}" class="el-icon-edit-outline" @click="edit('edit',row)" />
                 </el-tooltip>
                 <el-tooltip v-del-tab-index class="item" effect="dark" content="鍒犻櫎" placement="top">
-                  <i class="el-icon-delete" @click="del(row)" />
+                  <i :style="{color:$store.state.settings.theme}" class="el-icon-delete" @click="del(row)" />
                 </el-tooltip>
               </div>
             </template>

--
Gitblit v1.9.3