|
|
@@ -50,7 +50,10 @@
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col style="display: flex;justify-content: flex-end" v-bind="styleResponsive ? { lg: 6, md: 12 } : { span: 6 }">
|
|
|
+ <el-col
|
|
|
+ style="display: flex; justify-content: flex-end"
|
|
|
+ v-bind="styleResponsive ? { lg: 6, md: 12 } : { span: 6 }"
|
|
|
+ >
|
|
|
<div class="ele-form-actions">
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
@@ -73,11 +76,17 @@
|
|
|
cache-key="systemRoleTable5"
|
|
|
>
|
|
|
<template v-slot:result="{ row }">
|
|
|
- <el-tag size="medium" :type="getTimelineItemType(getDictValue('流程实例的结果', row.result))"> {{getDictValue('流程实例的结果', row.result)}} </el-tag>
|
|
|
-
|
|
|
+ <el-tag
|
|
|
+ size="medium"
|
|
|
+ :type="
|
|
|
+ getTimelineItemType(getDictValue('流程实例的结果', row.result))
|
|
|
+ "
|
|
|
+ >
|
|
|
+ {{ getDictValue('流程实例的结果', row.result) }}
|
|
|
+ </el-tag>
|
|
|
</template>
|
|
|
<template v-slot:durationInMillis="{ row }">
|
|
|
- {{getDateTime(row.durationInMillis)}}
|
|
|
+ {{ getDateTime(row.durationInMillis) }}
|
|
|
</template>
|
|
|
<template v-slot:name="{ row }">
|
|
|
<el-link type="primary" :underline="false" @click="handleAudit(row)">
|
|
|
@@ -97,14 +106,13 @@
|
|
|
</ele-pro-table>
|
|
|
</el-card>
|
|
|
<detail ref="detailRef"></detail>
|
|
|
-
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import dictMixins from '@/mixins/dictMixins';
|
|
|
import { getDoneTaskPage } from '@/api/bpm/task';
|
|
|
- import {getDate} from "@/utils/dateUtils";
|
|
|
+ import { getDate } from '@/utils/dateUtils';
|
|
|
import detail from './detailDialog.vue';
|
|
|
|
|
|
// 默认表单数据
|
|
|
@@ -114,7 +122,7 @@
|
|
|
};
|
|
|
export default {
|
|
|
name: 'BpmDoneTask',
|
|
|
- components: {detail},
|
|
|
+ components: { detail },
|
|
|
mixins: [dictMixins],
|
|
|
data() {
|
|
|
return {
|
|
|
@@ -219,7 +227,7 @@
|
|
|
align: 'center',
|
|
|
showOverflowTooltip: true,
|
|
|
minWidth: 130
|
|
|
- },
|
|
|
+ }
|
|
|
// {
|
|
|
// columnKey: 'action',
|
|
|
// label: '操作',
|
|
|
@@ -243,6 +251,10 @@
|
|
|
methods: {
|
|
|
/* 表格数据源 */
|
|
|
datasource({ page, limit, where, order }) {
|
|
|
+ if (this.params.createTime?.length) {
|
|
|
+ this.params['beginCreateTime'] = this.params.createTime[0];
|
|
|
+ this.params['endCreateTime'] = this.params.createTime[1];
|
|
|
+ }
|
|
|
return getDoneTaskPage({
|
|
|
pageNo: page,
|
|
|
pageSize: limit,
|
|
|
@@ -264,24 +276,24 @@
|
|
|
this.$refs.detailRef.open(row);
|
|
|
},
|
|
|
getTimelineItemType(result) {
|
|
|
- if (result === '通过') {
|
|
|
- return 'success';
|
|
|
- }
|
|
|
- if (result === '不通过') {
|
|
|
- return 'danger';
|
|
|
- }
|
|
|
- if (result === '取消') {
|
|
|
- return 'info';
|
|
|
- }
|
|
|
- if (result === '处理中') {
|
|
|
- return 'warning';
|
|
|
- }
|
|
|
+ if (result === '通过') {
|
|
|
+ return 'success';
|
|
|
+ }
|
|
|
+ if (result === '不通过') {
|
|
|
+ return 'danger';
|
|
|
+ }
|
|
|
+ if (result === '取消') {
|
|
|
+ return 'info';
|
|
|
+ }
|
|
|
+ if (result === '处理中') {
|
|
|
+ return 'warning';
|
|
|
+ }
|
|
|
|
|
|
- return '';
|
|
|
- },
|
|
|
- getDateTime(ms){
|
|
|
- return getDate(ms)
|
|
|
- }
|
|
|
+ return '';
|
|
|
+ },
|
|
|
+ getDateTime(ms) {
|
|
|
+ return getDate(ms);
|
|
|
+ }
|
|
|
}
|
|
|
};
|
|
|
</script>
|