MarkProgress.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. <template>
  2. <div class="mark-progress">
  3. <div class="progress-title">
  4. <span>当前阶段:{{ stepName }}</span>
  5. </div>
  6. <div class="part-box">
  7. <div class="progress-table">
  8. <table class="table table-noborder">
  9. <tr v-for="(area, aindex) in areaInfos" :key="aindex">
  10. <td style="width: 11%">{{ area.name }}</td>
  11. <td style="width: 56%;">
  12. <progress-line
  13. :sum="area.sum"
  14. :current="area.current"
  15. ></progress-line>
  16. </td>
  17. <td style="width: 11%;">进度:{{ area.progress }}%</td>
  18. <td style="width: 11%;"></td>
  19. <td style="width: 11%;"></td>
  20. </tr>
  21. </table>
  22. </div>
  23. <div class="progress-table">
  24. <table class="table table-noborder">
  25. <tr v-for="(area, aindex) in userInfos" :key="aindex">
  26. <td style="width: 11%">{{ area.name }}</td>
  27. <td style="width: 56%;">
  28. <progress-line
  29. :sum="area.sum"
  30. :current="area.current"
  31. ></progress-line>
  32. </td>
  33. <td style="width: 11%;">进度:{{ area.progress }}%</td>
  34. <td style="width: 11%;">改档:{{ area.arbitration }}</td>
  35. <td style="width: 11%;">改档打分:{{ area.arbitrationScore }}</td>
  36. </tr>
  37. </table>
  38. </div>
  39. </div>
  40. </div>
  41. </template>
  42. <script>
  43. import ProgressLine from "../grading/components/ProgressLine";
  44. import { markProgressDetail } from "@/api";
  45. export default {
  46. name: "mark-progress",
  47. components: { ProgressLine },
  48. data() {
  49. return {
  50. subjectId: this.$route.params.subjectId,
  51. stepName: "打分阶段",
  52. areaInfos: [
  53. {
  54. name: "总体进度",
  55. sum: 5500,
  56. current: 0,
  57. progress: 0
  58. },
  59. {
  60. name: "考区1进度",
  61. sum: 1000,
  62. current: 990,
  63. progress: 100
  64. },
  65. {
  66. name: "考区2进度",
  67. sum: 5500,
  68. current: 2000,
  69. progress: 45.45
  70. },
  71. {
  72. name: "考区3进度",
  73. sum: 5500,
  74. current: 2000,
  75. progress: 45.45
  76. }
  77. ],
  78. userInfos: [
  79. {
  80. name: "科组长",
  81. sum: 5500,
  82. current: 2000,
  83. arbitration: 10,
  84. arbitrationScore: 8,
  85. progress: 45.45
  86. },
  87. {
  88. name: "评卷员1",
  89. sum: 5500,
  90. current: 2000,
  91. arbitration: 10,
  92. arbitrationScore: 8,
  93. progress: 45.45
  94. },
  95. {
  96. name: "评卷员2",
  97. sum: 5500,
  98. current: 2000,
  99. arbitration: 10,
  100. arbitrationScore: 8,
  101. progress: 45.45
  102. },
  103. {
  104. name: "评卷员3",
  105. sum: 5500,
  106. current: 2000,
  107. arbitration: 10,
  108. arbitrationScore: 8,
  109. progress: 45.45
  110. }
  111. ]
  112. };
  113. },
  114. methods: {
  115. async getData() {
  116. const data = await markProgressDetail(this.subjectId);
  117. console.log(data);
  118. }
  119. }
  120. };
  121. </script>