bdglweekwork.vue 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. <template>
  2. <div>
  3. <el-button class="box1" @click="daochu">导出</el-button>
  4. <div id="contents">
  5. <p
  6. style="
  7. text-align: center;
  8. margin-top: 10px;
  9. font-size: 16px;
  10. font-weight: 600;
  11. color: black;
  12. font-family: 'heiti'
  13. "
  14. id="qTitle"
  15. >
  16. 周工作安排表
  17. </p>
  18. <!-- <div style="width: 100%; height: 30px; margin-top: 10px; color: black">
  19. <span style="margin-left: 5%"
  20. >连值班领导:{{ message.peopleName }} &nbsp;</span
  21. >
  22. <span style="margin-left: 25%">电话:{{ message.phone }} &nbsp; </span>
  23. <span style="margin-left: 20%" id="qtime"
  24. >{{ message.startTime }}———{{ message.endTime }}</span
  25. >
  26. </div> -->
  27. <table
  28. border="1"
  29. style="
  30. border-collapse: collapse;
  31. border: none;
  32. mso-border-left-alt: 0.5pt solid windowtext;
  33. mso-border-top-alt: 0.5pt solid windowtext;
  34. mso-border-right-alt: 0.5pt solid windowtext;
  35. mso-border-bottom-alt: 0.5pt solid windowtext;
  36. mso-border-insideh: 0.5pt solid windowtext;
  37. mso-border-insidev: 0.5pt solid windowtext;
  38. mso-padding-alt: 0pt 0pt 0pt 0pt;
  39. "
  40. width="960"
  41. align="center"
  42. bordercolor="black"
  43. >
  44. <tr
  45. class="JR_tr"
  46. style="
  47. border: none;
  48. color: black;
  49. font-size: 16px;font-weight: 500;
  50. line-height: 30px;
  51. width: 960px;
  52. font-family: 'kaiti'
  53. "
  54. >
  55. <td
  56. class="JR_left"
  57. colspan="3"
  58. align="left"
  59. style="border: none; line-height: 45px; width: 500px;"
  60. >
  61. 连值班领导:{{ message.peopleName }}
  62. </td>
  63. <td
  64. class="JR_left"
  65. colspan="2"
  66. align="left"
  67. style="border: none; line-height: 45px; width: 360px"
  68. >
  69. 电话:{{ message.phone }}
  70. </td>
  71. <td
  72. class="JR_left"
  73. colspan="3"
  74. align="left"
  75. style="border: none; line-height: 45px"
  76. >
  77. {{ message.startTime }}—{{ message.endTime }}
  78. </td>
  79. </tr>
  80. <tbody style="font-size: 16px;font-weight: 500;">
  81. <tr class="JR_tr" style="font-size: 16px;font-weight: 500;font-family: 'heiti'">
  82. <td align="center" valign="center" colspan="3" class="JR_left">
  83. <p align="center" style="font-family: 'heiti'">日期</p>
  84. </td>
  85. <td valign="center" class="JR_left">
  86. <p align="center" style="font-family: 'heiti'">内容</p>
  87. </td>
  88. <td valign="center" class="JR_left">
  89. <p align="center" style="font-family: 'heiti'">负责单位</p>
  90. </td>
  91. <td valign="center" class="JR_left">
  92. <p align="center" style="font-family: 'heiti'">参加人员</p>
  93. </td>
  94. <td valign="center" class="JR_left">
  95. <p align="center" style="font-family: 'heiti'">地点</p>
  96. </td>
  97. <td valign="center" class="JR_left">
  98. <p align="center" style="font-family: 'heiti'">时间</p>
  99. </td>
  100. </tr>
  101. <tr
  102. class="JR_tr"
  103. v-for="(item, i) in message.bdglWeekworkRegisterList"
  104. :key="i"
  105. style="text-align: center; height: 45px;font-family: 'fangsong'"
  106. >
  107. <td style="text-align: center" rowspan="1" class="JR_right">
  108. {{ item.week }}
  109. </td>
  110. <td style="text-align: center" rowspan="1" class="JR_right">
  111. {{ item.time }}
  112. </td>
  113. <td style="text-align: center" rowspan="1" class="JR_right">
  114. {{ item.dateline }}
  115. </td>
  116. <td style="text-align: center" rowspan="1" class="JR_right">
  117. {{ item.contents }}
  118. </td>
  119. <td style="text-align: center" rowspan="1" class="JR_right">
  120. {{ item.unitId1 }}
  121. </td>
  122. <td style="text-align: center" rowspan="1" class="JR_right">
  123. {{ item.peopleIds }}
  124. </td>
  125. <td style="text-align: center" rowspan="1" class="JR_right">
  126. {{ item.address }}
  127. </td>
  128. <td style="text-align: center" rowspan="1" class="JR_right">
  129. {{ item.startTime }}—{{ item.endTime }}
  130. </td>
  131. </tr>
  132. <tr class="JR_tr">
  133. <td valign="center" class="JR_left" style="font-family: 'songti'">
  134. <p align="center">备注</p>
  135. </td>
  136. <td valign="center" colspan="7" class="JR_right" style="font-family: 'fangsong'">
  137. {{ message.remark }}
  138. </td>
  139. </tr>
  140. </tbody>
  141. <tr
  142. style="
  143. border: none;
  144. color: black;
  145. font-size: 16px;font-weight: 500;
  146. line-height: 30px;
  147. width: 960px;
  148. font-family: 'fangsong'
  149. "
  150. >
  151. <td
  152. class="JR_left"
  153. colspan="3"
  154. align="left"
  155. style="border: none; line-height: 45px; width: 360px;font-family: 'fangsong'"
  156. >
  157. 军事主官:{{ message.people1Name }}
  158. </td>
  159. <td
  160. colspan="1"
  161. style="border: none; line-height: 45px; width: 360px;font-family: 'fangsong'"
  162. ></td>
  163. <td
  164. class="JR_left"
  165. colspan="3"
  166. align="left"
  167. style="border: none; line-height: 45px; width: 360px;font-family: 'fangsong'"
  168. >
  169. 政治主官:{{ message.people2Name }}
  170. </td>
  171. <td
  172. class="JR_left"
  173. colspan="3"
  174. align="left"
  175. style="border: none; line-height: 45px;font-family: 'fangsong'"
  176. >
  177. 时间:
  178. </td>
  179. </tr>
  180. </table>
  181. </div>
  182. </div>
  183. </template>
  184. <script>
  185. //引入lookWord
  186. import { lookWord } from "@/utils/look_word.js";
  187. import "@/utils/lodJs.js";
  188. export default {
  189. name: "bdgleven",
  190. props: ["message"],
  191. data() {
  192. return {
  193. title: "周工作安排表",
  194. style:
  195. ".JR_tr {height: 40px;};.JR_left{text-align:center;font-size: 1.331em; font-family: '楷体_GB2312';};.JR_right{ font-size: 1.331em; font-family: 仿宋_GB2312;};.JR_bottom{border-left:0; font-size: 1.331em; font-family: 仿宋_GB2312; text-align: right}",
  196. };
  197. },
  198. methods: {
  199. daochu() {
  200. lookWord(this.title, "#contents", this.style, true);
  201. },
  202. },
  203. };
  204. </script>
  205. <style scoped>
  206. tbody {
  207. color: #fff;
  208. text-align: center;
  209. }
  210. tr:last-child {
  211. border-bottom: 1px solid;
  212. }
  213. .box1 {
  214. position: absolute;
  215. right: 30px;
  216. top: 80px;
  217. border: 1px solid rgb(129, 130, 131);
  218. border-radius: 5px;
  219. }
  220. </style>