nbcio-boot的flowable流程流程模型查询时间长,el-table开始显示无数据的问题解决

本文主要是介绍nbcio-boot的flowable流程流程模型查询时间长,el-table开始显示无数据的问题解决,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

更多nbcio-boot功能请看演示系统

gitee源代码地址

后端代码: https://gitee.com/nbacheng/nbcio-boot

前端代码:https://gitee.com/nbacheng/nbcio-vue.git

在线演示(包括H5) : http://122.227.135.243:9888
 

      之前流程模型查询经过时间调整后,查询的时间更长了,但e-table在发布平台上显示无数据,但本地好像是会显示加载图标的,不知道为什么发布了反而不行了。

      但不修正这个,用户以为是空的呢?那只能想其它办法了。

     如下: 增加:empty-text="loadInfo"  和这个变量

<el-table v-loading="flowLoading" :data="definitionList" :empty-text="loadInfo" border><el-table-column label="流程定义id" align="center" prop="id" /><el-table-column label="流程标识Key" align="center" prop="key" /><el-table-column label="流程分类" align="center"><template slot-scope="scope"><span>{{ getCategoryName(scope.row.category) }}</span></template></el-table-column><el-table-column label="流程名称" align="center" :show-overflow-tooltip="true"><template slot-scope="scope"><el-button type="text" @click="handleProcessView(scope.row.deploymentId)"><span>{{ scope.row.name }}</span></el-button></template></el-table-column><el-table-column  label="表单名称" align="center" :show-overflow-tooltip="true"><template slot-scope="scope"><el-button v-if="(scope.row.formId) && (scope.row.category == 'zdyyw')" type="text" @click="handleCustomForm(scope.row.formId)"><span>{{ scope.row.formName }}</span></el-button><el-button v-if="(scope.row.formId) && (scope.row.category == 'online')" type="text" @click="handleOnlineForm(scope.row.formId,scope.row.formName)"><span>{{ scope.row.formName }}</span></el-button><el-button v-else-if="scope.row.formId" type="text" @click="handleForm(scope.row.formId)"><span>{{ scope.row.formName }}</span></el-button><label v-else>暂无表单</label></template></el-table-column><el-table-column label="流程版本" align="center"><template slot-scope="scope"><el-tag size="medium">v{{ scope.row.version }}</el-tag></template></el-table-column><el-table-column label="状态" align="center"><template slot-scope="scope"><el-tag type="success" v-if="scope.row.suspensionState === 1">激活</el-tag><el-tag type="warning" v-if="scope.row.suspensionState === 2">挂起</el-tag></template></el-table-column><el-table-column label="部署时间" sortable align="center" prop="deploymentTime" width="180" /><el-table-column label="操作" align="center" class-name="small-padding fixed-width"><template slot-scope="scope"><el-dropdown><span class="el-dropdown-link">更多操作<i class="el-icon-arrow-down el-icon--right"></i></span><el-dropdown-menu slot="dropdown"><el-dropdown-item icon="el-icon-edit-outline" @click.native="handleLoadXml(scope.row)">编辑</el-dropdown-item><el-dropdown-item icon="el-icon-connection" @click.native="handleAddForm(scope.row)" v-if="scope.row.formId == null && (scope.row.category == 'oa' || scope.row.category == 'cw')">配置表单</el-dropdown-item><!--<el-dropdown-item icon="el-icon-connection" @click.native="handleAddCustomForm(scope.row)"v-if="scope.row.formId == null && (scope.row.category == 'zdyyw')">配置自定义业务表单</el-dropdown-item> --><el-dropdown-item icon="el-icon-connection" @click.native="handleAddOnlineForm(scope.row)"v-if="scope.row.formId == null && (scope.row.category == 'online')">配置online表单</el-dropdown-item><el-dropdown-item icon="el-icon-connection" @click.native="SubmitApplication(scope.row)" v-if="(scope.row.formId != null && (scope.row.category == 'oa' || scope.row.category == 'cw' ))   || (scope.row.formId != null && (scope.row.category == 'online'))|| (scope.row.formId == null && (scope.row.category == 'ddxz' || scope.row.category == 'ddcw'))">发起申请</el-dropdown-item><el-dropdown-item icon="el-icon-video-pause" @click.native="handleUpdateSuspensionState(scope.row)"v-if="scope.row.suspensionState === 1">挂起</el-dropdown-item><el-dropdown-item icon="el-icon-video-play" @click.native="handleUpdateSuspensionState(scope.row)"v-if="scope.row.suspensionState === 2">激活</el-dropdown-item><el-dropdown-item icon="el-icon-delete" @click.native="handleDelete(scope.row)">删除</el-dropdown-item></el-dropdown-menu></el-dropdown></template></el-table-column></el-table>

在取数据的时候进行更新

 /** 查询流程定义列表 */getList() {this.flowLoading = true;this.loadInfo = "数据加载中..."listDefinition(this.queryParams).then(response => {console.log("getList response=",response);if(response.code == 200) {this.loadInfo = "";this.definitionList = response.result.records;this.total = response.result.total;this.flowLoading = false;}});},

效果图:

   

这篇关于nbcio-boot的flowable流程流程模型查询时间长,el-table开始显示无数据的问题解决的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/523551

相关文章

Python标准库datetime模块日期和时间数据类型解读

《Python标准库datetime模块日期和时间数据类型解读》文章介绍Python中datetime模块的date、time、datetime类,用于处理日期、时间及日期时间结合体,通过属性获取时间... 目录Datetime常用类日期date类型使用时间 time 类型使用日期和时间的结合体–日期时间(

使用Python开发一个Ditto剪贴板数据导出工具

《使用Python开发一个Ditto剪贴板数据导出工具》在日常工作中,我们经常需要处理大量的剪贴板数据,下面将介绍如何使用Python的wxPython库开发一个图形化工具,实现从Ditto数据库中读... 目录前言运行结果项目需求分析技术选型核心功能实现1. Ditto数据库结构分析2. 数据库自动定位3

pandas数据的合并concat()和merge()方式

《pandas数据的合并concat()和merge()方式》Pandas中concat沿轴合并数据框(行或列),merge基于键连接(内/外/左/右),concat用于纵向或横向拼接,merge用于... 目录concat() 轴向连接合并(1) join='outer',axis=0(2)join='o

批量导入txt数据到的redis过程

《批量导入txt数据到的redis过程》用户通过将Redis命令逐行写入txt文件,利用管道模式运行客户端,成功执行批量删除以Product*匹配的Key操作,提高了数据清理效率... 目录批量导入txt数据到Redisjs把redis命令按一条 一行写到txt中管道命令运行redis客户端成功了批量删除k

分布式锁在Spring Boot应用中的实现过程

《分布式锁在SpringBoot应用中的实现过程》文章介绍在SpringBoot中通过自定义Lock注解、LockAspect切面和RedisLockUtils工具类实现分布式锁,确保多实例并发操作... 目录Lock注解LockASPect切面RedisLockUtils工具类总结在现代微服务架构中,分布

Oracle查询表结构建表语句索引等方式

《Oracle查询表结构建表语句索引等方式》使用USER_TAB_COLUMNS查询表结构可避免系统隐藏字段(如LISTUSER的CLOB与VARCHAR2同名字段),这些字段可能为dbms_lob.... 目录oracle查询表结构建表语句索引1.用“USER_TAB_COLUMNS”查询表结构2.用“a

Spring Boot集成/输出/日志级别控制/持久化开发实践

《SpringBoot集成/输出/日志级别控制/持久化开发实践》SpringBoot默认集成Logback,支持灵活日志级别配置(INFO/DEBUG等),输出包含时间戳、级别、类名等信息,并可通过... 目录一、日志概述1.1、Spring Boot日志简介1.2、日志框架与默认配置1.3、日志的核心作用

破茧 JDBC:MyBatis 在 Spring Boot 中的轻量实践指南

《破茧JDBC:MyBatis在SpringBoot中的轻量实践指南》MyBatis是持久层框架,简化JDBC开发,通过接口+XML/注解实现数据访问,动态代理生成实现类,支持增删改查及参数... 目录一、什么是 MyBATis二、 MyBatis 入门2.1、创建项目2.2、配置数据库连接字符串2.3、入

Springboot项目启动失败提示找不到dao类的解决

《Springboot项目启动失败提示找不到dao类的解决》SpringBoot启动失败,因ProductServiceImpl未正确注入ProductDao,原因:Dao未注册为Bean,解决:在启... 目录错误描述原因解决方法总结***************************APPLICA编

SpringBoot多环境配置数据读取方式

《SpringBoot多环境配置数据读取方式》SpringBoot通过环境隔离机制,支持properties/yaml/yml多格式配置,结合@Value、Environment和@Configura... 目录一、多环境配置的核心思路二、3种配置文件格式详解2.1 properties格式(传统格式)1.