Page generation method, device, electronic device and storage medium of integrated system
By adding category prefixes to components for style configuration, the conflict problem caused by component style modification in a multi-system integration environment is solved, and the independence of component styles and simplification of page generation are achieved.
Patent Information
- Application Number
- CN202110567642.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-24
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2041-05-24
AI Technical Summary
In a multi-system integration environment, component style modifications can easily lead to style conflicts. Existing methods such as defining inline styles or adding additional classes are complex and not conducive to the extraction and engineering implementation of style files.
Configuring styles by adding category prefixes to components ensures the independence of component styles, avoids style influences on other systems, and saves modified components in the local component database.
It achieves independent modification of component styles without affecting the use of styles in other systems, simplifies the page generation process, and reduces system complexity and processing difficulty.
Smart Images

Figure CN113515712B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a page generation method, device, electronic device and non-transitory computer-readable storage medium for an integrated system. Background Art
[0002] In the process of information technology development, enterprises will continuously build and develop various software systems according to the needs of users or themselves. In order to centrally, efficiently and conveniently manage or use independent systems, the systems can be integrated or consolidated. The integrated system can make the independent systems interrelated, so as to achieve unified management and use of the systems.
[0003] When multiple systems are integrated, they usually use the same component library. When one system modifies the style of a component through its class, it will also affect the style of the component used by other systems in the system.
[0004] To solve the problem of component styles influencing each other, you can use inline styles to limit the scope of influence of the style, or you can add additional classes to distinguish components, and then define specific styles based on differentiated classes.
[0005] The solution of defining inline styles is not conducive to the extraction of style files; adding additional classes will increase meaningless class attribute values, and the process of dynamically adding additional classes in components is relatively complicated and does not utilize engineering.
[0006] How to simply and conveniently achieve the availability of components when modifying styles is a technical problem that needs to be solved urgently. Summary of the invention
[0007] The present invention provides a page generation method, device, electronic device and non-transitory computer-readable storage medium for an integrated system, so as to solve the defect of conflicts between different systems during style modification in the page generation process of the integrated system in the prior art, and ensure the availability of components in the page generation process of the integrated system.
[0008] The present invention provides a page generation method for an integrated system, comprising: the page generation method comprises: obtaining page data to be generated and component configuration information of the page to be generated, the component configuration information comprising component identification and style configuration data of the components of the page to be generated; obtaining a first set of components corresponding to the component identification from a local component database; when the style configuration data indicates that the style of the first component is different from the default style, adding a first category prefix to the first component, and performing style configuration on the first component after the first category prefix is added according to the style configuration data, wherein the first component is a component in the first set, and the first category prefix indicates the style of the first component; rendering the first set according to the page data to be generated and the component configuration information to generate the page to be generated.
[0009] According to a page generation method for an integrated system provided by the present invention, before obtaining the page data to be generated and the component configuration information of the page to be generated, the page generation method also includes: sending a page generation request to the server according to a trigger operation of the user, so that the server determines the component configuration information of the page to be generated and the page data to be generated according to the page generation request and returns the component configuration information and the page data to be generated.
[0010] According to a page generation method for an integrated system provided by the present invention, the component configuration information includes a component style identifier, and adding a first category prefix to the first component includes: adding a first category prefix to the first component according to the component style identifier.
[0011] According to a page generation method for an integrated system provided by the present invention, after performing style configuration on the first component after adding the first category prefix according to the style configuration data, the page generation method further includes: saving the first component after adding the first category prefix as a new component to the local component database.
[0012] According to a page generation method of an integrated system provided by the present invention, the page data to be generated includes the data to be generated corresponding to each component of the page to be generated, the component configuration information includes the display order of the components of each page to be generated, and the rendering of the first set according to the page data to be generated and the component configuration information includes: rendering the first set according to the data to be generated corresponding to each component of the page to be generated and the display order of the components of each page to be generated.
[0013] According to a page generation method for an integrated system provided by the present invention, the page to be generated is a main page of any system of the integrated system, or a secondary page of the main page of any system of the integrated system.
[0014] According to a page generation method for an integrated system provided by the present invention, the page to be generated is a page of a first system of the integrated system, and the integrated system also includes a second system. After adding a first category prefix to the first component, the page generation method also includes: adding a second category prefix to the first component for acquisition by the second system.
[0015] The present invention also provides a page generation device for an integrated system, comprising: a first acquisition unit, used to acquire page data to be generated and component configuration information of the page to be generated, the component configuration information including component identification and style configuration data of the component of the page to be generated; a second acquisition unit, used to acquire a first set of components corresponding to the component identification from a local component database; a generation unit, used to add a first category prefix to the first component when the style configuration data indicates that the style of the first component is different from the default style, and to perform style configuration on the first component after the first category prefix is added according to the style configuration data, wherein the first component is a component in the first set, and the first category prefix indicates the style of the first component; a rendering unit, used to render the first set according to the page data to be generated and the component configuration information to generate the page to be generated.
[0016] According to a page generation device of an integrated system provided by the present invention, the page generation device also includes a sending unit, which is used to send a page generation request to a server according to a trigger operation of a user, so that the server determines the component configuration information of the page to be generated and the page data to be generated according to the page generation request and returns the component configuration information and the page data to be generated.
[0017] According to a page generation device for an integrated system provided by the present invention, the component configuration information includes a component style identifier, and the generation unit is further configured to add a first category prefix to the first component according to the component style identifier.
[0018] According to a page generation device for an integrated system provided by the present invention, the page generation device further comprises a saving unit, which is used to save the first component after adding the first category prefix as a new component into the local component database.
[0019] According to a page generation device of an integrated system provided by the present invention, the page data to be generated includes the data to be generated corresponding to the components of each of the pages to be generated, the component configuration information includes the display order of the components of each of the pages to be generated, and the rendering unit is also used to: render the first set according to the data to be generated corresponding to the components of each of the pages to be generated and the display order of the components of each of the pages to be generated.
[0020] According to a page generating device for an integrated system provided by the present invention, the page to be generated is a main page of any system of the integrated system, or a secondary page of the main page of any system of the integrated system.
[0021] According to a page generation device for an integrated system provided by the present invention, the page to be generated is a page of a first system of the integrated system, the integrated system also includes a second system, and the generation unit is further used to: add a second category prefix to the first component for acquisition by the second system.
[0022] The present invention also provides an electronic device, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of the page generation method of the integrated system described in any one of the above are implemented.
[0023] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the page generation method of the integrated system as described in any one of the above are implemented.
[0024] The page generation method, device, electronic device and non-transitory computer-readable storage medium of the integrated system provided by the present invention can modify the style of the first component by adding a first category prefix to the first component. When the component style is changed, it will not affect the use of the original component style by other systems in the integrated system, and will not increase the complexity and processing difficulty of the system program. The style of the component to be generated can be modified relatively simply. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0026] Figure 1 It is one of the flow charts of the page generation method of the integrated system provided by the present invention;
[0027] Figure 2 It is a schematic diagram of setting different class prefixes in components A of different systems of the integrated system provided by the present invention;
[0028] Figure 3 This is the second flow chart of the page generation method of the integrated system provided by the present invention;
[0029] Figure 4 This is the third flow chart of the page generation method of the integrated system provided by the present invention;
[0030] Figure 5 It is a structural schematic diagram of a page generating device of an integrated system provided by the present invention;
[0031] Figure 6 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0032] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0033] The terms used in one or more embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of the present invention. The singular forms of "a", "said" and "the" used in one or more embodiments of the present invention and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in one or more embodiments of the present invention refers to and includes any or all possible combinations of one or more associated listed items.
[0034] It should be understood that although the terms first, second, etc. may be used to describe various information in one or more embodiments of the present invention, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of the present invention, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0035] In the related art, an integrated system including multiple systems shares a local component database or a local component file package. When a system modifies the style of a component, it will affect the original style of the component used by other systems, that is, style modification conflicts are prone to occur.
[0036] To solve this problem, an embodiment of the present invention provides a page generation solution for an integrated system. Figures 1 to 6 Exemplary embodiments of the present invention are described in detail.
[0037] like Figure 1 The flowchart of the page generation method of the integrated system of the embodiment of the present invention is shown. The method provided by the embodiment of the present invention can be executed by any electronic device with computer processing capabilities, such as a terminal device and / or a server. Figure 1 As shown, the page generation method of the integrated system includes:
[0038] Step 102: Acquire the page data to be generated and the component configuration information of the page to be generated, wherein the component configuration information includes the component identification and style configuration data of the component of the page to be generated.
[0039] Specifically, the page to be generated is composed of multiple components, and the component is a simple encapsulation of data and methods. Style is one of the properties of a component, which includes properties such as the color and format of the component. Style configuration data is data for configuring properties such as the color and format of the component. Generally, the components in the component library have a default style, which can be modified to a custom style. The page data to be generated refers to the data used to assign values to the corresponding components. The component identifier refers to identification data such as the name of the component. Component configuration information refers to the name, quantity and configuration data for configuring the style of the component in the page to be generated.
[0040] For example, the page data to be generated includes data for assigning a value to a specified drop-down menu.
[0041] For another example, the page to be generated includes two button components, and the style configuration data may indicate that the style of one of the button components needs to be configured to be green, and the style of the other button component needs to be configured to be red.
[0042] Step 104: Acquire a first set of components corresponding to the component identifier from a local component database.
[0043] Specifically, the local component database refers to a database of components shared by the integrated system, which can be a collection of files describing the components. The local component database needs to be pre-loaded in the local server for each system in the integrated system to call. When obtaining the first set, the corresponding component is searched according to each component identifier, and the components corresponding to all component identifiers are collected together to obtain the first set.
[0044] Step 106, when the style configuration data represents that the style of the first component is different from the default style, add a first category prefix to the first component, and perform style configuration on the first component after adding the first category prefix according to the style configuration data, wherein the first component is a component in the first set, and the first category prefix represents the style of the first component.
[0045] Specifically, after obtaining the first set, it is determined whether the style configuration data corresponding to each component in the first set indicates that the default style of the component needs to be modified. If the style of a component needs to be modified according to the setting of the style configuration data, a category prefix is added to the component. When the style of the component is configured according to the style configuration data corresponding to the component, only the style of the component containing the category prefix needs to be configured according to the style configuration data, without changing the style type of the original component.
[0046] Step 108: Render the first set according to the to-be-generated page data and the component configuration information to generate the to-be-generated page.
[0047] Specifically, after adding a category prefix to a component, the first set including the component with the added category prefix is rendered, and the page to be generated can be generated. Here, the component with the added category prefix participates in the generation of the page to be generated, and the component without the added category prefix does not participate in the generation of the page to be generated. The generated page data and component configuration information corresponding to the original component correspond to the component with the added category prefix.
[0048] In the technical solution of the present invention, when the style of the first component needs to be modified, the first component is processed by adding a category prefix to the first component, and the style of the processed first component is modified. In this way, it will not affect the use of the default style of the first component by other systems other than the current system where the page to be generated is located in the integrated system, nor will it affect the modification of the style of the first component by other systems that is different from the current system. That is, by defining different class prefixes for components, the class attribute values of the same component are different, which can solve the style conflict problem of components of different systems in the integrated system.
[0049] like Figure 2 As shown, in a certain system of the integrated system, the style of component A needs to be modified from the default style to the set style. Among them, the integrated system S includes system S1, system S2 and system S3. At this time, you can first add a category prefix to component A. The component A after adding the category prefix has different category attributes from the original component A. Different category prefixes correspond to different systems. For example, the category prefix prefixClass: axx- corresponds to system S1, the category prefix prefixClass: bxx- corresponds to system S2, and the category prefix prefixClass: cxx- corresponds to system S3.
[0050] When the style of component A is modified in system S1, because it is modified under the category prefix of axx-, which is inconsistent with the category prefix of component A in systems S2 and S3, modifying the style of component A in system S1 will not affect the component styles in systems S2 and S3. This solves the component style conflict problem without introducing additional class attribute values, and also facilitates engineering packaging and style extraction.
[0051] As shown in the following program, the class prefixes are fin-, al-, and jd- respectively.
[0052] <div data-v-55a6178a class=”ct button-demo”>
[0053] <div class=”fin-row”data-v-55a6178a>
[0054] ::before
[0055] <button type="button”class="fin-button”>...< / button>
[0056] <button type="button”class="al-button”>...< / button>
[0057] <button type="button”class="jd-button”>...< / button>
[0058] like Figure 3 As shown, before step 102, the page generation method also includes step 101, sending a page generation request to the server according to the user's trigger operation, so that the server determines the component configuration information and the page data to be generated of the page to be generated according to the page generation request and returns the component configuration information and the page data to be generated.
[0059] Specifically, when a trigger operation of a user on a page after going online is detected, a to-be-generated page identifier corresponding to the trigger operation can be obtained, and a page display request is generated according to the to-be-generated page identifier, and the page display request is sent to the server. The server can parse the received page display request, obtain the to-be-generated page identifier, determine the corresponding component configuration information according to the to-be-generated page identifier, and obtain the corresponding to-be-generated page data, and send the obtained component configuration information and to-be-generated page data to the client, so that the client generates the page based on the component configuration information and the to-be-generated page data.
[0060] In the embodiment of the present invention, the category prefix of the component can be dynamically configured, and the content of the category prefix can be customized.
[0061] Specifically, the component configuration information may include a component style identifier. In step 106, a first category prefix may be added to the first component according to the component style identifier.
[0062] Based on each component style identifier of the component configuration information, the category prefix of the component corresponding to each component style identifier can be determined, and these category prefixes are added to the component accordingly, that is, the category prefix of the component can be dynamically configured based on the component configuration information.
[0063] Like other components of component configuration information, component style identification can be generated based on user triggering operations, which can be user-defined content input. Dynamically configuring the category prefix of components can make the page generation process easy to trace, so as to facilitate the maintenance of the integrated system.
[0064] In an embodiment of the present invention, the page data to be generated includes the data to be generated corresponding to the components of each page to be generated, and the component configuration information includes the display order of the components of each page to be generated. In step 108, the first set needs to be rendered according to the data to be generated corresponding to the components of each page to be generated and the display order of the components of each page to be generated.
[0065] The display order of the components may refer to the arrangement order of each component in the display page. The display order may include a vertical display order, such as an order from top to bottom, and a horizontal display order, such as an order from left to right.
[0066] Specifically, in the process of page development, the embodiment of the present invention can create multiple components based on business needs and scenarios, such as video components, picture components, text components, activity components or other custom components. When the page is online, all created components can be stored in the client, such as the local component database of the client.
[0067] The client determines the component corresponding to each component identifier based on the component identifiers in the component configuration information. At this time, all the components determined are all the components in the page to be generated, so that the component category, quantity and other information in the page can be dynamically configured based on the component configuration information.
[0068] Specifically, this embodiment can render each component in the generated page so that each component is displayed in the configured display order. Therefore, when it is necessary to update the page layout to generate a new page, the page can be dynamically configured based on the component configuration information, such as adding new components, deleting existing components and / or adjusting the component display order.
[0069] In the embodiment of the present invention, the page to be generated is the main page of any system of the integrated system, or is a secondary page of the main page of any system of the integrated system. Figure 2 As shown, the page to be generated may be a main page or a secondary page of the main page of any system among the system S1, the system S2 or the system S3.
[0070] In one embodiment of the present invention, the page to be generated is a page of the first system of the integrated system. The integrated system may also include a second system and a third system. After adding the first category prefix to the first component, a second category prefix may be added to the first component for acquisition by the second system, and a third category prefix may be added to the third component for acquisition by the third system. In practical applications, the number of systems included in the integrated system is not limited to three. The integrated system may also include more than three systems. The same component of the more than three systems may have different category prefixes to correspond one-to-one with the more than three systems.
[0071] like Figure 4 As shown, after step 106, if the first component of the current style corresponding to the first category prefix is frequently used, step 110 can be performed to save the first component after adding the first category prefix as a new component to the local component database. Saving the new component can reduce the modification of the first component of the same style as the new component, reducing the workload of developers.
[0072] The page generation method of the integrated system provided by the present invention modifies the style of the first component by adding a first category prefix to the first component. When changing the component style, it can do so without affecting the use of the original component style by other systems in the integrated system and without increasing the complexity and processing difficulty of the system program. The style of the component for which the page is to be generated can be modified relatively simply.
[0073] The page generating device of the integrated system provided by the present invention is described below. The page generating device of the integrated system described below and the page generating method of the integrated system described above can be referred to each other.
[0074] like Figure 5 As shown, the page generating device of the integrated system includes:
[0075] The first acquisition unit 502 is used to acquire the page data to be generated and the component configuration information of the page to be generated, where the component configuration information includes the component identification and style configuration data of the component of the page to be generated.
[0076] The second obtaining unit 504 is used to obtain a first set of components corresponding to the component identifier from the local component database.
[0077] Generation unit 506 is used to add a first category prefix to the first component when the style configuration data represents that the style of the first component is different from the default style, and perform style configuration on the first component after the first category prefix is added according to the style configuration data, wherein the first component is a component in the first set, and the first category prefix represents the style of the first component.
[0078] The rendering unit 508 is used to render the first set according to the to-be-generated page data and the component configuration information to generate the to-be-generated page.
[0079] In the technical solution of the present invention, when the style of the first component needs to be modified, the first component is processed by adding a category prefix to the first component, and the style of the processed first component is modified. In this way, it will not affect the use of the default style of the first component by other systems other than the current system where the page to be generated is located in the integrated system, nor will it affect the modification of the style of the first component by other systems that is different from the current system. That is, by defining different class prefixes for components, the class attribute values of the same component are different, which can solve the style conflict problem of components of different systems in the integrated system.
[0080] In an embodiment of the present invention, the page generation device also includes a sending unit, which is used to send a page generation request to the server according to the user's trigger operation, so that the server determines the component configuration information and the page data to be generated of the page to be generated according to the page generation request and returns the component configuration information and the page data to be generated.
[0081] Specifically, when the page generation device of the client detects a trigger operation of the user on the page after going online, it can obtain the page identifier to be generated corresponding to the trigger operation, generate a page display request according to the page identifier to be generated, and send the page display request to the server through the sending unit. The server can parse the received page display request, obtain the page identifier to be generated, determine the corresponding component configuration information and obtain the corresponding page data to be generated according to the page identifier to be generated, and send the obtained component configuration information and page data to be generated to the client, so that the client generates the page based on the component configuration information and the page data to be displayed.
[0082] In the embodiment of the present invention, the component configuration information may include a component style identifier, and the generating unit 506 is further configured to add a first category prefix to the first component according to the component style identifier.
[0083] Specifically, based on each component style identifier of the component configuration information, the category prefix of the component corresponding to each component style identifier can be determined, and these category prefixes are added to the component accordingly, that is, the category prefix of the component can be dynamically configured based on the component configuration information.
[0084] Like other components of component configuration information, component style identification can be generated based on user triggering operations, which can be user-defined content input. Dynamically configuring the category prefix of components can make the page generation process easy to trace, so as to facilitate the maintenance of the integrated system.
[0085] In an embodiment of the present invention, the page generation device further includes a saving unit for saving the first component after adding the first category prefix as a new component to the local component database. Saving the new component can reduce the modification of the first component of the same style as the new component, thereby reducing the workload of developers.
[0086] In an embodiment of the present invention, the page data to be generated includes the data to be generated corresponding to the components of each page to be generated, the component configuration information includes the display order of the components of each page to be generated, and the rendering unit 508 is also used to render the first set according to the data to be generated corresponding to the components of each page to be generated and the display order of the components of each page to be generated.
[0087] In the embodiment of the present invention, the page to be generated is a main page of any system of the integrated system, or a secondary page of the main page of any system of the integrated system.
[0088] In the embodiment of the present invention, the page to be generated is a page of the first system of the integrated system, and the integrated system also includes a second system. The generating unit 506 is further used to add a second category prefix to the first component for acquisition by the second system.
[0089] Since the various functional modules of the page generation device of the integrated system of the exemplary embodiment of the present invention correspond to the steps of the exemplary embodiment of the page generation method of the integrated system described above, for details not disclosed in the embodiment of the device of the present invention, please refer to the embodiment of the page generation method of the integrated system described above.
[0090] The page generation device of the integrated system provided by the present invention modifies the style of the first component by adding a first category prefix to the first component. When changing the component style, it can do so without affecting the use of the original component style by other systems in the integrated system and without increasing the complexity and processing difficulty of the system program. The style of the component to be generated on the page can be modified relatively simply.
[0091] Figure 6 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 6 As shown, the electronic device may include: a processor 610, a communication interface 620, a memory 630 and a communication bus 640, wherein the processor 610, the communication interface 620 and the memory 630 communicate with each other through the communication bus 640. The processor 610 may call the logic instructions in the memory 630 to execute the page generation method of the integrated system, the method comprising: the page generation method comprises: obtaining the page data to be generated and the component configuration information of the page to be generated, the component configuration information comprising the component identification and style configuration data of the component of the page to be generated; obtaining a first set of components corresponding to the component identification from a local component database; when the style configuration data indicates that the style of the first component is different from the default style, adding a first category prefix to the first component, and performing style configuration on the first component after adding the first category prefix according to the style configuration data, wherein the first component is a component in the first set, and the first category prefix indicates the style of the first component; rendering the first set according to the page data to be generated and the component configuration information to generate the page to be generated.
[0092] In addition, the logic instructions in the above-mentioned memory 630 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0093] On the other hand, the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the page generation method of the integrated system provided by the above-mentioned methods, and the method includes: the page generation method includes: obtaining page data to be generated and component configuration information of the page to be generated, the component configuration information including component identification and style configuration data of the components of the page to be generated; obtaining a first set of components corresponding to the component identification from a local component database; when the style configuration data indicates that the style of the first component is different from the default style, adding a first category prefix to the first component, and performing style configuration on the first component after adding the first category prefix according to the style configuration data, wherein the first component is a component in the first set, and the first category prefix indicates the style of the first component; rendering the first set according to the page data to be generated and the component configuration information to generate the page to be generated.
[0094] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the page generation method of the integrated system provided above, the method comprising: the page generation method comprising: obtaining page data to be generated and component configuration information of the page to be generated, the component configuration information comprising component identification and style configuration data of the components of the page to be generated; obtaining a first set of components corresponding to the component identification from a local component database; when the style configuration data indicates that the style of the first component is different from the default style, adding a first category prefix to the first component, and performing style configuration on the first component after the first category prefix is added according to the style configuration data, wherein the first component is a component in the first set, and the first category prefix indicates the style of the first component; rendering the first set according to the page data to be generated and the component configuration information to generate the page to be generated.
[0095] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0096] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0097] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A page generation method for an integrated system, It is characterized in that The page generation method is used on a client and includes: Acquire the page data to be generated and the component configuration information of the page to be generated, wherein the component configuration information includes the component identification and style configuration data of the component of the page to be generated; Acquire a first set of components corresponding to the component identifier from a local component database; wherein the local component database is a database of components shared by the integrated system; When the style configuration data indicates that the style of the first component is different from the default style, a first category prefix is added to the first component, and a style configuration is performed on the first component after the first category prefix is added according to the style configuration data, wherein the first component is a component in the first set, and the first category prefix indicates the style of the first component; Rendering the first set according to the to-be-generated page data and the component configuration information to generate the to-be-generated page; wherein the components after adding the category prefix participate in the generation of the to-be-generated page, and the components after not adding the category prefix do not participate in the generation of the to-be-generated page; The page to be generated is a page of a first system of the integrated system, and the integrated system further includes a second system; After adding the first category prefix to the first component, the page generation method further includes: adding a second category prefix to the first component for acquisition by the second system; Before obtaining the page data to be generated and the component configuration information of the page to be generated, the page generation method also includes: sending a page generation request to the server according to a trigger operation of the user, so that the server determines the component configuration information of the page to be generated and the page data to be generated according to the page generation request and returns the component configuration information and the page data to be generated.
2. The page generation method according to claim 1, It is characterized in that The component configuration information includes a component style identifier; The adding a first category prefix to the first component includes: adding a first category prefix to the first component according to the component style identifier.
3. The page generation method according to claim 1, It is characterized in that After performing style configuration on the first component after adding the first category prefix according to the style configuration data, the page generation method further includes: The first component after adding the first category prefix is saved as a new component in the local component database.
4. The method according to claim 1, It is characterized in that The to-be-generated page data includes to-be-generated data corresponding to each component of the to-be-generated page, and the component configuration information includes a display order of each component of the to-be-generated page; The rendering of the first set according to the to-be-generated page data and the component configuration information includes: The first set is rendered according to the to-be-generated data corresponding to each component of the to-be-generated page and the display order of each component of the to-be-generated page.
5. The method according to claim 1, It is characterized in that The page to be generated is a main page of any system of the integrated system, or a secondary page of the main page of any system of the integrated system.
6. A page generation device for an integrated system, It is characterized in that The page generation device is used for a client, and includes: A first acquisition unit, configured to acquire the page data to be generated and the component configuration information of the page to be generated, wherein the component configuration information includes the component identification and style configuration data of the component of the page to be generated; A second acquisition unit, configured to acquire a first set of components corresponding to the component identifier from a local component database; wherein the local component database is a database of components shared by the integrated system; a generating unit, configured to add a first category prefix to the first component when the style configuration data indicates that the style of the first component is different from a default style, and perform style configuration on the first component after the first category prefix is added according to the style configuration data, wherein the first component is a component in the first set, and the first category prefix indicates the style of the first component; A rendering unit, configured to render the first set according to the to-be-generated page data and the component configuration information, to generate the to-be-generated page; wherein the components after adding the category prefix participate in the generation of the to-be-generated page, and the components after not adding the category prefix do not participate in the generation of the to-be-generated page; The page to be generated is a page of a first system of the integrated system, the integrated system further includes a second system, and the generating unit is further used to: add a second category prefix to the first component for acquisition by the second system; The page generation device also includes a sending unit, which is used to send a page generation request to the server according to the user's trigger operation, so that the server determines the component configuration information and the page data to be generated of the page to be generated according to the page generation request and returns the component configuration information and the page data to be generated.
7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the steps of the page generation method according to any one of claims 1 to 5 are implemented.
8. A non-transitory computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the page generation method according to any one of claims 1 to 5 are implemented.
