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/xtsz/bmgz.vue |   30 ++++++++++++++++++++++--------
 1 files changed, 22 insertions(+), 8 deletions(-)

diff --git a/src/views/xtsz/bmgz.vue b/src/views/xtsz/bmgz.vue
index 7f78051..ab4c052 100644
--- a/src/views/xtsz/bmgz.vue
+++ b/src/views/xtsz/bmgz.vue
@@ -5,9 +5,9 @@
         <el-form
           ref="form"
           :model="form"
-          label-width="80px"
+          label-width="100px"
           inline
-          style="display: flex;justify-content: space-between"
+          style="display: flex;"
         >
           <div class="elForm">
             <el-form-item label="缂栫爜鍚嶇О" style=" display: flex;">
@@ -33,6 +33,9 @@
             <el-button type="info" icon="el-icon-refresh" @click="reset">閲嶇疆</el-button>
           </div>
         </el-form>
+        <div
+          class="bodyTopFormExpand"
+        />
       </div>
 
       <div style="margin-left: 10px;display: flex">
@@ -65,6 +68,7 @@
             fixed
           />
           <el-table-column
+            show-tooltip-when-overflow
             prop="right_code"
             label="缂栫爜"
             sortable="custom"
@@ -72,11 +76,19 @@
           <el-table-column
             prop="right_name"
             label="缂栫爜鍚嶇О"
+            show-tooltip-when-overflow
             sortable="custom"
+          />
+          <el-table-column
+            prop="Type"
+            label="绫诲瀷"
+            sortable="custom"
+            show-tooltip-when-overflow
           />
           <el-table-column
             prop="prefix"
             label="鍥哄畾瀛楃"
+            show-tooltip-when-overflow
             sortable="custom"
           >
             <template slot-scope="{row}">
@@ -86,7 +98,8 @@
           </el-table-column>
           <el-table-column
             prop="filingdate"
-            label="鎻愪氦鏃ユ湡"
+            label="缂栫爜鏍煎紡"
+            show-tooltip-when-overflow
             sortable="custom"
           >
             <template slot-scope="{row}">
@@ -96,6 +109,7 @@
           </el-table-column>
           <el-table-column
             prop="incbit"
+            show-tooltip-when-overflow
             label="鑷浣嶆暟"
             sortable="custom"
           >
@@ -112,7 +126,7 @@
             <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 class="el-icon-edit-outline" :style="{color:$store.state.settings.theme}" @click="edit('edit',row)" />
                 </el-tooltip>
                 <!--                <el-button type="text" @click="edit('edit',row)">缂栬緫</el-button>-->
                 <!--                <el-button type="text" @click="del(row)">鍒犻櫎</el-button>-->
@@ -134,7 +148,7 @@
     </div>
 
     <el-dialog
-      :title="operation==='add'?'鏂板':'缂栫爜鏍煎紡'"
+      :title="operation==='add'?'鏂板':'缂栬緫鏍煎紡'"
       :visible.sync="dialogVisible"
       width="50%"
       top="15vh"
@@ -147,7 +161,7 @@
         <el-form-item label="鍥哄畾瀛楃" prop="prefix">
           <el-input v-model="dialogForm.prefix" style="width: 220px" />
         </el-form-item>
-        <el-form-item prop="filingdate" label="鎻愪氦鏃ユ湡">
+        <el-form-item prop="filingdate" label="缂栫爜鏍煎紡">
           <el-select
             v-model="dialogForm.filingdate"
             style="width: 220px"
@@ -234,7 +248,7 @@
         rightcode: '', // 鍔熻兘缂栫爜
         rightname: '', // 鍔熻兘鍚嶇О
         prefix: '', // 鍥哄畾瀛楃
-        filingdate: '', // 鎻愪氦鏃ユ湡
+        filingdate: '', // 缂栫爜鏍煎紡
         incbit: '' // 鑷浣嶆暟
       },
       operation: '',
@@ -388,7 +402,7 @@
     getHeight() {
       this.$nextTick(() => {
         this.mainHeight = window.innerHeight - 85
-        this.tableHeight = this.mainHeight - 140
+        this.tableHeight = this.mainHeight - 135
         this.$refs.tableDataRef.doLayout()
       })
     }

--
Gitblit v1.9.3