217 Star 2.7K Fork 1.5K

KonBAI / RuoYi-Flowable-Plus

 / 详情

无法正常发起流程

待办的
创建于  
2024-05-18 10:26

使用版本

  • RuoYi-Flowable-Plus-0.8x
  • jdk版本 V1.8.0_202
  • 框架版本 V2.7.11

问题前提

已经在搜索引擎和论坛找过解决方案,但没有对应问题。

异常模块

ruoyi-system

问题描述

该模块下WfProcessServiceImpl.java 的 selectFormContent 方法中的
FormConf formConf = JsonUtils.parseObject(deployForm.getContent(), FormConf.class);
返回的值与前端不匹配,所有关键属性全部为null,导致无法正常显示表单和发起流程。

希望结果

希望修复这个问题

流程表单content如下:

{
	"widgetList": [
		{
			"type": "input",
			"icon": "text-field",
			"formItemFlag": TRUE,
			"options": {
				"name": "input55734",
				"label": "名称",
				"labelAlign": "",
				"type": "text",
				"defaultValue": "",
				"placeholder": "",
				"columnWidth": "200px",
				"size": "",
				"labelWidth": NULL,
				"labelHidden": FALSE,
				"readonly": FALSE,
				"disabled": FALSE,
				"hidden": FALSE,
				"clearable": TRUE,
				"showPassword": FALSE,
				"required": FALSE,
				"requiredHint": "",
				"validation": "",
				"validationHint": "",
				"customClass": [
					
				],
				"labelIconClass": NULL,
				"labelIconPosition": "rear",
				"labelTooltip": NULL,
				"minLength": NULL,
				"maxLength": NULL,
				"showWordLimit": FALSE,
				"prefixIcon": "",
				"suffixIcon": "",
				"appendButton": FALSE,
				"appendButtonDisabled": FALSE,
				"buttonIcon": "el-icon-search",
				"onCreated": "",
				"onMounted": "",
				"onInput": "",
				"onChange": "",
				"onFocus": "",
				"onBlur": "",
				"onValidate": "",
				"onAppendButtonClick": ""
			},
			"id": "input55734"
		},
		{
			"type": "textarea",
			"icon": "textarea-field",
			"formItemFlag": TRUE,
			"options": {
				"name": "textarea99597",
				"label": "说明",
				"labelAlign": "",
				"rows": 3,
				"defaultValue": "",
				"placeholder": "",
				"columnWidth": "200px",
				"size": "",
				"labelWidth": NULL,
				"labelHidden": FALSE,
				"readonly": FALSE,
				"disabled": FALSE,
				"hidden": FALSE,
				"required": FALSE,
				"requiredHint": "",
				"validation": "",
				"validationHint": "",
				"customClass": "",
				"labelIconClass": NULL,
				"labelIconPosition": "rear",
				"labelTooltip": NULL,
				"minLength": NULL,
				"maxLength": NULL,
				"showWordLimit": FALSE,
				"onCreated": "",
				"onMounted": "",
				"onInput": "",
				"onChange": "",
				"onFocus": "",
				"onBlur": "",
				"onValidate": ""
			},
			"id": "textarea99597"
		},
		{
			"type": "select",
			"icon": "select-field",
			"formItemFlag": TRUE,
			"options": {
				"name": "select103530",
				"label": "类别",
				"labelAlign": "",
				"defaultValue": "",
				"placeholder": "",
				"columnWidth": "200px",
				"size": "",
				"labelWidth": NULL,
				"labelHidden": FALSE,
				"disabled": FALSE,
				"hidden": FALSE,
				"clearable": TRUE,
				"filterable": FALSE,
				"allowCreate": FALSE,
				"remote": FALSE,
				"automaticDropdown": FALSE,
				"multiple": FALSE,
				"multipleLimit": 0,
				"optionItems": [
					{
						"label": "select 1",
						"value": 1
					},
					{
						"label": "select 2",
						"value": 2
					},
					{
						"label": "select 3",
						"value": 3
					}
				],
				"required": FALSE,
				"requiredHint": "",
				"validation": "",
				"validationHint": "",
				"customClass": "",
				"labelIconClass": NULL,
				"labelIconPosition": "rear",
				"labelTooltip": NULL,
				"onCreated": "",
				"onMounted": "",
				"onRemoteQuery": "",
				"onChange": "",
				"onFocus": "",
				"onBlur": "",
				"onValidate": ""
			},
			"id": "select103530"
		}
	],
	"formConfig": {
		"modelName": "formData",
		"refName": "vForm",
		"rulesName": "rules",
		"labelWidth": 80,
		"labelPosition": "left",
		"size": "",
		"labelAlign": "label-left-align",
		"cssCode": "",
		"customClass": "",
		"functions": "",
		"layoutType": "PC",
		"onFormCreated": "",
		"onFormMounted": "",
		"onFormDataChange": ""
	}
}

返回前端代码如下:

{
    "code": 200,
    "msg": "操作成功",
    "data": {
        "title": null,
        "formRef": null,
        "formModel": null,
        "size": null,
        "labelPosition": null,
        "labelWidth": null,
        "formRules": null,
        "gutter": null,
        "disabled": false,
        "span": null,
        "formBtns": true,
        "fields": null
    }
}

评论 (0)

tóng 创建了任务
tóng 修改了描述
tóng 修改了描述
展开全部操作日志

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(1)
Java
1
https://gitee.com/KonBAI-Q/ruoyi-flowable-plus.git
git@gitee.com:KonBAI-Q/ruoyi-flowable-plus.git
KonBAI-Q
ruoyi-flowable-plus
RuoYi-Flowable-Plus

搜索帮助

344bd9b3 5694891 D2dac590 5694891