@dongkboy 2 лет назад
Родитель
Сommit
1b6f58d9b1

+ 17 - 3
src/views/Core/components/quotationDialog.vue

@@ -169,7 +169,7 @@
           </template>
         </el-table-column>
       </el-table>
-      <el-table :data="jyProducts" stripe border :span-method="objectSpanMethod1"
+      <el-table v-if="jyProducts.length>0" :data="jyProducts" stripe border :span-method="objectSpanMethod1"
         :header-cell-style="{ background: '#D42426 ', fontWeight: '500', color: '#fff' }" style="width: 100%;margin-top:20px;">
         <el-table-column width="100" prop="label" align="center" label="驾意险名称">
         </el-table-column>
@@ -193,7 +193,7 @@
           </template>
         </el-table-column>
       </el-table>
-      <div class="tableInfo" style="margin-top:20px;">
+      <div class="tableInfo" style="margin-top:20px;" v-if="jyProducts.length>0">
         <el-descriptions direction="vertical" :column="5" border>
           <el-descriptions-item label="驾意险名称" label-class-name="my-label">{{ queryOrders.jyName }}</el-descriptions-item>
           <el-descriptions-item label="座位数" label-class-name="my-label">{{ queryOrders.carinfo.seatCount
@@ -465,7 +465,7 @@ export default {
   margin-bottom: 20px;
 
   .header {
-    background: #FFD6D7;
+    background: rgba(212,36,38,0.06);
     color: #000;
     font-size: 16px;
     font-weight: bold;
@@ -516,6 +516,20 @@ export default {
 }
 
 /deep/ {
+  .el-table td.el-table__cell,
+  .el-table th.el-table__cell.is-leaf {
+    border-bottom: 1px solid #000;
+  }
+
+  .el-table--border .el-table__cell,
+  .el-table__body-wrapper .el-table--border.is-scrolling-left~.el-table__fixed {
+    border-right: 1px solid #000;
+  }
+
+  .el-table--border,
+  .el-table--group {
+    border-top: 1px solid #000;
+  }
   .el-dialog__header {
     padding: 0;
 

+ 2 - 2
src/views/Core/components/quotationDialogPro.vue

@@ -166,7 +166,7 @@
             </template>
           </el-table-column>
         </el-table>
-        <el-table :data="jyProducts" stripe border :span-method="objectSpanMethod1"
+        <el-table :data="jyProducts" v-if="jyProducts.length>0" stripe border :span-method="objectSpanMethod1"
         :header-cell-style="{ background: 'rgba(45,77,137,0.1) ', fontWeight: 'bold', color: '#333333' }" style="width: 100%">
         <el-table-column width="100" prop="label" align="center" label="驾意险名称">
         </el-table-column>
@@ -190,7 +190,7 @@
           </template>
         </el-table-column>
       </el-table>
-        <div class="tableInfo">
+        <div class="tableInfo" v-if="jyProducts.length>0">
           <el-descriptions direction="vertical" :column="5" border>
             <el-descriptions-item label="驾意险名称" label-class-name="my-label">{{ queryOrders.jyName
             }}</el-descriptions-item>