bdglweekwork.vue 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  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: 20px;
  10. font-weight: 600;
  11. color: black;
  12. "
  13. id="qTitle"
  14. >
  15. 20XX年X月份第X周工作安排表
  16. </p>
  17. <div style="width: 100%; height: 30px; margin-top: 10px; color: black">
  18. <span style="margin-left: 5%">连值班领导:顶级分类 &nbsp;</span>
  19. <span style="margin-left: 25%">电话: &nbsp; </span>
  20. <span style="margin-left: 20%" id="qtime"
  21. >(2022年03月09日-2022年03月09日)</span
  22. >
  23. </div>
  24. <table
  25. border="1"
  26. style="
  27. border-collapse: collapse;
  28. border: none;
  29. mso-border-left-alt: 0.5pt solid windowtext;
  30. mso-border-top-alt: 0.5pt solid windowtext;
  31. mso-border-right-alt: 0.5pt solid windowtext;
  32. mso-border-bottom-alt: 0.5pt solid windowtext;
  33. mso-border-insideh: 0.5pt solid windowtext;
  34. mso-border-insidev: 0.5pt solid windowtext;
  35. mso-padding-alt: 0pt 0pt 0pt 0pt;
  36. "
  37. width="940"
  38. align="center"
  39. bordercolor="black"
  40. >
  41. <tbody>
  42. <tr class="JR_tr">
  43. <td align="center" valign="center" colspan="3" class="JR_left">
  44. <p align="center">日期</p>
  45. </td>
  46. <td valign="center" class="JR_left">
  47. <p align="center">内容</p>
  48. </td>
  49. <td valign="center" class="JR_left">
  50. <p align="center">负责单位</p>
  51. </td>
  52. <td valign="center" class="JR_left">
  53. <p align="center">参加人员</p>
  54. </td>
  55. <td valign="center" class="JR_left">
  56. <p align="center">地点</p>
  57. </td>
  58. <td valign="center" class="JR_left">
  59. <p align="center">时间</p>
  60. </td>
  61. </tr>
  62. <tr
  63. class="JR_tr"
  64. v-for="(item, i) in message.bdglWeekworkRegisterList"
  65. :key="i"
  66. style="text-align: center; height: 45px"
  67. >
  68. <td style="text-align: center" rowspan="2" class="JR_right">
  69. {{ item.week }}
  70. </td>
  71. <td style="text-align: center" rowspan="2" class="JR_right">
  72. {{ item.time }}
  73. </td>
  74. <td style="text-align: center" rowspan="2" class="JR_right">
  75. {{ item.dateline }}
  76. </td>
  77. <td style="text-align: center" rowspan="2" class="JR_right">
  78. {{ item.contents }}
  79. </td>
  80. <td style="text-align: center" rowspan="2" class="JR_right">
  81. {{ item.unitId1 }}
  82. </td>
  83. <td style="text-align: center" rowspan="2" class="JR_right">
  84. {{ item.peopleIds }}
  85. </td>
  86. <td style="text-align: center" rowspan="2" class="JR_right">
  87. {{ item.address }}
  88. </td>
  89. <td style="text-align: center" rowspan="2" class="JR_right">
  90. {{ item.startTime }}—{{ item.endTime }}
  91. </td>
  92. </tr>
  93. <tr></tr>
  94. <tr class="JR_tr">
  95. <td valign="center" class="JR_left">
  96. <p align="center">备注</p>
  97. </td>
  98. <td valign="center" colspan="7" class="JR_right">
  99. {{ message.remark }}
  100. </td>
  101. </tr>
  102. </tbody>
  103. </table>
  104. <!-- <p >军事主官:顶级分类                                     政治主官:顶级分类                                      时间:2022-03-09 </p> -->
  105. <div style="width: 100%; height: 50px; margin-top: 10px; color: black">
  106. <span style="margin-left: 30px">军事主官:顶级分类 &nbsp;</span>
  107. <span style="margin-left: 30%">政治主官:顶级分类 </span>
  108. <span style="margin-left: 232px">时间:2022-03-09</span>
  109. </div>
  110. </div>
  111. </div>
  112. </template>
  113. <script>
  114. //引入lookWord
  115. import { lookWord } from "@/utils/look_word.js";
  116. import "@/utils/lodJs.js";
  117. export default {
  118. name: "bdgleven",
  119. props: ["message"],
  120. data() {
  121. return {
  122. title: "周工作安排表",
  123. style:
  124. ".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}",
  125. };
  126. },
  127. methods: {
  128. daochu() {
  129. lookWord(this.title, "#contents", this.style, true);
  130. },
  131. },
  132. };
  133. </script>
  134. <style scoped>
  135. tbody {
  136. color: #fff;
  137. text-align: center;
  138. }
  139. tr:last-child {
  140. border-bottom: 1px solid;
  141. }
  142. .box1 {
  143. position: absolute;
  144. right: 30px;
  145. top: 80px;
  146. border: 1px solid rgb(129, 130, 131);
  147. border-radius: 5px;
  148. }
  149. </style>