A universal visual resource directory configuration method and system

By uniformly storing the resources of the visual module into a data resource pool, and selecting the required resources through configuration for display and adjustment, the problem that multiple visual modules need to customize the development of data resource directories is solved, and the flexible presentation of resources is achieved. Real-time adjustments reduce R&D and maintenance costs.

CN114217842BActive Publication Date: 2025-02-11XIAMEN MEIYA PICO INFORMATION CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111522856.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-13
Publication Date
2025-02-11
Estimated Expiration
2041-12-13

AI Technical Summary

Technical Problem

In existing visualization systems, multiple visualization modules require customized development data resource catalogs, resulting in increased costs of repeated development work and maintenance.

Method used

A general visual resource directory configuration method is proposed, and the resources of each visual module are stored in a data resource pool, and the required resources are selected through configuration methods for display and adjustment.

Benefits of technology

It realizes flexible presentation and real-time adjustment of resources, avoids duplicate development and maintenance of resources, reduces R&D costs, and improves the scalability and response efficiency of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114217842B_ABST
    Figure CN114217842B_ABST
Patent Text Reader

Abstract

The present invention provides a general visualization resource directory configuration method and system, including storing resources in a visualization module into the same data resource pool; classifying and abstracting the attribute types of the resources according to the commonalities of the same type of data, thereby extracting a plurality of different types of the attribute types, and then optimizing and encapsulating the same attribute types; configuring a resource set according to the business of the visualization module, and extracting and displaying the resources required for the business according to the resource set combined with the optimized and encapsulated attribute types, while the operation and maintenance personnel make real-time adjustments to the resources required for the business. The present invention can avoid repeated development and maintenance of resources, reduce R&D costs, and can also quickly and flexibly add and maintain visualization modules, transferring the R&D work to the hands of operation and maintenance personnel, greatly improving response efficiency; in addition, it also realizes multiple utilization of resources to avoid repeated development.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of resource visualization, and in particular to a general visualization resource directory configuration method and system. Background Art

[0002] With the development of technology, more and more systems present data through map visualization, which not only presents data more intuitively, but also provides a new way to integrate and display different data. Therefore, most visualization systems will have corresponding data resource directories for users to select when displaying data integration. Users can choose the data they want to display and analyze according to their needs.

[0003] The data resource directory in the visualization module is often customized according to specific business needs. When there are multiple visualization modules in the system, each module needs to be customized. Many resources between different modules may have the same parts, which leads to a lot of repetitive development work. In the later maintenance, the same content in multiple modules may be maintained, which greatly increases the maintenance cost. Summary of the invention

[0004] The present invention proposes a universal visualization resource directory configuration method and system to solve the above-mentioned defects of the prior art.

[0005] In one aspect, the present invention provides a general method for configuring a visualization resource directory, the method comprising the following steps:

[0006] S1: Store the resources in the visualization module into the same data resource pool;

[0007] S2: classifying and abstracting the attribute types of the resources according to the commonalities of the same type of data, thereby extracting a plurality of different types of the attribute types, and then optimizing and encapsulating the same attribute types;

[0008] S3: According to the business configuration resource set of the visualization module, and according to the resource set combined with the attribute type after optimization and encapsulation, the resources required for the business are extracted and displayed, and the operation and maintenance personnel make real-time adjustments to the resources required for the business.

[0009] The above method centralizes the resources in each visualization module into a resource pool, and then selects the resources required by each module for display through configuration. This not only makes the presentation of resources more flexible, but also allows real-time adjustment of resources directly by operation and maintenance personnel to improve system availability. At the same time, since resources are managed through a resource pool, repeated development of the same function is avoided. This method also classifies and abstracts the attribute types of resources, extracts the commonalities of the same type of data for optimized encapsulation, and greatly enhances the efficiency of resource development. This method also provides a good expansion function to facilitate the improvement and supplement of subsequent new resources.

[0010] In a specific embodiment, the steps performed in S1 and S2 at the back end of the visualization resource system specifically include:

[0011] A1: Add new resources to the data resource pool;

[0012] A2: Set the attribute type of the newly added resource, which includes: id, parent node id, name, node type, node code, node data type, point data display template, data request url, data request parameters, display field mapping, point icon, point style, whether to calculate the total number, and the total number of nodes;

[0013] A3: Divide the node types into leaf nodes and child nodes;

[0014] The child node is used to display a directory in a hierarchical manner, and the child node includes: the id, the parent node id, the name, and the node type, wherein the parent node id of the root node is 0;

[0015] The leaf node includes the portion of the attribute type other than the content included in the child node;

[0016] A4: The data request URL provides a query interface for querying data stored in the mongo database; the query interface includes: a general query interface and a query interface written according to specific requirements;

[0017] A5: The querying of the data stored in the mongo database includes: performing field mapping according to the display field mapping;

[0018] A6: If the specific attribute of the attribute type of whether to calculate the total number corresponding to the newly added resource is yes, the total number of the newly added resources is calculated through a scheduled task and the total number is stored in the total number of nodes.

[0019] In a specific embodiment, the scheduled task includes dynamically setting the scheduled interval of the task.

[0020] In a specific embodiment, the steps performed in S3 at the back end of the visualization resource system specifically include:

[0021] B1: selecting one of the following operations according to the business of the visualization module: creating a new resource set and modifying an existing resource set; wherein the resource set includes a resource set code and a resource set description;

[0022] B2: Select the required resources from the data resource pool to construct a resource tree for the corresponding business. The resource tree is used to directly drag and drop to adjust the resource structure, add resources, and delete resources;

[0023] B3: If the existing resource set is selected to be modified in B1, the resources in the resource set to be modified are copied and the copied resources are adjusted. The adjustment includes analyzing resource sets with similar business scenarios to improve the construction efficiency of the resource sets with similar business scenarios.

[0024] In a specific embodiment, the steps performed in the front end of the visualization resource system in S3 specifically include:

[0025] Using the data in the resource set as parameters to encapsulate a presentation component, the presentation component presents the resources required by the business;

[0026] When the display component is called, the data in the resource set is used as an access parameter to call the backend to obtain the resource set interface;

[0027] The backend obtains the resources required for the business according to the data in the resource set, and encapsulates the resources required for the business into tree structure data and returns it to the frontend;

[0028] The front end displays the tree structure data in the form of a tree resource menu, including displaying the data in the corresponding leaf node when the leaf node is selected, and traversing and displaying all the sub-node data in the sub-node when the sub-node is selected;

[0029] Call the corresponding interface according to the data request URL and the data request parameters corresponding to the resources required by the business to obtain the data requested by the data request URL;

[0030] A data display adapter is called, and the data display adapter processes the acquired data, and processes and displays the acquired data according to the node data type in the acquired data.

[0031] In a specific embodiment, the data types supported by the data display adapter include: map layers, heat maps, aggregate maps, point data, line data, surface data, and other types of expanded data.

[0032] In a specific embodiment, the processing and displaying according to the node data type in the acquired data specifically includes:

[0033] Display by clicking on the pop-up information;

[0034] Different pop-up window information is displayed through the point data display template;

[0035] The point icons and basic styles are configured.

[0036] In a specific embodiment, after the display is completed, the selected leaf node and the child node are cancelled, and the corresponding data information on the hidden map is cleared.

[0037] According to a second aspect of the present invention, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a computer processor, the above method is implemented.

[0038] According to a third aspect of the present invention, a general visual resource directory configuration system is provided, the system comprising:

[0039] Data resource concentration module: configured to store the resources in the visualization module into the same data resource pool;

[0040] Attribute type classification module: configured to classify and abstract the attribute types of the resource according to the commonalities of the same type of data, thereby extracting a plurality of different types of the attribute types, and then optimizing and encapsulating the same attribute types;

[0041] Resource display module: configured to configure a resource set according to the business of the visualization module, and extract and display the resources required for the business according to the resource set combined with the attribute type after optimization and encapsulation, while the operation and maintenance personnel make real-time adjustments to the resources required for the business.

[0042] The present invention stores the resources in the visualization module in the same data resource pool; classifies and abstracts the attribute types of the resources according to the commonality of the same type of data, thereby extracting a plurality of different types of the attribute types, and then optimizing and encapsulating the same attribute types; according to the business configuration resource set of the visualization module, and according to the resource set combined with the attribute types after optimization and encapsulation, extracts and displays the resources required for the business, and at the same time, the operation and maintenance personnel adjust the resources required for the business in real time. The present invention realizes friendly user interaction and open configurable projects, which can not only avoid repeated development and maintenance of resources and reduce research and development costs, but also quickly and flexibly add and maintain visualization modules, transfer the research and development work to the hands of operation and maintenance personnel, and greatly improve response efficiency; in the case of no need for new display resources, the effect of completing the display of new modules can be achieved with zero development. In addition, the present invention separates resources and businesses separately, concentrates all resources into a large resource pool, and the business quickly selects and assembles the required resource set from the resource pool according to needs for display, so that resources can be used multiple times to avoid repeated development, and at the same time allows developers to focus on resource development and business personnel to focus on business management. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] The accompanying drawings are included to provide a further understanding of the embodiments and are incorporated into and constitute a part of this specification. The accompanying drawings illustrate the embodiments and together with the description are used to explain the principles of the present invention. Other embodiments and many expected advantages of the embodiments will be readily appreciated as they become better understood by reference to the following detailed description. Other features, objects and advantages of the present application will become more apparent by reading the detailed description of the non-limiting embodiments made with reference to the following drawings:

[0044] Figure 1 is an exemplary system architecture diagram to which the present application may be applied;

[0045] Figure 2 is a flow chart of a general visualization resource directory configuration method according to an embodiment of the present invention;

[0046] Figure 3 It is a framework diagram of a general visual resource directory configuration system according to an embodiment of the present invention;

[0047] Figure 4 It is a structural diagram of a computer system suitable for implementing an electronic device of an embodiment of the present application. DETAILED DESCRIPTION

[0048] The present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It should also be noted that, for ease of description, only the parts related to the relevant invention are shown in the accompanying drawings.

[0049] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0050] Figure 1 An exemplary system architecture 100 is shown to which a general visualization resource catalog configuration method according to an embodiment of the present application can be applied.

[0051] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0052] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various applications can be installed on terminal devices 101, 102, 103, such as data processing applications, data visualization applications, web browser applications, etc.

[0053] Terminal devices 101, 102, 103 can be hardware or software. When terminal devices 101, 102, 103 are hardware, they can be various electronic devices, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, etc. When terminal devices 101, 102, 103 are software, they can be installed in the electronic devices listed above. They can be implemented as multiple software or software modules (for example, software or software modules used to provide distributed services), or they can be implemented as a single software or software module. No specific limitation is made here.

[0054] The server 105 may be a server that provides various services, such as a background information processing server that provides support for resource data displayed on the terminal devices 101, 102, and 103. The background information processing server may process the acquired attribute type and generate a processing result (such as a packaged attribute type).

[0055] It should be noted that the method provided in the embodiment of the present application can be executed by the server 105, and can also be executed by the terminal devices 101, 102, 103. The corresponding device is generally set in the server 105, and can also be set in the terminal devices 101, 102, 103.

[0056] It should be noted that the server can be hardware or software. When the server is hardware, it can be implemented as a distributed server cluster consisting of multiple servers, or it can be implemented as a single server. When the server is software, it can be implemented as multiple software or software modules (for example, software or software modules used to provide distributed services), or it can be implemented as a single software or software module. No specific limitation is made here.

[0057] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0058] According to an embodiment of the present invention, a general visualization resource directory configuration method is provided. Figure 2 FIG. 4 is a flowchart showing a general method for configuring a visualization resource directory according to an embodiment of the present invention. Figure 2 As shown, the method comprises the following steps:

[0059] S1: Store the resources in the visualization module into the same data resource pool;

[0060] S2: classifying and abstracting the attribute types of the resources according to the commonalities of the same type of data, thereby extracting a plurality of different types of the attribute types, and then optimizing and encapsulating the same attribute types;

[0061] S3: According to the business configuration resource set of the visualization module, and according to the resource set combined with the attribute type after optimization and encapsulation, the resources required for the business are extracted and displayed, and the operation and maintenance personnel make real-time adjustments to the resources required for the business.

[0062] In a specific embodiment, the steps performed in S1 and S2 at the back end of the visualization resource system specifically include:

[0063] A1: Add new resources to the data resource pool;

[0064] A2: Set the attribute type of the newly added resource, which includes: id, parent node id, name, node type, node code, node data type, point data display template, data request url, data request parameters, display field mapping, point icon, point style, whether to calculate the total number, and the total number of nodes;

[0065] A3: Divide the node types into leaf nodes and child nodes;

[0066] The child node is used to display a directory in a hierarchical manner, and the child node includes: the id, the parent node id, the name, and the node type, wherein the parent node id of the root node is 0;

[0067] The leaf node includes the portion of the attribute type other than the content included in the child node;

[0068] A4: The data request URL provides a query interface for querying data stored in the mongo database; the query interface includes: a general query interface and a query interface written according to specific requirements;

[0069] A5: The querying of the data stored in the mongo database includes: performing field mapping according to the display field mapping;

[0070] A6: If the specific attribute of the attribute type of whether to calculate the total number corresponding to the newly added resource is yes, the total number of the newly added resources is calculated through a scheduled task and the total number is stored in the total number of nodes.

[0071] In a specific embodiment, the scheduled task includes dynamically setting the scheduled interval of the task.

[0072] In a specific embodiment, the steps performed in S3 at the back end of the visualization resource system specifically include:

[0073] B1: selecting one of the following operations according to the business of the visualization module: creating a new resource set and modifying an existing resource set; wherein the resource set includes a resource set code and a resource set description;

[0074] B2: Select the required resources from the data resource pool to construct a resource tree for the corresponding business. The resource tree is used to directly drag and drop to adjust the resource structure, add resources, and delete resources;

[0075] B3: If the existing resource set is selected to be modified in B1, the resources in the resource set to be modified are copied and the copied resources are adjusted. The adjustment includes analyzing resource sets with similar business scenarios to improve the construction efficiency of the resource sets with similar business scenarios.

[0076] In a specific embodiment, the steps performed in the front end of the visualization resource system in S3 specifically include:

[0077] Using the data in the resource set as parameters to encapsulate a presentation component, the presentation component presents the resources required by the business;

[0078] When the display component is called, the data in the resource set is used as an access parameter to call the backend to obtain the resource set interface;

[0079] The backend obtains the resources required for the business according to the data in the resource set, and encapsulates the resources required for the business into tree structure data and returns it to the frontend;

[0080] The front end displays the tree structure data in the form of a tree resource menu, including displaying the data in the corresponding leaf node when the leaf node is selected, and traversing and displaying all the sub-node data in the sub-node when the sub-node is selected;

[0081] Call the corresponding interface according to the data request URL and the data request parameters corresponding to the resources required by the business to obtain the data requested by the data request URL;

[0082] A data display adapter is called, and the data display adapter processes the acquired data, and processes and displays the acquired data according to the node data type in the acquired data.

[0083] In a specific embodiment, the data types supported by the data display adapter include: map layers, heat maps, aggregate maps, point data, line data, surface data, and other types of expanded data.

[0084] In a specific embodiment, the processing and displaying according to the node data type in the acquired data specifically includes:

[0085] Display by clicking on the pop-up information;

[0086] Different pop-up window information is displayed through the point data display template;

[0087] The point icons and basic styles are configured.

[0088] In a specific embodiment, after the display is completed, the selected leaf node and the child node are cancelled, and the corresponding data information on the hidden map is cleared.

[0089] In a specific embodiment, the method is mainly divided into two parts, namely the background resource management part and the front-end display part:

[0090] (1) The steps for backend resource management are as follows:

[0091] Step 1. Add a new resource in the data resource pool;

[0092] Step 2. Set the basic attributes of the resource, including id, parent node id, name, node type, node code, node data type, point data display template, data request url, data request parameters, display field mapping, point icon, point style, whether to calculate the total number and the total number of nodes, etc.;

[0093] Step 3. In step 2, the node types are divided into leaf nodes and child nodes. The node type of leaf nodes is only used as a simple hierarchical display directory. At this time, the node only contains four basic attributes: id, parent node id, name and node type. The node type of child nodes contains all the attributes in step 2. At the same time, no leaf nodes or child nodes can be added under the child node, that is, the child node id cannot become the leaf node id of any other node. The parent node id of the root node is 0.

[0094] Step 4. The data URL in step 2 provides a general query interface that can query data stored in the mongo database. Because of the document structure characteristics of mongo, there is no need to write the corresponding database mapping file when querying. Therefore, when a new mongo table is added, the general query interface does not need to modify the backend code, which facilitates the expansion of query data; it also supports calling interfaces written for specific needs.

[0095] Step 5. The query data in step 4 will be mapped according to the "Display Field Mapping" attribute in step 2, ensuring the consistency of the data structure retrieved from different databases, making it easier for the front end to perform unified and standardized processing and display;

[0096] Step 6. If "Calculate the total" in step 2 is yes, the system will automatically calculate the total number of the corresponding data resources through the scheduled task and store it in the "Total number of nodes" attribute. At the same time, the scheduled task interval can also be set dynamically. This can not only avoid efficiency problems caused by real-time statistics on the page, but also avoid inaccurate data caused by too long data statistics intervals;

[0097] Step 7. Create a new resource set or modify an existing resource set based on business needs. A resource set mainly includes a resource set code and a resource set description.

[0098] Step 8. After completing step 7, select the corresponding resources from the resource pool to build a resource tree corresponding to business needs. The resource tree supports direct drag and drop to adjust the resource structure, and also supports adding and deleting resources.

[0099] Step 9. After completing step 7, you can also select other resource sets and quickly copy the resources of the selected resource set, and then adjust the resources to improve the efficiency of resource set construction in some similar business scenarios.

[0100] Step 10. Complete the resource set configuration through step 8 or step 9, and complete the background resource management part operation.

[0101] (2) The operation steps of the front-end display part are as follows:

[0102] Step 11. The front end encapsulates a resource data display component, and the main parameter is the resource set code in step 7. After calling the component, the first step is to call the back end to obtain the data resource set interface, and the input parameter is the resource set code in step 7.

[0103] Step 12. The backend obtains the corresponding data resources according to the resource set code, and encapsulates it into tree structure data and returns it to the frontend.

[0104] Step 13. The front end displays the data returned in step 12 as a tree-shaped resource menu. Select a child node to display the corresponding child node type data. Select a leaf node to traverse and display all child node data of the node.

[0105] Step 14. After selecting the node in step 13, call the interface to obtain data according to the data request URL and data request parameters of the corresponding resource configured in step 2.

[0106] Step 15. After obtaining the data in step 14, call the data display adapter to display the data. The data display adapter will process and display the data according to the node data type of the corresponding resource configured in step 2. Currently, the data display adapter supports the following types: map layer, heat map, aggregate map, point data, line data, and surface data. It also supports type extension to meet the presentation of more business scenarios.

[0107] Step 16. The point, line, and surface type data displayed in step 15 also supports click pop-up window information display. You can flexibly display different pop-up window information through the point data display template of the resource in step 2. It also supports point icons and basic style configuration.

[0108] Step 17. When the node is unselected in step 13, the corresponding data information on the hidden map is cleared.

[0109] Figure 3 The framework diagram of a general visual resource catalog configuration system according to an embodiment of the present invention is shown. The system includes a data resource centralization module 301 , an attribute type classification module 302 and a resource display module 303 .

[0110] In a specific embodiment, the data resource centralization module 301 is configured to store the resources in the visualization module into the same data resource pool;

[0111] The attribute type classification module 302 is configured to classify and abstract the attribute types of the resource according to the commonality of the same type of data, thereby extracting a plurality of different types of the attribute types, and then optimizing and encapsulating the same attribute types;

[0112] The resource display module 303 is configured to configure a resource set according to the business of the visualization module, and extract and display the resources required for the business according to the resource set combined with the attribute type after optimization and encapsulation, while the operation and maintenance personnel make real-time adjustments to the resources required for the business.

[0113] This system stores the resources in the visualization module in the same data resource pool; classifies and abstracts the attribute types of the resources according to the commonalities of the same type of data, thereby extracting multiple different types of the attribute types, and then optimizing and encapsulating the same attribute types; configures the resource set according to the business of the visualization module, and extracts and displays the resources required for the business according to the resource set combined with the optimized and encapsulated attribute types, and the operation and maintenance personnel adjust the resources required for the business in real time. This system implements friendly user interaction and open configurable projects, which can not only avoid repeated development and maintenance of resources and reduce R&D costs, but also quickly and flexibly add and maintain visualization modules, transfer the R&D work to the hands of operation and maintenance personnel, and greatly improve response efficiency; without the need for new display resources, the effect of completing the display of new modules can be achieved with zero development. In addition, this system separates resources and businesses separately, concentrates all resources into a large resource pool, and the business quickly selects and assembles the required resource set from the resource pool according to needs for display, so that resources can be used multiple times to avoid repeated development, and at the same time allows developers to focus on resource development and business personnel to focus on business management.

[0114] It should be recognized that the design and configuration display of the resource pool proposed in the present invention can quickly build different business scenarios and quickly adjust existing business scenarios. Maintenance and adjustment can be carried out by operation and maintenance personnel, which greatly reduces the R&D cost. At the same time, the system also reserves a variety of database acquisition interfaces in the data acquisition process, and the front-end display also reserves a data display expansion interface to meet more complex data acquisition and presentation requirements.

[0115] Reference below Figure 4 , which shows a schematic diagram of the structure of a computer system 400 suitable for implementing an electronic device of an embodiment of the present application. Figure 4 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0116] like Figure 4As shown, the computer system 400 includes a central processing unit (CPU) 401, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 402 or a program loaded from a storage part 408 into a random access memory (RAM) 403. In the RAM 403, various programs and data required for the operation of the system 400 are also stored. The CPU 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.

[0117] The following components are connected to the I / O interface 405: an input section 406 including a keyboard, a mouse, etc.; an output section 407 including a liquid crystal display (LCD), etc. and a speaker, etc.; a storage section 408 including a hard disk, etc.; and a communication section 409 including a network interface card such as a LAN card, a modem, etc. The communication section 409 performs communication processing via a network such as the Internet. A drive 410 is also connected to the I / O interface 405 as needed. A removable medium 411, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 410 as needed, so that a computer program read therefrom is installed into the storage section 408 as needed.

[0118] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable storage medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 409, and / or installed from the removable medium 411. When the computer program is executed by the central processing unit (CPU) 401, the above functions defined in the method of the present application are executed. It should be noted that the computer-readable storage medium described in the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, - but not limited to - an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection with one or more conductors, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, device, or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable storage medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, device, or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wireless, wireline, optical cable, RF, etc., or any suitable combination of the foregoing.

[0119] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0120] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0121] The modules involved in the embodiments described in the present application may be implemented by software or hardware. The units described may also be arranged in a processor, and the names of these units do not constitute limitations on the units themselves in certain circumstances.

[0122] An embodiment of the present invention further relates to a computer-readable storage medium having a computer program stored thereon, which implements the method described above when the computer program is executed by a computer processor. The computer program includes program code for executing the method shown in the flowchart. It should be noted that the computer-readable medium of the present application may be a computer-readable signal medium or a computer-readable medium or any combination of the above two.

[0123] The present invention stores the resources in the visualization module in the same data resource pool; classifies and abstracts the attribute types of the resources according to the commonality of the same type of data, thereby extracting a plurality of different types of the attribute types, and then optimizing and encapsulating the same attribute types; according to the business configuration resource set of the visualization module, and according to the resource set combined with the attribute types after optimization and encapsulation, extracts and displays the resources required for the business, and at the same time, the operation and maintenance personnel adjust the resources required for the business in real time. The present invention realizes friendly user interaction and open configurable projects, which can not only avoid repeated development and maintenance of resources and reduce research and development costs, but also quickly and flexibly add and maintain visualization modules, transfer the research and development work to the hands of operation and maintenance personnel, and greatly improve response efficiency; in the case of no need for new display resources, the effect of completing the display of new modules can be achieved with zero development. In addition, the present invention separates resources and businesses separately, concentrates all resources into a large resource pool, and the business quickly selects and assembles the required resource set from the resource pool according to needs for display, so that resources can be used multiple times to avoid repeated development, and at the same time allows developers to focus on resource development and business personnel to focus on business management.

[0124] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above invention concept. For example, the above features are replaced with the technical features with similar functions disclosed in this application (but not limited to) by each other to form a technical solution.

Claims

1. A general method for configuring a visual resource directory, characterized in that: The following steps are involved: S1: Store the resources in the visualization module into the same data resource pool; S2: classifying and abstracting the attribute types of the resources according to the commonalities of the same type of data, thereby extracting a plurality of different types of the attribute types, and then optimizing and encapsulating the same attribute types; S3: according to the business configuration resource set of the visualization module, and according to the resource set combined with the attribute type after optimization and encapsulation, the resources required for the business are extracted and displayed, and the operation and maintenance personnel adjust the resources required for the business in real time; The steps in S3 executed at the back end of the visualization resource system specifically include: B 1: Select one of the following operations according to the business of the visualization module: create a new resource set and modify an existing resource set; the resource set includes a resource set code and a resource set description; B2: Select the required resources from the data resource pool to construct a resource tree for the corresponding business. The resource tree is used to directly drag and drop to adjust the resource structure, add resources, and delete resources; B3: If the existing resource set is selected to be modified in B1, the resources in the resource set to be modified are copied and the copied resources are adjusted. The adjustment includes analyzing resource sets with similar business scenarios to improve the construction efficiency of the resource sets with similar business scenarios.

2. The method according to claim 1, characterized in that The steps performed in S1 and S2 at the back end of the visualization resource system specifically include: A1: Add new resources to the data resource pool; A2: Set the attribute type of the newly added resource, which includes: id, parent node id, name, node type, node code, node data type, point data display template, data request url, data request parameters, display field mapping, point icon, point style, whether to calculate the total number, and the total number of nodes; A3: Divide the node types into leaf nodes and child nodes; The child node is used for hierarchical display directory, and the child node includes: the id, the parent node id, the name and the node type, wherein the parent node id of the root node is 0; The leaf node includes the portion of the attribute type other than the content included in the child node; A4: The data request URL provides a query interface for querying data stored in the mongo database; the query interface includes: a general query interface and a query interface written according to specific requirements; A5: The querying of the data stored in the mongo database includes: performing field mapping according to the display field mapping; A6: If the specific attribute of the attribute type of whether to calculate the total number corresponding to the newly added resource is yes, the total number of the newly added resources is calculated through a scheduled task and the total number is stored in the total number of nodes.

3. The method according to claim 2, characterized in that The scheduled task includes dynamically setting the scheduled interval of the task.

4. The method according to claim 2, characterized in that: The steps performed in the front end of the visualization resource system in S3 specifically include: Using the data in the resource set as parameters to encapsulate a presentation component, the presentation component presents the resources required by the business; When the display component is called, the data in the resource set is used as an access parameter to call the backend to obtain the resource set interface; The backend obtains the resources required for the business according to the data in the resource set, and encapsulates the resources required for the business into tree structure data and returns it to the frontend; The front end displays the tree structure data in the form of a tree resource menu, including displaying the data in the corresponding leaf node when the leaf node is selected, and traversing and displaying all the sub-node data in the sub-node when the sub-node is selected; Calling a corresponding interface according to the data request url corresponding to the resources required by the business and the data request parameters to obtain the data requested by the data request url; A data display adapter is called, and the data display adapter processes the acquired data, and processes and displays the acquired data according to the node data type in the acquired data.

5. The method according to claim 4, characterized in that The data types supported by the data display adapter include: map layers, heat maps, aggregate maps, point data, line data, surface data, and other types of expanded data.

6. The method according to claim 4, characterized in that The processing and displaying according to the node data type in the acquired data specifically includes: Display by clicking on the pop-up information; Different pop-up window information is displayed through the point data display template; The point icons and basic styles are configured.

7. The method according to claim 4, characterized in that After the display is finished, the selected leaf node and the child node are cancelled, and the corresponding data information on the hidden map is cleared.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a computer processor, the method according to any one of claims 1 to 7 is implemented.

9. A general visual resource directory configuration system, characterized in that: include: Data resource concentration module: configured to store the resources in the visualization module into the same data resource pool; Attribute type classification module: configured to classify and abstract the attribute types of the resource according to the commonalities of the same type of data, thereby extracting a plurality of different types of the attribute types, and then optimizing and encapsulating the same attribute types; Resource display module: configured to configure resource sets according to the business of the visualization module, extract and display the resources required for the business according to the resource sets combined with the attribute types after optimization and encapsulation, and the operation and maintenance personnel can adjust the resources required for the business in real time; Among them, the steps executed in the back-end of the visualization resource system in the resource display module specifically include: B1: selecting one of the following operations according to the business of the visualization module: creating a new resource set and modifying the existing resource set; the resource set includes a resource set code and a resource set description; B2: selecting the required resources from the data resource pool to construct a resource tree for the corresponding business, and the resource tree is used to directly drag and drop to adjust the resource structure, add resources and delete resources; B3: If the existing resource set is selected to be modified in B1, the resources in the resource set that needs to be modified are copied and the copied resources are adjusted. The adjustment includes analyzing resource sets with similar business scenarios to improve the construction efficiency of resource sets with similar business scenarios.

Citation Information

Patent Citations

  • Report sharing method, device, computer device and storage medium

    CN109388462A

  • Chart dynamic display method and apparatus, computer apparatus, and storage medium

    CN109388791A