CN115525269A - Configuration-based menu generation processing method and device and intelligent equipment - Google Patents
Configuration-based menu generation processing method and device and intelligent equipment Download PDFInfo
- Publication number
- CN115525269A CN115525269A CN202211151135.9A CN202211151135A CN115525269A CN 115525269 A CN115525269 A CN 115525269A CN 202211151135 A CN202211151135 A CN 202211151135A CN 115525269 A CN115525269 A CN 115525269A
- Authority
- CN
- China
- Prior art keywords
- configuration
- menu
- page
- button
- built
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/34—Graphical or visual programming
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Computer Security & Cryptography (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a menu generation processing method, a device and intelligent equipment based on configuration, wherein the method comprises the following steps: acquiring a new menu generation instruction, and configuring basic information of the new menu; based on the basic information configuration of the newly-built menu, API configuration of the newly-built menu is carried out; based on the API configuration of the newly-built menu, performing form data configuration of the newly-built menu; performing operation configuration of the newly-built menu based on form data configuration of the newly-built menu; based on the operation configuration of the newly-built menu, performing table in-line button configuration of the newly-built menu; controlling to carry out secondary page configuration, and generating a unique key value for the configured page; and acquiring configuration information of all newly-built menus, performing routing skipping and name rendering according to the configuration information, analyzing and rendering into pages, and finishing menu generation. By means of menu configuration (basic configuration, table configuration) and the like, a whole set of system menu generation can be completed in a very short time, and the menu generation efficiency is improved.
Description
Technical Field
The invention relates to the technical field of internet computers, in particular to a menu generation processing method and device based on configuration, intelligent equipment and a storage medium.
Background
With the development of science and technology and the continuous improvement of living standard of people, the use of computers is more and more popular, and all computer systems can be operated and finished through menus. How to complete a set of system module development in a short time to meet the needs of the business party? Perhaps the opinion given by most people is that they use common components to do so, but common components can only satisfy a portion of the fixed demand business. In the prior art, the linkage relationship from a set of system menu completion list to a second-level page is difficult to realize, and the realization efficiency is low.
Thus, there is a need for improvements and enhancements in the art.
Disclosure of Invention
The present invention provides a menu generation method based on configuration, which can complete a whole set of system menu generation in a very short time through menu configuration (basic configuration, api configuration, table configuration), etc., thereby improving menu generation efficiency.
In order to solve the technical problems, the technical scheme adopted by the invention is as follows:
a configurable-based menu generation processing method, wherein the method comprises:
acquiring a new menu generating instruction, and controlling to call out a preset basic information configuration page to configure the basic information of the new menu;
controlling to call a preset API configuration page to perform API configuration of the new menu based on the basic information configuration of the new menu;
controlling to call a preset form data configuration page to perform form data configuration of the new menu based on the API configuration of the new menu;
controlling to call a preset operation configuration page to perform operation configuration of the new menu based on the form data configuration of the new menu;
controlling to call a preset table in-line button configuration page to perform table in-line button configuration of the new menu based on the operation configuration of the new menu;
controlling to carry out secondary page configuration, and generating a unique key value for the configured page;
and acquiring configuration information of all newly-built menus, performing route skipping and name rendering according to the configuration information, resolving and rendering into pages according to all the configuration information of the newly-built menus, and finishing menu generation.
The method for generating and processing the menu based on the configuration comprises the following steps of obtaining a new menu generation instruction, and controlling to call a preset basic information configuration page to configure the basic information of the new menu:
presetting a basic information configuration page, an API configuration page, a table data configuration page, an operation configuration page and a table in-line button configuration page.
The menu generation processing method based on configuration comprises the steps that the configuration of the basic information of the newly-built menu comprises the configuration of the name, the path, the icon, the sequencing position, whether the menu is started or not, a parent menu and a dependent analysis template;
the API configuration of the new menu comprises the following steps: configuring key, url and method of interface data, wherein the key represents an interface name, the url represents an interface address and the method represents an interface request method;
the table data configuration of the newly-built menu comprises the name of each column, the free dragging and sorting of each column, the interface display field under the mapping list, the field type, the field use, the ratio width of the current field in the table and whether to search.
The menu generation processing method based on configuration comprises the steps that the operation of the newly-built menu is configured to the configuration of a button at the top of a form, the name of the button, the type of the button and the mode of the button, wherein a page and a popup of the type are bound with a unique key when a second-level page is configured.
The menu generation processing method based on configuration comprises the steps that button configuration comprises operation bar button configuration and operation line button configuration, wherein the operation bar buttons are configured at the top of a list page and comprise adding, batch deleting and data importing; and the operation row button is configured for each row of buttons of the list and comprises editing and deleting the current row.
The configuration-based menu generation processing method comprises the steps of obtaining configuration information of all newly-built menus, performing routing skip and name rendering according to the configuration information, and resolving and rendering the configuration information into pages according to all the configuration information of the newly-built menus, wherein the steps comprise:
when an interface requests database data to obtain all menu configuration data, a nested relation in menu basic information dynamically generates a set of tree-shaped menu data structures, and simultaneously generates a set of routing tables with tree-shaped structures, wherein each menu has a unique primary key ID value;
and when a menu clicking instruction is received, acquiring all configuration information of the menu according to the unique main key ID of the menu clicking instruction, and resolving and rendering the configuration information into a page through a template resolver according to the menu configuration information.
The menu generation processing method based on configuration, wherein the step of parsing and rendering the menu into the page according to the menu configuration information through the template parser comprises the following steps:
the template analyzer carries out retrieval analysis, form analysis, top button analysis and secondary page linkage according to the menu configuration information, and the analysis and rendering are carried out to form a page;
wherein, the step of searching and analyzing comprises the following steps: when field configuration set data in the current menu configuration information is acquired, traversing the set data to screen out a field set with the screened purpose, and rendering according to the type matching component in the field;
the top button resolution includes: traversing operation bar set data when operation bar configuration information in the menu configuration information is acquired, finishing button set rendering, and internally setting action operations with the same type to judge whether a button action is to open a page or a popup window or trigger a certain function;
the table parsing includes: finishing table rendering according to field configuration in the menu configuration information;
the second level page linkage comprises: based on a set of built-in simple secondary page analysis template, editing is directly set for field purposes to form an editing set data, the editing set data is matched as a component according to types, and the operation line buttons are automatically linked to the secondary page.
A configurable-based menu generation processing apparatus, wherein the apparatus comprises:
the system comprises a presetting module, a data processing module and a data processing module, wherein the presetting module is used for presetting a basic information configuration page, an API configuration page, a table data configuration page, an operation configuration page and a table in-line button configuration page;
the basic information configuration module is used for acquiring a new menu generation instruction and controlling calling of a preset basic information configuration page to perform new menu basic information configuration;
the API configuration module is used for controlling calling out a preset API configuration page to carry out API configuration of the new menu based on the basic information configuration of the new menu;
the form data configuration module is used for controlling and calling out a preset form data configuration page to carry out form data configuration of the newly-built menu based on API configuration of the newly-built menu;
the operation configuration module is used for controlling and calling out a preset operation configuration page to carry out operation configuration on the new menu based on form data configuration of the new menu;
the table in-line button configuration module is used for controlling and calling out a preset table in-line button configuration page to carry out table in-line button configuration on the newly-built menu based on the operation configuration of the newly-built menu;
the second-level page configuration module is used for controlling the second-level page configuration and generating a unique key value for the configured page;
the route skipping and rendering module is used for acquiring configuration information of all newly-built menus and performing route skipping and name rendering according to the configuration information;
and the operation analysis and rendering module is used for acquiring all configuration information of the menu according to the unique main key ID of the menu clicking instruction when the menu clicking instruction is received, and analyzing and rendering the menu into a page according to all the configuration information of the menu.
An intelligent device, wherein the intelligent device comprises a memory, a processor and a configuration-based menu generation processing program stored in the memory and operable on the processor, and the processor implements the steps of the configuration-based menu generation processing method as described in any one of the above when executing the configuration-based menu generation processing program.
A computer readable storage medium, wherein the computer readable storage medium stores a configuration-based menu generation processing program, and when the configuration-based menu generation processing program is executed by a processor, the configuration-based menu generation processing program implements the steps of the configuration-based menu generation processing method as described in any one of the above.
Has the advantages that: compared with the prior art, the invention provides a menu generation processing method and device based on configuration, intelligent equipment and a storage medium, and a whole set of system menu generation can be completed in a very short time through menu configuration (basic configuration, api configuration, table configuration) and the like, so that the menu generation efficiency is improved. The method and the device solve the technical problems that the linkage relationship from a set of system menu completion list to a second-level page is difficult to realize and the realization efficiency is low in the prior art.
Drawings
Fig. 1 is a flowchart of a menu generation processing method based on configuration according to an embodiment of the present invention.
Fig. 2 is a schematic diagram of a basic configuration provided in the embodiment of the present invention.
Fig. 3 is a schematic diagram of an API configuration according to an embodiment of the present invention.
Fig. 4 is a schematic diagram of field configuration according to an embodiment of the present invention.
Fig. 5 is a schematic configuration diagram of a table top button according to an embodiment of the present invention.
Fig. 6 is a schematic diagram of a configuration of a manipulation row button according to an embodiment of the present invention.
Fig. 7 is a schematic view of a configuration of a pointing form according to an embodiment of the present invention.
Fig. 8 is a flowchart of a menu data rendering process according to an embodiment of the present invention.
Fig. 9 is a schematic diagram of a final rendering of the stencil parser according to the embodiment of the present invention.
Fig. 10 is a schematic diagram of a pointing-form interface configuration interface according to an embodiment of the present invention.
Fig. 11 is a flowchart of a menu generation processing method based on configuration according to an embodiment of the present invention.
Fig. 12 is a schematic block diagram of a configuration-based menu generation processing apparatus according to an embodiment of the present invention.
Fig. 13 is a schematic block diagram of a terminal according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and effects of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
In the internet big environment of the prior art, as to how to complete the development of a set of system modules in a short time to meet the requirements of business parties, perhaps the suggestion given by most people is completed by using a public component, but the public component can only meet a part of fixed requirement business. In the prior art, the linkage relationship from a set of system menu completion list to a second-level page is difficult to realize, and the realization efficiency is low.
In order to solve the above problem, embodiments of the present invention provide a method and an apparatus for processing menu generation based on configuration, an intelligent device, and a storage medium, which can complete a set of system menu generation in a very short time through menu configuration (basic configuration, api configuration, table configuration), and the like, thereby improving menu generation efficiency.
Exemplary method
As shown in fig. 1, an embodiment of the present invention provides a configuration-based menu generation processing method, where the configuration-based menu generation processing method may be used for system module development. The method in the embodiment of the invention comprises the following steps:
s100, acquiring a new menu generation instruction, and controlling to call a preset basic information configuration page to configure the basic information of the new menu;
in the embodiment of the invention, a basic information configuration page, an API configuration page, a table data configuration page, an operation configuration page and a table in-line button configuration page are preset before specific implementation.
In specific implementation, as shown in fig. 2, the basic information configuration page preset in the present invention includes names, paths (also called routes), icons, sorting positions, whether to enable, a parent menu, a dependency resolution template, and the like of menus, where the parent menu and the paths dynamically generate a whole set of routing configurations including routing information of parent-child relationships.
When a user needs to create a new menu, the method and the device obtain a new menu generation instruction, and control calling of a preset basic information configuration page to perform configuration of basic information of the new menu, wherein as shown in fig. 2 and 11, the basic information configuration includes menu name configuration, menu path configuration, menu icon configuration, menu sorting configuration, parent-level menu configuration, template selection configuration, template type configuration and the like.
S200, controlling to call a preset API configuration page to perform API configuration of the new menu based on the basic information configuration of the new menu;
specifically, as shown in fig. 11, the configuration of the API (Application Programming Interface) of the new menu includes a conventional API Interface configuration, which specifically includes: and (3) configuring keys, urls and methods of the interface data, wherein the keys represent interface names, the urls represent interface addresses and the methods represent interface request methods. The internal can restrain the interface name in CRUD mode as add, list, update, delete and detail, so that the analysis template can call CRUD interface request according with each menu module according to the interface name. Wherein CRUD refers to the acronyms of four words, creat (add), retrieve (read query), update, and Delete, respectively, i.e., CRUD stands for add, delete, modify, delete. So as to realize the operations of displaying, adding, updating, detailing, deleting and the like of the conventional API list.
Wherein, the term refers to the initials of adding (Create), reading (Read), updating (Update) and deleting (Delete) several words in the calculation process.
In specific implementation, as shown in fig. 3, the API configuration key of the embodiment of the present invention includes a name when the interface is called, a URL, a request address when the interface is called, and a method, a request method when the interface is called. The template analyzer can be internally provided with several conventional API interface calling functions (such as list: a request interface for configuring a list interface, add: a request interface for adding a piece of data, delete: a request interface for deleting a piece of data, update: a request interface for updating a piece of data, detail: a request interface for inquiring a piece of data), wherein different dynamic request parameters can be set for different APIs, and parameter values can be automatically matched with field values of current line data.
Furthermore, the API configuration of the newly created menu may also set different dynamic request parameters, and the parameter value may automatically match the field value of the current line data.
Step S300, controlling to call out a preset form data configuration page to perform form data configuration of the new menu based on API configuration of the new menu;
specifically, the table data configuration of the newly-created menu includes a name of each column, free drag ordering of each column, an interface display field under the mapping list, a field type, a field use, a ratio width of a current field in the table, and whether to retrieve. The field types comprise texts, pictures, dates, numbers, enumeration, cascade connection and the like, and the field purposes comprise list display and screening search.
In specific implementation, as shown in fig. 4, in the embodiment of the present invention, the form data configuration is also called form field configuration, in the figure, label represents a header display name of a current column, prop represents a mapping field of a corresponding returned interface data of the current column, and types can be added to the template parser in a customized manner according to requirements of the current column, including integer, character string type, date, picture, and enumeration, and the purpose indicates that the current column field can be used for listing, screening, and editing, and can be specifically displayed in a listing, retrieval, and a second-level page, where the template parser may default to a set of built-in second-level page parsing templates, which is large in limitation and suitable for very simple page display.
Further, the operation is a high level option configuration, including style configuration information of the current column.
S400, controlling to call a preset operation configuration page to perform operation configuration of the new menu based on table data configuration of the new menu;
specifically, the operation of the new menu is configured to configure the top button of the table, including a button name, a button type, and a button mode (new, edit, read-only mode), wherein a page of the button type is bound to a unique key when the popup window is configured with the second-level page, so that when the button operation is performed, the user can jump to the specified second-level page.
As shown in fig. 5, the configuration of the top button of the table includes a button name, a type, a pointed page/popup window/event name, a Mode (Mode), and a permission number, where the button type includes a pointed page, a popup window, and a defined js method execution, and when the button type button is clicked, an action is responded, including opening a page, a popup window, and a trigger function method, and the Mode is a Mode of the page after the trigger button action, including adding, editing, and reading only, where different modes may be shown in different forms in the template parser. The defined js method in the embodiment of the invention can be executed, and some common functions can be built in the template analyzer for external calling and execution, which is similar to a mapping relation.
In specific implementation, the function method in the embodiment of the present invention may be a built-in common function event of the template parser, or may be a custom function code.
Furthermore, the invention binds the page of the button type with the unique key when the popup window and the secondary page are configured, so that the button operation can be executed to jump to the specified secondary page.
Step S500, based on the operation configuration of the new menu, calling out a preset table in-line button configuration page to carry out table in-line button configuration of the new menu;
in the embodiment of the present invention, the button configuration includes an operation bar button configuration and an operation line button configuration, where the operation bar button configuration is at the top of the list page, and the specific implementation manner is consistent with the operation configuration of the new menu in step S400; as shown in fig. 6, the manipulation row button is configured for each row of buttons in the list, including editing and deleting a current row, and the specific implementation is consistent with the button configuration of the operation bar, except that the button configuration of the manipulation row can display or hide buttons according to a certain condition.
S600, controlling secondary page configuration and generating a unique key value for the configured page;
in specific implementation, as shown in fig. 7, when the built-in secondary page of the template parser does not meet the requirement, the secondary page may be visually designed, and the visual design may customize various components, where the key value in the pointing form may be customized, but it needs to be noted that: the button type in the configuration of the top button of the table must select the current key value, so that the button is bound with the secondary page, and different buttons are clicked to display the corresponding bound page.
Step S700, obtaining configuration information of all newly-built menus, performing routing skipping and name rendering according to the configuration information, resolving and rendering into pages according to all the configuration information of the newly-built menus, and finishing menu generation;
specifically, as shown in fig. 8:
the method comprises the steps that an interface requests database data to obtain all menu configuration data, wherein a nested relation in menu basic information dynamically generates a set of tree-shaped menu data structures, and simultaneously generates a set of routing tables with tree structures, each menu has a unique primary key ID value, and the unique primary key ID value is dynamically generated when data are stored;
when a menu clicking instruction is received, acquiring all configuration information of a menu according to the unique main key ID of the menu clicking instruction, and resolving and rendering the configuration information of the menu into a page through the template resolver, wherein the rendered page is as shown in FIG. 9.
Further, the specific steps of analyzing and rendering the menu configuration information into the page through the template analyzer comprise retrieval analysis, table analysis, top button analysis and secondary page linkage, and the page is analyzed and rendered;
wherein, the step of searching and analyzing comprises the following steps: and acquiring field configuration set data in the menu configuration information, traversing the field configuration set data to screen out the field set with the screened purpose, and matching the corresponding component for rendering according to the type in the field. Specifically, some common components are built in the retrieval analysis template, such as a string type matching input box and a date type matching date box. string type matching can be understood as type matching rules, such as character string, integer, date, etc
The table parsing includes: and acquiring field configuration set data in the menu configuration information, traversing the field configuration set data, and finishing table rendering, wherein the navigation button rendering mode is consistent with the top button analysis mode. Specifically, a set of form components is built in the form parsing template.
The top button parsing comprises: and acquiring operation bar configuration set data in the menu configuration information, traversing the operation bar configuration set data, and finishing button set rendering. Specifically, the top button parsing template embeds the same action operation in the button and the button type, so that the action corresponding to the button can be known, for example, when the page/popup pointed by the operation bar button configuration is a pointing form, the name of the button is consistent with the key pointed to the form, and when the button is clicked dynamically, the corresponding matched secondary page data is taken according to the key, wherein the secondary page data is also a set of data, and each configuration information matches with the embedded component information.
The second level page linkage comprises: a set of secondary page analysis templates matched with a plurality of components is built in advance, editing (names can be customized) is directly set for the field purpose based on the built-in secondary page analysis templates to form an editing set data, and the editing set data is matched into the components according to the field types, so that the operation line buttons can be automatically linked to the secondary page; if the secondary page is complex, a pointing form interface as shown in fig. 10 may be configured, and a pointing page/popup is configured for the button to configure a key for the current secondary page, so that the configuration information of the corresponding key may be obtained, and the configuration information is analyzed as page data.
Exemplary device
Based on the foregoing embodiment, the present invention further provides a device for generating and processing a menu based on configuration, as shown in fig. 11, the device includes:
a presetting module 10, configured to preset a basic information configuration page, an API configuration page, a table data configuration page, an operation configuration page, and a table in-line button configuration page;
the basic information configuration module 20 is configured to obtain a new menu generation instruction, and control to call out a preset basic information configuration page to perform basic information configuration of the new menu;
the API configuration module 30 is configured to control calling of a preset API configuration page to perform API configuration of the new menu based on the basic information configuration of the new menu;
the form data configuration module 40 is configured to control to call out a preset form data configuration page to perform form data configuration of the new menu based on the API configuration of the new menu;
the operation configuration module 50 is configured to control to call out a preset operation configuration page to perform operation configuration of the new menu based on the form data configuration of the new menu;
a table in-line button configuration module 60, configured to, based on the operation configuration of the new menu, control to call out a preset table in-line button configuration page to perform table in-line button configuration of the new menu;
the secondary page configuration module 70 is used for controlling the secondary page configuration and generating a unique key value for the configured page;
a route skipping and rendering module 80, configured to obtain configuration information of all newly-built menus, and perform route skipping and name rendering according to the configuration information;
and the operation analyzing and rendering module 90 is configured to, when a menu clicking instruction is received, obtain all configuration information of the menu according to the unique primary key ID of the menu clicking instruction, and analyze and render the configuration information of the menu into a page according to all the configuration information of the menu.
Based on the above embodiments, the present invention further provides a terminal, and a schematic block diagram thereof may be as shown in fig. 12. The terminal comprises a processor, a memory, a network interface and a display screen which are connected through a system bus. Wherein the processor of the terminal is configured to provide computing and control capabilities. The memory of the terminal comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the terminal is used for connecting and communicating with an external terminal through a network. The computer program is executed by a processor to implement a configuration-based menu generation processing method. The display screen of the terminal can be a liquid crystal display screen or an electronic ink display screen.
It will be understood by those skilled in the art that the block diagram of fig. 12 is a block diagram of only a portion of the structure associated with the inventive arrangements, and is not intended to limit the terminals to which the inventive arrangements may be applied, and that a particular terminal may include more or less components than those shown, or may have some components combined, or may have a different arrangement of components.
In particular implementations, one or more programs are stored in the memory of the terminal and configured for execution by the one or more processors include instructions for performing a configuration-based menu generation processing method.
Instructions for performing the method steps of:
acquiring a new menu generation instruction, and controlling to call a preset basic information configuration page to perform basic information configuration on the new menu;
controlling to call a preset API configuration page to perform API configuration of the new menu based on the basic information configuration of the new menu;
controlling to call a preset form data configuration page to perform form data configuration of the newly-built menu based on the API configuration of the newly-built menu;
controlling to call out a preset operation configuration page to carry out operation configuration of the newly-built menu based on form data configuration of the newly-built menu;
controlling to call a preset table in-line button configuration page to perform table in-line button configuration of the new menu based on the operation configuration of the new menu;
controlling to carry out secondary page configuration, and generating a unique key value for the configured page;
and acquiring configuration information of all newly-built menus, performing route skipping and name rendering according to the configuration information, analyzing and rendering into pages according to all the configuration information of the newly-built menus, and completing menu generation, wherein the method is specifically described above.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, databases, or other media used in embodiments provided herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), rambus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
In summary, the invention provides a data analysis method, device and terminal based on visual configuration, and by integrating and combing a whole set of business process into a set of capacity for automatically generating a business requirement interface based on visual configuration, a user can generate a specific JSON data format through interface visual dragging, and then complete re-rendering of data-view through a data analysis method, thereby greatly simplifying and improving development efficiency. The method solves the technical problems that in the prior art, under the condition that the function pages are similar or repeated, a large amount of time has to be spent to repeatedly write the service codes, so that not only is the time wasted, but also the working efficiency cannot be improved.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, and not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Claims (10)
1. A menu generation processing method based on configuration is characterized by comprising the following steps:
acquiring a new menu generation instruction, and controlling to call a preset basic information configuration page to perform basic information configuration on the new menu;
controlling to call a preset API configuration page to perform API configuration of the new menu based on the basic information configuration of the new menu;
controlling to call a preset form data configuration page to perform form data configuration of the new menu based on the API configuration of the new menu;
controlling to call out a preset operation configuration page to carry out operation configuration of the newly-built menu based on form data configuration of the newly-built menu;
controlling to call a preset table in-line button configuration page to perform table in-line button configuration of the new menu based on the operation configuration of the new menu;
controlling to carry out secondary page configuration, and generating a unique key value for the configured page;
and acquiring configuration information of all newly-built menus, performing route skipping and name rendering according to the configuration information, resolving and rendering into pages according to all the configuration information of the newly-built menus, and finishing menu generation.
2. The method according to claim 1, wherein the step of obtaining a new menu generation instruction and controlling to call a preset basic information configuration page to configure the new menu basic information comprises:
presetting a basic information configuration page, an API configuration page, a table data configuration page, an operation configuration page and a table in-line button configuration page.
3. The menu generation processing method based on configuration as claimed in claim 1, wherein the new menu basic information configuration includes the configuration of the name, path, icon, sorting position, whether to enable, parent menu, dependent parsing template of the menu;
the API configuration of the new menu comprises the following steps: configuring key, url and method of interface data, wherein the key represents an interface name, the url represents an interface address and the method represents an interface request method;
the table data configuration of the newly-built menu comprises the name of each column, the free dragging and sorting of each column, the interface display field under the mapping list, the field type, the field use, the ratio width of the current field in the table and whether to search.
4. The method of claim 1, wherein the operation of creating the new menu is configured to configure the top button of the table, button name, button type, button mode, and wherein the page of the button type is bound to the unique key when the popup window is configured with the secondary page.
5. The menu generation processing method based on configuration as claimed in claim 1, wherein the button configuration comprises an operation bar button configuration and an operation line button configuration, wherein the operation bar button configuration is arranged at the top of the list page and comprises adding, batch deleting and data importing; the operation row button is configured for each row of buttons of the list and comprises editing and deleting the current row.
6. The method according to claim 1, wherein the steps of obtaining configuration information of all new menus, performing routing skip and name rendering according to the configuration information, and parsing and rendering into pages according to all configuration information of the new menus include:
when an interface requests database data to obtain all menu configuration data, a nested relation in menu basic information dynamically generates a set of tree-shaped menu data structures, and simultaneously generates a set of routing tables with tree-shaped structures, wherein each menu has a unique primary key ID value;
and when a menu clicking instruction is received, acquiring all configuration information of the menu according to the unique primary key ID of the menu clicking instruction, and resolving and rendering the configuration information into a page through a template resolver according to the menu configuration information.
7. The method of claim 6, wherein the step of parsing the rendering into the page according to the menu configuration information by the template parser comprises:
the template analyzer carries out retrieval analysis, form analysis, top button analysis and secondary page linkage according to the menu configuration information, and the analysis and rendering are carried out to form a page;
wherein, the step of searching and analyzing comprises the following steps: when field configuration set data in the current menu configuration information is acquired, traversing the set data to screen out a field set with the screened purpose, and rendering according to the type matching component in the field;
the top button parsing comprises: traversing operation bar set data when operation bar configuration information in the menu configuration information is acquired, finishing button set rendering, and internally setting action operations with the same type to judge whether a button action is to open a page or a popup window or trigger a certain function;
the table parsing includes: finishing table rendering according to field configuration in the menu configuration information;
the second level page linkage comprises: based on a set of built-in simple secondary page analysis template, editing is directly set for field purposes to form an editing set data, the editing set data is matched as a component according to types, and the operation line buttons are automatically linked to the secondary page.
8. A configurable-based menu generation processing apparatus, the apparatus comprising:
the system comprises a presetting module, a data processing module and a data processing module, wherein the presetting module is used for presetting a basic information configuration page, an API configuration page, a table data configuration page, an operation configuration page and a table in-line button configuration page;
the basic information configuration module is used for acquiring a new menu generation instruction and controlling calling of a preset basic information configuration page to perform new menu basic information configuration;
the API configuration module is used for controlling calling out a preset API configuration page to carry out API configuration of the new menu based on the basic information configuration of the new menu;
the form data configuration module is used for controlling and calling out a preset form data configuration page to carry out form data configuration of the newly-built menu based on API configuration of the newly-built menu;
the operation configuration module is used for controlling and calling out a preset operation configuration page to carry out operation configuration on the new menu based on form data configuration of the new menu;
the table in-line button configuration module is used for controlling and calling out a preset table in-line button configuration page to carry out table in-line button configuration on the newly-built menu based on the operation configuration of the newly-built menu;
the second-level page configuration module is used for controlling the second-level page configuration and generating a unique key value for the configured page;
the route skipping and rendering module is used for acquiring configuration information of all newly-built menus and performing route skipping and name rendering according to the configuration information;
and the operation analysis and rendering module is used for acquiring all configuration information of the menu according to the unique main key ID of the menu clicking instruction when the menu clicking instruction is received, and analyzing and rendering the menu into a page according to all the configuration information of the menu.
9. An intelligent device, comprising a memory, a processor and a configuration-based menu generation processing program stored in the memory and executable on the processor, wherein the processor implements the steps of the configuration-based menu generation processing method according to any one of claims 1 to 7 when executing the configuration-based menu generation processing program.
10. A computer-readable storage medium, wherein the computer-readable storage medium has stored thereon a configuration-based menu generation processing program, which when executed by a processor implements the steps of the configuration-based menu generation processing method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211151135.9A CN115525269A (en) | 2022-09-21 | 2022-09-21 | Configuration-based menu generation processing method and device and intelligent equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211151135.9A CN115525269A (en) | 2022-09-21 | 2022-09-21 | Configuration-based menu generation processing method and device and intelligent equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115525269A true CN115525269A (en) | 2022-12-27 |
Family
ID=84698677
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211151135.9A Pending CN115525269A (en) | 2022-09-21 | 2022-09-21 | Configuration-based menu generation processing method and device and intelligent equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115525269A (en) |
-
2022
- 2022-09-21 CN CN202211151135.9A patent/CN115525269A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112650766B (en) | Database data operation method, system and server | |
US8825599B2 (en) | Computer-based data processing system and method of processing data objects | |
CN112035667A (en) | Knowledge graph display method and device and terminal equipment | |
US12099531B2 (en) | Information retrieval | |
CN113741898B (en) | Form generation method, device and equipment | |
CN110580189A (en) | method and device for generating front-end page, computer equipment and storage medium | |
CN113760282A (en) | Configuration method, device, equipment, medium and program product of form interface | |
CN116384295B (en) | Top file generation method and device, computer equipment and storage medium | |
CN112560422A (en) | Chart processing method, device, equipment and medium | |
JP2018092344A (en) | Data processing apparatus, data processing method, and data processing program | |
JP2021163504A (en) | Information processing program, information processing apparatus and information processing method | |
CN110780970B (en) | Data screening method, device, equipment and computer readable storage medium | |
CN113900725A (en) | Interface configuration method and device, computer equipment and storage medium | |
CN115525269A (en) | Configuration-based menu generation processing method and device and intelligent equipment | |
US20240037325A1 (en) | Ability to add non-direct ancestor columns in child spreadsheets | |
CN111966349B (en) | Method, device and computer equipment for developing programs based on BS (browser/server) architecture | |
CN108334621B (en) | Database operation method, device, equipment and computer readable storage medium | |
JP4976783B2 (en) | PROGRAM GENERATION DEVICE, PROGRAM GENERATION METHOD, PROGRAM, AND RECORDING MEDIUM | |
JP4117110B2 (en) | Electronic form program creation system, electronic form program creation method, and electronic form program creation program | |
KR102513676B1 (en) | System for analyzing data and method thereof | |
JP4444766B2 (en) | Web page layout setting device, Web page layout setting method, Web page layout setting program, and recording medium | |
CN117234512B (en) | Method, system, electronic equipment and storage medium for rapidly developing business | |
JP7339221B2 (en) | Information processing program, information processing method and information processing system | |
JP4706001B2 (en) | Design computer programs | |
CN116719878A (en) | LabVIEW-based data analysis method, system, equipment and medium |
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 |