CN113703638A - Data management page processing method and device, electronic equipment and storage medium - Google Patents

Data management page processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113703638A
CN113703638A CN202010437540.1A CN202010437540A CN113703638A CN 113703638 A CN113703638 A CN 113703638A CN 202010437540 A CN202010437540 A CN 202010437540A CN 113703638 A CN113703638 A CN 113703638A
Authority
CN
China
Prior art keywords
field
data
data management
template
management function
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
CN202010437540.1A
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.)
Beijing Kingsoft Cloud Network Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network 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 Beijing Kingsoft Cloud Network Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN202010437540.1A priority Critical patent/CN113703638A/en
Publication of CN113703638A publication Critical patent/CN113703638A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/252Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/258Data format conversion from or to a database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range

Abstract

The invention discloses a processing method and device of a data management page, electronic equipment and a computer readable storage medium. The method comprises the following steps: acquiring input data of a user based on a data management function of a corresponding service, wherein the data management function is used for realizing processing operation on a data form; converting the acquired input data into data in a structured data format describing the input data; analyzing the data in the structured data format to obtain different fields and field contents corresponding to the data management function; and adding the field contents corresponding to the different fields into a preset empty template to generate a data management page corresponding to the data management function. The invention can improve the processing efficiency of data management page construction.

Description

Data management page processing method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of data management technologies, and in particular, to a method and an apparatus for processing a data management page, an electronic device, and a storage medium.
Background
The data management page is a common page of a management platform such as a background, a middle station and the like, and generally comprises a data table, a data search term, a data adding button, a data creating form, a data editing button and a data deleting button. However, the data management pages are often dozens or even hundreds in a system, and they have the same structure, the same processing flow, but different fields. For different user service requirements, such as services of warehousing, purchasing, selling and the like, management data input by a user on a corresponding data management page are different and are reflected in a management platform of a middle and background, and corresponding service fields are different.
For the data management functions corresponding to different services, the existing scheme is a separate processing method, that is, a corresponding page is created for the data management function of each service, and then the functions of compiling a table of management data of the corresponding service, table screening, form creation, editing, deleting and the like are written in the page.
However, in the above manner, data management according to different services may require tens or even hundreds of data management pages to be created, and functional codes for table rendering, data creation, editing, deletion, and the like to be written tens or even hundreds of times. The method has the advantages that the repeated coding amount is huge, and in case that a certain basic function needs to be modified, dozens of files are involved in modification and change, so that the existing data management page building efficiency is low.
Disclosure of Invention
The invention aims to provide a processing method and device of a data management page, electronic equipment and a computer readable storage medium, so as to improve the processing efficiency of data management page construction.
According to a first aspect of the present invention, there is provided a method for processing a data management page, the method comprising:
acquiring input data of a user based on a data management function of a corresponding service, wherein the data management function is used for realizing processing operation on a data form;
converting the acquired input data into data in a structured data format describing the input data;
analyzing the data in the structured data format to obtain different fields and field contents corresponding to the data management function;
and adding the field contents corresponding to the different fields into a preset empty template to generate a data management page corresponding to the data management function.
Optionally, the data in the structured data format is JSON data,
the converting the acquired input data into data in a structured data format that describes the input data comprises:
acquiring fields corresponding to different operation types and field contents thereof according to input data corresponding to different operation types of the data management function;
and forming an array comprising a plurality of field objects by taking each acquired field and the field content thereof as field objects to obtain the JSON data, wherein each field object is a key value pair, the key corresponds to the field, and the value corresponds to the field content of the field.
Optionally, the analyzing the data in the structured data format to obtain different fields and field contents corresponding to the data management function includes:
obtaining a key-value pair of each field object from the array of the JSON data;
different field contents are obtained according to each key and the corresponding value thereof.
Optionally, the data in the structured data format is extensible markup language data,
the converting the acquired input data into data in a structured data format that describes the input data comprises:
acquiring fields corresponding to different operation types and field contents thereof according to input data corresponding to different operation types of the data management function;
and forming a set comprising a plurality of field elements by using each acquired field and the field content thereof as field elements to obtain the extensible markup language data.
Optionally, the analyzing the data in the structured data format to obtain different fields and field contents corresponding to the data management function includes:
obtaining each field element from the set of extensible markup language data;
and obtaining different field contents according to the field of each field element.
Optionally, the adding the field contents corresponding to the different fields into a preset empty template to obtain the data management page corresponding to the data management function includes:
judging whether the corresponding field is a field needing to be screened or not according to the field content, and determining that the field content is the field needing to be screened as a screening field;
judging whether the corresponding field is a field of the form creation field according to the field content, and determining that the field of which the field content is the form creation field is a form field; and
determining the field content as a form field under the condition that the corresponding field is judged to be a field except the screened field and the form field according to the field content;
assigning the corresponding field content of the form field to an attribute field of a form empty template to determine a form column field, wherein the form empty template comprises columns with editing/deleting functions, and a form template is generated according to the form column field and the columns with the editing/deleting functions;
assigning the corresponding field content of the screening field to the attribute field of the screening empty template to generate a screening template;
assigning the corresponding field content of the form field to the attribute field of the form empty template to generate a form template;
and splicing the form template, the screening template and the form template to obtain a data management page with the data management function.
Optionally, the method further includes:
creating the form empty template, the screening empty template and the form empty template;
the form empty template comprises column fields corresponding to the created form and columns with editing/deleting functions;
the corresponding fields of the screening empty template comprise texts, numbers, pull-down selection boxes, radio selection boxes, multi-selection boxes, dates and time;
the corresponding fields of the form empty template comprise text, text fields, numbers, drop-down selection boxes, radio boxes, multi-selection boxes, dates and times.
According to a second aspect of the present invention, there is provided an apparatus for processing a data management page, the apparatus comprising:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring input data of a data management function of a user based on corresponding services, and the data management function is used for realizing processing operation on a data form;
the conversion module is used for converting the acquired input data into data in a structured data format for describing the input data;
the analysis module is used for analyzing the data in the structured data format to obtain different fields and field contents corresponding to the data management function;
and the generation module is used for adding the field contents corresponding to the different fields into a preset empty template to obtain a data management page corresponding to the data management function.
Optionally, the data in the structured data format is JSON data,
the converting module converting the acquired input data into data in a structured data format that describes the input data includes:
acquiring fields corresponding to different operation types and field contents thereof according to input data corresponding to different operation types of the data management function;
and forming an array comprising a plurality of field objects by taking each acquired field and the field content thereof as field objects to obtain the JSON data, wherein each field object is a key value pair, the key corresponds to the field, and the value corresponds to the field content of the field.
Optionally, the analyzing module analyzes the data in the structured data format to obtain different fields and field contents corresponding to the data management function includes:
obtaining a key-value pair of each field object from the array of the JSON data;
different field contents are obtained according to each key and the corresponding value thereof.
Optionally, the data in the structured data format is extensible markup language data,
the converting module converting the acquired input data into data in a structured data format that describes the input data includes:
acquiring fields corresponding to different operation types and field contents thereof according to input data corresponding to different operation types of the data management function;
and forming a set comprising a plurality of field elements by using each acquired field and the field content thereof as field elements to obtain the extensible markup language data.
Optionally, the analyzing module analyzes the data in the structured data format to obtain different fields and field contents corresponding to the data management function includes:
obtaining each field element from the set of extensible markup language data;
and obtaining different field contents according to the field of each field element.
Optionally, the generating module adds the field contents corresponding to the different fields to a preset empty template, and obtaining the data management page corresponding to the data management function includes:
judging whether the corresponding field is a field needing to be screened or not according to the field content, and determining that the field content is the field needing to be screened as a screening field;
judging whether the corresponding field is a field of the form creation field according to the field content, and determining that the field of which the field content is the form creation field is a form field; and
determining the field content as a form field under the condition that the corresponding field is judged to be a field except the screened field and the form field according to the field content;
assigning the corresponding field content of the form field to an attribute field of a form empty template to determine a form column field, wherein the form empty template comprises columns with editing/deleting functions, and a form template is generated according to the form column field and the columns with the editing/deleting functions;
assigning the corresponding field content of the screening field to the attribute field of the screening empty template to generate a screening template;
assigning the corresponding field content of the form field to the attribute field of the form empty template to generate a form template;
and splicing the form template, the screening template and the form template to obtain a data management page with the data management function.
Optionally, the apparatus further includes a creating module, configured to create the form empty template, the filtering empty template, and the form empty template;
the form empty template comprises column fields corresponding to the created form and columns with editing/deleting functions;
the corresponding fields of the screening empty template comprise texts, numbers, pull-down selection boxes, radio selection boxes, multi-selection boxes, dates and time;
the corresponding fields of the form empty template comprise text, text fields, numbers, drop-down selection boxes, radio boxes, multi-selection boxes, dates and times.
According to a third aspect of the present invention, there is provided an electronic apparatus comprising:
processing means for a data management page according to the second aspect of the present invention; alternatively, the first and second electrodes may be,
a processor and a memory for storing executable instructions for controlling the processor to perform a method of processing a data management page according to the first aspect of the invention.
According to a fourth aspect of the present invention, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method of processing a data management page according to the first aspect of the present invention.
According to the embodiment of the invention, in order to accurately analyze the data of the structured data format converted corresponding to the user input data into the data management page, firstly, an empty template is required to be compiled, and the empty template bears main display contents comprising a form template, a screening condition template and a form creation template; event processing for perfecting the template comprises the following steps: creating, screening, editing, deleting and other conventional operations; and then, analyzing the data content of the structured data format, assigning the field content to corresponding form empty templates, screening empty templates and attribute fields corresponding to the form empty templates according to different field contents and expressions of the data of the structured data format, so as to generate the form templates, the screening templates and the form templates of the corresponding fields, finally splicing the templates into a complete page, and performing rendering display through a browser.
According to the invention, when the business data management page of the user is built each time, the input data of the user based on the data management function of the corresponding business can be obtained, the input data is converted into the data of the JSON data or the XML data in the structured data format, and the building of one data management page can be completed only by configuring the data in the structured data format.
The invention can effectively reduce the workload of developers and improve the development efficiency of systems such as a background system, a middle platform system and the like.
Other features of the present invention and advantages thereof will become apparent from the following detailed description of exemplary embodiments thereof, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a block diagram of a hardware configuration structure of an electronic device that can be used to implement an embodiment of the present invention.
Fig. 2 is a flowchart of a processing method of a data management page according to an embodiment of the present invention.
Fig. 3 is a flowchart of a method for generating a data management page according to an embodiment of the present invention.
Fig. 4 is a block diagram of a processing apparatus for data management pages according to an embodiment of the present invention.
Fig. 5 is a block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of the components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
In all examples shown and discussed herein, any particular value should be construed as merely illustrative, and not limiting. Thus, other examples of the exemplary embodiments may have different values.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
Fig. 1 is a block diagram showing a configuration of hardware of an electronic apparatus 1000 that can implement an embodiment of the present invention.
The electronic device 1000 may be a laptop, desktop, cell phone, tablet, etc.
As shown in fig. 1, the electronic device 1000 may include a processor 1100, a memory 1200, an interface device 1300, a communication device 1400, a display device 1500, an input device 1600, a speaker 1700, a microphone 1800, and the like. The processor 1100 may be a central processing unit CPU, a microprocessor MCU, or the like. The memory 1200 includes, for example, a ROM (read only memory), a RAM (random access memory), a nonvolatile memory such as a hard disk, and the like. The interface device 1300 includes, for example, a USB interface, a headphone interface, and the like. The communication device 1400 is capable of wired or wireless communication, for example, and may specifically include WiFi communication, bluetooth communication, 2G/3G/4G/5G communication, and the like. The display device 1500 is, for example, a liquid crystal display panel, a touch panel, or the like. The input device 1600 may include, for example, a touch screen, a keyboard, a somatosensory input, and the like. A user can input/output voice information through the speaker 1700 and the microphone 1800.
The electronic device shown in fig. 1 is merely illustrative and is in no way meant to limit the invention, its application, or uses. In an embodiment of the present invention, the memory 1200 of the electronic device 1000 is configured to store instructions for controlling the processor 1100 to operate so as to execute any one of the processing methods of the data management page provided by the embodiment of the present invention. It will be appreciated by those skilled in the art that although a plurality of means are shown for the electronic device 1000 in fig. 1, the present invention may relate to only some of the means therein, e.g. the electronic device 1000 may relate to only the processor 1100 and the storage means 1200. The skilled person can design the instructions according to the disclosed solution. How the instructions control the operation of the processor is well known in the art and will not be described in detail herein.
In one embodiment of the invention, a method for processing a data management page is provided.
Referring to fig. 2, which is a flowchart illustrating a method for processing a data management page according to an embodiment of the present invention, the method for processing the data management page may be implemented by an electronic device, for example, the electronic device 1000 shown in fig. 1.
As shown in fig. 2, the processing method of the data management page according to the embodiment of the present invention includes the following steps:
step 102, acquiring input data of a data management function based on corresponding services, wherein the data management function is used for realizing processing operation on a data form.
In step 102, different user business requirements include, for example, warehousing, purchasing, selling, and other businesses, and the user needs to perform operations on the executed data management presentation on the page, such as adding table columns, deleting table columns, modifying tables, and filtering and selecting certain items. For different service requirements, the corresponding contents of the data management page to be displayed are different.
The data management function is used for realizing processing operation on the data table. The processing operation on the data table is, for example, creating, modifying, deleting, etc. the data table.
The user can input data to be managed by the corresponding service in a specification document, and the specification document can provide fields corresponding to the data, such as a created form name (for a warehousing form, a purchase form or a sales form, and the like), a field name of a form and corresponding contents, so as to input data corresponding to different types of fields.
Step 104, converting the acquired input data into data in a structured data format describing the input data.
In step 104, after the data input by the user is obtained, the fields and the field contents thereof corresponding to the different operation functions of the service data management input by the user may be obtained, that is, the fields and the field contents corresponding to the data input by the user are configured in the form of corresponding structured data format data.
In one example, the data in the structured data format includes JSON (JavaScript object notation, JavaScript being an interpreted or just-in-time compiled programming language) data or extensible markup language data.
In the case where the data in the structured data format is JSON data, step 104 includes:
acquiring fields corresponding to different operation types and field contents thereof according to input data corresponding to different operation types of the data management function;
and forming an array comprising a plurality of field objects by taking each acquired field and the field content thereof as field objects to obtain the JSON data, wherein each field object is a key value pair, the key corresponds to the field, and the value corresponds to the field content of the field.
JSON data is an array of field objects, such as [ { label:', key:', isSearch:',.. },.. ], including the following fields and roles (functions) within the field object:
key, acquiring the key name of the field content;
label: the name of the field;
isSearch, whether the field needs to be screened;
whether the field is a form field or not
type: the type of the field, the value range: a form template type;
rule is field rule; see in detail: design/components/form-cn:// ant
initalValue field default;
options, if the field type is a pull-down selection (single, multiple), a radio box, a multiple selection box, the range of the selectable value;
isomost whether the field is a mandatory entry;
condition, the field shows the condition; the conditions are described as follows:
conidex is the field sequence number of the condition basis;
CONType condition type: 'bigger' (greater than) 'smaller' (less than) 'equivalent' (equal to) 'notEqual' (not equal to);
conditional value.
For example, JSON format data converted corresponding to user input data is: { key: '1', label: 'trade name', type: 'input' }.
In the case where the data in the structured data format is extensible markup language (XML) data, step 104 comprises:
acquiring fields corresponding to different operation types and field contents thereof according to input data corresponding to different operation types of the data management function;
and forming a set comprising a plurality of field elements by using each acquired field and the field content thereof as field elements to obtain the extensible markup language data.
The XML format is a plain text format, and XML consists of XML elements, each of which includes a start tag (< title >), an end tag (< title >) and content between the two tags, for example, the XML elements may be tagged as price, order number or name. Markup is a description of the document storage format and logical structure. In form, the markup may include comments, references, character data segments, start markup, end markup, null elements, Document Type Declaration (DTD), and prologs.
For example, the XML format data corresponding to the same user input data is converted as follows: < item key ═ 1' label ═ trade name ' type ═ input ' > < item >.
And 106, analyzing the data in the structured data format to obtain different fields and field contents corresponding to the data management function.
For the case that the data in the structured data format is JSON data, the step 106 of analyzing the data in the structured data format to obtain different fields and field contents corresponding to the data management function includes:
obtaining a key-value pair of each field object from the array of the JSON data;
different field contents are obtained according to each key and the corresponding value thereof.
JSON parsing is performed according to the JSON data rule as described above. Analyzing and screening JSON according to the isSearch field; analyzing form JSON according to the isCreate field; the other field is the table JSON.
For the case that the data in the structured data format is XML data, the step 106 of parsing the data in the structured data format to obtain different fields and field contents corresponding to the data management function includes:
obtaining each field element from the set of XML data;
and obtaining different field contents according to the field of each field element.
And 108, adding the field contents corresponding to the different fields into a preset empty template to obtain a data management page corresponding to the data management function.
Specifically, for JSON data, judging whether a corresponding field is a field needing to be screened according to field content, and determining that the field content is the field needing to be screened as a screening field; judging whether the corresponding field is a field of the form creation field according to the field content, and determining that the field of which the field content is the form creation field is a form field; and determining the field content as a form field under the condition that the corresponding field is judged to be a field except the screened field and the form field according to the field content;
in this way, each value (value) can be correspondingly assigned to an attribute field corresponding to a preset empty template according to a key value pair obtained from each field object in the array of the JSON data, and finally, a data management page corresponding to the data management function can be obtained.
The preset empty templates may include a form empty template, a filter empty template, and a form empty template.
And assigning the corresponding field content of the form field to an attribute field of a form empty template to determine a form column field, wherein the form empty template comprises columns with editing/deleting functions, and a form template is generated according to the form column field and the columns with the editing/deleting functions.
And assigning the corresponding field content of the screening field to the attribute field of the screening empty template to generate the screening template.
And assigning the corresponding field content of the form field to the attribute field of the form empty template to generate the form template.
And splicing the form template, the screening template and the form template to obtain a data management page with the data management function.
Therefore, the user side can display the data management page configured based on the data management function of the corresponding service.
In an example of the present invention, the processing method of the data management page further includes a step of creating the preset empty template, where the created empty template includes a form empty template, a filtering empty template, and a form empty template.
The form empty template comprises column fields corresponding to the created form and columns with editing/deleting functions;
the corresponding fields of the screening template comprise texts, numbers, pull-down selection boxes, radio boxes, multi-selection boxes, dates and times;
the form template corresponding fields include text, text fields, numbers, drop-down selection boxes, radio boxes, multiple selection boxes, date and time.
In order to accurately analyze the data of the structured data format converted corresponding to the user input data into a data management page, firstly, an empty template needs to be compiled, and the empty template bears main display contents including a form template, a screening condition template and a form creation template; event processing for perfecting the template comprises the following steps: creating, screening, editing, deleting and other conventional operations; and then, analyzing the data content of the structured data format, assigning the field content to corresponding form empty templates, screening empty templates and attribute fields corresponding to the form empty templates according to different field contents and expressions of the data of the structured data format, so as to generate the form templates, the screening templates and the form templates of the corresponding fields, finally splicing the templates into a complete page, and performing rendering display through a browser.
By the method and the device, when the business data management page of the user is built each time, the building of one data management page can be completed only by configuring JSON data or XML data. Therefore, compared with the situation that a large number of pages are created or a large number of functional codes are written by different user service data management functions, the method and the system can effectively reduce the workload of developers and improve the development efficiency of systems such as a background system, a middle platform system and the like.
The preset empty template is a template which is created in advance, when different users execute different types of operations aiming at data management of different services, data input by the users are obtained and converted into data in a structured data format, then the converted data are added into the public empty template, a service data management page required by the users can be presented, and the users can perform corresponding service data management.
A method for generating a data management page according to an embodiment of the present invention will be described with reference to the example of fig. 3, in which a structured data format for converting user input data is JSON data.
Specifically, as shown in fig. 3, the method includes the following steps:
step 202, acquiring JSON arrays of fields corresponding to different operation types of a data management function of a corresponding service based on a user;
step 204, taking out JSON field objects one by one from the JSON array, where the JSON array includes multiple JSON field objects, and each JSON field object records information of a corresponding field, such as the above-mentioned field describing a corresponding function.
Step 206, judging whether the field needs to be screened according to the field content of the JSON field object, if so, entering step 208;
step 208, copying the field object data of the JSON to a screening array;
step 210, taking out the JSON field object from the screening array;
step 212, generating a screening template according to the JSON field object;
and step 214, synthesizing the generated screening templates into a screening template group.
Step 216, when it is determined in step 206 that the field does not need to be screened, further determining whether the field is a form creation field according to the field content;
step 218, when the field is judged to be the form creation field, the field object data of the JSON is copied to a form creation array;
step 220, taking out the JSON field object from the form creating array;
step 222, generating a form template according to the JSON field object;
and step 224, synthesizing the table templates into a table template group.
Step 226, when the field is judged not to be the form creation field, the JSON field object data is copied to a form JSON array;
step 228, taking out the JSON field object from the JSON array of the table;
step 230, generating a table template group according to the JSON field object;
step 232, the generated form templates are combined into a form template group.
And finally, combining or splicing the screening template group, the form template group and the form template into a data management page corresponding to the data input by the user.
By the method and the device, when the data management page is built each time, one segment of JSON data is closely matched, and the building of one data page can be completed. The workload of developers can be effectively reduced, and the development efficiency of systems such as a background system and a middle platform system can be improved.
Fig. 4 is a block diagram of a processing apparatus for data management pages according to an embodiment of the present invention. In another embodiment of the present invention, there is further provided a processing apparatus 2000 of a data management page, the processing apparatus 2000 of a data management page including:
an obtaining module 2200, configured to obtain input data of a data management function of a user based on a corresponding service, where the data management function is used to implement a processing operation on a data table;
a conversion module 2400, configured to convert the acquired input data into data in a structured data format that describes the input data;
the analysis module 2600 is configured to analyze the data in the structured data format to obtain different fields and field contents corresponding to the data management function;
a generating module 2800, configured to add the field content corresponding to the different fields to a preset empty template, so as to obtain a data management page corresponding to the data management function.
In one example, the data in the structured data format is JSON data,
the converting module 2400 converts the acquired input data into data in a structured data format describing the input data, including:
acquiring fields corresponding to different operation types and field contents thereof according to input data corresponding to different operation types of the data management function;
and forming an array comprising a plurality of field objects by taking each acquired field and the field content thereof as field objects to obtain the JSON data, wherein each field object is a key value pair, the key corresponds to the field, and the value corresponds to the field content of the field.
The parsing module 2600 parses the data in the structured data format to obtain different fields and field contents corresponding to the data management function, including:
obtaining a key-value pair of each field object from the array of the JSON data;
different field contents are obtained according to each key and the corresponding value thereof.
In one example, the structured data formatted data is extensible markup language data,
the converting module 2400 converts the acquired input data into data in a structured data format describing the input data, including:
acquiring fields corresponding to different operation types and field contents thereof according to input data corresponding to different operation types of the data management function;
and forming a set comprising a plurality of field elements by using each acquired field and the field content thereof as field elements to obtain the extensible markup language data.
The parsing module 2600 parses the data in the structured data format to obtain different fields and field contents corresponding to the data management function, including:
obtaining each field element from the set of extensible markup language data;
and obtaining different field contents according to the field of each field element.
In an example, the generating module 2800 adds the field content corresponding to the different fields to a preset empty template, and obtaining the data management page corresponding to the data management function includes:
judging whether the corresponding field is a field needing to be screened or not according to the field content, and determining that the field content is the field needing to be screened as a screening field;
judging whether the corresponding field is a field of the form creation field according to the field content, and determining that the field of which the field content is the form creation field is a form field; and
determining the field content as a form field under the condition that the corresponding field is judged to be a field except the screened field and the form field according to the field content;
assigning the corresponding field content of the form field to an attribute field of a form empty template to determine a form column field, wherein the form empty template comprises columns with editing/deleting functions, and a form template is generated according to the form column field and the columns with the editing/deleting functions;
assigning the corresponding field content of the screening field to the screening empty template attribute field of the empty template to generate a screening template;
assigning the corresponding field content of the form field to the form empty template attribute field of the empty template to generate a form template;
and splicing the form template, the screening template and the form template to obtain a data management page with the data management function.
In one example, the processing device 2000 of the data management page further includes a creating module (not shown) for creating the form empty template, the filtering empty template and the form empty template;
the form empty template includes columns for creating column fields and editing/deleting functions corresponding to the form.
The corresponding fields of the screening empty template comprise texts, numbers, drop-down selection boxes, radio boxes, multi-selection boxes, dates and times.
The form null template corresponding fields include text, text field, number, drop-down selection box, radio box, multiple selection box, date and time.
According to still another embodiment of the present invention, there is also provided an electronic apparatus, and the electronic apparatus 3000 may be the electronic apparatus 1000 shown in fig. 1. Fig. 5 is a block diagram of an electronic device according to an embodiment of the present invention.
In one aspect, the electronic device 3000 may include the foregoing processing apparatus for data management page, which is used to implement the processing method for data management page according to any embodiment of the present invention.
On the other hand, as shown in fig. 5, the electronic device 3000 may include a memory 3200 and a processor 3400, the memory 3200 being for storing executable instructions; the instruction is used to control the processor 3400 to perform the aforementioned processing method of the data management page.
In this embodiment, the electronic device 3000 may be any electronic product having the memory 3200 and the processor 3400, such as a mobile phone, a tablet computer, a palmtop computer, a desktop computer, a notebook computer, a workstation, a game machine, and the like.
Finally, according to yet another embodiment of the present invention, there is also provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method of processing a data management page according to any embodiment of the present invention.
The present invention may be a system, method and/or computer program product. The computer program product may include a computer-readable storage medium having computer-readable program instructions embodied therewith for causing a processor to implement various aspects of the present invention.
The computer readable storage medium may be a tangible device that can hold and store the instructions for use by the instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic memory device, a magnetic memory device, an optical memory device, an electromagnetic memory device, a semiconductor memory device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: 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), a Static Random Access Memory (SRAM), a portable compact disc read-only memory (CD-ROM), a Digital Versatile Disc (DVD), a memory stick, a floppy disk, a mechanical coding device, such as punch cards or in-groove projection structures having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media as used herein is not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., optical pulses through a fiber optic cable), or electrical signals transmitted through electrical wires.
The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or to an external computer or external storage device via a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. The network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in the respective computing/processing device.
The computer program instructions for carrying out operations of the present invention may be assembler instructions, Instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, aspects of the present invention are implemented by personalizing an electronic circuit, such as a programmable logic circuit, a Field Programmable Gate Array (FPGA), or a Programmable Logic Array (PLA), with state information of computer-readable program instructions, which can execute the computer-readable program instructions.
Aspects of the present invention are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions.
These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer-readable program instructions may also be stored in a computer-readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer-readable medium storing the instructions comprises an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. It is well known to those skilled in the art that implementation by hardware, implementation by software, and implementation by a combination of software and hardware are equivalent.
Having described embodiments of the present invention, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen in order to best explain the principles of the embodiments, the practical application, or improvements made to the technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the invention is defined by the appended claims.

Claims (10)

1. A method for processing a data management page, the method comprising:
acquiring input data of a user based on a data management function of a corresponding service, wherein the data management function is used for realizing processing operation on a data form;
converting the acquired input data into data in a structured data format describing the input data;
analyzing the data in the structured data format to obtain different fields and field contents corresponding to the data management function;
and adding the field contents corresponding to the different fields into a preset empty template to generate a data management page corresponding to the data management function.
2. The method of claim 1, wherein the structured data formatted data is JSON data,
the converting the acquired input data into data in a structured data format that describes the input data comprises:
acquiring fields corresponding to different operation types and field contents thereof according to input data corresponding to different operation types of the data management function;
and forming an array comprising a plurality of field objects by taking each acquired field and the field content thereof as field objects to obtain the JSON data, wherein each field object is a key value pair, the key corresponds to the field, and the value corresponds to the field content of the field.
3. The method of claim 2, wherein the parsing the data in the structured data format to obtain different fields and field contents corresponding to the data management function comprises:
obtaining a key-value pair of each field object from the array of the JSON data;
different field contents are obtained according to each key and the corresponding value thereof.
4. The method of claim 1, wherein the structured data formatted data is extensible markup language data,
the converting the acquired input data into data in a structured data format that describes the input data comprises:
acquiring fields corresponding to different operation types and field contents thereof according to input data corresponding to different operation types of the data management function;
and forming a set comprising a plurality of field elements by using each acquired field and the field content thereof as field elements to obtain the extensible markup language data.
5. The method of claim 4, wherein the parsing the data in the structured data format to obtain different fields and field contents corresponding to the data management function comprises:
obtaining each field element from the set of extensible markup language data;
and obtaining different field contents according to the field of each field element.
6. The method according to claim 1, wherein the adding the field contents corresponding to the different fields into a preset empty template to obtain the data management page corresponding to the data management function comprises:
judging whether the corresponding field is a field needing to be screened or not according to the field content, and determining that the field content is the field needing to be screened as a screening field;
judging whether the corresponding field is a field of the form creation field according to the field content, and determining that the field of which the field content is the form creation field is a form field; and
determining the field content as a form field under the condition that the corresponding field is judged to be a field except the screened field and the form field according to the field content;
assigning the corresponding field content of the form field to an attribute field of a form empty template to determine a form column field, wherein the form empty template comprises columns with editing/deleting functions, and a form template is generated according to the form column field and the columns with the editing/deleting functions;
assigning the corresponding field content of the screening field to the attribute field of the screening empty template to generate a screening template;
assigning the corresponding field content of the form field to the attribute field of the form empty template to generate a form template;
and splicing the form template, the screening template and the form template to obtain a data management page with the data management function.
7. The method of claim 6, wherein the method further comprises:
creating the form empty template, the screening empty template and the form empty template;
the form empty template comprises column fields corresponding to the created form and columns with editing/deleting functions;
the corresponding fields of the screening empty template comprise texts, numbers, pull-down selection boxes, radio selection boxes, multi-selection boxes, dates and time;
the corresponding fields of the form empty template comprise text, text fields, numbers, drop-down selection boxes, radio boxes, multi-selection boxes, dates and times.
8. An apparatus for processing a data management page, the apparatus comprising:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring input data of a data management function of a user based on corresponding services, and the data management function is used for realizing processing operation on a data form;
the conversion module is used for converting the acquired input data into data in a structured data format for describing the input data;
the analysis module is used for analyzing the data in the structured data format to obtain different fields and field contents corresponding to the data management function;
and the generation module is used for adding the field contents corresponding to the different fields into a preset empty template to obtain a data management page corresponding to the data management function.
9. An electronic device, comprising:
processing means of a data management page according to claim 8; alternatively, the first and second electrodes may be,
a processor and a memory for storing executable instructions for controlling the processor to perform a method of processing a data management page according to any one of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, implements a method of processing a data management page according to any one of claims 1 to 7.
CN202010437540.1A 2020-05-21 2020-05-21 Data management page processing method and device, electronic equipment and storage medium Pending CN113703638A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010437540.1A CN113703638A (en) 2020-05-21 2020-05-21 Data management page processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010437540.1A CN113703638A (en) 2020-05-21 2020-05-21 Data management page processing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113703638A true CN113703638A (en) 2021-11-26

Family

ID=78645911

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010437540.1A Pending CN113703638A (en) 2020-05-21 2020-05-21 Data management page processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113703638A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114004196A (en) * 2021-12-30 2022-02-01 云账户技术(天津)有限公司 Method and device for converting single data format of table

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114004196A (en) * 2021-12-30 2022-02-01 云账户技术(天津)有限公司 Method and device for converting single data format of table

Similar Documents

Publication Publication Date Title
CN109597617B (en) Method and device for quickly generating service page based on template
CN108255485B (en) Page construction method and equipment and electronic equipment
US10140314B2 (en) Previews for contextual searches
AU2009238294B2 (en) Data transformation based on a technical design document
US10169374B2 (en) Image searches using image frame context
CN110489087B (en) Method, device, medium and electronic equipment for generating fractal structure
US8671389B1 (en) Web application resource manager on the web and localizable components
CN111625226B (en) Prototype-based man-machine interaction design implementation method and system
CN114424257A (en) Automatic rendering and extraction of form data using machine learning
CN104823158A (en) Method and system for simplified knowledge engineering
CN111158651A (en) Method, device and system for constructing artificial intelligence application
CN111651966A (en) Data report file generation method and device and electronic equipment
CN114036443A (en) Page generation method and device
WO2013109858A1 (en) Design canvas
CN110688844A (en) Text labeling method and device
CN113703638A (en) Data management page processing method and device, electronic equipment and storage medium
CN111198738A (en) Mobile terminal page display method and device and electronic equipment
CN110308907B (en) Data conversion method and device, storage medium and electronic equipment
CN114968235A (en) Page form generation method and device, computer equipment and storage medium
CN114115855A (en) Code multiplexing method and device, computer readable storage medium and electronic equipment
CN113138760A (en) Page generation method and device, electronic equipment and medium
CN115292589B (en) Hot spot information guiding browsing method and device, storage medium and electronic equipment
CN115292588B (en) Hot spot information guiding browsing method and device, storage medium and electronic equipment
Chang et al. W-Revised: An amazing tool for creating customized websites
US20160292136A1 (en) Legacy document converter for a mobile 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