mushencc vor 3 Jahren
Ursprung
Commit
856f0ce301
2 geänderte Dateien mit 14 neuen und 8 gelöschten Zeilen
  1. 1 2
      src/routerMap/index.js
  2. 13 6
      src/views/OrderMannage/BusinessOrderlist/printlist.vue

+ 1 - 2
src/routerMap/index.js

@@ -395,8 +395,7 @@ const routerMap = [{
         path: '/cms/ordermannage/businessorderlist/printlist',
         name: 'BusinessPrintList', //订单管理-->家装订单-->列表-->详情-->打印列表
         meta: {
-            index: 4,
-            keepAlive: true
+            index: 4
         },
         component: (resolve) =>
             require(['@/views/OrderMannage/BusinessOrderlist/printlist'], resolve),

+ 13 - 6
src/views/OrderMannage/BusinessOrderlist/printlist.vue

@@ -1,15 +1,16 @@
 <template>
     <div class="printcontent"> 
           <div class="table-box">
-        <button @click="PrintRow">打印</button>
+        <Button @click="PrintRow" type="primary" ghost>打印</Button>
+        <Button @click="back" type="primary" ghost style="right:110px">返回</Button>
         <div id="show-table" >
             <table cellspacing="0" cellpadding="0">
                 <thead>
                 <tr>
                     <td colspan="23" style="border: 0;">
                         <div class="table-header">
-                            <img class="left-img" :src="$store.state.ip + showTable.logo" alt="">
-                            <h1 class="table-title">{{showTable.title}}</h1><img class="right-img1" :src='$store.state.ip + showTable.right_logo1' alt=""><img class="right-img2" :src='$store.state.ip + showTable.right_logo2' alt="">
+                            <img class="left-img" :src="$store.state.ip + showTable.logo" alt="" v-show="showTable.logo?true:false">
+                            <h1 class="table-title">{{showTable.title}}</h1><img class="right-img1" :src='$store.state.ip + showTable.right_logo1' alt="" v-show="showTable.right_logo1?true:false"><img class="right-img2" :src='$store.state.ip + showTable.right_logo2' alt="" v-show="showTable.right_logo2?true:false">
                         </div>
                     </td>
                 </tr>
@@ -182,8 +183,8 @@
                 <tr>
                     <td colspan="23" style="border: 0;">
                         <div class="table-header">
-                            <img class="left-img" :src='showTable.logo' alt="">
-                            <h1 class="table-title">{{showTable.title}}</h1><img class="right-img1" :src='showTable.right_logo1' alt=""><img class="right-img2" :src='showTable.right_logo2' alt="">
+                            <img class="left-img" :src='showTable.logo' alt="" v-show="showTable.logo?true:false">
+                            <h1 class="table-title">{{showTable.title}}</h1><img class="right-img1" :src='showTable.right_logo1' alt="" v-show="showTable.right_logo1?true:false"><img class="right-img2" :src='showTable.right_logo2' alt="" v-show="showTable.right_logo2?true:false">
                         </div>
                     </td>
                 </tr>
@@ -382,6 +383,9 @@ export default {
         });
     },
     methods:{
+        back(){
+             this.$router.go(-1)
+        },
                 //打印
         PrintRow(index, row){
             this.$print(this.$refs.print) // 使用
@@ -487,7 +491,7 @@ export default {
     }
 
     .table-box {
-        padding: 0 20px;
+        padding: 0;
         width: 1000px;
         margin: 0 auto;
         margin-top: 40px;
@@ -503,6 +507,9 @@ export default {
         overflow: hidden;
         height: 0px;
     }
+    #show-table {
+        padding: 15px;
+    }
     .print-table{
         display: none;
     }