doneList.vue 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <template>
  2. <scroll-view :style="{height: `calc(${approveListHeight}px - 20rpx)`}" class="di-scroll" scroll-y @scrolltolower="handleOnreachBottom" :refresher-triggered="triggered"
  3. refresher-enabled @refresherrefresh="handlePullDownRefresh">
  4. <view class="di-scroll-list">
  5. <!-- 右滑 -->
  6. <u-swipe-action
  7. style="margin-bottom: 20rpx;border-radius: 10rpx;overflow: hidden;"
  8. v-for="(item, index) in list"
  9. :show="activeIndex === item[primaryKey]"
  10. :key="index"
  11. :index='item.id'
  12. @content-click="(id) => handle2ProcessTask(id, item.procInstId, '', item.procDefId,false)">
  13. <di-descriptions :title="item.processDefinitionName" label-col="3" value-col="9" :border-bottom="true" >
  14. <di-descriptions-item label="流程单号" :value="item.processNo" :ellipsis="true"/>
  15. <di-descriptions-item label="提交人" :value="item.applyUserName" :ellipsis="true"/>
  16. <di-descriptions-item label="申请时间" :value="item.applyTime" :ellipsis="true"/>
  17. <di-descriptions-item label="已办节点" :value="item.name" :ellipsis="true"/>
  18. <di-descriptions-item label="办结时间" :value="item.endTime" :ellipsis="true"/>
  19. </di-descriptions>
  20. </u-swipe-action>
  21. </view>
  22. <u-loadmore v-if="!triggered" :status="status" :loadText='loadText' margin-top="24" margin-bottom="20" />
  23. </scroll-view>
  24. </template>
  25. <script>
  26. import approveList from './approveList'
  27. export default {
  28. mixins: [approveList],
  29. data() {
  30. return {
  31. baseApi: '/cusFlowTask',
  32. listApi: 'myDoneList',
  33. customQueryParam: {
  34. taskCategory: 'done',
  35. findByCurrentUserId: true,
  36. orderBy: 'startTime:DESC'
  37. }
  38. }
  39. }
  40. }
  41. </script>
  42. <style>
  43. .di-scroll-list {
  44. background: none;
  45. }
  46. </style>