Front-end rapid building method and system for training management system
Patent Information
- Application Number
- CN202410977850.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-20
- Publication Date
- 2024-11-22
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing technology cannot quickly build the front-end page of the training management system, resulting in low efficiency in personnel training management, high development costs, and frequent changes in page requirements require a large amount of manpower to develop and deploy.
By obtaining the data source type and characteristic value of the data to be configured, establishing the main communication node and establishing the slave communication node according to its number, generating the configuration file of the front-end page, determining the association relationship between the data and the configuration file, and using the Web microservice platform The front-end development framework creates a front-end development environment for training management systems.
It has realized the rapid construction of the front-end page of the training management system, improved the efficiency of training management, reduced development costs and modification and debugging risks, and improved the efficiency of temporary page development.
Smart Images

Figure CN119002909A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Internet technology, and in particular to a front-end rapid construction method and system for a training management system. Background Art
[0002] The front end is the front part of the website, which runs on browsers such as PCs and mobile terminals to display web pages for users to browse. With the development of Internet technology, the application of HTML5, CSS3, and front-end frameworks, cross-platform responsive web design can adapt to various screen resolutions, and appropriate dynamic design can bring users a very high user experience. In the operation of power plants, sometimes power plants need to conduct some training management to conduct centralized training for personnel and improve their business capabilities. At this time, these front-end pages need to be generated quickly.
[0003] Some of the existing front-end pages are quickly produced mainly through temporary development and construction by developers, or tools that generate pages based on prototypes, or the development of relatively complex visual construction systems. However, due to the frequent changes in the requirements of such pages, a large amount of manpower is required to develop active pages; many pages have similar structures and are highly reusable, but most existing technologies lack such a reuse mechanism, and the development, launch, and deployment processes are repetitive and inflexible, and the development investment cost is too high.
[0004] Therefore, how to provide a method and system for quickly building a front end for a training management system is a technical problem that needs to be solved. Summary of the invention
[0005] The embodiment of the present invention provides a method and system for quickly building a front end for a training management system, so as to solve the technical problem in the prior art that a front end page for a training management system cannot be quickly built and the efficiency of personnel training management cannot be improved.
[0006] In order to achieve the above object, the present invention provides a method for quickly building a front end for a training management system, the method comprising: Acquire the data to be configured, acquire the parameters to be configured according to the data source type of the data to be configured, and save the parameters to be configured, wherein the parameters to be configured include the data size of the data to be configured and the first characteristic value of the data to be configured; Establishing a master communication node according to the parameters to be configured, and establishing corresponding slave communication nodes based on the number of established master communication nodes; When the master communication node and the slave communication node successfully establish a communication connection, a configuration file corresponding to the front-end page is generated; Determine the association relationship between the data to be configured and the configuration file, and create a front-end development environment for a training management system through a front-end development framework based on a Web microservice platform.
[0007] In one of the embodiments, before establishing the master communication node according to the parameters to be configured, the method further includes: Receive a first eigenvalue of the data to be configured, the first eigenvalue includes D*W*H eigenvectors, where D represents dimension, W represents width, H represents height, and D, W, and H are all positive integers; The W*H eigenvectors of the i-th dimension of the first eigenvalue are used as the first operation values, and each row of the eigenvectors of the first operation value is fast Fourier transformed to obtain W*H first result values, and each column of the first result is fast Fourier transformed to obtain H*W second result values, where 1≤i≤D.
[0008] In one of the embodiments, when establishing a master communication node according to the parameters to be configured, the process includes: Setting the number of the primary communication nodes to be established according to the data size A of the data to be configured; The number of established master communication nodes is corrected according to the second result value H*W, and the master communication nodes are established according to the corrected number of established master communication nodes.
[0009] In one of the embodiments, when setting the number of the primary communication nodes to be established according to the data size A of the data to be configured, it includes: Preset a data size matrix B of the data to be configured, set B (B1, B2, B3, B4), where B1 is a first preset data size, B2 is a second preset data size, B3 is a third preset data size, B4 is a fourth preset data size, and B1 < B2 < B3 < B4; A preset establishment number matrix C of the master communication nodes is set as C (C1, C2, C3, C4, C5), wherein C1 is a first preset establishment number, C2 is a second preset establishment number, C3 is a third preset establishment number, C4 is a fourth preset establishment number, C5 is a fifth preset establishment number, and C1<C2<C3<C4<C5; The number of the master communication nodes to be established is set according to the relationship between the data size A of the data to be configured and the preset data sizes: When A<B1, the first preset data size C1 is selected as the establishment number of the main communication node; When B1≤A<B2, the second preset data size C2 is selected as the establishment number of the main communication node; When B2≤A<B3, the third preset data size C3 is selected as the establishment number of the main communication node; When B3≤A<B4, the fourth preset data size C4 is selected as the establishment number of the main communication node; When B4≤A, the fifth preset data size C5 is selected as the establishment number of the master communication node.
[0010] In one embodiment, when the establishment number of the primary communication nodes is corrected according to the second result value H*W, it includes: Preset the second result value matrix G, set G (G1, G2, G3, G4), where G1 is the first preset second result value, G2 is the second preset second result value, G3 is the third preset second result value, G4 is the fourth preset second result value, and G1<G2<G3<G4; A preset establishment number correction coefficient matrix h of the master communication node is set to h (h1, h2, h3, h4, h5), wherein h1 is a first preset establishment number correction coefficient, h2 is a second preset establishment number correction coefficient, h3 is a third preset establishment number correction coefficient, h4 is a fourth preset establishment number correction coefficient, h5 is a fifth preset establishment number correction coefficient, and 0.8 When the establishment number of the main communication node is set to the i-th preset establishment number Ci, i=1, 2, 3, 4, 5, the establishment number of the main communication node is corrected according to the relationship between the second result value H*W and each preset second result value: When H*W<G1, the first preset establishment number correction coefficient h1 is selected to correct the i-th preset establishment number Ci, and the corrected establishment number of the main communication node is Ci*h1; When G1≤H*W<G2, the second preset establishment number correction coefficient h2 is selected to correct the i-th preset establishment number Ci, and the corrected establishment number of the main communication node is Ci*h2; When G2≤H*W<G3, the third preset establishment number correction coefficient h3 is selected to correct the i-th preset establishment number Ci, and the corrected establishment number of the main communication node is Ci*h3; When G3≤H*W<G4, the fourth preset establishment number correction coefficient h4 is selected to correct the i-th preset establishment number Ci, and the corrected establishment number of the main communication node is Ci*h4; When G4≤H*W, the fifth preset establishment quantity correction coefficient h5 is selected to correct the i-th preset establishment quantity Ci, and the corrected establishment quantity of the main communication node is Ci*h5.
[0011] In order to achieve the above object, the present invention provides a front-end rapid construction system for a training management system, the system comprising: an acquisition module, used to acquire data to be configured, acquire parameters to be configured according to a data source type of the data to be configured, and save the parameters to be configured, wherein the parameters to be configured include a data size of the data to be configured and a first characteristic value of the data to be configured; An establishment module, used to establish a master communication node according to the parameters to be configured, and to establish a corresponding slave communication node based on the establishment number of the master communication node; A generating module, used for generating a configuration file corresponding to a front-end page after the master communication node and the slave communication node successfully establish a communication connection; A building module is used to determine the association relationship between the data to be configured and the configuration file, and to create a front-end development environment for a training management system through a front-end development framework based on a Web microservice platform.
[0012] In one embodiment, the establishment module is specifically used to: The establishment module is used to receive the first eigenvalue of the data to be configured, the first eigenvalue includes D*W*H eigenvectors, where D represents the dimension, W represents the width, H represents the height, and D, W, and H are all positive integers; The establishment module is used to use the W*H eigenvectors of the i-th dimension of the first eigenvalue as the first operation value, and perform a fast Fourier transform on each row of the eigenvector of the first operation value to obtain W*H first result values, and perform a fast Fourier transform on each column of the first result to obtain H*W second result values, where 1≤i≤D.
[0013] In one embodiment, the establishment module is specifically used to: The establishment module is used to set the establishment quantity of the main communication node according to the data size A of the data to be configured; The establishing module is used to correct the establishment number of the main communication nodes according to the second result value H*W, and establish the main communication nodes according to the corrected establishment number of the main communication nodes.
[0014] In one embodiment, the establishment module is specifically used to: The establishment module is used to preset a data size matrix B of the data to be configured, and set B (B1, B2, B3, B4), wherein B1 is a first preset data size, B2 is a second preset data size, B3 is a third preset data size, B4 is a fourth preset data size, and B1<B2<B3<B4; The establishment module is used to preset the establishment number matrix C of the main communication node, and set C (C1, C2, C3, C4, C5), wherein C1 is the first preset establishment number, C2 is the second preset establishment number, C3 is the third preset establishment number, C4 is the fourth preset establishment number, C5 is the fifth preset establishment number, and C1<C2<C3<C4<C5; The establishment module is used to set the establishment quantity of the main communication node according to the relationship between the data size A of the data to be configured and the preset data sizes: When A<B1, the first preset data size C1 is selected as the establishment number of the main communication node; When B1≤A<B2, the second preset data size C2 is selected as the establishment number of the main communication node; When B2≤A<B3, the third preset data size C3 is selected as the establishment number of the main communication node; When B3≤A<B4, the fourth preset data size C4 is selected as the establishment number of the main communication node; When B4≤A, the fifth preset data size C5 is selected as the establishment number of the master communication node.
[0015] In one embodiment, the establishment module is specifically used to: The establishment module is used to preset the second result value matrix G, set G (G1, G2, G3, G4), wherein G1 is the first preset second result value, G2 is the second preset second result value, G3 is the third preset second result value, G4 is the fourth preset second result value, and G1<G2<G3<G4; The establishment module is used to preset the establishment number correction coefficient matrix h of the main communication node, and set h (h1, h2, h3, h4, h5), wherein h1 is a first preset establishment number correction coefficient, h2 is a second preset establishment number correction coefficient, h3 is a third preset establishment number correction coefficient, h4 is a fourth preset establishment number correction coefficient, h5 is a fifth preset establishment number correction coefficient, and 0.8 The establishment module is used to correct the establishment number of the main communication node according to the relationship between the second result value H*W and each preset second result value when the establishment number of the main communication node is set to the i-th preset establishment number Ci, i=1, 2, 3, 4, 5: When H*W<G1, the first preset establishment number correction coefficient h1 is selected to correct the i-th preset establishment number Ci, and the corrected establishment number of the main communication node is Ci*h1; When G1≤H*W<G2, the second preset establishment number correction coefficient h2 is selected to correct the i-th preset establishment number Ci, and the corrected establishment number of the main communication node is Ci*h2; When G2≤H*W<G3, the third preset establishment number correction coefficient h3 is selected to correct the i-th preset establishment number Ci, and the corrected establishment number of the main communication node is Ci*h3; When G3≤H*W<G4, the fourth preset establishment number correction coefficient h4 is selected to correct the i-th preset establishment number Ci, and the corrected establishment number of the main communication node is Ci*h4; When G4≤H*W, the fifth preset establishment quantity correction coefficient h5 is selected to correct the i-th preset establishment quantity Ci, and the corrected establishment quantity of the main communication node is Ci*h5.
[0016] The present invention provides a method and system for quickly building a front-end for a training management system, which has the following beneficial effects compared with the prior art: The invention discloses a method and system for quickly building a front end for a training management system. According to the data source type of data to be configured, parameters to be configured are obtained, the parameters to be configured include the data size of the data to be configured and the first characteristic value of the data to be configured. A main communication node is established according to the parameters to be configured, and a corresponding slave communication node is established based on the number of established main communication nodes. When the main communication node and the slave communication node successfully establish a communication connection, a configuration file corresponding to a front-end page is generated, the association relationship between the data to be configured and the configuration file is determined, and a front-end development environment for a training management system is created through a front-end development framework of a Web microservice platform. The invention can quickly build a front-end page for a training management system, improve the efficiency of personnel training management, improve the efficiency of temporary page development, reduce development costs, and reduce the risk of developing and modifying debugging files. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 A schematic diagram of a process for quickly building a front-end for a training management system in an embodiment of the present invention is shown; Figure 2 A structural schematic diagram of a front-end rapid construction system for a training management system in an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0018] The specific implementation of the present invention is further described in detail below in conjunction with the accompanying drawings and examples. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.
[0019] In the description of the present application, it should be understood that the terms "center", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.
[0020] The terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, unless otherwise specified, "plurality" means two or more.
[0021] In the description of this application, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0022] The following is a description of preferred embodiments of the present invention with reference to the accompanying drawings.
[0023] like Figure 1 As shown, an embodiment of the present invention discloses a method for quickly building a front end for a training management system, the method comprising: S110: Acquire data to be configured, acquire parameters to be configured according to a data source type of the data to be configured, and save the parameters to be configured, wherein the parameters to be configured include a data size of the data to be configured and a first characteristic value of the data to be configured; In this embodiment, the data to be configured refers to data required for training management.
[0024] S120: Establishing a master communication node according to the parameters to be configured, and establishing corresponding slave communication nodes based on the number of established master communication nodes; In some embodiments of the present application, before establishing the master communication node according to the parameters to be configured, the method further includes: Receive a first eigenvalue of the data to be configured, the first eigenvalue includes D*W*H eigenvectors, where D represents dimension, W represents width, H represents height, and D, W, and H are all positive integers; The W*H eigenvectors of the i-th dimension of the first eigenvalue are used as the first operation values, and each row of the eigenvectors of the first operation value is fast Fourier transformed to obtain W*H first result values, and each column of the first result is fast Fourier transformed to obtain H*W second result values, where 1≤i≤D.
[0025] In this embodiment, the width W of the first eigenvalue may be 8, 6, 9, etc., and the height H of the first eigenvalue may be 4, 6, 8, 12, etc., which are not shown one by one here.
[0026] The beneficial effect of the above technical features is that the present invention can facilitate subsequent operations and effectively improve the operation efficiency by calculating the second result value corresponding to the first eigenvalue.
[0027] In some embodiments of the present application, when establishing a master communication node according to the parameters to be configured, the process includes: Setting the number of the primary communication nodes to be established according to the data size A of the data to be configured; The number of established master communication nodes is corrected according to the second result value H*W, and the master communication nodes are established according to the corrected number of established master communication nodes.
[0028] Specifically, when the number of the primary communication nodes to be established is set according to the data size A of the data to be configured, it includes: Preset a data size matrix B of the data to be configured, set B (B1, B2, B3, B4), where B1 is a first preset data size, B2 is a second preset data size, B3 is a third preset data size, B4 is a fourth preset data size, and B1 < B2 < B3 < B4; A preset establishment number matrix C of the master communication nodes is set as C (C1, C2, C3, C4, C5), wherein C1 is a first preset establishment number, C2 is a second preset establishment number, C3 is a third preset establishment number, C4 is a fourth preset establishment number, C5 is a fifth preset establishment number, and C1<C2<C3<C4<C5; The number of the master communication nodes to be established is set according to the relationship between the data size A of the data to be configured and the preset data sizes: When A<B1, the first preset data size C1 is selected as the establishment number of the main communication node; When B1≤A<B2, the second preset data size C2 is selected as the establishment number of the main communication node; When B2≤A<B3, the third preset data size C3 is selected as the establishment number of the main communication node; When B3≤A<B4, the fourth preset data size C4 is selected as the establishment number of the main communication node; When B4≤A, the fifth preset data size C5 is selected as the establishment number of the master communication node.
[0029] The beneficial effect of the above technical solution is that: the present invention sets the number of main communication nodes to be established according to the relationship between the data size A of the data to be configured and the preset data sizes, which can ensure the accuracy of the construction of the front-end page and improve the construction efficiency.
[0030] Specifically, when the establishment number of the primary communication nodes is corrected according to the second result value H*W, it includes: Preset the second result value matrix G, set G (G1, G2, G3, G4), where G1 is the first preset second result value, G2 is the second preset second result value, G3 is the third preset second result value, G4 is the fourth preset second result value, and G1<G2<G3<G4; A preset establishment number correction coefficient matrix h of the master communication node is set to h (h1, h2, h3, h4, h5), wherein h1 is a first preset establishment number correction coefficient, h2 is a second preset establishment number correction coefficient, h3 is a third preset establishment number correction coefficient, h4 is a fourth preset establishment number correction coefficient, h5 is a fifth preset establishment number correction coefficient, and 0.8 When the establishment number of the main communication node is set to the i-th preset establishment number Ci, i=1, 2, 3, 4, 5, the establishment number of the main communication node is corrected according to the relationship between the second result value H*W and each preset second result value: When H*W<G1, the first preset establishment number correction coefficient h1 is selected to correct the i-th preset establishment number Ci, and the corrected establishment number of the main communication node is Ci*h1; When G1≤H*W<G2, the second preset establishment number correction coefficient h2 is selected to correct the i-th preset establishment number Ci, and the corrected establishment number of the main communication node is Ci*h2; When G2≤H*W<G3, the third preset establishment number correction coefficient h3 is selected to correct the i-th preset establishment number Ci, and the corrected establishment number of the main communication node is Ci*h3; When G3≤H*W<G4, the fourth preset establishment number correction coefficient h4 is selected to correct the i-th preset establishment number Ci, and the corrected establishment number of the main communication node is Ci*h4; When G4≤H*W, the fifth preset establishment quantity correction coefficient h5 is selected to correct the i-th preset establishment quantity Ci, and the corrected establishment quantity of the main communication node is Ci*h5.
[0031] The beneficial effect of the above technical solution is: when the present invention sets the number of main communication nodes to be established to the i-th preset number of establishment Ci, i=1, 2, 3, 4, 5, the number of main communication nodes to be established is corrected according to the relationship between the second result value H*W and each preset second result value, which can further ensure the accuracy of front-end page construction, improve personnel training management efficiency, improve temporary page development efficiency, reduce development costs, and reduce the risks of developing and modifying debugging files.
[0032] S130: When the master communication node and the slave communication node successfully establish a communication connection, generate a configuration file corresponding to the front-end page; In this embodiment, the configuration file includes a query panel element, a table element, a form element, a detail sheet element, a training rule element, and the like.
[0033] S140: Determine the association relationship between the data to be configured and the configuration file, and create a front-end development environment for a training management system through a front-end development framework based on a Web microservice platform.
[0034] In order to further explain the technical idea of the present invention, the technical solution of the present invention is now described in combination with specific application scenarios.
[0035] Correspondingly, such as Figure 2 As shown, the present application also provides a front-end rapid construction system for a training management system, the system comprising: an acquisition module, used to acquire data to be configured, acquire parameters to be configured according to a data source type of the data to be configured, and save the parameters to be configured, wherein the parameters to be configured include a data size of the data to be configured and a first characteristic value of the data to be configured; An establishment module, used to establish a master communication node according to the parameters to be configured, and to establish a corresponding slave communication node based on the establishment number of the master communication node; A generating module, used for generating a configuration file corresponding to a front-end page after the master communication node and the slave communication node successfully establish a communication connection; A building module is used to determine the association relationship between the data to be configured and the configuration file, and to create a front-end development environment for a training management system through a front-end development framework based on a Web microservice platform.
[0036] In some embodiments of the present application, the establishment module is specifically used to: The establishment module is used to receive the first eigenvalue of the data to be configured, the first eigenvalue includes D*W*H eigenvectors, where D represents the dimension, W represents the width, H represents the height, and D, W, and H are all positive integers; The establishment module is used to use the W*H eigenvectors of the i-th dimension of the first eigenvalue as the first operation value, and perform a fast Fourier transform on each row of the eigenvector of the first operation value to obtain W*H first result values, and perform a fast Fourier transform on each column of the first result to obtain H*W second result values, where 1≤i≤D.
[0037] In some embodiments of the present application, the establishment module is specifically used to: The establishment module is used to set the establishment quantity of the main communication node according to the data size A of the data to be configured; The establishing module is used to correct the establishment number of the main communication nodes according to the second result value H*W, and establish the main communication nodes according to the corrected establishment number of the main communication nodes.
[0038] In some embodiments of the present application, the establishment module is specifically used to: The establishment module is used to preset a data size matrix B of the data to be configured, and set B (B1, B2, B3, B4), wherein B1 is a first preset data size, B2 is a second preset data size, B3 is a third preset data size, B4 is a fourth preset data size, and B1<B2<B3<B4; The establishment module is used to preset the establishment number matrix C of the main communication node, and set C (C1, C2, C3, C4, C5), wherein C1 is the first preset establishment number, C2 is the second preset establishment number, C3 is the third preset establishment number, C4 is the fourth preset establishment number, C5 is the fifth preset establishment number, and C1<C2<C3<C4<C5; The establishment module is used to set the establishment quantity of the main communication node according to the relationship between the data size A of the data to be configured and the preset data sizes: When A<B1, the first preset data size C1 is selected as the establishment number of the main communication node; When B1≤A<B2, the second preset data size C2 is selected as the establishment number of the main communication node; When B2≤A<B3, the third preset data size C3 is selected as the establishment number of the main communication node; When B3≤A<B4, the fourth preset data size C4 is selected as the establishment number of the main communication node; When B4≤A, the fifth preset data size C5 is selected as the establishment number of the master communication node.
[0039] In some embodiments of the present application, the establishment module is specifically used to: The establishment module is used to preset the second result value matrix G, set G (G1, G2, G3, G4), wherein G1 is the first preset second result value, G2 is the second preset second result value, G3 is the third preset second result value, G4 is the fourth preset second result value, and G1<G2<G3<G4; The establishment module is used to preset the establishment number correction coefficient matrix h of the main communication node, and set h (h1, h2, h3, h4, h5), wherein h1 is a first preset establishment number correction coefficient, h2 is a second preset establishment number correction coefficient, h3 is a third preset establishment number correction coefficient, h4 is a fourth preset establishment number correction coefficient, h5 is a fifth preset establishment number correction coefficient, and 0.8 The establishment module is used to correct the establishment number of the main communication node according to the relationship between the second result value H*W and each preset second result value when the establishment number of the main communication node is set to the i-th preset establishment number Ci, i=1, 2, 3, 4, 5: When H*W<G1, the first preset establishment number correction coefficient h1 is selected to correct the i-th preset establishment number Ci, and the corrected establishment number of the main communication node is Ci*h1; When G1≤H*W<G2, the second preset establishment number correction coefficient h2 is selected to correct the i-th preset establishment number Ci, and the corrected establishment number of the main communication node is Ci*h2; When G2≤H*W<G3, the third preset establishment number correction coefficient h3 is selected to correct the i-th preset establishment number Ci, and the corrected establishment number of the main communication node is Ci*h3; When G3≤H*W<G4, the fourth preset establishment number correction coefficient h4 is selected to correct the i-th preset establishment number Ci, and the corrected establishment number of the main communication node is Ci*h4; When G4≤H*W, the fifth preset establishment quantity correction coefficient h5 is selected to correct the i-th preset establishment quantity Ci, and the corrected establishment quantity of the main communication node is Ci*h5.
[0040] In the description of the above embodiments, specific features, structures, materials or characteristics may be combined in a suitable manner in any one or more embodiments or examples.
[0041] Although the present invention has been described above with reference to the embodiments, various modifications may be made thereto and parts thereof may be replaced with equivalents without departing from the scope of the present invention. In particular, as long as there is no structural conflict, the various features in the embodiments disclosed by the present invention may be used in combination with each other in any manner, and the fact that these combinations are not fully described in this specification is only for the sake of omitting space and saving resources. Therefore, the present invention is not limited to the specific embodiments disclosed herein, but includes all technical solutions falling within the scope of the claims.
[0042] Those skilled in the art can understand that the above are only preferred embodiments of the present invention and are not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions recorded in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for quickly building a front-end for a training management system, characterized in that: The method comprises: Acquire the data to be configured, acquire the parameters to be configured according to the data source type of the data to be configured, and save the parameters to be configured, wherein the parameters to be configured include the data size of the data to be configured and the first characteristic value of the data to be configured; Establishing a master communication node according to the parameters to be configured, and establishing corresponding slave communication nodes based on the number of established master communication nodes; When the master communication node and the slave communication node successfully establish a communication connection, a configuration file corresponding to the front-end page is generated; Determine the association relationship between the data to be configured and the configuration file, and create a front-end development environment for a training management system through a front-end development framework based on a Web microservice platform.
2. The method for quickly building a front-end for a training management system according to claim 1, characterized in that: Before establishing the master communication node according to the parameters to be configured, the method further includes: Receive a first eigenvalue of the data to be configured, the first eigenvalue includes D*W*H eigenvectors, where D represents dimension, W represents width, H represents height, and D, W, and H are all positive integers; The W*H eigenvectors of the i-th dimension of the first eigenvalue are used as the first operation values, and each row of the eigenvectors of the first operation value is fast Fourier transformed to obtain W*H first result values, and each column of the first result is fast Fourier transformed to obtain H*W second result values, where 1≤i≤D.
3. The method for quickly building a front-end for a training management system according to claim 3 is characterized in that: When the master communication node is established according to the parameters to be configured, it includes: Setting the number of the primary communication nodes to be established according to the data size A of the data to be configured; The number of established master communication nodes is corrected according to the second result value H*W, and the master communication nodes are established according to the corrected number of established master communication nodes.
4. The method for quickly building a front-end for a training management system according to claim 3 is characterized in that: When the number of the primary communication nodes to be established is set according to the data size A of the data to be configured, it includes: Preset a data size matrix B of the data to be configured, set B (B1, B2, B3, B4), where B1 is a first preset data size, B2 is a second preset data size, B3 is a third preset data size, B4 is a fourth preset data size, and B1 < B2 < B3 < B4; A preset establishment number matrix C of the master communication nodes is set as C (C1, C2, C3, C4, C5), wherein C1 is a first preset establishment number, C2 is a second preset establishment number, C3 is a third preset establishment number, C4 is a fourth preset establishment number, C5 is a fifth preset establishment number, and C1<C2<C3<C4<C5; The number of the master communication nodes to be established is set according to the relationship between the data size A of the data to be configured and the preset data sizes: When A<B1, the first preset data size C1 is selected as the establishment number of the main communication node; When B1≤A<B2, the second preset data size C2 is selected as the establishment number of the main communication node; When B2≤A<B3, the third preset data size C3 is selected as the establishment number of the main communication node; When B3≤A<B4, the fourth preset data size C4 is selected as the establishment number of the main communication node; When B4≤A, the fifth preset data size C5 is selected as the establishment number of the master communication node.
5. The method for quickly building a front-end for a training management system according to claim 4, characterized in that: When the establishment number of the primary communication nodes is corrected according to the second result value H*W, it includes: Preset the second result value matrix G, set G (G1, G2, G3, G4), where G1 is the first preset second result value, G2 is the second preset second result value, G3 is the third preset second result value, G4 is the fourth preset second result value, and G1<G2<G3<G4; A preset establishment number correction coefficient matrix h of the master communication node is set to h (h1, h2, h3, h4, h5), wherein h1 is a first preset establishment number correction coefficient, h2 is a second preset establishment number correction coefficient, h3 is a third preset establishment number correction coefficient, h4 is a fourth preset establishment number correction coefficient, h5 is a fifth preset establishment number correction coefficient, and 0.8<h1<h2<h3<h4<h5<1.2; When the establishment number of the main communication node is set to the i-th preset establishment number Ci, i=1, 2, 3, 4, 5, the establishment number of the main communication node is corrected according to the relationship between the second result value H*W and each preset second result value: When H*W<G1, the first preset establishment number correction coefficient h1 is selected to correct the i-th preset establishment number Ci, and the corrected establishment number of the main communication node is Ci*h1; When G1≤H*W<G2, the second preset establishment number correction coefficient h2 is selected to correct the i-th preset establishment number Ci, and the corrected establishment number of the main communication node is Ci*h2; When G2≤H*W<G3, the third preset establishment number correction coefficient h3 is selected to correct the i-th preset establishment number Ci, and the corrected establishment number of the main communication node is Ci*h3; When G3≤H*W<G4, the fourth preset establishment number correction coefficient h4 is selected to correct the i-th preset establishment number Ci, and the corrected establishment number of the main communication node is Ci*h4; When G4≤H*W, the fifth preset establishment quantity correction coefficient h5 is selected to correct the i-th preset establishment quantity Ci, and the corrected establishment quantity of the main communication node is Ci*h5.
6. A front-end rapid construction system for a training management system, characterized in that: The system comprises: an acquisition module, used to acquire data to be configured, acquire parameters to be configured according to a data source type of the data to be configured, and save the parameters to be configured, wherein the parameters to be configured include a data size of the data to be configured and a first characteristic value of the data to be configured; An establishment module, used to establish a master communication node according to the parameters to be configured, and to establish a corresponding slave communication node based on the establishment number of the master communication node; A generating module, used for generating a configuration file corresponding to a front-end page after the master communication node and the slave communication node successfully establish a communication connection; A building module is used to determine the association relationship between the data to be configured and the configuration file, and to create a front-end development environment for a training management system through a front-end development framework based on a Web microservice platform.
7. The front-end rapid construction system for a training management system according to claim 6, characterized in that: The establishment module is specifically used for: The establishment module is used to receive the first eigenvalue of the data to be configured, the first eigenvalue includes D*W*H eigenvectors, where D represents the dimension, W represents the width, H represents the height, and D, W, and H are all positive integers; The establishment module is used to use the W*H eigenvectors of the i-th dimension of the first eigenvalue as the first operation value, and perform a fast Fourier transform on each row of the eigenvector of the first operation value to obtain W*H first result values, and perform a fast Fourier transform on each column of the first result to obtain H*W second result values, where 1≤i≤D.
8. The front-end rapid construction system for a training management system according to claim 7, characterized in that: The establishment module is specifically used for: The establishment module is used to set the establishment quantity of the main communication node according to the data size A of the data to be configured; The establishing module is used to correct the establishment number of the main communication nodes according to the second result value H*W, and establish the main communication nodes according to the corrected establishment number of the main communication nodes.
9. The front-end rapid construction system for a training management system according to claim 8, characterized in that: The establishment module is specifically used for: The establishment module is used to preset a data size matrix B of the data to be configured, and set B (B1, B2, B3, B4), wherein B1 is a first preset data size, B2 is a second preset data size, B3 is a third preset data size, B4 is a fourth preset data size, and B1<B2<B3<B4; The establishment module is used to preset the establishment number matrix C of the main communication node, and set C (C1, C2, C3, C4, C5), wherein C1 is the first preset establishment number, C2 is the second preset establishment number, C3 is the third preset establishment number, C4 is the fourth preset establishment number, C5 is the fifth preset establishment number, and C1<C2<C3<C4<C5; The establishment module is used to set the establishment quantity of the main communication node according to the relationship between the data size A of the data to be configured and the preset data sizes: When A<B1, the first preset data size C1 is selected as the establishment number of the main communication node; When B1≤A<B2, the second preset data size C2 is selected as the establishment number of the main communication node; When B2≤A<B3, the third preset data size C3 is selected as the establishment number of the main communication node; When B3≤A<B4, the fourth preset data size C4 is selected as the establishment number of the main communication node; When B4≤A, the fifth preset data size C5 is selected as the establishment number of the master communication node.
10. The front-end rapid construction system for a training management system according to claim 9, characterized in that: The establishment module is specifically used for: The establishment module is used to preset the second result value matrix G, set G (G1, G2, G3, G4), wherein G1 is the first preset second result value, G2 is the second preset second result value, G3 is the third preset second result value, G4 is the fourth preset second result value, and G1<G2<G3<G4; The establishment module is used to preset the establishment number correction coefficient matrix h of the main communication node, and set h (h1, h2, h3, h4, h5), wherein h1 is a first preset establishment number correction coefficient, h2 is a second preset establishment number correction coefficient, h3 is a third preset establishment number correction coefficient, h4 is a fourth preset establishment number correction coefficient, h5 is a fifth preset establishment number correction coefficient, and 0.8<h1<h2<h3<h4<h5<1.2; The establishment module is used to correct the establishment number of the main communication node according to the relationship between the second result value H*W and each preset second result value when the establishment number of the main communication node is set to the i-th preset establishment number Ci, i=1, 2, 3, 4, 5: When H*W<G1, the first preset establishment number correction coefficient h1 is selected to correct the i-th preset establishment number Ci, and the corrected establishment number of the main communication node is Ci*h1; When G1≤H*W<G2, the second preset establishment number correction coefficient h2 is selected to correct the i-th preset establishment number Ci, and the corrected establishment number of the main communication node is Ci*h2; When G2≤H*W<G3, the third preset establishment number correction coefficient h3 is selected to correct the i-th preset establishment number Ci, and the corrected establishment number of the main communication node is Ci*h3; When G3≤H*W<G4, the fourth preset establishment number correction coefficient h4 is selected to correct the i-th preset establishment number Ci, and the corrected establishment number of the main communication node is Ci*h4; When G4≤H*W, the fifth preset establishment quantity correction coefficient h5 is selected to correct the i-th preset establishment quantity Ci, and the corrected establishment quantity of the main communication node is Ci*h5.
Citation Information
Patent Citations
Method and system for automatically building page and instantly publishing page
CN113031936A
Control system construction method based on cloud platform and control system
CN114089721A
