|
@@ -31,7 +31,36 @@
|
|
</el-col>
|
|
</el-col>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="24" class="printList" ref="print">
|
|
<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="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="75px" align="center" label="性别" prop="gender"></el-table-column>
|
|
<el-table-column width="140px" align="center" label="民族" prop="nation"></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="classname"></el-table-column>
|
|
<el-table-column width="100px" align="center" label="寝室" prop="bedroom"></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-column width="150px" align="center" label="签名"></el-table-column>
|
|
- </el-table>
|
|
|
|
|
|
+ </el-table> -->
|
|
</el-col>
|
|
</el-col>
|
|
</span>
|
|
</span>
|
|
</el-row>
|
|
</el-row>
|
|
@@ -84,17 +113,32 @@ export default {
|
|
<style lang="less" scoped>
|
|
<style lang="less" scoped>
|
|
.printList {
|
|
.printList {
|
|
width: 1050px;
|
|
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>
|
|
</style>
|