yiqing-bumen.vue 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. <template>
  2. <div class="page">
  3. <!-- <h1>未接种</h1> -->
  4. <div v-if="shows">
  5. <van-nav-bar
  6. title="未接种疫苗详情"
  7. left-arrow
  8. left-text="返回"
  9. @click-left="onClickLeft"
  10. />
  11. </div>
  12. <!-- <div class="contents">
  13. <div class="contents1">姓名</div>
  14. <div class="contents2">部门</div>
  15. <div class="contents3">原因</div>
  16. </div>
  17. <div class="contents_one" v-for="item in xinxi" :key="item">
  18. <div class="contents_one1">{{item.name}}</div>
  19. <div class="contents_one2">{{item.section_fullname}}</div>
  20. <div class="contents_one3">{{item. not_vaccination_cause}}</div>
  21. </div> -->
  22. <div class="contents_table">
  23. <h3>部门详情未接种疫苗</h3>
  24. <div class="list">
  25. <div class="item" style="border-bottom:2px solid #009FE8;">
  26. <div class="name">姓名</div>
  27. <div class="full">部门</div>
  28. <div class="reason">原因</div>
  29. </div>
  30. <div class="item" v-for="item in xinxi" :key="item">
  31. <div class="name">{{item.name}}</div>
  32. <div class="full">{{item.section_fullname}}</div>
  33. <div class="reason">{{item. not_vaccination_cause}}</div>
  34. </div>
  35. </div>
  36. </div>
  37. </div>
  38. </template>
  39. <script>
  40. import { getAllUrlParams } from "../../../plugins/url-encapsulation.js";
  41. export default {
  42. data() {
  43. return {
  44. shows: false,
  45. xinxi:[],
  46. itsname:""
  47. };
  48. },
  49. mounted() {
  50. document.body.style.backgroundColor = "#fff"; //背景色
  51. this.token = getAllUrlParams(window.location.href).token;
  52. this.tabbar=Boolean(getAllUrlParams(window.location.href).tabbar) ;
  53. this.shows=this.tabbar
  54. this.names = getAllUrlParams(window.location.href).its;
  55. console.log(decodeURIComponent(this.names));
  56. this.itsname= getAllUrlParams(window.location.href).itsname;
  57. console.log(decodeURIComponent(this.itsname));
  58. this.getxinxi()
  59. },
  60. methods: {
  61. onClickLeft() {
  62. window.history.back();
  63. },
  64. getxinxi(){
  65. this.$http.post("http://ningdongyunying.nxjiewei.com:8011/api/workbench/epidemic_situation/get_not_vaccination_list",{
  66. section_fullname:decodeURIComponent(this.names),
  67. // vaccination_first:decodeURIComponent(this.itsname)
  68. }).then(res=>{
  69. console.log(res);
  70. this.xinxi=res.data.data.not_nat_section_list
  71. })
  72. }
  73. },
  74. };
  75. </script>
  76. <style scoped>
  77. >>> .van-nav-bar {
  78. background: #39f;
  79. }
  80. >>> .van-nav-bar__title {
  81. color: #fff;
  82. }
  83. >>> .van-nav-bar .van-icon {
  84. color: #fff;
  85. }
  86. >>> .van-nav-bar__text {
  87. color: #fff;
  88. }
  89. [class*="van-hairline"]:after {
  90. border: none;
  91. }
  92. .page{
  93. min-height: 100%;
  94. background-color: #3399FF;
  95. box-sizing: border-box;
  96. padding: 20px 0;
  97. }
  98. .contents {
  99. display: flex;
  100. justify-content: left;
  101. width: 90%;
  102. margin: 12px auto;
  103. padding-bottom: 5px;
  104. font-size: 18px;
  105. border-bottom: 3px solid #39f;
  106. }
  107. .contents1 {
  108. width: 20%;
  109. color: #39f;
  110. }
  111. .contents2 {
  112. width: 30%;
  113. color: #39f;
  114. }
  115. .contents3 {
  116. width: 50%;
  117. color: #39f;
  118. }
  119. .contents_one {
  120. display: flex;
  121. justify-content: left;
  122. width: 90%;
  123. margin: 12px auto;
  124. padding-bottom: 10px;
  125. border-bottom: 1px solid #f0f0f0;
  126. }
  127. .contents_one1 {
  128. width: 20%;
  129. }
  130. .contents_one2 {
  131. width: 30%;
  132. }
  133. .contents_one3 {
  134. width: 50%;
  135. }
  136. .contents_table {
  137. width: 350px;
  138. min-height: 90vh;
  139. margin: 0 auto;
  140. background: #fff;
  141. border-radius: 20px;
  142. padding-bottom: 10px;
  143. margin-bottom: 30px;
  144. }
  145. .contents_table > h3 {
  146. text-align: center;
  147. padding-top: 10px;
  148. margin-bottom: 15px;
  149. }
  150. .list{
  151. box-sizing: border-box;
  152. padding: 0 10px;
  153. font-size: 13px;
  154. }
  155. .list .item{
  156. display: flex;
  157. justify-content: space-between;
  158. align-items: center;
  159. box-sizing: border-box;
  160. padding: 5px 0;
  161. }
  162. .list .item:nth-child(2n){
  163. background-color: #f0f0f0;
  164. }
  165. .list .item .name{
  166. width: 80px;
  167. text-align: center;
  168. }
  169. .list .item .full{
  170. width: 80px;
  171. text-align: center;
  172. }
  173. .list .item .reason{
  174. width: 150px;
  175. text-align: center;
  176. }
  177. </style>