bdglweekwork.vue 6.9 KB

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