CN110879871A - Page menu configuration method and device - Google Patents

Page menu configuration method and device Download PDF

Info

Publication number
CN110879871A
CN110879871A CN201911171059.6A CN201911171059A CN110879871A CN 110879871 A CN110879871 A CN 110879871A CN 201911171059 A CN201911171059 A CN 201911171059A CN 110879871 A CN110879871 A CN 110879871A
Authority
CN
China
Prior art keywords
menu
page
target
command
line module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911171059.6A
Other languages
Chinese (zh)
Other versions
CN110879871B (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.)
Hangzhou DPTech Technologies Co Ltd
Original Assignee
Hangzhou DPTech Technologies 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 Hangzhou DPTech Technologies Co Ltd filed Critical Hangzhou DPTech Technologies Co Ltd
Priority to CN201911171059.6A priority Critical patent/CN110879871B/en
Publication of CN110879871A publication Critical patent/CN110879871A/en
Application granted granted Critical
Publication of CN110879871B publication Critical patent/CN110879871B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/954Navigation, e.g. using categorised browsing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application provides a configuration method and a device of a page menu, wherein the method comprises the following steps: receiving a page menu configuration command, wherein the page menu configuration command carries page description information of a target page corresponding to a menu to be configured; acquiring a page ID of the target page according to the page description information; searching a preset page menu database according to the page ID, wherein the page menu database comprises menu configuration information of a plurality of menus, and the menu configuration information at least comprises the page ID and the parent menu ID of the page corresponding to the menu, so as to obtain target menu configuration information containing the page ID; and modifying the target parent menu ID in the target menu configuration information according to the page menu configuration command. The method can realize the purpose of controlling the display of the page menu in a self-defined way on the premise of unifying the versions, meets the requirements of users and is easy for version maintenance.

Description

Page menu configuration method and device
Technical Field
The present application relates to the field of internet technologies, and in particular, to a method and an apparatus for configuring a page menu.
Background
With the continuous development of internet technology, developers develop software systems that support more and more functions, and the functions required by different users may be different, so that different users can be provided with different page menus according to the functional requirements of the different users.
In the prior art, in order to achieve the purpose of providing different page menus for different users, software systems of different versions can be developed by research personnel, so that the workload of the development personnel is greatly increased, and meanwhile, due to the fact that the number of versions is large, the maintenance of the versions is not facilitated, and the user experience is seriously influenced.
Disclosure of Invention
In view of the above, the present application provides a method and an apparatus for configuring a page menu to solve the problem.
Specifically, the method is realized through the following technical scheme:
according to a first aspect of an embodiment of the present application, a method for configuring a page menu is provided, where the method includes:
receiving a page menu configuration command, wherein the page menu configuration command carries page description information of a target page corresponding to a menu to be configured;
acquiring a page ID of the target page according to the page description information;
searching a preset page menu database according to the page ID, wherein the page menu database comprises menu configuration information of a plurality of menus, and the menu configuration information at least comprises the page ID and the parent menu ID of the page corresponding to the menu, so as to obtain target menu configuration information containing the page ID;
and modifying the target parent menu ID in the target menu configuration information according to the page menu configuration command.
Optionally, the page menu configuration command is a menu hiding command;
modifying the target parent menu ID in the target menu configuration information according to the page menu configuration command comprises:
checking whether a target parent menu ID in the target menu configuration information contains a preset value;
if not, adding the preset value in the target parent menu ID so that the target parent menu ID is different from the parent menu ID of the parent menu corresponding to the menu to be configured;
if yes, the flow is ended.
Optionally, the method further includes:
determining a target command line module corresponding to the menu to be configured according to the page ID;
and setting the command in the target command line module to be in a non-executable state.
Optionally, the setting the command in the target command line module to a non-executable state includes:
and deleting the bitmap mark corresponding to the target command line module in a preset command line module bitmap, wherein the command in the command line module corresponding to the bitmap mark in the command line module bitmap is in an executable state.
Optionally, the page menu configuration command is a menu recovery command;
modifying the target parent menu ID in the target menu configuration information according to the page menu configuration command comprises:
checking whether a target parent menu ID in the target menu configuration information contains a preset value;
if so, deleting the preset value in the target parent menu ID so that the target parent menu ID is the same as the parent menu ID of the parent menu corresponding to the menu to be configured;
if not, the flow is ended.
Optionally, the method further includes:
determining a target command line module corresponding to the menu to be configured according to the page ID;
and setting the command in the target command line module to be in an executable state.
Optionally, the setting the command in the target command line module to an executable state includes:
adding a bitmap mark corresponding to the target command line module in a preset command line module bitmap; and the command in the command line module corresponding to the bitmap mark in the command line module bitmap is in an executable state.
According to a second aspect of the embodiments of the present application, there is provided an apparatus for configuring a page menu, the apparatus including:
the command receiving module is used for receiving a page menu configuration command, and the page menu configuration command carries page description information of a target page corresponding to a menu to be configured;
the first acquisition module is used for acquiring the page ID of the target page according to the page description information;
the searching module is used for searching a preset page menu database according to the page ID, wherein the page menu database comprises menu configuration information of a plurality of menus, and the menu configuration information at least comprises the page ID and the parent menu ID of a page corresponding to the menu to obtain target menu configuration information containing the page ID;
and the modification module is used for modifying the target parent menu ID in the target menu configuration information according to the page menu configuration command.
Optionally, the page menu configuration command is a menu hiding command;
the modification module modifies the target parent menu ID in the target menu configuration information according to the page menu configuration command, and comprises the following steps:
checking whether a target parent menu ID in the target menu configuration information contains a preset value;
if not, adding the preset value in the target parent menu ID so that the target parent menu ID is different from the parent menu ID of the parent menu corresponding to the menu to be configured; if yes, the flow is ended.
Optionally, the apparatus further comprises:
the second acquisition module is used for determining a target command line module corresponding to the menu to be configured according to the page ID;
and the first setting module is used for setting the command in the target command line module to be in a non-executable state.
Optionally, the setting module sets the command in the target command line module to a non-executable state, including:
and deleting the bitmap mark corresponding to the target command line module in a preset command line module bitmap, wherein the command in the command line module corresponding to the bitmap mark in the command line module bitmap is in an executable state.
Optionally, the page menu configuration command is a menu recovery command;
the modification module modifies the target parent menu ID in the target menu configuration information according to the page menu configuration command, and comprises the following steps:
checking whether a target parent menu ID in the target menu configuration information contains a preset value;
if so, deleting the preset value in the target parent menu ID so that the target parent menu ID is the same as the parent menu ID of the parent menu corresponding to the menu to be configured; if not, the flow is ended.
Optionally, the apparatus further comprises:
the third acquisition module is used for determining a target command line module corresponding to the menu to be configured according to the page ID;
and the second setting module is used for setting the command in the target command line module to be in an executable state.
Optionally, the setting module sets the command in the target command line module to an executable state, including:
adding a bitmap mark corresponding to the target command line module in a preset command line module bitmap; and the command in the command line module corresponding to the bitmap mark in the command line module bitmap is in an executable state.
According to the method, after the page menu configuration command is received, the page ID of the target page is obtained according to the page description information carried by the menu configuration command, the preset page menu database is searched according to the page ID, the target menu configuration information containing the page ID is obtained, and the target father menu ID in the target menu configuration information is modified according to the page menu configuration command, so that whether the page menu is displayed or not can be controlled in a self-defined mode on the premise of uniform version, the user requirement is met, and meanwhile version maintenance is easy.
Drawings
Fig. 1 is a schematic view of an application scenario in which a configuration method of a page menu is implemented according to an embodiment of the present application;
fig. 2 is a flowchart of an embodiment of a method for configuring a page menu according to an exemplary embodiment of the present application;
FIG. 3 is a flowchart illustrating an implementation of step 204 according to an exemplary embodiment of the present application;
FIG. 4 is a flowchart illustrating another implementation of step 204 according to an exemplary embodiment of the present application;
FIG. 5 shows an implementation flow after step 302 according to an example embodiment of the present application;
FIG. 6 shows an implementation flow after step 402 according to an example embodiment of the present application;
FIG. 7 is a hardware structure diagram of a server where the configuration device of the page menu of the present application is located;
fig. 8 is a block diagram of an embodiment of a configuration apparatus for a page menu according to an exemplary embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
Referring to fig. 1, a schematic view of an application scenario for implementing a configuration method of a page menu according to an embodiment of the present application is shown.
As shown in fig. 1(a), a standard user interface diagram is provided for a certain management system. The user interface includes three father menus of "basic data", "personnel management", and "system maintenance", wherein, taking the "basic data" as an example, the next level includes seven sub menus of "storefront group", "storefront information", "storefront hierarchy", "vendor category", "vendor information", "product category", and "product information".
In an application scenario, assuming that user a is not expected to edit the vendor category and vendor information, user a may be provided with a user interface as illustrated in fig. 1 (b).
In the prior art, in order to achieve the above effect, different versions can be developed by research personnel to display different page menus for different users. However, in practical application, the demands of users are different, which not only greatly increases the workload of research and development personnel, but also is not beneficial to version maintenance due to a large number of versions, and affects user experience.
Based on the method, the configuration method of the page menu is provided, and the method can be implemented. The following describes a configuration method of a page menu proposed in the present application by using a specific embodiment: .
For ease of understanding, the display principle of the page menu is first explained:
the menu configuration information of all the page menus is stored through a page menu database, and the menu configuration information can comprise a menu ID, a menu name, a father menu ID and the like, wherein the menu ID is a main key of the page menu database and is represented by the page ID of the page corresponding to the menu, namely the menu ID is the page ID of the page corresponding to the menu, and the father menu ID is the menu ID of the father menu corresponding to the menu. For example, assuming that the menu ID of the menu "basic data" is "ID 1", the parent menu ID in the menu configuration information corresponding to each of "storefront group", "storefront information", "storefront hierarchy", "vendor category", "vendor information", "product category", "product information" seven submenus is "ID 1". It should be noted that the parent menu ID in the menu configuration information corresponding to the parent menu is "0".
When a page menu is displayed, firstly, menu configuration information with a parent menu ID of 0 is searched in a page menu database, then, a submenu of the parent menu corresponding to the searched menu configuration information is traversed, and when the parent menu ID in the menu configuration information corresponding to the submenu is consistent with the menu ID of the corresponding parent menu, the submenu can be displayed on the page.
So far, the related explanation of the page menu display principle is completed.
Referring to fig. 2, a flowchart of an embodiment of a method for configuring a page menu provided in an exemplary embodiment of the present application is shown, where the method includes the following steps:
step 201: and receiving a page menu configuration command, wherein the page menu configuration command carries page description information of a target page corresponding to the menu to be configured.
In an application, a user may input a page menu configuration command through a command line, where the page menu configuration command is used to instruct to configure a menu (hereinafter referred to as a menu to be configured). Specific functions of the page menu configuration command are shown in different embodiments, and are not described in detail herein.
As an example, the page menu configuration command carries page description information of a page (hereinafter referred to as a target page) corresponding to the menu to be configured, for example, a value of a content field in an HTML code corresponding to the target page. Because the page description information is visual and understandable compared with the page ID, the user can conveniently input the page menu configuration command by defining the page description information carried in the page menu configuration command.
Step 202: and acquiring the page ID of the target page according to the page description information.
As can be seen from the above description, the menu ID is actually the page ID in the page menu database, and therefore, in this step 202, the page ID of the target page can be further obtained.
As one embodiment, the page ID of the target page may be acquired according to the structure definition information of the page. Based on the structure definition information including the page ID and the page description information, the structure definition information including the page description information in step 201 may be obtained, and the page ID in the structure definition information is the page ID of the target page.
Step 203: and searching a preset page menu database according to the page ID, wherein the page menu database comprises menu configuration information of a plurality of menus, and the menu configuration information at least comprises the page ID and the parent menu ID of the page corresponding to the menu, so as to obtain target menu configuration information containing the page ID.
As can be seen from the above description, the page menu database includes menu configuration information of a plurality of menus, and the menu configuration information at least includes a menu ID, that is, a page ID and a parent menu ID of a page corresponding to a menu. Based on this, in this step 203, the page menu database may be searched according to the page ID acquired in step 202, so as to obtain menu configuration information (hereinafter referred to as target menu configuration information) including the page ID.
Step 204: and modifying the target parent menu ID in the target menu configuration information according to the page menu configuration command.
As can be seen from the above description, the determining factors for finally determining whether the page menu is displayed when the page menu is displayed are: and whether the parent menu ID in the menu configuration information corresponding to the menu is consistent with the menu ID of the parent menu corresponding to the parent menu.
Based on this, in this step, the target parent menu ID in the target menu configuration information may be modified according to the page menu configuration command, so as to modify the display result of the menu and implement the configuration of the page menu. How to modify the target parent menu ID in the target menu configuration information according to the page menu configuration command is shown in the following by way of example in different embodiments, and will not be described again here.
According to the embodiment, after the page menu configuration command is received, the page ID of the target page is obtained according to the page description information carried by the menu configuration command, the preset page menu database is searched according to the page ID, the target menu configuration information containing the page ID is obtained, and the target father menu ID in the target menu configuration information is modified according to the page menu configuration command, so that whether the page menu is displayed or not can be controlled in a self-defined mode on the premise of uniform version, the user requirement is met, and meanwhile version maintenance is easy.
The following describes the specific role of the page menu configuration command, and how to modify the target parent menu ID in the target menu configuration information according to the page menu configuration command under different roles:
in one embodiment, the page menu configuration command is a menu hiding command, and by executing the menu hiding command, hiding of a menu in a page can be achieved. In this embodiment, as shown in fig. 3, the step 204 may include the following steps:
step 301: checking whether a target parent menu ID in the target menu configuration information contains a preset value; if not, go to step 302; if yes, the flow is ended.
Step 302: and adding a preset value in the ID of the target parent menu to ensure that the ID of the target parent menu is different from the ID of the parent menu corresponding to the menu to be configured.
Step 301 and step 302 are collectively described below:
as an embodiment, when the page menu configuration command is a menu hiding command, a preset value may be added to a parent menu ID (hereinafter, referred to as a target parent menu ID) in the target menu configuration information, for example, assuming that the preset value is "_ hiden" and assuming that the target parent menu ID is "ID 1", and then after this step is performed, the target parent menu ID is modified to "ID 1_ hiden".
According to the display principle of the page menu, as the target parent menu ID of the menu to be configured is different from the parent menu ID of the parent menu corresponding to the menu to be configured, the menu to be configured is not displayed on the page, so that the menu to be configured is hidden in the page.
As an example, before executing step 302, step 301 may be executed first, to check whether a preset value is included in a target parent menu ID in the lower target menu configuration information, that is, to check whether the lower menu to be configured is hidden; when the no check result is obtained, the step 302 is further executed.
So far, the description about the flow shown in fig. 3 is completed.
Through the embodiment shown in fig. 3, it is finally realized that when the page menu configuration command is a menu hiding command, the menu is hidden in the page by executing the menu hiding command.
In addition, in the present application, a hidden page menu list may be registered in a user mode of the system, where each row in the hidden page menu list corresponds to a hidden menu, and each row may include the following fields: page ID (i.e. menu ID of hidden menu), page name (page name of page corresponding to hidden menu), page description information (page description information of page corresponding to hidden menu). The hidden page menu list can facilitate the management of the hidden menu.
In one embodiment, the page menu configuration command is a menu restore command, and by executing the menu restore command, a menu that was previously hidden from display in the page can be implemented. In this embodiment, as shown in fig. 4, the step 204 may include the following steps:
step 401: checking whether a target parent menu ID in the target menu configuration information contains a preset value, if so, executing a step 402; if not, the flow is ended.
Step 402: and deleting a preset value in the ID of the target parent menu to ensure that the ID of the target parent menu is the same as the ID of the parent menu corresponding to the menu to be configured.
Step 401 and step 402 are collectively described below:
as an embodiment, when the page menu configuration command is a menu restore command, the preset value in the target parent menu ID may be deleted, for example, assuming that the preset value is "_ hiden" and assuming that the target parent menu ID is "ID 1_ hiden", then after this step is performed, the target parent menu ID is modified to "ID 1".
According to the display principle of the page menu, as the target parent menu ID of the menu to be configured is the same as the parent menu ID of the parent menu corresponding to the menu to be configured, the menu to be configured is displayed on the page, and therefore the hidden menu to be configured before being recovered in the page is realized.
As an example, before executing step 402, step 401 may be executed first, and it is checked whether a preset value is included in a target parent menu ID in the lower target menu configuration information, that is, whether the lower menu to be configured is hidden; when a "yes" check is obtained, step 402 is further performed.
So far, the description about the flow shown in fig. 4 is completed.
With the embodiment shown in fig. 4, it is finally achieved that when the page menu configuration command is a menu recovery command, the menu hidden before being displayed in the page by executing the menu recovery command is displayed.
In addition, after the process shown in fig. 4 is executed, the row corresponding to the menu to be configured may also be deleted in the hidden page menu list.
In application, in order to realize the corresponding function of the menu, the menu corresponds to a command line module, and the command line module comprises a plurality of commands for realizing the function. Based on the method, when the menu is hidden, the command in the command line module corresponding to the hidden menu can be set to be in the non-executable state; on the contrary, when the menu hidden before is recovered, the command in the command line module corresponding to the hidden menu can be set to be in an executable state. This is illustrated below by the embodiments shown in fig. 5 and 6, respectively:
referring to fig. 5, an implementation flow after step 302 is shown for an exemplary embodiment of the present application, which includes the following steps:
step 501: and determining a target command line module corresponding to the menu to be configured according to the page ID.
As an embodiment, a command line module (hereinafter referred to as a target command line module) corresponding to the page ID of the target page may be obtained according to the definition information of the command line module. The definition information of the command line module includes a page ID, a module ID, a menu name, and the like.
Step 502: the command in the target command line module is set to a non-executable state.
When a command line executes a command, firstly determining a command line module to which the command belongs, and then searching a bitmap mark corresponding to the command line module in a command line module bitmap, wherein the command in the command line module corresponding to the bitmap mark in the command line module bitmap is in an executable state, so that if the bitmap mark corresponding to the command line module is found, the command can be considered executable, otherwise, if the bitmap mark corresponding to the command line module is not found, the command can be considered to be unexecutable.
Based on this, as an embodiment, the setting of the command in the target command line module to be in the non-executable state may be achieved by deleting the bitmap flag corresponding to the target command line module determined in step 501 from the command line module bitmap.
So far, the description about the flow shown in fig. 5 is completed.
Through the embodiment shown in fig. 5, it is finally realized that while the menu is hidden, the command in the command line module corresponding to the hidden menu can also be set to be in the non-executable state.
In addition, in the present application, a hidden command line module list may be registered in a user mode of the system, where each line in the hidden command line module list corresponds to a command line module in a non-executable state, and each line may include the following fields: page ID (i.e., menu ID of hidden menu), menu name (menu name of hidden menu), module ID. Management of the command line modules may be facilitated by the hidden command line module list.
Referring to fig. 6, an implementation flow after step 402 is shown for an exemplary embodiment of the present application, which includes the following steps:
step 601: and determining a target command line module corresponding to the menu to be configured according to the page ID.
The detailed description of this step can refer to the description in step 501 above, and is not repeated here.
Step 602: the commands in the target command line module are set to an executable state.
In contrast to step 502, the bitmap mark corresponding to the target command line module determined in step 601 may be added to the command line module bitmap to set the command in the target command line module to be executable.
So far, the description about the flow shown in fig. 6 is completed.
Through the embodiment shown in fig. 6, it is finally realized that while the menu hidden before is restored, the command in the command line module corresponding to the menu hidden before can be set to be executable.
In addition, after the flow shown in fig. 6 is executed, the row corresponding to the menu to be configured may also be deleted in the hidden command row module list.
Corresponding to the embodiment of the configuration method of the page menu, the application also provides an embodiment of a configuration device of the page menu.
The embodiment of the configuration device of the page menu can be applied to a server. The device embodiments may be implemented by software, or by hardware, or by a combination of hardware and software. Taking a software implementation as an example, as a logical device, the device is formed by reading corresponding computer program instructions in the nonvolatile memory into the memory for operation through the processor of the server where the device is located. From a hardware aspect, as shown in fig. 7, a hardware structure diagram of a server where a configuration device of a page menu of the present application is located is shown, except for the processor 71, the memory 72, the network interface 73, the nonvolatile memory 74, and the internal bus 75 shown in fig. 7, the server where the device is located in the embodiment may also include other hardware according to an actual function of the server, which is not described again.
Referring to fig. 8, a block diagram of an embodiment of an apparatus for configuring a page menu according to an exemplary embodiment of the present application is provided, where the apparatus may include: a command receiving module 81, a first obtaining module 82, a lookup module 83, and a modification module 84.
The command receiving module 81 is configured to receive a page menu configuration command, where the page menu configuration command carries page description information of a target page corresponding to a menu to be configured;
a first obtaining module 82, configured to obtain a page ID of the target page according to the page description information;
the searching module 83 is configured to search a preset page menu database according to the page ID, where the page menu database includes menu configuration information of multiple menus, and the menu configuration information at least includes a page ID and a parent menu ID of a page corresponding to a menu, so as to obtain target menu configuration information including the page ID;
and a modifying module 84, configured to modify the target parent menu ID in the target menu configuration information according to the page menu configuration command.
In one embodiment, the page menu configuration command is a menu hiding command;
the modifying module 84 modifies the target parent menu ID in the target menu configuration information according to the page menu configuration command, including:
checking whether a target parent menu ID in the target menu configuration information contains a preset value;
if not, adding the preset value in the target parent menu ID so that the target parent menu ID is different from the parent menu ID of the parent menu corresponding to the menu to be configured; if yes, the flow is ended.
In an embodiment, the apparatus further comprises (not shown in fig. 8):
the second acquisition module is used for determining a target command line module corresponding to the menu to be configured according to the page ID;
and the first setting module is used for setting the command in the target command line module to be in a non-executable state.
In one embodiment, the first setting module sets the command in the target command line module to a non-executable state, including:
and deleting the bitmap mark corresponding to the target command line module in a preset command line module bitmap, wherein the command in the command line module corresponding to the bitmap mark in the command line module bitmap is in an executable state.
In one embodiment, the page menu configuration command is a menu restore command;
the modifying module 84 modifies the target parent menu ID in the target menu configuration information according to the page menu configuration command, including:
checking whether a target parent menu ID in the target menu configuration information contains a preset value;
if so, deleting the preset value in the target parent menu ID so that the target parent menu ID is the same as the parent menu ID of the parent menu corresponding to the menu to be configured; if not, the flow is ended.
In an embodiment, the apparatus further comprises (not shown in fig. 8):
the third acquisition module is used for determining a target command line module corresponding to the menu to be configured according to the page ID;
and the second setting module is used for setting the command in the target command line module to be in an executable state.
In one embodiment, the second setting module sets the command in the target command line module to an executable state, including:
adding a bitmap mark corresponding to the target command line module in a preset command line module bitmap; and the command in the command line module corresponding to the bitmap mark in the command line module bitmap is in an executable state.
The implementation process of the functions and actions of each unit in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims (14)

1. A configuration method of a page menu is characterized by comprising the following steps:
receiving a page menu configuration command, wherein the page menu configuration command carries page description information of a target page corresponding to a menu to be configured;
acquiring a page ID of the target page according to the page description information;
searching a preset page menu database according to the page ID, wherein the page menu database comprises menu configuration information of a plurality of menus, and the menu configuration information at least comprises the page ID and the parent menu ID of the page corresponding to the menu, so as to obtain target menu configuration information containing the page ID;
and modifying the target parent menu ID in the target menu configuration information according to the page menu configuration command.
2. The method of claim 1, wherein the page menu configuration command is a menu hide command;
modifying the target parent menu ID in the target menu configuration information according to the page menu configuration command comprises:
checking whether a target parent menu ID in the target menu configuration information contains a preset value;
if not, adding the preset value in the target parent menu ID so that the target parent menu ID is different from the parent menu ID of the parent menu corresponding to the menu to be configured;
if yes, the flow is ended.
3. The method of claim 2, further comprising:
determining a target command line module corresponding to the menu to be configured according to the page ID;
and setting the command in the target command line module to be in a non-executable state.
4. The method of claim 3, wherein setting the command in the target command line module to a non-executable state comprises:
and deleting the bitmap mark corresponding to the target command line module in a preset command line module bitmap, wherein the command in the command line module corresponding to the bitmap mark in the command line module bitmap is in an executable state.
5. The method of claim 1, wherein the page menu configuration command is a menu restore command;
modifying the target parent menu ID in the target menu configuration information according to the page menu configuration command comprises:
checking whether a target parent menu ID in the target menu configuration information contains a preset value;
if so, deleting the preset value in the target parent menu ID so that the target parent menu ID is the same as the parent menu ID of the parent menu corresponding to the menu to be configured;
if not, the flow is ended.
6. The method of claim 5, further comprising:
determining a target command line module corresponding to the menu to be configured according to the page ID;
and setting the command in the target command line module to be in an executable state.
7. The method of claim 6, wherein setting the command in the target command line module to an executable state comprises:
adding a bitmap mark corresponding to the target command line module in a preset command line module bitmap; and the command in the command line module corresponding to the bitmap mark in the command line module bitmap is in an executable state.
8. An apparatus for configuring a page menu, the apparatus comprising:
the command receiving module is used for receiving a page menu configuration command, and the page menu configuration command carries page description information of a target page corresponding to a menu to be configured;
the first acquisition module is used for acquiring the page ID of the target page according to the page description information;
the searching module is used for searching a preset page menu database according to the page ID, wherein the page menu database comprises menu configuration information of a plurality of menus, and the menu configuration information at least comprises the page ID and the parent menu ID of a page corresponding to the menu to obtain target menu configuration information containing the page ID;
and the modification module is used for modifying the target parent menu ID in the target menu configuration information according to the page menu configuration command.
9. The apparatus of claim 8, wherein the page menu configuration command is a menu hide command;
the modification module modifies the target parent menu ID in the target menu configuration information according to the page menu configuration command, and comprises the following steps:
checking whether a target parent menu ID in the target menu configuration information contains a preset value;
if not, adding the preset value in the target parent menu ID so that the target parent menu ID is different from the parent menu ID of the parent menu corresponding to the menu to be configured; if yes, the flow is ended.
10. The apparatus of claim 9, further comprising:
the second acquisition module is used for determining a target command line module corresponding to the menu to be configured according to the page ID;
and the first setting module is used for setting the command in the target command line module to be in a non-executable state.
11. The apparatus of claim 10, wherein the first setting module sets the command in the target command line module to a non-executable state, comprising:
and deleting the bitmap mark corresponding to the target command line module in a preset command line module bitmap, wherein the command in the command line module corresponding to the bitmap mark in the command line module bitmap is in an executable state.
12. The apparatus of claim 8, wherein the page menu configuration command is a menu restore command;
the modification module modifies the target parent menu ID in the target menu configuration information according to the page menu configuration command, and comprises the following steps:
checking whether a target parent menu ID in the target menu configuration information contains a preset value;
if so, deleting the preset value in the target parent menu ID so that the target parent menu ID is the same as the parent menu ID of the parent menu corresponding to the menu to be configured; if not, the flow is ended.
13. The apparatus of claim 12, further comprising:
the third acquisition module is used for determining a target command line module corresponding to the menu to be configured according to the page ID;
and the second setting module is used for setting the command in the target command line module to be in an executable state.
14. The apparatus of claim 13, wherein the second setting module sets the command in the target command line module to an executable state, comprising:
adding a bitmap mark corresponding to the target command line module in a preset command line module bitmap; and the command in the command line module corresponding to the bitmap mark in the command line module bitmap is in an executable state.
CN201911171059.6A 2019-11-26 2019-11-26 Page menu configuration method and device Active CN110879871B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911171059.6A CN110879871B (en) 2019-11-26 2019-11-26 Page menu configuration method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911171059.6A CN110879871B (en) 2019-11-26 2019-11-26 Page menu configuration method and device

Publications (2)

Publication Number Publication Date
CN110879871A true CN110879871A (en) 2020-03-13
CN110879871B CN110879871B (en) 2022-09-27

Family

ID=69729729

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911171059.6A Active CN110879871B (en) 2019-11-26 2019-11-26 Page menu configuration method and device

Country Status (1)

Country Link
CN (1) CN110879871B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112905388A (en) * 2021-03-15 2021-06-04 杭州迪普科技股份有限公司 Page configuration information processing method and device

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6434568B1 (en) * 1999-08-31 2002-08-13 Accenture Llp Information services patterns in a netcentric environment
US20080163260A1 (en) * 2006-12-29 2008-07-03 Verizon Business Financial Management Corp. Asynchronously generated menus
CN102129378A (en) * 2010-01-20 2011-07-20 腾讯科技(深圳)有限公司 Software menu updating method and device
CN102254037A (en) * 2011-08-11 2011-11-23 北京北纬通信科技股份有限公司 Menu interactive processing method applied to unstructured supplementary service data (USSD) system
CN103577191A (en) * 2013-10-31 2014-02-12 中国电子科技集团公司第四十一研究所 Configurable instrument menu system
CN103649897A (en) * 2011-07-14 2014-03-19 微软公司 Submenus for context based menu system
CN105511736A (en) * 2015-12-04 2016-04-20 中国建设银行股份有限公司 Method and system for adjusting menus
CN106484422A (en) * 2016-10-12 2017-03-08 歌尔科技有限公司 Intelligent worn device multilevel menu page display method and Intelligent worn device
CN108920242A (en) * 2018-06-29 2018-11-30 乐蜜有限公司 Navigation bar generation method and device
CN109343763A (en) * 2018-09-03 2019-02-15 沈阳工业大学 Intelligent polygon right-click menu method
CN105653977B (en) * 2015-12-28 2019-07-05 上海瀚银信息技术有限公司 A kind of menu authority configuring method and system
CN110119294A (en) * 2019-04-04 2019-08-13 口碑(上海)信息技术有限公司 The generation method of menu page, apparatus and system

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6434568B1 (en) * 1999-08-31 2002-08-13 Accenture Llp Information services patterns in a netcentric environment
US20080163260A1 (en) * 2006-12-29 2008-07-03 Verizon Business Financial Management Corp. Asynchronously generated menus
CN102129378A (en) * 2010-01-20 2011-07-20 腾讯科技(深圳)有限公司 Software menu updating method and device
CN103649897A (en) * 2011-07-14 2014-03-19 微软公司 Submenus for context based menu system
CN102254037A (en) * 2011-08-11 2011-11-23 北京北纬通信科技股份有限公司 Menu interactive processing method applied to unstructured supplementary service data (USSD) system
CN103577191A (en) * 2013-10-31 2014-02-12 中国电子科技集团公司第四十一研究所 Configurable instrument menu system
CN105511736A (en) * 2015-12-04 2016-04-20 中国建设银行股份有限公司 Method and system for adjusting menus
CN105653977B (en) * 2015-12-28 2019-07-05 上海瀚银信息技术有限公司 A kind of menu authority configuring method and system
CN106484422A (en) * 2016-10-12 2017-03-08 歌尔科技有限公司 Intelligent worn device multilevel menu page display method and Intelligent worn device
CN108920242A (en) * 2018-06-29 2018-11-30 乐蜜有限公司 Navigation bar generation method and device
CN109343763A (en) * 2018-09-03 2019-02-15 沈阳工业大学 Intelligent polygon right-click menu method
CN110119294A (en) * 2019-04-04 2019-08-13 口碑(上海)信息技术有限公司 The generation method of menu page, apparatus and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
SASCHA GEBHARDT 等: "Extended Pie Menus for Immersive Virtual Environments", 《IEEE TRANSACTIONS ON VISUALIZATION AND COMPUTER GRAPHICS》 *
张军明 等: "具有权限控制的通用菜单组件的设计与实现", 《赤峰学院学报(自然科学看版)》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112905388A (en) * 2021-03-15 2021-06-04 杭州迪普科技股份有限公司 Page configuration information processing method and device
CN112905388B (en) * 2021-03-15 2023-12-15 杭州迪普科技股份有限公司 Page configuration information processing method and device

Also Published As

Publication number Publication date
CN110879871B (en) 2022-09-27

Similar Documents

Publication Publication Date Title
CN109446570B (en) Business process display method, device, computer equipment and storage medium
CN111666189B (en) Method and system for declaratively visually configuring Prometheus monitoring alarm
US8589909B2 (en) Techniques for reducing down time in updating applications with metadata
US8812546B1 (en) State management for user interfaces
US7984115B2 (en) Extensible application platform
CN103744680B (en) Method and device for business process processing
US10204125B2 (en) Method, apparatus, and application platform for updating application object attribute
US20170235661A1 (en) Integration of Software Systems via Incremental Verification
CN107357593A (en) Source code file construction method, device, electric terminal and readable storage medium storing program for executing
US20120291014A1 (en) System and method for testing the development and updates in a test system using production/live data
CN110084486B (en) Resource management method and device
CN108776587B (en) Data acquisition method and device, computer equipment and storage medium
US20170371641A1 (en) Multi-tenant upgrading
US20150127497A1 (en) Search Based Content Inventory Comparison
US20220229638A1 (en) Content development device
US9342606B2 (en) Intelligent software installation
CN111427577A (en) Code processing method and device and server
CN110879871B (en) Page menu configuration method and device
CN107832403A (en) Catalogue file management method, device, electric terminal and readable storage medium storing program for executing
CN113741931B (en) Software upgrading method and device, electronic equipment and readable storage medium
EP4030280A1 (en) Seamless lifecycle stability for extensible software features
CN114816470A (en) Metadata database management method and device, electronic equipment and medium
JP2022173048A (en) Robotic process automation (rpa) comprising automatic document scrolling
CN113094367A (en) Data processing method and device and server
CN108614838B (en) User group index processing method, device and system

Legal Events

Date Code Title Description
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