teacherPrint.vue 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. <template>
  2. <div id="teacherPrint">
  3. <el-row>
  4. <el-col :span="24">
  5. <el-col :span="24" class="btn">
  6. <el-button type="primary" size="mini" @click="toPrint()">打印</el-button>
  7. </el-col>
  8. <el-col :span="24" class="list" ref="print">
  9. <el-col :span="24" class="teacherList" v-for="(item, index) in teacherList" :key="index">
  10. <el-col :span="24" class="top">
  11. <el-col :span="18" class="left">
  12. <el-col :span="6" class="border">
  13. 姓名
  14. </el-col>
  15. <el-col :span="6" class="border">
  16. {{ item.name }}
  17. </el-col>
  18. <el-col :span="6" class="border">
  19. 性别
  20. </el-col>
  21. <el-col :span="6" class="border">
  22. {{ item.gender }}
  23. </el-col>
  24. <el-col :span="6" class="border">
  25. 民族
  26. </el-col>
  27. <el-col :span="6" class="border">
  28. {{ item.nation }}
  29. </el-col>
  30. <el-col :span="6" class="border">
  31. 政治面貌
  32. </el-col>
  33. <el-col :span="6" class="border">
  34. {{ item.politics }}
  35. </el-col>
  36. <el-col :span="6" class="border">
  37. 工作单位
  38. </el-col>
  39. <el-col :span="18" class="border">
  40. {{ item.jobaddress }}
  41. </el-col>
  42. <el-col :span="6" class="border">
  43. 所在部门
  44. </el-col>
  45. <el-col :span="6" class="border">
  46. {{ item.department }}
  47. </el-col>
  48. <el-col :span="6" class="border">
  49. 职称
  50. </el-col>
  51. <el-col :span="6" class="border">
  52. {{ item.protitle }}
  53. </el-col>
  54. <el-col :span="6" class="border">
  55. 职务
  56. </el-col>
  57. <el-col :span="6" class="border">
  58. {{ item.job }}
  59. </el-col>
  60. <el-col :span="6" class="border">
  61. 最后学历
  62. </el-col>
  63. <el-col :span="6" class="border">
  64. {{ item.education }}
  65. </el-col>
  66. </el-col>
  67. <el-col :span="6" class="right"> </el-col>
  68. </el-col>
  69. <el-col :span="24" class="center">
  70. <el-col :span="6" class="border" style="width: 157.5px;">
  71. 最后学位
  72. </el-col>
  73. <el-col :span="6" class="border" style="width: 157.5px;">
  74. {{ item.degree }}
  75. </el-col>
  76. <el-col :span="6" class="border" style="width: 157.5px;">
  77. QQ号
  78. </el-col>
  79. <el-col :span="6" class="border" style="width: 367.5px;">
  80. {{ item.qq }}
  81. </el-col>
  82. <el-col :span="6" class="border" style="width: 157.5px;">
  83. 固定电话
  84. </el-col>
  85. <el-col :span="6" class="border" style="width: 157.5px;">
  86. {{ item.mobile }}
  87. </el-col>
  88. <el-col :span="6" class="border" style="width: 157.5px;">
  89. 手机
  90. </el-col>
  91. <el-col :span="6" class="border" style="width: 367.5px;">
  92. {{ item.phone }}
  93. </el-col>
  94. <el-col :span="6" class="border" style="width: 157.5px;">
  95. 身份证号
  96. </el-col>
  97. <el-col :span="18" class="border" style="width: 682.5px;">
  98. {{ item.idnumber }}
  99. </el-col>
  100. </el-col>
  101. <el-col :span="24" style="text-align:center;font-weight:bold;border:1px solid #000;height:50px;line-height:50px;">
  102. 教师能够承担的培训课程模块及需要使用教具,设备情况
  103. </el-col>
  104. <el-col :span="24" class="down">
  105. <el-col :span="6" class="left">
  106. 课程模块
  107. </el-col>
  108. <el-col :span="18" class="right">
  109. {{ item.course }}
  110. </el-col>
  111. <el-col :span="6" class="left">
  112. 与人合作
  113. </el-col>
  114. <el-col :span="18" class="right">
  115. {{ item.withpersonal }}
  116. </el-col>
  117. <el-col :span="6" class="left">
  118. 职业探索
  119. </el-col>
  120. <el-col :span="18" class="right">
  121. {{ item.career }}
  122. </el-col>
  123. <el-col :span="6" class="left">
  124. 面试训练
  125. </el-col>
  126. <el-col :span="18" class="right">
  127. {{ item.training }}
  128. </el-col>
  129. <el-col :span="6" class="left" style="height:217px;line-height:217px;"> </el-col>
  130. <el-col :span="18" class="right" style="height:217px;"> </el-col>
  131. </el-col>
  132. </el-col>
  133. </el-col>
  134. </el-col>
  135. </el-row>
  136. </div>
  137. </template>
  138. <script>
  139. import { mapState, createNamespacedHelpers } from 'vuex';
  140. export default {
  141. metaInfo: { title: 'teacherPrint' },
  142. name: 'teacherPrint',
  143. props: { teacherList: { type: Array } },
  144. components: {},
  145. data: function() {
  146. return {};
  147. },
  148. created() {},
  149. methods: {
  150. toPrint() {
  151. this.$print(this.$refs.print);
  152. },
  153. },
  154. computed: {
  155. ...mapState(['user']),
  156. },
  157. };
  158. </script>
  159. <style lang="less" scoped>
  160. .btn {
  161. margin: 10px 0;
  162. }
  163. .list {
  164. .teacherList {
  165. width: 842px;
  166. height: 1228px;
  167. border: 1px solid #000;
  168. .top {
  169. .left {
  170. .border {
  171. border: 1px solid #000;
  172. height: 50px;
  173. line-height: 50px;
  174. padding: 0 0 0 10px;
  175. }
  176. }
  177. .right {
  178. height: 250px;
  179. border: 1px solid #000;
  180. }
  181. }
  182. .center {
  183. .border {
  184. border: 1px solid #000;
  185. height: 50px;
  186. line-height: 50px;
  187. padding: 0 0 0 10px;
  188. }
  189. }
  190. .down {
  191. .left {
  192. border: 1px solid #000;
  193. width: 157px;
  194. height: 140px;
  195. line-height: 140px;
  196. text-align: center;
  197. }
  198. .right {
  199. border: 1px solid #000;
  200. width: 683px;
  201. height: 140px;
  202. padding: 10px 0 0 15px;
  203. overflow: hidden;
  204. text-overflow: ellipsis;
  205. -webkit-line-clamp: 6;
  206. word-break: break-all;
  207. display: -webkit-box;
  208. -webkit-box-orient: vertical;
  209. }
  210. }
  211. }
  212. }
  213. </style>