Interface display method and device, computer equipment and storage medium
By obtaining and generating display information of the main application and sub-app in the background management system, and responding to user operations, the independent operation and display of sub-apps is realized, and the problem of inefficiency of traditional single front-end engineering is solved, and the display efficiency and system maintenance are improved. sex.
Patent Information
- Application Number
- CN202411115354.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-14
- Publication Date
- 2024-11-22
AI Technical Summary
After the functions of the backend management system implemented by traditional single front-end projects increase, the operation efficiency and maintenance efficiency gradually decrease, resulting in low display efficiency of display content.
When logging into the management system by logging into the user account, the main application resource is obtained to generate the main application display information, and the system routing change information is obtained in response to the menu switching operation, and the matching sub-application routing information is determined based on the sub-application registration information, and the sub-application display is obtained and generated. Information, the control system operation interface displays the application display content of the sub-application to be displayed, realizing the independent operation and display of the sub-application.
It improves the display efficiency of the displayed content in the interface, avoids coupling between services, improves the operation efficiency of the management system, and simplifies system maintenance and expansion.
Smart Images

Figure CN119003075A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of big data technology, and in particular to an interface display method, device, computer equipment, computer-readable storage medium, and computer program product. Background Art
[0002] Backend management systems are very common in enterprises. As enterprise needs continue to change, the iteration process generally faces the problem of front-end engineering volume becoming larger and more difficult to maintain. As the number of business function modules continues to increase, the old single system that has been maintained for a long time becomes slow in both development and online operation, affecting the production efficiency of the enterprise.
[0003] Traditional technology mainly uses a single front-end project to implement the front-end project of the backend management system. All functional modules of the system are coupled together. However, the development process of traditional technology requires running all the codes of the entire system. As the functions continue to increase, the operating efficiency and development and maintenance efficiency of the system gradually decrease. Therefore, traditional technology has the problem of low display efficiency of displayed content due to insufficient operating efficiency of the business system. Summary of the invention
[0004] Based on this, it is necessary to provide an interface display method, device, computer equipment, computer-readable storage medium and computer program product that can improve the display efficiency of content displayed in a business interface in response to the above technical problems.
[0005] In a first aspect, the present application provides an interface display method, comprising:
[0006] When a user account logs into the management system, the main application resource of the management system is obtained, and main application display information corresponding to the management system is generated according to the main application resource; the main application display information is used to display the system operation interface of the management system;
[0007] In response to a menu switching operation of the user account on the system operation interface, obtaining system route change information matching the menu switching operation; the menu switching operation includes an access operation to at least one sub-application to be displayed in the system operation interface;
[0008] Acquire the sub-application registration information of the management system, and determine the sub-application routing information matching the system routing change information according to the sub-application registration information and the system routing change information;
[0009] According to the sub-application routing information, the sub-application resources of the sub-application to be displayed are obtained, and according to the sub-application resources of the sub-application to be displayed, the sub-application display information in the system operation interface is generated; the sub-application display information is used to control the system operation interface to display the application display content of the sub-application to be displayed.
[0010] In one embodiment, acquiring the sub-application resource of the sub-application to be displayed according to the sub-application routing information includes:
[0011] Obtaining sub-application routing information of a current sub-application in the system operation interface; the current sub-application is a sub-application corresponding to the application display content displayed on the system operation interface at the current moment;
[0012] If the current sub-application is the same as the sub-application to be displayed, and the sub-application routing information of the current sub-application is different from the sub-application routing information of the sub-application to be displayed, uninstalling the application instance of the current sub-application;
[0013] When the application instance of the current sub-application is uninstalled, the sub-application resource of the sub-application to be displayed is obtained.
[0014] In one embodiment, the method further comprises:
[0015] In a case where the current sub-application is different from the sub-application to be displayed, acquiring the sub-application resource of the sub-application to be displayed according to the sub-application routing information of the sub-application to be displayed;
[0016] The sub-application resources of the sub-application to be displayed are parsed to determine the lifecycle method information of the sub-application to be displayed; the lifecycle method information is used to control the display mode of the sub-application to be displayed.
[0017] In one embodiment, the method further comprises:
[0018] Determining, according to the sub-application routing information corresponding to the sub-application to be displayed, the mount point information of the sub-application to be displayed in the management system;
[0019] The sub-application display information of the sub-application to be displayed is displayed at a position represented by the mount point information in the system operation interface.
[0020] In one embodiment, displaying the sub-application display information of the sub-application to be displayed at the position represented by the mount point information in the system operation interface includes:
[0021] Determine, according to the mount point information, a display position corresponding to each element in the sub-application display information of the sub-application to be displayed;
[0022] Render each element to a display position corresponding to each element.
[0023] In one embodiment, the method further comprises:
[0024] Obtaining sub-application resources of each sub-application corresponding to the management system;
[0025] Encrypting the sub-application resources of each sub-application to obtain encrypted sub-application resources;
[0026] A version package is generated according to the encrypted sub-application resources; the version package is used to be deployed on a server corresponding to the management system.
[0027] In a second aspect, the present application also provides an interface display device, comprising:
[0028] The main application display module is used to obtain the main application resources of the management system when the user account logs in to the management system, and generate the main application display information corresponding to the management system according to the main application resources; the main application display information is used to display the system operation interface of the management system;
[0029] a route change acquisition module, configured to, in response to a menu switching operation of the user account on the system operation interface, acquire system route change information matching the menu switching operation; the menu switching operation includes an access operation to at least one sub-application to be displayed in the system operation interface;
[0030] A routing matching module, used to obtain the sub-application registration information of the management system, and determine the sub-application routing information matching the system routing change information according to the sub-application registration information and the system routing change information;
[0031] A sub-application display module is used to obtain the sub-application resources of the sub-application to be displayed according to the sub-application routing information, and generate the sub-application display information in the system operation interface according to the sub-application resources of the sub-application to be displayed; the sub-application display information is used to control the system operation interface to display the application display content of the sub-application to be displayed.
[0032] In one of the embodiments, the sub-application display module is specifically used to obtain sub-application routing information of the current sub-application in the system operation interface; the current sub-application is the sub-application corresponding to the application display content displayed on the system operation interface at the current moment; when the current sub-application is the same as the sub-application to be displayed, and the sub-application routing information of the current sub-application is different from the sub-application routing information of the sub-application to be displayed, uninstall the application instance of the current sub-application; when the application instance of the current sub-application is uninstalled, obtain the sub-application resources of the sub-application to be displayed.
[0033] In one of the embodiments, the sub-application display module is specifically used to obtain the sub-application resources of the sub-application to be displayed according to the sub-application routing information of the sub-application to be displayed when the current sub-application is different from the sub-application to be displayed; parse the sub-application resources of the sub-application to be displayed to determine the life cycle method information of the sub-application to be displayed; and the life cycle method information is used to control the display mode of the sub-application to be displayed.
[0034] In one of the embodiments, the sub-application display module is specifically used to determine the mount point information of the sub-application to be displayed in the management system based on the sub-application routing information corresponding to the sub-application to be displayed; and display the sub-application display information of the sub-application to be displayed at the position represented by the mount point information in the system operation interface.
[0035] In one of the embodiments, the sub-application display module is specifically used to determine the display position corresponding to each element in the sub-application display information of the sub-application to be displayed according to the mounting point information; and render each element to the display position corresponding to each element.
[0036] In one of the embodiments, the device also includes a deployment module, which is used to obtain sub-application resources of each sub-application corresponding to the management system; encrypt the sub-application resources of each sub-application to obtain encrypted sub-application resources; generate a version package based on the encrypted sub-application resources; and the version package is used to be deployed on a server corresponding to the management system.
[0037] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0038] When a user account logs into the management system, the main application resource of the management system is obtained, and main application display information corresponding to the management system is generated according to the main application resource; the main application display information is used to display the system operation interface of the management system;
[0039] In response to a menu switching operation of the user account on the system operation interface, obtaining system route change information matching the menu switching operation; the menu switching operation includes an access operation to at least one sub-application to be displayed in the system operation interface;
[0040] Acquire the sub-application registration information of the management system, and determine the sub-application routing information matching the system routing change information according to the sub-application registration information and the system routing change information;
[0041] According to the sub-application routing information, the sub-application resources of the sub-application to be displayed are obtained, and according to the sub-application resources of the sub-application to be displayed, the sub-application display information in the system operation interface is generated; the sub-application display information is used to control the system operation interface to display the application display content of the sub-application to be displayed.
[0042] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:
[0043] When a user account logs into the management system, the main application resource of the management system is obtained, and main application display information corresponding to the management system is generated according to the main application resource; the main application display information is used to display the system operation interface of the management system;
[0044] In response to a menu switching operation of the user account on the system operation interface, obtaining system route change information matching the menu switching operation; the menu switching operation includes an access operation to at least one sub-application to be displayed in the system operation interface;
[0045] Acquire the sub-application registration information of the management system, and determine the sub-application routing information matching the system routing change information according to the sub-application registration information and the system routing change information;
[0046] According to the sub-application routing information, the sub-application resources of the sub-application to be displayed are obtained, and according to the sub-application resources of the sub-application to be displayed, the sub-application display information in the system operation interface is generated; the sub-application display information is used to control the system operation interface to display the application display content of the sub-application to be displayed.
[0047] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:
[0048] When a user account logs into the management system, the main application resource of the management system is obtained, and main application display information corresponding to the management system is generated according to the main application resource; the main application display information is used to display the system operation interface of the management system;
[0049] In response to a menu switching operation of the user account on the system operation interface, obtaining system route change information matching the menu switching operation; the menu switching operation includes an access operation to at least one sub-application to be displayed in the system operation interface;
[0050] Acquire the sub-application registration information of the management system, and determine the sub-application routing information matching the system routing change information according to the sub-application registration information and the system routing change information;
[0051] According to the sub-application routing information, the sub-application resources of the sub-application to be displayed are obtained, and according to the sub-application resources of the sub-application to be displayed, the sub-application display information in the system operation interface is generated; the sub-application display information is used to control the system operation interface to display the application display content of the sub-application to be displayed.
[0052] The above-mentioned interface display method, device, computer equipment, computer-readable storage medium and computer program product obtain the main application resources of the management system when the user account logs into the management system, and generate the main application display information corresponding to the management system based on the main application resources; the main application display information is used to display the system operation interface of the management system; thereby, when the user account logs into the management system, the main application display information is generated in time and the system operation interface of the management system generated based on the main application display information is displayed to the user, so that the user can perform related operations; in response to the menu switching operation of the user account on the system operation interface, the system route change information matching the menu switching operation is obtained; the menu switching operation includes an access operation to at least one sub-application to be displayed in the system operation interface; thereby, the menu switching operation triggered by the user is responded to in time, the corresponding system route change information is accurately detected, and a data basis is provided for the subsequent switching or display of sub-applications; the sub-application registration information of the management system is obtained, and the sub-application routing information matching the system route change information is determined based on the sub-application registration information and the system route change information; Thus, by combining the sub-application registration information of the management system with the system routing change information, the sub-application routing information that matches the system routing change information is accurately analyzed, which is convenient for the subsequent positioning and display of the sub-application; according to the sub-application routing information, the sub-application resources of the sub-application to be displayed are obtained, and according to the sub-application resources of the sub-application to be displayed, the sub-application display information in the system operation interface is generated; the sub-application display information is used to control the system operation interface to display the application display content of the sub-application to be displayed, so that based on the sub-application routing information, the corresponding sub-application resources of the sub-application to be displayed are accurately obtained, and the sub-application display information in the system operation interface is generated, and the main application display information can be generated and the corresponding system operation interface can be displayed when the user account logs into the management system, and the switching operation of the user account can be responded to in time, and the corresponding sub-application can be displayed in the system operation interface, so that the user can manage the relevant business in the management system by controlling each sub-application. Since each sub-application runs independently and does not affect each other, it can avoid coupling between the businesses, thereby improving the operation efficiency of the management system and achieving the beneficial effect of improving the display efficiency of the content displayed in the interface. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0054] Figure 1 A diagram of an application environment of an interface display method in an embodiment;
[0055] Figure 2 A schematic diagram of a flow chart of an interface display method in an embodiment;
[0056] Figure 3 is a schematic diagram of an interface in an embodiment;
[0057] Figure 4 It is a flowchart of an interface display method in another embodiment;
[0058] Figure 5 It is a structural block diagram of an interface display device in an embodiment;
[0059] Figure 6 The figure is a diagram of the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0060] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application. It should be noted that in the embodiments of the present application, certain software, groups, models and other existing solutions in the industry may be mentioned, which should be considered as exemplary, and their purpose is only to illustrate the feasibility of the implementation of the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.
[0061] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations. The acquisition, storage, use, and processing of data in the technical solution of this application are in compliance with relevant provisions of national laws and regulations.
[0062] The interface display method provided in the embodiment of the present application can be applied to Figure 1In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. When the user account logs into the management system, the terminal 102 obtains the main application resources of the management system, and generates the main application display information corresponding to the management system according to the main application resources; the main application display information is used to display the system operation interface of the management system; the terminal 102 responds to the menu switching operation of the user account on the system operation interface, and obtains the system routing change information matching the menu switching operation; the menu switching operation includes the access operation of at least one sub-application to be displayed in the system operation interface; the terminal 102 obtains the sub-application registration information of the management system, and determines the sub-application routing information matching the system routing change information according to the sub-application registration information and the system routing change information; the terminal 102 obtains the sub-application resources of the sub-application to be displayed according to the sub-application routing information, and generates the sub-application display information in the system operation interface according to the sub-application resources of the sub-application to be displayed; the sub-application display information is used to control the system operation interface to display the application display content of the sub-application to be displayed. The terminal 102 may be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, IoT devices, and portable wearable devices. The IoT devices may be smart TVs, smart car devices, projection devices, etc. Portable wearable devices may be smart watches, head-mounted devices, etc. Head-mounted devices may be virtual reality (VR) devices, augmented reality (AR) devices, smart glasses, etc. The server 104 may be an independent physical server, a server cluster or distributed system consisting of multiple physical servers, or a cloud server that provides cloud computing services.
[0063] In an exemplary embodiment, Figure 2 As shown, an interface display method is provided, and the method is applied to a terminal as an example for explanation, including the following steps S202 to S208. Among them:
[0064] Step S202, when the user account logs into the management system, the main application resources of the management system are obtained, and the main application display information corresponding to the management system is generated according to the main application resources; the main application display information is used to display the system operation interface of the management system.
[0065] The user account may refer to an account of a user who needs to operate the management system. In actual applications, the user account may include but is not limited to an administrator account.
[0066] Among them, the management system may refer to a system used to manage financial services related to target resources (such as funds, etc.). In actual applications, the financial business management system may include but is not limited to a digital housing financial comprehensive service platform.
[0067] Among them, the main application resources can refer to the information used to manage and coordinate the life cycle of each sub-application in the micro-frontend of the management system. In actual applications, the main application resources may include but are not limited to information such as entry files, operating environment and routing management.
[0068] Among them, the main application display information may refer to information used to display the system operation interface of the management system. In actual applications, the main application display information may control the display mode and display content (such as interface style and interface layout) of the system operation interface of the management system.
[0069] As an example, when a user needs to use the management system to process something, the user can log in to the management system using the user account and account password. When the user account is logged in to the management system, the terminal can obtain the main application resources of the management system and generate the main application display information corresponding to the management system based on the main application resources. The main application display information can display the system operation interface of the management system to the user.
[0070] Step S204, in response to the menu switching operation of the user account on the system operation interface, obtaining system route change information matching the menu switching operation; the menu switching operation includes an access operation to at least one sub-application to be displayed in the system operation interface.
[0071] Among them, the menu switching operation may refer to a triggering operation such as a click or selection triggered by a user on specific content in the system operation interface. In actual applications, the menu switching operation may include an access operation to at least one sub-application to be displayed in the system operation interface.
[0072] The system route change information may refer to information representing changes in the system route in the management system when the management system switches menus in response to a menu switching operation of a user account on a system operation interface.
[0073] The sub-application to be displayed may refer to a sub-application displayed to the user in the system operation interface. In actual applications, the user operates the sub-application to be displayed to process the corresponding sub-application to be displayed.
[0074] As an example, the system operation interface displays several sub-applications to be displayed to the user. When the user needs to process them, the user can trigger a menu switching operation for the system operation interface by clicking and selecting specific content in the system operation interface (such as the display area corresponding to the sub-application to be displayed). The terminal can respond to the menu switching operation of the system operation interface by the user account, and detect and record the system routing change information that matches the menu switching operation.
[0075] Step S206, obtaining the sub-application registration information of the management system, and determining the sub-application routing information that matches the system routing change information according to the sub-application registration information and the system routing change information.
[0076] Among them, the sub-application registration information may refer to the information used to identify and load each sub-application. In actual applications, the sub-application registration information may include but is not limited to the name, entry, container, and activation rules.
[0077] The sub-application routing information may refer to information used to identify and / or distinguish each sub-application.
[0078] As an example, in order to determine the sub-application actually selected by the menu switching operation triggered by the user account, the terminal can obtain the sub-application registration information of the management system, and determine the sub-application routing information that matches the system routing change information based on the sub-application registration information and the system routing change information. Specifically, the terminal can determine the system route before the menu switching operation and the system route after the menu switching operation based on the system routing change information, and compare the sub-application registration information with the system route after the menu switching operation, and filter out the sub-application that matches the system route after the menu switching operation in each sub-application, to obtain the sub-application to be displayed that is actually selected by the user account.
[0079] Step S208, obtaining the sub-application resources of the sub-application to be displayed according to the sub-application routing information, and generating the sub-application display information in the system operation interface according to the sub-application resources of the sub-application to be displayed; the sub-application display information is used to control the system operation interface to display the application display content of the sub-application to be displayed.
[0080] The sub-application resources of the sub-application to be displayed may refer to the files and data constituting the sub-application to be displayed. In actual applications, the sub-application resources of the sub-application to be displayed may include but are not limited to information such as source code, style sheets, templates, and components.
[0081] Among them, the sub-application display information may refer to information used to control the system operation interface to display the application display content of the sub-application to be displayed. In actual applications, the sub-application display information may describe information such as the display content and display method of the sub-application in the system operation interface.
[0082] As an example, the terminal can obtain the sub-application resources of the sub-application to be displayed actually selected by the user based on the sub-application routing information that matches the system routing change information, and generate sub-application display information in the system operation interface based on the sub-application resources of the sub-application to be displayed. The sub-application display information can control the system operation interface to display the application display content of the sub-application to be displayed, and can be used to trigger the application display content of the sub-application to be displayed in the system operation interface, and process the corresponding sub-application to be displayed.
[0083] In the above interface display method, when the user account logs into the management system, the main application resource of the management system is obtained, and the main application display information corresponding to the management system is generated according to the main application resource; the main application display information is used to display the system operation interface of the management system; thus, when the user account logs into the management system, the main application display information is generated in time and the system operation interface of the management system generated based on the main application display information is displayed to the user, so that the user can perform related operations; in response to the menu switching operation of the user account on the system operation interface, the system route change information matching the menu switching operation is obtained; the menu switching operation includes an access operation to at least one sub-application to be displayed in the system operation interface; thus, the menu switching operation triggered by the user is responded to in time, the corresponding system route change information is accurately detected, and a data basis is provided for the subsequent switching or display of sub-applications; the sub-application registration information of the management system is obtained, and the sub-application routing information matching the system routing change information is determined according to the sub-application registration information and the system routing change information; thus, the sub-application routing information matching the system routing change information is combined with the sub-application registration information of the management system. The system combines the registration information and the system routing change information, accurately analyzes the sub-application routing information that matches the system routing change information, and facilitates the subsequent positioning and display of the sub-application; obtains the sub-application resources of the sub-application to be displayed according to the sub-application routing information, and generates the sub-application display information in the system operation interface according to the sub-application resources of the sub-application to be displayed; the sub-application display information is used to control the system operation interface to display the application display content of the sub-application to be displayed, so as to accurately obtain the corresponding sub-application resources of the sub-application to be displayed based on the sub-application routing information, and generate the sub-application display information in the system operation interface, which can generate the main application display information and display the corresponding system operation interface when the user account logs into the management system, and promptly respond to the switching operation of the user account, and display the corresponding sub-application in the system operation interface, so that the user can manage the relevant services in the management system by controlling each sub-application. Since each sub-application runs independently and does not affect each other, it can avoid coupling between the services, thereby improving the operation efficiency of the management system and achieving the beneficial effect of improving the display efficiency of the content displayed in the interface.
[0084] In an exemplary embodiment, based on the sub-application routing information, the sub-application resources of the sub-application to be displayed are obtained, including: obtaining the sub-application routing information of the current sub-application in the system operation interface; the current sub-application is the sub-application corresponding to the application display content displayed in the system operation interface at the current moment; when the current sub-application is the same as the sub-application to be displayed, and the sub-application routing information of the current sub-application is different from the sub-application routing information of the sub-application to be displayed, uninstalling the application instance of the current sub-application; when the application instance of the current sub-application is uninstalled, the sub-application resources of the sub-application to be displayed are obtained.
[0085] The current sub-application may refer to the sub-application corresponding to the application display content displayed on the system operation interface at the current moment.
[0086] The application instance may refer to a runtime object after the current sub-application is loaded and / or initialized.
[0087] As an example, the terminal can obtain the sub-application routing information of the current sub-application in the system operation interface. When the current sub-application is the same as the sub-application to be displayed, and the sub-application routing information of the current sub-application is different from the sub-application routing information of the sub-application to be displayed, the terminal can determine that the sub-application routing information of the sub-application to be displayed and the sub-application routing information of the current sub-application are different routes of the same sub-application. The terminal can uninstall the application instance of the current sub-application, and after completing the uninstallation of the application instance of the current sub-application, obtain the sub-application resources of the sub-application to be displayed, so as to display the sub-application display information of the sub-application to be displayed in the system operation interface.
[0088] In this embodiment, by obtaining the sub-application routing information of the current sub-application in the system operation interface; the current sub-application is the sub-application corresponding to the application display content displayed on the system operation interface at the current moment; when the current sub-application is the same as the sub-application to be displayed, and the sub-application routing information of the current sub-application is different from the sub-application routing information of the sub-application to be displayed, the application instance of the current sub-application is uninstalled; after completing the uninstallation of the application instance of the current sub-application, the sub-application resources of the sub-application to be displayed are obtained, and the changes in the system routing can be accurately analyzed based on the sub-application routing information. When the sub-application routing information of the sub-application to be displayed and the sub-application routing information of the current sub-application are different routes of the same sub-application, the application instance of the current sub-application is uninstalled, so as to avoid the application instance of the current sub-application from affecting the sub-application display information of the sub-application to be displayed in the system operation interface, thereby achieving the beneficial effect of improving the display efficiency of the content displayed in the interface.
[0089] In an exemplary embodiment, the above method also includes: when the current sub-application is different from the sub-application to be displayed, obtaining the sub-application resources of the sub-application to be displayed according to the sub-application routing information of the sub-application to be displayed; parsing the sub-application resources of the sub-application to be displayed to determine the life cycle method information of the sub-application to be displayed; the life cycle method information is used to control the display mode of the sub-application to be displayed.
[0090] The lifecycle method information may refer to information for describing methods at various stages of a process from creation to destruction of an application example of a sub-application to be displayed. In actual applications, the lifecycle method information may be used to control the display mode of the sub-application to be displayed.
[0091] As an example, when the current sub-application is different from the sub-application to be displayed, the terminal can determine that the sub-application to be displayed and the current sub-application are different sub-applications. At this time, the terminal can obtain the sub-application resources of the sub-application to be displayed based on the sub-application routing information of the sub-application to be displayed, and parse the sub-application resources of the sub-application to be displayed to determine the life cycle method information of the sub-application to be displayed. The terminal can determine the display method of the application example of the sub-application to be displayed based on the life cycle method information of the sub-application to be displayed.
[0092] In this embodiment, when the current sub-application is different from the sub-application to be displayed, the sub-application resources of the sub-application to be displayed are obtained according to the sub-application routing information of the sub-application to be displayed; the sub-application resources of the sub-application to be displayed are parsed to determine the life cycle method information of the sub-application to be displayed; the life cycle method information is used to control the display mode of the sub-application to be displayed, and based on the sub-application routing information, the changes in the system routing can be accurately analyzed. When the sub-application to be displayed and the current sub-application are different sub-applications, the life cycle method information of the sub-application to be displayed is accurately obtained, and the display mode of the application instance of the sub-application to be displayed is accurately controlled using the life cycle method information of the sub-application to be displayed, thereby achieving the beneficial effect of improving the display efficiency of the content displayed in the interface.
[0093] In an exemplary embodiment, the above method also includes: determining the mount point information of the sub-application to be displayed in the management system based on the sub-application routing information corresponding to the sub-application to be displayed; and displaying the sub-application display information of the sub-application to be displayed at the position represented by the mount point information in the system operation interface.
[0094] The mount point information may refer to information representing the location of the user interface or display area where the sub-application is inserted and displayed.
[0095] As an example, the terminal can determine the mount point information of the sub-application to be displayed in the management system in the sub-application registration information based on the sub-application routing information corresponding to the sub-application to be displayed, and then the terminal can display the sub-application display information of the sub-application to be displayed at the position represented by the mount point information in the system operation interface according to the corresponding display method (such as life cycle method, etc.).
[0096] In this embodiment, the mount point information of the sub-application to be displayed in the management system is determined based on the sub-application routing information corresponding to the sub-application to be displayed; the sub-application display information of the sub-application to be displayed is displayed at the position represented by the mount point information in the system operation interface. Based on the mount point information of the sub-application to be displayed in the management system, the sub-application display information of the sub-application to be displayed can be accurately displayed at the corresponding position in the system operation interface, thereby achieving the beneficial effect of improving the accuracy of the content displayed in the interface.
[0097] In an exemplary embodiment, sub-application display information of the sub-application to be displayed is displayed at the position represented by the mount point information in the system operation interface, including: determining the display position corresponding to each element in the sub-application display information of the sub-application to be displayed according to the mount point information; and rendering each element to the display position corresponding to each element.
[0098] As an example, the main application can call the mount method of the sub-application to mount the sub-application into the DOM (such as a mount point), thereby creating and rendering the content of the sub-application. For example: the main application calls the mount method of the sub-application to mount the sub-application. The mount method can receive a parameter object containing a reference to the mount point. The sub-application needs to create a DOM structure and add them to the mount point. By directly operating the DOM, the terminal can determine the display position corresponding to each element in the sub-application display information of the sub-application to be displayed based on the mount point information, and render each element to the display position corresponding to each element, thereby completing the rendering and display of the sub-application display information in the system operation interface.
[0099] In this embodiment, by determining the display position corresponding to each element in the sub-application display information of the sub-application to be displayed based on the mount point information; rendering each element to the display position corresponding to each element, each element in the sub-application display information of the sub-application to be displayed can be accurately rendered one by one to the display position corresponding to each element, avoiding display errors of the sub-application display information, and achieving the beneficial effect of improving the accuracy of the content displayed in the interface.
[0100] In an exemplary embodiment, the above method also includes: obtaining sub-application resources of each sub-application corresponding to the management system; encrypting the sub-application resources of each sub-application to obtain encrypted sub-application resources; generating a version package based on the encrypted sub-application resources; and the version package is used to be deployed on a server corresponding to the management system.
[0101] The encrypted sub-application resources may refer to information obtained after encrypting the sub-application resources of each sub-application.
[0102] Among them, the version package can refer to the packaging product of the sub-application. In actual applications, the version package is used to be deployed on the server corresponding to the management system. The version package can be the deployment version of the sub-application after construction. The deployment version can contain all the resources required for the sub-application to run, such as JavaScript, CSS files, pictures and other static resources. The version package is usually a collection of one or more files, which can be dynamically loaded and executed by the main application.
[0103] As an example, when publishing a management system, the terminal can obtain the sub-application resources of each sub-application corresponding to the management system. To ensure the security and reliability of the sub-application resources, the terminal can encrypt the sub-application resources of each sub-application to obtain the encrypted sub-application resources. Then the terminal can generate a version package based on the encrypted sub-application resources and deploy the version package on the server corresponding to the management system, thereby completing the release of the management system. It is worth noting that when the version package is generated based on the encrypted sub-application resources, when the terminal displays the sub-application based on the encrypted sub-application resources, the terminal needs to decrypt the encrypted sub-application resources according to the preset decryption method (such as a key, etc.), and use the decrypted sub-application resources to achieve accurate display of the sub-application display information. When the management system needs to be maintained, the terminal can develop and iterate the version of a specific sub-application separately, update the version package of the specific sub-application and deploy it on the server, without the need to maintain the entire management system as a whole. It is understandable that when the operating environment of the management system meets the preset security requirements, the terminal can directly generate a version package based on the encrypted sub-application resources of each sub-application without encrypting the sub-application resources of each sub-application.
[0104] In this embodiment, the sub-application resources of each sub-application corresponding to the management system are obtained; the sub-application resources of each sub-application are encrypted to obtain encrypted sub-application resources; a version package is generated based on the encrypted sub-application resources; the version package is used to be deployed on the server corresponding to the management system, and the version package generated based on the encrypted sub-application resources can be deployed on the server to realize the release of the management system, avoid information security incidents such as information leakage in the process of displaying sub-applications in the management system, and achieve the beneficial effect of improving the security of the interface.
[0105] In one exemplary embodiment, Figure 3As shown in the figure, a schematic diagram of a financial business interface is provided. The display interface of the financial business management system mainly includes two parts. One part is the system operation interface including the system header and the side menu bar (generated by the main application), and the other part is the content display area (generated by each sub-application). For the interactive operation of the user switching different menus, the corresponding sub-application content can be switched and displayed. Figure 4 As shown, a flow chart of a method for displaying a financial business interface is provided. When a user account logs in to the financial business management system, the terminal requests the main application resource, loads the display system header and side menu bar information, generates the system operation interface of the financial business management system, obtains the sub-application registration information of each sub-application, registers all sub-applications, and when the user needs to switch between different menus, the terminal can destroy and display the sub-application. For example, when the user account performs a single switching operation (such as an access operation) on at least one sub-application to be displayed in the system operation interface, the system route of the financial business management system changes. The terminal responds to the menu switching operation and obtains the system route change information matching the menu switching operation. The terminal combines the sub-application registration information and the system route change information of the financial business management system to determine the sub-application routing information matching the system route change information. The terminal can obtain the sub-application resource of the sub-application to be displayed selected by the user account according to the sub-application routing information, and generate the sub-application display information in the system operation interface according to the sub-application resource of the sub-application to be displayed, thereby displaying the application display content of the sub-application to be displayed to the user in the content display area of the system operation interface. In actual applications, the terminal can compare the sub-application routing information of the current sub-application in the system operation interface with the sub-application routing information of the sub-application to be displayed. When the current sub-application is the same as the sub-application to be displayed, and the sub-application routing information of the current sub-application is different from the sub-application routing information of the sub-application to be displayed, the terminal can determine that the sub-application routing information of the current sub-application and the sub-application routing information of the sub-application to be displayed belong to different routes of the same sub-application, and the terminal can uninstall the application instance of the current sub-application. When the application instance of the current sub-application is uninstalled, the terminal requests the sub-application resources of the sub-application to be displayed, and generates the sub-application display information of the sub-application to be displayed in the system operation interface according to the sub-application resources of the sub-application to be displayed. When the current sub-application is different from the sub-application to be displayed, the terminal can determine that the current sub-application and the sub-application to be displayed belong to different sub-applications. The terminal can request the sub-application resources of the sub-application to be displayed, and generates the sub-application display information of the sub-application to be displayed in the system operation interface according to the sub-application resources of the sub-application to be displayed, and displays the sub-application display information in the content display area of the system operation interface. It is understandable that the version release of the financial business management system requires compiling each sub-application to generate a version package and publishing it to the server, wherein each sub-application is independently developed and released and switched through routing.
[0106] In this embodiment, the micro-frontend architecture concept is used to split different business function modules in the background management system into multiple independent front-end sub-applications. Multiple sub-applications can be displayed together in the same application system, but each sub-application runs independently and does not affect each other. In the process of function iteration and system maintenance, only separate sub-applications need to be developed and versioned. Compared with maintaining a huge single project, the production efficiency of the enterprise is greatly improved. The ability to split a large and difficult-to-maintain single front-end project into multiple independent sub-applications is suitable for the business scenarios of the background management system, which greatly improves the maintainability and scalability of the system. Sub-applications can be continuously expanded according to different business scenarios, and even a menu is a sub-application. Any technology can be used to implement each sub-application, which is independent of the technology stack and framework. It can be implemented using any framework such as MVVM, thereby improving the flexibility of the micro-front-end architecture.
[0107] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0108] Based on the same inventive concept, the embodiment of the present application also provides an interface display device for implementing the interface display method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more interface display device embodiments provided below can refer to the limitations of the interface display method above, and will not be repeated here.
[0109] In an exemplary embodiment, Figure 5 As shown, an interface display device is provided, including: a main application display module 502, a route change acquisition module 504, a route matching module 506 and a sub-application display module 508, wherein:
[0110] The main application display module 502 is used to obtain the main application resources of the management system when a user account logs in to the management system, and generate the main application display information corresponding to the management system based on the main application resources; the main application display information is used to display the system operation interface of the management system.
[0111] The route change acquisition module 504 is used to obtain system route change information matching the menu switching operation of the system operation interface by the user account; the menu switching operation includes an access operation to at least one sub-application to be displayed in the system operation interface.
[0112] The route matching module 506 is used to obtain the sub-application registration information of the management system, and determine the sub-application routing information matching the system routing change information according to the sub-application registration information and the system routing change information.
[0113] The sub-application display module 508 is used to obtain the sub-application resources of the sub-application to be displayed according to the sub-application routing information, and generate the sub-application display information in the system operation interface according to the sub-application resources of the sub-application to be displayed; the sub-application display information is used to control the system operation interface to display the application display content of the sub-application to be displayed.
[0114] In one of the exemplary embodiments, the sub-application display module 508 is specifically used to obtain sub-application routing information of the current sub-application in the system operation interface; the current sub-application is the sub-application corresponding to the application display content displayed on the system operation interface at the current moment; when the current sub-application is the same as the sub-application to be displayed, and the sub-application routing information of the current sub-application is different from the sub-application routing information of the sub-application to be displayed, uninstall the application instance of the current sub-application; when the application instance of the current sub-application is uninstalled, obtain the sub-application resources of the sub-application to be displayed.
[0115] In one of the exemplary embodiments, the sub-application display module 508 is specifically used to obtain the sub-application resources of the sub-application to be displayed according to the sub-application routing information of the sub-application to be displayed when the current sub-application is different from the sub-application to be displayed; parse the sub-application resources of the sub-application to be displayed to determine the life cycle method information of the sub-application to be displayed; and the life cycle method information is used to control the display mode of the sub-application to be displayed.
[0116] In one of the exemplary embodiments, the sub-application display module 508 is specifically used to determine the mount point information of the sub-application to be displayed in the management system based on the sub-application routing information corresponding to the sub-application to be displayed; and display the sub-application display information of the sub-application to be displayed at the position represented by the mount point information in the system operation interface.
[0117] In one of the exemplary embodiments, the sub-application display module 508 is specifically used to determine the display position corresponding to each element in the sub-application display information of the sub-application to be displayed according to the mounting point information; and render each element to the display position corresponding to each element.
[0118] In one of the exemplary embodiments, the device also includes a deployment module, which is used to obtain sub-application resources of each sub-application corresponding to the management system; encrypt the sub-application resources of each sub-application to obtain encrypted sub-application resources; generate a version package based on the encrypted sub-application resources; and the version package is used to be deployed on a server corresponding to the management system.
[0119] Each module in the above interface display device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.
[0120] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 6As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, an interface display method is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0121] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0122] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
[0123] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0124] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0125] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0126] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0127] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. An interface display method, characterized in that: The method comprises: When a user account logs into the management system, the main application resources of the management system are obtained, and main application display information corresponding to the management system is generated based on the main application resources; the main application display information is used to display the system operation interface of the management system; In response to a menu switching operation on the system operation interface by the user account, obtaining system routing change information matching the menu switching operation; the menu switching operation includes an access operation to at least one sub-application to be displayed in the system operation interface; Obtaining sub-application registration information of the management system, and determining sub-application routing information that matches the system routing change information based on the sub-application registration information and the system routing change information; According to the sub-application routing information, the sub-application resources of the sub-application to be displayed are obtained, and according to the sub-application resources of the sub-application to be displayed, the sub-application display information in the system operation interface is generated; the sub-application display information is used to control the system operation interface to display the application display content of the sub-application to be displayed.
2. The method according to claim 1, characterized in that The acquiring the sub-application resource of the sub-application to be displayed according to the sub-application routing information includes: Obtaining sub-application routing information of a current sub-application in the system operation interface; the current sub-application is a sub-application corresponding to the application display content displayed on the system operation interface at the current moment; If the current sub-application is the same as the sub-application to be displayed, and the sub-application routing information of the current sub-application is different from the sub-application routing information of the sub-application to be displayed, uninstalling the application instance of the current sub-application; When the application instance of the current sub-application is uninstalled, the sub-application resource of the sub-application to be displayed is obtained.
3. The method according to claim 2, characterized in that The method further comprises: When the current sub-application is different from the sub-application to be displayed, acquiring the sub-application resource of the sub-application to be displayed according to the sub-application routing information of the sub-application to be displayed; The sub-application resources of the sub-application to be displayed are parsed to determine the lifecycle method information of the sub-application to be displayed; the lifecycle method information is used to control the display mode of the sub-application to be displayed.
4. The method according to claim 3, characterized in that The method further comprises: Determining, according to the sub-application routing information corresponding to the sub-application to be displayed, the mount point information of the sub-application to be displayed in the management system; The sub-application display information of the sub-application to be displayed is displayed at a position represented by the mount point information in the system operation interface.
5. The method according to claim 4, characterized in that The displaying of the sub-application display information of the sub-application to be displayed at the position represented by the mount point information in the system operation interface includes: Determining, according to the mount point information, a display position corresponding to each element in the sub-application display information of the sub-application to be displayed; Rendering each element to a display position corresponding to each element.
6. The method according to claim 1, characterized in that The method further comprises: Obtaining sub-application resources of each sub-application corresponding to the management system; Encrypting the sub-application resources of each sub-application to obtain encrypted sub-application resources; A version package is generated according to the encrypted sub-application resources; the version package is used to be deployed on a server corresponding to the management system.
7. An interface display device, characterized in that: The device comprises: The main application display module is used to obtain the main application resources of the management system when the user account logs in to the management system, and generate the main application display information corresponding to the management system based on the main application resources; the main application display information is used to display the system operation interface of the management system; a routing change acquisition module, configured to, in response to a menu switching operation on the system operation interface by the user account, acquire system routing change information matching the menu switching operation; the menu switching operation including an access operation to at least one to-be-displayed sub-application in the system operation interface; A routing matching module is used to obtain the sub-application registration information of the management system, and determine the sub-application routing information that matches the system routing change information based on the sub-application registration information and the system routing change information; The sub-application display module is used to obtain the sub-application resources of the sub-application to be displayed according to the sub-application routing information, and generate the sub-application display information in the system operation interface according to the sub-application resources of the sub-application to be displayed; the sub-application display information is used to control the system operation interface to display the application display content of the sub-application to be displayed.
8. The device according to claim 7, characterized in that The sub-application display module is specifically used to obtain the sub-application routing information of the current sub-application in the system operation interface; the current sub-application is the sub-application corresponding to the application display content displayed on the system operation interface at the current moment; When the current sub-application is the same as the sub-application to be displayed, and the sub-application routing information of the current sub-application is different from the sub-application routing information of the sub-application to be displayed, uninstall the application instance of the current sub-application; when the application instance of the current sub-application is uninstalled, obtain the sub-application resources of the sub-application to be displayed.
9. The device according to claim 8, characterized in that The sub-application display module is specifically used to obtain the sub-application resources of the sub-application to be displayed according to the sub-application routing information of the sub-application to be displayed when the current sub-application is different from the sub-application to be displayed; parse the sub-application resources of the sub-application to be displayed and determine the life cycle method information of the sub-application to be displayed; the life cycle method information is used to control the display mode of the sub-application to be displayed.
10. The device according to claim 9, characterized in that The sub-application display module is specifically used to determine the mount point information of the sub-application to be displayed in the management system based on the sub-application routing information corresponding to the sub-application to be displayed; and display the sub-application display information of the sub-application to be displayed at the position represented by the mount point information in the system operation interface.
11. The device according to claim 10, characterized in that The sub-application display module is specifically configured to determine a display position corresponding to each element in the sub-application display information of the sub-application to be displayed according to the mount point information; and render each element to the display position corresponding to each element.
12. The device according to claim 7, characterized in that The device also includes a deployment module, which is used to obtain sub-application resources of each sub-application corresponding to the management system; encrypt the sub-application resources of each sub-application to obtain encrypted sub-application resources; generate a version package based on the encrypted sub-application resources; and the version package is used to be deployed on the server corresponding to the management system.
13. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
14. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
15. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
