From b58dc818feacbfc6bf01453b0db8ad3306c8d6dd Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期二, 20 十二月 2022 10:37:18 +0800
Subject: [PATCH] 1.table表新增show-tooltip-when-overflow属性

---
 src/views/zzmx/chda.vue |   27 ++++++++++++++++++++-------
 1 files changed, 20 insertions(+), 7 deletions(-)

diff --git a/src/views/zzmx/chda.vue b/src/views/zzmx/chda.vue
index a77a8cd..49db0b6 100644
--- a/src/views/zzmx/chda.vue
+++ b/src/views/zzmx/chda.vue
@@ -147,6 +147,7 @@
           />
           <el-table-column
             prop="partcode"
+            show-tooltip-when-overflow
             label="鐗╂枡缂栫爜"
             min-width="160"
             sortable="custom"
@@ -154,6 +155,7 @@
           <el-table-column
             prop="partname"
             min-width="160"
+            show-tooltip-when-overflow
             label="鐗╂枡鍚嶇О"
             sortable="custom"
           />
@@ -173,12 +175,14 @@
             prop="uom_name"
             label="鍗曚綅"
             width="75"
+            show-tooltip-when-overflow
             sortable="custom"
           />
           <el-table-column
             prop="stocktypename"
             label="瀛樿揣绫诲瀷"
             sortable="custom"
+            show-tooltip-when-overflow
             min-width="110"
           />
           <!--          <el-table-column-->
@@ -189,6 +193,7 @@
           <el-table-column
             prop="stck_name"
             label="浠撳簱鍚嶇О"
+            show-tooltip-when-overflow
             sortable="custom"
             min-width="110"
           >
@@ -201,6 +206,7 @@
             prop="maxqty"
             label="搴撳瓨涓婇檺"
             width="110"
+            show-tooltip-when-overflow
             sortable="custom"
           >
             <template slot-scope="{row}">
@@ -212,6 +218,7 @@
             prop="minqty"
             label="搴撳瓨涓嬮檺"
             width="110"
+            show-tooltip-when-overflow
             sortable="custom"
           >
             <template slot-scope="{row}">
@@ -221,6 +228,7 @@
           </el-table-column>
           <el-table-column
             prop="lm_user"
+            show-tooltip-when-overflow
             label="鍒涘缓浜哄憳"
             sortable="custom"
             width="110"
@@ -228,12 +236,14 @@
           <el-table-column
             prop="lm_date"
             label="鍒涘缓鏃堕棿"
+            show-tooltip-when-overflow
             sortable="custom"
             width="160"
           />
           <el-table-column
             label="宸ヨ壓璺嚎"
             width="80"
+            show-tooltip-when-overflow
             prop="proute_id"
           >
             <template slot-scope="{row}">
@@ -417,6 +427,7 @@
         />
         <el-table-column
           prop="code"
+          show-tooltip-when-overflow
           label="绫诲瀷缂栫爜"
           sortable="custom"
         >
@@ -428,6 +439,7 @@
         <el-table-column
           prop="name"
           label="绫诲瀷鍚嶇О"
+          show-tooltip-when-overflow
           sortable="custom"
         >
           <template slot-scope="{row}">
@@ -438,6 +450,7 @@
         <el-table-column
           prop="digdect"
           label="灏忔暟浣嶆暟"
+          show-tooltip-when-overflow
           sortable="custom"
         >
           <template slot-scope="{row}">
@@ -454,6 +467,7 @@
         <el-table-column
           prop="r_ule"
           label="鍙栨暣瑙勫垯"
+          show-tooltip-when-overflow
           sortable="custom"
         >
 
@@ -513,7 +527,7 @@
       title="鍏宠仈宸ヨ壓璺嚎"
       :visible.sync="dialogVisibleRoute"
       width="800px"
-      top="10vh"
+      top="5vh"
       :fullscreen="isIpad"
       class="dialogVisibleRoute"
       @closed="handleCloseRoute"
@@ -591,15 +605,18 @@
           />
           <el-table-column
             prop="stepcode"
+            show-tooltip-when-overflow
             label="宸ュ簭缂栫爜"
           />
           <el-table-column
             prop="stepname"
             label="宸ュ簭鍚嶇О"
+            show-tooltip-when-overflow
           />
           <el-table-column
             prop="enable"
             label="鍚敤鐘舵��"
+            show-tooltip-when-overflow
             fixed="right"
           >
             <template slot-scope="{row}">
@@ -958,10 +975,6 @@
     },
     // 瀵硅瘽妗嗙‘璁�
     dialogVisibleConfirm() {
-      if (this.defaultroute_codeArr.length > 0 && this.defaultroute_code === '') {
-        return this.$message.info('榛樿宸ヨ壓璺嚎涓嶈兘涓虹┖锛�')
-      }
-
       this.$refs.dialogForm.validate(valid => {
         if (valid) {
           this.$store.state.app.buttonIsDisabled = true
@@ -1071,8 +1084,8 @@
     },
     // 纭畾
     async routeDialogVisibleConfirm() {
-      const temp = this.dialogFormRoute.routeOperationArr.filter(item => item.isSelected2)
-      if (this.defaultroute_code === '' && temp.length > 0) {
+      console.log(this.defaultroute_code)
+      if (this.defaultroute_code === null || this.defaultroute_code === 'null') {
         return this.$message.info('榛樿宸ヨ壓璺嚎涓嶈兘涓虹┖锛�')
       }
 

--
Gitblit v1.9.3