Count.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. <template>
  2. <div style="text-align:left; color: #dddddd; padding-right: 40px; padding-top: 40px; padding-bottom: 40px;">
  3. <el-row style="height: 30%;width: 100%;">
  4. <el-col :offset="2" :xs="24" :sm="24" :lg="5" style="height: 100%;">
  5. <p class="title1">众测工人</p>
  6. <p class="title2">
  7. <label>{{countDatas.testerCount}}</label>
  8. <label>人</label>
  9. </p>
  10. </el-col>
  11. <el-col :offset="2" :xs="24" :sm="24" :lg="5" style="height: 100%;">
  12. <p class="title1">注册企业</p>
  13. <p class="title2">
  14. <label>{{countDatas.companyCount}}</label>
  15. <label>家</label>
  16. </p>
  17. </el-col>
  18. <el-col :offset="2" :xs="24" :sm="24" :lg="5" style="height: 100%;">
  19. <p class="title1">注册机构</p>
  20. <p class="title2">
  21. <label>{{countDatas.orgCount}}</label>
  22. <label>家</label>
  23. </p>
  24. </el-col>
  25. </el-row>
  26. <el-row style="height: 40%;width: 100%;">
  27. <el-col :offset="2" :xs="24" :sm="24" :lg="5" style="height: 100%;">
  28. <p class="title1">众测项目</p>
  29. <p class="title3">
  30. <label>累计</label>
  31. <label class="title3-color1">{{countDatas.projectCount}}</label>
  32. <label>项</label>
  33. </p>
  34. <p class="title3">
  35. <label>当月新增</label>
  36. <label class="title3-color1">{{countDatas.newProjectCount}}</label>
  37. <label>项</label>
  38. </p>
  39. </el-col>
  40. <el-col :offset="2" :xs="24" :sm="24" :lg="5" style="height: 100%;">
  41. <p class="title1">众测任务</p>
  42. <p class="title3">
  43. <label>累计</label>
  44. <label class="title3-color1">{{countDatas.taskCount}}</label>
  45. <label>项</label>
  46. </p>
  47. <p class="title3">
  48. <label>当月新增</label>
  49. <label class="title3-color1">{{countDatas.newTaskCount}}</label>
  50. <label>项</label>
  51. </p>
  52. </el-col>
  53. <el-col :offset="2" :xs="24" :sm="24" :lg="6" style="height: 100%;">
  54. <p class="title1">参与众测人次</p>
  55. <p class="title3">
  56. <label>累计</label>
  57. <label class="title3-color1">{{countDatas.testerJoinCount}}</label>
  58. <label>人次</label>
  59. </p>
  60. <p class="title3">
  61. <label>当月新增</label>
  62. <label class="title3-color1">{{countDatas.newTesterJoinCount}}</label>
  63. <label>人次</label>
  64. </p>
  65. </el-col>
  66. </el-row>
  67. <el-row style="height: 40%;width: 100%;">
  68. <el-col :offset="2" :xs="24" :sm="24" :lg="5" style="height: 100%;">
  69. <p class="title1">提交测试用例</p>
  70. <p class="title3">
  71. <label>累计</label>
  72. <label class="title3-color2">{{countDatas.testCaseCount}}</label>
  73. <label>个</label>
  74. </p>
  75. <p class="title3">
  76. <label>当月新增</label>
  77. <label class="title3-color2">{{countDatas.newTestCaseCount}}</label>
  78. <label>个</label>
  79. </p>
  80. </el-col>
  81. <el-col :offset="2" :xs="24" :sm="24" :lg="5" style="height: 100%;">
  82. <p class="title1">提交缺陷</p>
  83. <p class="title3">
  84. <label>累计</label>
  85. <label class="title3-color2">{{countDatas.defectCount}}</label>
  86. <label>个</label>
  87. </p>
  88. <p class="title3">
  89. <label>当月新增</label>
  90. <label class="title3-color2">{{countDatas.newDefectCount}}</label>
  91. <label>个</label>
  92. </p>
  93. </el-col>
  94. <el-col :offset="2" :xs="24" :sm="24" :lg="6" style="height: 100%;">
  95. </el-col>
  96. </el-row>
  97. </div>
  98. </template>
  99. <script>
  100. export default {
  101. name: 'Count',
  102. data: function () {
  103. return {
  104. countDatas: {}
  105. }
  106. },
  107. props: {
  108. counts: {
  109. type: Object,
  110. required: true
  111. }
  112. },
  113. watch: {
  114. counts: {
  115. handler: function (nv, ov) {
  116. this.countDatas = nv
  117. },
  118. deep: true,
  119. immediate: true
  120. }
  121. }
  122. }
  123. </script>
  124. <style lang="scss" scoped>
  125. .title1 {
  126. font-weight: bold;
  127. font-size: 14px;
  128. }
  129. .title2 {
  130. label:nth-child(1) {
  131. margin-left: 8px;
  132. font-weight: bold;
  133. font-size: 24px;
  134. color: #4dd9d5;
  135. }
  136. label:nth-child(2) {
  137. font-weight: bold;
  138. font-size: 6px;
  139. }
  140. }
  141. .title3 {
  142. label:nth-child(1) {
  143. font-weight: bold;
  144. font-size: 10px;
  145. }
  146. label:nth-child(2) {
  147. margin-left: 10px;
  148. font-weight: bold;
  149. font-size: 24px;
  150. }
  151. label:nth-child(3) {
  152. font-weight: bold;
  153. font-size: 6px;
  154. }
  155. .title3-color1 {
  156. color: red;
  157. }
  158. .title3-color2 {
  159. color: green;
  160. }
  161. }
  162. </style>