guhongwei 4 年之前
父節點
當前提交
6ce15983be
共有 1 個文件被更改,包括 57 次插入13 次删除
  1. 57 13
      parts/print/print-sign.vue

+ 57 - 13
parts/print/print-sign.vue

@@ -31,7 +31,36 @@
           </el-col>
         </el-col>
         <el-col :span="24" class="printList" ref="print">
-          <el-table :data="list" border style="width: 100%">
+          <table border="1">
+            <tr>
+              <th>姓名</th>
+              <th>性别</th>
+              <th>民族</th>
+              <th>身份证号</th>
+              <th>学校</th>
+              <th>专业</th>
+              <th>入学年份</th>
+              <th>手机号</th>
+              <th>班级</th>
+              <th>寝室</th>
+              <th>签名</th>
+            </tr>
+            <tr v-for="(item, index) in list" :key="index">
+              <td>{{ item.name }}</td>
+              <td>{{ item.gender }}</td>
+              <td>{{ item.nation }}</td>
+              <td>{{ item.id_number }}</td>
+              <td>{{ item.school_name }}</td>
+              <td>{{ item.major }}</td>
+              <td>{{ item.entry_year }}</td>
+              <td>{{ item.phone }}</td>
+              <td>{{ item.classname }}</td>
+              <td>{{ item.bedroom }}</td>
+              <td width="70px"></td>
+            </tr>
+          </table>
+
+          <!-- <el-table :data="list" border style="width: 100%">
             <el-table-column width="260px" align="center" label="姓名" prop="name"></el-table-column>
             <el-table-column width="75px" align="center" label="性别" prop="gender"></el-table-column>
             <el-table-column width="140px" align="center" label="民族" prop="nation"></el-table-column>
@@ -43,7 +72,7 @@
             <el-table-column width="100px" align="center" label="班级" prop="classname"></el-table-column>
             <el-table-column width="100px" align="center" label="寝室" prop="bedroom"></el-table-column>
             <el-table-column width="150px" align="center" label="签名"></el-table-column>
-          </el-table>
+          </el-table> -->
         </el-col>
       </span>
     </el-row>
@@ -84,17 +113,32 @@ export default {
 <style lang="less" scoped>
 .printList {
   width: 1050px;
-  // height: 719px;
-  border: 1px solid #ccc;
-  /deep/.el-table {
-    font-size: 10px;
-    zoom: 0.5;
-  }
-  /deep/.el-table td {
-    height: 57px;
-  }
-  /deep/.el-table th {
-    height: 40px;
+  height: 719px;
+  table {
+    border-collapse: collapse;
+    tr {
+      th {
+        text-align: center;
+        // padding: 8px 0;
+        height: 36.4px;
+      }
+      td {
+        text-align: center;
+        height: 31px;
+      }
+    }
   }
+  // height: 719px;
+  // border: 1px solid #ccc;
+  // /deep/.el-table {
+  //   font-size: 10px;
+  //   zoom: 0.5;
+  // }
+  // /deep/.el-table td {
+  //   height: 57px;
+  // }
+  // /deep/.el-table th {
+  //   height: 40px;
+  // }
 }
 </style>