Data configuration method and device, storage medium and electronic equipment

By parsing and building the interface option tree structure, the problem of low efficiency and accuracy caused by differences in configuration data in different deployment environments is solved, and efficient and accurate data configuration is achieved.

CN118567707AInactive Publication Date: 2024-08-30SHANGHAI INGOT NETWORK TECH CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202410706457.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-08-30
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In different deployment environments, there are large differences in configuration data (such as menu data), resulting in low efficiency and low accuracy of manual configuration one by one.

Method used

By obtaining the configuration data in the specified data format in the first system, parsing and constructing the interface option tree structure, displaying it in the visual interface, responding to user adjustments, generating target configuration data, and executing business in the second system.

Benefits of technology

It greatly improves configuration efficiency, reduces configuration difficulty and error rate, and improves the accuracy of configuration data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118567707A
    Figure CN118567707A
Patent Text Reader

Abstract

According to the data configuration method and device, the storage medium and the electronic equipment, firstly, the configuration data of the specified data format in the first system is obtained and input into the second system, and the analysis mode corresponding to the specified data format is adopted in the second system to analyze the configuration data. And according to the analyzed data of each interface option, determining a hierarchical relationship among the interface options, according to the hierarchical relationship, constructing an interface option tree structure corresponding to the configuration data, and displaying the interface option tree structure in a visual interface. And in response to the condition that the interface option tree structure is adjusted, determining an adjusted tree structure, and according to the adjusted tree structure, determining configuration data corresponding to the adjusted tree structure in the specified data format as target configuration data, so as to execute a service based on the target configuration data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present specification relates to the field of computer technology, and in particular to a data configuration method, device, storage medium, and electronic device. Background Art

[0002] At present, in response to different business needs, it is necessary to deploy different environments (such as test environment, pre-online environment, etc.) in the system, and configure relevant configuration data in the deployment environment (such as test environment, pre-online environment, etc.) to execute target businesses such as testing business, iterative upgrade business, etc.

[0003] Among them, since there are often large differences in configuration data (such as menu data) in different deployment environments, the configuration data in different deployment environments can be configured one by one manually. However, since the amount of configuration data is often large, the efficiency of configuring by manually configuring one by one is low. In addition, the manual configuration method is prone to errors, which leads to a low accuracy rate of configuration.

[0004] Therefore, how to improve the efficiency and accuracy of configuring configuration data is an urgent problem to be solved. Summary of the invention

[0005] This specification provides a data configuration method, device, storage medium and electronic device to partially solve the above-mentioned problems existing in the prior art.

[0006] This manual adopts the following technical solutions:

[0007] This specification provides a data configuration method, the method is used to import configuration data in a first system into a second system for data configuration, the system environment deployed by the first system is different from that of the second system, and includes:

[0008] Acquire configuration data in a specified data format in the first system, wherein the configuration data includes data of each interface option, and the each interface option includes: each menu item and each directory item;

[0009] Inputting the configuration data into the second system, parsing the configuration data in the second system using a parsing method corresponding to the specified data format, and determining a hierarchical relationship between the interface options based on the parsed data of the interface options;

[0010] According to the hierarchical relationship, construct an interface option tree structure corresponding to the configuration data, and display the interface option tree structure in a visual interface;

[0011] In response to the interface option tree structure being adjusted, the adjusted tree structure is determined, and according to the adjusted tree structure, configuration data corresponding to the adjusted tree structure in the specified data format is determined as target configuration data, so as to execute the service based on the target configuration data.

[0012] Optionally, constructing an interface option tree structure corresponding to the configuration data according to the hierarchical relationship specifically includes:

[0013] According to the hierarchical relationship, a temporary identifier of each interface option is generated, and the original identifier of each interface option is replaced to construct an interface option tree structure corresponding to the configuration data.

[0014] Optionally, generating temporary identifiers of the interface options according to the hierarchical relationship and replacing original identifiers of the interface options specifically includes:

[0015] For each interface option, determine the parent interface option corresponding to the interface option according to the hierarchical relationship;

[0016] According to the temporary identifier of the parent interface option and the hierarchical relationship, a temporary identifier of the interface option is generated, and the original identifier of the interface option is replaced.

[0017] Optionally, executing a service based on the target configuration data specifically includes:

[0018] When the target configuration data is imported back into the first system, the temporary identifiers corresponding to the interface options contained in the target configuration data are restored to the original identifiers corresponding to the interface options to obtain the data to be configured, and the business is executed in the first system based on the data to be configured.

[0019] Optionally, the method further comprises:

[0020] In response to the interface option tree structure being adjusted, a preview page for the adjusted tree structure is generated in the visualization interface based on the adjusted tree structure, wherein the preview page is used to display the page content of the page where each interface option contained in the adjusted tree structure is located.

[0021] Optionally, the method further comprises:

[0022] In response to a saving operation being performed on the adjusted tree structure, determining a root interface option included in the adjusted tree structure;

[0023] Determining, in the basic tree structure stored in the second system, an interface option for connecting the root interface option as a target interface option;

[0024] The target interface option is used as the parent interface option, the root interface option is used as the child interface option corresponding to the parent interface option, and the adjusted tree structure is connected with the basic tree structure to save the adjusted tree structure in the database storing the basic tree structure.

[0025] Optionally, the method further comprises:

[0026] In response to the saving operation being performed on the adjusted tree structure, the data of each interface option is sequentially stored in the database according to the hierarchical relationship between the interface options contained in the adjusted tree structure.

[0027] Optionally, the method further comprises:

[0028] In response to a save operation performed by the user on the adjusted tree structure, determining the adjusted interface option in the interface option tree structure as an option to be confirmed;

[0029] Acquire the permission level of the user and permission restriction information corresponding to the option to be confirmed, wherein the permission restriction information is used to represent the permission level corresponding to the user who is allowed to adjust the option to be confirmed;

[0030] According to the permission level of the user and the permission restriction information corresponding to the option to be confirmed, determining the interface option that the user is allowed to adjust from the options to be confirmed as the option to be saved;

[0031] According to the options to be saved, a target tree structure is determined, and the target tree structure is saved.

[0032] This specification provides a data configuration device, including:

[0033] An acquisition module: used for acquiring configuration data of a specified data format in the first system, wherein the configuration data includes data of various interface options, and the various interface options include: various menu items and various directory items;

[0034] Parsing module: used for inputting the configuration data into the second system, parsing the configuration data in the second system using the parsing method corresponding to the specified data format, and determining the hierarchical relationship between the interface options according to the parsed data of the interface options;

[0035] Display module: used to construct an interface option tree structure corresponding to the configuration data according to the hierarchical relationship, and display the interface option tree structure in a visual interface;

[0036] Execution module: used to determine the adjusted tree structure in response to the interface option tree structure being adjusted, and determine the configuration data corresponding to the adjusted tree structure in the specified data format according to the adjusted tree structure as the target configuration data, so as to execute the business based on the target configuration data.

[0037] This specification provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned data configuration method is implemented.

[0038] This specification provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned data configuration method when executing the program.

[0039] At least one of the above technical solutions adopted in this specification can achieve the following beneficial effects:

[0040] The data configuration method provided in this specification first obtains configuration data of a specified data format in a first system, and inputs it into a second system, so that the configuration data is parsed in the second system using a parsing method corresponding to the specified data format. According to the parsed data of each interface option, the hierarchical relationship between the interface options is determined, and according to the hierarchical relationship, an interface option tree structure corresponding to the configuration data is constructed and displayed in a visual interface. In response to the interface option tree structure being adjusted, the adjusted tree structure is determined, and according to the adjusted tree structure, the configuration data corresponding to the adjusted tree structure in the specified data format is determined as the target configuration data, so as to execute the business based on the target configuration data.

[0041] It can be seen from the above method that both the first system and the second system can parse and process the configuration data in the specified data format. Therefore, the configuration data in the first system can be directly imported into the second system for data configuration, so that the second system can parse and process the imported configuration data. That is, there is no need to manually configure each interface option one by one, which greatly improves the configuration efficiency. In addition, during the data configuration process, the interface option tree structure obtained by parsing can be displayed in a visual interface, which is convenient for users to make corresponding adjustments to the interface option tree through the visual interface, greatly reducing the difficulty of adjusting the configuration data, while also reducing the possibility of errors during the data configuration process, and improving the accuracy of data configuration. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] The drawings described herein are used to provide a further understanding of this specification and constitute a part of this specification. The illustrative embodiments and descriptions of this specification are used to explain this specification and do not constitute an improper limitation on this specification. In the drawings:

[0043] Figure 1 A flowchart of a data configuration method provided in this specification;

[0044] Figure 2 A schematic diagram of an interface option tree structure provided in this manual;

[0045] Figure 3 A schematic diagram of a preview page provided for this manual;

[0046] Figure 4 A schematic diagram of a data configuration device provided in this specification;

[0047] Figure 5 A method corresponding to the Figure 1 Schematic diagram of the structure of an electronic device. DETAILED DESCRIPTION

[0048] In order to make the purpose, technical solutions and advantages of this specification more clear, the technical solutions of this specification will be clearly and completely described below in combination with the specific embodiments of this specification and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of this specification, not all of them. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this specification.

[0049] The technical solutions provided by the embodiments of this specification are described in detail below in conjunction with the accompanying drawings.

[0050] Figure 1 A flowchart of a data configuration method provided in this specification includes the following steps:

[0051] S101: Acquire configuration data in a specified data format in the first system, wherein the configuration data includes data of various interface options, and the various interface options include: various menu items and various directory items.

[0052] The execution subject of the data configuration method involved in this specification can be a terminal device such as a desktop computer, a laptop computer, or a client installed in the terminal device, or a server. The following only takes the terminal device as an example to illustrate the data configuration method in the embodiment of this specification.

[0053] At present, in response to different business needs, it is necessary to deploy different environments (such as test environments, pre-launch environments, etc.) in the system, and configure relevant configuration data in the deployment environment (such as test environments, pre-launch environments, etc.) to execute target businesses such as test businesses and iterative upgrade businesses. Among them, since there are often large differences in configuration data (such as menu data) in different deployment environments, the configuration data in different deployment environments can be configured one by one manually. However, since the amount of configuration data is often large, the efficiency of configuration by manually configuring one by one is low. In addition, the method of manually configuring one by one is prone to errors, which leads to a low accuracy rate of configuration.

[0054] In order to solve the above problem, this specification provides a data configuration method, which can be applied to import configuration data in a first system into a second system in a system environment different from that of the first system for data configuration. The system environment can refer to environments such as a test environment, a pre-launch environment, etc.

[0055] The terminal device may first obtain configuration data in a specified data format (such as Json format) in the first system, wherein the configuration data may include data of each interface option, for example, the name of each interface option, identification information of each interface option, identification information of the parent interface option of each interface option, access control information of each interface option, etc. Each interface option may include: each menu item and each directory item. The menu item refers to the function entry in the system. In addition, each menu item can be located by following the guidance of the directory item. For example, a menu item named "Tutorial Details" under a directory item named "Function Introduction" can be used to locate the menu item.

[0056] S102: Input the configuration data into the second system, parse the configuration data using a parsing method corresponding to the specified data format in the second system, and determine the hierarchical relationship between the interface options based on the parsed data of the interface options.

[0057] In this specification, both the first system and the second system are compatible with the configuration data in the above-mentioned specified data format, and both can parse and process the configuration book data in the above-mentioned specified data format using the parsing method corresponding to the specified data format. Therefore, the terminal device can input the configuration data into the second system, and then the parsing method corresponding to the specified data format can be used in the second system to parse the configuration data. Based on the parsed data of each interface option, the hierarchical relationship between each interface option is determined. Among them, the hierarchical relationship can refer to the hierarchical relationship between each menu item, the hierarchical relationship between each directory item, and the hierarchical relationship between each menu item and each directory item.

[0058] Specifically, the configuration data can be parsed in the second system to parse out the option content information of each interface option contained in the configuration data, as well as the jump path information between each interface option. Since the jump path information can characterize the jump relationship between each interface option, the jump logic between each interface option can be determined by the jump path information. And based on the determined jump logic between each interface option, the hierarchical relationship between each interface option is determined. For example, if you can jump to a page containing interface option B by clicking on interface option A, then it can be determined that interface option A is the upper level of interface option B. For another example, if you can jump to a page containing interface option B and interface option C by clicking on interface option A, then it can be determined that interface option A is the upper level of interface option B and interface option C, and interface option B and interface option C are at the same level.

[0059] S103: constructing an interface option tree structure corresponding to the configuration data according to the hierarchical relationship, and displaying the interface option tree structure in a visual interface.

[0060] The terminal device can construct an interface option tree structure corresponding to the configuration data according to the determined hierarchical relationship between the interface options, wherein the constructed interface option tree structure can more clearly reflect the hierarchical relationship between the interface options. The interface option tree structure can be specifically referred to as follows Figure 2 .

[0061] Figure 2 This is a schematic diagram of an interface option tree structure provided in this manual.

[0062] Depend on Figure 2 It can be seen that the root interface option of the interface option tree structure is "Home", and the root interface option has two sub-interface options, namely "Tools" and "Personal Center", the interface option named "Tools" has two sub-interface options, namely "Search" and "Language Switch", and the interface option named "Personal Center" has one sub-interface option "My Favorites". From this, it can be seen that there is a parent-child relationship between the two interface options "Home" and "Tools", and "Home" is the parent interface option of "Tools". There is also a parent-child relationship between the two interface options "Home" and "Personal Center", and "Home" is the parent interface option of "Personal Center". In addition, since "Tools" and "Personal Center" have the same parent interface option "Home", "Tools" and "Personal Center" belong to the same level of interface options. Of course, Figure 2 This is just one form of the interface option tree structure. Other forms of interface option tree structures will not be elaborated on here.

[0063] During the configuration data import process, new identifiers can be generated by adding and storing the original data in the system in sequence. However, the new identifiers generated in this way often no longer reflect the original hierarchical relationship of the interface options.

[0064] Therefore, in this specification, in order to ensure that the identifiers of each interface option after being imported into the second system can still accurately reflect the hierarchical relationship between the interface options, the terminal device can generate a temporary identifier for each interface option based on the determined hierarchical relationship between the interface options to replace the original identifier of each interface option, and accurately reflect the hierarchical relationship between the interface options through the temporary identifier of each interface option to construct an interface option tree structure corresponding to the configuration data.

[0065] Specifically, in the process of generating temporary identifiers for each interface option, for each interface option, the terminal device can determine the parent interface option corresponding to the interface option based on the hierarchical relationship, and then, based on the hierarchical relationship and the temporary identifier of the parent interface option of the interface option, generate a temporary identifier for the interface option and replace the original identifier of the interface option. For example, the terminal device can first generate a temporary identifier for an interface option that does not have a parent interface option in a random manner, and then, based on the temporary identifier and the hierarchical relationship between the interface options, determine the temporary identifier of the sub-interface option corresponding to the interface option, and replace the original identifier of the sub-interface option, and then, based on the hierarchical relationship, generate temporary identifiers for other interface options in turn and replace the corresponding original identifiers.

[0066] It should be noted that in the interface option tree structure, the data of each interface option contains the identification information of its parent interface option, that is, the hierarchical relationship between the interface options can also be reflected through the identification information of the parent interface option contained in the data of each interface option. Therefore, in order to accurately reflect the original hierarchical relationship of each interface option, while replacing the original identification of each interface option with a temporary identification, it is also necessary to replace the original identification of the parent interface option contained in the data of each interface option with the corresponding temporary identification, so as to accurately reflect the original hierarchical relationship of each interface option.

[0067] Then, the terminal device can display the interface option tree structure through a visual interface, and the interface option tree structure and function controls for adjusting each interface option (such as an add control for adding an interface option, a delete control for deleting an interface option, and a modify control for changing the content of an interface option, etc.) can be displayed in the visual interface. In the visual interface, the user can modify, delete, and other operations on each interface option included in the interface option tree structure by clicking on a specified function control. In addition, the interface option tree can also be adjusted by dragging in the visual interface.

[0068] S104: In response to the interface option tree structure being adjusted, determining the adjusted tree structure, and according to the adjusted tree structure, determining configuration data corresponding to the adjusted tree structure in the specified data format as target configuration data, so as to execute the service based on the target configuration data.

[0069] It can be seen from the above method that the visual interface can display the interface option tree structure to the user, so that the user can adjust the interface option tree structure in the visual interface. After the user's adjustment operation is completed, the terminal device can determine the adjusted tree structure. Then, according to the adjusted tree structure, the configuration data corresponding to the adjusted tree structure in the specified data format can be determined, and the configuration data corresponding to the adjusted tree structure in the specified data format can be used as the target configuration data to execute the business based on the target configuration data. For example, the terminal device can import the target configuration data into other systems (such as a system deployed with a test environment) for data configuration, and execute the corresponding test business (such as functional testing, integration testing, etc.) after the data configuration is completed.

[0070] Of course, in addition to importing the target configuration data into other systems, there may also be a situation where the target configuration data is imported back into the original system. Therefore, in this specification, when the target configuration data is imported back into the first system, the temporary identifiers corresponding to the various interface options contained in the target configuration data can be restored to the original identifiers corresponding to the various interface options to obtain the data to be configured, and based on the data to be configured, the business (such as testing business, performance tuning business, etc.) is executed in the first system.

[0071] In addition, since the newly added interface option included in the target configuration data does not have an original identifier, the identifier of the newly added interface option can be generated according to the original identifier of the parent interface option of the newly added interface option and the hierarchical relationship between the interface options.

[0072] In addition, after the interface option tree structure is adjusted, the terminal device can also generate a preview page for the adjusted tree structure in the visual interface based on the adjusted tree structure, wherein the preview page can be used to display the page content of the page where each interface option included in the adjusted tree structure is located. The preview page can be specifically referred to as follows Figure 3 .

[0073] Figure 3 A schematic diagram of a preview page provided in this manual.

[0074] Depend on Figure 3It can be seen that in the homepage preview page, the content information of the "Homepage" interface option (such as the homepage icon) can be displayed, and the two sub-interface options contained in the "Homepage" interface option, namely "Tools" and "Personal Center", can also be displayed. The homepage preview page also contains a jump control for jumping from the homepage preview page to the tool preview page corresponding to the sub-interface option "Tools" of the "Homepage". That is, you can jump to the tool preview page corresponding to the sub-interface option "Tools" of the "Homepage" by clicking the jump control. Of course, Figure 3 This is just one form of preview page provided in this manual. Other forms of preview pages will not be elaborated in detail here.

[0075] In addition, the user can also perform a save operation on the adjusted tree structure. For example, the user can click a save control in the visual interface to save the adjusted tree structure.

[0076] In this specification, some original interface options may exist in the second system, and these original interface options constitute the basic tree structure of the second system. Therefore, the basic tree structure is actually used to reflect the hierarchical relationship of some original interface options.

[0077] In response to the save operation being performed on the adjusted tree structure, the terminal device may first determine the root interface option contained in the adjusted tree structure, and may determine the interface option used to connect the root interface option in the basic tree structure saved in the second system as the target interface option based on the information carried in the save operation. The target interface option is used as the parent interface option, and the root interface option is used as the child interface option corresponding to the parent interface option, and the adjusted tree structure is connected to the basic tree structure saved in the second system, and the adjusted tree structure can be saved in a database storing the basic tree structure. Of course, the adjusted tree structure and the basic tree structure can be stored in the same table or in different tables, and this specification does not specifically limit this.

[0078] Of course, the basic tree structure may not exist in the second system, that is, the original interface options do not exist in the second system. In this case, the adjusted tree structure can be directly stored in the database of the second system.

[0079] The terminal device may store the data of each interface option in the database in sequence according to the hierarchical relationship between each interface option contained in the adjusted tree structure. For example, the terminal device may first store the root interface option in the adjusted tree structure in the database, and then determine the sub-interface option corresponding to the root interface option according to the hierarchical relationship between each interface option, and store it in the database, and then store the remaining interface options in the adjusted structure in the database in sequence according to the hierarchical relationship between each interface option.

[0080] In this specification, the save request sent by the user may carry the user's permission level information. When the user performs a save operation on the adjusted tree structure, the terminal device may first determine the adjusted interface option in the interface option tree structure as the option to be confirmed. Then, the permission restriction information corresponding to the item to be confirmed and the permission level contained in the save request sent by the user are obtained, wherein the permission restriction information corresponding to the item to be confirmed may be information contained in the access control information of the item to be confirmed that is used to characterize the permission level corresponding to the user who is allowed to adjust the option to be confirmed.

[0081] The terminal device can determine the interface options that the user can adjust from the options to be confirmed according to the user's authority level and the authority restriction information corresponding to the options to be confirmed as the options to be saved. Then, the target tree structure corresponding to the options to be saved can be determined according to the options to be saved, and the target tree structure can be saved to execute the corresponding business (such as testing business, performance tuning business, etc.).

[0082] It should be noted that after storing the data of each interface option in the database, the user can also export the entire or partial interface option data stored in the database according to their own needs, and convert it into configuration data in a specified data format, and then import it into other systems to execute business.

[0083] In the case of exporting part of the interface option data, the user can check the interface option data stored in the database in the visual interface according to their own needs and perform the export operation. In response to the user's selection operation, the terminal device can determine the interface option data checked by the user from the database, convert it into configuration data in a specified data format, and export it. Furthermore, the exported configuration data in a specified data format can be imported into other systems to execute corresponding services (such as function drill services).

[0084] It can be seen from the above method that both the first system and the second system can parse and process the configuration data in the specified data format. Therefore, the configuration data in the first system can be directly imported into the second system for data configuration, so that the second system can parse and process the imported configuration data. That is, there is no need to manually configure each interface option one by one, which greatly improves the configuration efficiency.

[0085] In addition, during the data configuration process, the interface option tree structure obtained through analysis can be displayed in a visual interface, which is convenient for users to make corresponding adjustments to the interface option tree through the visual interface, greatly reducing the difficulty of adjusting the configuration data. At the same time, it also reduces the possibility of errors during the data configuration process and improves the accuracy of data configuration.

[0086] In addition, in the process of saving the adjusted tree structure, the interface options that the user is allowed to adjust can be determined based on the obtained user's permission level information, thereby avoiding the situation where users with low permission levels make improper adjustments to interface options with higher permission level requirements, thereby greatly improving the security of the data configuration process.

[0087] Furthermore, when constructing the interface option tree structure, in addition to being able to intuitively display the interface option tree structure to the user in a visual interface to facilitate the user's adjustment operations, the hierarchical relationship between the interface options can also be accurately reflected through the temporary identification of each interface option. Therefore, whether the configuration data is re-imported back to its own system or imported into other systems, the hierarchical relationship between the interface options can be accurately reflected through the temporary identification of each interface option, greatly increasing the accuracy of importing the configuration data for data configuration.

[0088] Furthermore, in the above method, users can also select part of the configuration data in the visual interface according to their own needs, and export the configuration data into a specified data format to execute business, which greatly meets the actual needs of users and improves user satisfaction.

[0089] The above are one or more implementation methods of this specification. Based on the same idea, this specification also provides a corresponding data configuration device, such as Figure 4 shown.

[0090] Figure 4 A schematic diagram of a data configuration device provided in this specification includes:

[0091] Acquisition module 401: used to acquire configuration data of a specified data format in the first system, wherein the configuration data includes data of each interface option, and each interface option includes: each menu item and each directory item;

[0092] Parsing module 402: used for inputting the configuration data into the second system, so as to parse the configuration data in the second system using a parsing method corresponding to the specified data format, and determining the hierarchical relationship between the interface options according to the parsed data of the interface options;

[0093] Display module 403: used to construct an interface option tree structure corresponding to the configuration data according to the hierarchical relationship, and display the interface option tree structure in a visual interface;

[0094] Execution module 404: used to determine the adjusted tree structure in response to the interface option tree structure being adjusted, and determine the configuration data corresponding to the adjusted tree structure in the specified data format based on the adjusted tree structure as the target configuration data, so as to execute the business based on the target configuration data.

[0095] Optionally, the display module 403 is specifically used to generate temporary identifiers for the interface options according to the hierarchical relationship, and replace the original identifiers of the interface options to construct an interface option tree structure corresponding to the configuration data.

[0096] Optionally, the display module 403 is specifically used to determine, for each interface option, the parent interface option corresponding to the interface option according to the hierarchical relationship; generate a temporary identifier of the interface option according to the temporary identifier of the parent interface option and the hierarchical relationship, and replace the original identifier of the interface option.

[0097] Optionally, the display module 403 is specifically used to restore the temporary identifier corresponding to each interface option contained in the target configuration data to the original identifier corresponding to each interface option when the target configuration data is imported back into the first system, so as to obtain the data to be configured, and execute business in the first system based on the data to be configured.

[0098] Optionally, the device further includes: a preview module 405;

[0099] The preview module 405 is specifically used to, in response to the interface option tree structure being adjusted, generate a preview page for the adjusted tree structure in the visual interface based on the adjusted tree structure, wherein the preview page is used to display the page content of the page where each interface option contained in the adjusted tree structure is located.

[0100] Optionally, the device further includes: a first storage module 406;

[0101] The first storage module 406 is specifically used to, in response to the adjusted tree structure being saved, determine a root interface option contained in the adjusted tree structure; determine an interface option used to connect the root interface option in the basic tree structure saved in the second system as a target interface option; use the target interface option as a parent interface option and the root interface option as a child interface option corresponding to the parent interface option, connect the adjusted tree structure and the basic tree structure, so as to save the adjusted tree structure in a database storing the basic tree structure.

[0102] Optionally, the device further includes: a second storage module 407;

[0103] The second storage module 407 is specifically configured to, in response to the adjusted tree structure being saved, store the data of each interface option in the database in sequence according to the hierarchical relationship between the interface options contained in the adjusted tree structure.

[0104] Optionally, the device further includes: a third storage module 408;

[0105] The third storage module 408 is specifically used to, in response to a save operation performed by the user on the adjusted tree structure, determine the adjusted interface option in the interface option tree structure as an option to be confirmed; obtain the user's authority level and the authority restriction information corresponding to the option to be confirmed, the authority restriction information is used to characterize the authority level corresponding to the user who is allowed to adjust the option to be confirmed; determine the interface option that the user is allowed to adjust from the options to be confirmed as the option to be saved based on the user's authority level and the authority restriction information corresponding to the option to be confirmed; determine the target tree structure based on the option to be saved, and save the target tree structure.

[0106] This specification also provides a computer-readable storage medium, which stores a computer program, which can be used to execute the above Figure 1 The data configuration method shown.

[0107] This manual also provides Figure 5 The one shown corresponds to Figure 1 A schematic diagram of the electronic device. Figure 5 As shown, at the hardware level, the electronic device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and may also include other hardware required for the business. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it to achieve the above Figure 1 The data configuration method shown.

[0108] Of course, in addition to software implementation, this specification does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc., that is to say, the executor of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0109] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages ​​and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.

[0110] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.

[0111] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0112] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0113] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems, or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0114] This specification is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0115] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0116] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0117] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0118] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0119] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0120] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0121] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0122] This specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. This specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0123] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0124] The above description is only an embodiment of the present specification and is not intended to limit the present specification. For those skilled in the art, the present specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification shall be included in the scope of the claims of the present specification.

Claims

1. A data configuration method, characterized in that: The method is used to import configuration data in a first system into a second system for data configuration, wherein the system environment deployed by the first system is different from that of the second system, and includes: Acquire configuration data in a specified data format in the first system, wherein the configuration data includes data of each interface option, and the each interface option includes: each menu item and each directory item; Inputting the configuration data into the second system, parsing the configuration data in the second system using a parsing method corresponding to the specified data format, and determining a hierarchical relationship between the interface options based on the parsed data of the interface options; According to the hierarchical relationship, construct an interface option tree structure corresponding to the configuration data, and display the interface option tree structure in a visual interface; In response to the interface option tree structure being adjusted, the adjusted tree structure is determined, and according to the adjusted tree structure, configuration data corresponding to the adjusted tree structure in the specified data format is determined as target configuration data, so as to execute the service based on the target configuration data.

2. The method according to claim 1, characterized in that According to the hierarchical relationship, constructing an interface option tree structure corresponding to the configuration data specifically includes: According to the hierarchical relationship, a temporary identifier of each interface option is generated, and the original identifier of each interface option is replaced to construct an interface option tree structure corresponding to the configuration data.

3. The method according to claim 2, characterized in that Generating temporary identifiers of the interface options according to the hierarchical relationship and replacing original identifiers of the interface options specifically includes: For each interface option, determine the parent interface option corresponding to the interface option according to the hierarchical relationship; According to the temporary identifier of the parent interface option and the hierarchical relationship, a temporary identifier of the interface option is generated, and the original identifier of the interface option is replaced.

4. The method according to claim 2, characterized in that Based on the target configuration data, executing the service specifically includes: When the target configuration data is imported back into the first system, the temporary identifiers corresponding to the interface options contained in the target configuration data are restored to the original identifiers corresponding to the interface options to obtain the data to be configured, and the business is executed in the first system based on the data to be configured.

5. The method according to claim 1, characterized in that The method further comprises: In response to the interface option tree structure being adjusted, a preview page for the adjusted tree structure is generated in the visualization interface based on the adjusted tree structure, wherein the preview page is used to display the page content of the page where each interface option contained in the adjusted tree structure is located.

6. The method according to claim 1, characterized in that The method further comprises: In response to a saving operation being performed on the adjusted tree structure, determining a root interface option included in the adjusted tree structure; Determining, in the basic tree structure stored in the second system, an interface option for connecting the root interface option as a target interface option; The target interface option is used as the parent interface option, the root interface option is used as the child interface option corresponding to the parent interface option, and the adjusted tree structure is connected with the basic tree structure to save the adjusted tree structure in the database storing the basic tree structure.

7. The method according to claim 1, characterized in that The method further comprises: In response to the saving operation being performed on the adjusted tree structure, the data of each interface option is sequentially stored in the database according to the hierarchical relationship between the interface options contained in the adjusted tree structure.

8. The method according to claim 1, characterized in that The method further comprises: In response to a save operation performed by the user on the adjusted tree structure, determining the adjusted interface option in the interface option tree structure as an option to be confirmed; Acquire the permission level of the user and permission restriction information corresponding to the option to be confirmed, wherein the permission restriction information is used to represent the permission level corresponding to the user who is allowed to adjust the option to be confirmed; According to the permission level of the user and the permission restriction information corresponding to the option to be confirmed, determining the interface option that the user is allowed to adjust from the options to be confirmed as the option to be saved; According to the options to be saved, a target tree structure is determined, and the target tree structure is saved.

9. A data configuration device, characterized in that: include: An acquisition module: used for acquiring configuration data of a specified data format in the first system, wherein the configuration data includes data of various interface options, and the various interface options include: various menu items and various directory items; Parsing module: used for inputting the configuration data into the second system, so as to parse the configuration data in the second system using the parsing method corresponding to the specified data format, and determining the hierarchical relationship between the interface options according to the parsed data of the interface options; Display module: used to construct an interface option tree structure corresponding to the configuration data according to the hierarchical relationship, and display the interface option tree structure in a visual interface; Execution module: used to determine the adjusted tree structure in response to the interface option tree structure being adjusted, and determine the configuration data corresponding to the adjusted tree structure in the specified data format according to the adjusted tree structure as the target configuration data, so as to execute the business based on the target configuration data.

10. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.

11. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Menu permission configuration method and system

    CN105653977A

  • DevOps-based multi-environment configuration system and method

    CN110377294A

  • Application menu configuration method and device, electronic equipment and storage medium

    CN111611036A

  • Data processing method and device, terminal and medium

    CN111694549A

  • Page construction method and device

    CN112100550A