调解系统PC端服务

index.vue 3.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. <template>
  2. <div class="app-container home">
  3. <div class="header">
  4. <div class="iconTitle"></div>
  5. <div class="headerMain">我的待办</div>
  6. </div>
  7. <div class="homeMain">
  8. <div
  9. class="cardList"
  10. v-for="(item, index) in pendingTasks"
  11. :key="index"
  12. @click="pushPage(item.caseFlowId)"
  13. >
  14. <div class="badge">{{ item.caseCount }}</div>
  15. <div class="cardMain">
  16. <img class="iconImg" :src="iconHead + item.fileName" alt="" />
  17. </div>
  18. <div class="cardMain1">
  19. <div class="imgTitle">{{ item.caseStatusName }}</div>
  20. </div>
  21. </div>
  22. </div>
  23. </div>
  24. </template>
  25. <script>
  26. import { todoCount } from "@/api/system/homepage.js";
  27. export default {
  28. name: "Index",
  29. data() {
  30. return {
  31. // 版本号
  32. version: "3.8.6",
  33. pendingTasks: [], //案件代办状态
  34. iconHead: process.env.VUE_APP_BASE_API
  35. };
  36. },
  37. watch: {
  38. $route(val) {
  39. if (val) {
  40. this.gettodoCount();
  41. }
  42. }
  43. },
  44. created() {
  45. this.gettodoCount();
  46. },
  47. methods: {
  48. goTarget(href) {
  49. window.open(href, "_blank");
  50. },
  51. // 查询代办状态
  52. gettodoCount() {
  53. todoCount({}).then((res) => {
  54. this.pendingTasks = res.data.toDoCountList;
  55. console.log(res.data.toDoCountList, "this.pendingTasks");
  56. });
  57. },
  58. // 点击待办按钮跳转
  59. pushPage(status) {
  60. this.$router.push({
  61. path: "/caseManagement/caseManagement/caseList",
  62. query: { caseFlowId: status + "" },
  63. });
  64. },
  65. },
  66. };
  67. </script>
  68. <style scoped lang="scss">
  69. .home {
  70. font-family: "open sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  71. font-size: 13px;
  72. color: #676a6c;
  73. overflow-x: hidden;
  74. background-color: #f1f1f1;
  75. height: 100vh;
  76. .header {
  77. width: 100%;
  78. height: 80px;
  79. display: flex;
  80. align-items: center;
  81. .iconTitle {
  82. width: 5px;
  83. height: 25px;
  84. background-color: #0f5c9b;
  85. margin-right: 25px;
  86. }
  87. .headerMain {
  88. font-size: 20px;
  89. }
  90. }
  91. .homeMain {
  92. width: 100%;
  93. display: flex;
  94. flex-wrap: wrap;
  95. .cardList {
  96. width: 13%;
  97. height: 200px;
  98. border-radius: 30px;
  99. background-color: #ffffff;
  100. position: relative;
  101. margin-right: 38px;
  102. margin-bottom: 30px;
  103. cursor: pointer;
  104. .badge {
  105. width: 50px;
  106. height: 30px;
  107. text-align: center;
  108. line-height: 30px;
  109. font-size: 18px;
  110. font-weight: 500;
  111. color: red;
  112. border-radius: 10px 30px 10px 30px;
  113. background-color: #1296DB;
  114. position: absolute;
  115. right: 0;
  116. }
  117. .cardMain {
  118. width: 100%;
  119. display: flex;
  120. justify-content: center;
  121. margin-top: 40px;
  122. .iconImg {
  123. width: 100px;
  124. height: 110px;
  125. }
  126. }
  127. .cardMain1 {
  128. width: 100%;
  129. display: flex;
  130. justify-content: center;
  131. .imgTitle {
  132. font-size: 15px;
  133. font-weight: 900;
  134. }
  135. }
  136. }
  137. }
  138. }
  139. </style>