移动端
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 

141 wiersze
5.0 KiB

  1. <template>
  2. <div>
  3. <van-nav-bar
  4. title="我的事项"
  5. left-arrow
  6. @click-left="$router.back(-1)"
  7. />
  8. <van-tabs v-model="activeName" title-active-color="#1D6FE9" color="#1D6FE9" line-width="20px" swipeable @click="getList">
  9. <van-tab title="待办" name="1" >
  10. </van-tab>
  11. <van-tab title="已办" name="2">
  12. </van-tab>
  13. </van-tabs>
  14. <van-cell-group @click="goDetail(item)" v-for="(item,index) in taskList" :key="index" style="width: 96%;margin:2%;border-radius: 6px;overflow: hidden;padding-top: 10px;padding-bottom: 10px;box-shadow: 0px 3px 6px 0px rgba(0,0,0,0.16);">
  15. <van-cell>
  16. <template #title>
  17. <van-row style="">
  18. <van-col span="23" :offset="1">
  19. <h3 style="display: inline-block;line-height: 30px;margin-left: 6px;width: 100%;overflow: hidden;">
  20. <van-image
  21. height="20"
  22. width="20"
  23. style="vertical-align: middle;margin-right: 10px"
  24. src="../../../static/images/onlineHome/done.png"></van-image>{{item.projectName}}</h3>
  25. </van-col>
  26. </van-row>
  27. </template>
  28. </van-cell>
  29. <van-cell>
  30. <template #title>
  31. <van-row>
  32. <van-col span="6" :offset="1">
  33. <p style="color: #878787">{{item.createTime?item.createTime.substring(0,10):item.startTime.substring(0,10)}}</p>
  34. </van-col>
  35. <van-col span="10" :offset="1">
  36. <p style="color: #878787">{{item.formData.activityBusinessType}}</p>
  37. </van-col>
  38. <van-col span="5" :offset="1">
  39. <p style="font-size: 14px;font-weight:bold;text-align: right;color: #1D6FE9">{{activeName=='1'?'待审批':'已审批'}}</p>
  40. </van-col>
  41. </van-row>
  42. </template>
  43. </van-cell>
  44. </van-cell-group>
  45. </div>
  46. </template>
  47. <script>
  48. import onlineHomeIndex from "../onlineHomeIndex";
  49. import {ListDone, ListTodo} from "../../api/onlineHome/done";
  50. export default {
  51. components: {
  52. onlineHomeIndex
  53. },
  54. name: "done",
  55. data(){
  56. return{
  57. taskList:[],
  58. activeName:'1',
  59. total:0,
  60. queryParams: {
  61. pageNum: 1,
  62. pageSize: 100,
  63. },
  64. activityBusinessTypeOptions:[],
  65. }
  66. },
  67. created() {
  68. this.getDicts("activity_business_type").then((response) => {
  69. this.activityBusinessTypeOptions = response.data;
  70. this.getList();
  71. });
  72. },
  73. methods: {
  74. getList() {
  75. this.taskList = []
  76. this.$set(this.queryParams, "systemType", '');
  77. if(this.activeName=='1'){
  78. ListTodo(this.queryParams).then((response) => {
  79. response.rows.map(res => {
  80. if(res.tableName?res.tableName.indexOf('house')>0:""){
  81. res.tableName = '来自农村宅基地管理系统'
  82. }else if(res.tableName?res.tableName.indexOf('sys_seal')>0:""){
  83. res.tableName = '来自银农直联审批管理系统'
  84. }else if(res.tableName?res.tableName.indexOf('yinnong')>0:""){
  85. res.tableName = '来自银农直联审批管理系统'
  86. }
  87. if(this.activityBusinessTypeOptions){
  88. this.activityBusinessTypeOptions.map(t => {
  89. if(t.dictValue == res.formData.activityBusinessType){
  90. res.formData.activityBusinessType = t.dictLabel
  91. this.taskList.push(res)
  92. }
  93. });
  94. }
  95. })
  96. })
  97. }else{
  98. ListDone(this.queryParams).then((response) => {
  99. response.rows.map(res => {
  100. if(res.tableName?res.tableName.indexOf('house')>0:""){
  101. res.tableName = '来自农村宅基地管理系统'
  102. }else if(res.tableName?res.tableName.indexOf('sys_seal')>0:""){
  103. res.tableName = '来自银农直联审批管理系统'
  104. }else if(res.tableName?res.tableName.indexOf('yinnong')>0:""){
  105. res.tableName = '来自银农直联审批管理系统'
  106. }
  107. if(this.activityBusinessTypeOptions){
  108. this.activityBusinessTypeOptions.map(t => {
  109. if(t.dictValue == res.formData.activityBusinessType){
  110. res.formData.activityBusinessType = t.dictLabel
  111. this.taskList.push(res)
  112. }
  113. });
  114. }
  115. })
  116. })
  117. }
  118. },
  119. goDetail(item){
  120. console.log(item)
  121. var type = item.formData.processKey;
  122. switch (type) {
  123. case 'baseApply':
  124. case 'landscope':
  125. case 'accepting':
  126. this.$router.push({name:'approvalForm',query: {id:item.formData.id}})
  127. break;
  128. }
  129. }
  130. },
  131. }
  132. </script>
  133. <style scoped>
  134. </style>