CN116069319A - Form rendering method and device, electronic equipment and storage medium - Google Patents

Form rendering method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN116069319A
CN116069319A CN202310035757.3A CN202310035757A CN116069319A CN 116069319 A CN116069319 A CN 116069319A CN 202310035757 A CN202310035757 A CN 202310035757A CN 116069319 A CN116069319 A CN 116069319A
Authority
CN
China
Prior art keywords
field
rendered
rendering
target
component
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.)
Pending
Application number
CN202310035757.3A
Other languages
Chinese (zh)
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.)
Digital Guangdong Network Construction Co Ltd
Original Assignee
Digital Guangdong Network Construction 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 Digital Guangdong Network Construction Co Ltd filed Critical Digital Guangdong Network Construction Co Ltd
Priority to CN202310035757.3A priority Critical patent/CN116069319A/en
Publication of CN116069319A publication Critical patent/CN116069319A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/26Government or public services

Abstract

The embodiment of the invention discloses a form rendering method, a form rendering device, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring form fields to be rendered of government service form data; determining a target rendering component matched with the form field to be rendered according to the mapping relation of the custom field component of the form field to be rendered; and carrying out multi-terminal rendering processing on the form field to be rendered according to the target rendering component to obtain a target government service form type. The technical scheme of the embodiment of the invention can realize multi-terminal personalized rendering of the government service form, and improves the development efficiency of the government service form.

Description

Form rendering method and device, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computer software application, in particular to a form rendering method, a form rendering device, electronic equipment and a storage medium.
Background
In the process of conducting on-line application of matters in the government service system, people need to fill in the government service form. The form information that needs to be filled out for different government service matters is also different, so that a developer needs to develop a personalized form for each matter.
Currently, a developer needs to develop a set of form codes for each government service item in a government service system. If the presentation is supported at a PC (personal computer ) terminal/applet terminal/mobile terminal or the like, it is also necessary to customize the open form code for each terminal, which reduces the work efficiency of the developer.
Disclosure of Invention
The embodiment of the invention provides a form rendering method, a form rendering device, electronic equipment and a storage medium, which can realize multi-terminal personalized rendering of government service forms and improve the development efficiency of government service forms.
According to an aspect of the present invention, there is provided a form rendering method including:
acquiring form fields to be rendered of government service form data;
determining a target rendering component matched with the form field to be rendered according to the mapping relation of the custom field component of the form field to be rendered;
and carrying out multi-terminal rendering processing on the form field to be rendered according to the target rendering component to obtain a target government service form type.
According to another aspect of the present invention, there is provided a form rendering apparatus including:
the to-be-rendered form field acquisition module is used for acquiring to-be-rendered form fields of government service form data;
the target rendering component determining module is used for determining a target rendering component matched with the form field to be rendered according to the mapping relation of the custom field component of the form field to be rendered;
and the to-be-rendered form field rendering module is used for performing multi-end rendering processing on the to-be-rendered form field according to the target rendering component to obtain a target government service form type.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the liquid crystal display device comprises a liquid crystal display device,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the form rendering method of any one of the embodiments of the present invention.
According to another aspect of the present invention, there is provided a computer readable storage medium storing computer instructions for causing a processor to implement a form rendering method according to any one of the embodiments of the present invention when executed.
According to the technical scheme, the to-be-rendered form field of the government service form data is firstly obtained, then the target rendering component matched with the to-be-rendered form field is determined according to the mapping relation of the custom field component of the to-be-rendered form field, finally multi-terminal rendering processing is carried out on the to-be-rendered form field according to the target rendering component, the target government service form type is obtained, the problem that a developer needs to repeatedly develop aiming at multi-terminal display in the process of manufacturing the government service form is solved, multi-terminal personalized rendering of the government service form can be achieved, and the development efficiency of the government service form is improved.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a form rendering method according to a first embodiment of the present invention;
FIG. 2 is a flowchart of another form rendering method according to a second embodiment of the present invention;
FIG. 3 is a schematic diagram of a form editor according to a second embodiment of the present invention;
fig. 4 is a schematic diagram of a business process according to a second embodiment of the present invention;
fig. 5 is a schematic diagram of a rendering effect of a mobile end government service form according to a second embodiment of the present invention;
FIG. 6 is a schematic diagram of a form rendering apparatus according to a third embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "comprises" and "comprising," along with any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed or inherent to such process, method, article, or apparatus.
Example 1
Fig. 1 is a flowchart of a form rendering method provided in an embodiment of the present invention, where the embodiment of the present invention is applicable to a case of performing multi-terminal personalized rendering on form fields of government service form data in a government service system, the method may be performed by a form rendering device, and the device may be implemented by software and/or hardware, and may generally be integrated in an electronic device, where the electronic device may be a terminal device or a server device, and the embodiment of the present invention does not limit a specific device type of the electronic device. Accordingly, as shown in fig. 1, the method includes the following operations:
s110, acquiring form fields to be rendered of government service form data.
The government service form data can be used for recording government service data in a government service system and is displayed in a form. The form fields to be rendered may be form elements in a government service form.
In the embodiment of the invention, the to-be-rendered form field of the government service form data is firstly obtained, and the government service form data can be the json schema form government service form data and can comprise a plurality of to-be-configured rendered forms. The government affair to-be-rendered form field may include a single line input field, a multiple line input field, a single selection field, etc. in the form.
S120, determining a target rendering component matched with the form field to be rendered according to the mapping relation of the custom field component of the form field to be rendered.
The mapping relationship of the custom field component can be an association relationship which is established by a developer according to the actual requirement of the service and used for representing the rendering component and the form field. The target rendering component may be a component for implementing rendering processing of form fields of a government service form.
In the embodiment of the invention, a target rendering component matched with the form field to be rendered is determined according to the mapping relation between the form field to be rendered and the rendering component. Illustratively, assuming that the form field to be rendered may be a radio field of the form field to be rendered, the target rendering component that matches the radio field of the form field to be rendered can be determined to be an "el-radio" based on the mapping relationship between the radio field of the form field to be rendered and the custom field component.
S130, performing multi-terminal rendering processing on the to-be-rendered form field according to the target rendering component to obtain a target government service form type.
The target government form type may be a government service form suitable for multi-terminal display, among others.
According to the embodiment of the invention, the target government service form type can be obtained by performing multi-terminal rendering processing on the form field to be rendered according to the determined target rendering component. The target government service form may be displayed on the PC side, or on the applet side, or on the mobile side, or the like, as long as the display requirement of the service form is met, and the embodiment of the invention does not limit the display type of the target government service form.
According to the technical scheme, the to-be-rendered form field of the government service form data is firstly obtained, then the target rendering component matched with the to-be-rendered form field is determined according to the mapping relation of the custom field component of the to-be-rendered form field, finally multi-terminal rendering processing is carried out on the to-be-rendered form field according to the target rendering component, the target government service form type is obtained, the problem that a developer needs to repeatedly develop aiming at multi-terminal display in the process of manufacturing the government service form is solved, multi-terminal personalized rendering of the government service form can be achieved, and the development efficiency of the government service form is improved.
Example two
Fig. 2 is a flowchart of another form rendering method according to a second embodiment of the present invention, where the present embodiment is implemented based on the foregoing embodiment, and in the present embodiment, various specific alternative implementations of performing multi-end rendering processing on a to-be-rendered form field according to a target rendering component are given. Accordingly, as shown in fig. 2, the method of this embodiment may include:
s210, generating a matched field configuration specification data table of the government service form data.
S220 and configuring field configuration description information of the form field to be rendered according to the field configuration specification data table. Wherein the field configuration description information includes at least one of a field title, a field name, a field hiding attribute, a field display attribute, and field association logic.
The field configuration specification data table may be a set of table configuration paradigm definitions for describing data exchange formats of any complex data structure. The field configuration description information may be attribute information for describing fields in a government service form including, but not limited to, field titles, field names, field hiding attributes, field display attributes, and field association logic.
In the embodiment of the invention, a field configuration specification data table matched with government service form data is firstly obtained, and then field configuration description information of the form fields to be rendered is configured according to the field configuration specification data table.
In a specific example, firstly, a field configuration specification data table form json schema matched with government service form data is generated, and then field configuration description information of the form fields to be rendered is generated according to the field configuration specification data table form json schema. Illustratively, the field types of the fields of the form to be rendered are configured according to the field configuration specification data table form json schema, and the type can be obtained: "string"; configuring a rendering component of a form field to be rendered according to a field configuration specification data table form json schema, so that an x-component: "string" can be obtained; and configuring the form title of the form field to be rendered according to the field configuration specification data table form json schema, so as to obtain title: "name".
S230, performing visual configuration on the form field to be rendered through a form editor.
S240, configuring the association relation among the form fields to be rendered through the form editor.
The form editor may be an editor for customizing components, and has rich layout components, form components, business components, and the like. The association between the form fields to be rendered may be a linkage between fields in a form for representing government services.
In the embodiment of the invention, the visual configuration is carried out on the to-be-rendered form fields through the form editor, and after the configuration of the to-be-rendered form fields is completed, the association relationship between the to-be-rendered form fields is configured through the form editor. For example, the association relationship between the name field and the native through field in the form to be rendered can be configured through a form editor form-editor, and when the value in the name field meets a certain threshold, the native through field can be displayed or hidden.
Fig. 3 is a schematic diagram of a form editor provided in a second embodiment of the present invention, as shown in fig. 3, a form editor form-editor may be used to perform visual configuration on a single-line input field, a multi-line input field, a single-selection drop-down frame field, a sliding bar field, etc. in a form to be rendered, and after completing visual configuration on the form field to be rendered, the form editor form-editor may be used to perform configuration on an association relationship between form fields to be rendered.
S250, acquiring form fields to be rendered of government service form data.
S260, determining a target rendering component matched with the form field to be rendered according to the mapping relation of the custom field component of the form field to be rendered.
In the embodiment of the invention, a to-be-rendered form field of government service form data is firstly obtained, and then a target rendering component matched with the to-be-rendered form field is determined according to the mapping relation of the custom field component of the to-be-rendered form field.
S270, performing multi-terminal rendering processing on the to-be-rendered form field according to the target rendering component to obtain a target government service form type.
The target government service form type can be a target government service form displayed on the small program side, a target government service form displayed on the PC side or a target government service form displayed on the mobile side.
In an optional embodiment of the present invention, the performing multi-end rendering processing on the to-be-rendered form field according to the target rendering component may include: determining a rendering method of a rendering library component of multi-end rendering processing; and performing multi-terminal rendering processing on the to-be-rendered form field according to the target rendering component by the rendering library component rendering method.
Among other things, the rendering library component rendering method may be a method for providing rendering operations on a form field.
In a specific example, assuming that the form field to be rendered may be the input box field "string", then the form rendering library form-render and ui (User Interface) theme library render-the-element-ui automatically matches to the rendering component "el-input" corresponding to the input box field and renders the input box field. In order to implement the custom configuration of the form field, multi-end rendering processing is required for the input box field "string". The rendering library component rendering method that first determines the multi-segment rendering process may be the setComponent method provided by the rendering library and the target rendering component may be "my-input". The "my-input" target rendering component may be implemented to perform multi-segment rendering operations on the "string" input box field by setComponent ("string", "my-input").
In an optional embodiment of the present invention, the performing multi-end rendering processing on the to-be-rendered form field according to the target rendering component may include: determining the field type of the form field to be rendered and the field type of the target rendering component; and under the condition that the field type of the to-be-rendered form field is not matched with the field type of the target rendering component, trowelling the field value of the target rendering component according to the field value of the to-be-rendered form field.
The field type of the form to be rendered field may be a field type included in the form to be rendered field, and the field type of the target rendering component may be a field type included in the target rendering component.
In one specific example, assuming that vant-ui can be determined as the ui subject library, a drop down selection component can be selected for rendering. Then, the field types of the form fields to be rendered may be the label and value fields, and the field types of the target rendering components vant-ui may be the key and value fields. If the field type of the to-be-rendered form field is not matched with the field type of the target rendering component, rendering processing must report errors, so that component abnormality occurs. Therefore, in the case that the field type of the to-be-rendered form field does not match the field type of the target rendering component, the field value of the target rendering component needs to be smoothed according to the field value of the to-be-rendered form field.
In a specific embodiment, the field type of the form field to be rendered includes a tag field and a value field; the field type of the target rendering component comprises a key field and a value field; the trowelling the field value of the target rendering component according to the field value of the form field to be rendered may include: performing trowelling processing on the key fields of the target rendering component according to the value fields of the form fields to be rendered; and trowelling the value field of the target rendering component according to the label field of the form field to be rendered.
Continuing with the above example, the field types of the form fields to be rendered may be the label and value fields, and the field types of the target rendering component vant-ui may be the key and value fields. Under the condition that the field type of the to-be-rendered form field is not matched with the field type of the target rendering component, the key field key of the target rendering component is required to be smoothed according to the value field value of the to-be-rendered form field, and then the value field vlue of the target rendering component is smoothed according to the label field label of the to-be-rendered form field.
In the conventional government service form development mode, a form corresponding to a government service item is generally customized for each item by writing codes, and if a multi-terminal rendering requirement exists on a project side, a set of form codes needs to be customized and developed for each terminal. The traditional government service form development firstly needs on-site implementation personnel to collect off-line forms for product personnel, and the government service form can be a user information collection form as an example. After the product personnel obtain the form, drawing an online form prototype according to the offline form and synchronizing the online form prototype with the developer and the tester. And finally, writing government service form codes according to the form prototype by a developer, and after the test is finished, releasing the form and putting the form on line. If the follow-up needs to modify some functions of the form, the complete development flow of the traditional government service form needs to be walked again to realize the update operation of the form, so that the development efficiency is greatly reduced.
Fig. 4 is a schematic diagram of a business process provided in the second embodiment of the present invention, as shown in fig. 4, an implementation person may use a form editor form-editor to configure form fields of government service form data, generate a field configuration specification data table json schema, and store the field configuration specification data table json schema in a database of a government service system. And the developer renders the form fields of the government service form data by utilizing the json schema of the generated field configuration specification data table and the form rendering library form-render, and finally achieves multi-terminal personalized rendering of the government service form fields.
Fig. 5 is a schematic diagram of a rendering effect of a mobile terminal government service form according to a second embodiment of the present invention, and as shown in fig. 5, a developer performs rendering processing on a rich text editor field, a single-line input field, a multi-line input field, a digital input field, a switch field and a single-box field in form fields of government service form data by using a generated field configuration specification data table json schema and a form rendering library form-render, and finally achieves mobile terminal personalized rendering of the government service form fields.
In the technical scheme of the embodiment of the invention, a field configuration specification data table matched with government service form data is firstly generated, field configuration description information of form fields to be rendered is configured according to the field configuration specification data table, and then visual configuration is carried out on the form fields to be rendered through a form editor and association relations among the form fields to be rendered are configured. After configuration is completed, form fields to be rendered of government service form data are obtained, a target rendering component for matching the form fields to be rendered is determined according to the mapping relation of user-defined field components of the form fields to be rendered, multi-terminal rendering processing is carried out on the form fields to be rendered according to the target rendering component, the target government service form types are obtained, the problem that developers need to repeatedly develop multi-terminal display in the process of manufacturing the government service form is solved, and multi-terminal personalized rendering of the government service form fields can be achieved through matching a set of field configuration specification data tables with different ui main question libraries.
Example III
Fig. 6 is a schematic diagram of a form rendering apparatus according to a third embodiment of the present invention, as shown in fig. 6, where the apparatus includes: a to-be-rendered form field acquisition module 310, a target rendering component determination module 320, and a to-be-rendered form field rendering module 330, wherein:
the to-be-rendered form field obtaining module 310 is configured to: and acquiring form fields to be rendered of government service form data.
The target rendering component determination module 320 is configured to: and determining a target rendering component matched with the form field to be rendered according to the mapping relation of the custom field component of the form field to be rendered.
The to-be-rendered form field rendering module 330 is configured to: and carrying out multi-terminal rendering processing on the form field to be rendered according to the target rendering component to obtain a target government service form type.
According to the technical scheme, the to-be-rendered form field of the government service form data is firstly obtained, then the target rendering component matched with the to-be-rendered form field is determined according to the mapping relation of the custom field component of the to-be-rendered form field, finally multi-terminal rendering processing is carried out on the to-be-rendered form field according to the target rendering component, the target government service form type is obtained, the problem that a developer needs to repeatedly develop aiming at multi-terminal display in the process of manufacturing the government service form is solved, multi-terminal personalized rendering of the government service form can be achieved, and the development efficiency of the government service form is improved.
Optionally, the to-be-rendered form field rendering module 330 is specifically configured to: determining a rendering method of a rendering library component of multi-end rendering processing; and performing multi-terminal rendering processing on the to-be-rendered form field according to the target rendering component by the rendering library component rendering method.
Optionally, the to-be-rendered form field rendering module 330 is specifically configured to: determining the field type of the form field to be rendered and the field type of the target rendering component; and under the condition that the field type of the to-be-rendered form field is not matched with the field type of the target rendering component, trowelling the field value of the target rendering component according to the field value of the to-be-rendered form field.
Optionally, the field type of the form field to be rendered includes a tag field and a value field; the field type of the target rendering component comprises a key field and a value field; the to-be-rendered form field rendering module 330 is further configured to: performing trowelling processing on the key fields of the target rendering component according to the value fields of the form fields to be rendered; and trowelling the value field of the target rendering component according to the label field of the form field to be rendered.
Optionally, the form rendering device includes a field configuration specification data table configuration module for: generating a matched field configuration specification data table of the government service form data; configuring field configuration description information of the form field to be rendered according to the field configuration specification data table; wherein the field configuration description information includes at least one of a field title, a field name, a field hiding attribute, a field display attribute, and field association logic.
Optionally, the form rendering device includes a form editor configuration module for: performing visual configuration on the form field to be rendered through a form editor; and configuring the association relation among the form fields to be rendered through the form editor.
Optionally, the government service form data is json schema form data.
The form rendering device can execute the form rendering method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method. Technical details which are not described in detail in this embodiment can be referred to the form rendering method provided in any embodiment of the present invention.
Example IV
Fig. 7 shows a schematic diagram of the structure of an electronic device 10 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 7, the electronic device 10 includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM 12 and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as a form rendering method.
In some embodiments, the form rendering method may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. One or more of the steps of the XXX method described above may be performed when the computer program is loaded into RAM 13 and executed by processor 11. Alternatively, in other embodiments, the processor 11 may be configured to perform the form rendering method in any other suitable way (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs) Application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.

Claims (10)

1. A form rendering method, comprising:
acquiring form fields to be rendered of government service form data;
determining a target rendering component matched with the form field to be rendered according to the mapping relation of the custom field component of the form field to be rendered;
and carrying out multi-terminal rendering processing on the form field to be rendered according to the target rendering component to obtain a target government service form type.
2. The method of claim 1, wherein the multi-end rendering of the form field to be rendered according to the target rendering component comprises:
determining a rendering method of a rendering library component of multi-end rendering processing;
and performing multi-terminal rendering processing on the to-be-rendered form field according to the target rendering component by the rendering library component rendering method.
3. The method of claim 1, wherein the multi-end rendering of the form field to be rendered according to the target rendering component comprises:
determining the field type of the form field to be rendered and the field type of the target rendering component;
and under the condition that the field type of the to-be-rendered form field is not matched with the field type of the target rendering component, trowelling the field value of the target rendering component according to the field value of the to-be-rendered form field.
4. A method according to claim 3, wherein the field type of the form field to be rendered comprises a tag field and a value field; the field type of the target rendering component comprises a key field and a value field;
the trowelling the field value of the target rendering component according to the field value of the form field to be rendered includes:
performing trowelling processing on the key fields of the target rendering component according to the value fields of the form fields to be rendered;
and trowelling the value field of the target rendering component according to the label field of the form field to be rendered.
5. The method of claim 1, further comprising, prior to the obtaining the to-be-rendered form field of government service form data:
generating a matched field configuration specification data table of the government service form data;
configuring field configuration description information of the form field to be rendered according to the field configuration specification data table;
wherein the field configuration description information includes at least one of a field title, a field name, a field hiding attribute, a field display attribute, and field association logic.
6. The method of claim 5, further comprising, after said configuring field configuration description information of the form field to be rendered according to the field configuration specification data table:
performing visual configuration on the form field to be rendered through a form editor;
and configuring the association relation among the form fields to be rendered through the form editor.
7. The method of any one of claims 1-6, wherein the government service form data is json schema form data.
8. A form rendering apparatus, comprising:
the to-be-rendered form field acquisition module is used for acquiring to-be-rendered form fields of government service form data;
the target rendering component determining module is used for determining a target rendering component matched with the form field to be rendered according to the mapping relation of the custom field component of the form field to be rendered;
and the to-be-rendered form field rendering module is used for performing multi-end rendering processing on the to-be-rendered form field according to the target rendering component to obtain a target government service form type.
9. An electronic device, the electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the liquid crystal display device comprises a liquid crystal display device,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the form rendering method of any one of claims 1-7.
10. A computer storage medium storing computer instructions for causing a processor to perform the form rendering method of any one of claims 1-7.
CN202310035757.3A 2023-01-10 2023-01-10 Form rendering method and device, electronic equipment and storage medium Pending CN116069319A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310035757.3A CN116069319A (en) 2023-01-10 2023-01-10 Form rendering method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310035757.3A CN116069319A (en) 2023-01-10 2023-01-10 Form rendering method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116069319A true CN116069319A (en) 2023-05-05

Family

ID=86169436

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310035757.3A Pending CN116069319A (en) 2023-01-10 2023-01-10 Form rendering method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116069319A (en)

Similar Documents

Publication Publication Date Title
EP3654175A1 (en) Terminal device, ui extension method, and ui extension program
CN112835579A (en) Method and device for determining interface code, electronic equipment and storage medium
CN111857674A (en) Business product generation method and device, electronic equipment and readable storage medium
CN112784588B (en) Method, device, equipment and storage medium for labeling text
CN113138760B (en) Page generation method and device, electronic equipment and medium
CN115860877A (en) Product marketing method, device, equipment and medium
CN116069319A (en) Form rendering method and device, electronic equipment and storage medium
CN114880498A (en) Event information display method and device, equipment and medium
CN113438428B (en) Method, apparatus, device and computer-readable storage medium for automated video generation
CN112560462B (en) Event extraction service generation method, device, server and medium
CN113342413B (en) Method, apparatus, device, medium, and article for processing components
CN113822057B (en) Location information determination method, location information determination device, electronic device, and storage medium
CN117234509A (en) Routing management method, device and equipment of front-end page and storage medium
CN114329219A (en) Data processing method, method and device for outputting knowledge content
CN116340689A (en) Website processing method and device
CN117574868A (en) Chart generation method, device, equipment and storage medium
CN116245982A (en) Animation file generation method and device, electronic equipment and storage medium
CN114818617A (en) Document generation method, device, equipment, medium and product
CN117493214A (en) Interface message generation method and device, electronic equipment and storage medium
CN117596141A (en) Message assembling method, device, equipment and storage medium
CN115373659A (en) Business system construction method and device, electronic equipment and storage medium
CN115238141A (en) Character string comparison method and device, electronic equipment and storage medium
CN117371403A (en) Form component generation method, device, equipment and storage medium
CN116578372A (en) Editing method, device, equipment and storage medium for large data screen
CN117632874A (en) Automatic drawing storage method, device, equipment and medium for CAD software

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