优化表格打印
This commit is contained in:
		
							parent
							
								
									0f1843cde5
								
							
						
					
					
						commit
						eab8db4a81
					
				@ -17,14 +17,14 @@
 | 
			
		||||
          <col style="width: 4%" />
 | 
			
		||||
          <col style="width: 9%" />
 | 
			
		||||
          <col style="width: 7.5%" />
 | 
			
		||||
          <col style="width: 15%" />
 | 
			
		||||
          <col style="width: 19%" />
 | 
			
		||||
          <col style="width: 5.5%" />
 | 
			
		||||
          <col style="width: 14%" />
 | 
			
		||||
          <col style="width: 12%" />
 | 
			
		||||
          <col style="width: 6%" />
 | 
			
		||||
          <col style="width: 13.5%" />
 | 
			
		||||
          <col style="width: 12.5%" />
 | 
			
		||||
          <col style="width: 5%" />
 | 
			
		||||
          <col style="width: 5%" />
 | 
			
		||||
          <col style="width: 7%" />
 | 
			
		||||
          <col style="width: 6%" />
 | 
			
		||||
          <col style="width: 8.5%" />
 | 
			
		||||
        </colgroup>
 | 
			
		||||
        <thead>
 | 
			
		||||
@ -177,6 +177,7 @@ const onPrint = () => {
 | 
			
		||||
      .print-wrap { 
 | 
			
		||||
        width: 222mm; 
 | 
			
		||||
        height: 118mm; /* 130mm - 12mm上下边距 */
 | 
			
		||||
        transform: translateX(-6mm);
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      .header.header-grid {
 | 
			
		||||
 | 
			
		||||
@ -54,7 +54,7 @@
 | 
			
		||||
 | 
			
		||||
    <!-- 列表 -->
 | 
			
		||||
    <ContentWrap>
 | 
			
		||||
      <el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true" class="hl-table">
 | 
			
		||||
      <el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true" class="hl-table" highlight-current-row>
 | 
			
		||||
        <el-table-column fixed type="index" width="70" label="序号" align="center" />
 | 
			
		||||
        <el-table-column fixed label="零件名称" align="center" prop="materialName" width="180" />
 | 
			
		||||
        <el-table-column label="材质" align="center" prop="compositionName" width="80px" />
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user