CN116483360A - Page content display control method, system, equipment and medium - Google Patents

Page content display control method, system, equipment and medium Download PDF

Info

Publication number
CN116483360A
CN116483360A CN202310456607.XA CN202310456607A CN116483360A CN 116483360 A CN116483360 A CN 116483360A CN 202310456607 A CN202310456607 A CN 202310456607A CN 116483360 A CN116483360 A CN 116483360A
Authority
CN
China
Prior art keywords
page
control
configuration item
page element
item data
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
Application number
CN202310456607.XA
Other languages
Chinese (zh)
Inventor
窦存凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur General Software Co Ltd
Original Assignee
Inspur General Software Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Inspur General Software Co Ltd filed Critical Inspur General Software Co Ltd
Priority to CN202310456607.XA priority Critical patent/CN116483360A/en
Publication of CN116483360A publication Critical patent/CN116483360A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computer Security & Cryptography (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The invention belongs to the field of computers, and particularly relates to a page content display control method, a system, equipment and a medium, wherein the method comprises the following steps: the control attribute corresponding to the page element in the page is customized, and the processing method mark of the page element is added in the page; and creating configuration item data capable of controlling the page element based on the control attribute, responding to the call of the page, calling a corresponding processing method according to the processing method mark of the page element, and rendering the page element based on the configuration item data of the page element. The page content display control method provided by the invention can effectively reduce the code amount of the same page content when different pages are used and greatly reduce the modification operation workload of the page, and only needs to set the control parameters in the configuration item data corresponding to the page elements.

Description

Page content display control method, system, equipment and medium
Technical Field
The invention belongs to the field of computers, and particularly relates to a page content display control method, a system, equipment and a medium.
Background
In Web form development, the following needs are encountered: developing a business document function, different system modules such as: the workflow of the A system, the workflow of the B system, the workflow of the C system and the like need to be correspondingly developed on the form for each system, and the HTML files of different flow nodes in each system need to repeatedly set relevant codes such as display/hiding, whether the corresponding elements in the form can be modified, whether the corresponding elements need to be filled in or not, and the like for the same content, so that in the traditional implementation mode, the form function codes are complex, difficult to maintain and poor in expansibility.
Therefore, an effective method is needed to optimize the repeated development problem of the content such as the page element in the page.
Disclosure of Invention
In order to solve the above problems, the present invention provides a method for controlling page content display, comprising:
the control attribute corresponding to the page element in the page is customized, and the processing method mark of the page element is added in the page;
and creating configuration item data capable of controlling the page element based on the control attribute, responding to the call of the page, calling a corresponding processing method according to the processing method mark of the page element, and rendering the page element based on the configuration item data of the page element.
In some embodiments of the method, customizing a control attribute corresponding to a page element in a page, and adding a processing method tag of the page element in the page includes:
and responding to the creation of a page element of a preset type in the page, and adding a custom control attribute in a description language corresponding to the page element.
In some embodiments of the method, customizing a control attribute corresponding to a page element in a page, and adding a processing method tag of the page element in the page further includes:
determining a processing method for processing a first preset control attribute, taking an attribute value of a second preset control attribute as a parameter of the processing method, and taking a character string corresponding to the attribute value of the second preset control attribute and the name of the processing method as an attribute value of the first preset control line.
In some embodiments of the method, creating configuration item data controllable to the page element based on the control attribute includes:
and generating one or more groups of control parameters for controlling the page elements according to a preset control rule for the predetermined page elements in the page.
In some embodiments of the method, the method further comprises:
and saving one or more groups of control parameters as configuration item data to a preset position, and generating a corresponding configuration item mark for each group of configuration item data.
In some embodiments of the method, in response to the page being invoked, invoking a corresponding processing method according to a processing method tag of a page element and rendering the page element based on configuration item data of the page element comprises:
and acquiring corresponding configuration item data from the preset position according to the configuration item mark, and rendering the page element according to the control parameter of the page element in the configuration item data.
In some embodiments of the method, the method further comprises:
and responding to the lack of control parameters of the corresponding page elements in the configuration item data, and rendering the page elements according to a preset default control rule.
Another aspect of the present invention also provides a page content display control system, including:
the page element marking module is configured to customize control attributes corresponding to the page elements in the page, and add processing method marks of the page elements in the page;
and the page element control module is configured to create configuration item data capable of controlling the page element based on the control attribute, call a corresponding processing method according to the processing method mark of the page element in response to the page being called, and render the page element based on the configuration item data of the page element.
Yet another aspect of the present invention is directed to a computer device comprising:
at least one processor; and
a memory storing computer instructions executable on the processor, which when executed by the processor, perform the steps of the method of any of the above embodiments.
Yet another aspect of the invention also proposes a computer-readable storage medium storing a computer program which, when executed by a processor, implements the steps of the method of any of the above embodiments.
By the method for controlling the surface content display, corresponding control attributes are added to the page elements, one or more groups of configuration item data for controlling the page element display are generated according to service requirements, and when the page is required to be rendered and displayed, a corresponding processing method is called, and the rendering and operation of the page elements are controlled according to the configuration item data. The method can effectively reduce the code amount of the same page content when different pages are used, greatly reduce the workload of modifying the page, and only needs to set the control parameters in the configuration item data corresponding to the page elements.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of an embodiment of a method for controlling display of page content according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a page content display control system according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a computer device according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a computer readable storage medium according to an embodiment of the present invention;
fig. 5 is a schematic view of an application scenario provided in an embodiment of the present invention;
fig. 6 is a schematic diagram of data exchange of a page, i.e. a configuration item, according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention will be described in further detail with reference to the accompanying drawings.
It should be noted that, in the embodiments of the present invention, all the expressions "first" and "second" are used to distinguish two entities with the same name but different entities or different parameters, and it is noted that the "first" and "second" are only used for convenience of expression, and should not be construed as limiting the embodiments of the present invention, and the following embodiments are not described one by one.
As shown in fig. 1, in order to solve the above problem, the present invention provides a method for controlling page content display, including:
step S1, self-defining control attributes corresponding to page elements in a page, and adding processing method marks of the page elements in the page;
and step S2, creating configuration item data capable of controlling the page element based on the control attribute, responding to the call of the page, calling a corresponding processing method according to the processing method mark of the page element, and rendering the page element based on the configuration item data of the page element.
In the embodiment of the invention, the page refers to a display interface on a computer, such as a Web page, the page element refers to a display unit in the page, such as various labels in the Web page, such as controls, buttons, or content areas of < div >, < p >, < item >, < h >, < button >, etc., and the control attribute refers to a control behavior for controlling the display and the operation of the page element by a user, including control attributes of display/hiding, read-only, filling, etc., and also includes control attributes of id, title, name, etc. for marking the corresponding page element, as shown in table 1:
attribute names Attribute description
id Identification mark
title Page element name
readonly Read-only memory
visible Revealing and hiding
required Must be filled with
TABLE 1
In step S1, the user adds an attribute such as id, title, readonly, visible, required to the page element when creating a page element, specifically, an attribute added to the < div > tag as follows:
as shown above, the < div > tag is added:
id="name_acc54613_ep8j";
visible="getVisible(true,{id:'name_acc54613_ep8j',path:'name'})";
readonly="getReadonly(isProcCenterMobile,{id:'name_acc54613_ep8j',pat h:'name'})";
control attributes such as required= "getrequest (uiState [ 'test' ], { id: 'name_acc54613_ep8j', path: 'name' }") and the like, wherein the character strings following visible, readonly and required etc. represent the name of the processing method and the corresponding parameters for processing the control attributes.
Further, in step S2, for a designed page, the user may set a control manner according to different times or different phases in the page element, specifically, assuming that the page is a document page, the user 1 creates and fills in a document related to a certain item, after filling in the document, the document will be acquired by a subsequent procedure or other visitors, while the user 1 does not want other users to modify a certain item of data in the document, and may set a read-write attribute of an element corresponding to the certain item of data, that is, set a readonly attribute of the element according to an id corresponding to the element. In addition, for some data in the bill, if the user 1 does not want other visitors to see, the corresponding data can be set to be invisible according to the id. Further, if the user 1 needs to supplement some content in the document by a subsequent flow user or other visitor, if some data must be filled in, the required attribute of the corresponding page element may be set to True according to the id of the corresponding data input element.
Further, the control on the page element is used as a configuration scheme, and configuration item data is formed. It should be noted that, the configuration item data formed by the control scheme of the above type is not written into the page file, that is, is not written into the HTML text, but the control data corresponding to each page is stored separately as configuration item data in the database, and there may be multiple configuration item data for the same page, that is, if the user 1 wants to let the visitor 2 see a content, but does not want the visitor 3 to see the same content as the visitor 2, the visible attribute of the content may be set to be visible to generate one configuration item data 1, and then the visible attribute of the content is set to be invisible to generate one configuration item data 2. The configuration item data has a corresponding id.
Further, as described above, when the page is accessed, the layout file of the page is loaded into the browser, that is, the HTML text is loaded into the browser, at this time, the back end of the corresponding address sends the corresponding configuration item id, so as to obtain corresponding configuration item data, and according to the processing function corresponding to the control attribute, such as the function of the attribute such as the visible attribute, the id of the corresponding page element in the configuration item data controls the display or hiding of the corresponding page element, whether the corresponding page element can be modified and whether the corresponding page element is necessary to be filled, that is, the attribute corresponding to the visible attribute, the ready attribute and the required attribute respectively.
It should be noted that, in the control process, when the HTML language is loaded, a corresponding method is called according to the corresponding attribute, then the control attribute about the page element in the configuration item data is transferred to the corresponding method, the visible processing method, the visible attribute, and the readonly processing method transfer the readonly attribute in the configuration item data. Thereby realizing control of corresponding page elements in the page. And rendering and displaying the page to the corresponding user.
In some embodiments of the method, customizing a control attribute corresponding to a page element in a page, and adding a processing method tag of the page element in the page includes:
and responding to the creation of a page element of a preset type in the page, and adding a custom control attribute in a description language corresponding to the page element.
In this embodiment, the creation of the page and the page elements may be created using a designer, that is, the user places the corresponding page elements in the page in a drag form through the designer interface. For this case, after the user drags one page element, a corresponding control attribute is automatically generated for the page element, and is added to the text markup language of the page element.
For the formed page, the corresponding text segment can be selected according to the structure of the page, and the control attribute can be added into the corresponding page element.
In some embodiments of the method, customizing a control attribute corresponding to a page element in a page, and adding a processing method tag of the page element in the page further includes:
determining a processing method for processing a first preset control attribute, taking an attribute value of a second preset control attribute as a parameter of the processing method, and taking a character string corresponding to the attribute value of the second preset control attribute and the name of the processing method as an attribute value of the first preset control line.
In this embodiment, as described above, in the processing method corresponding to the control attribute such as visible, readonly and required, the id of the page element, that is, the value of the id attribute of the page element needs to be transferred.
In some embodiments of the method, creating configuration item data controllable to the page element based on the control attribute includes:
and generating one or more groups of control parameters for controlling the page elements according to a preset control rule for the predetermined page elements in the page.
In some embodiments of the method, the method further comprises:
and saving one or more groups of control parameters as configuration item data to a preset position, and generating a corresponding configuration item mark for each group of configuration item data.
In this embodiment, as described above, different control parameters may be generated for the page elements in the same page, each set of control parameters serving as one configuration item data, and a unique identifier, i.e. id, is given to each configuration item data.
In some embodiments of the method, in response to the page being invoked, invoking a corresponding processing method according to a processing method tag of a page element and rendering the page element based on configuration item data of the page element comprises:
and acquiring corresponding configuration item data from the preset position according to the configuration item mark, and rendering the page element according to the control parameter of the page element in the configuration item data.
In this embodiment, when the corresponding page is called, the id of the configuration item data to be requested is sent to the address storing the configuration item data, and the server of the corresponding address returns the configuration item data corresponding to the id. And then rendering according to the configuration item data in the page.
In some embodiments of the method, the method further comprises:
and responding to the lack of control parameters of the corresponding page elements in the configuration item data, and rendering the page elements according to a preset default control rule.
In this implementation, when the configuration item data acquired from the corresponding address lacks the corresponding control parameter, the corresponding page element is rendered using the default control parameter.
Examples:
the configurable data is provided for a third party module to configure the configurable items according to rules, push and return the configurable items to the form, and the form realizes the state control of page fields, buttons and areas according to the configuration items after rendering is completed: the method comprises the steps of a read-only state, a visible and invisible state and a necessary filling state, and when a new module is accessed to the form, the configuration is obtained only according to a configurable data interface provided by the form, the personalized state control of the form can be realized by pushing the configuration, and the form does not need to be developed specifically for the new module.
Externally acquired form configuration items:
in the low code designer, the controllable attribute is added to the page element attribute of the three components of the control, the button and the area, so that a set of configurable item source data of the form is generated, and the definition structure is as follows:
attribute names Attribute description
id Identification mark
title Page element name
readonly Read-only memory
visible Revealing and hiding
required Must be filled with
After the external module acquires the configuration item data, the desired control effect is set, and the configuration item data is pushed back to the form system.
Form runtime initialization configuration item:
after the form is introduced by an external module, the external control logic is required to be started according to the configuration id parameter transmitted by the routing address in the running process, the configuration item for transmitting the configuration id is obtained, and the control of the state of the configured field is realized.
Invoking external control logic checks in form initialization procedure
When the field state is set in the form, configuration item data is loaded into a front-end cache, and functions for controlling read-only, explicit and implicit states are initialized and are necessary to be filled, wherein the stateConfigStore is led out as a state configuration cache:
the obtained configuration item data of the page element is cached in the configsMap, in this embodiment, the configuration item data obtained from the corresponding address is stored in the configsMap by a setStateConfig method, and then, for three different states, two methods of checking whether there is configuration or not and obtaining a configuration result are provided respectively.
Note that, the present invention is not limited to the above-described embodiments. setStateConfig is running in the user's browser or other terminal rendering the page content.
Form runtime implements state control:
form control instance code:
visible, readonly, required three state attributes call three state processing functions with similar functions, and a function is taken as an example to describe the following, for example, a read-only state control function (the function is also run on a client for rendering a page, for example, the function is implemented in a JS language code in a browser):
in the method, default value parameters are used as default configuration attributes of a designer;
configContext as the context information with the attribute in contact with the configuration item is equal to the second string of the corresponding attribute in the < div > tag when used, as in the previous embodiment "{ id: 'name_acc54613_ep8j', path: 'name' }";
in addition, when a set of configuration item data is obtained from a predetermined location according to the configuration item id, it is first required to determine whether the obtained configuration item data lacks a configuration item of a corresponding page element, in this embodiment, a corresponding hasreadonly stateconfigbyid method is compiled at a client (e.g., on a browser) for rendering a page to determine whether the corresponding page element has a configuration item one by one, if not, a default attribute is used, and if not, a configuration item attribute is obtained according to getread stateconfigbyid, and the configuration item temporarily supports true, false, default, thereby implementing control of a control state.
The application scene of the invention comprises the presentation and editing of bill data realized by a cross system, the corresponding page is a data page of a bill type, different configuration item data can be configured for different nodes in a system if different contents are required to be displayed or hidden in different nodes or staff of different nodes need to supplement the contents in the bill, when the corresponding node calls or presents the bill, the front-end page controls page elements according to control attributes through the corresponding configuration item id according to the configuration items, for example, the node staff is required to supplement certain attribute contents on the bill on some nodes, only a group of configuration item data of the bill is required to be generated in the node, the required control attribute of the page elements is set as True, when the page of the node is loaded, the required processing function sets the contents corresponding to the page elements in the page to be filled in, and when the user of the node submits the bill, if the page elements are not filled in with the contents, the submitting operation is not allowed.
Further, if the document is continuously operated by the personnel of other nodes in the subsequent flow, but some contents may not be seen by the operators of some nodes, so that the control attribute visible of the page element of the content corresponding to the document on the page can be set to False, and a group of configuration item data is configured at the node, when the page of the document is opened by the operators of the node, the configuration item data is acquired from the corresponding service back end according to the id of the configuration item data, and the display and the hiding of the page element in the document page are controlled by the configuration item data.
In addition, for different service systems, when calling pages of other systems, corresponding configuration item data can be configured for the called pages according to needs, only control parameters of corresponding elements as shown in table 1 are needed to be modified so as to generate a group of configuration item parameters to be pushed to a preset service back end, when the corresponding pages need to be loaded, the id of the configuration item is sent to the service back end, then the configuration item data sent by the service back end is received, and rendering of the page elements in the pages is controlled according to the configuration item data.
Through the scheme, the control authority (the original set of default control authority) of the page elements can be released from one form, and the control authority is given to a third party module accessed from the outside, so that the state control of the corresponding page elements in the introduced page can be realized through configuration item data. After the single form development is achieved, the form codes do not need to be subjected to butt joint modification by using manual resources again due to the introduction of a subsequent new third party module, the complexity of the front-end codes is reduced, and the maintainability and the expansibility realization quality of the form codes in the front-end pages are greatly improved due to the fact that a large number of judgment sentences are easily generated due to the introduction of external access business logic.
The specific application architecture, i.e. the interaction flow, of the present invention is shown in fig. 5-6.
As shown in fig. 2, another aspect of the present invention further proposes a page content display control system, including:
the page element marking module 1 is configured to customize control attributes corresponding to the page elements in the page, and add processing method marks of the page elements in the page;
and the page element control module 2 is configured to create configuration item data capable of controlling the page element based on the control attribute, call a corresponding processing method according to the processing method mark of the page element in response to the page being called, and render the page element based on the configuration item data of the page element.
As shown in fig. 3, a further aspect of the present invention further proposes a computer device, including:
at least one processor 21; and
a memory 22, said memory 22 storing computer instructions 23 executable on said processor 21, said instructions 23 when executed by said processor 21 implementing a page content display control method comprising:
the control attribute corresponding to the page element in the page is customized, and the processing method mark of the page element is added in the page;
and creating configuration item data capable of controlling the page element based on the control attribute, responding to the call of the page, calling a corresponding processing method according to the processing method mark of the page element, and rendering the page element based on the configuration item data of the page element.
In some embodiments of the method, customizing a control attribute corresponding to a page element in a page, and adding a processing method tag of the page element in the page includes:
and responding to the creation of a page element of a preset type in the page, and adding a custom control attribute in a description language corresponding to the page element.
In some embodiments of the method, customizing a control attribute corresponding to a page element in a page, and adding a processing method tag of the page element in the page further includes:
determining a processing method for processing a first preset control attribute, taking an attribute value of a second preset control attribute as a parameter of the processing method, and taking a character string corresponding to the attribute value of the second preset control attribute and the name of the processing method as an attribute value of the first preset control line.
In some embodiments of the method, creating configuration item data controllable to the page element based on the control attribute includes:
and generating one or more groups of control parameters for controlling the page elements according to a preset control rule for the predetermined page elements in the page.
In some embodiments of the method, the method further comprises:
and saving one or more groups of control parameters as configuration item data to a preset position, and generating a corresponding configuration item mark for each group of configuration item data.
In some embodiments of the method, in response to the page being invoked, invoking a corresponding processing method according to a processing method tag of a page element and rendering the page element based on configuration item data of the page element comprises:
and acquiring corresponding configuration item data from the preset position according to the configuration item mark, and rendering the page element according to the control parameter of the page element in the configuration item data.
In some embodiments of the method, the method further comprises:
and responding to the lack of control parameters of the corresponding page elements in the configuration item data, and rendering the page elements according to a preset default control rule.
As shown in fig. 4, still another aspect of the present invention further proposes a computer readable storage medium 401, the computer readable storage medium 401 storing a computer program 402, the computer program 402 implementing a page content display control method when executed by a processor, including:
the control attribute corresponding to the page element in the page is customized, and the processing method mark of the page element is added in the page;
and creating configuration item data capable of controlling the page element based on the control attribute, responding to the call of the page, calling a corresponding processing method according to the processing method mark of the page element, and rendering the page element based on the configuration item data of the page element.
In some embodiments of the method, customizing a control attribute corresponding to a page element in a page, and adding a processing method tag of the page element in the page includes:
and responding to the creation of a page element of a preset type in the page, and adding a custom control attribute in a description language corresponding to the page element.
In some embodiments of the method, customizing a control attribute corresponding to a page element in a page, and adding a processing method tag of the page element in the page further includes:
determining a processing method for processing a first preset control attribute, taking an attribute value of a second preset control attribute as a parameter of the processing method, and taking a character string corresponding to the attribute value of the second preset control attribute and the name of the processing method as an attribute value of the first preset control line.
In some embodiments of the method, creating configuration item data controllable to the page element based on the control attribute includes:
and generating one or more groups of control parameters for controlling the page elements according to a preset control rule for the predetermined page elements in the page.
In some embodiments of the method, the method further comprises:
and saving one or more groups of control parameters as configuration item data to a preset position, and generating a corresponding configuration item mark for each group of configuration item data.
In some embodiments of the method, in response to the page being invoked, invoking a corresponding processing method according to a processing method tag of a page element and rendering the page element based on configuration item data of the page element comprises:
and acquiring corresponding configuration item data from the preset position according to the configuration item mark, and rendering the page element according to the control parameter of the page element in the configuration item data.
In some embodiments of the method, the method further comprises:
and responding to the lack of control parameters of the corresponding page elements in the configuration item data, and rendering the page elements according to a preset default control rule.
The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosed embodiments may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that as used herein, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The foregoing embodiment of the present invention has been disclosed with reference to the number of embodiments for the purpose of description only, and does not represent the advantages or disadvantages of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program for instructing relevant hardware, where the program may be stored in a computer readable storage medium, and the storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Those of ordinary skill in the art will appreciate that: the above discussion of any embodiment is merely exemplary and is not intended to imply that the scope of the disclosure of embodiments of the invention, including the claims, is limited to such examples; combinations of features of the above embodiments or in different embodiments are also possible within the idea of an embodiment of the invention, and there are many other variations of the different aspects of the embodiments of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omission, modification, equivalent replacement, improvement, etc. of the embodiments should be included in the protection scope of the embodiments of the present invention.

Claims (10)

1. A page content display control method, characterized by comprising:
the control attribute corresponding to the page element in the page is customized, and the processing method mark of the page element is added in the page;
and creating configuration item data capable of controlling the page element based on the control attribute, responding to the call of the page, calling a corresponding processing method according to the processing method mark of the page element, and rendering the page element based on the configuration item data of the page element.
2. The method of claim 1, wherein the customizing the control attributes corresponding to the page elements in the page and adding the processing method tags for the page elements in the page comprises:
and responding to the creation of a page element of a preset type in the page, and adding a custom control attribute in a description language corresponding to the page element.
3. The method of claim 1, wherein the customizing the control attributes corresponding to the page elements in the page and adding the processing method tags for the page elements in the page further comprises:
determining a processing method for processing a first preset control attribute, taking an attribute value of a second preset control attribute as a parameter of the processing method, and taking a character string corresponding to the attribute value of the second preset control attribute and the name of the processing method as an attribute value of the first preset control line.
4. The method of claim 1, wherein creating configuration item data that can control the page element based on the control attributes comprises:
and generating one or more groups of control parameters for controlling the page elements according to a preset control rule for the predetermined page elements in the page.
5. The method as recited in claim 4, further comprising:
and saving one or more groups of control parameters as configuration item data to a preset position, and generating a corresponding configuration item mark for each group of configuration item data.
6. The method of claim 1, wherein said calling a corresponding processing method according to a processing method tag of a page element and rendering the page element based on configuration item data of the page element in response to the page being called comprises:
and acquiring corresponding configuration item data from the preset position according to the configuration item mark, and rendering the page element according to the control parameter of the page element in the configuration item data.
7. The method as recited in claim 6, further comprising:
and responding to the lack of control parameters of the corresponding page elements in the configuration item data, and rendering the page elements according to a preset default control rule.
8. A page content display control system, comprising:
the page element marking module is configured to customize control attributes corresponding to the page elements in the page, and add processing method marks of the page elements in the page;
and the page element control module is configured to create configuration item data capable of controlling the page element based on the control attribute, call a corresponding processing method according to the processing method mark of the page element in response to the page being called, and render the page element based on the configuration item data of the page element.
9. A computer device, comprising:
at least one processor; and
a memory storing computer instructions executable on the processor, which when executed by the processor, perform the steps of the method of any one of claims 1-7.
10. A computer readable storage medium storing a computer program which, when executed by a processor, implements the steps of the method of any one of claims 1-7.
CN202310456607.XA 2023-04-21 2023-04-21 Page content display control method, system, equipment and medium Pending CN116483360A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310456607.XA CN116483360A (en) 2023-04-21 2023-04-21 Page content display control method, system, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310456607.XA CN116483360A (en) 2023-04-21 2023-04-21 Page content display control method, system, equipment and medium

Publications (1)

Publication Number Publication Date
CN116483360A true CN116483360A (en) 2023-07-25

Family

ID=87226509

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310456607.XA Pending CN116483360A (en) 2023-04-21 2023-04-21 Page content display control method, system, equipment and medium

Country Status (1)

Country Link
CN (1) CN116483360A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117093218A (en) * 2023-10-19 2023-11-21 浪潮通用软件有限公司 Front-end interface rendering method, device and medium based on interface description

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117093218A (en) * 2023-10-19 2023-11-21 浪潮通用软件有限公司 Front-end interface rendering method, device and medium based on interface description
CN117093218B (en) * 2023-10-19 2024-01-26 浪潮通用软件有限公司 Front-end interface rendering method, device and medium based on interface description

Similar Documents

Publication Publication Date Title
US8700988B2 (en) Selectively interpreted portal page layout template
US8312170B2 (en) Method and apparatus for managing a collection of portlets in a portal server
US8055705B2 (en) Method and apparatus for enabling associated portlets of a web portlet to collaborate for synchronized content display
US10880391B2 (en) Method and apparatus for relaying session information from a portal server
US7028262B2 (en) Method and system for designing a theme and associating it with a collaboration space user interface
US6996780B2 (en) Method and system for creating a place type to be used as a template for other places
US9235560B2 (en) General purpose annotation service for portal-based applications
US8560956B2 (en) Processing model of an application wiki
US7020686B2 (en) Method and system for providing synchronous communication and person awareness in a place
US8055997B2 (en) System and method for implementing dynamic forms
US20060235935A1 (en) Method and apparatus for using business rules or user roles for selecting portlets in a web portal
US7441187B2 (en) Web template processing utilizing dynamic rules defined by data structure language
US20080028302A1 (en) Method and apparatus for incrementally updating a web page
US8930824B2 (en) Facilitating propagation of user interface patterns or themes
US20080010387A1 (en) Method for defining a Wiki page layout using a Wiki page
US20080010338A1 (en) Method and apparatus for client and server interaction
US20080065769A1 (en) Method and apparatus for argument detection for event firing
US20150302110A1 (en) Decoupling front end and back end pages using tags
WO2007014788A1 (en) Using templates for ensuring visual consistency among portlets
CN104798067B (en) Dictionary system and dictionary call method
CN116483360A (en) Page content display control method, system, equipment and medium
US20050108681A1 (en) Method and system for applying user interface elements to data
US20030195896A1 (en) Method and apparatus for managing imported or exported data
US20080010388A1 (en) Method and apparatus for server wiring model
JP2001125855A (en) Dynamic web page generation program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination