bdglweekwork.vue 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  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: 16pt;
  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;
  51. font-weight: 500;
  52. line-height: 30px;
  53. width: 930px;
  54. font-family: 'kaiti';
  55. "
  56. >
  57. <td
  58. class="JR_left"
  59. colspan="3"
  60. align="left"
  61. style="border: none; line-height: 45px"
  62. >
  63. 连值班领导:{{ message.peopleName }}
  64. </td>
  65. <td
  66. class="JR_left"
  67. colspan="1"
  68. align="left"
  69. style="border: none; line-height: 45px; padding-left: 27px"
  70. >
  71. 电话:{{ message.phone }}
  72. </td>
  73. <td
  74. class="JR_left"
  75. colspan="4"
  76. align="left"
  77. style="border: none; line-height: 45px; padding-left:36px;text-align:right"
  78. >
  79. {{ message.startTime | dataFormaty }}—{{
  80. message.endTime | dataFormaty
  81. }}
  82. </td>
  83. </tr>
  84. <tbody style="font-size: 16px; font-weight: 500">
  85. <tr
  86. class="JR_tr"
  87. style="font-size: 16px; font-weight: 500; font-family: 'heiti'"
  88. >
  89. <td align="center" valign="center" colspan="3" 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. <td valign="center" class="JR_left">
  102. <p align="center" style="font-family: 'heiti'">地点</p>
  103. </td>
  104. <td valign="center" class="JR_left">
  105. <p align="center" style="font-family: 'heiti'">时间</p>
  106. </td>
  107. </tr>
  108. <tr
  109. class="JR_tr"
  110. v-for="(item, i) in message.bdglWeekworkRegisterList"
  111. :key="i"
  112. style="text-align: center; height: 45px; font-family: 'fangsong'"
  113. >
  114. <td style="text-align: center;width:80px" rowspan="1" class="JR_right">
  115. {{ item.week }}
  116. </td>
  117. <td style="text-align: center;width:100px" rowspan="1" class="JR_right">
  118. {{ item.time }}
  119. </td>
  120. <td style="text-align: center;width:70px" rowspan="1" class="JR_right">
  121. {{ item.dateline }}
  122. </td>
  123. <td style="text-align: center" rowspan="1" class="JR_right">
  124. {{ item.contents }}
  125. </td>
  126. <td style="text-align: center;width:110px" rowspan="1" class="JR_right">
  127. {{ item.unitId1 }}
  128. </td>
  129. <td style="text-align: center;width:60px" rowspan="1" class="JR_right">
  130. {{ item.peopleIds }}
  131. </td>
  132. <td style="text-align: center;width:60px" rowspan="1" class="JR_right">
  133. {{ item.address }}
  134. </td>
  135. <td style="text-align: center;width:110px" rowspan="1" class="JR_right">
  136. {{ item.startTime }}—{{ item.endTime }}
  137. </td>
  138. </tr>
  139. <tr class="JR_tr">
  140. <td valign="center" class="JR_left" style="font-family: 'songti'">
  141. <p align="center">备注</p>
  142. </td>
  143. <td
  144. valign="center"
  145. colspan="7"
  146. class="JR_right"
  147. style="font-family: 'fangsong'"
  148. >
  149. {{ message.remark }}
  150. </td>
  151. </tr>
  152. </tbody>
  153. <tr
  154. style="
  155. border: none;
  156. color: black;
  157. font-size: 16px;
  158. font-weight: 500;
  159. line-height: 30px;
  160. width: 930px;
  161. font-family: 'fangsong';
  162. "
  163. >
  164. <td
  165. class="JR_left"
  166. colspan="3"
  167. align="left"
  168. style="
  169. border: none;
  170. line-height: 70px;
  171. width: 360px;
  172. font-family: 'fangsong';
  173. padding-left: 19px;
  174. "
  175. >
  176. 军事主官:{{ message.people1Name }}
  177. </td>
  178. <td
  179. colspan="1"
  180. style="
  181. border: none;
  182. line-height: 45px;
  183. width: 360px;
  184. font-family: 'fangsong';
  185. "
  186. ></td>
  187. <td
  188. class="JR_left"
  189. colspan="3"
  190. align="left"
  191. style="
  192. border: none;
  193. line-height: 45px;
  194. width: 360px;
  195. font-family: 'fangsong';
  196. "
  197. >
  198. 政治主官:{{ message.people2Name }}
  199. </td>
  200. <td
  201. class="JR_left"
  202. colspan="3"
  203. align="left"
  204. style="border: none; line-height: 45px; font-family: 'fangsong'"
  205. >
  206. <!-- 时间: {{ message.startTime | dataFormaty }}—{{
  207. message.endTime | dataFormaty
  208. }} -->
  209. </td>
  210. </tr>
  211. </table>
  212. </div>
  213. </div>
  214. </template>
  215. <script>
  216. //引入lookWord
  217. import { lookWord } from "@/utils/look_word.js";
  218. import "@/utils/lodJs.js";
  219. export default {
  220. name: "bdgleven",
  221. props: ["message"],
  222. data() {
  223. return {
  224. title: "周工作安排表",
  225. style:
  226. ".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}",
  227. };
  228. },
  229. methods: {
  230. daochu() {
  231. lookWord(this.title, "#contents", this.style, true);
  232. },
  233. },
  234. };
  235. </script>
  236. <style scoped>
  237. tbody {
  238. color: #fff;
  239. text-align: center;
  240. }
  241. tr:last-child {
  242. border-bottom: 1px solid;
  243. }
  244. .box1 {
  245. position: absolute;
  246. right: 30px;
  247. top: 80px;
  248. border: 1px solid rgb(129, 130, 131);
  249. border-radius: 5px;
  250. }
  251. </style>