[go: up one dir, main page]

CN113778442B - A system menu generation method, device, equipment and storage medium - Google Patents

A system menu generation method, device, equipment and storage medium Download PDF

Info

Publication number
CN113778442B
CN113778442B CN202111065598.9A CN202111065598A CN113778442B CN 113778442 B CN113778442 B CN 113778442B CN 202111065598 A CN202111065598 A CN 202111065598A CN 113778442 B CN113778442 B CN 113778442B
Authority
CN
China
Prior art keywords
menu
script file
user
file
generating
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111065598.9A
Other languages
Chinese (zh)
Other versions
CN113778442A (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.)
Zhejiang Youzhi Cloud Information Technology Co ltd
Original Assignee
Zhejiang Youzhi Cloud Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Youzhi Cloud Information Technology Co ltd filed Critical Zhejiang Youzhi Cloud Information Technology Co ltd
Priority to CN202111065598.9A priority Critical patent/CN113778442B/en
Publication of CN113778442A publication Critical patent/CN113778442A/en
Application granted granted Critical
Publication of CN113778442B publication Critical patent/CN113778442B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3668Testing of software
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

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 steps of 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 carrying out associated storage on the menu script file and the file identifier; the method comprises the steps of determining whether a test menu page generated based on a menu script file meets preset test conditions, storing the menu script file into a background storage corresponding to a designated system if the test menu page meets the preset test conditions, and generating a menu page matched with a second user on a front-end page of the designated system based on the menu script file in the background storage when the second user logs in the designated system. The generation efficiency and the accuracy of the generated menu script file can be improved. The application relates to blockchain technology, such as the data described above may be written into the blockchain for use in menu generation and other scenarios.

Description

System menu generation 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 required for menus corresponding to the background management systems, at present, generally, a test environment is created through functions, and then a corresponding menu is created in a production environment, so that the creation of the menu in the test environment and the creation of the menu in the production environment belong to two separate operations, and the situation that the operations are inconsistent when the same menu is created is easy for different operations. Therefore, how to unify the menus corresponding to the background management system in different environments to ensure the accuracy of generating the system menu becomes a problem to be solved.
Disclosure of Invention
The embodiment of the application provides a system menu generation method, device, equipment and storage medium, 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 accuracy of system menu generation is ensured, and a menu matched with the roles of the user can be generated based on the menu script file and different roles of the user, thereby improving the suitability of the menu script file.
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 identification 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 identification in an associated manner, wherein the file identification 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 meets the preset test condition, storing the menu script file into a background storage corresponding to a specified system;
When a second user logs in the appointed system, generating a menu page matched with the second user on a front-end page of the appointed 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 first generation 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 generation tool, and storing the menu script file and the file identifier in an associated mode, wherein the file identifier is used for uniquely indicating the menu script file;
the testing unit is used for determining whether a testing menu page generated based on the menu script file is preset with testing conditions or not;
The storage unit is used for storing the menu script file into a background storage corresponding to a specified system if the test menu page meets 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 appointed system based on the menu script file in the background storage when the second user logs in the appointed 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 configured to store a computer program, the computer program includes program instructions, and the processor is configured to invoke 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 comprising program instructions which, when executed by a processor, cause the processor to perform the method of the first aspect described above.
In the embodiment of the application, the file identifications of the menu script file and the menu script file can be generated based on the configuration information input by the first user on the menu configuration interface contained in the script file generation tool, the menu script file and the file identifications are associated and stored, the file identifications are used for uniquely indicating the menu script file, then whether the test menu page generated based on the menu script file is preset or not can be determined, and if the test menu page meets the preset test condition, the menu script file can be stored in a background storage corresponding to a specified system. When the second user logs into the specified system, a menu page matching the second user may be generated on a front page of the specified system based on the menu script file in the background store. By implementing the method, the generation efficiency and the accuracy of the generated menu script file can be improved, so that the menu script file can ensure that menus generated by a background management system are unified in different environments, the accuracy of system menu generation is ensured, and a menu matched with the roles of a user can be generated based on the menu script file and different roles of the user, and the suitability 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 required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a system menu generating method according to an embodiment of the present application;
FIG. 2 is an interface schematic diagram of a script file tool provided by an embodiment of the present application;
FIG. 3 is an interface schematic diagram of a task management interface according to an embodiment of the present application;
FIG. 4 is an interface diagram of a system management interface according to an embodiment of the present application;
FIG. 5a is a schematic interface diagram of a menu management interface according to an embodiment of the present application;
FIG. 5b is a schematic interface diagram of a menu list management configuration interface according to an embodiment of the present application;
FIG. 5c is an interface diagram of a menu modification interface provided by an embodiment of the present application;
FIG. 5d is an interface diagram of a menu character management configuration interface provided by an embodiment of the present application;
FIG. 6 is an interface diagram of an operation rights management configuration interface according to an embodiment of the present application;
FIG. 7 is an interface diagram of a role management interface provided by 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 device 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 following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Referring to fig. 1, fig. 1 is a flowchart illustrating a system menu generating method according to an embodiment of the present application. The system menu generating method described in the present embodiment is applied to a system menu generating device, and can be executed by the system menu generating device. As shown in fig. 1, the system menu generating method includes the steps of:
S101, generating a menu script file and a file identification 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 identification in an associated mode.
In one implementation, the script file generating tool may be a unified menu script file generating tool, and when a first user (the first user may be any user, such as a tester in an enterprise, a developer) needs to generate a menu script file corresponding to a background management system, the menu script file generating tool may be used to automatically generate a menu script file. Specifically, the first user may perform related operations in the script file generating tool to generate a menu script file according to the first user's operations. For example, a menu configuration interface may be included in the script file generating tool, the first user may input relevant configuration information at the menu configuration interface, and after the operation of the first user in the script file generating tool is completed, the system menu generating device may generate a 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. The menu script file is generated by the script file generating tool, the user does not need to know the structural information of various information (such as binding of role types, 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 generating time and the generating complexity of the menu script file can be reduced, and the generating efficiency of the menu script file can be improved.
In one implementation, when the system menu generating device generates the menu script file by using the script file generating tool, a file identifier corresponding to the menu script file may also be generated, where the file identifier may be used to uniquely indicate the menu script file, and the file identifier may be a number, a bit value (bit), or other information, and the application is not limited thereto. 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 mode, so that the corresponding menu script file can be queried according to the file identifier later, and the query speed is improved.
The system menu generating device may be a server, which may be an independent server, or may be a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and basic cloud computing services such as big data and artificial intelligence platforms. Alternatively, the system menu generating device may also be a terminal device, which may include, but is not limited to, a smart phone, tablet, laptop, wearable device, desktop computer, 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, referring to fig. 2, a terminal used by a first user may be provided with the script file generating tool and display various menu configuration interfaces in the script file generating tool in a terminal screen thereof. For example, when a first user needs to generate a menu script file using the script file generation tool, each interface control in the area marked 21 can be clicked to allow the current interface to jump to the corresponding menu configuration interface. The interface in the script file generation tool may jump to the task management interface, such as when the first user clicks "task management".
In one implementation, when a first user needs to generate a menu script file using a script file generation tool, a task for the current menu script file may be created first at a task management interface in the script file generation tool, e.g., the first user may click on an add task control as in FIG. 2 (e.g., "add task" as shown in FIG. 2). After the first user clicks on the newly added task control, a task management interface may be displayed in the script file generation tool, which may be as shown in the page labeled 31 in fig. 3, and may be used to input task information required for configuring the menu script file, which may include task names, task description information, and task tenant information. The first user may input the corresponding task name, task description information, and task tenant information, respectively, in the task name setting item, task description setting item, and tenant setting item in the page marked by 31 in fig. 3. Wherein the task description information may generally be a related description of the current task so that a subsequent user may understand the current task from 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 is to create 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 one implementation, the first user may also input, in a system management interface in the script file generation tool, system information related to a specified system setting corresponding to the menu script file, where 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 directed to a menu to be generated on an agent management system, or to a menu to be generated on a campus educational administration system, etc. The system information may include system identification, system name, and the like. For example, referring to fig. 4, when the first user clicks on the "system management" marked by 41, the interface in the script file generating 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, may click on the "newly added service system" marked by 42, after clicking on the "newly added service system", an interface may be popped 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 be used for the first user to input a system identifier, a system name, and so on for the system corresponding to the menu script file. When the corresponding system information is input in the system management configuration interface, the input system information may be displayed in an existing system list in the system management interface as shown in fig. 4, for example, the area marked by 43 may be the system information input in the system management configuration interface, for example, the system identifier is 420069, and the system name is the product factory.
In one implementation, the menu configuration interface in the script file generation tool may comprise a menu list management configuration interface. For example, the menu list management configuration interface may be displayed in a script file generation tool, the menu list management configuration interface including menu name setting items that may include menu names for the user to input corresponding menu names for respective menus in the menu list. It will be appreciated that the menu list includes multiple levels of menus, e.g., a first level menu, a second level menu, a third level menu, etc., where the menu names corresponding to the above-described respective menus may include menu names corresponding to the respective levels of menus. After the first user inputs the relevant configuration information on the menu list management configuration interface, the system menu generating device may receive the configuration information of the first user on the menu list 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 on a menu list setting item, where the menu name is a menu name of each menu included in the menu list.
For example, when the first user clicks the menu management control as in fig. 5a, the menu management interface as in fig. 5a may be displayed in the script file generating tool, and in configuring the menu list corresponding to the menu script file, an area denoted by 51 as in fig. 5a may be displayed, and an "existing system menu list" as displayed in the area denoted by 51 is the current menu list generated in the menu list creating process. The menu management interface may provide for the first user to enter 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 may click on the various controls described above to perform the corresponding information configuration.
Alternatively, if the first user needs to add a certain menu, the menu adding control marked by 52 may be clicked, and after the first user clicks the menu adding control, an interface as shown in fig. 5b may be displayed, where the 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, not only the menu name of the menu, but also the menu URL, the menu sequence number and the system to which the menu belongs corresponding to the menu, and other information related to the menu can be configured, which is not limited in the application. When the first user clicks the immediate creation control, the system menu generating device may receive the entered 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 of menu level from high to low. For example, a menu list is comprised of multiple levels, such as a level one menu, a level two menu, a level three menu, etc., and multiple submenus may be included under each level menu. Each level of menu or submenu needs to be configured with its corresponding menu basic information. The first user may click the menu add control multiple times to configure menu information corresponding to each menu in the menu list. The "existing systems menu list" displayed in fig. 5a may represent a list of menus being configured, the level one menu of which is "redemption tracking management system".
Alternatively, a misconfiguration may occur when configuring the menu information of the above-mentioned menu list, in which case the first user may click on a menu modification control, as indicated by 53 in fig. 5a, for a related information modification. When the menu modification control is detected to be triggered, an interface may be displayed as shown in fig. 5c, where the area marked by 56 in the interface is a menu modification interface that may be used for the first user to modify the menu information of the configured menu. When the first user inputs modification information on the menu modification interface, the user can click the confirm modification control, and then the system menu generating device can receive the input modification information and can adjust the 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 can include a menu role management configuration interface. For example, the menu character management configuration interface may be displayed in the script file generation tool, where the menu character management configuration interface may allow the first user to set a character type corresponding to each menu in the menu list. The menu character management configuration interface may include a menu selection item and a character setting item, and after the first user inputs the character type of each menu in the menu list at the menu character management configuration interface, the system menu generating device may receive configuration information of the first user at the menu character 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 at the menu selection item and a character type input at the character setting item.
It will be appreciated that the menu of the system, whether visible to a user, is controllable by the character. For example, for an enterprise system associated with an enterprise, when users of different roles log into the system, the menu pages displayed in the system may be different, i.e., different users may have different rights to the target menu in the system. In a specific implementation, a menu can be bound to a certain role, if a user needs to utilize the menu to be used, and after the user applies for binding the role by utilizing related operations, a subsequent user can see the menu corresponding to the role and use the menu function. For example, when the binding role control marked 54 in 5a is triggered, an interface may be displayed as shown in fig. 5d, where the area marked 57 in fig. 5d is a menu role management configuration interface that may be used for the first user to set the role type corresponding to each menu in the menu list. For example, a menu may set the role of the corresponding review post, or the role of the application post. Wherein, a menu can set a plurality of character types, and the character types which are set can be modified on the menu character management configuration interface, for example, the character types which are set can be deleted.
In one implementation, the menu configuration interface in the script file generation tool may comprise an operational rights management configuration interface. For example, an operation authority management configuration interface including menu selection items, role setting items, and operation authority setting items may be displayed in the script file generation tool. After the first user inputs the related information at 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 at 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 character type input by the character setting item, and an operation right input at the operation right setting item.
For example, after the user clicks the operation authority management control in fig. 6, an operation authority management configuration interface as shown in fig. 6 may be displayed, so as to implement operation authority setting corresponding to the menu or bind the operation authority with the character type by using related operations 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, and a modification button, where different functions correspond to different operations, and these different operations may also set corresponding rights, that is, may perform operation rights setting corresponding to the menu, so as to perform operation rights management. For example, the relevant information may be set in the area marked with 61 in fig. 6 to make the setting of the operation authority. In addition to setting the operation right directly for the menu, the operation right and the role type can be bound, that is, the operation right and the role type are directly bound instead of setting the operation right for a certain menu in the menu list. For example, the binding of the operation authority to the character type may be performed in an area marked 62 in fig. 6.
Alternatively, in addition to binding the menu with the role type by using the interface shown in fig. 5d, binding the menu with the role type by using the interface shown in fig. 7 may be performed. For example, after the first user clicks on a character management control as in fig. 2, an interface shown in fig. 7 may be displayed, where the first user may perform a related operation to implement binding of character types for a menu.
In one implementation, after the configuration information of each management interface is configured, a menu script file may be generated according to the corresponding configuration information. When the menu script file is generated, a unique identifier of the menu script file may be automatically generated, for example, fig. 8 shows that after the configuration information of each management interface is configured, the task management interface displayed in the script file generating tool, such as the data marked 81 in fig. 8, is the file identifier corresponding to the menu script file generated by the system menu generating device after the menu script file 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 generated as marked by 82 in fig. 8. And generating the menu script file and the file identification of the menu script file in the system menu generating device, and storing the menu script file and the file identification in a designated position in an associated manner, wherein the designated position is not limited in the application.
In one implementation, before generating the menu script file using the script file generating tool, it may also be determined whether the menu script file can be generated using the script file generating tool. For example, the determination may be made based on the multiplexing probability of the menu script file, the storage space corresponding to the script file generation tool, and the like. 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, 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, i.e. the multiplexing probability of the menu script file is higher. For example, taking the multiplexing probability of the menu script file as an example, the preset multiplexing probability and the 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 detection result is that 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 generating tool. If the detection result is that the multiplexing probability of the menu script file is not higher than the preset multiplexing probability, the menu script file can be considered to be generated without using the script file generating tool. Therefore, the menu script file with higher multiplexing probability can be ensured to be rapidly generated by using the script file generating tool. For another example, the generated relevant rule may be set for the multiplexing probability and the storage space, for example, if the storage space is insufficient but the multiplexing probability is low, it is determined that the menu script file is not generated, and for another example, if the storage space is insufficient but the multiplexing probability is high, it is determined that the menu script file is generated.
In one implementation, when a plurality of first users perform tasks of generating the menu script file using the script file generating tool within the same time period, a file generating order of generating the corresponding files may be determined according to file priorities of the menu script files. 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 rapidly. For example, the file priority may be determined according to the multiplexing probability of the menu script files, and if the multiplexing probability of a certain menu script file is higher, the corresponding file priority is higher.
S102, 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 generating tool can be applied to various scenes, such as a testing environment and an actual production environment. It can be appreciated that before putting the menu script file into actual production, the menu script file can be tested in a testing environment to ensure the validity of the menu script file. For example, a corresponding test menu page may be generated based on a menu script file, and whether the test menu page satisfies a preset test condition may be detected, if the test menu page satisfies the preset test condition as a result of the detection, the menu script file may be determined to be a valid file, and after the menu script file is determined to be a valid file, the menu script file may be released in an actual production environment to be put into actual production. If the test result is that the test menu page does not meet the preset test condition, the menu script file can be adjusted to ensure the effectiveness of the menu script file. And when the menu script file is determined to be invalid, determining an invalid reason for invalidating the menu script file, and reconfiguring relevant information in the script file generating tool according to the invalid reason to obtain an effective menu script file. Optionally, the preset test conditions may include whether a menu list in a test menu page corresponding to different user types is consistent with a configuration in a menu script file, whether an 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 operate normally, and the like.
In one 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 be further obtained, where the script file request carries a file identifier, and then after receiving the script file request to be tested, 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 using 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 authority. If the third user is determined to have the corresponding request authority, a menu script file corresponding to the file identification can be obtained from the storage according to the file identification. If the third user does not have the corresponding request authority, the corresponding menu script file cannot be acquired according to the file identification. For example, user request rights corresponding to the respective menu script files may be set in advance in the storage.
And S103, if the test menu page meets the preset test condition, storing the menu script file into a background storage corresponding to the appointed system.
In one implementation, if it is determined that the test menu page meets the preset test condition, it may be determined that the menu script file is valid. The menu script file may then be applied in an actual production environment. For example, a menu script file may be stored in a background store corresponding to the specified system so that the menu script file may be utilized subsequently to generate a corresponding menu page on a front page of the specified system.
And S104, when the second user logs in the appointed system, generating a menu page matched with the second user on a front-end page of the appointed system based on the menu script file in the background storage.
In one implementation, the menu of the background management system is controlled by the user's character type, whether it is visible to a user or not. From the above, it is known that each submenu in the menu list may be bound to a certain role type, and then if the user needs to log in to a certain system, the binding of the certain role type may be applied, for example, in an enterprise, the role type of the employee may include a common employee, an important employee, a leader, and an administrator, and then when the employee of a different role type logs in to the system, the displayed menu page may be different. According to the above, each menu in the menu list can be bound with corresponding operation authorities, or different role types can be bound with different operation authorities. Then, the operation rights of the menus in the menu pages displayed by the subsequent tiger are also different.
In one implementation, a target role type for a second user may be obtained to determine a target menu list associated with the target role type and menu operation rights from a menu script file based on the target role type. And after the target menu list and the menu operation authority for the second user are determined, generating a menu page matched with the second user on the front-end page of the appointed system according to the target menu list and the menu operation authority. For example, consider a business as an example where the second user is an employee in the business, and the employee in the business may generally include a general employee, an important employee, a leader, an administrator, etc., i.e., the target role type of the second user may include a general employee, an important employee, a leader, an administrator, etc. It will be appreciated that different types of employees may be presented with different menu pages when logging into a given system. When an administrator logs in the appointed system, the front-end page of the appointed system displays a menu page of the management type, and when a leader logs in the appointed system, the front-end page of the appointed system displays a menu page of the leader type.
In one implementation, after the first generation of the menu script file, it may also be detected whether an update of the menu script file has occurred. For example, a change in the menu name of a submenu in a menu list, a change in the type of character bound by a submenu, or other changes in other menu script files may be understood as an update to a 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 replaced 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 file identifications of the menu script file and the menu script file can be generated based on the configuration information input by the first user on the menu configuration interface contained in the script file generation tool, the menu script file and the file identifications are associated and stored, the file identifications are used for uniquely indicating the menu script file, then whether the test menu page generated based on the menu script file is preset or not can be determined, and if the test menu page meets the preset test condition, the menu script file can be stored in a background storage corresponding to a specified system. When the second user logs into the specified system, a menu page matching the second user may be generated on a front page of the specified system based on the menu script file in the background store. The method can improve the generation efficiency and the accuracy of the generated menu script file, thereby ensuring the unified menu generated by a background management system in different environments by the menu script file, ensuring the accuracy of the system menu generation, generating the menu matched with the role of the user based on the menu script file and different roles of the user, and improving the suitability of the menu script file.
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 for uniquely indicating the menu script file;
a test unit 902, configured to determine whether a test condition is preset on a test menu page generated based on the menu script file;
A storage unit 903, configured to store the menu script file into a background storage corresponding to a specified system if it is determined that the test menu page meets the preset test condition;
and a second generating unit 904, configured to generate, when a second user logs in to the specified system, a menu page matching the second user on a front page of the specified system based on the menu script file in the background storage.
In one implementation, the second generating unit 904 is specifically configured to:
acquiring a target role type of the second user;
Determining a target menu list and menu operation authority 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 appointed 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, and the first generating unit 901 is specifically configured to:
displaying the menu list management configuration interface in the script file generating tool, wherein the menu list management configuration interface comprises menu name setting items;
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 a menu list.
In one implementation, the menu configuration interface includes a menu role management configuration interface, and 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 menu selection items and role setting items;
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 on a role setting item.
In one implementation, the menu configuration interface includes an operation authority management configuration interface, and 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 an operation authority input on 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 identification from the storage according to the file identification.
In one implementation, the second generating unit 904 is further configured to:
detecting whether the menu script file is updated;
And triggering an updating task for updating the menu page according to the updated menu script file if the menu script file is detected to be updated, so as to obtain the replaced menu page.
It may be understood that the functions of each functional unit of the system menu generating apparatus described in the embodiment of the present application may be specifically implemented according to the method in the embodiment of the method described in fig. 1, and the specific implementation process may refer to the relevant description of the embodiment of the method in fig. 1, which is not repeated herein.
In the embodiment of the application, a 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, wherein the file identifier is used for uniquely indicating the menu script file, a testing unit 902 determines whether a test menu page generated based on the menu script file is preset under test conditions, a storage unit 903 stores the menu script file in a background storage corresponding to a specified system if the test menu page meets the preset test conditions, and a second generating unit 904 generates a menu page matched with the second user on a front page of the specified system based on the menu script file in the background storage when the second user logs in the specified system. The generation efficiency and the accuracy of the generated menu script file can be improved.
Referring to fig. 10, fig. 10 is a schematic structural diagram of a system menu generating apparatus according to an embodiment of the present application. The system menu generating device comprises a processor 1001, a memory 1002 and a network interface 1003. Data may be exchanged between the processor 1001, the memory 1002, and the network interface 1003.
The Processor 1001 may be a central processing unit (Central Processing Unit, CPU), which may also be other general purpose processors, digital signal processors (DIGITAL SIGNAL Processor, DSP), application SPECIFIC INTEGRATED Circuit (ASIC), off-the-shelf Programmable gate array (Field-Programmable GATE ARRAY, FPGA) or other Programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 1002 may include read only memory and random access memory, and provides program instructions and data to the processor 1001. A portion of memory 1002 may also include random access memory. Wherein the processor 1001 is configured to execute, when calling the program instructions:
Generating a menu script file and a file identification 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 identification in an associated manner, wherein the file identification 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 meets the preset test condition, storing the menu script file into a background storage corresponding to a specified system;
When a second user logs in the appointed system, generating a menu page matched with the second user on a front-end page of the appointed system based on the menu script file in the background storage.
In one implementation, the processor 1001 is specifically configured to:
acquiring a target role type of the second user;
Determining a target menu list and menu operation authority 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 appointed 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, and the processor 1001 is specifically configured to:
displaying the menu list management configuration interface in the script file generating tool, wherein the menu list management configuration interface comprises menu name setting items;
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 a menu list.
In one implementation, the menu configuration interface includes a menu role management configuration interface, and 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 menu selection items and role setting items;
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 on a role setting item.
In one implementation, the menu configuration interface includes an operation authority management configuration interface, and 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 an operation authority input on 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 identification from the storage according to the file identification.
In one implementation, the processor 1001 is further configured to:
detecting whether the menu script file is updated;
And triggering an updating task for updating the menu page according to the updated menu script file if the menu script file is detected to be updated, so as to obtain the replaced menu page.
In a specific implementation, the processor 1001 and the memory 1002 described in the embodiment of the present application may perform the implementation described in the system menu generating method provided in fig. 1 of the embodiment of the present application, and may also perform the implementation of the system menu generating device described in fig. 9 of the embodiment of the present application, which is not described herein again.
In the embodiment of the application, 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 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, determine whether a test menu page generated based on the menu script file is preset with a test condition, store the menu script file in a background storage corresponding to a specified system if the test menu page meets the preset test condition, and generate a menu page matched with the second user on a front page of the specified system based on the menu script file in the background storage when the second user logs in the specified system. The generation efficiency and the accuracy of the generated menu script file can be improved.
The embodiment of the application also provides a computer readable storage medium, wherein the computer readable storage medium stores program instructions, and the program can include part or all of the steps of the system menu generating method in the corresponding embodiment of fig. 1 when being executed.
It should be noted that, for simplicity of description, the foregoing method embodiments are all expressed as a series of action combinations, but it should be understood by those skilled in the art that the present application is not limited by the order of action described, as some steps may be performed in other order or simultaneously according to the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required for the present application.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be implemented by a program for instructing related hardware, and the program may be stored in a computer readable storage medium, where the storage medium may include a flash disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, an optical disk, or the like.
It is emphasized that to further guarantee the privacy and security of the data, the data may also be stored in a blockchain node. The blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm and the like. The blockchain (Blockchain), essentially a de-centralized database, is a string of data blocks that are generated in association using cryptographic methods, each of which contains information from a batch of network transactions for verifying the validity (anti-counterfeit) of its information and generating the next block. The blockchain may include a blockchain underlying platform, a platform product services layer, an application services layer, and the like.
The foregoing describes the principles and implementations of the present application in detail using specific examples to help understand the method and core ideas of the present application, and meanwhile, to those skilled in the art, according to the ideas of the present application, the present application should not be construed as being limited to the above description.

Claims (10)

1. A system menu generation method, comprising:
Generating a menu script file and a file identification 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 identification in an associated manner, wherein the file identification 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 meets the preset test condition, storing the menu script file into a background storage corresponding to a specified system;
When a second user logs in the appointed system, generating a menu page matched with the second user on a front-end page of the appointed system based on the menu script file in the background storage.
2. The method of claim 1, wherein the generating a menu page on a front-end page of the specified system that matches the second user based on the menu script file in the background store comprises:
acquiring a target role type of the second user;
Determining a target menu list and menu operation authority 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 appointed 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, wherein generating the menu script file based on configuration information entered by the first user on the menu configuration interface included in the script file generation tool comprises:
displaying the menu list management configuration interface in the script file generating tool, wherein the menu list management configuration interface comprises menu name setting items;
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 menus included in a menu list.
4. The method of claim 3, wherein the menu configuration interface comprises a menu character management configuration interface, wherein the generating a menu script file based on configuration information entered by the first user on the menu configuration interface included in the script file generation tool comprises:
Displaying the menu role management configuration interface in a script file generation tool, wherein the menu role management configuration interface comprises menu selection items and role setting items;
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 on a role setting item.
5. The method of claim 3, wherein the menu configuration interface comprises an operation rights management configuration interface, wherein generating the menu script file based on configuration information entered by the first user on the menu configuration interface included in the script file generation tool comprises:
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 an operation authority input on 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 identification from the storage according to the file identification.
7. The method of any of claims 1-6, wherein after the 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;
And triggering an updating task for updating the menu page according to the updated menu script file if the menu script file is detected to be updated, so as to obtain the replaced menu page.
8. A system menu generating apparatus, comprising:
The first generation 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 generation tool, and storing the menu script file and the file identifier in an associated mode, wherein the file identifier is used for uniquely indicating the menu script file;
the testing unit is used for determining whether a testing menu page generated based on the menu script file is preset with testing conditions or not;
The storage unit is used for storing the menu script file into a background storage corresponding to a specified system if the test menu page meets 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 appointed system based on the menu script file in the background storage when the second user logs in the appointed system.
9. A system menu generating device comprising a processor, a memory, wherein the memory is for storing a computer program comprising program instructions, the processor being configured to invoke the program instructions to perform the method of any of claims 1-7.
10. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program comprising program instructions which, when executed by a processor, cause the processor to perform the method of any of claims 1-7.
CN202111065598.9A 2021-09-10 2021-09-10 A system menu generation method, device, equipment and storage medium Active CN113778442B (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

Publications (2)

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

Family

ID=78843018

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111065598.9A Active CN113778442B (en) 2021-09-10 2021-09-10 A system menu generation method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113778442B (en)

Families Citing this family (3)

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

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104077133A (en) * 2014-06-24 2014-10-01 中国地质大学(北京) Configuration type menu generating method
CN111611036A (en) * 2020-05-06 2020-09-01 香港乐蜜有限公司 Application menu configuration method, device, electronic device and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI373711B (en) * 2008-10-09 2012-10-01 Primax Electronics Ltd Method for testing controls of application software automatically
KR101419255B1 (en) * 2012-11-29 2014-07-17 (주)투비소프트 Method for generating user interface using unified development environment
US9063922B2 (en) * 2012-12-18 2015-06-23 Lenovo Enterprise Solutions (Singapore) Pte. Ltd. Firmware generated register file for use in hardware validation
CN104717284B (en) * 2015-02-13 2018-12-04 腾讯科技(深圳)有限公司 Menu managing method, apparatus and system
CN110633157A (en) * 2018-06-25 2019-12-31 中兴通讯股份有限公司 Menu dynamic management method, server, system and computer readable storage medium
CN113031951B (en) * 2021-04-30 2024-02-02 爱捷软件开发(深圳)有限公司 Menu generation method, menu generation device, computer equipment and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104077133A (en) * 2014-06-24 2014-10-01 中国地质大学(北京) Configuration type menu generating method
CN111611036A (en) * 2020-05-06 2020-09-01 香港乐蜜有限公司 Application menu configuration method, device, electronic device and storage medium

Also Published As

Publication number Publication date
CN113778442A (en) 2021-12-10

Similar Documents

Publication Publication Date Title
CN113778442B (en) A system menu generation method, device, equipment and storage medium
US11863580B2 (en) Modeling application dependencies to identify operational risk
CN111857762B (en) Micro-service updating system
US11150893B2 (en) Collaborative software development tool for resolving potential code-change conflicts in real time
US10372596B2 (en) Distributed system test device
US20170324803A1 (en) Automated testing of perceptible web page elements
CN113987074A (en) Distributed service full-link monitoring method and device, electronic equipment and storage medium
CN108292206A (en) Workflow development system with feature easy to use
US11356498B2 (en) Method and a device for sharing a hosted application
US9087020B1 (en) Managing and retrieving content from a shared storage
US10802952B2 (en) Streamlined creation of integration tests
US12056255B1 (en) Digital processing systems and methods for facilitating the development and implementation of applications in conjunction with a serverless environment
US10324951B1 (en) Tracking and viewing model changes based on time
US12026509B2 (en) Dynamic review of software updates after pull requests
CN110574033B (en) Remote procedure call to reduce multimedia content delivery
CN112506590B (en) Interface calling method, device and electronic device
US20240231978A1 (en) Systems, apparatuses, and methods for assessing recovery viability of backup databases
CN111880996B (en) Bare metal data acquisition method, device, equipment and readable storage medium
US11361055B1 (en) Protection of a content repository using dynamic watermarking
CN112100534B (en) Information processing method, device, medium and electronic equipment in page sharing
US20230133389A1 (en) Automatic building, verifying, and securing of a master data list
US20220150197A1 (en) Integration of an email client with hosted applications
US12353494B2 (en) Building and deploying a tag library for web site analytics and testing
US20210144195A1 (en) Information processing apparatus, information processing method, and program
CN119311924A (en) Snapshot generation method, device, electronic device, storage medium and program product

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20241116

Address after: Room 913, 9th Floor, Building 5, No. 789 Shixiang Road, Gongshu District, Hangzhou City, Zhejiang Province 310000

Applicant after: Zhejiang Youzhi Cloud Information Technology Co.,Ltd.

Country or region after: China

Address before: 200135 floor 15, No. 1333, Lujiazui Ring Road, pilot Free Trade Zone, Pudong New Area, Shanghai

Applicant before: Weikun (Shanghai) Technology Service Co.,Ltd.

Country or region before: China

GR01 Patent grant
GR01 Patent grant