From 69341e762daf9450dafdc87749813ed801cc50c3 Mon Sep 17 00:00:00 2001
From: yangfeng <wanwan926_4@163.com>
Date: 星期三, 18 十月 2023 15:53:03 +0800
Subject: [PATCH] 列表公共组件样式修改

---
 src/views/warehouseManage/listingRules/index.vue |   10 +++++-----
 src/components/makepager/CommonFormTableView.vue |   42 +++++++++++++-----------------------------
 src/views/operate/inventoryAdjustment/index.vue  |    2 +-
 3 files changed, 19 insertions(+), 35 deletions(-)

diff --git a/src/components/makepager/CommonFormTableView.vue b/src/components/makepager/CommonFormTableView.vue
index 01f181d..6644d38 100644
--- a/src/components/makepager/CommonFormTableView.vue
+++ b/src/components/makepager/CommonFormTableView.vue
@@ -9,7 +9,9 @@
     >
       <el-table
         :data="tableList.tableData"
+        border
         style="width: 100%"
+        :height="'calc(100% - 0px)'"
         :class="{ setHeight: isinventory || islistingrules }"
         :header-cell-style="{ background: '#f1f3f8', color: '#000009' }"
         :row-class-name="tableRowClassName"
@@ -552,9 +554,12 @@
     .custom-name {
       display: flex;
       justify-content: center;
+      font-size: 12px;
+      line-height: 17px;
+      font-family: PingFangSC;
       .common-select-btn {
         margin-left: 5px;
-        font-size: 18px;
+        font-size: 13px;
         cursor: pointer;
       }
     }
@@ -564,21 +569,22 @@
   .el-form-item__label {
     display: none;
   }
+  .el-form-item__content {
+    // height: 28px; /* 璁剧疆楂樺害 */
+    line-height: 22px; /* 璁剧疆琛岄珮 */
+  }
   .el-table__footer-wrapper tbody td.el-table__cell {
     background-color: #fff;
     // text-align: right;
     font-weight: bold;
   }
-  .el-input--suffix .el-input__inner {
-    padding-right: 0px;
-  }
   .el-table .cell,
   .el-table th.el-table__cell > .cell {
     padding: 0 5px;
   }
-  .el-input__inner {
-    text-align: left;
-  }
+  // .el-input__inner {
+  //   text-align: left;
+  // }
 }
 
 ::v-deep .el-table .cell {
@@ -596,27 +602,5 @@
   padding: 6px 0 !important;
   height: 35px;
   text-align: center;
-}
-
-::v-deep {
-  .el-table .cell .el-button--text.el-button--small {
-    padding: 4px 0;
-  }
-}
-
-::v-deep .el-table .el-table__cell {
-  padding: 6px 0 !important;
-  height: 35px;
-  text-align: center;
-}
-
-.overSpread1 {
-  width: 100%;
-  height: 100%;
-  position: fixed;
-  top: 0;
-  left: 0;
-  background: rgba(0, 0, 0, 0);
-  z-index: 10;
 }
 </style>
diff --git a/src/views/operate/inventoryAdjustment/index.vue b/src/views/operate/inventoryAdjustment/index.vue
index d4839c6..b77caea 100644
--- a/src/views/operate/inventoryAdjustment/index.vue
+++ b/src/views/operate/inventoryAdjustment/index.vue
@@ -25,7 +25,7 @@
           @tableRowClick="tableRowClick"
         >
           <template slot="tableButton">
-            <el-table-column label="鎿嶄綔" width="180" fixed="right" align="center">
+            <el-table-column label="鎿嶄綔" width="180" align="center">
               <template slot-scope="scope">
                 <span v-if="scope.row.isEdit" @click.stop="handleHistoryClick(scope.row)" class="yes-cursor">
                   <i class="el-icon-refresh-left"></i>
diff --git a/src/views/warehouseManage/listingRules/index.vue b/src/views/warehouseManage/listingRules/index.vue
index f523377..4f68893 100644
--- a/src/views/warehouseManage/listingRules/index.vue
+++ b/src/views/warehouseManage/listingRules/index.vue
@@ -23,11 +23,11 @@
           @selProductClick="selProductClick"
         >
           <template slot="tableButton">
-            <el-table-column label="鎿嶄綔" width="90" fixed="right" align="center">
+            <el-table-column label="鎿嶄綔" width="90" align="center">
               <template slot-scope="scope">
-                <el-button v-if="scope.row.isEdit" @click.stop="delClick(scope)" type="text" size="small"
-                  >鍒犻櫎</el-button
-                >
+                <span v-if="scope.row.isEdit" @click.stop="delClick(scope)" class="yes-cursor">
+                  <span style="color: #2a78fb">鍒犻櫎</span>
+                </span>
               </template>
             </el-table-column>
           </template>
@@ -201,9 +201,9 @@
           }).then((res) => {
             console.log(res)
             if (res.code === 200) {
+              this.getData()
               let tipStr = this.currentRowId === 0 ? "娣诲姞鎴愬姛" : "淇敼鎴愬姛"
               this.$message.success(tipStr)
-              this.getData()
             }
           })
         }

--
Gitblit v1.8.0