TaskList.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <template>
  2. <div>
  3. <!-- <div class="title h1">我接收的任务</div> -->
  4. <el-tabs tabPosition="top" type="card" >
  5. <el-tab-pane label="未完成任务">
  6. <task-item v-for="(item,index) in list" :key="index" :taskId="item.id"/>
  7. </el-tab-pane>
  8. <el-tab-pane label="已完成任务">
  9. <task-item v-for="(item,index) in list2" :key="index" :taskId="item.id"/>
  10. </el-tab-pane>
  11. </el-tabs>
  12. </div>
  13. </template>
  14. <script>
  15. import TaskItem from "@/components/commons/TaskItem";
  16. export default {
  17. name: "TaskList",
  18. components: { TaskItem },
  19. data() {
  20. return {
  21. list: [
  22. {
  23. id: 0,
  24. title: "发送群文件测试",
  25. platform: [0, 1],
  26. description: "任务描述文字xxxx",
  27. price: "30",
  28. 业务类型: 1,
  29. status: 0
  30. },
  31. {
  32. id: 1,
  33. title: "多人聊天发送文件测试",
  34. platform: [0],
  35. description: "任务描述文字xxxx",
  36. price: "10",
  37. 业务类型: 0,
  38. status: 1
  39. },
  40. {
  41. id: 2,
  42. title: "浏览器波洞星球",
  43. platform: [1],
  44. description: "任务描述文字xxxx",
  45. price: "10",
  46. 业务类型: 2,
  47. status: 0
  48. },
  49. {
  50. id: 3,
  51. title: "举报支持选择聊天记录(安全)",
  52. platform: [0, 1, 2],
  53. description: "任务描述文字xxxx",
  54. price: "0",
  55. 业务类型: 1,
  56. status: 1
  57. },
  58. {
  59. id: 4,
  60. title: "发送群文件测试",
  61. platform: [0, 1],
  62. description: "任务描述文字xxxx",
  63. price: "30",
  64. 业务类型: 1,
  65. status: 0
  66. }
  67. ],
  68. list2:[
  69. {
  70. id: 6,
  71. title: "浏览器波洞星球",
  72. platform: [1],
  73. description: "任务描述文字xxxx",
  74. price: "10",
  75. 业务类型: 2,
  76. status: 0
  77. },
  78. {
  79. id: 7,
  80. title: "举报支持选择聊天记录(安全)",
  81. platform: [0, 1, 2],
  82. description: "任务描述文字xxxx",
  83. price: "0",
  84. 业务类型: 1,
  85. status: 1
  86. },
  87. {
  88. id: 8,
  89. title: "发送群文件测试",
  90. platform: [0, 1],
  91. description: "任务描述文字xxxx",
  92. price: "30",
  93. 业务类型: 1,
  94. status: 0
  95. },
  96. {
  97. id: 9,
  98. title: "多人聊天发送文件测试",
  99. platform: [0],
  100. description: "任务描述文字xxxx",
  101. price: "10",
  102. 业务类型: 0,
  103. status: 1
  104. },
  105. {
  106. id: 10,
  107. title: "浏览器波洞星球",
  108. platform: [1],
  109. description: "任务描述文字xxxx",
  110. price: "10",
  111. 业务类型: 2,
  112. status: 0
  113. },
  114. {
  115. id: 11,
  116. title: "举报支持选择聊天记录(安全)",
  117. platform: [0, 1, 2],
  118. description: "任务描述文字xxxx",
  119. price: "0",
  120. 业务类型: 1,
  121. status: 2
  122. }
  123. ]
  124. };
  125. },
  126. mounted() {}
  127. };
  128. </script>
  129. <style lang="less" scoped>
  130. </style>