statis.vue 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. <template>
  2. <view >
  3. <view class="flex-row all-l" style="height: 100rpx; font-size: 16rpx; ">
  4. <view class="flex-row right-l" style="width: 9%; height: 100%; align-items: center; justify-content: center;">乡镇</view>
  5. <view class="" style="width: 45%; height: 100%;">
  6. <view class="bottom-l right-l flex-row" style="width: 100%; height: 50%; justify-content: center; align-items: center;">18岁以上第一针完成情况</view>
  7. <view class="flex-row" style="width: 100%; height: 50%;">
  8. <view class="one-five right-l">总任务数</view>
  9. <view class="one-five right-l">总接种数</view>
  10. <view class="one-five right-l">完成率</view>
  11. <view class="one-five right-l">未完成率</view>
  12. <view class="one-five right-l">当日接种数</view>
  13. </view>
  14. </view>
  15. <view class="" style="width: 45%; height: 100%;">
  16. <view class="bottom-l flex-row" style="width: 100%; height: 50%; justify-content: center; align-items: center;">第二针当日完成情况</view>
  17. <view class="flex-row" style="width: 100%; height: 50%;">
  18. <view class="one-five right-l">当日任务数</view>
  19. <view class="three-five right-l" style="height: 100%;">
  20. <view class="bottom-l" style="width: 100%; height: 100%;">接种数</view>
  21. <view class="flex-row" style="height: 100%;">
  22. <view class="right-l one-three">第二针</view>
  23. <view class="right-l one-three">第三针</view>
  24. <view class=" one-three">合计</view>
  25. </view>
  26. </view>
  27. <view class="one-five ">完成率</view>
  28. </view>
  29. </view>
  30. </view>
  31. <view class="flex-row" v-for="(item, index) in list" :style="index % 2 == 0 ? 'background-color: #ebeff2;' : ''"
  32. style="width: 100%; padding-top: 15px; font-size: 16rpx;">
  33. <text class="one-nine">{{item.xz}}</text>
  34. <view class="one-nine">{{item.zrws}}</view>
  35. <view class="one-nine">{{item.zjzs}}</view>
  36. <view class="one-nine">{{item.wcl1}}</view>
  37. <view class="one-nine">{{item.wwcs}}</view>
  38. <view class="one-nine">{{item.drjzs}}</view>
  39. <view class="one-nine">{{item.drrws}}</view>
  40. <view class="one-nine">{{item.dez}}</view>
  41. <view class="one-nine">{{item.dsz}}</view>
  42. <view class="one-nine">{{item.hj}}</view>
  43. <view class="one-nine">{{item.wcl2}}</view>
  44. </view>
  45. </view>
  46. </template>
  47. <script>
  48. export default {
  49. data() {
  50. return {
  51. list: [],
  52. }
  53. },
  54. onLoad() {
  55. },
  56. onReady() {
  57. this.getList()
  58. },
  59. methods: {
  60. getList() {
  61. this.$http.get("boman-web-core/vaccination/statisticYmjz").then(res => {
  62. if(res.code == 200){
  63. this.list = res.data
  64. }
  65. })
  66. }
  67. }
  68. }
  69. </script>
  70. <style scoped>
  71. .flex-row {
  72. display: flex;
  73. flex-direction: row;
  74. }
  75. .one-five {
  76. width: 20%;
  77. height: 100%;
  78. display: flex;
  79. flex-direction: row;
  80. align-items: center;
  81. justify-content: center;
  82. text-align: center;
  83. }
  84. .three-five {
  85. width: 60%;
  86. height: 100%;
  87. display: flex;
  88. flex-direction: column;
  89. align-items: center;
  90. justify-content: center;
  91. text-align: center;
  92. }
  93. .one-three {
  94. width: 33%;
  95. height: 100%;
  96. flex-direction: row;
  97. align-items: center;
  98. justify-content: center;
  99. }
  100. .one-nine {
  101. width: 9%;
  102. height: 40rpx;
  103. flex-direction: row;
  104. align-items: center;
  105. justify-content: center;
  106. text-align: center;
  107. }
  108. .all-l {
  109. border: 1px solid #ebeff2;
  110. }
  111. .top-l {
  112. border-top: 1px solid #ebeff2;
  113. }
  114. .left-l {
  115. border-left: 1px solid #ebeff2;
  116. }
  117. .right-l {
  118. border-right: 1px solid #ebeff2;
  119. }
  120. .bottom-l {
  121. border-bottom: 1px solid #ebeff2;
  122. }
  123. </style>