doneList.vue 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. v-for="(item, index) in list"
  8. :show="activeIndex === item[primaryKey]"
  9. :key="index"
  10. :index='item.id'
  11. @content-click="(id) => handle2ProcessTask(id, item.procInstId, '', item.procDefId,false)">
  12. <di-descriptions :title="item.processInstanceName" label-col="3" value-col="9" :border-bottom="true" >
  13. <di-descriptions-item label="节点名称" :value="item.name" :ellipsis="true"/>
  14. <di-descriptions-item label="开始时间" :value="item.startTime" :ellipsis="true"/>
  15. <di-descriptions-item label="办结时间" :value="item.endTime" :ellipsis="true"/>
  16. </di-descriptions>
  17. </u-swipe-action>
  18. </view>
  19. <u-loadmore v-if="!triggered" :status="status" :loadText='loadText' margin-top="24" margin-bottom="20" />
  20. </scroll-view>
  21. </template>
  22. <script>
  23. import approveList from './approveList'
  24. export default {
  25. mixins: [approveList],
  26. data() {
  27. return {
  28. baseApi: '/workflow',
  29. listApi: 'task/taskList',
  30. customQueryParam: {
  31. taskCategory: 'done',
  32. findByCurrentUserId: true,
  33. orderBy: 'startTime:DESC'
  34. }
  35. }
  36. }
  37. }
  38. </script>
  39. <style>
  40. </style>