CN111459583B - Menu creation method and device - Google Patents

Menu creation method and device Download PDF

Info

Publication number
CN111459583B
CN111459583B CN202010142550.2A CN202010142550A CN111459583B CN 111459583 B CN111459583 B CN 111459583B CN 202010142550 A CN202010142550 A CN 202010142550A CN 111459583 B CN111459583 B CN 111459583B
Authority
CN
China
Prior art keywords
menu
function
information
basic information
identification code
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.)
Active
Application number
CN202010142550.2A
Other languages
Chinese (zh)
Other versions
CN111459583A (en
Inventor
卢文博
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suning Cloud Computing Co Ltd
Original Assignee
Suning Cloud Computing 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 Suning Cloud Computing Co Ltd filed Critical Suning Cloud Computing Co Ltd
Priority to CN202010142550.2A priority Critical patent/CN111459583B/en
Publication of CN111459583A publication Critical patent/CN111459583A/en
Application granted granted Critical
Publication of CN111459583B publication Critical patent/CN111459583B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • 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/22Indexing; Data structures therefor; Storage structures
    • 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/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Computational Linguistics (AREA)
  • Human Computer Interaction (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a menu creation method and a device, wherein the menu creation method comprises the following steps: acquiring basic information and functional information; creating a data table in a database according to the basic information; and rendering a menu dynamic page template according to the basic information, the functional information and the data table to generate a menu page. Compared with the prior art, the method has the advantages that only a developer is required to carry out menu configuration for creating the menu, a data table is automatically built in the database according to the configured basic information, a DataGrid control is generated by combining the menu dynamic page template for displaying data, a function key is generated by combining the configured function information with the menu dynamic page template, and a corresponding function realization method is bound with the function key, so that a new menu page is obtained, a set of codes does not need to be written for creating one menu, the time and labor cost are saved, the code quantity maintained in the later period is reduced, and the maintenance difficulty is reduced.

Description

Menu creation method and device
Technical Field
The invention relates to the technical field of internet information, in particular to a menu creation method and device.
Background
The management system comprises a large number of menus, the current menu creation is realized by writing JAVA codes, each menu creation corresponds to a set of codes to be developed, the development period is long, the abnormality rate of the management system is increased along with the increase of the code quantity, and the maintenance is difficult. If a certain menu or a certain menus need to be modified in the later period, the corresponding codes need to be rewritten again, the workload is large, the modification time is long, and the normal operation of the management system is affected.
Disclosure of Invention
The embodiment of the invention provides a menu creation method and device, which not only save development resources, but also reduce the difficulty of subsequent maintenance.
In order to achieve the above purpose, the embodiment of the present invention adopts the following technical scheme:
in a first aspect, an embodiment of the present invention provides a menu creation method, including:
acquiring basic information and functional information;
creating a data table in a database according to the basic information;
and rendering a menu dynamic page template according to the basic information, the functional information and the data table to generate a menu page.
With reference to the first aspect, in a first possible implementation manner of the first aspect, the rendering a menu dynamic page template according to the basic information, the function information and the database table, and generating a menu page specifically includes:
rendering a menu dynamic page template according to the basic information to generate a DataGrid control;
rendering a menu dynamic page template according to the function information to generate a function key;
acquiring display data from the data table;
and loading the display data for display to obtain a menu page.
With reference to the first aspect, in a second possible implementation manner of the first aspect, after creating a data table in a database according to the base information, the method further includes:
and generating a menu identification code, and binding the menu identification code with the basic information, the function information and the data table respectively.
With reference to the second possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect, the method further includes:
receiving function triggering information, wherein the function key triggering information comprises a menu identification code, a function identification code and a function parameter;
acquiring display data from a data table bound with the menu identification code according to the function identification code and the function parameter;
and loading the display data for display to obtain an updated menu page.
With reference to the first aspect, in a fourth possible implementation manner of the first aspect, after the acquiring basic information and functional information, the method further includes:
and respectively storing the basic information in a basic configuration table of the memory and the database, and respectively storing the functional information in a functional configuration table of the memory and the database.
In a second aspect, an embodiment of the present invention provides a menu creation apparatus including:
the acquisition module is used for basic information and functional information;
the table building module is used for building a data table in a database according to the basic information;
and the generating module is used for rendering a menu dynamic page template according to the basic information, the functional information and the data table to generate a menu page.
With reference to the second aspect, in a first possible implementation manner of the second aspect, the generating module includes:
the control unit is used for rendering a menu dynamic page template according to the basic information and generating a DataGrid control;
the function unit is used for rendering a menu dynamic page template according to the function information and generating a function key;
the data unit is used for acquiring display data from the data table;
the loading unit is used for loading the display data to display and obtain a menu page.
With reference to the second aspect, in a second possible implementation manner of the second aspect, the apparatus further includes:
and the binding module is used for generating a menu identification code and binding the menu identification code with the basic information, the function information and the data table respectively.
With reference to the second possible implementation manner of the second aspect, in a third possible implementation manner of the second aspect, the apparatus further includes:
the triggering module is used for receiving function triggering information, wherein the function key triggering information comprises a menu identification code, a function identification code and a function parameter;
the execution module is used for acquiring display data from a data table bound with the menu identification code according to the function identification code and the function parameter;
and the updating module is used for loading the display data for displaying to obtain an updated menu page.
With reference to the second aspect, in a fourth possible implementation manner of the second aspect, the apparatus further includes:
and the storage module is used for respectively storing the basic information into basic configuration tables of the memory and the database, and respectively storing the functional information into functional configuration tables of the memory and the database.
The menu creation method and the menu creation device provided by the embodiment of the invention not only save development resources, but also reduce the difficulty of subsequent maintenance. The menu creation method of the embodiment of the invention firstly obtains basic information and functional information; then creating a data table in a database according to the basic information; and finally, rendering a menu dynamic page template according to the basic information, the functional information and the data table to generate a menu page. Compared with the prior art, the method and the device have the advantages that only a developer is required to perform menu configuration, a data table is automatically built in a database according to the configured basic information, a DataGrid control is generated by combining a menu dynamic page template for displaying data, a function key is generated by combining the configured function information with the menu dynamic page template, and a corresponding function realization method is bound with the function key, so that a new menu page is obtained, common function realization method codes and menu dynamic page template codes can be reused, one set of codes is not required to be written for each menu creation, time and labor cost are saved, the code quantity of later maintenance is reduced, maintenance difficulty is reduced, and when the menu is required to be modified later, the user only needs to reconfigure a large number of codes.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments of the present invention will be briefly described below, and it is obvious that the drawings described below are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort to a person of ordinary skill in the art.
FIG. 1 is a flowchart of a menu creation method provided by an embodiment of the present invention;
FIG. 2 is a block diagram of a menu creation apparatus according to an embodiment of the present invention;
fig. 3 is a block diagram illustrating a menu creation apparatus according to another embodiment of the present invention.
Detailed Description
The present invention will be described in further detail below with reference to the drawings and detailed description for the purpose of better understanding of the technical solution of the present invention to those skilled in the art. It will be apparent that the described embodiments are some, but not all, embodiments of the invention. Based on the embodiments of the present invention, those skilled in the art should not make any advance of the inventive work to obtain the embodiments, which are all intended to fall within the scope of the present invention.
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.
At present, a menu of a management system is created, after the menu is defined, a set of codes is developed according to each menu to realize functions in the menu, and the general flow is to firstly build a table in a database, write entity classes, service codes, a control layer and static page codes, take the query functions in the menu as an example, create a query button and a query box in a menu page, write a query method of the control layer, write realization classes, write query sentences, acquire corresponding data from the database and display the corresponding data on the page. The development process is long, the code quantity is large, the same code part can not be reused, one menu corresponds to one set of codes, and maintenance is difficult.
In order to solve the above-mentioned problems, an embodiment of the present invention provides a menu creation method, as shown in fig. 1, including:
step S10, basic information and functional information are acquired;
step S20, creating a data table in a database according to the basic information;
and step S30, rendering a menu dynamic page template according to the basic information, the function information and the data table, and generating a menu page.
According to basic information and function information of a menu configured by a developer, a data table of the menu is automatically built in a database according to the basic information and is used for storing data managed by the menu, a dynamic page template of the menu is rendered according to the basic information and the function information, a DataGrid control and a function key for displaying the data in the data table are generated, a new menu page is obtained, the function key on the menu page is bound with a corresponding function implementation method, and when the function key is triggered, the function implementation method is adopted for carrying out corresponding processing on the data, so that the function of the menu page is realized. The common function realization method codes and menu dynamic page template codes can be multiplexed, one set of codes is not required to be written every time a menu is created, development time and labor cost are saved, the amount of codes required to be maintained is small, and maintenance difficulty is reduced.
Before step S10, the implementation method of the page common function is encapsulated, the function implementation method is positioned by the function identification code, and the specific function implementation method is executed by the input function parameter. The common functions of the page include query, addition, modification, deletion, import, export and the like, for example, a query method is packaged, the functional parameters are query fields, a query key created on the page is bound with the query method through a query ID, and the query method is executed through the query ID and the query fields when the query key is triggered. Before step S10, a menu dynamic page template is created, wherein the template has a general style of most menus, and the specific presentation content and functions are created according to the subsequent configuration.
In step S10, basic information and function information of a menu configured by a developer are acquired.
The menu configuration interface can be generated, a developer configures menu information needing to be created on the menu configuration interface, and basic information and function information of the menu are acquired through the menu configuration interface.
The basic information includes menu name, table name of data table, field name of data table, and attribute of each field, including whether to display, whether to support inquiry, whether to support export, whether to support import, etc. For example, the developer needs to create a member management menu page, and the acquired basic information includes: menu name "Member management", table name "Member" of data sheet, data sheet field "name" (attribute: not shown, support query), data sheet field "Member number" (attribute: shown, support query), data sheet field "meeting time" (attribute: not shown, not support query).
The function information includes a function identification code, and for example, the acquired function information of the member management menu is a query ID.
According to one embodiment of the invention, after the basic information and the function information of the menu are acquired, the basic information and the function information are stored in the memory, meanwhile, the basic information is stored in a basic configuration table of the database, and the function information is stored in a function configuration table of the database. The basic configuration table is used for storing basic information of all menus, and the function configuration table is used for storing function information of all the menus. The basic information and the functional information are stored in the memory in duplicate, one part reads the basic information and the functional information from the memory when the menu page is created, the page creation speed is high, and the other part is stored in the database to serve as a backup, so that the basic information and the functional information in the memory are prevented from being lost due to shutdown or abnormal operation. If the basic information and the function information of some menus in the memory are lost, the basic information and the function information of the corresponding menus can be read from the basic configuration table and the function configuration table in the database respectively and then are read into the memory.
In step S20, a data table of the menu is created in the database according to the basic information of the menu. For example, taking a member management menu as an example, a member data table is created in the database according to basic information, wherein the table is provided with three fields of name, member number and meeting time, wherein the name field does not show and supports the inquiry, the member number field shows and supports the inquiry, and the meeting time field does not show and supports the inquiry.
According to one embodiment of the present invention, after creating a data table in a database according to the basic information, the method further includes: and generating a menu identification code, and binding the menu identification code with the basic information, the function information and the data table respectively. And each time a menu is newly created, a UUID (universal unique identification code) is generated, the UUID is bound with basic information, function information and data tables of the menu, basic information and function information of the corresponding menu can be extracted from a memory through the UUID to generate a menu page, the data tables of the corresponding menu are found from a database to perform data addition, deletion, modification and inquiry, and the correspondence of the basic information, the function information and the data tables of the same menu is ensured.
In step S30, a menu dynamic page template is rendered according to the basic information, the function information and the data table of the menu, and a menu page is generated.
According to one embodiment of the present invention, step S30 specifically includes:
step S300, extracting basic information and function information bound with the menu identification code from the memory. If the basic information and the function information corresponding to the menu identification code do not exist in the memory, the basic information corresponding to the menu identification code is extracted from the basic configuration table of the database, and the function information corresponding to the menu identification code is extracted from the function configuration table of the database. And finding out a data table bound with the menu identification code from the database.
Step S301, a menu dynamic page template is rendered according to the basic information, and a DataGrid control is generated.
Step S302, rendering a menu dynamic page template according to the function information to generate a function key;
step S303, obtaining display data from a data table;
and step S304, loading the display data for display to obtain a menu page.
Specifically, basic information of the menu in the memory is extracted according to the UUID of the menu, and a field name set as a display in the basic information is returned to the view analyzer. And extracting the function information of the menu in the memory according to the UUID of the menu, and returning the function identification code in the function information to the view analyzer. The view analyzer renders a menu dynamic page template, generates a DataGrid control (DataGrid displays data in a table form and provides rich function support for selecting, sorting, grouping and editing the data) by combining field names, wherein the attribute in the control display data table is the displayed field name, generates a function key by combining a function identification code, and binds a corresponding function realization method by the function identification code. And finding a data table of the menu in the database according to the UUID of the menu, extracting field data with the attribute of display in the data table as display data, refreshing the DataGrid control, loading the display data, and displaying to obtain a menu page.
According to the embodiment of the invention, the DataGrid control is generated by combining the configured basic information and the menu dynamic page template, and is used for displaying the field name with the attribute in the basic information, and displaying the field data with the attribute in the data table as the display if the data table has the data, and generating the function key by combining the configured function information and the menu dynamic page template, so that the menu initial page is obtained. The pre-written function realization method codes corresponding to the function keys and menu dynamic page template codes can be reused, and can be used when a new menu is created, so that a set of codes is not required to be written, the menu development workload is reduced, the development period is shortened, the code quantity is reduced, and the subsequent maintenance difficulty is reduced.
According to one embodiment of the invention, the method further comprises:
s40, receiving function triggering information, wherein the function key triggering information comprises a menu identification code, a function identification code and a function parameter; acquiring display data from a data table bound with the menu identification code according to the function identification code and the function parameter; refreshing the DataGrid control, loading the display data for display, and obtaining an updated menu page.
Specifically, function triggering information generated when a user clicks a function key of a menu page is received, for example, when the user inputs a query field in a query box and clicks the query key, the received function triggering information comprises a UUID and a query field of the menu; when a user clicks a delete key of a certain field, the received function trigger information includes a UUID and a delete field of the menu. And finding a data table of the menu in the database according to the UUID, executing a corresponding function implementation method according to the function ID and the function parameter, for example, screening query data from the data table according to the query ID and the query field to obtain the query data as display data, deleting data corresponding to the deletion field from the data table according to the deletion ID and the deletion field, and the data of the rest of the displayable fields are display data. Refreshing the DataGrid control, loading the display data for display, and obtaining an updated menu page.
When the function key of the embodiment of the invention is triggered, a corresponding function realization method is found through the function identification code, a data table of a menu in a database is found through the menu identification code, the input function parameter execution function realization method is operated by corresponding inquiry, addition, deletion, modification and the like on the data table, new display data are obtained from the data table to display, and the function of a menu page is realized, wherein codes of all the function realization methods can be multiplexed, independent writing is not needed when the menu is not created, the workload is reduced, and the development time is shortened.
The following describes a method flow for creating a member management menu according to an embodiment of the present invention, including the following steps:
step S601, basic information and functional information configured by a developer are acquired.
The basic information includes: menu name "member management", table name "member" of data table, data table field "name" (not shown, query is supported), data table field "member number" (shown, query is supported), data table field "meeting time" (not shown, query is not supported). The function information includes a query ID.
Step S602, a data table with a table name of 'member' is built in a database according to the basic information, a 'name' field, a 'member number' field and a 'meeting time' field are arranged in the data table, and field attributes in the data table are set according to attributes in the basic information.
Step S603, a menu identification code (UUID) is generated, the UUID is bound with the basic information, the function information and the data table, and a corresponding relation is established between the basic information, the function information and the data table and the menu through the UUID.
In step S604, the basic information is stored in a basic configuration table in the database, and a part of the basic information is cached in the memory. And storing the function information into a function configuration table in a database, and caching one part of the function information into a memory.
Step S605, extracting basic information in the memory according to the UUID, and returning the field name with the attribute being shown in the basic information to the view analyzer.
Step S606, extracting the function information in the memory according to the UUID, and returning the function identification code in the function information to the view analyzer.
In step S607, the view parser renders the menu dynamic page template, generates a DataGrid control, and the DataGrid control displays the displayed field name "member number", and generates a query box and a query key.
Step S608, a data table in the database is found according to the UUID, field data with the attribute of display in the data table is extracted to be used as display data, and the data grid is refreshed to load the display data for display, so that a member management menu initial page is obtained.
In step S608, function trigger information (generated when the user clicks the query key of the "member management" menu page) is received, and the function trigger information includes the UUID of the "member management" menu, the query ID, and the query field entered by the user in the input box of the "member management" menu page.
Step S609, locating a member data table in the database according to the UUID, calling a query method according to the query ID and the query field, assembling a query statement, and obtaining query data from the member data table as display data.
Step S610, refreshing the DataGrid control of the member management menu page, loading the display data for display, and obtaining an updated menu page.
The menu creation method provided by the embodiment of the invention not only saves development resources, but also reduces the difficulty of subsequent maintenance. The menu creation method of the embodiment of the invention firstly obtains basic information and functional information; then creating a data table in a database according to the basic information; and finally, rendering a menu dynamic page template according to the basic information, the functional information and the data table to generate a menu page. Compared with the prior art, the method and the device have the advantages that only a developer is required to perform menu configuration, a data table is automatically built in a database according to the configured basic information, a DataGrid control is generated by combining a menu dynamic page template for displaying data, a function key is generated by combining the configured function information with the menu dynamic page template, and a corresponding function realization method is bound with the function key, so that a new menu page is obtained, common function realization method codes and menu dynamic page template codes can be reused, one set of codes is not required to be written for each menu creation, time and labor cost are saved, the code quantity of later maintenance is reduced, maintenance difficulty is reduced, and when the menu is required to be modified later, the user only needs to reconfigure a large number of codes.
The embodiment of the invention also provides a menu creation device, as shown in fig. 2, comprising:
the acquisition module is used for basic information and functional information;
the table building module is used for building a data table in a database according to the basic information;
and the generating module is used for rendering a menu dynamic page template according to the basic information, the functional information and the data table to generate a menu page.
As shown in fig. 3, according to one embodiment of the present invention, the generating module includes:
the control unit is used for rendering a menu dynamic page template according to the basic information and generating a DataGrid control;
the function unit is used for rendering a menu dynamic page template according to the function information and generating a function key;
the data unit is used for acquiring display data from the data table;
the loading unit is used for loading the display data to display and obtain a menu page.
According to one embodiment of the invention, the apparatus further comprises:
and the binding module is used for generating a menu identification code and binding the menu identification code with the basic information, the function information and the data table respectively.
According to one embodiment of the invention, the apparatus further comprises:
the triggering module is used for receiving function triggering information, wherein the function key triggering information comprises a menu identification code, a function identification code and a function parameter;
the execution module is used for acquiring display data from a data table bound with the menu identification code according to the function identification code and the function parameter;
and the updating module is used for loading the display data for displaying to obtain an updated menu page.
According to one embodiment of the invention, the apparatus further comprises:
and the storage module is used for respectively storing the basic information into basic configuration tables of the memory and the database, and respectively storing the functional information into functional configuration tables of the memory and the database.
The menu creation device provided by the embodiment of the invention not only saves development resources, but also reduces the difficulty of subsequent maintenance. According to the menu creation device provided by the embodiment of the invention, the acquisition module acquires the basic information and the functional information; the table creating module creates a data table in a database according to the basic information; and the generating module renders a menu dynamic page template according to the basic information, the functional information and the data table to generate a menu page. Compared with the prior art, the method and the device have the advantages that only a developer is required to perform menu configuration, a data table is automatically built in a database according to the configured basic information, a DataGrid control is generated by combining a menu dynamic page template for displaying data, a function key is generated by combining the configured function information with the menu dynamic page template, and a corresponding function realization method is bound with the function key, so that a new menu page is obtained, common function realization method codes and menu dynamic page template codes can be reused, one set of codes is not required to be written for each menu creation, time and labor cost are saved, the code quantity of later maintenance is reduced, maintenance difficulty is reduced, and when the menu is required to be modified later, the user only needs to reconfigure a large number of codes.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments for relevant points. Those skilled in the art will appreciate that the modules in the apparatus of the embodiments may be adaptively changed and disposed in one or more apparatuses different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component and, furthermore, they may be divided into a plurality of sub-modules or sub-units or sub-components. Any combination of all features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or units of any method or apparatus so disclosed, may be used in combination, except insofar as at least some of such features and/or processes or units are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings), may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Those skilled in the art will appreciate that implementing all or part of the above-described methods in accordance with the embodiments may be accomplished by way of a computer program stored on a computer readable storage medium, which when executed may comprise the steps of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), or the like.
The foregoing is merely illustrative of the present invention, and the present invention is not limited thereto, and any changes or substitutions easily contemplated by those skilled in the art within the scope of the present invention should be included in the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.

Claims (6)

1. A menu creation method, comprising:
packaging a realization method of a page common function, positioning the function realization method through a function identification code, transmitting function parameters to execute a specific function realization method, and creating a menu dynamic page template;
acquiring basic information and functional information;
creating a data table in a database according to the basic information;
generating a menu identification code, and binding the menu identification code with the basic information, the function information and the data table respectively;
rendering a menu dynamic page template according to the basic information, the functional information and the data table to generate a menu page;
receiving function key triggering information, wherein the function key triggering information comprises a menu identification code, a function identification code and a function parameter;
acquiring display data from a data table bound with the menu identification code according to the function identification code and the function parameter;
and loading the display data for display to obtain an updated menu page.
2. The method according to claim 1, wherein the step of rendering a menu dynamic page template according to the basic information, the function information and the database table to generate a menu page comprises:
rendering a menu dynamic page template according to the basic information to generate a DataGrid control;
rendering a menu dynamic page template according to the function information to generate a function key;
acquiring display data from the data table;
and loading the display data for display to obtain a menu page.
3. The method of claim 1, further comprising, after the obtaining the base information and the function information:
and respectively storing the basic information in a basic configuration table of the memory and the database, and respectively storing the functional information in a functional configuration table of the memory and the database.
4. A menu creation apparatus, comprising:
the packaging module is used for packaging the realization method of the page common function, carrying out a specific function realization method by the function identification code positioning function realization method and transmitting the function parameters, and creating a menu dynamic page template;
the acquisition module is used for acquiring basic information and functional information;
the table building module is used for building a data table in a database according to the basic information;
the binding module is used for generating a menu identification code and binding the menu identification code with the basic information, the function information and the data table respectively;
the generating module is used for rendering a menu dynamic page template according to the basic information, the functional information and the data table to generate a menu page;
the triggering module is used for receiving function key triggering information, wherein the function key triggering information comprises a menu identification code, a function identification code and a function parameter;
the execution module is used for acquiring display data from a data table bound with the menu identification code according to the function identification code and the function parameter;
and the updating module is used for loading the display data for displaying to obtain an updated menu page.
5. The apparatus of claim 4, wherein the generating means comprises:
the control unit is used for rendering a menu dynamic page template according to the basic information and generating a DataGrid control;
the function unit is used for rendering a menu dynamic page template according to the function information and generating a function key;
the data unit is used for acquiring display data from the data table;
the loading unit is used for loading the display data to display and obtain a menu page.
6. The apparatus of claim 4, wherein the apparatus further comprises:
and the storage module is used for respectively storing the basic information into basic configuration tables of the memory and the database, and respectively storing the functional information into functional configuration tables of the memory and the database.
CN202010142550.2A 2020-03-04 2020-03-04 Menu creation method and device Active CN111459583B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010142550.2A CN111459583B (en) 2020-03-04 2020-03-04 Menu creation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010142550.2A CN111459583B (en) 2020-03-04 2020-03-04 Menu creation method and device

Publications (2)

Publication Number Publication Date
CN111459583A CN111459583A (en) 2020-07-28
CN111459583B true CN111459583B (en) 2023-06-02

Family

ID=71680890

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010142550.2A Active CN111459583B (en) 2020-03-04 2020-03-04 Menu creation method and device

Country Status (1)

Country Link
CN (1) CN111459583B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112434058B (en) * 2020-11-24 2024-03-15 武汉虹信技术服务有限责任公司 Java and MySQL-based data interaction method and computer readable medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102707937A (en) * 2011-08-29 2012-10-03 新奥特(北京)视频技术有限公司 Realization method and system for touch screen menu scene in image-text system
CN103970427A (en) * 2013-02-04 2014-08-06 腾讯科技(深圳)有限公司 Method and device for refreshing webpage
CN110119294A (en) * 2019-04-04 2019-08-13 口碑(上海)信息技术有限公司 The generation method of menu page, apparatus and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102707937A (en) * 2011-08-29 2012-10-03 新奥特(北京)视频技术有限公司 Realization method and system for touch screen menu scene in image-text system
CN103970427A (en) * 2013-02-04 2014-08-06 腾讯科技(深圳)有限公司 Method and device for refreshing webpage
CN110119294A (en) * 2019-04-04 2019-08-13 口碑(上海)信息技术有限公司 The generation method of menu page, apparatus and system

Also Published As

Publication number Publication date
CN111459583A (en) 2020-07-28

Similar Documents

Publication Publication Date Title
US7424702B1 (en) Data integration techniques for use in enterprise architecture modeling
US7203929B1 (en) Design data validation tool for use in enterprise architecture modeling
US7216340B1 (en) Analysis data validation tool for use in enterprise architecture modeling with result based model updating
US8555249B2 (en) Lifecycle stable user interface adaptations
CN108959076A (en) A kind of API on-line debugging method
CN112765023B (en) Test case generation method and device
US11301366B2 (en) Test automation systems and methods using logical identifiers
US20150066977A1 (en) Method and system for managing digital resources
CN109614565B (en) Webpage generation method and device
CN111290951B (en) Test method, terminal, server, system and storage medium
US10185472B2 (en) Method for providing a user interface, computer system and computer program product
CN103744680A (en) Method and device for business process processing
CN112558967A (en) Page automatic generation method and device, electronic equipment and storage medium
AU2013357047A1 (en) Web page variation
US8122381B2 (en) Context debugger
US9934292B2 (en) Dynamic presentation of a results set by a form-based software application
CN111459583B (en) Menu creation method and device
CN112035555B (en) Information display method, device and equipment
CN108241499A (en) Method and device for updating field value annotation and computer readable storage medium
JP2008269515A (en) Method for dynamically generating image layout by parameter
CN110311819A (en) Automatic production of HTML page and MIBs table generating method, management method, equipment end and management system based on page configuration file
CN115292169A (en) UI automation test method and system
CN102193947B (en) Data access processing method and system
CN113377368A (en) Project development method, device, server and storage medium
CN109117133B (en) Menu configuration method and device, electronic equipment and readable storage 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
GR01 Patent grant
GR01 Patent grant