[go: up one dir, main page]

CN114217842B - A universal visual resource directory configuration method and system - Google Patents

A universal visual resource directory configuration method and system Download PDF

Info

Publication number
CN114217842B
CN114217842B CN202111522856.1A CN202111522856A CN114217842B CN 114217842 B CN114217842 B CN 114217842B CN 202111522856 A CN202111522856 A CN 202111522856A CN 114217842 B CN114217842 B CN 114217842B
Authority
CN
China
Prior art keywords
data
resources
resource
resource set
service
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111522856.1A
Other languages
Chinese (zh)
Other versions
CN114217842A (en
Inventor
吴超鹏
黄自强
陈志飞
左军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiamen Meiya Pico Information Co Ltd
Original Assignee
Xiamen Meiya Pico Information Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiamen Meiya Pico Information Co Ltd filed Critical Xiamen Meiya Pico Information Co Ltd
Priority to CN202111522856.1A priority Critical patent/CN114217842B/en
Publication of CN114217842A publication Critical patent/CN114217842A/en
Application granted granted Critical
Publication of CN114217842B publication Critical patent/CN114217842B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/9032Query formulation
    • G06F16/90324Query formulation using system suggestions
    • G06F16/90328Query formulation using system suggestions using search space presentation or visualization, e.g. category or range presentation and selection
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/9038Presentation of query results
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/906Clustering; Classification
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Computational Linguistics (AREA)
  • Mathematical Physics (AREA)
  • Human Computer Interaction (AREA)
  • Computer Security & Cryptography (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • User Interface Of Digital Computer (AREA)

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.

Description

Universal visual resource catalog configuration method and system
Technical Field
The invention relates to the technical field of resource visualization, in particular to a general visualized resource catalog configuration method and system.
Background
With the development of technology, more and more systems perform data presentation in a map visualization mode, so that the data can be more intuitively presented, and a new mode can be provided for fusion display of different data. Therefore, most of the visualized systems can have corresponding data resource catalogues when data fusion display is carried out, so that a user can conveniently select and operate. The user can select the data which the user wants to display and analyze according to the requirement of the user.
The data resource catalogue in the visualization module is often customized and developed according to specific service requirements, when a plurality of visualization modules exist in the system, each module needs to be customized and developed, and many resources among different modules may have the same part, which results in a great deal of repeated development work, and in the later maintenance, the same content in the plurality of modules may be maintained, so that the maintenance cost is greatly increased.
Disclosure of Invention
The invention provides a general visual resource directory configuration method and system, which are used for solving the defects of the prior art.
In one aspect, the present invention provides a method for configuring a universal visual resource directory, the method comprising the steps of:
S1, storing resources in a visualization module into the same data resource pool;
S2, classifying and abstracting attribute types of the resources according to the commonality of the same type data, so as to extract a plurality of different attribute types, and optimally packaging the same attribute types;
And S3, configuring a resource set according to the service of the visualization module, extracting, displaying and presenting the resources required by the service according to the resource set combined with the attribute type after optimizing and packaging, and simultaneously adjusting the resources required by the service in real time by operation and maintenance personnel.
The method integrates the resources in each visualization module into one resource pool, then selects the resources required by each module for displaying and presenting in a configuration mode, so that the resource presentation becomes more flexible, real-time adjustment of the resources can be directly carried out by operation and maintenance personnel, the usability of the system is improved, and meanwhile, the repeated development of the same function is avoided due to the fact that the resources are managed through the resource pool.
In a specific embodiment, the steps executed at the backend of the visual resource system in S1 and S2 specifically include:
a1, adding new resources into the data resource pool;
A2, setting attribute types of the newly added resources, wherein the attribute types comprise id, father level node id, name, node type, node code, node data type, point location data display template, data request url, data request parameters, display field mapping, point location icon, point location pattern, whether total calculation and total node count;
A3, dividing the node type into leaf nodes and child nodes;
The child nodes are used for a hierarchical presentation directory, the child nodes comprising the id, the parent node id, the name and the node type, wherein the parent node id of a root node is 0;
the leaf node contains a portion of the attribute type other than the content contained by the child node;
A4, the data request url provides a query interface for querying the data stored in the mongo database, wherein the query interface comprises a general query interface and a query interface written according to specific requirements;
A5, inquiring the data stored in the mongo database, wherein the inquiring comprises performing field mapping according to the presentation field mapping;
and A6, if the specific attribute of the attribute type of whether the total number is calculated corresponding to the newly added resources is yes, calculating the total number of the newly added resources through a timing task and storing the total number into the total number of the nodes.
In a specific embodiment, the timing tasks include dynamically setting a timing interval for the tasks.
In a specific embodiment, the step performed in the step S3 at the backend of the visual resource system specifically includes:
b1, selecting one of the following operations according to the service of the visualization module, namely creating a new resource set and modifying the existing resource set, wherein the resource set comprises a resource set code and a resource set description;
B2, selecting needed resources from the data resource pool to construct a resource tree of a corresponding service, wherein the resource tree is used for directly dragging and adjusting a resource structure, adding resources and deleting resources;
And B3, if the existing resource set is selected to be modified in the B1, copying the resources in the resource set to be modified and adjusting the copied resources, wherein the adjustment comprises the step of analyzing the resource sets similar to the service scene so as to improve the construction efficiency of the resource sets similar to the service scene.
In a specific embodiment, the steps performed in the front end of the visual resource system in S3 specifically include:
the data in the resource set is used as parameters for packaging a display assembly, and the display assembly displays the resources required by the service;
When the display component is called, using the data in the resource set as an access parameter to call a back end so as to acquire a resource set interface;
the back end acquires the resources required by the service according to the data in the resource set, encapsulates the resources required by the service into tree structure data and returns the tree structure data to the front end;
The front end displays the tree structure data in the form of a tree resource menu, wherein the display of the data in the corresponding leaf nodes is performed when the leaf nodes are selected, and all the child node data in the child nodes are traversed and displayed when the child nodes are selected;
calling a corresponding interface according to the data request url corresponding to the resource required by the service and the data request parameter so as to acquire data requested by the data request url;
And calling a data display adapter, wherein 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.
In particular embodiments, the data types supported by the data presentation adapter include map layers, thermodynamic diagrams, aggregate diagrams, point data, line data, surface data, and other types of expanded data.
In a specific embodiment, the processing and displaying according to the node data type in the acquired data specifically includes:
Displaying by clicking popup information;
Displaying different popup window information through the point location data display template;
And configuring the point location icon and the basic style.
In a specific embodiment, after the display is finished, the selected leaf node and the selected child node are canceled, and corresponding data information on the hidden map is cleared.
According to a second aspect of the present invention, a computer-readable storage medium is presented, on which a computer program is stored, which computer program, when being executed by a computer processor, carries out the above-mentioned method.
According to a third aspect of the present invention, there is provided a generic visual resource directory configuration system, the system comprising:
the data resource centralizing module is configured to store the resources in the visualization module into the same data resource pool;
The attribute type classifying module is configured to classify and abstract the attribute types of the resources according to the commonality of the data of the same type, so as to extract a plurality of attribute types of different types, and then optimally package the same attribute types;
The resource display module is configured to configure a resource set according to the service of the visualization module, extract and display resources required by the service according to the resource set combined with the attribute type after optimization encapsulation, and adjust the resources required by the service in real time by operation and maintenance personnel.
The method comprises the steps of storing resources in a visualization module into a same data resource pool, classifying and abstracting attribute types of the resources according to commonalities of data of the same type, extracting a plurality of attribute types of different types, optimally packaging the same attribute types, configuring a resource set according to a service of the visualization module, extracting and displaying resources required by the service according to the resource set combined with the optimally packaged attribute types, and simultaneously carrying out real-time adjustment on the resources required by the service by operation and maintenance personnel. The invention realizes friendly user interaction and open configurable projects, can avoid repeated development and maintenance of resources, reduce development cost, simultaneously can rapidly and flexibly add and maintain the visualization module, transfer the development work to the hands of operation and maintenance personnel, greatly improve response efficiency, and can achieve the effect of completing the display of the new module by 0 development without new display resources. In addition, the invention respectively and independently separates the resources and the service, concentrates all the resources into a large resource pool, and then rapidly selects and assembles the resources from the resource pool to display the needed resource set according to the needs, so that the resources can be utilized for multiple times, repeated development is avoided, and simultaneously, the developer can concentrate on the development of the resources, and the service personnel can concentrate on the management of the service.
Drawings
The accompanying drawings are included to provide a further understanding of the embodiments and are incorporated in and constitute a part of this specification. The drawings illustrate embodiments and together with the description serve to explain the principles of the application. Many of the intended advantages of other embodiments and 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 upon reading of the detailed description of non-limiting embodiments, made with reference to the accompanying drawings in which:
FIG. 1 is an exemplary system architecture diagram in which the present application may be applied;
FIG. 2 is a flow diagram of a generic visual resource directory configuration method in accordance with one embodiment of the present invention;
FIG. 3 is a framework diagram of a generic visual resource directory configuration system in accordance with one embodiment of the present invention;
Fig. 4 is a schematic diagram of a computer system suitable for use in implementing an embodiment of the application.
Detailed Description
The application is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be noted that, for convenience of description, only the portions related to the present application are shown in the drawings.
It should be noted that, without conflict, the embodiments of the present application and features of the embodiments may be combined with each other. The application will be described in detail below with reference to the drawings in connection with embodiments.
FIG. 1 illustrates an exemplary system architecture 100 to which a generic visual resource catalog configuration method of embodiments of the present application may be applied.
As shown in fig. 1, a system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used as a medium to provide 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 fiber optic cables, among others.
The user may interact with the server 105 via the network 104 using the terminal devices 101, 102, 103 to receive or send messages or the like. Various applications, such as a data processing class application, a data visualization class application, a web browser application, and the like, may be installed on the terminal devices 101, 102, 103.
The terminal devices 101, 102, 103 may be hardware or software. When the terminal devices 101, 102, 103 are hardware, they may be various electronic devices including, but not limited to, smartphones, tablets, laptop and desktop computers, and the like. When the terminal devices 101, 102, 103 are software, they can be installed in the above-listed electronic devices. Which may be implemented as multiple software or software modules (e.g., software or software modules for providing distributed services) or as a single software or software module. The present invention is not particularly limited herein.
The server 105 may be a server providing various services, such as a background information processing server providing support for resource data presented on the terminal devices 101, 102, 103. The background information processing server may process the acquired attribute type and generate a processing result (e.g., an encapsulated attribute type).
It should be noted that, the method provided in the embodiment of the present application may be executed by the server 105, or may be executed by the terminal devices 101, 102, 103, and the corresponding apparatus is generally disposed in the server 105, or may be disposed in the terminal devices 101, 102, 103.
It should be noted that, the server may be hardware, or may be software. When the server is hardware, the server may be implemented as a distributed server cluster formed by a plurality of servers, or may be implemented as a single server. When the server is software, it may be implemented as a plurality of software or software modules (e.g., software or software modules for providing distributed services), or as a single software or software module. The present invention is not particularly limited herein.
It should be understood that the number of terminal devices, networks and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
A generic visual resource directory configuration method according to one embodiment of the invention, FIG. 2 illustrates a flow chart of a generic visual resource directory configuration method according to an embodiment of the invention. As shown in fig. 2, the method comprises the steps of:
S1, storing resources in a visualization module into the same data resource pool;
S2, classifying and abstracting attribute types of the resources according to the commonality of the same type data, so as to extract a plurality of different attribute types, and optimally packaging the same attribute types;
And S3, configuring a resource set according to the service of the visualization module, extracting, displaying and presenting the resources required by the service according to the resource set combined with the attribute type after optimizing and packaging, and simultaneously adjusting the resources required by the service in real time by operation and maintenance personnel.
In a specific embodiment, the steps executed at the backend of the visual resource system in S1 and S2 specifically include:
a1, adding new resources into the data resource pool;
A2, setting attribute types of the newly added resources, wherein the attribute types comprise id, father level node id, name, node type, node code, node data type, point location data display template, data request url, data request parameters, display field mapping, point location icon, point location pattern, whether total calculation and total node count;
A3, dividing the node type into leaf nodes and child nodes;
The child nodes are used for a hierarchical presentation directory, the child nodes comprising the id, the parent node id, the name and the node type, wherein the parent node id of a root node is 0;
the leaf node contains a portion of the attribute type other than the content contained by the child node;
A4, the data request url provides a query interface for querying the data stored in the mongo database, wherein the query interface comprises a general query interface and a query interface written according to specific requirements;
A5, inquiring the data stored in the mongo database, wherein the inquiring comprises performing field mapping according to the presentation field mapping;
and A6, if the specific attribute of the attribute type of whether the total number is calculated corresponding to the newly added resources is yes, calculating the total number of the newly added resources through a timing task and storing the total number into the total number of the nodes.
In a specific embodiment, the timing tasks include dynamically setting a timing interval for the tasks.
In a specific embodiment, the step performed in the step S3 at the backend of the visual resource system specifically includes:
b1, selecting one of the following operations according to the service of the visualization module, namely creating a new resource set and modifying the existing resource set, wherein the resource set comprises a resource set code and a resource set description;
B2, selecting needed resources from the data resource pool to construct a resource tree of a corresponding service, wherein the resource tree is used for directly dragging and adjusting a resource structure, adding resources and deleting resources;
And B3, if the existing resource set is selected to be modified in the B1, copying the resources in the resource set to be modified and adjusting the copied resources, wherein the adjustment comprises the step of analyzing the resource sets similar to the service scene so as to improve the construction efficiency of the resource sets similar to the service scene.
In a specific embodiment, the steps performed in the front end of the visual resource system in S3 specifically include:
the data in the resource set is used as parameters for packaging a display assembly, and the display assembly displays the resources required by the service;
When the display component is called, using the data in the resource set as an access parameter to call a back end so as to acquire a resource set interface;
the back end acquires the resources required by the service according to the data in the resource set, encapsulates the resources required by the service into tree structure data and returns the tree structure data to the front end;
The front end displays the tree structure data in the form of a tree resource menu, wherein the display of the data in the corresponding leaf nodes is performed when the leaf nodes are selected, and all the child node data in the child nodes are traversed and displayed when the child nodes are selected;
calling a corresponding interface according to the data request url corresponding to the resource required by the service and the data request parameter so as to acquire data requested by the data request url;
And calling a data display adapter, wherein 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.
In particular embodiments, the data types supported by the data presentation adapter include map layers, thermodynamic diagrams, aggregate diagrams, point data, line data, surface data, and other types of expanded data.
In a specific embodiment, the processing and displaying according to the node data type in the acquired data specifically includes:
Displaying by clicking popup information;
Displaying different popup window information through the point location data display template;
And configuring the point location icon and the basic style.
In a specific embodiment, after the display is finished, the selected leaf node and the selected child node are canceled, and corresponding data information on the hidden map is cleared.
In a specific embodiment, the method mainly comprises two parts, namely a background resource management part and a front-end display part:
(1) The operation steps of the background resource management part are as follows:
Step 1, newly adding a resource in a data resource pool;
Step 2, setting basic attributes of resources, which mainly comprise id, father level node id, name, node type, node code, node data type, point location data display template, data request url, data request parameters, display field mapping, point location icon, point location pattern, whether the total number is calculated, the total number of nodes and the like;
And 3, in the step 2, the node type is divided into leaf nodes and child nodes, wherein the node with the node type being the leaf node is only used as a simple hierarchical display catalog, and at the moment, the node only comprises four basic attributes of id, father-level node id, name and node type, the node with the node type being the child node comprises all the attributes in the step 2, and meanwhile, any leaf node or child node cannot be added below the child node, namely, the child node id cannot be the leaf node id of any other node. The parent node id of the root node is 0.
Step 4, the data url in step 2 provides a universal query interface, so that the data stored in the mongo database can be queried, and the corresponding database mapping file does not need to be written when the document structure characteristic of mongo is queried, so that when a mongo library table is newly added, the universal query interface is used, the back end code does not need to be modified, the query data can be conveniently expanded, and meanwhile, the interface written by a specific requirement is supported.
Step 5, the query data in step 4 performs field mapping according to the attribute of 'display field mapping' in step 2, so that the consistency of the data structures taken out from different databases is ensured, and the front end is convenient for unified specification processing display;
And 6, if the total number is calculated in the step 2, the system automatically calculates the total number of the corresponding data resources through the timing task and stores the total number into the node total number attribute. And the timing task interval can be dynamically set. Therefore, the efficiency problem caused by real-time statistics of the page can be avoided, and meanwhile, inaccurate data caused by overlong data statistics intervals can be avoided;
and 7, creating a new resource set or selecting to modify the existing resource set according to the service requirement. The resource set mainly comprises a resource set code and a resource set description.
And 8, after the step 7 is completed, selecting corresponding resources from the resource pool to construct a resource tree corresponding to the service requirement, and supporting the direct dragging of the resource tree to adjust the resource structure and simultaneously supporting the addition and deletion of the resources.
And 9, supporting the quick copying of the resources of the selected resource set after the step 7 is completed and selecting other resource sets, and then carrying out resource adjustment to improve the resource set construction efficiency of certain similar service scenes.
And step 10, completing resource set configuration through the step 8 or the step 9, and completing the operation of a background resource management part.
(2) The front-end display part comprises the following operation steps:
And 11, packaging a resource data display assembly at the front end, wherein the main parameter is the resource set code in the step 7. After the component is called, the first part firstly calls the interface of the acquired data resource set at the back end, and the resource set code is entered in the step 7.
And step 12, the back end obtains corresponding data resources according to the resource set codes, encapsulates the corresponding data resources into tree structure data and returns the tree structure data to the front end.
And 13, displaying the data returned in the step 12 as a tree resource menu by the front end, displaying the corresponding child node type data by the selected child node, and displaying all the child node data of the node by traversing the selected leaf node.
Step 14, after the node is selected in step 13, calling an interface to obtain data according to the data request url and the data request parameter of the corresponding resource configured in step 2.
Step 15, after the data is obtained in step 14, the data display adapter is called to display the data, and the data display adapter performs data processing display according to the node data type of the corresponding resource configured in step 2. The types supported by the data display adapter are map layers, thermodynamic diagrams, aggregate diagrams, point data, line data and surface data. Meanwhile, the type expansion is supported, and more service scene presentations are satisfied.
And 16. The point, line and surface type data displayed in the step 15 also support click popup information display, and different popup information can be flexibly displayed through the point location data display template of the resource in the step 2. And meanwhile, point location icons and basic style configuration are supported.
Step 17. When the node is deselected in step 13, the corresponding data information on the hidden map is cleared.
FIG. 3 illustrates a framework diagram of a generic visual resource directory configuration system in accordance with one embodiment of the present invention. The system includes a data resource collection module 301, an attribute type categorization module 302, and a resource presentation module 303.
In a particular embodiment, the data resource centralization module 301 is configured to store resources in the visualization module into the same data resource pool;
The attribute type classifying module 302 is configured to classify and abstract attribute types of the resources according to commonalities of the same type data, thereby extracting a plurality of different types of attribute types, and optimally packaging the same attribute types;
the resource display module 303 is configured to configure a resource set according to the service of the visualization module, and extract and display the resources required by the service according to the resource set in combination with the attribute type after optimization encapsulation, and simultaneously, the operation and maintenance personnel adjust the resources required by the service in real time.
The system stores resources in a visualization module into the same data resource pool, classifies and abstracts attribute types of the resources according to commonalities of the same type data, thereby extracting a plurality of different types of attribute types, optimally packages the same attribute types, configures a resource set according to the service of the visualization module, extracts and displays the resources required by the service according to the resource set combined with the optimally packaged attribute types, and simultaneously, an operation and maintenance personnel adjusts the resources required by the service in real time. The system realizes friendly user interaction and open configurable projects, can avoid repeated development and maintenance of resources, reduces development cost, can rapidly and flexibly add and maintain the visualization module, transfers development work to the hands of operation and maintenance staff, greatly improves response efficiency, and can achieve the effect of completing the display of the new module by 0 development without new display resources. In addition, the system respectively and independently separates the resources and the service, concentrates all the resources into a large resource pool, and then rapidly selects and assembles the resources from the resource pool to display the needed resource set according to the needs, so that the resources can be utilized for multiple times, repeated development is avoided, and meanwhile, the developer can concentrate on the development of the resources, and the service personnel can concentrate on the management of the service.
It should be recognized that the design and configuration display of the resource pool provided by the invention can quickly construct different service scenes and can also quickly adjust the existing service scenes. Maintenance and adjustment can be performed through operation and maintenance personnel, research and development cost is greatly reduced, meanwhile, the system also reserves various database acquisition interfaces in the data acquisition process, and the front end display also reserves a data display expansion interface so as to meet more complex data acquisition and presentation requirements.
Referring now to FIG. 4, there is illustrated a schematic diagram of a computer system 400 suitable for use in implementing an electronic device of an embodiment of the present application. The electronic device shown in fig. 4 is only an example and should not be construed as limiting the functionality and scope of use of the embodiments of the application.
As shown in fig. 4, 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 section 408 into a Random Access Memory (RAM) 403. In RAM 403, various programs and data required for the operation of system 400 are also stored. The CPU 401, ROM 402, and RAM 403 are connected to each other by a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
Connected to the I/O interface 405 are an input section 406 including a keyboard, a mouse, and the like, an output section 407 including a Liquid Crystal Display (LCD) and the like and a speaker and the like, a storage section 408 including a hard disk and the like, and a communication section 409 including a network interface card such as a LAN card, a modem, and the like. The communication section 409 performs communication processing via a network such as the internet. The 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, or the like is installed on the drive 410 as needed, so that a computer program read therefrom is installed into the storage section 408 as needed.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable storage medium, the computer program comprising program code for performing the method shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion 409 and/or installed from the removable medium 411. The above-described functions defined in the method of the present application are performed when the computer program is executed by a Central Processing Unit (CPU) 401. The computer readable storage medium according to the present application may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of a computer-readable storage medium may include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present application, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable storage medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules involved in the embodiments of the present application may be implemented in software or in hardware. The units described may also be provided in a processor, and the names of these units do not in some case constitute a limitation of the unit itself.
Embodiments of the present application also relate to a computer readable storage medium having stored thereon a computer program which, when executed by a computer processor, implements the method as described above. The computer program contains program code for performing the method shown in the flow chart. 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 two.
The method comprises the steps of storing resources in a visualization module into a same data resource pool, classifying and abstracting attribute types of the resources according to commonalities of data of the same type, extracting a plurality of attribute types of different types, optimally packaging the same attribute types, configuring a resource set according to a service of the visualization module, extracting and displaying resources required by the service according to the resource set combined with the optimally packaged attribute types, and simultaneously carrying out real-time adjustment on the resources required by the service by operation and maintenance personnel. The invention realizes friendly user interaction and open configurable projects, can avoid repeated development and maintenance of resources, reduce development cost, simultaneously can rapidly and flexibly add and maintain the visualization module, transfer the development work to the hands of operation and maintenance personnel, greatly improve response efficiency, and can achieve the effect of completing the display of the new module by 0 development without new display resources. In addition, the invention respectively and independently separates the resources and the service, concentrates all the resources into a large resource pool, and then rapidly selects and assembles the resources from the resource pool to display the needed resource set according to the needs, so that the resources can be utilized for multiple times, repeated development is avoided, and simultaneously, the developer can concentrate on the development of the resources, and the service personnel can concentrate on the management of the service.
The above description is only illustrative of the preferred embodiments of the present application and of the principles of the technology employed. It will be appreciated by persons skilled in the art that the scope of the application referred to in the present application is not limited to the specific combinations of the technical features described above, but also covers other technical features formed by any combination of the technical features described above or their equivalents without departing from the inventive concept described above. Such as the above-mentioned features and the technical features disclosed in the present application (but not limited to) having similar functions are replaced with each other.

Claims (9)

1. The universal visual resource catalog configuration method is characterized by comprising the following steps of:
S1, storing resources in a visualization module into the same data resource pool;
S2, classifying and abstracting attribute types of the resources according to the commonality of the same type data, so as to extract a plurality of different attribute types, and optimally packaging the same attribute types;
S3, configuring a resource set according to the service of the visualization module, extracting, displaying and presenting the resources required by the service according to the resource set combined with the attribute type after optimization encapsulation, and simultaneously adjusting the resources required by the service in real time by operation and maintenance personnel;
the step executed at the back end of the visual resource system in S3 specifically includes:
b1, selecting one of the following operations according to the service of the visualization module, namely creating a new resource set and modifying the existing resource set, wherein the resource set comprises a resource set code and a resource set description;
B2, selecting needed resources from the data resource pool to construct a resource tree of a corresponding service, wherein the resource tree is used for directly dragging and adjusting a resource structure, adding resources and deleting resources;
And B3, if the existing resource set is selected to be modified in the B1, copying the resources in the resource set to be modified and adjusting the copied resources, wherein the adjustment comprises the step of analyzing the resource sets similar to the service scene so as to improve the construction efficiency of the resource sets similar to the service scene.
2. The method according to claim 1, wherein the steps performed at the backend of the visual resource system in S1 and S2 specifically comprise:
a1, adding new resources into the data resource pool;
A2, setting attribute types of the newly added resources, wherein the attribute types comprise id, father level node id, name, node type, node code, node data type, point location data display template, data request u rl, data request parameters, display field mapping, point location icon, point location pattern, whether total calculation and total node count;
A3, dividing the node type into leaf nodes and child nodes;
The child nodes are used for a hierarchical presentation directory, the child nodes comprising the id, the parent node id, the name and the node type, wherein the parent node id of a root node is 0;
the leaf node contains a portion of the attribute type other than the content contained by the child node;
A4, the data request url provides a query interface for querying the data stored in the mongo database, wherein the query interface comprises a general query interface and a query interface written according to specific requirements;
A5, inquiring the data stored in the mongo database, wherein the inquiring comprises performing field mapping according to the presentation field mapping;
and A6, if the specific attribute of the attribute type of whether the total number is calculated corresponding to the newly added resources is yes, calculating the total number of the newly added resources through a timing task and storing the total number into the total number of the nodes.
3. The method of claim 2, wherein the timing tasks comprise dynamically setting a timing interval for a task.
4. The method according to claim 2, wherein the step in S3 performed at the front end of the visual resource system specifically comprises:
the data in the resource set is used as parameters for packaging a display assembly, and the display assembly displays the resources required by the service;
When the display component is called, using the data in the resource set as an access parameter to call a back end so as to acquire a resource set interface;
the back end acquires the resources required by the service according to the data in the resource set, encapsulates the resources required by the service into tree structure data and returns the tree structure data to the front end;
The front end displays the tree structure data in the form of a tree resource menu, wherein the display of the data in the corresponding leaf nodes is performed when the leaf nodes are selected, and all the child node data in the child nodes are traversed and displayed when the child nodes are selected;
calling a corresponding interface according to the data request u rl corresponding to the resources required by the service and the data request parameters so as to acquire data requested by the data request u rl;
And calling a data display adapter, wherein 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 of claim 4, wherein the data types supported by the data presentation adapter include map layers, thermodynamic diagrams, aggregate diagrams, point data, line data, face data, and other types of expanded data.
6. The method according to claim 4, wherein said processing and displaying according to said node data type in said acquired data comprises:
Displaying by clicking popup information;
Displaying different popup window information through the point location data display template;
And configuring the point location icon and the basic style.
7. The method of claim 4, wherein the selected leaf node and child node are removed after presentation is completed and corresponding data information on the hidden map is cleared.
8. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a computer processor, implements the method of any of claims 1 to 7.
9. A universal visual resource directory configuration system, comprising:
the data resource centralizing module is configured to store the resources in the visualization module into the same data resource pool;
The attribute type classifying module is configured to classify and abstract the attribute types of the resources according to the commonality of the data of the same type, so as to extract a plurality of attribute types of different types, and then optimally package the same attribute types;
The resource display module is configured to configure a resource set according to the service of the visualization module, extract and display resources required by the service according to the resource set combined with the attribute type after optimization encapsulation, and adjust the resources required by the service in real time by operation and maintenance personnel;
The method specifically comprises the steps of B1 selecting one of a new resource set and an existing resource set to be modified according to the service of the visualization module, wherein the resource set comprises a resource set code and a resource set description, B2 selecting required resources from the data resource pool to construct a resource tree of a corresponding service, wherein the resource tree is used for directly dragging and adjusting a resource structure, adding resources and deleting resources, and B3 selecting to modify the existing resource set if the resource set B1 is selected, copying the resources in the resource set to be modified and adjusting the copied resources, wherein the adjustment comprises the steps of analyzing the resource set with similar service scenes so as to improve the construction efficiency of the resource set with similar service scenes.
CN202111522856.1A 2021-12-13 2021-12-13 A universal visual resource directory configuration method and system Active CN114217842B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111522856.1A CN114217842B (en) 2021-12-13 2021-12-13 A universal visual resource directory configuration method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111522856.1A CN114217842B (en) 2021-12-13 2021-12-13 A universal visual resource directory configuration method and system

Publications (2)

Publication Number Publication Date
CN114217842A CN114217842A (en) 2022-03-22
CN114217842B true CN114217842B (en) 2025-02-11

Family

ID=80701755

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111522856.1A Active CN114217842B (en) 2021-12-13 2021-12-13 A universal visual resource directory configuration method and system

Country Status (1)

Country Link
CN (1) CN114217842B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115438006A (en) * 2022-08-15 2022-12-06 赞同科技股份有限公司 Resource market middle layer implementation method and device, electronic equipment and storage medium
CN119646299B (en) * 2024-11-26 2025-09-16 北京百度网讯科技有限公司 Data management method and device, electronic device, and computer-readable storage medium
CN119697421A (en) * 2025-02-27 2025-03-25 杭州阿启视科技有限公司 Channel display method of domain resource organization tree nodes based on video big data cloud platform

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109388791A (en) * 2018-09-28 2019-02-26 中国平安财产保险股份有限公司 Chart Dynamic Display method, apparatus, computer equipment and storage medium
CN109388462A (en) * 2018-09-28 2019-02-26 中国平安财产保险股份有限公司 Report sharing method, device, computer equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10089082B2 (en) * 2017-01-31 2018-10-02 Stackery, Inc. Visual devops systems and methods
CN112866333B (en) * 2020-12-28 2023-03-24 上海领健信息技术有限公司 Cloud-native-based micro-service scene optimization method, system, device and medium
CN113448726B (en) * 2021-05-28 2022-11-04 山东英信计算机技术有限公司 Resource scheduling method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109388791A (en) * 2018-09-28 2019-02-26 中国平安财产保险股份有限公司 Chart Dynamic Display method, apparatus, computer equipment and storage medium
CN109388462A (en) * 2018-09-28 2019-02-26 中国平安财产保险股份有限公司 Report sharing method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN114217842A (en) 2022-03-22

Similar Documents

Publication Publication Date Title
US11611493B2 (en) Displaying interactive topology maps of cloud computing resources
US12003572B1 (en) Two-way replication of search node configuration files using a mediator node
CN114217842B (en) A universal visual resource directory configuration method and system
US10809881B2 (en) Visual graph construction from relational data
US10693743B2 (en) Displaying interactive topology maps of cloud computing resources
CN111339071B (en) Method and device for processing multi-source heterogeneous data
US20180246942A1 (en) Schedule modification of data collection requests sent to external data sources
US20110283194A1 (en) Deploying artifacts for packaged software application in cloud computing environment
US12159104B2 (en) Describing changes in a workflow based on changes in structured documents containing workflow metadata
US11860832B2 (en) Custom columns for static logical models
CN111159207B (en) Information processing method and device
US11055925B1 (en) Techniques for placement of extended reality objects relative to physical objects in an extended reality environment
CN114742981A (en) Post-processing special effect manufacturing system and method, AR special effect rendering method and device
CN113220381A (en) Click data display method and device
CN115033634B (en) Data collection method, device, electronic device and medium
CN113704593B (en) Operation data processing method and related device
CN112486991B (en) Database report processing method and device and electronic equipment
CN118113275A (en) Back-end low-code development methods, devices, equipment and media
US9727391B2 (en) Method for performing task on unified information units in a personal workspace
KR102731020B1 (en) Method for managing multi cloud and electronic device
KR102700192B1 (en) Method for managing multi cloud and electronic device
KR102751954B1 (en) Method for managing multi cloud and electronic device
CN118170281A (en) Information interaction method, device and electronic device
KR20230160048A (en) Method for managing multi cloud and electronic device
CN119226366A (en) Information display method, device, electronic device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant