当前位置: 首页 > news >正文

基于jeecgboot-vue3的Flowable流程-待办任务(一)

因为这个项目license问题无法开源,更多技术支持与服务请加入我的知识星球。

1、ToDo.data.ts的数据信息如下

import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
//列表数据
export const columns: BasicColumn[] = [{title: '#',dataIndex: '',key:'rowIndex',width:60,align:"center"},{title:'任务编号',align:"center",dataIndex: 'procInsId',},{title:'流程名称',align:"center",dataIndex: 'procDefName',},{title:'任务节点',align:"center",dataIndex: 'taskName',},{title:'流程类别',align:"center",dataIndex: 'category'},{title:'流程版本',align:"center",dataIndex: 'procDefVersion'},{title:'业务主键',align:"center",dataIndex: 'businessKey'},{title:'流程发起人',align:"center",dataIndex: 'startUserName'},{title:'接收时间',align:"center",dataIndex: 'createTime'},
];//查询数据
export const searchFormSchema: FormSchema[] = [{label: "流程名称",field: 'procDefName',component: 'Input',},{label: "开始日期",field: 'createTime',component: 'DatePicker',},
];//表单数据
export const formSchema: FormSchema[] = [{title:'任务编号',align:"center",dataIndex: 'procInsId',},{title:'流程名称',align:"center",dataIndex: 'procDefName',},{title:'任务节点',align:"center",dataIndex: 'taskName',},{title:'流程类别',align:"center",dataIndex: 'category'},{title:'流程版本',align:"center",dataIndex: 'procDefVersion'},{title:'业务主键',align:"center",dataIndex: 'businessKey'},{title:'流程发起人',align:"center",dataIndex: 'startUserName'},{title:'接收时间',align:"center",dataIndex: 'createTime'},// TODO 主键隐藏字段,目前写死为ID{label: '',field: 'id',component: 'Input',show: false,},
];// 高级查询数据
export const superQuerySchema = {procInsId: {title: '任务编号',order: 0,view: 'text', type: 'string',},procDefName: {title: '流程名称',order: 1,view: 'text', type: 'string',},taskName: {title: '任务节点',order: 2,view: 'text', type: 'string',},category: {title: '流程类别',order: 2,view: 'text', type: 'string',},procDefVersion: {title: '流程版本',order: 3,view: 'text', type: 'string',},businessKey: {title: '业务主键',order: 4,view: 'text', type: 'string',},startUserName: {title: '流程发起人',order: 4,view: 'text', type: 'string',},createTime: {title: '接收时间',order: 5,view: 'date', type: 'string',},
};

2、表格数据用todoListNew接口

//注册table数据const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({tableProps: {title: 'toDo',api: todoListNew,columns,canResize:false,useSearchForm: false,actionColumn: {width: 120,fixed: 'right',},beforeFetch: (params) => {return Object.assign(params, queryParam);},},exportConfig: {name: "toDo",url: getExportUrl,params: queryParam,},});

3、接口设置成如下,返回没有result这些信息,直接就是数据了

// 查询待办任务列表
export const todoListNew = (params: any) => defHttp.get({ url: Api.todoListNew, params });

4、后端接口跟原先vue2版本一样

5、效果图如下:

http://www.lryc.cn/news/366793.html

相关文章:

  • 计算机网络--传输层
  • 【Vue】普通组件的注册使用-局部注册
  • 搞编程学习时是如何查找资料的?
  • 2024年AI大模型训练数据白皮书作用
  • Highcharts 条形图:数据可视化利器
  • 算法——二分查找
  • 统计信号处理基础 习题解答10-8
  • Flutter打包网络问题解决办法
  • 【ARM Cache 及 MMU 系列文章 6.3 -- ARMv8/v9 Cache Tag数据读取及分析】
  • Lua移植到标准ANSI C环境
  • crossover软件安装程序怎么安装 Crossover for Mac切换Windows系统 crossover软件怎么样
  • 【2024高考作文】新课标I卷-人工智能主题,用chatGPT作答
  • 【计算机网络】P2 计算机网络体系结构基本概念,涉及分层的基本术语、SDU、PCI 与 PDU 的概念以及层次结构的含义
  • 主流物联网协议客户端开源库介绍(mqtt,coap,websocket,httphttps,tcp及udp)
  • 【Python】成功解决SyntaxError: invalid syntax
  • 源代码防泄密
  • Unity DOTS技术(十三) ComponentSystem及JobComponentSystem
  • Apifox的使用
  • 【SpringBoot】SpringBoot整合RabbitMQ消息中间件,实现延迟队列和死信队列
  • kafka消息积压处理方案
  • 【vscode-快捷键 一键JSON格式化】
  • 什么是 Spring Boot 的起步依赖和自动配置?它们的作用是什么?
  • rk3568 norflash+pcei nvme 配置
  • 【Vue】面经基础版-首页请求渲染
  • OBS+nginx+nginx-http-flv-module实现阿里云的推流和拉流
  • ch1计算机网络和因特网
  • Web前端安全测试:深入剖析与实战策略
  • Java学习-JDBC(一)
  • 异步复位和同步释放
  • 03-3.2.4 双端队列