12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <template>
- <scroll-view :style="{height: `calc(${approveListHeight}px - 20rpx)`}" class="di-scroll" scroll-y @scrolltolower="handleOnreachBottom" :refresher-triggered="triggered"
- refresher-enabled @refresherrefresh="handlePullDownRefresh">
- <view class="di-scroll-list">
- <!-- 右滑 -->
- <u-swipe-action
- v-for="(item, index) in list"
- :show="activeIndex === item[primaryKey]"
- :key="index"
- :index='item.id'
- @content-click="(id) => handle2ProcessTask('', item.id, item.category, item.procDefId, false)">
- <di-descriptions :title="item.name" label-col="3" value-col="9" :border-bottom="true" >
- <u-tag slot="right" size="mini" :text="item.statusLabel" :type="statusColorMap[item.statusLabel]" mode="light" />
- <di-descriptions-item label="流程名称" :value="item.processDefinitionName" :ellipsis="true"/>
- <di-descriptions-item label="开始时间" :value="item.startTime" :ellipsis="true"/>
- <di-descriptions-item label="结束时间" :value="item.endTime" :ellipsis="true"/>
- <di-descriptions-item label="流程耗时" :value="item.durationLabel" :ellipsis="true"/>
- </di-descriptions>
- </u-swipe-action>
- </view>
- <u-loadmore v-if="!triggered" :status="status" :loadText='loadText' margin-top="24" margin-bottom="20" />
- </scroll-view>
- </template>
- <script>
- import approveList from './approveList'
- export default {
- mixins: [approveList],
- data() {
- return {
- baseApi: '/workflow/processLaunch',
- listApi: 'myProcessList',
- statusColorMap: {
- '已完成': 'success',
- '进行中': 'warning',
- '已撤销': 'info',
- '不通过': 'error'
- }
- }
- }
- }
- </script>
- <style>
- </style>
|