[go: up one dir, main page]

CN114327448A - Method for generating form nested container - Google Patents

Method for generating form nested container Download PDF

Info

Publication number
CN114327448A
CN114327448A CN202111391430.7A CN202111391430A CN114327448A CN 114327448 A CN114327448 A CN 114327448A CN 202111391430 A CN202111391430 A CN 202111391430A CN 114327448 A CN114327448 A CN 114327448A
Authority
CN
China
Prior art keywords
paragraph
data
field
subfield
engine
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111391430.7A
Other languages
Chinese (zh)
Other versions
CN114327448B (en
Inventor
李婷婷
薄智元
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Yixiao Information Technology Co ltd
Original Assignee
Shanghai Yixiao Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Yixiao Information Technology Co ltd filed Critical Shanghai Yixiao Information Technology Co ltd
Priority to CN202111391430.7A priority Critical patent/CN114327448B/en
Publication of CN114327448A publication Critical patent/CN114327448A/en
Application granted granted Critical
Publication of CN114327448B publication Critical patent/CN114327448B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Programmable Controllers (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention provides a method for generating a form nested container, which generates a form nested container-paragraph according to a form engine, a flow engine and a rendering engine; the paragraph generation method comprises the following steps: generating paragraph data; generating a paragraph control; the paragraph state is configured. The invention has the beneficial effects that: a dynamic form nesting container-paragraph is designed, and a form engine is endowed with the capability of managing fields in a fine-grained and batch mode. Meanwhile, because the fields of different classifications and different levels are nested, the pain point with single layout dimension of the form field is solved.

Description

一种表单嵌套容器的生成方法A Generating Method of Form Nested Container

技术领域technical field

本发明涉及计算机技术领域,特别涉及一种表单嵌套容器的生成方法。The invention relates to the technical field of computers, in particular to a method for generating form nested containers.

背景技术Background technique

根据Gartner(行业调研报告平台)预计,2021年市场对于应用开发的需求将五倍于IT公司的产能,这意味着市场需求和供给之间存在着极大的不平衡。同时传统的软件开发方式又有开发人力成本较高、项目周期长、需求转化率低、标准化低等痛点。为了解决这种产能不平衡和痛点,各种低代码/无代码平台纷纷应运而生,且都发展迅速。According to Gartner (industry research report platform), the market demand for application development in 2021 will be five times the production capacity of IT companies, which means that there is a great imbalance between market demand and supply. At the same time, the traditional software development method has the disadvantages of high development labor cost, long project cycle, low demand conversion rate, and low standardization. In order to solve this kind of capacity imbalance and pain points, various low-code/no-code platforms have emerged one after another, and all of them are developing rapidly.

低代码/无代码的核心功能之一表单引擎自然也随之快速升级,但当场景比较复杂,表单项较多时,普通的动态生成表单字段布局维度单一,难以管理。对于不同级别,不同分类的字段也没有较好的组织方式。The form engine, one of the core functions of low-code/no-code, is naturally upgraded quickly. However, when the scene is complex and there are many form items, the layout of the fields of the common dynamically generated form is single-dimensional and difficult to manage. For different levels, there is no better way to organize the fields of different categories.

有鉴于此,本发明基于表单引擎、流程引擎和渲染引擎,设计实现了一种动态表单嵌套容器—段落,赋予表单引擎细粒度批量管理字段的能力。同时因为对不同分类,不同级别的字段进行嵌套处理,也解决了表单字段布局维度单一的痛点。In view of this, the present invention designs and implements a dynamic form nested container-paragraph based on the form engine, the process engine and the rendering engine, which endows the form engine with the ability to manage fields in fine-grained batches. At the same time, because the fields of different categories and levels are nested, it also solves the pain point of the single dimension of the form field layout.

发明内容SUMMARY OF THE INVENTION

为了解决上述技术问题,本发明中披露了一种表单嵌套容器的生成方法,本发明的技术方案是这样实施的:In order to solve the above technical problems, the present invention discloses a method for generating form nested containers, and the technical scheme of the present invention is implemented as follows:

一种表单嵌套容器的生成方法,根据表单引擎、流程引擎和渲染引擎生成表单嵌套容器—段落;A method for generating a form nested container, which generates a form nested container-paragraph according to a form engine, a process engine and a rendering engine;

段落生成方法包括步骤如下:The paragraph generation method includes the following steps:

生成段落数据;在表单设计器左侧字段仓库中增加字段并命名为段落;拖拽段落到表单设计器中时,表单引擎计算拖拽位置,在整个表单对应的表单数据中新增一条段落数据。Generate paragraph data; add a field to the field warehouse on the left side of the form designer and name it a paragraph; when dragging a paragraph into the form designer, the form engine calculates the dragging position and adds a new paragraph data to the form data corresponding to the entire form .

生成段落控件;渲染引擎通过所述段落数据渲染出段落控件。A paragraph control is generated; the rendering engine renders the paragraph control through the paragraph data.

配置段落状态数据。在流程引擎的流程节点编辑页面增加段落配置组件,并通过所述段落配置组件配置段落状态,并发送请求到服务端,修改对应的表单数据。Configure paragraph state data. A paragraph configuration component is added to the process node editing page of the process engine, and the paragraph status is configured through the paragraph configuration component, and a request is sent to the server to modify the corresponding form data.

优选地,所述表单数据包括表单行数据;所述表单行数据包括表单列数据;所述表单列数据包括字段数据;所述字段数据包括段落数据。Preferably, the form data includes form row data; the form row data includes form column data; the form column data includes field data; and the field data includes paragraph data.

优选地,所述段落数据包括字段标题、字段类型、字段标识、字段模板标识、提示、是否可编辑、是否隐藏、数据类型、部门默认值、最大值、最小值表单标识、最大选项数、最小选项数、扫描类型、子字段宽度、子字段数组、是否验证标识、配置项数组、字段默认类型和是否展开标识。Preferably, the paragraph data includes field title, field type, field ID, field template ID, prompt, editable, hidden, data type, default value of department, maximum value, minimum value form ID, maximum number of options, minimum value Number of options, scan type, subfield width, subfield array, whether to validate the flag, configuration item array, field default type, and whether to expand the flag.

优选地,所述子字段数组的数据结构和所述表单数据相同。Preferably, the data structure of the subfield array is the same as that of the form data.

优选地,所述子字段数组包括段落的子字段数据;所述段落控件包括子字段控件。Preferably, the subfield array includes subfield data of the paragraph; the paragraph control includes a subfield control.

优选地,段落控件检测子字段的来源并根据来源的不同进行不同的处理。Preferably, the paragraph control detects the source of the subfield and performs different processing according to the source.

优选地,段落控件的功能包括复制子字段、删除子字段和移动子字段。Preferably, the functions of the paragraph control include copying subfields, deleting subfields and moving subfields.

优选地,所述段落配置组件包括默认状态选择器、批量状态选择器和展开收起状态选择器。Preferably, the paragraph configuration component includes a default state selector, a batch state selector, and an expand-collapse state selector.

优选地,默认状态选择器控制新增子字段时的默认状态;批量状态选择器可批量操作子字段状态;展开收起状态选择器控制段落的展开收起状态。Preferably, the default state selector controls the default state when adding a subfield; the batch state selector can operate the subfield states in batches; the expand/collapse state selector controls the expanded/collapsed state of the paragraph.

优选地,所述默认状态选择器和所述批量状态选择器都提供可编辑,仅可见和隐藏三个选项;展开收起状态选择器提供展开、收起两个选项。Preferably, both the default state selector and the batch state selector provide editable, visible and hidden options; the expand/collapse state selector provides two options: expand and collapse.

实施本发明的技术方案可解决现有技术中当场景比较复杂,表单项较多时,普通的动态生成表单字段布局维度单一,难以管理、对于不同级别,不同分类的字段也没有较好的组织方式的技术问题;实施本发明的技术方案,通过设计一种动态表单嵌套容器—段落,赋予表单引擎细粒度批量管理字段的能力。同时因为对不同分类,不同级别的字段进行嵌套处理,也解决了表单字段布局维度单一的痛点。Implementing the technical solution of the present invention can solve the problem in the prior art that when the scene is relatively complex and there are many form items, the field layout dimension of the common dynamically generated form is single, difficult to manage, and there is no better organization for different levels and different categories of fields. The technical problem of the present invention is implemented; by designing a dynamic form nested container-paragraph, the form engine is given the ability to manage fields in fine-grained batches. At the same time, because the fields of different categories and levels are nested, it also solves the pain point of the single dimension of the form field layout.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一种实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only It is an embodiment of the present invention. For those of ordinary skill in the art, other drawings can also be obtained according to these drawings without creative efforts.

其中相同的零部件用相同的附图标记表示。需要说明的是,下面描述中使用的词语前、后、左、右、上和下指的是附图中的方向,词语底面和顶面、内和外分别指的是朝向或远离特定部件几何中心的方向。Wherein the same parts are denoted by the same reference numerals. It should be noted that the terms front, rear, left, right, top and bottom used in the following description refer to directions in the drawings, and the terms bottom and top, inner and outer respectively refer to towards or away from a particular component geometry the direction of the center.

图1为实施例中建立段落的工作流程总图;Fig. 1 is the general view of the workflow of establishing paragraph in the embodiment;

图2为实施例中的表单引擎工作示意图;Fig. 2 is the working schematic diagram of the form engine in the embodiment;

图3为实施例中的流程引擎工作示意图;Fig. 3 is the schematic diagram of the process engine work in the embodiment;

图4为实施例中的渲染引擎工作示意图。FIG. 4 is a working schematic diagram of the rendering engine in the embodiment.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

实施例Example

在一种具体的实施例中,如图1、图2、图3和图4所示,一种表单嵌套容器的生成方法,根据表单引擎、流程引擎和渲染引擎生成表单嵌套容器—段落;In a specific embodiment, as shown in Fig. 1, Fig. 2, Fig. 3 and Fig. 4, a method for generating a form nested container generates a form nested container-paragraph according to a form engine, a process engine and a rendering engine ;

段落生成方法包括步骤如下:The paragraph generation method includes the following steps:

生成段落数据;在表单设计器左侧字段仓库中增加字段并命名为段落;拖拽段落到表单设计器中时,表单引擎计算拖拽位置,在整个表单对应的表单数据中新增一条段落数据。Generate paragraph data; add a field to the field warehouse on the left side of the form designer and name it a paragraph; when dragging a paragraph into the form designer, the form engine calculates the dragging position and adds a new paragraph data to the form data corresponding to the entire form .

所述表单数据包括表单行数据;所述表单行数据包括表单列数据;所述表单列数据包括字段数据;所述字段数据包括段落数据。所述段落数据包括字段标题、字段类型、字段标识、字段模板标识、提示、是否可编辑、是否隐藏、数据类型、部门默认值、最大值、最小值表单标识、最大选项数、最小选项数、扫描类型、子字段宽度、子字段数组、是否验证标识、配置项数组、字段默认类型和是否展开标识。所述子字段数组的数据结构和所述表单数据相同。所述子字段数组包括段落的子字段数据;所述段落控件包括子字段控件。The form data includes form row data; the form row data includes form column data; the form column data includes field data; and the field data includes paragraph data. The paragraph data includes field title, field type, field ID, field template ID, prompt, editable, hidden, data type, department default value, maximum value, minimum value form ID, maximum number of options, minimum number of options, Scan type, subfield width, subfield array, whether to validate the flag, configuration item array, field default type, and whether to expand the flag. The data structure of the subfield array is the same as that of the form data. The subfield array includes subfield data of the paragraph; the paragraph control includes a subfield control.

生成段落控件;渲染引擎通过所述段落数据渲染出段落控件。段落控件检测子字段的来源并根据来源的不同进行不同的处理。段落控件的功能包括复制子字段、删除子字段和移动子字段。A paragraph control is generated; the rendering engine renders the paragraph control through the paragraph data. The paragraph control detects the source of the subfield and handles it differently depending on the source. Paragraph control functions include copying subfields, deleting subfields, and moving subfields.

当子字段来源于左侧字段仓库的段落字段时,提示该段落字段不能添加到段落中;When the subfield comes from the paragraph field of the field warehouse on the left, it will prompt that the paragraph field cannot be added to the paragraph;

当子字段来源于左侧字段仓库的非段落字段时,计算拖拽位置,将该字段的数据添加到段落数据中子字段数组的对应位置;When the subfield comes from a non-paragraph field in the field warehouse on the left, calculate the drag and drop position, and add the data of this field to the corresponding position of the subfield array in the paragraph data;

当子字段来源于表单设计器的其他一级字段时,将表单数据中对应的字段数据删除,计算拖拽位置,再添加到段落数据的子字段数组中的对应位置;When the subfield comes from other first-level fields of the form designer, delete the corresponding field data in the form data, calculate the dragging position, and add it to the corresponding position in the subfield array of the paragraph data;

当子字段来源于表单设计器的其他子字段时,将该字段数据从当前段落数据的子字段数组中删除,计算拖拽位置,再添加到新段落数据的子字段数组中的对应位置;When the subfield comes from other subfields in the form designer, delete the field data from the subfield array of the current paragraph data, calculate the dragging position, and add it to the corresponding position in the subfield array of the new paragraph data;

当子字段来源于表单设计器的当前段落控件时,计算拖拽位置并将该字段数据在所述子字段数组中移动到对应位置。When the subfield is derived from the current paragraph control of the form designer, the drag position is calculated and the field data is moved to the corresponding position in the subfield array.

配置段落状态数据。在流程引擎的流程节点编辑页面增加段落配置组件,并通过所述段落配置组件配置段落状态,并发送请求到服务端,修改对应的表单数据。Configure paragraph state data. A paragraph configuration component is added to the process node editing page of the process engine, and the paragraph status is configured through the paragraph configuration component, and a request is sent to the server to modify the corresponding form data.

所述段落配置组件包括默认状态选择器、批量状态选择器和展开收起状态选择器。默认状态选择器控制新增子字段时的默认状态;批量状态选择器可批量操作子字段状态;展开收起状态选择器控制段落的展开收起状态。所述默认状态选择器和所述批量状态选择器都提供可编辑,仅可见和隐藏三个选项;展开收起状态选择器提供展开、收起两个选项。The paragraph configuration component includes a default state selector, a bulk state selector, and an expand-collapse state selector. The default state selector controls the default state when adding subfields; the batch state selector can operate the subfield states in batches; the expand/collapse state selector controls the expanded/collapsed state of a paragraph. Both the default state selector and the batch state selector provide editable, visible and hidden options; the expand/collapse state selector provides two options: expand and collapse.

在本实施例中,提供了段落控件的生成方法。包括:服务端根据应用标识和表单类型返回相应的表单数据;所述表单数据包括表单行数据,所述表单行数据包括表单列数据,表单列数据即为每个表单字段对应的数据;段落数据作为表单字段之一,还包括段落内部子字段数组和是否展开标识。所述内部子字段数组和前述表数据结构类似;In this embodiment, a method for generating a paragraph control is provided. Including: the server returns corresponding form data according to the application identifier and the form type; the form data includes form row data, the form row data includes form column data, and the form column data is the data corresponding to each form field; paragraph data As one of the form fields, it also includes an array of subfields within the paragraph and whether to expand the flag. The internal subfield array is similar to the aforementioned table data structure;

所述是否展开标识包括:展开,收起。The indicating whether to expand or not includes: expanding and collapsing.

所述任何字段数据都包括字段状态数据。The any field data includes field status data.

所诉字段状态数据包括:可编辑,仅可见,隐藏。The stated field status data includes: editable, visible only, hidden.

本实施例提供了段落字段数据生成方法。包括:表单引擎依据客户端用户权限,控制字段仓库中段落字段的显示状态;拖拽段落字段到表单设计器中,所述表单引擎计算拖拽位置,在表单数据中对应位置增加所述表单列数据,即为段落字段数据,并同步的在表单设计器中生成段落控件;通过段落控件中的标题、提示等文本控件,修改段落数据中的标题,提示。This embodiment provides a method for generating paragraph field data. Including: the form engine controls the display state of the paragraph field in the field warehouse according to the user authority of the client; dragging the paragraph field to the form designer, the form engine calculates the dragging position, and adds the form column to the corresponding position in the form data The data is the paragraph field data, and the paragraph control is generated in the form designer synchronously; the title and prompt in the paragraph data are modified through the text controls such as the title and prompt in the paragraph control.

可选的,复制表单设计器中已存在段落字段,在表单设计器中前述已存在段落的下面生成新段落控件并在表单数据对应位置新增段落字段数据;所述段落字段的标题,提示及子字段数据会被同步复制,并在表单设计器中同步生成对应字段控件。Optionally, copy an existing paragraph field in the form designer, generate a new paragraph control below the aforementioned existing paragraph in the form designer, and add paragraph field data in the corresponding position of the form data; the title, prompt and Subfield data will be replicated synchronously, and corresponding field controls will be generated synchronously in the form designer.

可选的,从所述字段仓库中拖拽非段落字段到段落控件中,在所述段落控件的拖拽位置新增段落子字段控件,并在段落数据的内部子字段数据的对应位置中新增子字段数据。Optionally, drag a non-paragraph field from the field warehouse to the paragraph control, add a paragraph subfield control in the dragging position of the paragraph control, and add a new paragraph subfield control in the corresponding position of the internal subfield data of the paragraph data. Increment subfield data.

可选的,拖拽表单设计器中的一级非段落字段进入段落控件中,在所述段落控件的拖拽位置新增段落子字段控件,并在段落数据的内部子字段数据的对应位置中新增子字段数据,同时删除原数据。原字段配置数据同步到新字段数据中。Optionally, drag a first-level non-paragraph field in the form designer into the paragraph control, add a paragraph subfield control in the dragging position of the paragraph control, and add a paragraph subfield control in the corresponding position of the internal subfield data of the paragraph data. Add subfield data and delete the original data at the same time. The original field configuration data is synchronized to the new field data.

可选的,拖拽当前段落控件中的子字段控件到当前段落控件的其他位置,移动所述段落数据的内部子字段数据到对应位置。Optionally, drag the subfield control in the current paragraph control to another position of the current paragraph control, and move the internal subfield data of the paragraph data to the corresponding position.

可选的,拖拽其他段落控件中的子字段控件到当前段落控件中,在当前段落控件的拖拽位置新增段落子字段控件,并在当前段落数据的内部子字段数据的对应位置中新增子字段数据,同时删除原数据。原字段配置数据同步到新字段数据中。Optionally, drag subfield controls in other paragraph controls to the current paragraph control, add a paragraph subfield control at the dragging position of the current paragraph control, and add a new paragraph subfield control in the corresponding position of the internal subfield data of the current paragraph data. Add subfield data and delete the original data at the same time. The original field configuration data is synchronized to the new field data.

本实施例提供了段落状态数据配置方法。包括:在流程引擎的流程节点编辑页面增加段落配置组件;所述段落配置组件包括默认状态选择器;批量状态选择器;展开收起状态选择器;不同的状态选择器控制不同的状态数据;This embodiment provides a method for configuring paragraph state data. Including: adding a paragraph configuration component on the process node editing page of the process engine; the paragraph configuration component includes a default state selector; a batch state selector; expand and collapse state selectors; different state selectors control different state data;

S101:表单引擎段落组件,如图2;S101: form engine paragraph component, as shown in Figure 2;

其中,段落组件主要分为两个部分,第一部分为表单引擎增加段落字段;Among them, the paragraph component is mainly divided into two parts, the first part adds a paragraph field to the form engine;

具体的,在表单设计器左侧字段仓库中增加名为段落的高级字段,拖拽该字段到表单设计器中时,表单引擎会计算拖拽位置,在当前字段类型在表单数据的对应位置中新增一条默认的段落数据。所述段落数据的属性包括但不限于以下内容:字段标题、字段类型、字段标识、字段模板标识、提示、是否可编辑、是否隐藏、数据类型、部门默认值、最大值、最小值表单标识、最大选项数、最小选项数、扫描类型、子字段宽度、子字段数组、是否验证标识、配置项数组、字段默认类型、流程状态等。Specifically, an advanced field named paragraph is added to the field warehouse on the left side of the form designer. When dragging and dropping the field into the form designer, the form engine will calculate the dragging position, and the current field type is in the corresponding position of the form data. Add a default paragraph data. The attributes of the paragraph data include but are not limited to the following: field title, field type, field identification, field template identification, prompt, whether to edit, whether to hide, data type, department default value, maximum value, minimum value form identification, Maximum number of options, minimum number of options, scan type, subfield width, subfield array, whether to verify the flag, configuration item array, field default type, process status, etc.

段落组件的第二部分为表单引擎增加段落控件;The second part of the paragraph component adds paragraph controls to the form engine;

具体的,段落控件处理所述段落数据,在页面渲染对应的HTML元素。Specifically, the paragraph control processes the paragraph data, and renders corresponding HTML elements on the page.

具体的,段落控件检查子字段的来源,进行不同类型的处理;Specifically, the paragraph control checks the source of the subfield and performs different types of processing;

示例性的,当子字段是来源于左侧字段仓库的段落字段时,弹窗提示段落字段不能添加到段落字段中。Exemplarily, when the subfield is a paragraph field from the left field warehouse, a pop-up window prompts that the paragraph field cannot be added to the paragraph field.

示例性的,当子字段是来源于左侧字段仓库的非段落字段时,计算拖拽位置,将所述字段数据添加到段落数据的子字段数组中的对应位置。Exemplarily, when the subfield is a non-paragraph field from the left field warehouse, the dragging position is calculated, and the field data is added to the corresponding position in the subfield array of the paragraph data.

示例性的,当子字段是来自表单设计器的其他一级字段时,将表单数据中的所述字段数据删除,计算拖拽位置,再添加到段落数据的子字段数据中的对应位置。设置子字段数据的sectionId(段落标识)为当前段落的id(唯一标识)。Exemplarily, when the subfield is another first-level field from the form designer, the field data in the form data is deleted, the dragging position is calculated, and then added to the corresponding position in the subfield data of the paragraph data. Set the sectionId (section ID) of the subfield data to the id (unique ID) of the current section.

示例性的,当子字段是来自表单设计器的其他段落子字段时,将所述字段数据从当前段落数据子字段数组中删除,计算拖拽位置,再添加到新段落数据的子字段数据中的对应位置。修改子字段数据的sectionId(段落标识)为当前段落的id(唯一标识)。Exemplarily, when the subfield is another paragraph subfield from the form designer, the field data is deleted from the subfield array of the current paragraph data, the drag position is calculated, and then added to the subfield data of the new paragraph data the corresponding location. Modify the sectionId (section identifier) of the subfield data to the id (unique identifier) of the current paragraph.

示例性的,当子字段来自表单设计器的当前段落控件时,计算拖拽位置将所述字段结构数据的在数组中移动到对应位置。Exemplarily, when the subfield comes from the current paragraph control of the form designer, the drag position is calculated to move the field structure data to the corresponding position in the array.

具体的,段落控件有和表单引擎相同的复制、删除、移动子字段的功能;Specifically, the paragraph control has the same functions of copying, deleting, and moving subfields as the form engine;

具体实施时,点击某子字段,则该子字段为当前活动字段。活动字段展示复制、删除按钮。点击复制按钮,复制子字段到所述子字段之后。点击删除按钮,提示是否确认删除,确认删除后删除当前子字段。During the specific implementation, if a subfield is clicked, the subfield is the current active field. The active field displays copy and delete buttons. Click the Copy button to copy the subfield after said subfield. Click the delete button to prompt whether to confirm the deletion. After confirming the deletion, delete the current subfield.

当活动字段的不是第一行字段且上一行的字段少于四列且活动字段非图片选择,定位,表格字段且上一行的第一个字段也非图片选择,定位,表格字段时,显示上移按钮,点击可使当前活动字段上移一行。When the active field is not the first row field and the field in the previous row is less than four columns and the active field is not a picture selection, positioning, table field and the first field of the previous row is also not a picture selection, positioning, table field, the above will be displayed. Move button, click to move the currently active field up one line.

当前活动字段不是前行的最后一列时,显示右移按钮,点击可使当前字段右移一列,当前活动字段的下一列左移一列。When the currently active field is not the last column of the previous row, the right-shift button is displayed. Click to move the current field one column to the right, and the next column of the current active field to move one column to the left.

当前活动字段所在行的列数大于1时,显示下移按钮,点击可使当前字段下移一行。When the number of columns in the row where the current active field is located is greater than 1, the Move Down button is displayed. Click to move the current field down one row.

当前活动字段非当前行的第一列时,显示左移按钮,点击可使当前字段左移一列,当前活动字段的上一列右移一列。When the currently active field is not the first column of the current row, the Move Left button is displayed, click to move the current field one column to the left, and the previous column of the current active field to move one column to the right.

S102流程引擎段落状态组件,如图3;S102 Process Engine Paragraph Status Component, as shown in Figure 3;

其中,子字段不为表格字段时,显示编辑遮罩和字段状态选择器。Among them, when the subfield is not a table field, the edit mask and field state selector are displayed.

具体的,字段状态选择器有三种状态按钮,可编辑,仅可见,隐藏。以此控制应用使用时,所述字段在当前流程节点的编辑及显示状态。当子字段为描述字段或者当前流程节点为抄送节点时,不显示可编辑按钮。Specifically, the field state selector has three state buttons, editable, visible only, and hidden. In this way, when the application is used, the editing and display states of the fields in the current process node are controlled. When the subfield is a description field or the current process node is a CC node, the editable button is not displayed.

示例的,当子字段为表格字段时,显示编辑遮罩和表格状态编辑按钮。点击表格状态编辑按钮,进入表格权限弹窗,进行表格权限管理,包括新增行,编辑已有行,删除已有行。所述表格子字段权限有批量状态选择器和每个字段的字段状态选择器,可进行批量或单个字段的状态选择。For example, when the subfield is a table field, the edit mask and table state edit buttons are displayed. Click the table status edit button to enter the table permission pop-up window to manage table permissions, including adding new rows, editing existing rows, and deleting existing rows. The table subfield authority includes a batch state selector and a field state selector for each field, which can be used for batch or single field state selection.

具体的,当前流程节点的状态为隐藏状态时,只显示遮罩。Specifically, when the state of the current process node is the hidden state, only the mask is displayed.

其中,移动鼠标至段落头部元素上时,显示段落控制组件。Among them, when the mouse is moved to the paragraph head element, the paragraph control component is displayed.

具体的,段落控制组件分为三部分,分别为默认状态选择器,批量状态选择器,展开收起状态选择器。默认状态选择器和批量状态选择器都是字段状态选择器,前者控制段落内新增字段时默认分配的字段状态,后者控制段落所有子字段的字段状态。展开收起状态选择器设置段落的展开收起状态。Specifically, the paragraph control component is divided into three parts, namely the default state selector, the batch state selector, and the expand/collapse state selector. Both the default state selector and the batch state selector are field state selectors. The former controls the field state assigned by default when a new field is added in the paragraph, and the latter controls the field state of all subfields in the paragraph. Expand Collapse State Selector Sets the expanded collapse state of the paragraph.

S103渲染引擎段落组件;S103 rendering engine paragraph component;

其中,用户所在流程节点,以及所述流程引擎中编辑的流程节点对应段落相关状态,决定是否在表单中渲染段落控件,如图4。The process node where the user is located and the process node edited in the process engine correspond to the relevant state of the paragraph, and determine whether to render the paragraph control in the form, as shown in FIG. 4 .

示例性的,当前节点段落不是隐藏状态时,渲染段落控件,每个子字段的状态决定是否渲染当前子字段,以及渲染状态,默认值,提示,关联数据等。Exemplarily, when the current node paragraph is not in the hidden state, the paragraph control is rendered, and the state of each subfield determines whether to render the current subfield, as well as the rendering state, default value, prompt, associated data, etc.

需要指出的是,以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。It should be pointed out that the above are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be Included in the protection scope of the present invention.

Claims (10)

1. A method for generating a form nested container is characterized in that a form nested container-paragraph is generated according to a form engine, a flow engine and a rendering engine;
the paragraph generation method comprises the following steps:
generating paragraph data; adding fields in a field warehouse on the left side of the form designer and naming the fields as paragraphs; when the paragraph is dragged to the form designer, the form engine calculates the dragging position, and a new paragraph data is added in the form data corresponding to the whole form.
Generating a paragraph control; and rendering the paragraph control by the rendering engine through the paragraph data.
Paragraph state data is configured. And adding a paragraph configuration component on a process node editing page of the process engine, configuring the paragraph state through the paragraph configuration component, and sending a request to the server to modify the corresponding form data.
2. The method of claim 1, wherein the form data comprises form line data; the form row data comprises form column data; the form column data comprises field data; the field data includes paragraph data.
3. The method of claim 2, wherein the paragraph data comprises a field header, a field type, a field identifier, a field template identifier, a hint, whether editable, whether hidden, a data type, a department default, a maximum, a minimum form identifier, a maximum number of options, a minimum number of options, a scan type, a subfield width, a subfield array, whether verified, a configuration array, a field default type, and whether expanded.
4. The method of claim 3, wherein the subfield array has the same data structure as the form data.
5. The method of claim 4, wherein the subfield array comprises subfield data of paragraphs; the paragraph control includes a sub-field control.
6. The method of claim 5, wherein the paragraph control detects the source of the sub-field and performs different processing according to the source.
7. The method of claim 6, wherein the functions of the paragraph control include a copy subfield, a delete subfield, and a move subfield.
8. The method of claim 7, wherein the paragraph configuration component comprises a default state selector, a batch state selector, and an expand-collapse state selector.
9. The method of claim 8, wherein the default state selector controls the default state of the new sub-field; the batch status selector may operate the sub-field status in batches; the deployment stowed state selector controls the deployment stowed state of the paragraph.
10. The method of claim 9, wherein the default state selector and the batch state selector both provide editable, only three options being visible and hidden; the unfolding and folding state selector provides two options of unfolding and folding.
CN202111391430.7A 2021-11-23 2021-11-23 A method for generating nested form containers Active CN114327448B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111391430.7A CN114327448B (en) 2021-11-23 2021-11-23 A method for generating nested form containers

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111391430.7A CN114327448B (en) 2021-11-23 2021-11-23 A method for generating nested form containers

Publications (2)

Publication Number Publication Date
CN114327448A true CN114327448A (en) 2022-04-12
CN114327448B CN114327448B (en) 2025-03-21

Family

ID=81047236

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111391430.7A Active CN114327448B (en) 2021-11-23 2021-11-23 A method for generating nested form containers

Country Status (1)

Country Link
CN (1) CN114327448B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106598924A (en) * 2016-10-28 2017-04-26 深圳前海微众银行股份有限公司 Form generation method and device
US10459962B1 (en) * 2018-09-19 2019-10-29 Servicenow, Inc. Selectively generating word vector and paragraph vector representations of fields for machine learning
CN110929489A (en) * 2019-11-18 2020-03-27 有时数联科技(北京)有限公司 Form generation and form data processing method and system
CN112905183A (en) * 2019-12-04 2021-06-04 广州凡科互联网科技股份有限公司 External data conversion mapping method for flow form

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106598924A (en) * 2016-10-28 2017-04-26 深圳前海微众银行股份有限公司 Form generation method and device
US10459962B1 (en) * 2018-09-19 2019-10-29 Servicenow, Inc. Selectively generating word vector and paragraph vector representations of fields for machine learning
CN110929489A (en) * 2019-11-18 2020-03-27 有时数联科技(北京)有限公司 Form generation and form data processing method and system
CN112905183A (en) * 2019-12-04 2021-06-04 广州凡科互联网科技股份有限公司 External data conversion mapping method for flow form

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
彭志锋: "基于J2EE的通用电子表单系统的研究与实现", 《中国优秀硕士论文电子期刊网》, 31 December 2006 (2006-12-31) *

Also Published As

Publication number Publication date
CN114327448B (en) 2025-03-21

Similar Documents

Publication Publication Date Title
CN109614424B (en) Page layout generation method, device, computing equipment and medium
US11960512B2 (en) Identifying and graphically representing multiple parent nodes of a child node
CN109408764B (en) Page area dividing method, device, computing equipment and medium
WO2018205869A1 (en) Form self-defined method and device
KR20080042885A (en) Browse Mode Designer
US11733973B2 (en) Interactive graphic design system to enable creation and use of variant component sets for interactive objects
JPWO2008132977A1 (en) Image editing apparatus and image editing system
US11829393B2 (en) Graphically representing related record families using a phantom parent node
US6885367B1 (en) Three-dimensional model management system
JP2008203912A (en) Screen creation apparatus and method, and program
CN109783596B (en) ArcGIS map configuration preview method based on Angular component
JPH07219754A (en) Request definition support device using screen transition diagram
CN114327448A (en) Method for generating form nested container
JP5183571B2 (en) Circuit diagram editing apparatus and circuit diagram editing program
JP4582701B2 (en) Screen creation method, apparatus, and program
CN115827809A (en) Method and device for generating Geographic Information System (GIS) application
CN114860223B (en) Interactive editing frame, interactive object generation method and electronic equipment
JP3476688B2 (en) Netlist generation method and netlist generation device
JP7651400B2 (en) DESIGN ASSISTANCE DEVICE, CONTROL METHOD, AND PROGRAM
US12373172B2 (en) Interactive graphic design system to enable creation and use of variant component sets for interactive objects
JP7298413B2 (en) Operation screen creation device, operation screen creation method and program
CN116306552A (en) A method, device, electronic device and storage medium for automatic report generation
CN118742899A (en) Method for modeling engineering design components using drawings and constraints
JPH03235124A (en) Rule base constructing system
JP2902856B2 (en) Data entry editing device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant