yiqing-tianbao.vue 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. <template>
  2. <div>
  3. <div v-if="shows">
  4. <van-nav-bar
  5. title="填报列表"
  6. left-arrow
  7. left-text="返回"
  8. @click-left="onClickLeft"
  9. />
  10. </div>
  11. <div class="contents" v-for="item in xinxi" :key="item.id">
  12. <div class="contents_headers_img">
  13. <img src="../../../assets/images/zaoquan/yiqing/日期.png" alt="" />
  14. <span>{{item.clock_in_time}}</span>
  15. </div>
  16. <!-- <div class="contents_one">
  17. <img src="../../../assets/images/zaoquan/yiqing/定位.png" alt="" />
  18. <p>宁夏自治区灵武市枣泉煤矿东大门</p>
  19. </div> -->
  20. <div class="contents_two">
  21. <div class="contents_three">
  22. <div class="contents_four">
  23. <span>姓名</span>
  24. <span class="contents_four_span">{{item.name}}</span>
  25. </div>
  26. <div class="contents_five">
  27. <span>是否接种疫苗</span>
  28. <span class="contents_five_span">{{item.vaccination}}</span>
  29. </div>
  30. </div>
  31. <div class="contents_three">
  32. <div class="contents_four">
  33. <span class="sizes">部门</span>
  34. <span class="contents_four_span">{{item.section}}</span>
  35. </div>
  36. <div class="contents_five">
  37. <span class="sizes">是否做过核酸检测</span>
  38. <span class="contents_five_span">{{item.nucleic_acid_test}}</span>
  39. </div>
  40. </div>
  41. <div class="contents_three">
  42. <div class="contents_four">
  43. <span class="sizes">体温</span>
  44. <span class="contents_four_span">{{item.temperature}}</span>
  45. </div>
  46. </div>
  47. <div v-if="showdiv == item.vaccination">
  48. <p class="contents_six">未接种疫苗原因</p>
  49. <p class="contents_serve">{{item.not_vaccination_cause}}</p>
  50. </div>
  51. </div>
  52. </div>
  53. </div>
  54. </template>
  55. <script>
  56. import {getAllUrlParams} from '../../../plugins/url-encapsulation.js'
  57. export default {
  58. data() {
  59. return {
  60. shows: true,
  61. showdiv:"未接种",
  62. xinxi:[],
  63. yimiao:"",
  64. hesuan:""
  65. };
  66. },
  67. methods: {
  68. getxinxi(){
  69. this.$http.post("http://zaoquan.nxjiewei.com:8011/api/workbench/epidemic_situation/clock_in_list",{
  70. staff_num:this.mobile
  71. }).then(res=>{
  72. // console.log(res);
  73. this.xinxi=res.data.data.data
  74. })
  75. },
  76. onClickLeft() {
  77. window.history.back();
  78. },
  79. },
  80. mounted() {
  81. document.body.style.backgroundColor = "#39f"; //背景色
  82. this.token = getAllUrlParams(window.location.href).token;
  83. this.mobile = getAllUrlParams(window.location.href).mobile;
  84. // console.log(this.mobile);
  85. // console.log(this.token);
  86. this.getxinxi()
  87. },
  88. };
  89. </script>
  90. <style scoped>
  91. >>> .van-nav-bar {
  92. background: #39f;
  93. }
  94. >>> .van-nav-bar__title {
  95. color: #fff;
  96. }
  97. >>> .van-nav-bar .van-icon {
  98. color: #fff;
  99. }
  100. >>> .van-nav-bar__text {
  101. color: #fff;
  102. }
  103. [class*="van-hairline"]:after {
  104. border: none;
  105. }
  106. .contents {
  107. width: 92%;
  108. margin: 0 auto 10px;
  109. background: #fff;
  110. border-radius: 10px;
  111. border: 1px solid transparent;
  112. }
  113. .contents_one {
  114. width: 95%;
  115. margin: 5px auto;
  116. padding-bottom: 10px;
  117. display: flex;
  118. justify-content: left;
  119. border-bottom: 1px solid #f0f0f0;
  120. }
  121. .contents_one > img {
  122. width: 30px;
  123. height: 30px;
  124. }
  125. .contents_one > p {
  126. font-size: 14px;
  127. margin-left: 15px;
  128. margin-top: 5px;
  129. color: #00a1e9;
  130. }
  131. .contents_headers_img {
  132. width: 50%;
  133. height: 30px;
  134. margin-top: 10px;
  135. line-height: 22px;
  136. background: #39f;
  137. border-radius: 0px 5px 5px 0px;
  138. display: flex;
  139. justify-content: left;
  140. }
  141. .contents_headers_img > img {
  142. width: 18px;
  143. height: 18px;
  144. margin-left: 10px;
  145. margin-top: 6px;
  146. }
  147. .contents_headers_img > span {
  148. font-size: 14px;
  149. color: #fff;
  150. margin-top: 5px;
  151. margin-left: 5px;
  152. }
  153. .contents_two {
  154. width: 95%;
  155. margin: 5px auto;
  156. padding-bottom: 10px;
  157. }
  158. .contents_three {
  159. margin: 5px auto;
  160. padding-bottom: 10px;
  161. border-bottom: 1px solid #f0f0f0;
  162. display: flex;
  163. flex-wrap: wrap;
  164. }
  165. .contents_four {
  166. width: 50%;
  167. }
  168. .contents_five {
  169. width: 50%;
  170. }
  171. .contents_four_span {
  172. margin-left: 8px;
  173. color: #9b9b9b;
  174. font-size: 14px;
  175. }
  176. .contents_five_span {
  177. float: right;
  178. color: #9b9b9b;
  179. font-size: 14px;
  180. }
  181. .contents_six {
  182. margin: 5px auto;
  183. font-size: 14px;
  184. }
  185. .contents_serve {
  186. color: #9b9b9b;
  187. font-size: 14px;
  188. }
  189. .sizes{
  190. font-size: 14px;
  191. }
  192. </style>