Application integration system and application integration method
By establishing a total business integration portal and loading framework in the application integration system, local refresh and remote loading of the application are achieved, the problems of page refresh and server resource consumption in the existing technology are solved, and user experience and development efficiency are improved.
Patent Information
- Application Number
- CN202010099837.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-02-18
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2040-02-18
AI Technical Summary
In the prior art, roaming between different applications through hyperlink jumps leads to page refresh, resulting in blank interface, large server resources consumption, poor user experience, and business application developers need to manually introduce navigation scripts for integration and debugging, which increases development quantity.
By establishing a total business integration portal, it provides a loading framework. When users click on the public menu, only corresponding application scripts are loaded, local page refresh is achieved, server load is reduced, and developers can manually integrate and debug work.
Improves user experience, reduces server load, reduces the workload of business application developers, and improves page loading speed and development efficiency.
Smart Images

Figure CN113282851B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to an application integration system and an application integration method. Background Art
[0002] In actual software project development, different business applications need to be integrated together. In order to integrate different business applications together, a common navigation script is usually provided. The common navigation script includes the business logo image, business menu, menus of all business applications that need to be integrated, current login user information, etc. Then, the business application introduces the navigation script into its own business application during the development phase, thereby realizing the integration of business applications.
[0003] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art: In the prior art, roaming between different applications is completed through hyperlink jumps, that is, cross-application jumps require direct refreshing of the entire page, and refreshing the entire page will cause a short period of blank interface, and the header information also needs to be loaded repeatedly. When the number of integrated business application systems is large, the server needs to process a large number of repeated requests, which will consume a certain amount of server resources, the overall page loading speed will become slower and slower, and the user experience will be poor. In addition, the developers of business applications need to manually introduce navigation scripts. When the header needs to be significantly modified, each business application needs to reintegrate and introduce a new version of the navigation script to achieve the upgrade of the new function. This operation will bring a certain amount of development and reintegration and debugging workload to the business application. Summary of the invention
[0004] In view of this, the embodiment of the present invention provides an application integration system and an application integration method, which establishes a general business integration portal (i.e., portal page), puts the menu of the public part into the portal, and provides a loading framework in the portal. When the user clicks the public menu, the loading of each application is realized by calling the framework. When loading an application, the portal only needs to load the corresponding application script, and the public areas such as the page header do not need to be refreshed. Only the work area corresponding to the business application is refreshed, that is, the loading of the business application is realized through the remote loading technology, and the partial refresh of the page is realized, thereby improving the user experience and reducing the server load.
[0005] To achieve the above object, according to one aspect of an embodiment of the present invention, an application integration system is provided, the application integration system comprising a portal page, a request generation module, a remote loading module and an application integration module;
[0006] The request generation module is used to generate an application access request in response to a user's operation on the portal page;
[0007] The remote loading module is used to pull the business application script according to the application access request;
[0008] The application integration module is used to generate interface elements of the business application based on the business application script, and render them on the entry page to complete the integration of the business application and the entry page.
[0009] In an optional embodiment, the portal page includes a page header public area, and a business application menu is displayed in the page header public area;
[0010] The acquisition module is also used to generate an application access request in response to a menu selection operation of a user in the common area of the page header.
[0011] In an optional embodiment, the portal page also includes a business area;
[0012] The application integration module is further used to render the interface elements of the business application generated based on the business application script in the business area to complete the integration of the business application and the portal page.
[0013] In an optional embodiment, the application integration module is further used for:
[0014] Based on the business application script, forming a predetermined application component object;
[0015] Calling a preset rendering method, generating an interface element based on the predetermined application component object, and adding the interface element to the page element of the business area;
[0016] The application program interface corresponding to the business application script is called to obtain application data and load the obtained application data into the business area to complete the integration of the business application and the portal page.
[0017] In an optional embodiment, the system further comprises a script development tool for developing business application scripts, wherein the script development tool integrates common functional components of the portal page.
[0018] To achieve the above object, according to another aspect of an embodiment of the present invention, there is provided an application integration method, comprising:
[0019] In response to the user's operation on the entry page, generating an application access request;
[0020] Pulling a business application script according to the application access request;
[0021] The interface elements of the business application are generated based on the business application script and rendered on the entry page to complete the integration of the business application and the entry page.
[0022] In an optional embodiment, the portal page includes a header public area and a business area, and a business application menu is displayed in the header public area;
[0023] In response to the user's operation on the portal page, generating the application access request includes: generating the application access request in response to the user's menu selection operation in the public area of the page header;
[0024] Generating interface elements of the business application based on the business application script and rendering them on the entry page to complete the integration of the business application and the entry page includes: rendering the interface elements of the business application generated based on the business application script in the business area to complete the integration of the business application and the entry page.
[0025] In an optional embodiment, rendering the interface element of the business application generated based on the business application script in the business area to complete the integration of the business application and the portal page includes:
[0026] Based on the business application script, forming a predetermined application component object;
[0027] Calling a preset rendering method, generating an interface element based on the predetermined application component object, and adding the interface element to the page element of the business area;
[0028] The application program interface corresponding to the business application script is called to obtain application data and load the obtained application data into the business area to complete the integration of the business application and the portal page.
[0029] To achieve the above-mentioned purpose, according to another aspect of an embodiment of the present invention, there is provided an electronic device, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the application integration method of an embodiment of the present invention.
[0030] To achieve the above objective, according to another aspect of an embodiment of the present invention, a computer-readable medium is provided, on which a computer program is stored, and when the program is executed by a processor, the application integration method of the embodiment of the present invention is implemented.
[0031] One embodiment of the above invention has the following advantages or beneficial effects: by establishing a general business integration portal (i.e., portal page), placing the menu of the public part in the portal, and providing a loading framework in the portal, when the user clicks the public menu, each application is loaded by calling the framework. When loading an application, the portal only needs to load the corresponding application script, and public areas such as the page header do not need to be refreshed. Only the work area corresponding to the business application is refreshed, that is, the loading of the business application is realized through remote loading technology, and partial refresh of the page is realized, thereby improving the user experience and reducing the server load.
[0032] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.
[0034] Figure 1 is a schematic diagram of the main modules of the business application integration system according to an embodiment of the present invention;
[0035] Figure 2 is a schematic diagram of main modules of a business application integration system according to another embodiment of the present invention;
[0036] Figure 3 is a schematic diagram of a process of business application integration of a business application integration system according to an embodiment of the present invention;
[0037] Figure 4 This is a schematic diagram of a process of developing a business application script using a script development tool in a business application integration system according to an embodiment of the present invention;
[0038] Figure 5 is a schematic diagram of the main process of the application integration method according to an embodiment of the present invention;
[0039] Figure 6 is a schematic diagram of a sub-process of an application integration method according to an embodiment of the present invention;
[0040] Figure 7 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;
[0041] Figure 8 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION
[0042] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0043] Figure 1 is a schematic diagram of the main modules of the application integration system 100 according to an embodiment of the present invention. Figure 1 As shown, the system application integration system 100 includes a portal page 101 , a request generation module 102 , a remote loading module 103 and an application integration module 104 .
[0044] Among them, the entry page 101 is used to provide a visual public access interface. As an example, the entry page 101 includes a header public area, a footer public area and a business area. The header public area is used to display public information such as the logo, business application menu, and the currently logged-in user. The menus of all business applications are uniformly managed (for example, hierarchical management of menus) and rendered in the header public area. The footer public area is used to display optional operation prompt information. The business area is used to display components or interfaces of remote business applications. When a user visits the entry page for the first time, the default business application will be displayed in the business area (the default business application can be set in advance). When the user needs to jump to other business applications, the corresponding business application will be loaded according to the menu selected by the user.
[0045] The request generation module 102 is used to generate an application access request in response to a user's operation on the portal page. Specifically, the request generation module 102 is used to generate an application access request in response to a user's menu selection operation in the public area of the page header.
[0046] The remote loading module 103 is used to pull the business application script according to the application access request.
[0047] In actual scenarios, business application scripts are generally published on a server, which is usually not the same server as the server where the entry page is located, so the business application scripts need to be loaded remotely.
[0048] The application integration module 104 is used to generate the interface elements of the business application based on the business application script and render them on the portal page to complete the integration of the business application and the portal page. Specifically, the application integration module 10 renders the interface elements of the business application generated based on the business application script in the business area to complete the integration of the business application and the portal page.
[0049] More specifically, the application integration module 104 completes the integration of the business application and the portal page according to the following steps:
[0050] Based on the business application script, forming a predetermined application component object;
[0051] Calling a preset rendering method, generating an interface element based on the predetermined application component object, and adding the interface element to the page element of the business area;
[0052] The application program interface corresponding to the business application script is called to obtain application data and load the obtained application data into the business area to complete the integration of the business application and the portal page.
[0053] The predetermined application component object may be a react / vue component object. React is a Javascript library for building a user interface, and vue is a progressive framework for building a user interface. The preset rendering method may be a render function, which is used to render the react / vue component object.
[0054] Specifically, when the user selects a menu, the business script of the remote business application is first pulled, the business script is restored into a react / vue component object, added to the runtime environment of the current front-end framework, and implanted into the business area. The render method is called for rendering, and finally the business application's API (application programming interface) is called to read the business application data to complete the application integration.
[0055] The application integration system of the embodiment of the present invention establishes a general business integration entry portal (i.e., an entry page), places the menu of the public part in the entry portal, and provides a loading framework in the entry portal. When the user clicks on the public menu, the loading of each application is realized by calling the framework. When loading an application, the entry portal only loads the corresponding application script, and public areas such as the header do not need to be refreshed. Only the work area corresponding to the business application is refreshed, that is, the loading of the business application is realized through remote loading technology, and partial refresh of the page is realized, thereby improving the user experience and reducing the server load. Moreover, information such as the header navigation is stored in the entry page, and each business application developer does not need to manually introduce these common components. The business application developer only focuses on the business application logic development, which reduces the workload of the business application developer.
[0056] In an optional embodiment, the system further comprises a script development tool for developing business application scripts, wherein the script development tool integrates common functional components of the portal page.
[0057] In this embodiment, the business application script loaded by the remote loading module needs to meet the requirements of integrated application development, so developers need to use the provided script development tool to help users develop business applications that meet the specifications. The process of developing business application scripts using the script development tool includes two processes: local debugging and script packaging.
[0058] Since the entry page in the application integration system of the embodiment of the present invention integrates the common functions of the business application (i.e., the functions of the header common area and the footer common area), it is not necessary to integrate the common functions when the business application script is developed. Therefore, the overall operation effect of the business application cannot be visualized in the development stage, so it is necessary to use the front-end mock technology (mock is to create a mock object to simulate the behavior of the object for some objects that are not easy to construct / obtain during the test process), and the application program interface of the business application is visualized in the development stage through local mock simulation, and the front-end components of the common function area are integrated in the script development tool. The menu, logo, logged-in user and other information are implanted in the script development tool, and the obtained API data simulates the real entry page data. The usual practice is to set the path of the mock API in the react / vue project, and change the operation mode of the entry page and the request generation module to the local mock mode, then the API request will return the local simulation data to help developers display the common function area. The script packaging process packages the business application into react / vue components, strips away the locally simulated components and data, and only packages the content of the business application. The react / vue components are generated into a native js script (JavaScript, abbreviated as js, is a lightweight, interpreted or just-in-time compiled programming language with function priority) through the webpack tool (webpack is a module packager for modern JavasScript applications), and deployed to the web server of the business application for remote loading of modules and remote calls.
[0059] The application integration system of the embodiment of the present invention uses a script development tool to perform business development. The script development tool is introduced into the business development project, public function components are introduced, simulation data is set, the API simulation mode of the public function is turned on, and then business development is started, which is more convenient for users to debug and view the development effect in a visual way.
[0060] Figure 2 is an architecture diagram of an application integration system according to another embodiment of the present invention. Figure 2 As shown, the application integration system includes a general business entry module, a business application module and a script development tool.
[0061] Among them, the general business entry module is used to set the layout of the public access interface and implement the remote loading mechanism of the business application script, inject the remote script into the specific business area and render the business application interface; the business application module is responsible for using the script development tool to develop and debug specific business applications, and package and publish them into business application scripts. The script development tool is responsible for providing the packaging of the front-end interface and local auxiliary debugging functions.
[0062] Specifically, the general business entry module is used to establish the page layout of the general entry, which usually includes three parts: header, footer, and business work area. The header displays public information such as the logo, menu, and currently logged-in user. The footer is responsible for displaying specific prompt information for some operations. The work area is responsible for rendering remote business application components. Once the layout is established, the entry page is formed. Users access the unified general entry page address to achieve roaming between applications. When the user visits for the first time, the general entry page will be loaded first, and a default application will be selected to be displayed in the specific business area. When the user needs to jump to other business applications, the corresponding business application script will be loaded remotely according to the selected menu.
[0063] When the user selects a menu, the business script of the remote business application is first pulled, the business script is restored to a react / vue component object, added to the runtime environment of the current front-end framework, and implanted into the business application area. The render method is called for rendering, and finally the business application API is called to read the business application data to complete the integration of the business application. Specifically, the process is as follows: Figure 3 shown.
[0064] After using remote loading technology, the development process is different from the previous development mode. The main difference is that it is necessary to simulate the public functions of the general business entry module and use script tools to package them into business scripts. Other processes can still be developed according to the previous process. Specifically, the process of using script development tools to develop business application scripts is as follows: Figure 4 As shown in the figure, the script development tool is introduced into the business development project, the public function components are introduced, the simulation data is set, the API simulation mode of the public function is turned on, and then the business development is started, which is convenient for users to debug and view the development effect in a visual way. After the development is completed, the application is packaged into a script that can be published through the script development tool, which only includes the code of the business application itself, forming a react / vue component for the main entrance to call and render.
[0065] The script development tool of the embodiment of the present invention integrates the front-end components of the public function area, and uses the front-end mock technology to simulate the interface of the back-end API through local mock to realize the visualization of the development stage. This is because the business application side does not need to integrate public functions, and the overall operation effect of the business application cannot be visualized in the development stage. Therefore, it is necessary to use the front-end mock technology to simulate the interface of the back-end API through local mock to realize the visualization of the development stage. The API for obtaining information such as menus, logos, and logged-in users is implanted in the script tool to simulate the real total business entrance data. The usual practice is to set the path of the mock API in the react / vue project, and change the operation mode of the module of the public access data of the front-end framework to the local mock mode, then the request of the API will return the local simulation data to help developers display the public function area. The business application is packaged into a react / vue component, the components and data of the local simulation are stripped off, and only the content of the business application part is packaged. The business application react / vue is packaged to generate a native js script through the webpack tool, and deployed on the web server of the business application for remote call of the total business entrance module.
[0066] The application integration system of the embodiment of the present invention establishes a general business integration portal (i.e., portal page), puts the menu of the public part into the portal, and provides a loading framework in the portal. When the user clicks the public menu, the loading of each application is realized by calling the framework. When loading an application, the portal only loads the corresponding application script, and the public areas such as the page header do not need to be refreshed. Only the work area corresponding to the business application is refreshed, that is, the loading of the business application is realized through the remote loading technology, and the partial refresh of the page is realized, thereby improving the user experience and reducing the server load.
[0067] Figure 5 FIG. 1 is a schematic diagram of the main process of the business application integration method according to an embodiment of the present invention. Figure 5 As shown, the method includes:
[0068] Step S501: In response to the user's operation on the portal page, an application access request is generated.
[0069] The entry page includes a header public area and a business area, and the business application menu is displayed in the header public area.
[0070] Step S502: Pull the business application script according to the application access request.
[0071] Specifically, this step includes: generating an application access request in response to a menu selection operation by a user in a common area of a page header.
[0072] Step S503: Generate interface elements of the business application based on the business application script and render them on the portal page to complete the integration of the business application and the portal page. Specifically, render the interface elements of the business application generated based on the business application script in the business area to complete the integration of the business application and the portal page.
[0073] In an optional embodiment, if Figure 6 As shown, this step includes the following sub-steps:
[0074] Step S601: forming a predetermined application component object based on the business application script;
[0075] Step S602: calling a preset rendering method, generating an interface element based on the predetermined application component object, and adding the interface element to the page element of the business area;
[0076] Step S603: calling the application program interface corresponding to the business application script, acquiring application data and loading the acquired application data into the business area to complete the integration of the business application and the portal page.
[0077] The business application integration method of the embodiment of the present invention establishes a general business integration portal (i.e., portal page), puts the menu of the public part into the portal, and provides a loading framework in the portal. When the user clicks the public menu, the loading of each application is realized by calling the framework. When loading the application, the portal only loads the corresponding application script, and the public areas such as the page header do not need to be refreshed. Only the work area corresponding to the business application is refreshed, that is, the loading of the business application is realized through the remote loading technology, and the partial refresh of the page is realized, thereby improving the user experience and reducing the server load.
[0078] Figure 7 An exemplary system architecture 700 is shown to which the application integration method or application integration system according to the embodiment of the present invention can be applied.
[0079] like Figure 7 As shown, system architecture 700 may include terminal devices 701, 702, 703, network 704 and server 705. Network 704 is used to provide a medium for communication links between terminal devices 701, 702, 703 and server 705. Network 704 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0080] Users can use terminal devices 701, 702, and 703 to interact with server 705 through network 704 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 701, 702, and 703, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc.
[0081] The terminal devices 701 , 702 , and 703 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.
[0082] The server 705 may be a server that provides various services, such as a backend management server that provides support for shopping websites browsed by users using the terminal devices 701, 702, and 703. The backend management server may analyze and process the received data such as product information query requests, and feed back the processing results (such as target push information and product information) to the terminal device.
[0083] It should be noted that the application integration method provided in the embodiment of the present invention is generally executed by the server 705 , and accordingly, the application integration system is generally set in the server 705 .
[0084] It should be understood that Figure 7 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0085] Reference below Figure 8 , which shows a schematic diagram of the structure of a computer system 800 of a terminal device suitable for implementing an embodiment of the present invention. Figure 8 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0086] like Figure 8 As shown, the computer system 800 includes a central processing unit (CPU) 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage part 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the system 800 are also stored. The CPU 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0087] The following components are connected to the I / O interface 805: an input section 806 including a keyboard, a mouse, etc.; an output section 807 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 808 including a hard disk, etc.; and a communication section 809 including a network interface card such as a LAN card, a modem, etc. The communication section 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to the I / O interface 805 as needed. A removable medium 811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 810 as needed, so that a computer program read therefrom is installed into the storage section 808 as needed.
[0088] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 809, and / or installed from the removable medium 811. When the computer program is executed by the central processing unit (CPU) 801, the above-mentioned functions defined in the system of the present invention are executed.
[0089] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0090] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0091] The modules involved in the embodiments of the present invention may be implemented in software or hardware. The modules described may also be set in a processor. For example, they may be described as: a processor includes a sending module, an acquisition module, a determination module, and a first processing module. The names of these modules do not, in some cases, constitute a limitation on the unit itself. For example, the sending module may also be described as a "module for sending a picture acquisition request to the connected server."
[0092] As another aspect, the present invention further provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes:
[0093] In response to the user's operation on the entry page, generating an application access request;
[0094] Pulling a business application script according to the application access request;
[0095] The interface elements of the business application are generated based on the business application script and rendered on the entry page to complete the integration of the business application and the entry page.
[0096] The technical solution of the embodiment of the present invention is to establish a general business integration portal (i.e., portal page), put the menu of the public part in the portal, and provide a loading framework in the portal. When the user clicks the public menu, the loading of each application is realized by calling the framework. When loading the application, the portal only needs to load the corresponding application script, and the public areas such as the page header do not need to be refreshed. Only the work area corresponding to the business application is refreshed, that is, the loading of the business application is realized through the remote loading technology, and the partial refresh of the page is realized, thereby improving the user experience and reducing the server load.
[0097] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. An application integration system, characterized in that: The application integration system includes an entry page, a request generation module, a remote loading module, an application integration module and a script development tool; The request generation module is used to generate an application access request in response to a user's operation on the portal page; The remote loading module is used to pull the business application script according to the application access request; The application integration module is used to generate interface elements of the business application based on the business application script, and render them on the entry page to complete the integration of the business application and the entry page; The script development tool is used to develop business application scripts. The script development tool integrates the common functional components of the portal page. The development process includes two processes: local debugging and script packaging: The local debugging process is as follows: use the front-end mock technology in the development stage to simulate the application program interface of the business application through local mock to realize the visualization of the development stage, and integrate the front-end components of the public function area of the entry page with the script development tool; implant the required information in the script development tool, and obtain the API data to simulate the real entry page data; The script packaging process is as follows: package the business application into a react / vue component, strip off the locally simulated components and data, package only the content of the business application, use the webpack tool to generate a native js script from the react / vue component, and deploy it to the web server of the business application.
2. The system according to claim 1, characterized in that The entry page includes a page header public area, and a business application menu is displayed in the page header public area; The request generation module is also used to generate an application access request in response to a menu selection operation of a user in the common area of the page header.
3. The system according to claim 2, characterized in that The entry page also includes a business area; The application integration module is further used to render the interface elements of the business application generated based on the business application script in the business area to complete the integration of the business application and the portal page.
4. The system according to claim 3, characterized in that The application integration module is also used for: Based on the business application script, forming a predetermined application component object; Calling a preset rendering method, generating an interface element based on the predetermined application component object, and adding the interface element to the page element of the business area; The application program interface corresponding to the business application script is called to obtain application data and load the obtained application data into the business area to complete the integration of the business application and the portal page.
5. An application integration method, characterized in that: include: In response to the user's operation on the entry page, generating an application access request; Pulling a business application script according to the application access request; Generate interface elements of the business application based on the business application script, and render them on the entry page to complete the integration of the business application and the entry page; The business application script is developed by a script development tool, which integrates the common functional components of the entry page. The development process includes two processes: local debugging and script packaging: The local debugging process is as follows: use the front-end mock technology in the development stage to simulate the application program interface of the business application through local mock to realize the visualization of the development stage, and integrate the front-end components of the public function area of the entry page with the script development tool; implant the required information in the script development tool, and obtain the API data to simulate the real entry page data; The script packaging process is as follows: package the business application into a react / vue component, strip off the locally simulated components and data, package only the content of the business application, use the webpack tool to generate a native js script from the react / vue component, and deploy it to the web server of the business application.
6. The method according to claim 5, characterized in that The entry page includes a header public area and a business area, and the business application menu is displayed in the header public area; In response to the user's operation on the portal page, generating the application access request includes: generating the application access request in response to the user's menu selection operation in the public area of the page header; Generating interface elements of the business application based on the business application script and rendering them on the entry page to complete the integration of the business application and the entry page includes: rendering the interface elements of the business application generated based on the business application script in the business area to complete the integration of the business application and the entry page.
7. The method according to claim 6, characterized in that Rendering the interface elements of the business application generated based on the business application script in the business area to complete the integration of the business application and the portal page includes: Based on the business application script, forming a predetermined application component object; Calling a preset rendering method, generating an interface element based on the predetermined application component object, and adding the interface element to the page element of the business area; The application program interface corresponding to the business application script is called to obtain application data and load the obtained application data into the business area to complete the integration of the business application and the portal page.
8. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 5 to 7.
9. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 5 to 7 is implemented.
