代码拉取完成,页面将自动刷新
已经在搜索引擎和论坛找过解决方案,但没有对应问题。
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
}
}