A linkage method and device for page content, an electronic device, and a storage medium
By setting control parameters and control methods in the page content, local or global control can be achieved, which solves the problem of complex calling relationships between function cards, improves card reusability, and reduces the workload of system development.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-29
- Publication Date
- 2026-03-27
AI Technical Summary
In existing technologies, the point-to-point linkage between function cards is complex, resulting in a surge in calling methods, chaotic calling relationships, a large workload for configuration, and reduced reusability of function cards.
By determining the content linkage relationship between function cards on the target page, setting control parameters and control methods, and responding to key value changes in the control parameters, local or global control can be achieved to change the page content.
It improves the reusability of function cards, reduces the workload of system development, lowers the complexity of page management, and meets the needs of complex content linkage relationships.
Smart Images

Figure CN119376784B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of computer, and particularly relates to a page content linkage method and device, electronic equipment and storage medium. BACKGROUND
[0002] When a business system is constructed, various configuration tools are generally used to construct business pages, and various pages are connected and managed through system menus or page association elements to obtain a business system. For the business system, the direct relationship within a single business page is loose and cannot be interactively linked. In order to solve this defect, the current method is to encapsulate different contents in pages output by different configuration tools into functional cards, and to combine and splice different functional cards to obtain a page required by the business.
[0003] However, the point-to-point linkage between the functional cards is a meshed calling relationship. When a page involves many functional cards and the content linkage relationship between the functional cards is complex, the calling methods increase rapidly, the calling relationship is chaotic, and the configuration workload is large. In addition, the original intention of the design of the functional cards is to improve the reusability and reduce the development workload of the system. After the point-to-point association calling of the functional cards, the involved functional cards cannot be directly and individually reused in other page scenarios, and the reusability of the functional cards is reduced. Therefore, it is an urgent problem to design a page content linkage method that can meet the complex content linkage relationship in the page content and improve the reusability of the functional cards. SUMMARY
[0004] The present application provides a page content linkage method, device, electronic equipment and storage medium, which can meet the complex content linkage relationship in the page content and improve the reusability of the functional cards.
[0005] In a first aspect, the present application provides a page content linkage method, a target page including a plurality of content blocks, each content block corresponding to a functional card, and the functional card being used to display content information of the content block. The method comprises the following steps.
[0006] A first functional card having a content linkage relationship in a plurality of functional cards of the target page is determined, and a card content parameter corresponding to the first functional card is determined.
[0007] According to a setting operation on the card content parameter, a control parameter and a control mode of the control parameter are determined, and the control parameter is used to control the page content of the target page.
[0008] In response to a key value changing operation on a target control parameter, a target control mode corresponding to the target control parameter is determined, and the page content of the target page is changed based on the target control mode.
[0009] Further, in response to the key value change operation of the target control parameter, determining the target control mode corresponding to the target control parameter comprises: if the key value change operation is a change of the key value of the target control parameter in the target function card, determining the target control mode corresponding to the target control parameter in the target function card, the target control mode comprising local control or no control, the target function card being one of the first function cards; if the key value change operation is a change of the key value of the input parameter of the target method function, determining the input parameter as the target control parameter, and determining the target control mode of the target control parameter as global control, the target method function being configured in the target page.
[0010] Further, when the target control mode is the local control, changing the page content of the target page based on the target control mode comprises: rewriting a preset change function based on the changed key value of the target control parameter to obtain a target change function; determining a second function card containing the target control parameter from the first function cards by executing the target change function, and changing the content information of the second function card to achieve the change of the page content of the target page; wherein the second function card includes the target function card.
[0011] Further, when the target control mode is the global control, changing the page content of the target page based on the target control mode comprises: taking the changed key value of the target control parameter as the input parameter of the target method function; determining a third function card containing the target control parameter from the plurality of function cards by executing the target method function, and changing the content information of the third function card to achieve the change of the page content of the target page.
[0012] Further, the number of the first function cards is at least two; determining the card content parameter corresponding to the first function card comprises: obtaining the basic attribute information of each function card in the first function cards; obtaining the corresponding card configuration address from the basic attribute information of each function card; identifying the card configuration address to obtain the card content parameter corresponding to each function card.
[0013] Further, according to the setting operation on the card content parameter, the control parameter and the control mode of the control parameter are determined, including: receiving a selection operation on the card content parameter corresponding to each function card in the first function card, determining the control parameter corresponding to each function card from the card content parameter; receiving a setting operation on each control parameter, determining the control mode of each control parameter, the control mode including no control, local control and global control.
[0014] Further, after the control parameter and the control mode of the control parameter are determined, the global control parameter of which the control mode is the global control is further determined from the control parameter list; an initial method function pre-defined in the target page is acquired; the global control parameter is determined as an input parameter of the initial method function, and a target method function is obtained; the global control parameter is eliminated from the control parameter list, and a component corresponding to the global control parameter is determined as a target component of the target method function in the target page.
[0015] In a second aspect, the present application provides a linkage device of page content, the target page including a plurality of content blocks, each content block corresponding to a function card, the function card being used to display content information of the content block; the device includes:
[0016] A first information determination module is configured to determine a first function card having a content linkage relationship from a plurality of function cards of the target page, and determine a card content parameter corresponding to the first function card.
[0017] A second information determination module is configured to determine a control parameter and a control mode of the control parameter according to a setting operation on the card content parameter, the control parameter being used to control page content of the target page.
[0018] A page content change module is configured to determine a target control mode corresponding to a target control parameter in response to a key value change operation on the target control parameter, and change page content of the target page based on the target control mode.
[0019] In a third aspect, the present application provides an electronic device, including: at least one processor; and a memory connected with the at least one processor in communication; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to execute the linkage method of page content according to any embodiment of the present application.
[0020] In a fourth aspect, the present application provides a computer readable storage medium, which stores computer instructions for causing a processor to implement the linkage method of page content according to any of the embodiments of the present application.
[0021] In a fifth aspect, the present application provides a computer program product, which comprises a computer program for implementing the linkage method of page content according to any of the embodiments of the present application when executed by a processor.
[0022] To solve the defects of the prior art in the background art, the embodiments of the present application provide a linkage method of page content, and the execution of the method can bring the following beneficial effects: the present application registers and configures the first function card having a content linkage relationship with the target page in the configuration stage of the function card, sets the control parameters and control methods for linkage for the function card, realizes the decoupling of the function card having the content linkage relationship, improves the reusability of the function card, and reduces the system development workload. In the running stage of the function card, the content information of the function card related to the target control parameter is changed by changing the key value of the component corresponding to the target control parameter, and finally the linkage effect of the page content is achieved. The present application changes the mesh card relationship of the original point-to-point calling in the complex calling page into the star relationship between the card and the page by setting different forms of control methods, the card is no longer associated with the card calling, but is associated with the page, which reduces the management complexity of the page, can meet the complex content linkage relationship in the page content, and can improve the reusability of the function card.
[0023] It should be noted that the computer instructions described above can be stored in the computer readable storage medium in whole or in part. The computer readable storage medium can be packaged together with the processor of the linkage device of page content, or can be packaged separately from the processor of the linkage device of page content, and the present application does not limit this.
[0024] The description of the second aspect, the third aspect, …, and the fifth aspect in the present application can refer to the detailed description of the first aspect; and the beneficial effects of the description of the second aspect, the third aspect, …, and the fifth aspect can refer to the beneficial effect analysis of the first aspect, which will not be repeated here.
[0025] It should be understood that the content described in this part is not intended to identify the key or important features of the embodiments of the present application, nor to limit the scope of the present application. Other features of the present application will become apparent from the following description.
[0026] It can be understood that, before using the technical solutions disclosed in the embodiments of the present application, the type of personal information, the range of use, and the use scenarios of the present application should be informed to the user and the authorization of the user should be obtained according to relevant laws and regulations. BRIEF DESCRIPTION OF DRAWINGS
[0027] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiment description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor on the premise of the drawings.
[0028] Figure 1 A flowchart of a page content linkage method provided by an embodiment of the present application;
[0029] Figure 2 A registration interface diagram of a function card provided by an embodiment of the present application;
[0030] Figure 3 A structural diagram of a page content linkage device provided by an embodiment of the present application;
[0031] Figure 4 A block diagram of an electronic device for implementing a page content linkage method according to an embodiment of the present application. DETAILED DESCRIPTION
[0032] In order to make the purpose, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions in the embodiments of the present application will be described clearly and completely in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, not all. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor should be within the scope of protection of the present application.
[0033] It should be noted that the terms "first", "second", "target", and "original" and the like in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily describe a specific order or sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "include", "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device that includes a series of steps or units does not necessarily limit to those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to the process, method, product or device.
[0034] Figure 1 A flowchart of a page content linkage method provided by an embodiment of the present application is shown in the figure. The embodiment can be applied to the case of realizing page content linkage by setting control parameters for different function cards in a page. The page content linkage method provided by the embodiment can be executed by a page content linkage device provided by the embodiment. The device can be realized by software and / or hardware and integrated in an electronic device that executes the method. Preferably, the electronic device of the present application can be a microprocessor for realizing page content linkage. It should be noted that the page content linkage method of the present application includes a configuration stage of function cards and a running stage of function cards. The configuration stage can be further divided into a function card registration sub-stage and a page configuration sub-stage.
[0035] Referring to Figure 1 The method of the embodiment includes but is not limited to the following steps:
[0036] S110, determining a first function card having a content linkage relationship from a plurality of function cards of a target page, and determining a card content parameter corresponding to the first function card.
[0037] The business system can include a plurality of pages, and the target page is one of the plurality of pages. The target page can be divided into a plurality of content blocks according to a preset division standard. The target page can include a plurality of content blocks. A corresponding function card can be made for each content block in the plurality of content blocks. Each content block corresponds to a function card. The function card is used to display content information of the content block. Therefore, the target page can include a plurality of function cards. The card content parameter refers to a parameter related to the content information in the content block corresponding to the card. This step is in the function card registration sub-stage in the configuration stage of the function card.
[0038] In the embodiment of the present application, after various configuration tools configure or develop the target content and encapsulate it into a plurality of function cards, the microprocessor registers the function cards in the page registration management module. When registering the function cards, the basic settings of the function cards need to register the name of the card, the jurisdiction, the organization, the card terminal type (server, mobile terminal), the card configuration address, and the card rendering address, and other basic attribute information. The microprocessor also needs to determine the first function card having a content linkage relationship from the plurality of function cards of the target page, and set the parameter linkage for the first function card in the advanced settings of the function card. The content linkage relationship refers to the linkage communication between different function cards in the target page.
[0039] As Figure 2The figure shows a registration interface of a function card, which shows the interface for registering the function card after successfully packaging the target content into a function card, and the interface includes basic settings and advanced settings.
[0040] Specifically, the number of the first function cards is at least two; the card content parameters corresponding to the first function cards are determined, including: the microprocessor acquires the basic attribute information of each function card in the first function cards; the corresponding card configuration address, such as uniform resource locator (URL), is acquired from the basic attribute information of each function card; the card configuration address is automatically parsed and identified to obtain the card content parameters corresponding to each function card, such as block parameters and date parameters.
[0041] It should be noted that the parameter naming in the URL of each function card needs to follow a unified parameter naming specification. For a data intensive system, the parameters in the URL are preferably named according to the metadata field names in the data model to ensure that the control parameters selected by each card are consistent in subsequent page configurations and can map to unified page components. For example, the metadata field in the data model refers to the field in the entity table that constitutes the data model. The system maps different page components according to the data type of the data model metadata field, such as int type, which can correspond to digital components, single drop-down selection components, single selection box components, etc.
[0042] S120, determining the control parameter and the control mode of the control parameter according to the setting operation for the card content parameter.
[0043] The control parameter is used to control the page content of the target page, and the control parameter is selected by the user from the card content parameters based on the functional requirements of the actual business system. The setting operation refers to the card registration operation performed by the user in the function card setting interaction interface through the client. This step is also in the function card registration sub-stage in the function card configuration stage.
[0044] Specifically, according to the setting operation for the card content parameter, the control parameter and the control mode of the control parameter are determined, including:
[0045] First, receive the selection operation for the card content parameter corresponding to each function card in the first function cards, and determine the control parameter corresponding to each function card from the card content parameter.
[0046] For the current function card in the first function card, the microcontroller parses and identifies the card configuration address corresponding to the current function card, obtains the card content parameters corresponding to the current function card, and displays the card content parameters of the current function card to the user in the function card setting interactive interface of the client. The user selects the control parameters corresponding to the current function card from the card content parameters of the current function card in the interactive interface. In this way, each function card in the first function card is traversed to obtain the control parameters corresponding to each function card.
[0047] For example, function card X, function card Y and function card Z are registered respectively; the user selects the card content parameters corresponding to each function card, the control parameters corresponding to function card X are parameter 1, parameter 2 and parameter 3, the control parameters corresponding to function card Y are parameter 2, parameter 3 and parameter 4, and the control parameters corresponding to function card Z are parameter 4, parameter 1 and parameter 5. The above parameter 1, parameter 2, parameter 3 and parameter 4 need to ensure that the parameter names are consistent when registering different function cards, for example, the naming of parameter 1 in function card X and function card Z is consistent.
[0048] Secondly, receiving the setting operation of each control parameter, and determining the control mode of each control parameter, the control mode including no control, local control and global control.
[0049] When configuring the control parameters of each function card, the microcontroller generates a corresponding control mode selection box for each control parameter. The user selects the control mode corresponding to the control parameter in the selection box, so as to determine the control mode of each control parameter. The control mode includes no control, local control and global control.
[0050] No control means that the function card corresponding to the control parameter does not control (is not associated with) other function cards, that is, when the key value of the control parameter is changed, only the content information of the function card where the control parameter is located can be changed, and the content information of other function cards cannot be changed. Local control means that the function card corresponding to the control parameter controls (is associated with) other function cards, that is, when the key value of the control parameter is changed, not only the content information of the function card where the control parameter is located can be changed, but also the content information of other function cards can be changed. Global control means that the common control parameter on the page can control (be associated with) all cards on the page. In the embodiment, the global control is realized by defining a method function without parameters in the page, taking the control parameter in a function card as the parameter of the method function, and realizing the method function in the card and calling the method function in the page to realize the linkage of the content of the page.
[0051] For example, continuing the previous example, when the function card X, the function card Y and the function card Z are registered, the user selects the control mode of the control parameters in each function card, and can set the parameter 1 and the parameter 3 of the function card X to be not controlled, and the parameter 2 to be locally controlled; the parameter 2 and the parameter 3 of the function card Y to be not controlled, and the parameter 4 to be locally controlled; and the parameter 4 of the function card Z to be locally controlled, and the parameter 1 and the parameter 5 to be not controlled.
[0052] Preferably, the specific process of the page configuration sub-stage in the configuration stage is that a plurality of function cards corresponding to a target page are determined, and the function cards are arranged in the canvas of the page configurator. When the linkage setting of the function cards is involved, the control parameters of all the function cards of the current configuration page are listed after being de-duplicated, and the list shows the control parameters (not modifiable), the parameter names (default metadata field names), the initial values (set to fill in), whether the corresponding components are displayed in the page checkbox, and the like. The configuration personnel is allowed to sort the control parameters, and the display order of the corresponding page components in the page.
[0053] It should be noted that, considering that the linkage of the function cards needs to rely on the control parameters in the URLs of the function cards, the control parameters of the same dimension need to be uniformly named and standardized, so that the content of the function cards output by different configuration tools can be controlled and displayed through the same common control parameter when needed, and the effect of "pulling one hair to move the whole body" is achieved.
[0054] For example, continuing the previous example, when the function card X, the function card Y and the function card Z are registered, the user selects the control mode of the control parameters in each function card, and can set the parameter 1 and the parameter 3 of the function card X to be not controlled, and the parameter 2 to be locally controlled; the parameter 2 and the parameter 3 of the function card Y to be not controlled, and the parameter 4 to be locally controlled; and the parameter 4 of the function card Z to be locally controlled, and the parameter 1 and the parameter 5 to be not controlled.
[0055] Further, after the control parameters and the control modes of the control parameters are determined, the following steps are further included: determining, from the control parameter list, a global control parameter of which the control mode is global control, i.e., a method input parameter in the function card; obtaining a pre-defined initial method function in the target page; determining the global control parameter as an input parameter of the initial method function to obtain a target method function; eliminating the global control parameter from the control parameter list, and determining a component corresponding to the global control parameter as a target component of the target method function in the target page.
[0056] Optionally, when the function card containing the global control parameter is dragged into the page configurator, the display Chinese name and initial value of the input parameter need to be set, and the input parameter is displayed by default corresponding to the component in the page.
[0057] S130, in response to the key value change operation of the target control parameter, determining the target control mode corresponding to the target control parameter, and changing the page content of the target page based on the target control mode.
[0058] The configured page can be accessed through the application system menu after the business application is mounted to the application menu. This step is the running phase of the function card, which realizes changing the page content related to the control key value by changing the control parameter key value.
[0059] Specifically, in response to the key value change operation of the target control parameter, the target control mode corresponding to the target control parameter is determined, including: if the key value change operation is a change of the key value of the target control parameter in the target function card, since the control mode of the same control parameter in different function cards can be different, such as: parameter 2 enables local control in function card X, and does not enable control in function card Y; then the target control mode corresponding to the target control parameter in the target function card needs to be determined, the target control mode includes local control or no control, and the target function card is one of the first function cards. If the key value change operation is a change of the key value of the input parameter of the target method function, or a change of the key value of the input parameter of the target function card, that is, the way of controlling all function cards through the page, then the input parameter is determined as the target control parameter, that is, the global control parameter in the above, the target control mode of the target control parameter is determined as global control, and the target method function is configured in the target page.
[0060] The content information of the function card can be controlled by the content operation on the page through the global control mode, which can be called forward linkage; or the content information of the page can be changed by the content operation of the function card through the local control mode, which can be called reverse linkage.
[0061] Further, when the target control mode is local control, the page content of the target page is changed based on the target control mode, including: rewriting the preset change function based on the changed key value of the target control parameter to obtain a target change function; determining a second function card containing the target control parameter from the first function card by executing the target change function, and changing the content information of the second function card to realize the change of the page content of the target page; wherein the second function card includes the target function card.
[0062] In the embodiments of the present application, by switching the key value of the control parameter inside the function card, the key value of the control parameter in the card URL is modified, the function card window defaults to call a preset change function, such as the Replace State method. The page replaces the original method by rewriting the Replace State method, and the value of the corresponding page control parameter is modified in the rewritten method, thereby controlling the display content of the function card in the page related to the control parameter.
[0063] For example, continuing the previous example, the user operates the key value of the component corresponding to parameter 2 in function card X, and because local control is configured, the key value of parameter 2 in card X can be modified by the operation, and the content display of function card Y containing control parameter 2 is changed by calling the rewritten Replace State method.
[0064] Further, when the target control mode is not controlled, the page content of the target page is changed based on the target control mode, including: by changing the key value of the target control parameter, only the content information of the target function card corresponding to the target control parameter is changed.
[0065] For example, continuing the previous example, the user operates the key value of the component corresponding to parameter 2 in function card Y, and because local control is not configured, the above operation will not affect the content display of function card X.
[0066] Further, when the target control mode is global control, the page content of the target page is changed based on the target control mode, including: the changed key value of the target control parameter is used as an input parameter of the target method function; by executing the target method function, a third function card containing the target control parameter is determined from multiple function cards, and the content information of the third function card is changed to change the page content of the target page.
[0067] In the embodiments of the present application, for the function card related to the "method parameter setting" of the method function for linkage in the page, the user can change the key value of the method parameter corresponding component in the page, and this change will be monitored by the page. At this time, the page replaces the content of the current method parameter to call the "linkage method" implemented by the card corresponding to the parameter, thereby controlling the content display of the corresponding function card.
[0068] For example, continuing the previous example, the user operates component M corresponding to parameter 1, and switches the key value of component M. The microprocessor modifies the key value of parameter 1 in the URL of function card X and function card Z, and the page control changes the display content of function card X and function card Z.
[0069] The benefits of setting different forms of control mode in this embodiment are: 1. The mesh card relationship of the original point-to-point call in the complex call page is changed to the star relationship between the card and the page. The card is no longer associated with the card call, but is associated with the page, reducing the management complexity of the page. 2. There is no need to combine two functional cards with content linkage relationship together, and there is no need to appear in pairs. Instead, if combination is needed, parameter association is performed, decoupling functional cards with content linkage relationship, improving the reusability of functional cards, and reducing the system development workload. 3. By using the card content corresponding to the URL parameter, the parameter value of the card URL is modified and defined by the key value of the shared parameter component displayed on the page, to realize the linkage of the content information of the card; the parameter value of the URL (or the key value of the page control variable) is modified by the default method Replace State called by operating the card content to synchronously modify the same parameter value in the URL of other functional cards of the page, to realize the effect of the page control functional card and the functional card affecting the page. 4. For existing functional cards that cannot be modified, by modifying the card content parameter (such as the URL parameter) of the functional card, the functional card linkage effect can be achieved without modifying the existing functional card. 5. When the content information of the functional card cannot be controlled by modifying the URL parameter, by setting the method parameter (i.e. global control parameter) for the functional card, the page can flexibly control the content information by calling the linkage method function when the method parameter is modified.
[0070] In the data strong planning system of the embodiment, the parameter definition of the card content URL can be defined in combination with the metadata in the data model, that is, the URL parameter of the card content is from the metadata in the data model, so that the specification and uniformity of the parameter definition of the URL can be guaranteed, and the effect of one linkage in multiple places (i.e. "pull one hair to move the whole body") can be achieved when the same metadata is used in different functional cards.
[0071] In an implementable embodiment, for the card content parameters (such as the card URL parameter list) extracted in the page, the corresponding card control variable can be defined in the card for unified reception and management of the mapping of the parameters.
[0072] The technical scheme provided by the embodiment determines a first function card with a content linkage relationship in a plurality of function cards of a target page, determines a card content parameter corresponding to the first function card, determines a control parameter and a control mode of the control parameter according to a setting operation on the card content parameter, determines a target control mode corresponding to a target control parameter in response to a key value changing operation on the target control parameter, and changes page content of the target page based on the target control mode. In the configuration stage of the function card, the first function card with the content linkage relationship in the target page is registered and configured, the control parameter and the control method used for linkage are set for the function card, the function card with the content linkage relationship is decoupled, the reusability of the function card is improved, and the system development workload is reduced. In the running stage of the function card, the content information of the function card related to the target control parameter is changed by changing the key value of the component corresponding to the target control parameter, and finally the linkage effect of the page content is achieved. The application changes the mesh card relationship of the original point-to-point calling page into the star relationship between the card and the page by setting different forms of control modes, the card is no longer associated with the card calling, but is associated with the page, the management complexity of the page is reduced, the complex content linkage relationship in the page content can be met, and the reusability of the function card can be improved.
[0073] Figure 3 A structural schematic diagram of a page content linkage device provided by an embodiment of the application is shown in Figure 3 The device 300 can include:
[0074] A first information determination module 310 is configured to determine a first function card with a content linkage relationship in a plurality of function cards of a target page, and determine a card content parameter corresponding to the first function card.
[0075] A second information determination module 320 is configured to determine a control parameter and a control mode of the control parameter according to a setting operation on the card content parameter, and the control parameter is used to control page content of the target page.
[0076] A page content changing module 330 is configured to determine a target control mode corresponding to a target control parameter in response to a key value changing operation on the target control parameter, and change the page content of the target page based on the target control mode.
[0077] The target page includes a plurality of content blocks, each content block corresponds to a function card, and the function card is used to display content information of the content block.
[0078] Further, the page content changing module 330 can be specifically configured to: if the key value changing operation is a change of a key value of a target control parameter in a target function card, determine a target control mode of the target control parameter in the target function card, the target control mode including local control or no control, and the target function card being one of the first function cards; and if the key value changing operation is a change of a key value of an input parameter of a target method function configured in the target page, determine the input parameter as the target control parameter, and determine a target control mode of the target control parameter as global control.
[0079] Further, the page content changing module 330 can include a first linkage unit and a second linkage unit.
[0080] The first linkage unit can be configured to: when the target control mode is the local control, rewrite a preset changing function based on the changed key value of the target control parameter to obtain a target changing function; determine a second function card containing the target control parameter from the first function cards by executing the target changing function, and change content information of the second function card to change the page content of the target page; and the second function card includes the target function card.
[0081] The second linkage unit can be configured to: when the target control mode is the global control, use the changed key value of the target control parameter as an input parameter of the target method function; determine a third function card containing the target control parameter from the plurality of function cards by executing the target method function, and change content information of the third function card to change the page content of the target page.
[0082] In an example, the number of the first function cards is at least two.
[0083] Further, the first information determining module 310 can be specifically configured to: obtain basic attribute information of each function card in the first function cards; obtain a card configuration address corresponding to each function card from the basic attribute information of each function card; and identify the card configuration address to obtain a card content parameter corresponding to each function card.
[0084] Furthermore, the aforementioned second information determination module 320 can be specifically used to: receive a selection operation for the card content parameters corresponding to each function card in the first function card, and determine the control parameters corresponding to each function card from the card content parameters; receive a setting operation for each control parameter, and determine the control mode of each control parameter, wherein the control mode includes no control, local control, and global control.
[0085] Furthermore, the aforementioned page content linkage device may also include: a method linkage setting module;
[0086] The method linkage setting module is used to, after determining the control parameters and the control method of the control parameters, determine the global control parameters from the control parameter list, and obtain the pre-defined initial method function in the target page; determine the global control parameters as the input parameters of the initial method function to obtain the target method function; remove the global control parameters from the control parameter list, and determine the component corresponding to the global control parameters as the target component of the target method function in the target page.
[0087] The page content linkage device provided in this embodiment can be applied to the page content linkage method provided in any of the above embodiments, and has corresponding functions and beneficial effects.
[0088] Figure 4 This is a block diagram of an electronic device used to implement a page content linkage method according to an embodiment of this application. The electronic device 10 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (such as helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present application described and / or claimed herein.
[0089] like Figure 4As shown, the electronic device 10 includes at least one processor 11, and a memory, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., connected to the at least one processor 11 in communication. The memory stores computer programs executable by the at least one processor 11, and the processor 11 can perform various appropriate actions and processes according to the computer programs stored in the read-only memory (ROM) 12 or loaded into the random access memory (RAM) 13 from the storage unit 18. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0090] Various components in the electronic device 10 are connected to the I / O interface 15, including an input unit 16, such as a keyboard, a mouse, etc., an output unit 17, such as various types of displays, a speaker, etc., a storage unit 18, such as a magnetic disk, an optical disk, etc., and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network, such as the Internet, and / or various telecommunication networks.
[0091] The processor 11 can be various general and / or special-purpose processing components having processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 performs various methods and processes described above, such as the linkage method of page content.
[0092] In some embodiments, the linkage method of page content can be implemented as a computer program tangibly embodied in a computer readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed onto the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded onto the RAM 13 and executed by the processor 11, one or more steps of the linkage method of page content described above can be performed. Alternatively, in other embodiments, the processor 11 can be configured to perform the linkage method of page content by any other appropriate means, such as by means of firmware.
[0093] The various embodiments of the systems and techniques described above can be implemented in digital electronic circuitry, integrated circuitry, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), system on a chip systems (SOCs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include implementation in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which can be special or general purpose, coupled to receive data and instructions from, and to transmit data and instructions to, a storage system, at least one input device, and at least one output device.
[0094] Computer programs used to implement the methods of the application can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer program
[0095] In the context of the present application, a computer-readable storage medium can be a tangible medium that can contain or store computer programs for use by or in connection with an instruction execution system, apparatus, or device. Computer-readable storage media can include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium can be a machine-readable signal medium. More specific examples of the machine-readable storage medium will include one or more lines of electrical connections, portable computer disks, hard disk drives, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or Flash memory), optical fibers, portable compact disc read-only memories (CD-ROMs), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0096] To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the electronic device. Other kinds of devices can be used to provide for interaction with a user as well; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including acoustic, speech, or tactile input.
[0097] The systems and techniques described here can be implemented in a computing system that includes a back end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front end component (e.g., a user computer having a graphical user interface or a Web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back end, middleware, or front end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0098] The computing system can include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. A server can be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system, to solve the defects of large management difficulty and weak business scalability in traditional physical host and VPS service.
[0099] Note that the above merely describes preferred embodiments of the present application and the principles of the technology applied. Those skilled in the art will understand that the present application is not limited to the specific embodiments described here, and that various obvious changes, re-adjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present application. For example, those skilled in the art can use the above-mentioned various forms of flow, reorder, add or delete steps; can perform the steps described in the present application in parallel, sequentially or in different order, as long as the desired results of the technical solutions of the present application can be achieved, which is not limited herein.
[0100] The foregoing detailed description has not been limited to specific details regarding the application. It should be apparent that various modifications, combinations, sub-combinations, and alternatives can be made to the disclosed embodiments. Any modifications, changes, and improvements that come within the spirit and scope of the application should be considered as falling within the scope of the application.
Claims
1. A linkage method of page content, characterized by, The target page includes a plurality of content blocks, each of which corresponds to a function card, and the function card is used to display content information of the content block; the method comprises: determining a first function card having a content linkage relationship among a plurality of function cards of the target page, determining a card content parameter corresponding to the first function card; determining a control parameter and a control mode of the control parameter according to a setting operation for the card content parameter, the control parameter being used to control page content of the target page; in response to a key value changing operation on a target control parameter, determining a target control mode corresponding to the target control parameter, and changing the page content of the target page based on the target control mode; wherein, in response to a key value changing operation on a target control parameter, determining a target control mode corresponding to the target control parameter, comprising: if the key value changing operation is a change of the key value of the target control parameter in the target function card, determining a target control mode corresponding to the target control parameter in the target function card, the target control mode including local control or no control, the target function card being one of the first function cards, the number of the first function cards being at least two; if the key value changing operation is a change of the key value of the input parameter of the target method function, determining the input parameter as the target control parameter, and determining the target control mode of the target control parameter as global control, the target method function being configured in the target page.
2. The linkage method of page content according to claim 1, wherein, When the target control mode is the local control, changing the page content of the target page based on the target control mode, comprising: rewriting a preset changing function based on the key value of the changed target control parameter to obtain a target changing function; determining a second function card containing the target control parameter from the first function card by executing the target changing function, and changing the content information of the second function card to achieve the change of the page content of the target page; wherein, the second function card includes the target function card.
3. The linkage method of page content according to claim 1, wherein, When the target control mode is the global control; changing the page content of the target page based on the target control mode, comprising: using the key value of the changed target control parameter as an input parameter of the target method function; determining a third function card containing the target control parameter from the plurality of function cards by executing the target method function, and changing the content information of the third function card to achieve the change of the page content of the target page.
4. The linkage method of page content according to claim 1, wherein, The number of the first function cards is at least two; determining the card content parameter corresponding to the first function card, comprising: obtaining basic attribute information of each function card in the first function card; obtaining a corresponding card configuration address from the basic attribute information of each function card; identifying the card configuration address to obtain the card content parameter corresponding to each function card.
5. The linkage method of page content according to claim 1, wherein, determining a control parameter and a control mode of the control parameter according to a setting operation for the card content parameter, comprising: receive a selection operation on the card content parameter corresponding to each of the first function cards, and determine a control parameter corresponding to each of the function cards from the card content parameter; receive a setting operation on each of the control parameters, and determine a control mode of each of the control parameters, the control mode including no control, local control, and global control.
6. The linkage method of page content according to claim 5, wherein, After determining the control parameter and the control mode of the control parameter, the method further includes: determining a global control parameter with the global control mode from the control parameter list; obtaining an initial method function pre-defined in the target page; determining the global control parameter as an input parameter of the initial method function to obtain a target method function; eliminating the global control parameter from the control parameter list, and determining a component corresponding to the global control parameter as a target component of the target method function in the target page.
7. A linkage of page content, characterized by The target page includes a plurality of content blocks, each of which corresponds to a function card, and the function card is used to display content information of the content block; the device includes: a first information determination module configured to determine first function cards with a content linkage relationship from a plurality of function cards of the target page, and determine card content parameters corresponding to the first function cards; a second information determination module configured to determine a control parameter and a control mode of the control parameter according to a setting operation on the card content parameter, the control parameter being used to control page content of the target page; a page content change module configured to determine a target control mode corresponding to a target control parameter in response to a key value change operation on the target control parameter, and change page content of the target page based on the target control mode; wherein, if the key value change operation is a change of a key value of a target control parameter in a target function card, a target control mode corresponding to the target control parameter in the target function card is determined, the target control mode including local control or no control, the target function card being one of the first function cards, and the number of the first function cards being at least two; if the key value change operation is a change of a key value of an input parameter of a target method function, the input parameter is determined as a target control parameter, and a target control mode of the target control parameter is determined as global control, the target method function being configured in the target page.
8. An electronic device, comprising: The electronic device includes: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores a computer program executed by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to execute the linkage method of the page content according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that, The computer readable storage medium stores computer instructions for enabling the processor to implement the linkage method of the page content according to any one of claims 1 to 6 when executed.
Citation Information
Patent Citations
Page element linkage methods, page element linkage device and server
CN108874808A
Terminal control method and device
CN115542753A