gaoshp
2025-08-10 c57d1a6ffb6c6583a7350a53671502f813b9f366
src/views/flow/donelist.vue
@@ -1,7 +1,7 @@
<!--
 * @Date: 2025-08-10 14:23:00
 * @LastEditors: gaoshp
 * @LastEditTime: 2025-08-10 14:48:40
 * @LastEditTime: 2025-08-10 15:33:29
 * @FilePath: /mdmweb/src/views/flow/donelist.vue
-->
<template>
@@ -13,7 +13,7 @@
    </basic-container>
</template>
<script>
import { getList} from '@/api/flow/todolist';
import { getDoneList} from '@/api/flow/todolist';
import { mapGetters } from 'vuex';
export default {
    data() {
@@ -32,6 +32,7 @@
                index: true,
                selection: false,
                // viewBtn: true,
                menu: false,
                menuWidth: 100,
                column: [
                    {
@@ -102,34 +103,39 @@
                        // hide: true,
                    },
                    {
                        label: '上一步用户',
                        label: '开始时间',
                        width: 200,
                        prop: '',
                        formatter: (val, value, label) => {
                            return `${val?.variables?.approveUserNickName || ''}`;
                        },
                        type: 'datetime',
                        format: 'YYYY-MM-DD HH:mm:ss',
                        valueFormat: 'YYYY-MM-DD HH:mm:ss',
                        search: false,
                        searchRange: true,
                        searchSpan: 8,
                        // hide: true,
                    },
                    {
                        label: '当前节点',
                        label: '结束时间',
                        width: 200,
                        prop: 'taskName',
                        prop: '',
                        type: 'datetime',
                        format: 'YYYY-MM-DD HH:mm:ss',
                        valueFormat: 'YYYY-MM-DD HH:mm:ss',
                        search: false,
                        searchRange: true,
                        searchSpan: 8,
                        // hide: true,
                    },
                    {
                        label: '任务名称',
                        width: 200,
                        prop: '',
                    },
                    {
                        label: '文件',
                        width: 200,
                        prop: 'file',
                    },
                    {
                        label: '到达时间',
                        width: 200,
                        prop: 'createTime',
                    },
                    {
                        label: '到达描述',
                        width: 200,
                        prop: 'comment',
                    },
                ],
            },
            page: {
@@ -191,7 +197,7 @@
            }
            this.loading = true;
            getList(page.currentPage, page.pageSize, Object.assign(query, params)).then(res => {
            getDoneList(page.currentPage, page.pageSize, Object.assign(query, params)).then(res => {
                const data = res.data.data;
                this.page.total = data.total;
                this.data = data.records;