CN113778442A - System menu generating method, device, equipment and storage medium - Google Patents

System menu generating method, device, equipment and storage medium Download PDF

Info

Publication number
CN113778442A
CN113778442A CN202111065598.9A CN202111065598A CN113778442A CN 113778442 A CN113778442 A CN 113778442A CN 202111065598 A CN202111065598 A CN 202111065598A CN 113778442 A CN113778442 A CN 113778442A
Authority
CN
China
Prior art keywords
menu
script file
user
generating
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111065598.9A
Other languages
Chinese (zh)
Inventor
沈加文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Weikun Shanghai Technology Service Co Ltd
Original Assignee
Weikun Shanghai Technology Service 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 Weikun Shanghai Technology Service Co Ltd filed Critical Weikun Shanghai Technology Service Co Ltd
Priority to CN202111065598.9A priority Critical patent/CN113778442A/en
Publication of CN113778442A publication Critical patent/CN113778442A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Abstract

The application relates to artificial intelligence and discloses a system menu generating method, a device, equipment and a storage medium, wherein the method comprises the following steps: generating a menu script file and a file identifier of the menu script file based on configuration information input by a first user on a menu configuration interface contained in a script file generation tool, and performing associated storage on the menu script file and the file identifier; determining whether a test menu page generated based on the menu script file meets a preset test condition; if the test menu page is determined to meet the preset test condition, storing the menu script file into a background storage corresponding to the specified system; and when the second user logs in the specified system, generating a menu page matched with the second user on the front-end page of the specified system based on the menu script file in the background storage. The efficiency and the accuracy of generating the menu script file can be improved. The application relates to a block chain technology, such as the data can be written into a block chain for a scene of menu generation and the like.

Description

System menu generating method, device, equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a storage medium for generating a system menu.
Background
With the rapid development of computer technology, various background management systems are applied more and more frequently, and a large amount of development is needed for menus corresponding to the background management systems, and at present, generally, a test environment is created through functions first, and then a corresponding menu is created in a production environment. Therefore, how to unify the menus corresponding to the background management system in different environments to ensure the accuracy of generating the system menus becomes a problem to be solved urgently.
Disclosure of Invention
The embodiment of the application provides a method, a device, equipment and a storage medium for generating a system menu, which can improve the generation efficiency and accuracy of a generated menu script file, so that the menu script file can ensure that menus generated by a background management system are unified in different environments, the generation accuracy of the system menu is ensured, menus matched with roles of a user can be generated based on the menu script file and the different roles of the user, and the adaptability of the menu script file is improved.
In a first aspect, an embodiment of the present application discloses a system menu generating method, where the method includes:
generating a menu script file and a file identifier of the menu script file based on configuration information input by a first user on a menu configuration interface contained in a script file generation tool, and performing associated storage on the menu script file and the file identifier, wherein the file identifier is used for uniquely indicating the menu script file;
determining whether a test menu page generated based on the menu script file is preset with test conditions;
if the test menu page is determined to meet the preset test condition, storing the menu script file into a background storage of a corresponding specified system;
and when a second user logs in the specified system, generating a menu page matched with the second user on a front-end page of the specified system based on the menu script file in the background storage.
In a second aspect, an embodiment of the present application discloses a system menu generating device, where the device includes:
the menu script file generating device comprises a first generating unit, a second generating unit and a processing unit, wherein the first generating unit is used for generating a menu script file and a file identifier of the menu script file based on configuration information input by a first user on a menu configuration interface contained in a script file generating tool, and storing the menu script file and the file identifier in a correlation manner, and the file identifier is used for uniquely indicating the menu script file;
the test unit is used for determining whether a test menu page generated based on the menu script file is preset with test conditions;
the storage unit is used for storing the menu script file into a background storage of a corresponding specified system if the test menu page is determined to meet the preset test condition;
and the second generation unit is used for generating a menu page matched with the second user on a front-end page of the specified system based on the menu script file in the background storage when the second user logs in the specified system.
In a third aspect, an embodiment of the present application discloses a system menu generating device, including a processor and a memory, where the memory is used to store a computer program, the computer program includes program instructions, and the processor is configured to call the program instructions to execute the method of the first aspect.
In a fourth aspect, embodiments of the present application disclose a computer-readable storage medium storing a computer program, the computer program comprising program instructions that, when executed by a processor, cause the processor to perform the method of the first aspect.
In the embodiment of the application, the menu script file and the file identifier of the menu script file can be generated based on configuration information input by a first user on a menu configuration interface included in a script file generation tool, the menu script file and the file identifier are stored in an associated manner, the file identifier is used for uniquely indicating the menu script file, then, whether a test condition is preset on a test menu page generated based on the menu script file or not can be determined, and if the test menu page is determined to meet the preset test condition, the menu script file can be stored in a background storage of a corresponding specified system. When the second user logs in the specified system, a menu page matched with the second user can be generated on a front-end page of the specified system based on the menu script file in the background storage. By implementing the method, the generating efficiency and the generating accuracy of the generated menu script file can be improved, so that the menu script file can ensure that the menus generated by the background management system are unified in different environments, the generating accuracy of the system menu is ensured, the menus matched with the roles of the users can be generated based on the menu script file and the different roles of the users, and the adaptability of the menu script file is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a system menu generating method according to an embodiment of the present application;
FIG. 2 is an interface diagram of a script file tool provided by an embodiment of the present application;
FIG. 3 is an interface diagram of a task management interface provided by an embodiment of the present application;
FIG. 4 is an interface diagram of a system management interface according to an embodiment of the present disclosure;
fig. 5a is a schematic interface diagram of a menu management interface according to an embodiment of the present disclosure;
FIG. 5b is an interface diagram of a menu list management configuration interface according to an embodiment of the present disclosure;
FIG. 5c is a schematic interface diagram of a menu modification interface provided by an embodiment of the present application;
FIG. 5d is an interface diagram of a menu role management configuration interface according to an embodiment of the present disclosure;
FIG. 6 is an interface diagram of an operation right management configuration interface according to an embodiment of the present disclosure;
FIG. 7 is an interface diagram of a role management interface provided in an embodiment of the present application;
FIG. 8 is an interface diagram of another task management interface provided by an embodiment of the present application;
fig. 9 is a schematic structural diagram of a system menu generating apparatus according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a system menu generating device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a method for generating a system menu according to an embodiment of the present disclosure. The system menu generation method described in this embodiment is applied to a system menu generation device, and can be executed by the system menu generation device. As shown in fig. 1, the system menu generating method includes the following steps:
s101: and generating a menu script file and a file identifier of the menu script file based on configuration information input by a first user on a menu configuration interface contained in a script file generation tool, and storing the menu script file and the file identifier in an associated manner.
In an implementation manner, the script file generation tool may be a unified generation tool for a menu script file, and when a first user (the first user may be any user, such as a tester or a developer in an enterprise) needs to generate a menu script file corresponding to a background management system, the script file generation tool may be used to automatically generate a menu script file. Specifically, the first user may perform related operations in the script file generation tool to generate a menu script file according to the operations of the first user. For example, a menu configuration interface may be included in the script file generation tool, the first user may input relevant configuration information on the menu configuration interface, and after the operation of the first user in the script file generation tool is completed, the system menu generation device may generate the menu script file based on the configuration information input by the first user on the menu configuration interface included in the script file generation tool. The menu script file is generated by the script file generating tool, a user does not need to know the structural information of various information (such as the binding of role types, the setting of menu operation authority and the like) in the generated menu script file, and only needs to input corresponding information on a related menu configuration interface in the script file generating tool, so that the generation time and the generation complexity of the menu script file can be reduced, and the generation efficiency of the menu script file can be improved.
In an implementation manner, when the system menu generating device generates the menu script file by using the script file generating tool, the system menu generating device may also generate a file identifier corresponding to the menu script file, where the file identifier may be used to uniquely indicate the menu script file, where the file identifier may be a number, a bit value (bit), or other information, and the application is not limited in this application. After the menu script file and the file identifier corresponding to the menu script file are generated, the menu script file and the file identifier can be stored in an associated manner, so that the corresponding menu script file can be inquired subsequently according to the file identifier, and the inquiry speed is increased.
Optionally, the system menu generating device may be a server, and the server may be an independent server, or may be a cloud server that provides basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a Network service, cloud communication, a middleware service, a domain name service, a security service, a Content Delivery Network (CDN), a big data and artificial intelligence platform, and the like. Optionally, the system menu generating device may also be a terminal device, and the terminal device may include but is not limited to: smart phones, tablets, laptops, wearable devices, desktop computers, and the like.
In one implementation, the menu configuration interface included in the script file generation tool may include a task management interface, a system management interface, a menu management interface, an operation authority management configuration interface, a role management interface, and the like. For example, as shown in fig. 2, the terminal used by the first user may be provided with the script file generation tool, and display each menu configuration interface in the script file generation tool in the terminal screen thereof. For example, when a first user needs to generate a menu script file by using the script file generation tool, the user can click on each interface control in the area marked by 21 so that the current interface can jump to the corresponding menu configuration interface. For example, when the first user clicks "task management," the interface in the script file generation tool may jump to the task management interface.
In one implementation, when the first user needs to generate the menu script file by using the script file generation tool, a task for the current menu script file may be created in the task management interface of the script file generation tool, for example, the first user may click on a new task control (e.g., "new task" as shown in fig. 2) as in fig. 2. After the first user clicks the newly added task control, a task management interface may be displayed in the script file generating tool, where the task management interface may be as shown in a page marked by 31 in fig. 3, and the task management interface may be used to input task information required for configuring the menu script file, where the task information may include a task name, task description information, and task tenant information. The task name setting item, the task description setting item, and the tenant setting item in the page marked by 31 in fig. 3 as the first user can input the corresponding task name, task description information, and task tenant information, respectively. The task description information may generally be a relevant description of the current task, so that a subsequent user can understand the current task according to the task description information. The task tenant information may refer to an enterprise to which a specified system (e.g., a business system) corresponding to the menu script file created by the first user is applied, for example, if the first user creates a corresponding menu script file for a business system in enterprise a, the task tenant information may be "enterprise a". After the first user inputs the task information in the page marked by 31 in fig. 3, a trigger operation (such as a click operation, a press operation, etc.) may be performed on the immediate creation control in the page, so that the system menu generating device may acquire the task information input by the first user and add the task information to the menu script file.
In an implementation manner, the first user may further input system information related to the specified system setting corresponding to the menu script file in a system management interface in the script file generation tool, and the system may be understood as a service system for a specific menu function provided by the menu script file. For example, the menu script file of the present application may be for a menu to be generated on an agent management system, or for a menu to be generated on a campus educational administration system, etc. The system information may include a system identification, a system name, and the like. For example, as shown in fig. 4, when the first user clicks "system management" marked by 41, the interface in the script file generation tool may jump to the system management interface shown in fig. 4, and when the first user needs to set system information of the system, the first user may click "new business system" marked by 42, and after the "new business system" is clicked, an interface may pop up in the interface shown in fig. 4, where the popped-up interface may be a specific system management configuration interface, and the system management configuration interface may allow the first user to input a system identifier, a system name, and the like for the system corresponding to the menu script file. After inputting the corresponding system information in the system management configuration interface, the input system information may be displayed in the existing system list in the system management interface shown in fig. 4, for example, the area marked by 43 may be the system information input in the system management configuration interface, such as the system identifier 420069, and the system name is the product factory.
In one implementation, the menu configuration interface in the script file generation tool may include a menu list management configuration interface. For example, the menu list management configuration interface may be displayed in the script file generation tool, and the menu list management configuration interface may include a menu name setting item, where the menu name setting item may be used by a user to input a menu name corresponding to each menu in the menu list. It is understood that the menu list includes multiple levels of menus, for example, a first level menu, a second level menu, a third level menu, and so on, where the names of the menus described above may include names of the menus corresponding to the respective levels of menus. After the first user inputs the relevant configuration information at the menu list management configuration interface, the system menu generating apparatus may receive the configuration information of the first user at the menu list management configuration interface, which may include a menu name input at the menu list setting item by the first user, the menu name being a menu name of each menu included in the menu list, and add the configuration information to the menu script file.
For example, when the first user clicks a menu management control as in fig. 5a, a menu management interface as in fig. 5a may be displayed in the script file generation tool, and during the process of configuring the menu list corresponding to the menu script file, an area as marked by 51 in fig. 5a may be displayed, where the "existing system menu list" displayed in the area as marked by 51 is the current menu list generated during the menu list creation process. The menu management interface may provide for the first user to input menu basic information for the menu list. For example, the menu management interface may include a menu add control, labeled 52, a menu modify control, labeled 53, a menu role control, labeled 54. The first user can click the various controls to perform corresponding information configuration.
Optionally, if the first user needs to add a certain menu, the menu addition control marked by 52 may be clicked, and after the first user clicks the menu addition control, an interface as shown in fig. 5b may be displayed, where an area marked by 55 in fig. 5b is a menu list management configuration interface, and the interface is used for the first user to input menu information corresponding to the menu. It can be seen that, in the interface, in addition to configuring the menu name of the menu, the menu URL, the menu ranking number and the system to which the menu belongs corresponding to the menu may also be configured, and other information related to the menu may also be configured, which is not limited in the present application. When the first user clicks on the create-immediately control, the system menu generating device may receive the input configuration information and add the configuration information to the menu script file. It will be appreciated that when creating a complete menu list, the menu list may be created in order from the menu level high to low. For example, a menu list may include multiple levels, such as a first level menu, a second level menu, a third level menu, etc., and may include multiple submenus under each level of menu. Each level of menu or submenu needs to configure its corresponding basic menu information. The first user can click the menu adding control for multiple times to configure the menu information corresponding to each menu in the menu list. The "existing system menu list" shown in fig. 5a may represent a menu list being configured, the first level menu of which is the "cash-in-tracking management system".
Optionally, when configuring the menu information of the menu list, an error configuration may also occur, in which case the first user may click on a menu modification control, as marked by 53 in fig. 5a, to perform the relevant information modification. When it is detected that the menu modification control is triggered, an interface as shown in fig. 5c may be displayed, where an area marked by 56 in the interface is a menu modification interface, and the menu modification interface may be used for the first user to modify the menu information of the configured menu. After the first user inputs modification information on the menu modification interface, the first user can click to determine a modification control, and then the system menu generating device can receive the input modification information and can adjust original information in the menu script file according to the modification information to obtain an adjusted menu script file.
In one implementation, the menu configuration interface in the script file generation tool may include a menu role management configuration interface. For example, the menu role management configuration interface may be displayed in a script file generation tool, and the menu role management configuration interface may be used by the first user to set a role type corresponding to each menu in the menu list. The menu role management configuration interface may include a menu selection item and a role setting item, and after the first user inputs a role type of each menu in the menu list in the menu role management configuration interface, the system menu generation device may receive configuration information of the first user in the menu role management configuration interface, and add the configuration information to the menu script file, where the configuration information may include a menu name input by the first user in the menu selection item and a role type input in the role setting item.
It will be appreciated that whether or not a menu of the system is visible to a user may be controlled by the character. For example, for an associated enterprise system in an enterprise, when users in different roles log on to the system, menu pages displayed in the system may be different, i.e., different users have different rights to target menus in the system. In a specific implementation, a menu can be bound to a certain role, and if a user needs to use the menu, after applying for the bound role by using a related operation, a subsequent user can see more menus corresponding to the role and use the functions of the menus. For example, when the bound role control marked 54 in fig. 5a is triggered, an interface as shown in fig. 5d may be displayed, where an area marked 57 in fig. 5d is a menu role management configuration interface, and the menu role management configuration interface may be used for the first user to set a role type corresponding to each menu in the menu list. For example, a menu may set the role corresponding to the censoring post or the application post. The menu role management configuration interface may also modify the set role types, for example, may delete the set role types.
In one implementation, the menu configuration interface in the script file generation tool may include an operation authority management configuration interface. For example, an operation authority management configuration interface including a menu selection item, a role setting item, and an operation authority setting item may be displayed in the script file generation tool. After the first user inputs the related information in the setting item corresponding to the operation authority management configuration interface, the system menu generating device may receive the configuration information of the first user in the operation authority management configuration interface, and add the configuration information to the menu script file. The configuration information may include a menu name input by the first user at the menu selection item, a role type input by the role setting item, and an operation authority input at the operation authority setting item.
For example, after the user clicks the operation right management control in fig. 6, the operation right management configuration interface shown in fig. 6 may be displayed, so as to implement the operation right setting corresponding to the menu or bind the operation right with the role type by using the relevant operation of the interface. It can be understood that, for a certain menu in a menu list, after a page corresponding to the menu is opened, multiple functions for a certain event may exist in the page, such as a view button, a new button, a modify button, and different functions correspond to different operations, and these different operations may also set corresponding permissions, that is, the operation permission setting corresponding to the menu may be performed, so as to perform operation permission management. For example, the relevant information may be set in the area marked by 61 in fig. 6 to perform the setting of the operation authority. In addition to setting the operation right of the menu directly, the operation right can be bound with the role type, that is, the operation right is not set for a certain menu in the menu list, but is directly bound with the role type. For example, the binding of the operating rights to the role type can be done in the area marked 62 in FIG. 6.
Optionally, in addition to the interface shown in fig. 5d, the interface shown in fig. 5d may be used to bind the role type of the menu, and the interface shown in fig. 7 may also be used to bind the role type of the menu. For example, after the first user clicks the role management control shown in fig. 2, an interface shown in fig. 7 may be displayed, and the first user may perform relevant operations on the interface to implement the role type binding for the menu.
In an implementation manner, after the configuration information of each management interface is configured, a menu script file may be generated according to the corresponding configuration information. For example, as shown in fig. 8, after configuration information of each management interface is configured, a task management interface displayed in a script file generation tool, as data marked by 81 in fig. 8, that is, a file identifier corresponding to the menu script file generated by the system menu generation device after the menu script file is generated, is generated. Also, after the menu script file is generated, the corresponding task state displayed in the task management interface may be changed from the to-be-generated script state to the script already generated as marked by 82 in fig. 8. The menu script file and the file identifier of the menu script file are generated in the system menu generating device, the menu script file and the file identifier can be stored in a relevant manner and stored in a designated position, and the designated position is not limited in the application.
In one implementation, before generating the menu script file using the script file generation tool, it may also be determined whether the menu script file may be generated using the script file generation tool. For example, the multiplexing probability of the menu script file, the storage space corresponding to the script file generation tool, and the like may be used. The multiplexing probability of the menu script file can be determined according to the user population of the designated system corresponding to the menu script file, and if the user population of the designated system is more, it can be understood that under the condition that the user population is more, various menu pages matched with the user are generated on the front-end page of the designated system based on the role type of the user and the menu script file, that is, the multiplexing probability of the menu script file is higher. For example, taking the multiplexing probability of the menu script file as an example for explanation, preset multiplexing probability and multiplexing probability of the menu script file may be obtained, and whether the multiplexing probability of the menu script file is higher than the preset multiplexing probability may be detected. If the multiplexing probability of the menu script file is higher than the preset multiplexing probability, the menu script file can be generated by using a script file generation tool. If the multiplexing probability of the menu script file is not higher than the preset multiplexing probability, the menu script file can be generated without using a script file generation tool. Therefore, the menu script file with high multiplexing probability can be generated quickly by using the script file generation tool. For another example, the generated correlation rule may be set for the multiplexing probability and the storage space, and if the storage space is insufficient but the multiplexing probability is low, it is determined not to generate the menu script file, or if the storage space is insufficient but the multiplexing probability is high, it is determined to generate the menu script file.
In one implementation, when a plurality of first users perform a task of menu script file generation using a script file generation tool within the same time period, a file generation order of generating a corresponding file may be determined according to a file priority of the menu script file. The file priority can be positively correlated with the file generation sequence, namely the higher the file priority of the menu script file is, the faster the corresponding file generation sequence is, so that the more important menu script file can be ensured to be generated quickly. For example, the file priority may be determined according to the multiplexing probability of the menu script file, and if the multiplexing probability of a certain menu script file is higher, the corresponding file priority is higher.
S102: and determining whether a test menu page generated based on the menu script file meets a preset test condition.
In one implementation, the menu script file generated by the script file generation tool can be applied to various scenarios, such as a testing environment and an actual production environment. It can be understood that before the menu script file is put into actual production, the menu script file can be tested in a test environment to ensure the validity of the menu script file. For example, a corresponding test menu page may be generated based on the menu script file, and whether the test menu page satisfies a preset test condition is detected, if the detection result is that the test menu page satisfies the preset test condition, it may be determined that the menu script file is a valid file, and after determining that the menu script file is a valid file, the menu script file may be released in an actual production environment to be put into actual production. If the detection result is that the test menu page does not meet the preset test condition, the menu script file can be adjusted to ensure the validity of the menu script file. And if the menu script file is determined to be invalid, determining an invalid reason for the invalid menu script file, and reconfiguring the relevant information in the script file generation tool according to the invalid reason to obtain the valid menu script file. Optionally, the preset test condition may include: and aiming at whether the menu list in the test menu page corresponding to different user types is consistent with the configuration in the menu script file, whether the operation authority corresponding to each menu in the menu list in the test menu page is consistent with the configuration in the menu script file, whether each menu in the menu list in the test menu page can normally operate and the like.
In an implementation manner, before determining whether a test menu page generated based on a menu script file meets a preset test condition, a script file request sent by a third user may also be obtained, where the script file request carries a file identifier, and then, after receiving the script file request to be executed, a menu script file corresponding to the file identifier may be obtained from a storage according to the file identifier. And carrying out subsequent testing tasks by utilizing the acquired menu script file. Optionally, after acquiring the script file request sent by the third user, it may also be determined whether the third user has the request right. And if the third user is determined to have the corresponding request authority, acquiring the menu script file corresponding to the file identifier from the storage according to the file identifier. And if the third user does not have the corresponding request permission, the corresponding menu script file cannot be acquired according to the file identifier. For example, the user request authority corresponding to each menu script file may be set in advance in the storage.
S103: and if the test menu page is determined to meet the preset test condition, storing the menu script file into a background storage corresponding to the specified system.
In one implementation, if it is determined that the test menu page satisfies the preset test condition, it may be determined that the menu script file is valid. Then the menu script file can be applied in an actual production environment. For example, the menu script file may be stored in a background storage corresponding to the specified system, so that a corresponding menu page may be subsequently generated on a front-end page of the specified system using the menu script file.
S104: and when the second user logs in the specified system, generating a menu page matched with the second user on the front-end page of the specified system based on the menu script file in the background storage.
In one implementation, whether the menu of the background management system is visible to a user is controlled by the role type of the user. As can be seen from the above, each sub-menu in the menu list may be bound to a certain role type, and then, if a user needs to log in a certain system, the user may apply for binding the certain role type, for example, in an enterprise, the role types of employees may include a common employee, an important employee, a leader, and an administrator, and then, when employees with different role types log in the system, the displayed menu pages may be different. As can be seen from the above, each menu in the menu list may also be bound with a corresponding operation authority, or different role types may also be bound with different operation authorities. Then, the operation authority of each menu in the menu page displayed by the following slot is also different.
In one implementation, a target role type of the second user may be obtained to determine a target menu list and menu operation permissions associated with the target role type from a menu script file based on the target role type. And when the target menu list and the menu operation authority for the second user are determined, a menu page matched with the second user can be generated on the front-end page of the specified system according to the target menu list and the menu operation authority. For example, taking an enterprise as an example, assume that the second user is an employee in the enterprise, and the employee in the enterprise may generally include types of general employees, important employees, leaders, administrators, and the like, i.e., the target role type of the second user may include general employees, important employees, leaders, administrators, and the like. It will be appreciated, then, that the menu pages presented may be different for different types of employees when logging into a given system. If the administrator logs in the designated system, a menu page of a management type is displayed on the front-end page of the designated system, and if the leader logs in the designated system, a menu page of a leader type is displayed on the front-end page of the designated system.
In one implementation, after the menu script file is generated for the first time, whether the menu script file is updated or not can be detected. For example, a menu name of a certain submenu in the menu list changes, or a role type bound to a certain submenu changes, or other changes occur in other menu script files, which can be understood as an update of the menu script file. If the menu script file is detected to be updated, an updating task for updating the menu page according to the updated menu script file can be triggered to obtain the changed menu page, so that when a user logs in the appointed system, the menu page displayed on the front-end page of the appointed system can be updated in real time, and the user experience can be improved.
In the embodiment of the application, the menu script file and the file identifier of the menu script file can be generated based on configuration information input by a first user on a menu configuration interface included in a script file generation tool, the menu script file and the file identifier are stored in an associated manner, the file identifier is used for uniquely indicating the menu script file, then, whether a test condition is preset on a test menu page generated based on the menu script file or not can be determined, and if the test menu page is determined to meet the preset test condition, the menu script file can be stored in a background storage of a corresponding specified system. When the second user logs in the specified system, a menu page matched with the second user can be generated on a front-end page of the specified system based on the menu script file in the background storage. The method and the device can improve the generation efficiency and accuracy of the generated menu script file, so that the menu script file can ensure that the menus generated by the background management system are unified in different environments, the generation accuracy of the system menu is ensured, the menus matched with the roles of the users can be generated based on the menu script file and the different roles of the users, and the adaptability of the menu script file is improved.
Referring to fig. 9, fig. 9 is a schematic structural diagram of a system menu generating device according to an embodiment of the present application, where the system menu generating device includes:
a first generating unit 901, configured to generate a menu script file and a file identifier of the menu script file based on configuration information input by a first user on a menu configuration interface included in a script file generating tool, and store the menu script file and the file identifier in an associated manner, where the file identifier is used to uniquely indicate the menu script file;
a testing unit 902, configured to determine whether a test menu page generated based on the menu script file is preset with a test condition;
a storage unit 903, configured to store the menu script file into a background storage of a corresponding specified system if it is determined that the test menu page meets the preset test condition;
a second generating unit 904, configured to generate, when a second user logs in the specified system, a menu page matched with the second user on a front-end page of the specified system based on the menu script file in the background storage.
In an implementation manner, the second generating unit 904 is specifically configured to:
acquiring the target role type of the second user;
determining a target menu list and menu operation permission associated with the target role type from the menu script file based on the target role type;
and generating a menu page matched with the second user on a front-end page of the specified system according to the target menu list and the menu operation authority.
In one implementation, the menu configuration interface includes a menu list management configuration interface; the first generating unit 901 is specifically configured to:
displaying the menu list management configuration interface in the script file generation tool, wherein the menu list management configuration interface comprises a menu name setting item;
and receiving configuration information of the first user on the menu list management configuration interface, and adding the configuration information to a menu script file, wherein the configuration information comprises menu names input by the first user on the menu list setting items, and the menu names are menu names of all submenus included in the menu list.
In one implementation, the menu configuration interface includes a menu role management configuration interface; the first generating unit 901 is specifically configured to:
displaying the menu role management configuration interface in a script file generation tool, wherein the menu role management configuration interface comprises a menu selection item and a role setting item;
and receiving configuration information of the first user on the menu role management configuration interface, and adding the configuration information to a menu script file, wherein the configuration information comprises a menu name input by the first user on the menu selection item and a role type input by the first user on the role setting item.
In one implementation, the menu configuration interface includes an operation authority management configuration interface; the first generating unit 901 is specifically configured to:
displaying the operation authority management configuration interface in a script file generation tool, wherein the operation authority management configuration interface comprises a menu selection item, a role setting item and an operation authority setting item;
and receiving configuration information of the first user on the operation authority management configuration interface, and adding the configuration information to a menu script file, wherein the configuration information comprises a menu name input by the first user on the menu selection item, a role type input by the role setting item and operation authority input by the operation authority setting item.
In one implementation, the test unit 902 is further configured to:
acquiring a script file request sent by a third user, wherein the script file request carries the file identifier;
and acquiring a menu script file corresponding to the file identifier from a storage according to the file identifier.
In an implementation manner, the second generating unit 904 is further configured to:
detecting whether the menu script file is updated or not;
and if the menu script file is detected to be updated, triggering an updating task for updating the menu page according to the updated menu script file so as to obtain the changed menu page.
It can be understood that the functions of the functional units of the system menu generating device described in the embodiment of the present application may be specifically implemented according to the method in the method embodiment described in fig. 1, and the specific implementation process may refer to the relevant description of the method embodiment in fig. 1, which is not described herein again.
In this embodiment of the present application, the first generating unit 901 generates a menu script file and a file identifier of the menu script file based on configuration information input by a first user on a menu configuration interface included in a script file generating tool, and stores the menu script file and the file identifier in an associated manner, where the file identifier is used to uniquely indicate the menu script file; the test unit 902 determines whether a test menu page generated based on the menu script file is preset with test conditions; if the storage unit 903 determines that the test menu page meets the preset test condition, the menu script file is stored in a background storage of a corresponding designated system; when a second user logs in the designated system, the second generating unit 904 generates a menu page matched with the second user on a front-end page of the designated system based on the menu script file in the background storage. The efficiency and the accuracy of generating the menu script file can be improved.
Referring to fig. 10, fig. 10 is a schematic structural diagram of a system menu generating device according to an embodiment of the present application. The system menu generating device includes: a processor 1001, a memory 1002, and a network interface 1003. The processor 1001, the memory 1002, and the network interface 1003 may exchange data with each other.
The Processor 1001 may be a Central Processing Unit (CPU), and may also be other general purpose processors, Digital Signal Processors (DSP), Application Specific Integrated Circuits (ASIC), Field-Programmable Gate arrays (FPGA) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and so on. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 1002 may include a read-only memory and a random access memory, and provides program instructions and data to the processor 1001. A portion of the memory 1002 may also include random access memory. When the processor 1001 calls the program instruction, it is configured to:
generating a menu script file and a file identifier of the menu script file based on configuration information input by a first user on a menu configuration interface contained in a script file generation tool, and performing associated storage on the menu script file and the file identifier, wherein the file identifier is used for uniquely indicating the menu script file;
determining whether a test menu page generated based on the menu script file is preset with test conditions;
if the test menu page is determined to meet the preset test condition, storing the menu script file into a background storage of a corresponding specified system;
and when a second user logs in the specified system, generating a menu page matched with the second user on a front-end page of the specified system based on the menu script file in the background storage.
In one implementation, the processor 1001 is specifically configured to:
acquiring the target role type of the second user;
determining a target menu list and menu operation permission associated with the target role type from the menu script file based on the target role type;
and generating a menu page matched with the second user on a front-end page of the specified system according to the target menu list and the menu operation authority.
In one implementation, the menu configuration interface includes a menu list management configuration interface; the processor 1001 is specifically configured to:
displaying the menu list management configuration interface in the script file generation tool, wherein the menu list management configuration interface comprises a menu name setting item;
and receiving configuration information of the first user on the menu list management configuration interface, and adding the configuration information to a menu script file, wherein the configuration information comprises menu names input by the first user on the menu list setting items, and the menu names are menu names of all submenus included in the menu list.
In one implementation, the menu configuration interface includes a menu role management configuration interface; the processor 1001 is specifically configured to:
displaying the menu role management configuration interface in a script file generation tool, wherein the menu role management configuration interface comprises a menu selection item and a role setting item;
and receiving configuration information of the first user on the menu role management configuration interface, and adding the configuration information to a menu script file, wherein the configuration information comprises a menu name input by the first user on the menu selection item and a role type input by the first user on the role setting item.
In one implementation, the menu configuration interface includes an operation authority management configuration interface; the processor 1001 is specifically configured to:
displaying the operation authority management configuration interface in a script file generation tool, wherein the operation authority management configuration interface comprises a menu selection item, a role setting item and an operation authority setting item;
and receiving configuration information of the first user on the operation authority management configuration interface, and adding the configuration information to a menu script file, wherein the configuration information comprises a menu name input by the first user on the menu selection item, a role type input by the role setting item and operation authority input by the operation authority setting item.
In one implementation, the processor 1001 is further configured to:
acquiring a script file request sent by a third user, wherein the script file request carries the file identifier;
and acquiring a menu script file corresponding to the file identifier from a storage according to the file identifier.
In one implementation, the processor 1001 is further configured to:
detecting whether the menu script file is updated or not;
and if the menu script file is detected to be updated, triggering an updating task for updating the menu page according to the updated menu script file so as to obtain the changed menu page.
In a specific implementation, the processor 1001 and the memory 1002 described in this embodiment of the present application may execute the implementation described in the system menu generating method provided in fig. 1 in this embodiment of the present application, and may also execute the implementation of the system menu generating apparatus described in fig. 9 in this embodiment of the present application, which is not described herein again.
In this embodiment, the processor 1001 may generate a menu script file and a file identifier of the menu script file based on configuration information input by a first user on a menu configuration interface included in a script file generation tool, and store the menu script file and the file identifier in an associated manner, where the file identifier is used to uniquely indicate the menu script file; determining whether a test menu page generated based on the menu script file is preset with test conditions; if the test menu page is determined to meet the preset test condition, storing the menu script file into a background storage of a corresponding specified system; and when a second user logs in the specified system, generating a menu page matched with the second user on a front-end page of the specified system based on the menu script file in the background storage. The efficiency and the accuracy of generating the menu script file can be improved.
The embodiment of the present application further provides a computer-readable storage medium, in which program instructions are stored, and when the program is executed, some or all of the steps of the system menu generation method in the corresponding embodiment of fig. 1 may be included.
It should be noted that, for simplicity of description, the above-mentioned embodiments of the method are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the order of acts described, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
It is emphasized that the data may also be stored in a node of a blockchain in order to further ensure the privacy and security of the data. The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism and an encryption algorithm. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
The above detailed description is given to a system menu generating method, apparatus, device and storage medium provided in the embodiments of the present application, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiments is only used to help understanding the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A method for generating a system menu, comprising:
generating a menu script file and a file identifier of the menu script file based on configuration information input by a first user on a menu configuration interface contained in a script file generation tool, and performing associated storage on the menu script file and the file identifier, wherein the file identifier is used for uniquely indicating the menu script file;
determining whether a test menu page generated based on the menu script file meets a preset test condition;
if the test menu page is determined to meet the preset test condition, storing the menu script file into a background storage of a corresponding specified system;
and when a second user logs in the specified system, generating a menu page matched with the second user on a front-end page of the specified system based on the menu script file in the background storage.
2. The method of claim 1, wherein generating a menu page matching the second user on a front-end page of the specified system based on the menu script file in the background storage comprises:
acquiring the target role type of the second user;
determining a target menu list and menu operation permission associated with the target role type from the menu script file based on the target role type;
and generating a menu page matched with the second user on a front-end page of the specified system according to the target menu list and the menu operation authority.
3. The method of claim 1, wherein the menu configuration interface comprises a menu list management configuration interface; the generating of the menu script file based on the configuration information input by the first user on the menu configuration interface included in the script file generating tool includes:
displaying the menu list management configuration interface in the script file generation tool, wherein the menu list management configuration interface comprises a menu name setting item;
and receiving configuration information of the first user on the menu list management configuration interface, and adding the configuration information to a menu script file, wherein the configuration information comprises menu names input by the first user on the menu list setting items, and the menu names are menu names of various menus included in the menu list.
4. The method of claim 3, wherein the menu configuration interface comprises a menu role management configuration interface; the generating of the menu script file based on the configuration information input by the first user on the menu configuration interface included in the script file generating tool includes:
displaying the menu role management configuration interface in a script file generation tool, wherein the menu role management configuration interface comprises a menu selection item and a role setting item;
and receiving configuration information of the first user on the menu role management configuration interface, and adding the configuration information to a menu script file, wherein the configuration information comprises a menu name input by the first user on the menu selection item and a role type input by the first user on the role setting item.
5. The method of claim 3, wherein the menu configuration interface comprises an operating rights management configuration interface; the generating of the menu script file based on the configuration information input by the first user on the menu configuration interface included in the script file generating tool includes:
displaying the operation authority management configuration interface in a script file generation tool, wherein the operation authority management configuration interface comprises a menu selection item, a role setting item and an operation authority setting item;
and receiving configuration information of the first user on the operation authority management configuration interface, and adding the configuration information to a menu script file, wherein the configuration information comprises a menu name input by the first user on the menu selection item, a role type input by the role setting item and operation authority input by the operation authority setting item.
6. The method of claim 1, wherein before determining whether the test menu page generated based on the menu script file satisfies a preset test condition, the method further comprises:
acquiring a script file request sent by a third user, wherein the script file request carries the file identifier;
and acquiring a menu script file corresponding to the file identifier from a storage according to the file identifier.
7. The method of any of claims 1-6, wherein after generating a menu page on a front-end page of the specified system that matches the second user based on the role type of the second user and the menu script file, the method further comprises:
detecting whether the menu script file is updated or not;
and if the menu script file is detected to be updated, triggering an updating task for updating the menu page according to the updated menu script file so as to obtain the changed menu page.
8. A system menu generating apparatus, comprising:
the menu script file generating device comprises a first generating unit, a second generating unit and a processing unit, wherein the first generating unit is used for generating a menu script file and a file identifier of the menu script file based on configuration information input by a first user on a menu configuration interface contained in a script file generating tool, and storing the menu script file and the file identifier in a correlation manner, and the file identifier is used for uniquely indicating the menu script file;
the test unit is used for determining whether a test menu page generated based on the menu script file is preset with test conditions;
the storage unit is used for storing the menu script file into a background storage of a corresponding specified system if the test menu page is determined to meet the preset test condition;
and the second generation unit is used for generating a menu page matched with the second user on a front-end page of the specified system based on the menu script file in the background storage when the second user logs in the specified system.
9. A system menu generating device comprising a processor, a memory, wherein the memory is configured to store a computer program comprising program instructions, and wherein the processor is configured to invoke the program instructions to perform the method of any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program comprising program instructions that, when executed by a processor, cause the processor to carry out the method according to any one of claims 1-7.
CN202111065598.9A 2021-09-10 2021-09-10 System menu generating method, device, equipment and storage medium Pending CN113778442A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111065598.9A CN113778442A (en) 2021-09-10 2021-09-10 System menu generating method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111065598.9A CN113778442A (en) 2021-09-10 2021-09-10 System menu generating method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113778442A true CN113778442A (en) 2021-12-10

Family

ID=78843018

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111065598.9A Pending CN113778442A (en) 2021-09-10 2021-09-10 System menu generating method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113778442A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114153354A (en) * 2022-02-10 2022-03-08 荣耀终端有限公司 Menu display method and electronic equipment
CN115248648A (en) * 2022-08-12 2022-10-28 北京字跳网络技术有限公司 Task processing method and device, electronic equipment and medium
CN116009867A (en) * 2023-03-24 2023-04-25 广州市易鸿智能装备有限公司 Configuration interface generation method, device and system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114153354A (en) * 2022-02-10 2022-03-08 荣耀终端有限公司 Menu display method and electronic equipment
CN114153354B (en) * 2022-02-10 2022-07-08 荣耀终端有限公司 Menu display method and electronic equipment
CN115248648A (en) * 2022-08-12 2022-10-28 北京字跳网络技术有限公司 Task processing method and device, electronic equipment and medium
CN115248648B (en) * 2022-08-12 2024-01-30 北京字跳网络技术有限公司 Task processing method, device, electronic equipment and medium
CN116009867A (en) * 2023-03-24 2023-04-25 广州市易鸿智能装备有限公司 Configuration interface generation method, device and system
CN116009867B (en) * 2023-03-24 2023-06-16 广州市易鸿智能装备有限公司 Configuration interface generation method, device and system

Similar Documents

Publication Publication Date Title
US11048620B2 (en) Distributed system test device
US9852148B2 (en) File path modification based management
CN113778442A (en) System menu generating method, device, equipment and storage medium
US10977167B2 (en) Application monitoring with a decoupled monitoring tool
CN108228228B (en) Application software publishing method and device
CN111857762A (en) Micro-service updating system
US10802952B2 (en) Streamlined creation of integration tests
US10936747B2 (en) Privacy annotation from differential analysis of snapshots
US9946630B2 (en) Efficiently debugging software code
US11481508B2 (en) Data access monitoring and control
CN111897623A (en) Cluster management method, device, equipment and storage medium
CN116601630A (en) Generating defensive target database attacks through dynamic honey database responses
US11361055B1 (en) Protection of a content repository using dynamic watermarking
CN115485677A (en) Secure data replication in a distributed data storage environment
CN110874305A (en) User operation recording method and device and server
US20230315836A1 (en) Software discovery within software packaging and deployment systems
CN113420288B (en) Container mirror image sensitive information detection system and method
CN116192784B (en) Message notification method, device and equipment based on broadcast robot
US20230037986A1 (en) Autoencryption system for data in a container
CN116126687A (en) Interface simulation method and device, electronic equipment and storage medium
Rosado Building Serverless Node. js Apps on AWS: A Brief Guide on Where to Start
CN111880996A (en) Bare computer data acquisition method, device, equipment and readable storage medium
CN113886271A (en) Application testing method and device, electronic equipment and storage medium
CN115686592A (en) Method and system for maintaining small program, storage medium and computer equipment
CN115883353A (en) Routing plug-in arranging and executing system based on Spring Cloud Gateway in trusted environment

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