WO2025030524A1 - Method and apparatus for back-end data acquisition by webpage component, and computer device - Google Patents
Method and apparatus for back-end data acquisition by webpage component, and computer device Download PDFInfo
- Publication number
- WO2025030524A1 WO2025030524A1 PCT/CN2023/112348 CN2023112348W WO2025030524A1 WO 2025030524 A1 WO2025030524 A1 WO 2025030524A1 CN 2023112348 W CN2023112348 W CN 2023112348W WO 2025030524 A1 WO2025030524 A1 WO 2025030524A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- data
- component
- request
- web page
- webpage
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
Definitions
- the present application relates to the industrial field, and in particular, to a method, apparatus, computer equipment and storage medium for a web page component to obtain background data.
- Low-code web page display pages are gradually being widely used in industrial applications. For example, low-code widgets are used to display on the front-end web page.
- low-code front-end web page components to obtain corresponding data from the backend, and there are also problems such as complex configuration and complex testing. How to quickly and easily obtain backend data and how to distribute it to multiple low-code components on the front end of the web page to display the corresponding data information is a problem that needs to be solved.
- the present application provides a method for a web page component to obtain background data, wherein a data request of a front-end web page is received; corresponding background data is obtained through an event bus according to a subscription topic of the data request; and the data is sent to a corresponding component of the front-end web page.
- the web page can uniformly obtain the backend data for the web page components through the event bus, providing a unified support and docking method for the data of the web page components.
- the data request includes a Websocket data request and an Http data request
- receiving the data request of the front-end web page includes: receiving a Websocket data request or an Http data request of the front-end web page.
- the event bus can also connect to two different data request methods, Websocket and Http, to facilitate web components to obtain or request data from the background.
- the front-end webpage includes a first component and a second component, and the data is sent to the corresponding component of the front-end webpage, wherein the corresponding component is the first component, and further includes: receiving the output data of the first component through the event bus; if the subscription topic of the second component is related to the first component, then The output data of the first component is sent to the second component through the event bus.
- components can obtain corresponding data through the event bus on the premise of subscribing to topics, which facilitates the process of data sharing and transmission between components.
- receiving the data request of the front-end web page includes: receiving the data request of the single web page application.
- the present application also discloses a device for obtaining background data through an event bus, wherein a request receiving module is used to receive data requests from front-end web pages; an event bus module is used to obtain corresponding background data based on a subscription topic of the data request; and a data sending module is used to send the data to a corresponding component of the front-end web page.
- the present application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and wherein the processor implements the above method when executing the computer program.
- the present application also provides a computer-readable storage medium on which a computer program is stored.
- a computer program is stored on which a computer program is stored.
- the present application also provides a computer program product, which is tangibly stored on a computer-readable medium and includes computer-executable instructions.
- the computer-executable instructions When executed, at least one processor is enabled to perform the above-mentioned method.
- FIG. 1 is a schematic diagram of a process of a method for a web page component to obtain background data according to an embodiment of the present application.
- FIG. 2 is a schematic diagram of an apparatus for a web page component to obtain background data according to an embodiment of the present application.
- FIG3 is a schematic diagram of a computer device used by a web page component to obtain background data according to an embodiment of the present application.
- Low-code web page display pages are gradually being widely used in industrial applications. For example, low-code widgets are used to display on the front-end web page.
- low-code front-end web page components to obtain corresponding data from the backend, and there are also problems such as complex configuration and complex testing. How to quickly and easily obtain backend data and how to distribute it to multiple low-code components on the front end of the web page to display the corresponding data information is a problem that needs to be solved.
- the implementation scenario of the present application is to use the event bus as an intermediate medium to provide a connection between the components on the web page and the background data.
- a data request can be uniformly sent to the event bus.
- the event bus receives the data request, it obtains the corresponding data from the background, and then feeds the data back to the component on the front end of the web page to complete the corresponding graphical display of the data of the component.
- the way in which the above components uniformly obtain data from the event bus is more convenient and unified.
- the present application discloses a low-code industrial application design. After obtaining the data from the back end, the data is displayed on the widget of the front-end web page to complete the asynchronous data update of the widget of the front-end web page.
- the present application discloses a method for a web page component to obtain background data, which includes:
- the front-end webpage is a usage webpage displayed to the user.
- the webpage includes components.
- the component is a webpage module that can be used to obtain data and then display it through certain charts or other methods.
- the component is displayed on the front-end webpage.
- a data request can be sent by loading or setting the front-end webpage.
- the data request is related to the widget and is used to obtain the data required for the widget to display so as to display it on the corresponding component.
- the corresponding front-end webpage includes not only a plurality of widgets but also a control panel.
- the control panel can set the data request method of the widget, such as data topic name, data access type, security level, access address (Data URL), etc.
- the data request includes a Websocket data request and an Http data request
- the receiving of the data request of the front-end webpage includes: receiving a Websocket data request or an Http data request of the front-end webpage.
- the data request comes from a widget of the front-end webpage made by the low-code platform.
- the data request contains the subscribed topic.
- the way this application obtains data is through the subscription of the topic, so as to obtain the data under the corresponding topic from the background.
- the data will be transmitted to the event bus.
- the data acquisition method is relatively convenient and asynchronous. In short, after the event bus obtains the corresponding data request, the corresponding data will be obtained from the background through the subscribed topic.
- the event bus After the event bus obtains the corresponding data, it sends the corresponding data to the corresponding component of the front-end webpage, so that after the corresponding component obtains the corresponding data, it can further display the obtained data.
- the data distribution includes: the push data received from the server by Websocket and the response data obtained after requesting the server by Http.
- the data distribution includes the push data received from the server after establishing the Websocket connection and the response data obtained after requesting the server data under the Http protocol.
- the Websocket is a protocol that can receive data pushed by the server after establishing a long link.
- the event bus obtains the corresponding request and obtains data from the background, the background will actively push the data of the corresponding topic to the event bus.
- the event bus After receiving the data, the event bus sends it to the components of the front-end web page, thereby completing the data update of the front-end web page components.
- the HTTP is a protocol that usually requests the server to obtain response data, which is triggered by the loading of the web page.
- the data request is sent to the event bus, which then obtains data from the background and feeds it back to the component of the front-end web page.
- Each update of the data display of the component is completed by loading the web page. If there is no data request in the form of HTTP, the display data of the component of the front-end web page remains unchanged.
- the front-end web page includes a first component and a second component, and the data is sent to the corresponding component of the front-end web page, wherein the corresponding component is the first component, and further includes: receiving the output data of the first component through the event bus; if the subscription topic of the second component is related to the first component, sending the output data of the first component to the second component through the event bus.
- some components can obtain the output data of other components as the data they need. These components can be called second components, and they subscribe to the relevant topics of other components.
- the subscribed components can be called first components.
- the first component subscribes to the relevant topics of the background data.
- the second component subscribes to the relevant topics of the first component, and the purpose is to obtain the processed data or output data of the first component. After completing data processing, the first component will send the corresponding output data to the event bus.
- the second component sends or has previously sent a data request for the topic of the first component to the event bus, it can obtain the data of the topic of the first component that it has subscribed to through the event bus; in other words, after receiving the data about a topic from the first component, the event bus will send it to the relevant second component that has subscribed to this topic. After receiving the corresponding data, the second component displays the corresponding data.
- receiving the data request of the front-end web page includes: receiving the data request of the single web page application.
- the method of connecting the front-end web widget and the back-end data transmission through the event bus of the present application is suitable for single web applications because the switching page of a single web application only replaces the component in the routing module, so the event bus is always retained and does not need to be frequently reloaded.
- the event bus can also be called a web fronted event bus (Web fronted event bus), which can support corresponding components of multiple web front ends and can exchange data with the back end.
- Web fronted event bus can support corresponding components of multiple web front ends and can exchange data with the back end.
- the event bus will obtain the data of the event of the corresponding topic from the background, and then push it to the web front end component or load it to the web front end component.
- the corresponding web front end component will display the data of the event of the subscribed topic accordingly.
- the components of the web front end can be expanded arbitrarily, and the web page components generated by low code that subscribe to the same data can obtain the data of the events subscribed by the background through the web front end event bus as long as they are connected to the web front end event bus.
- the backend data is subscribed through subscription.
- the data connection and transmission from the backend data to the frontend web page component can be completed through an intermediate medium, such as a network frontend event bus, and further displayed on the components of the frontend web page.
- component 2 can send the processed topic topic a2 and data data a2 to the event bus through its own component, and component 3 subscribes to topic topic a2, so component 3 obtains the corresponding data data a2 of the corresponding topic topic a2 from the event bus, so that component 3 completes the corresponding data display.
- the displayed data content is the corresponding data data a2 of topic topic a2.
- the web page front-end event bus performs the same processing for the two data acquisition modes of Websocket and HTTP. This is equivalent to using a unified configuration for both Websocket and HTTP requests, decoupling different request methods, and only associating the topic itself. In this way, both Websocket requirements and HTTP requirements can be processed uniformly.
- the configuration of the component may include: data topic name, data access type, security level, and access address (Data URL).
- Data URL access address
- Websocket and HTTP can be as follows:
- the left half of the webpage is the webpage front-end component
- the right half of the webpage is the configuration panel.
- the configuration panel can be used to configure the contents of Table 1 and Table 2 above.
- Manufacturing systems need to push information to a web front end in product line operations to display charts or request approvals. If many web front end components are composed of low-code engines that lack unified network connection management, events from websocket connections on the back end may be difficult to scale.
- Web front-end components composed of low-code engines usually configure network connections through Websocket or HTTP, which leads to complexity in development, maintenance and testing.
- Network front-end components composed of low-code engines usually obtain data through independent http requests (standalone http request), and may require consequence triggers to organize interactions with other front-end components. If there is no unified event bus in the network front-end code base, it may increase the complexity of the system.
- this application designs an event bus for the front end of the web page, and connects the data between the front end and the back end through the event bus.
- the details are as follows:
- the further developed web frontend event bus based on Rx.JS will solve the problem of extending components for event response.
- the event bus provides subscription and publishing interfaces for each web frontend component, allowing low-code based web frontend components to get data or deliver data by topic with consequence for event, which means that web pages composed of low-code engines can send events in a simple way over network connections; however, frontend projects composed of single-page applications (Single Page Application) will be suitable for the present invention. Frontend projects composed of multi-page applications (Multi Page Application) cannot benefit from the general event bus.
- the production pipeline system can implement the network front end with a lower complexity code base design (network front end components based on user interface configuration) through component-level control capabilities.
- Rx.JS-based event bus can simplify the utilities of the network front end as follows:
- the event bus will use the observable function of Rx.JS (such as the observable function for events) to obtain asynchronous results (such as asynchronous acquisition through the Promise function) for Websocket (push) and HTTP (request loading), which allows the configuration to use the same code, thereby unifying the request configuration, resulting in the only association being the subject, which is used for Websocket or HTTP response processing. Therefore, the client code that handles the Websocket or HTTP receiving network connection will use the signal function of Rx.JS to send events to subscribers (observable objects). Therefore, during the development, maintenance, and testing process, this design simplifies the network front-end components developed based on the low-code engine.
- the design feature of this application is to receive http or websocket data requests through the event bus in an environment where a network front-end component (a network front-end component based on user interface configuration) is made using a low-code engine.
- Figure 2 provides a device 200 for a web page component to obtain background data, wherein a request receiving module 201 is used to receive a data request from a front-end web page; an event bus module 202 is used to obtain corresponding background data based on a subscription topic of the data request; and a data sending module 203 is used to send the data to a corresponding component of the front-end web page.
- a request receiving module 201 is used to receive a data request from a front-end web page
- an event bus module 202 is used to obtain corresponding background data based on a subscription topic of the data request
- a data sending module 203 is used to send the data to a corresponding component of the front-end web page.
- the data request includes a Websocket data request and an Http data request
- the request receiving module 201 is used to receive a Websocket data request or an Http data request of a front-end web page.
- the front-end webpage includes a first component and a second component, and the event bus module 202, Used for sending the data to the corresponding component of the front-end web page, wherein the corresponding component is a first component, and the event bus module 202 is also used to receive the output data of the first component; if the subscription topic of the second component is related to the first component, the output data of the first component is sent to the second component.
- the front-end web page is a single web application
- the request receiving module 201 is further used to receive a data request of the single web application.
- the device may include more or fewer modules to implement the described functions.
- at least one module in FIG. 2 may be further divided into a plurality of different submodules, each of which is used to perform at least a portion of the operations described herein in conjunction with the corresponding module.
- the device 200 may also include additional modules for performing other operations already described in the specification.
- the exemplary device 200 may be implemented using software, hardware, firmware, or any combination thereof.
- Fig. 3 provides a computer device.
- the computer device 300 may include a processor 302, and the processor 302 executes a computer program stored in a memory 304.
- the computer program is executed by the processor, the above method is implemented.
- FIG. 3 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the present application is applied.
- the specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
- Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc.
- Volatile memory may include random access memory (RAM) or external cache memory.
- RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
- the present application also provides a computer-readable storage medium on which a computer program is stored.
- a computer program is stored on which a computer program is stored.
- the present application also provides a computer program product, which is tangibly stored on a computer-readable medium and includes computer-executable instructions, which, when executed, cause at least one processor to perform the above method.
- the computer program can be stored and run in the cloud to perform the method.
- the components of the program can be deployed on multiple devices and the cloud.
- the corresponding steps can be deployed and run on a local or local computer, or run on different cloud devices, and transmit signals through a communication connection, or can be deployed and run on a local or local computer.
- This application does not limit the manner or method, and can flexibly deploy and deploy the corresponding technology, making full use of the cloud, big data, supercomputing power and other equipment and technologies to execute and complete the method.
- Articles may include storage media, which are used to store logic.
- Examples of storage media may include one or more types of computer-readable storage media capable of storing electronic data, including volatile memory or non-volatile memory, removable or non-removable memory, erasable or non-erasable memory, writable or rewritable memory, and the like.
- Examples of logic may include various software units, such as software components, programs, applications, computer programs, applications, system programs, machine programs, operating system software, middleware, firmware, software modules, routines, subroutines, functions, methods, processes, software interfaces, application program interfaces (APIs), instruction sets, computing codes, computer codes, code segments, computer code segments, words, values, symbols, or any combination thereof.
- articles may store executable computer program instructions, which, when executed by a processor, cause the processor to perform the methods and/or operations described herein.
- Executable computer program instructions may include any suitable type of code, such as source code, compiled code, interpreted code, executable code, static code, dynamic code, and the like.
- Executable computer program instructions can be implemented according to a predefined computer language, method or syntax for commanding a computer to perform a specific function.
- the instructions can be implemented using any appropriate high-level, low-level, object-oriented, visual, compiled and/or interpreted programming language.
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
Description
本申请涉及工业领域,具体地,涉及一种用于网页组件获取后台数据的方法、装置、计算机设备和存储介质。The present application relates to the industrial field, and in particular, to a method, apparatus, computer equipment and storage medium for a web page component to obtain background data.
低代码形式的网页展示页面在工业应用中正逐渐被广泛使用。例如使用低代码的小组件展示在前端的网页上。但是对于低代码的前端网页组件,从后台获取相应数据目前还没有成熟的方案,并且还伴有配置复杂和测试复杂等难题。关于如何方便快捷获取后端数据以及如何分发给网页前端的多个低代码组件,从而进行相应数据信息的展示,是需要解决的问题。Low-code web page display pages are gradually being widely used in industrial applications. For example, low-code widgets are used to display on the front-end web page. However, there is currently no mature solution for low-code front-end web page components to obtain corresponding data from the backend, and there are also problems such as complex configuration and complex testing. How to quickly and easily obtain backend data and how to distribute it to multiple low-code components on the front end of the web page to display the corresponding data information is a problem that needs to be solved.
发明内容Summary of the invention
提供本发明内容部分来以简化的形式介绍一些选出的概念,其将在下面的具体实施方式部分中被进一步描述。该发明内容部分并非是要标识出所要求保护的主题的任何关键特征或必要特征,也不是要被用于帮助确定所要求保护的主题的范围。The present invention summary section is provided to introduce some selected concepts in a simplified form, which will be further described in the following detailed description section. The present invention summary section is not intended to identify any key features or essential features of the claimed subject matter, nor is it intended to be used to help determine the scope of the claimed subject matter.
基于此,本申请提供一种用于网页组件获取后台数据的方法,其中,接收前端网页的数据请求;根据所述数据请求的订阅主题,通过事件总线获取后台的相应数据;将所述数据发送至所述前端网页的对应组件。Based on this, the present application provides a method for a web page component to obtain background data, wherein a data request of a front-end web page is received; corresponding background data is obtained through an event bus according to a subscription topic of the data request; and the data is sent to a corresponding component of the front-end web page.
通过上述方式,网页端可以统一地通过事件总线,为网页组件获取到后端的数据,为网页端组件的数据提供统一的支撑和对接方式。Through the above method, the web page can uniformly obtain the backend data for the web page components through the event bus, providing a unified support and docking method for the data of the web page components.
进一步的,其中,所述数据请求包括Websocket的数据请求以及Http的数据请求,所述接收前端网页的数据请求包括:接收前端网页的Websocket的数据请求或Http的数据请求。Furthermore, the data request includes a Websocket data request and an Http data request, and receiving the data request of the front-end web page includes: receiving a Websocket data request or an Http data request of the front-end web page.
通过上述方式,事件总线也可以对接Websocket和Http两种不同的数据请求方式,方便网页组件从后台获取或是请求数据。Through the above method, the event bus can also connect to two different data request methods, Websocket and Http, to facilitate web components to obtain or request data from the background.
进一步的,其中,所述前端网页包括第一组件和第二组件,所述将所述数据发送至所述前端网页的对应组件,其中所述对应组件为第一组件,进一步还包括:通过所述事件总线,接收所述第一组件的输出数据;若所述第二组件的订阅主题与所述第一组件相关,则 通过所述事件总线,将所述第一组件的输出数据发送至所述第二组件。Furthermore, the front-end webpage includes a first component and a second component, and the data is sent to the corresponding component of the front-end webpage, wherein the corresponding component is the first component, and further includes: receiving the output data of the first component through the event bus; if the subscription topic of the second component is related to the first component, then The output data of the first component is sent to the second component through the event bus.
通过上述方式,组件之间在订阅主题的前提下,可以通过事件总线获取相应的数据,方便了组件间数据分享、传输的过程。Through the above method, components can obtain corresponding data through the event bus on the premise of subscribing to topics, which facilitates the process of data sharing and transmission between components.
进一步的,其中,所述前端网页为单网页应用,所述接收前端网页的数据请求包括:接收所述单网页应用的数据请求。Furthermore, wherein the front-end web page is a single web page application, receiving the data request of the front-end web page includes: receiving the data request of the single web page application.
通过上述方式,利用事件总线,可以方便有效地为单网页应用获取相应的后台数据。Through the above method, using the event bus, the corresponding background data can be easily and effectively obtained for a single web application.
进一步的,本申请还公开一种用于事件总线获取后台数据的装置,其中,请求接收模块,用于接收前端网页的数据请求;事件总线模块,用于根据所述数据请求的订阅主题,获取后台的相应数据;数据发送模块,用于将所述数据发送至所述前端网页的对应组件。Furthermore, the present application also discloses a device for obtaining background data through an event bus, wherein a request receiving module is used to receive data requests from front-end web pages; an event bus module is used to obtain corresponding background data based on a subscription topic of the data request; and a data sending module is used to send the data to a corresponding component of the front-end web page.
本申请还提供了一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,其中,所述处理器执行所述计算机程序时实现上述方法。The present application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and wherein the processor implements the above method when executing the computer program.
本申请还提供了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述方法。The present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the above method is implemented.
本申请还提供了一种计算机程序产品,所述计算机程序产品被有形地存储在计算机可读介质上并且包括计算机可执行指令,所述计算机可执行指令在被执行时使至少一个处理器执行上述所述的方法。The present application also provides a computer program product, which is tangibly stored on a computer-readable medium and includes computer-executable instructions. When the computer-executable instructions are executed, at least one processor is enabled to perform the above-mentioned method.
在附图中对本公开的实现以示例的形式而非限制的形式进行了说明,附图中相似的附图标记表示相同或类似的部件。Implementations of the present disclosure are illustrated by way of example and not by way of limitation in the figures of the accompanying drawings in which like references indicate the same or similar parts.
图1是根据本申请的一实施方式的用于网页组件获取后台数据的方法的流程的示意图。FIG. 1 is a schematic diagram of a process of a method for a web page component to obtain background data according to an embodiment of the present application.
图2是根据本申请的一实施方式的用于网页组件获取后台数据的装置的示意图。FIG. 2 is a schematic diagram of an apparatus for a web page component to obtain background data according to an embodiment of the present application.
图3是根据本申请的一实施方式的用于网页组件获取后台数据的计算机设备的示意图。FIG3 is a schematic diagram of a computer device used by a web page component to obtain background data according to an embodiment of the present application.
其中,附图标记如下:The reference numerals are as follows:
S101-S103 步骤Steps S101-S103
200: 装置200: Device
201: 模块201: Module
202: 模块202: Module
203: 模块203: Module
300: 计算机设备300: Computer equipment
302: 处理器 302: Processor
304: 存储器304: Memory
在以下的说明书中,出于解释的目的,阐述了大量具体细节。然而,可以理解的是,本发明的实现无需这些具体细节就可以实施。在其它实例中,并未详细示出公知的电路、结构和技术,以免影响对说明书的理解。In the following description, a large number of specific details are set forth for the purpose of explanation. However, it is to be understood that the implementation of the present invention can be implemented without these specific details. In other examples, well-known circuits, structures and techniques are not shown in detail to avoid affecting the understanding of the description.
说明书通篇中对“一种实现”、“实现”、“示例性实现”、“一些实现”、“各种实现”等的引述表示所描述的本发明的实现可以包括特定的特征、结构或特性,然而,并不是说每个实现都必须要包含这些特定的特征、结构或特性。此外,一些实现可以具有针对其它实现描述的特征中的一些、全部,或者不具有针对其它实现描述的特征。References throughout the specification to "an implementation," "implementation," "exemplary implementations," "some implementations," "various implementations," etc., indicate that the implementation of the invention being described may include certain features, structures, or characteristics, however, it does not mean that every implementation must include these certain features, structures, or characteristics. Furthermore, some implementations may have some, all, or none of the features described for other implementations.
低代码形式的网页展示页面在工业应用中正逐渐被广泛使用。例如使用低代码的小组件展示在前端的网页上。但是对于低代码的前端网页组件,从后台获取相应数据目前还没有成熟的方案,并且还伴有配置复杂和测试复杂等难题。关于如何方便快捷获取后端数据以及如何分发给网页前端的多个低代码组件,从而进行相应数据信息的展示,是需要解决的问题。Low-code web page display pages are gradually being widely used in industrial applications. For example, low-code widgets are used to display on the front-end web page. However, there is currently no mature solution for low-code front-end web page components to obtain corresponding data from the backend, and there are also problems such as complex configuration and complex testing. How to quickly and easily obtain backend data and how to distribute it to multiple low-code components on the front end of the web page to display the corresponding data information is a problem that needs to be solved.
本申请的实施场景是通过事件总线作为中间媒介,为网页端的组件与后台数据之间提供连接,具体的,作为网页端的组件,通过订阅主题的方式,可以统一向事件总线发送数据请求,事件总线接收到数据请求之后,从后台相应地获取到相应数据,然后将数据反馈给网页前端的组件,以完成该组件的关于数据的相应图形展示,上述组件统一由事件总线获取数据的方式较为方便且统一。并且本申请公开的是一种低代码的工业应用设计,在获取到后端的数据之后,将数据展现在前端网页的小组件上,以完成前端网页的小组件异步式的数据更新。The implementation scenario of the present application is to use the event bus as an intermediate medium to provide a connection between the components on the web page and the background data. Specifically, as a component on the web page, by subscribing to a topic, a data request can be uniformly sent to the event bus. After the event bus receives the data request, it obtains the corresponding data from the background, and then feeds the data back to the component on the front end of the web page to complete the corresponding graphical display of the data of the component. The way in which the above components uniformly obtain data from the event bus is more convenient and unified. And the present application discloses a low-code industrial application design. After obtaining the data from the back end, the data is displayed on the widget of the front-end web page to complete the asynchronous data update of the widget of the front-end web page.
具体的,本申请公开一种用于网页组件获取后台数据的方法,其中,包括:Specifically, the present application discloses a method for a web page component to obtain background data, which includes:
S101,接收前端网页的数据请求。S101, receiving a data request from a front-end web page.
其中,所述前端网页是向用户显示的使用网页。所述网页包括组件。所述组件是可以用于获取数据之后,通过一定图表或者其他方式展示的网页模块。所述组件显示在所述前端网页上。在一些实施例中,通过前端网页的加载或者设置,可以发送出数据请求。所述数据请求与小组件相关,用于获取小组件展示需要的数据,以在相应组件上进行显示。The front-end webpage is a usage webpage displayed to the user. The webpage includes components. The component is a webpage module that can be used to obtain data and then display it through certain charts or other methods. The component is displayed on the front-end webpage. In some embodiments, a data request can be sent by loading or setting the front-end webpage. The data request is related to the widget and is used to obtain the data required for the widget to display so as to display it on the corresponding component.
在一些实施例中,相应前端网页除了包括多个小组件,还包括控制面板。所述控制面板可以设置所述小组件的数据请求方式,例如数据主题名称(Data topic name)、数据接入类型(Data access type)、安全等级(Security level)、访问地址(Data URL)等等。 In some embodiments, the corresponding front-end webpage includes not only a plurality of widgets but also a control panel. The control panel can set the data request method of the widget, such as data topic name, data access type, security level, access address (Data URL), etc.
进一步的,所述数据请求包括Websocket的数据请求以及Http的数据请求,所述接收前端网页的数据请求包括:接收前端网页的Websocket的数据请求或Http的数据请求。所述数据请求来自于低代码平台制作的前端网页的小组件。Furthermore, the data request includes a Websocket data request and an Http data request, and the receiving of the data request of the front-end webpage includes: receiving a Websocket data request or an Http data request of the front-end webpage. The data request comes from a widget of the front-end webpage made by the low-code platform.
S102,根据所述数据请求的订阅主题,通过事件总线获取后台的相应数据。S102, acquiring corresponding data in the background through the event bus according to the subscription topic of the data request.
其中,所述数据请求中包含订阅的主题。本申请获取数据的方式,是通过主题的订阅,从而从后台中获取相应主题下的数据。例如订阅了相关主题,当在后台产生或者发现相关主题的数据之后,所述数据便会传输给事件总线。所述数据获取的方式较为方便、且是异步的。总之,在事件总线获取到相应数据请求之后,通过订阅的主题,便会从后台获取相应的数据。Among them, the data request contains the subscribed topic. The way this application obtains data is through the subscription of the topic, so as to obtain the data under the corresponding topic from the background. For example, after subscribing to the relevant topic, when the data of the relevant topic is generated or discovered in the background, the data will be transmitted to the event bus. The data acquisition method is relatively convenient and asynchronous. In short, after the event bus obtains the corresponding data request, the corresponding data will be obtained from the background through the subscribed topic.
S103,将所述数据发送至所述前端网页的对应组件。S103, sending the data to the corresponding component of the front-end webpage.
其中,在事件总线获取到相应数据之后,便将相应数据发送至前端网页的相应组件,从而相应组件在获取到相应数据之后,便可以进一步展示所述获取到的数据。After the event bus obtains the corresponding data, it sends the corresponding data to the corresponding component of the front-end webpage, so that after the corresponding component obtains the corresponding data, it can further display the obtained data.
进一步的,所述数据分发包括:Websocket的收到服务器的推送数据以及Http的请求服务器后获取的响应数据。具体的,所述数据分发包括建立Websocket连接后收到服务器推送的数据以及Http协议下请求服务器数据后得到的响应数据。Further, the data distribution includes: the push data received from the server by Websocket and the response data obtained after requesting the server by Http. Specifically, the data distribution includes the push data received from the server after establishing the Websocket connection and the response data obtained after requesting the server data under the Http protocol.
所述Websocket是一种可以在建立长链接后接收服务器推送数据的协议,当事件总线获取到相应请求并从后台获取到数据之后,之后后台会将相应主题的数据主动推送给事件总线,事件总线在接收到数据后发送给前端网页的组件,从而完成前端网页组件的数据更新。The Websocket is a protocol that can receive data pushed by the server after establishing a long link. When the event bus obtains the corresponding request and obtains data from the background, the background will actively push the data of the corresponding topic to the event bus. After receiving the data, the event bus sends it to the components of the front-end web page, thereby completing the data update of the front-end web page components.
所述Http是一种通常是请求服务器获得响应数据的协议,通过网页端的加载而触发。当网页端加载并更新组件的数据显示时,所述数据请求发送给事件总线,事件总线然后向后台获取数据,再反馈给前端网页的组件。每次组件的数据展示的更新都是通过网页端加载完成。如果没有Http形式的数据请求,所述前端网页的组件的展示数据保持不变。The HTTP is a protocol that usually requests the server to obtain response data, which is triggered by the loading of the web page. When the web page loads and updates the data display of the component, the data request is sent to the event bus, which then obtains data from the background and feeds it back to the component of the front-end web page. Each update of the data display of the component is completed by loading the web page. If there is no data request in the form of HTTP, the display data of the component of the front-end web page remains unchanged.
进一步的,所述前端网页包括第一组件和第二组件,所述将所述数据发送至所述前端网页的对应组件,其中所述对应组件为第一组件,进一步还包括:通过所述事件总线,接收所述第一组件的输出数据;若所述第二组件的订阅主题与所述第一组件相关,则通过所述事件总线,将所述第一组件的输出数据发送至所述第二组件。Furthermore, the front-end web page includes a first component and a second component, and the data is sent to the corresponding component of the front-end web page, wherein the corresponding component is the first component, and further includes: receiving the output data of the first component through the event bus; if the subscription topic of the second component is related to the first component, sending the output data of the first component to the second component through the event bus.
具体的,在网页前端的组件中,某些组件可以是获取其他组件的输出数据作为自身需要的数据。这些组件可以称为第二组件,它们订阅其他组件的相关主题。而被订阅的组件可以称为第一组件。在一些实施例中,第一组件订阅的是后台数据的相关主题。而第二组件是订阅的第一组件的相关主题,目的是获取所述第一组件的处理数据或者输出数据。所 述第一组件在完成数据处理后,会将相应的输出数据发送给事件总线。因此,第二组件只要通过向事件总线发送或者之前发送过相关第一组件的主题的数据请求,则便可通过事件总线获取相应订阅的有关第一组件的主题的数据;或者说,事件总线会在接收到第一组件的关于某一主题的数据之后,发送给订阅过此主题的相关第二组件。第二组件在接收到相应数据之后,进行相应数据的展示。Specifically, among the components of the web page front end, some components can obtain the output data of other components as the data they need. These components can be called second components, and they subscribe to the relevant topics of other components. The subscribed components can be called first components. In some embodiments, the first component subscribes to the relevant topics of the background data. The second component subscribes to the relevant topics of the first component, and the purpose is to obtain the processed data or output data of the first component. After completing data processing, the first component will send the corresponding output data to the event bus. Therefore, as long as the second component sends or has previously sent a data request for the topic of the first component to the event bus, it can obtain the data of the topic of the first component that it has subscribed to through the event bus; in other words, after receiving the data about a topic from the first component, the event bus will send it to the relevant second component that has subscribed to this topic. After receiving the corresponding data, the second component displays the corresponding data.
进一步的,其中,所述前端网页为单网页应用,所述接收前端网页的数据请求包括:接收所述单网页应用的数据请求。Furthermore, wherein the front-end web page is a single web page application, receiving the data request of the front-end web page includes: receiving the data request of the single web page application.
具体的,本申请的通过事件总线,连接前端网页小组件与后台数据传输的方法,因为单网页应用切换页面只是在路由模块中替换组件,所以事件总线总是得以保留且无需频繁重新加载。因此适用于单网页应用。Specifically, the method of connecting the front-end web widget and the back-end data transmission through the event bus of the present application is suitable for single web applications because the switching page of a single web application only replaces the component in the routing module, so the event bus is always retained and does not need to be frequently reloaded.
进一步的,所述事件总线也可以称为网页前端事件总线(Web fronted event bus),可以支持多个网页前端的相应组件,并且可以与后端数据进行交换,当网页前端的组件订阅了某个主题的事件之后,所述事件总线便会从后台获取相应主题的事件的数据,然后推送给网页前端组件或者加载至网页前端组件,相应网页前端组件相应的展示所述订阅主题的事件的数据。通过上述方式,网页前端的组件可以任意的扩展,订阅同样数据的由低代码生成的网页组件只要保证与网页前端事件总线相连接,便可以通过网页前端事件总线获取后台所订阅的事件的数据。Furthermore, the event bus can also be called a web fronted event bus (Web fronted event bus), which can support corresponding components of multiple web front ends and can exchange data with the back end. When a component of a web front end subscribes to an event of a certain topic, the event bus will obtain the data of the event of the corresponding topic from the background, and then push it to the web front end component or load it to the web front end component. The corresponding web front end component will display the data of the event of the subscribed topic accordingly. In the above manner, the components of the web front end can be expanded arbitrarily, and the web page components generated by low code that subscribe to the same data can obtain the data of the events subscribed by the background through the web front end event bus as long as they are connected to the web front end event bus.
具体的,通过订阅的方式,将后端数据进行订阅,当加载所述前端网页时,便可通过一个中间媒介,例如网络前端事件总线,完成从后端数据到前端网页组件的数据连接以及传输,并且进一步展示在前端网页的组件上。Specifically, the backend data is subscribed through subscription. When the frontend web page is loaded, the data connection and transmission from the backend data to the frontend web page component can be completed through an intermediate medium, such as a network frontend event bus, and further displayed on the components of the frontend web page.
进一步的,一些组件还可以以另外组件的输出作为订阅的事件或者主题,将相应组件的事件或者主题的输出作为自己的获取数据。例如,组件2可以通过自身组件,将处理后的主题topic a2以及数据data a2发送给事件总线,而组件3订阅了主题topic a2,于是组件3从事件总线获取相应主题topic a2的相应数据data a2,从而组件3完成相应的数据展示。所述展示的数据内容就是主题topic a2的相应数据data a2。Furthermore, some components can also use the output of other components as subscribed events or topics, and use the output of the corresponding component's events or topics as their own acquired data. For example, component 2 can send the processed topic topic a2 and data data a2 to the event bus through its own component, and component 3 subscribes to topic topic a2, so component 3 obtains the corresponding data data a2 of the corresponding topic topic a2 from the event bus, so that component 3 completes the corresponding data display. The displayed data content is the corresponding data data a2 of topic topic a2.
进一步,所述网页前端事件总线对于Websocket以及HTTP两种数据获取模式进行等同处理。相当于对于Websocket和HTTP的请求,都采用统一的配置,解耦不同的请求方法,只关联主题(topic)本身。这样可以对于Websocket需求或者HTTP需求,都可以统一化处理。Furthermore, the web page front-end event bus performs the same processing for the two data acquisition modes of Websocket and HTTP. This is equivalent to using a unified configuration for both Websocket and HTTP requests, decoupling different request methods, and only associating the topic itself. In this way, both Websocket requirements and HTTP requirements can be processed uniformly.
进一步的,所述组件的配置可以包括:数据主题名称(Data topic name)、数据接入类型(Data access type)、安全等级(Security level)、访问地址(Data URL)。具体的,所
述Websocket以及HTTP的配置可以如下:
Furthermore, the configuration of the component may include: data topic name, data access type, security level, and access address (Data URL). The configuration of Websocket and HTTP can be as follows:
在一些实施例中,所述网页在配置时,网页左半部分是网页前端组件,网页右半部分是配置面板。所述配置面板可以用来配置上述表1和表2的内容。In some embodiments, when the webpage is configured, the left half of the webpage is the webpage front-end component, and the right half of the webpage is the configuration panel. The configuration panel can be used to configure the contents of Table 1 and Table 2 above.
进一步的,本申请还发现如下技术问题:Furthermore, the present application also found the following technical problems:
a.制造系统在产品线操作中需要将信息推送到网络前端以显示图表或请求批准,如果许多网络前端组件都是由缺乏统一网络连接管理的低代码引擎组成的,那么来自后端的websocket连接的事件可能难以扩展。a. Manufacturing systems need to push information to a web front end in product line operations to display charts or request approvals. If many web front end components are composed of low-code engines that lack unified network connection management, events from websocket connections on the back end may be difficult to scale.
b.由低代码引擎组成的Web前端组件通常通过Websocket或HTTP配置网络连接,这会导致开发、维护和测试的复杂性。b. Web front-end components composed of low-code engines usually configure network connections through Websocket or HTTP, which leads to complexity in development, maintenance and testing.
上述问题的一些内在原因分析如下:Some of the inherent reasons for the above problems are analyzed as follows:
a.由低代码引擎组成的网络前端组件通常通过独立的http请求获取数据(standalone http request),可能需要后果触发器(consequence triggers)来组织与其他前端组件的交互,如果网络前端代码库中没有统一的事件总线,可能会增加系统的复杂性。a. Network front-end components composed of low-code engines usually obtain data through independent http requests (standalone http request), and may require consequence triggers to organize interactions with other front-end components. If there is no unified event bus in the network front-end code base, it may increase the complexity of the system.
b.开发人员必须在网络前端为网络建立多个实用程序(例如:网络事件的错误/警告信息)。测试人员必须为每个网络连接使用不同的方法建立单元测试。b. Developers must build multiple utilities for the network on the network front end (e.g. error/warning messages for network events). Testers must build unit tests using different methods for each network connection.
因此,本申请设计了网页前端的事件总线的设计,通过事件总线进行前后端的数据连接。具体如下: Therefore, this application designs an event bus for the front end of the web page, and connects the data between the front end and the back end through the event bus. The details are as follows:
基于Rx.JS(Apache-2.0许可)的进一步开发的本网络前端事件总线将解决为事件响应扩展组件的问题。具体的,事件总线为每个网页前端组件提供了订阅和发布接口,允许基于低代码的网页前端组件获取数据或按事件后果主题发送数据(allowing low code based web frontend component get data or deliver data by topic with consequence for event),这意味着由低代码引擎组成的网页可以在网络连接上以简单的方式发送事件;然而,由单页面应用程序(Single Page Application)组成的前端项目将适合本发明。由多页面应用程序(Multi Page Application)组成的前端项目则无法从通用事件总线中获益。The further developed web frontend event bus based on Rx.JS (Apache-2.0 license) will solve the problem of extending components for event response. Specifically, the event bus provides subscription and publishing interfaces for each web frontend component, allowing low-code based web frontend components to get data or deliver data by topic with consequence for event, which means that web pages composed of low-code engines can send events in a simple way over network connections; however, frontend projects composed of single-page applications (Single Page Application) will be suitable for the present invention. Frontend projects composed of multi-page applications (Multi Page Application) cannot benefit from the general event bus.
因此,生产流水线系统可通过组件级控制能力,以较低复杂度的代码库设计(基于用户界面配置的网络前端组件)实现网络前端。Therefore, the production pipeline system can implement the network front end with a lower complexity code base design (network front end components based on user interface configuration) through component-level control capabilities.
进一步的,基于Rx.JS的事件总线可简化网络前端的实用程序,具体如下:Furthermore, the Rx.JS-based event bus can simplify the utilities of the network front end as follows:
事件总线将使用Rx.JS的可观察功能(例如对于事件的可观察功能),为Websocket(推送式)和HTTP(请求加载式)获取异步结果(例如通过Promise函数异步获取),这样允许配置使用相同的代码,从而请求配置统一化,导致唯一关联的仅是主题,从而用于Websocket或HTTP响应处理。因此,处理Websocket或HTTP接收网络连接的客户端代码将使用Rx.JS的信号功能向订阅者(可观察对象)发送事件,因此,在开发、维护和测试过程中,该设计简化了基于低代码引擎开发的网络前端组件。The event bus will use the observable function of Rx.JS (such as the observable function for events) to obtain asynchronous results (such as asynchronous acquisition through the Promise function) for Websocket (push) and HTTP (request loading), which allows the configuration to use the same code, thereby unifying the request configuration, resulting in the only association being the subject, which is used for Websocket or HTTP response processing. Therefore, the client code that handles the Websocket or HTTP receiving network connection will use the signal function of Rx.JS to send events to subscribers (observable objects). Therefore, during the development, maintenance, and testing process, this design simplifies the network front-end components developed based on the low-code engine.
概括来说,本申请的设计特点是,使用低代码引擎制作的网络前端组件(基于用户界面配置的网络前端组件)的环境下,通过事件总线接收http或websocket数据请求。In summary, the design feature of this application is to receive http or websocket data requests through the event bus in an environment where a network front-end component (a network front-end component based on user interface configuration) is made using a low-code engine.
应该理解的是,虽然图1的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图1中的至少一部分步骤可以包括多个步骤或者多个阶段,这些步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤中的步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that, although the various steps in the flowchart of FIG. 1 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 description in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in FIG. 1 may 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.
图2提供了一种用于用于网页组件获取后台数据的装置200,其中,请求接收模块201,用于接收前端网页的数据请求;事件总线模块202,用于根据所述数据请求的订阅主题,获取后台的相应数据;数据发送模块203,用于将所述数据发送至所述前端网页的对应组件。Figure 2 provides a device 200 for a web page component to obtain background data, wherein a request receiving module 201 is used to receive a data request from a front-end web page; an event bus module 202 is used to obtain corresponding background data based on a subscription topic of the data request; and a data sending module 203 is used to send the data to a corresponding component of the front-end web page.
进一步的,其中,所述数据请求包括Websocket的数据请求以及Http的数据请求,所述请求接收模块201用于接收前端网页的Websocket的数据请求或Http的数据请求。Furthermore, the data request includes a Websocket data request and an Http data request, and the request receiving module 201 is used to receive a Websocket data request or an Http data request of a front-end web page.
进一步的,其中,所述前端网页包括第一组件和第二组件,所述事件总线模块202, 用于所述将所述数据发送至所述前端网页的对应组件,其中所述对应组件为第一组件,所述事件总线模块202,还用于接收所述第一组件的输出数据;若所述第二组件的订阅主题与所述第一组件相关,则将所述第一组件的输出数据发送至所述第二组件。Furthermore, the front-end webpage includes a first component and a second component, and the event bus module 202, Used for sending the data to the corresponding component of the front-end web page, wherein the corresponding component is a first component, and the event bus module 202 is also used to receive the output data of the first component; if the subscription topic of the second component is related to the first component, the output data of the first component is sent to the second component.
进一步的,其中,所述前端网页为单网页应用,所述请求接收模块201,还用于接收所述单网页应用的数据请求。Furthermore, the front-end web page is a single web application, and the request receiving module 201 is further used to receive a data request of the single web application.
需要注意的是,该装置可以包含更多或更少的模块来实现所描述的功能。例如,图2中的至少一个模块可以被进一步分成复数个不同的子模块,每个子模块用于执行这里结合相应的模块所描述的操作的至少一部分。此外,在一些示例中,装置200还可以包括附加的模块,用于执行说明书中已经描述的其它操作。此外,本领域技术人员可以理解,示例性装置200可以用软件、硬件、固件、或其任意组合来实现。It should be noted that the device may include more or fewer modules to implement the described functions. For example, at least one module in FIG. 2 may be further divided into a plurality of different submodules, each of which is used to perform at least a portion of the operations described herein in conjunction with the corresponding module. In addition, in some examples, the device 200 may also include additional modules for performing other operations already described in the specification. In addition, those skilled in the art will appreciate that the exemplary device 200 may be implemented using software, hardware, firmware, or any combination thereof.
图3提供了一种计算机设备。根据一个实施方式,计算机设备300可以包括处理器302,处理器302执行存储器304存储的计算机程序。该计算机程序被处理器执行时以实现上述的方法。Fig. 3 provides a computer device. According to one embodiment, the computer device 300 may include a processor 302, and the processor 302 executes a computer program stored in a memory 304. When the computer program is executed by the processor, the above method is implemented.
本领域技术人员可以理解,图3中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art will understand that the structure shown in FIG. 3 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
本领域普通技术人员可以理解实现上述实施方式的方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施方式的流程。其中,本申请所提供的各实施方式中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和易失性存储器中的至少一种。非易失性存储器可包括只读存储器(Read-Only Memory,ROM)、磁带、软盘、闪存或光存储器等。易失性存储器可包括随机存取存储器(Random Access Memory,RAM)或外部高速缓冲存储器。作为说明而非局限,RAM可以是多种形式,比如静态随机存取存储器(Static Random Access Memory,SRAM)或动态随机存取存储器(Dynamic Random Access Memory,DRAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods for implementing the above-mentioned embodiments 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 implementation methods of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the various embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory may include random access memory (RAM) or external cache memory. 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 present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the above steps are implemented.
本申请还提供一种计算机程序产品,所述计算机程序产品被有形地存储在计算机可读介质上并且包括计算机可执行指令,所述计算机可执行指令在被执行时使至少一个处理器执行上述的方法。The present application also provides a computer program product, which is tangibly stored on a computer-readable medium and includes computer-executable instructions, which, when executed, cause at least one processor to perform the above method.
进一步的,所述计算机程序可以被储存、运行在云端进行所述方法的执行。进一步的, 所述程序的组成部分可以布局在多个设备、云端上,例如相应的步骤可以布局、运行在本地或者当地计算机,或者运行在不同的云端设备上,通过通信连接传输信号,或者也可以布局、运行在本地或者当地的计算机。本申请并不限制所述方式或者方法,可以灵活布局、部署相应技术,充分利用云端、大数据、超级计算能力等设备和技术进行方法的执行和完成。Furthermore, the computer program can be stored and run in the cloud to perform the method. The components of the program can be deployed on multiple devices and the cloud. For example, the corresponding steps can be deployed and run on a local or local computer, or run on different cloud devices, and transmit signals through a communication connection, or can be deployed and run on a local or local computer. This application does not limit the manner or method, and can flexibly deploy and deploy the corresponding technology, making full use of the cloud, big data, supercomputing power and other equipment and technologies to execute and complete the method.
本公开的一些实现可以包括制品。制品可以包括存储介质,其用于存储逻辑。存储介质的示例可以包括一种或多种类型的能够存储电子数据的计算机可读存储介质,包括易失性存储器或非易失性存储器、可移动或不可移动存储器、可擦除或不可擦除存储器、可写或可重写存储器,等等。逻辑的示例可以包括各种软件单元,例如软件部件、程序、应用、计算机程序、应用程序、系统程序、机器程序、操作系统软件、中间件、固件、软件模块、例程、子例程、函数、方法、过程、软件接口、应用程序接口(API)、指令集、计算代码、计算机代码、代码段、计算机代码段、字、值、符号、或其任意组合。在一些实现中,例如,制品可以存储可执行的计算机程序指令,其在被处理器执行时,使得处理器执行本文中所述的方法和/或操作。可执行的计算机程序指令可以包括任意合适类型的代码,例如,源代码、编译代码、解释代码、可执行代码、静态代码、动态代码,等等。可执行的计算机程序指令可以根据预定义的用于命令计算机来执行特定功能的计算机语言、方式或语法来实现。所述指令可以使用任意适当的高级的、低级的、面向对象的、可视化的、编译的和/或解释的编程语言来实现。Some implementations of the present disclosure may include articles. Articles may include storage media, which are used to store logic. Examples of storage media may include one or more types of computer-readable storage media capable of storing electronic data, including volatile memory or non-volatile memory, removable or non-removable memory, erasable or non-erasable memory, writable or rewritable memory, and the like. Examples of logic may include various software units, such as software components, programs, applications, computer programs, applications, system programs, machine programs, operating system software, middleware, firmware, software modules, routines, subroutines, functions, methods, processes, software interfaces, application program interfaces (APIs), instruction sets, computing codes, computer codes, code segments, computer code segments, words, values, symbols, or any combination thereof. In some implementations, for example, articles may store executable computer program instructions, which, when executed by a processor, cause the processor to perform the methods and/or operations described herein. Executable computer program instructions may include any suitable type of code, such as source code, compiled code, interpreted code, executable code, static code, dynamic code, and the like. Executable computer program instructions can be implemented according to a predefined computer language, method or syntax for commanding a computer to perform a specific function. The instructions can be implemented using any appropriate high-level, low-level, object-oriented, visual, compiled and/or interpreted programming language.
上面已经描述的包括所公开的架构的示例。当然并不可能描述部件和/或方法的每种可以想见的组合,但是本领域技术人员可以理解,许多其它的组合和排列也是可行的。因此,该新颖架构旨在涵盖落入所附权利要求的精神和范围之内的所有这样的替代、修改和变型。 What has been described above includes examples of the disclosed architecture. It is certainly not possible to describe every conceivable combination of components and/or methods, but those skilled in the art will appreciate that many other combinations and arrangements are possible. Therefore, the novel architecture is intended to encompass all such substitutions, modifications and variations that fall within the spirit and scope of the appended claims.
Claims (11)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2023/112348 WO2025030524A1 (en) | 2023-08-10 | 2023-08-10 | Method and apparatus for back-end data acquisition by webpage component, and computer device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2023/112348 WO2025030524A1 (en) | 2023-08-10 | 2023-08-10 | Method and apparatus for back-end data acquisition by webpage component, and computer device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2025030524A1 true WO2025030524A1 (en) | 2025-02-13 |
Family
ID=94533330
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2023/112348 Pending WO2025030524A1 (en) | 2023-08-10 | 2023-08-10 | Method and apparatus for back-end data acquisition by webpage component, and computer device |
Country Status (1)
| Country | Link |
|---|---|
| WO (1) | WO2025030524A1 (en) |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20090064191A1 (en) * | 2007-08-31 | 2009-03-05 | Pierce Darryl L | Methods and systems for a rich internet bus |
| CN111159614A (en) * | 2019-12-30 | 2020-05-15 | 北京金堤科技有限公司 | Webpage resource acquisition method and device |
| CN113221039A (en) * | 2021-04-23 | 2021-08-06 | 深圳市金蝶天燕云计算股份有限公司 | Page display method and device, computer equipment and storage medium |
| CN114327462A (en) * | 2021-12-31 | 2022-04-12 | 山石网科通信技术股份有限公司 | Page data display method, storage medium and electronic device |
| CN115622987A (en) * | 2022-10-18 | 2023-01-17 | 沈阳东软智能医疗科技研究院有限公司 | Communication method, device and equipment between webpage components |
-
2023
- 2023-08-10 WO PCT/CN2023/112348 patent/WO2025030524A1/en active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20090064191A1 (en) * | 2007-08-31 | 2009-03-05 | Pierce Darryl L | Methods and systems for a rich internet bus |
| CN111159614A (en) * | 2019-12-30 | 2020-05-15 | 北京金堤科技有限公司 | Webpage resource acquisition method and device |
| CN113221039A (en) * | 2021-04-23 | 2021-08-06 | 深圳市金蝶天燕云计算股份有限公司 | Page display method and device, computer equipment and storage medium |
| CN114327462A (en) * | 2021-12-31 | 2022-04-12 | 山石网科通信技术股份有限公司 | Page data display method, storage medium and electronic device |
| CN115622987A (en) * | 2022-10-18 | 2023-01-17 | 沈阳东软智能医疗科技研究院有限公司 | Communication method, device and equipment between webpage components |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN110765024B (en) | Simulation test method, simulation test device, electronic equipment and computer readable storage medium | |
| US10291704B2 (en) | Networked solutions integration using a cloud business object broker | |
| US9652220B2 (en) | Zero down-time deployment of new application versions | |
| JP5941461B2 (en) | Shared data collection | |
| US11397569B2 (en) | Deploying micro frontends to different clusters from a single repository | |
| US8627284B2 (en) | Managed system extensibility | |
| CN104199957A (en) | Redis universal agent implementation method | |
| EP3058690A1 (en) | System and method for creating a distributed transaction manager supporting repeatable read isolation level in a mpp database | |
| CN109445841B (en) | Interface document management method, device, server and storage medium | |
| WO2019218470A1 (en) | Service data processing method and apparatus, electronic device and medium | |
| EP4130991A2 (en) | Methods and systems for remote configuration of software applications | |
| CN114721686A (en) | Configuration data updating method and device, electronic equipment and storage medium | |
| CN113626007B (en) | Application method and device of connector model and server | |
| CN113779452B (en) | Data processing method, device, equipment and storage medium | |
| CN111796851A (en) | Client base library updating method and device, electronic equipment and storage medium | |
| CN110618814A (en) | Data visualization method and device, electronic equipment and computer readable storage medium | |
| CN112631649A (en) | Intelligent contract management method, device, terminal equipment and medium | |
| CN112230978A (en) | Multi-data-source dynamic switching method, electronic equipment and storage medium | |
| US10666557B2 (en) | Method to manage data flow for edge-core distributed analytics systems | |
| US20200167133A1 (en) | Web service mashup orchestrator | |
| WO2025030524A1 (en) | Method and apparatus for back-end data acquisition by webpage component, and computer device | |
| CN108304321A (en) | A kind of method, system and device creating front and back end exploitation joint debugging environment | |
| US20170286490A1 (en) | Implicit subscriptions in the connection protocol of a network switch | |
| CN112698930A (en) | Method, device, equipment and medium for obtaining server identification | |
| CN112073505B (en) | Method for unloading on cloud server, control device and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 23948094 Country of ref document: EP Kind code of ref document: A1 |