Page content updating method, system, electronic device and storage medium

By monitoring page operations to generate unrelated page code, the problem of low efficiency and lack of versatility in page updates in existing technologies is solved. This achieves improved versatility and efficiency of page updates, reduces costs, and enhances user experience.

CN116340679BActive Publication Date: 2025-12-30AULTON NEW ENERGY AUTOMOBILE TECHNOLOGY CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111581284.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-22
Publication Date
2025-12-30
Estimated Expiration
2041-12-22

AI Technical Summary

Technical Problem

Existing page update methods lack versatility, are inefficient, and contain lengthy code, which negatively impacts user experience and increases maintenance and development costs.

Method used

By listening to page operation events, page code unrelated to the hidden settings is generated. The page code is updated according to different display requirements to form a fixed display template and simplify the code structure.

Benefits of technology

It has improved the universality and efficiency of page updates, reduced maintenance and development costs, and improved page operation efficiency and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116340679B_ABST
    Figure CN116340679B_ABST
Patent Text Reader

Abstract

The application discloses a page content updating method and system, electronic equipment and a storage medium, and the method comprises the steps of: listening to a first operation event for a current page; generating page code information when the first operation event indicates that the display state of set content in the current page is changed; and updating the current page according to the page code information. According to different display requirements, the application generates page code corresponding to the overall operation architecture of the page, so that a page meeting the requirements of a user is rendered based on the page code. Unlike the existing page updating mode of modifying only part of the code, the application belongs to a brand-new page updating scheme. Once a new page is formed, the new page can be used as a fixed display template corresponding to a display requirement, and the display mode can be maintained, so that the new page has universality, and the subsequent maintenance cost and development cost are reduced. In addition, the page code is simple, so that the page operation efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data processing technology, and in particular to a method, system, electronic device, and storage medium for updating page content. Background Technology

[0002] The current method involves determining the corresponding table information based on database parameters (such as database name), and then generating the front-end display page based on the table information to control the display of pages associated with the database.

[0003] A front-end display page typically includes a fixed display section and a section whose display status can be changed. Different users can modify the display status of one or more items (such as creation time, logout time, logout serial number, etc.) in the section whose display status can be changed according to their own page viewing needs. Specifically, they can select to hide or show the corresponding content by clicking the operation button through touch operation. The back-end, based on the user's touch operation, only modifies the local code information corresponding to the touch operation to update the display of the current page.

[0004] However, the above page update method is a one-time update based on the current user's tap operation, which is not universal. If the current user or other users have the same page display requirements in subsequent page displays, the user needs to repeat the tap operation, and the page update operation process of only modifying the local code information corresponding to the touch operation needs to be repeated again. This results in low update efficiency, verbose code, affecting the user's page operation experience, and increasing subsequent maintenance and development costs. Summary of the Invention

[0005] The technical problem to be solved by the present invention is to overcome the shortcomings of existing page update schemes, such as lack of universality, low update efficiency, verbose code, impact on user page operation experience, and increased subsequent maintenance and development costs. The purpose is to provide a method, system, electronic device, and storage medium for updating page content.

[0006] The present invention solves the above-mentioned technical problems through the following technical solution:

[0007] This invention provides a method for updating page content, the method comprising:

[0008] Listen for the first action event on the current page;

[0009] When the first operation event indicates a change in the display state of the set content on the current page, page code information is generated;

[0010] The page code information is associated with the target display content on the current page, excluding the set content whose display status has been changed to hidden;

[0011] The target display content corresponds to the fixed display content in the current page, or the fixed display content in the current page and the display state are the set content to be displayed;

[0012] Update the current page based on the page code information.

[0013] In this solution, by listening to operations on the display page, page code is automatically generated when the operation is to hide or show set content. This page code only applies to the content that needs to be displayed and has no relation to the hidden set content. The current page is then updated based on the page code. That is, page code corresponding to the overall operation architecture of the page is generated according to different display requirements, and a page that meets the user's requirements is rendered based on this page code. Unlike the existing page update method that only modifies a part of the code, once a new page is generated, this new page can serve as a fixed display template for a certain display requirement, and can always maintain this display mode. This makes the new page universal and also reduces subsequent maintenance and development costs. In addition, the code of the generated new page only corresponds to the fixed display inversion and the display state of the set content, making the code concise and improving the page running efficiency.

[0014] Preferably, the step of updating the current page based on the page code information includes:

[0015] A new page is generated based on the page code information to update and display the current page.

[0016] Based on a brand-new page code generation scheme, a new page is rendered using page code information to update and replace the current page, ensuring the timeliness and effectiveness of page display updates.

[0017] Preferably, the step of listening for the first operation event on the current page further includes:

[0018] Obtain the preset initial code information corresponding to the current page;

[0019] The preset initial code information includes the code corresponding to the fields that characterize the basic parameters of the preset database;

[0020] Different first operation events correspond to different fields in the preset initial code information;

[0021] Different first operation events correspond to changes in the display state of different set content on the current page;

[0022] The fields include at least one of the following: library name, table name, business line, and project name.

[0023] Before the current page is updated, the preset initial code information of the current page is obtained in advance. This preset initial code information corresponds to several fields of the displayed content on the page. During the page update operation, once the first operation event is detected on the current page, the code field information corresponding to the set content being operated on will change. This achieves the listening and recognition of the first operation event, thereby ensuring the page update efficiency.

[0024] Preferably, the step of listening for the first operation event on the current page further includes:

[0025] Obtain the information list corresponding to the preset database;

[0026] The fields in the preset database are obtained from the information list and used as the settings in the current page.

[0027] The settings on the current page are determined by different fields in a preset database, and the current page is rendered and displayed based on these settings to achieve the display of the current page.

[0028] Preferably, the step of generating page code information when the first operation event indicates a change in the display state of set content on the current page includes:

[0029] After listening to the first operation event, obtain the first code information corresponding to updating the current page;

[0030] By comparing the first code information and the preset initial code information, the fields that have changed in the preset initial code information are determined to obtain the comparison results;

[0031] When the comparison result indicates a change in the display state of the set content on the current page, the target display content on the current page is determined.

[0032] The page code information is generated based on the target display content.

[0033] After listening to the first operation event, the changes in code information are compared to identify the content that needs to be hidden or displayed on the current page. The corresponding page code is automatically generated for the content that needs to be displayed. This new page can then serve as a fixed display template for a specific display requirement, maintaining the same display method. This makes the new page versatile and meets more page display needs.

[0034] Preferably, the method further includes, after the step of determining the target display content in the current page and before the step of generating the page code information based on the target display content:

[0035] Listen for a second operation event targeting the current page;

[0036] Upon detecting the second operation event, the step of generating the page code information based on the target display content is executed.

[0037] By listening to the second operation event, page code information can be automatically generated based on the target display content. This means that the generation of page code can be determined based on external triggers (such as user clicks), and the current page can be updated and displayed. This can meet higher page operation requirements and effectively improve the user's page operation experience.

[0038] Preferably, the first operation event and / or the second operation event are implemented in at least one of the following ways:

[0039] Touch buttons, physical buttons, or externally triggered voice commands. Preferably, after the step of updating the current page based on the page code information, the method further includes:

[0040] Receive second code information for the current page;

[0041] The second code information is used to display at least one of the set content and / or newly added content on the current page;

[0042] The first code information and the second code information are merged and processed to obtain new page code information;

[0043] The current page is updated based on the new page code information.

[0044] After updating the current page, if the user needs to display other settings or add other content, the corresponding second code information can be merged with the first code information to obtain new page code information, which will further update the current page. This effectively improves the flexibility and effectiveness of page updates, enhances the page's versatility, and improves the user's page operation experience.

[0045] Preferably, the current page is a page for information querying and / or information display corresponding to the preset database;

[0046] The settings include a search box for querying the database information and / or a list for displaying the database information.

[0047] The present invention also provides a page content updating system, the system comprising:

[0048] The first event listener module is used to listen for the first operation event on the current page.

[0049] The page code generation module is used to generate page code information when the first operation event indicates a change in the display state of a set content in the current page;

[0050] The page code information is associated with the target display content on the current page, excluding the set content whose display status has been changed to hidden;

[0051] The target display content corresponds to the fixed display content in the current page, or the fixed display content in the current page and the display state are the set content to be displayed;

[0052] The page update module is used to update the current page based on the page code information.

[0053] Preferably, the page update module is used to generate a new page based on the page code information to update the display of the current page.

[0054] Preferably, the system further includes:

[0055] The initial code acquisition module is used to acquire preset initial code information corresponding to the current page;

[0056] The preset initial code information includes the code corresponding to the fields that characterize the basic parameters of the preset database;

[0057] Different first operation events correspond to different fields in the preset initial code information;

[0058] Different first operation events correspond to changes in the display state of different set content on the current page;

[0059] The fields include at least one of the following: library name, table name, business line, and project name.

[0060] Preferably, the system further includes:

[0061] An information list acquisition module is used to acquire the information list corresponding to the preset database.

[0062] The fields in the preset database are obtained from the information list and used as the settings in the current page.

[0063] Preferably, the page code generation module includes:

[0064] The first code information acquisition unit is used to acquire the first code information corresponding to updating the current page after listening to the first operation event;

[0065] The comparison unit is used to compare the first code information and the preset initial code information, determine the fields that have changed in the preset initial code information, and obtain the comparison result;

[0066] The target display content determination unit is used to determine the target display content in the current page when the comparison result indicates a change in the display state of the set content in the current page;

[0067] The page code information generation unit is used to generate the page code information based on the target display content.

[0068] Preferably, the system further includes:

[0069] The second event listening module is used to listen for a second operation event on the current page, and to call the page code information generation unit when the second operation event is detected.

[0070] Preferably, the first operation event and / or the second operation event are implemented in at least one of the following ways:

[0071] Touch buttons, physical buttons, or externally triggered voice commands.

[0072] Preferably, the system further includes:

[0073] The second code information receiving module is used to receive second code information for the current page;

[0074] The second code information is used to display at least one of the set content and / or newly added content on the current page;

[0075] The page code generation module is also used to fuse the first code information and the second code information to obtain new page code information;

[0076] The page update module is also used to update the current page based on the new page code information.

[0077] Preferably, the system further includes:

[0078] The current page is a page for information querying and / or information display corresponding to the preset database;

[0079] The settings include a search box for querying the database information and / or a list for displaying the database information.

[0080] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the above-described method for updating page content.

[0081] The present invention also provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the above-described method for updating page content.

[0082] Based on common knowledge in the field, the preferred conditions described can be combined arbitrarily to obtain various preferred embodiments of the present invention.

[0083] The positive and progressive effects of this invention are as follows:

[0084] In this invention, by listening to operations on the display page, page code is automatically generated when the operation is to hide or show set content. This page code only applies to the content that needs to be displayed and has no relation to the hidden set content. The current page is then updated based on the page code. That is, page code corresponding to the overall operation architecture of the page is generated according to different display requirements, and a page that meets the user's requirements is rendered based on this page code. This is a completely new page update scheme, unlike the existing page update method that only modifies a part of the code. Once a new page is formed, it can serve as a fixed display template for a certain display requirement, maintaining that display mode indefinitely. This makes the new page universal and reduces subsequent maintenance and development costs. In addition, the code of the generated new page only corresponds to the fixed display inversion and the set content of the display state, making the code concise and improving page operation efficiency. Attached Figure Description

[0085] Figure 1 This is a flowchart of the page content update method according to Embodiment 1 of the present invention.

[0086] Figure 2 This is a flowchart of the page content update method according to Embodiment 2 of the present invention.

[0087] Figure 3 This is a first schematic diagram of the page display in Embodiment 2 of the present invention.

[0088] Figure 4 This is a second schematic diagram showing the page display of Embodiment 2 of the present invention.

[0089] Figure 5 This is a third schematic diagram showing the page display of Embodiment 2 of the present invention.

[0090] Figure 6 This is a fourth schematic diagram showing the page display of Embodiment 2 of the present invention.

[0091] Figure 7 This is the fifth schematic diagram of the page display in Embodiment 2 of the present invention.

[0092] Figure 8 This is the sixth schematic diagram of the page display in Embodiment 2 of the present invention.

[0093] Figure 9 This is the seventh schematic diagram of the page display in Embodiment 2 of the present invention.

[0094] Figure 10 This is a schematic diagram of the page content update system of Embodiment 3 of the present invention.

[0095] Figure 11 This is a schematic diagram of the page content update system of Embodiment 4 of the present invention.

[0096] Figure 12 This is a schematic diagram of the structure of an electronic device that implements the page content update method according to Embodiment 5 of the present invention. Detailed Implementation

[0097] The present invention will be further illustrated by way of embodiments below, but the present invention is not limited to the scope of the embodiments described herein.

[0098] Example 1

[0099] The page content update method in this embodiment can be implemented using electronic devices such as computers, mobile terminals, servers, and processor chips.

[0100] like Figure 1 As shown, the method for updating page content in this embodiment includes:

[0101] S101, Listen for the first operation event on the current page;

[0102] The first operation event includes, but is not limited to, operations performed directly by the user on the current page (such as clicking), as well as set operations performed on the current page through background programming software.

[0103] S102. When the first operation event indicates a change in the display state of the set content on the current page, page code information is generated.

[0104] The display status of the configured content includes showing or hiding. This content refers to specific information that can be displayed on the page by clicking or checking, or hidden by deselecting or unchecking. Which content needs to be configured as having a changeable display status can be determined and adjusted according to actual needs.

[0105] Specifically, the page code information is associated with the target display content on the current page, excluding the content whose display status has been changed to hidden;

[0106] The target display content corresponds to the fixed display content on the current page, or the fixed display content on the current page and the display status are the set content to be displayed;

[0107] Fixed display content refers to content on the page whose display state cannot be modified; that is, content that is always displayed. When the display state of all set content on the current page is changed to hidden, the target display content only includes the fixed display content. When the display state of some set content on the current page is changed to hidden, and the display state of some is shown, the target display content includes both the fixed display content and the set content that is shown.

[0108] S103. Update the current page based on the page code information.

[0109] Specifically, a new page is generated based on the page code information to update and display the current page.

[0110] Based on a brand-new page code generation scheme, a new page is rendered using page code information to update and replace the current page, ensuring the timeliness and effectiveness of page display updates.

[0111] In this embodiment, by listening to operations on the display page, page code is automatically generated when the operation is to hide or show set content. This page code only applies to the content that needs to be displayed and has no relation to the hidden set content. The current page is then updated based on the page code. That is, page code corresponding to the overall operation architecture of the page is generated according to different display requirements, and a page that meets the user's requirements is rendered based on this page code. This is a completely new page update scheme, unlike the existing page update method that only modifies a part of the code. Once a new page is formed, it can serve as a fixed display template for a certain display requirement, and can maintain that display mode indefinitely. This makes the new page universal and reduces subsequent maintenance and development costs. In addition, the code of the generated new page only corresponds to the fixed display inversion and the set content of the display state, making the code concise and improving the page running efficiency.

[0112] Example 2

[0113] like Figure 2 As shown, the page content update method in this embodiment is a further improvement on embodiment 1, specifically:

[0114] In one feasible embodiment, the following is included before step S101:

[0115] Retrieve the preset initial code information corresponding to the current page;

[0116] The preset initial code information includes the codes corresponding to the fields that represent the basic parameters of the preset database;

[0117] Different first operation events correspond to different fields in the preset initial code information;

[0118] Different first-action events correspond to changes in the display status of different settings on the current page.

[0119] The fields include database name, table name, business line, and project name.

[0120] Before the current page is updated, the preset initial code information of the current page is obtained in advance. This preset initial code information corresponds to several fields of the displayed content on the page. During the page update operation, once the first operation event is detected on the current page, the code field information corresponding to the set content being operated on will change. This achieves the listening and recognition of the first operation event, thereby ensuring the page update efficiency.

[0121] In one feasible embodiment, the following is included before step S101:

[0122] S10101. Obtain the information list corresponding to the preset database;

[0123] Obtain a list of all databases in advance, and retrieve the database name, connection, password, and username for each database to query the information list corresponding to each database.

[0124] S10102. Obtain fields from the preset database according to the information list, use them as the setting content on the current page, and then render and display the setting content on the current page.

[0125] The settings on the current page are determined by different fields in a preset database, and the current page is rendered and displayed based on these settings to achieve the display of the current page.

[0126] The current page is a page for information querying, information display, etc., corresponding to the preset database.

[0127] The settings include a search box for querying database information and a list for displaying database information.

[0128] In one feasible embodiment, step S102 includes:

[0129] S1021. After listening to the first operation event, obtain the first code information corresponding to updating the current page;

[0130] S1022. Compare the first code information with the preset initial code information to determine the fields that have changed in the preset initial code information, and obtain the comparison results;

[0131] S1023. When the comparison result indicates that the display status of the set content in the current page is changed, the target display content in the current page is determined.

[0132] S1024. Generate page code information based on the target display content.

[0133] After listening to the first operation event, the changes in code information are compared to identify the content that needs to be hidden or displayed on the current page. The corresponding page code is automatically generated for the content that needs to be displayed. This new page can then serve as a fixed display template for a specific display requirement, maintaining the same display method. This makes the new page versatile and meets more page display needs.

[0134] In one feasible solution, the steps following step S1023 and before step S1024 include:

[0135] Listen for the second action event targeting the current page;

[0136] When the second operation event is detected, step S1024 is executed.

[0137] By listening to the second operation event, page code information can be automatically generated based on the target display content. This means that the generation of page code can be determined based on external triggers (such as user clicks), and the current page can be updated and displayed. This can meet higher page operation requirements and effectively improve the user's page operation experience.

[0138] The first operation event and / or the second operation event are both implemented through touch buttons, physical buttons, or externally triggered voice commands.

[0139] In one feasible embodiment, step S103 is followed by:

[0140] S104. Receive the second code information for the current page;

[0141] The second code information is used to display at least one set content and / or newly added content on the current page;

[0142] S105. Merge the first code information and the second code information to obtain new page code information;

[0143] S106. Update the current page according to the new page code information.

[0144] After updating the current page, if the user needs to display other settings or add other content, the corresponding second code information can be merged with the first code information to obtain new page code information, which will further update the current page. This effectively improves the flexibility and effectiveness of page updates, enhances the page's versatility, and improves the user's page operation experience.

[0145] The implementation principle of the page content update method in this embodiment will be explained in detail below with examples:

[0146] (1) Obtain a list of all databases in advance, and then obtain the database name, link, password and username of each database to query the information list of each database.

[0147] The system retrieves fields from a preset database based on the information list, uses them as settings for the current page, and then renders and displays these settings on the current page.

[0148] See Figure 3 and Figure 4 At this point, the fixed display content includes the search box (library name, table name, business line, project name, table prefix to ignore, generated code, etc.) and the list query condition configuration area (attribute, name, type, data format, whether to hide). The settings include list id, message ID head_id, logout time logout_time, logout serial number logout_id, and creation time creat_time. These settings are displayed as a list or search box.

[0149] (2) After the first operation event, none of the "Hide or Not" options on the current page are selected. See [link / reference] Figure 3 When all fields indicating whether they are hidden are set to "No", the search box and list with fixed content will be fully displayed. See [link / reference]. Figure 3 That is, the display remains unchanged.

[0150] After the first action event, all "Hide or hide" options on the current page are selected, see [link / reference]. Figure 4 When all fields indicating whether they are hidden are set to "Yes", the list will not be displayed; only the search box with fixed content will be shown. In this case, the page code is only associated with the fixed content corresponding to the search box. See [link to relevant documentation]. Figure 5 Alternatively, only display the search box corresponding to the specified content; see [link to relevant documentation]. Figure 6 .

[0151] When, after the first operation event, there are selected display items in the "Whether to hide" field on the current page, that is, when all fields indicating whether to hide are marked "yes", see [link to relevant documentation]. Figure 7 (That is, only display the creation time), then the search box and part of the list with fixed display content will be displayed, see [link to relevant documentation]. Figure 8 Alternatively, a search box with fixed content and a search box corresponding to the creation time may be displayed; see [link / reference]. Figure 9 At this point, the page code has no relation to the hidden settings; it only relates to the fixed display content corresponding to the search box and the list content that is not selected as hidden.

[0152] After selecting which content to hide and which to show, users can click the "Generate Code" button to generate the corresponding page code information with one click. The new page generated based on the page code information will then update the current page.

[0153] In this embodiment, by listening to operations on the display page, page code is automatically generated when the operation is to hide or show set content. This page code only applies to the content that needs to be displayed and has no relation to the hidden set content. The current page is then updated based on the page code. That is, page code corresponding to the overall operation architecture of the page is generated according to different display requirements, and a page that meets the user's requirements is rendered based on this page code. This is a completely new page update scheme, unlike the existing page update method that only modifies a part of the code. Once a new page is formed, it can serve as a fixed display template for a certain display requirement, and can maintain that display mode indefinitely. This makes the new page universal and reduces subsequent maintenance and development costs. In addition, the code of the generated new page only corresponds to the fixed display inversion and the set content of the display state, making the code concise and improving the page running efficiency.

[0154] Example 3

[0155] The page content update system in this embodiment can be implemented using electronic devices such as computers, mobile terminals, servers, and processor chips.

[0156] like Figure 10 As shown, the page content update system in this embodiment includes:

[0157] The first event listening module 1 is used to listen for the first operation event on the current page;

[0158] The first operation event includes, but is not limited to, operations performed directly by the user on the current page (such as clicking), as well as set operations performed on the current page through background programming software.

[0159] Page code generation module 2 is used to generate page code information when the first operation event indicates a change in the display state of the set content in the current page;

[0160] The display status of the configured content includes showing or hiding. This content refers to specific information that can be displayed on the page by clicking or checking, or hidden by deselecting or unchecking. Which content needs to be configured as having a changeable display status can be determined and adjusted according to actual needs.

[0161] Specifically, the page code information is associated with the target display content on the current page, excluding the content whose display status has been changed to hidden;

[0162] The target display content corresponds to the fixed display content on the current page, or the fixed display content on the current page and the display status are the set content to be displayed;

[0163] Fixed display content refers to content on the page whose display state cannot be modified; that is, content that is always displayed. When the display state of all set content on the current page is changed to hidden, the target display content only includes the fixed display content. When the display state of some set content on the current page is changed to hidden, and the display state of some is shown, the target display content includes both the fixed display content and the set content that is shown.

[0164] Page update module 3 is used to update the current page based on page code information.

[0165] Specifically, the page update module 3 is used to generate a new page based on the page code information in order to update and display the current page.

[0166] Based on a brand-new page code generation scheme, a new page is rendered using page code information to update and replace the current page, ensuring the timeliness and effectiveness of page display updates.

[0167] In this embodiment, by listening to operations on the display page, page code is automatically generated when the operation is to hide or show set content. This page code only applies to the content that needs to be displayed and has no relation to the hidden set content. The current page is then updated based on the page code. That is, page code corresponding to the overall operation architecture of the page is generated according to different display requirements, and a page that meets the user's requirements is rendered based on this page code. This is a completely new page update scheme, unlike the existing page update method that only modifies a part of the code. Once a new page is formed, it can serve as a fixed display template for a certain display requirement, and can maintain that display mode indefinitely. This makes the new page universal and reduces subsequent maintenance and development costs. In addition, the code of the generated new page only corresponds to the fixed display inversion and the set content of the display state, making the code concise and improving the page running efficiency.

[0168] Example 4

[0169] like Figure 11 As shown, the page content update system in this embodiment is a further improvement on embodiment 3, specifically:

[0170] In one feasible embodiment, the system further includes:

[0171] Initial code acquisition module 4 is used to obtain the preset initial code information corresponding to the current page;

[0172] The preset initial code information includes the codes corresponding to the fields that represent the basic parameters of the preset database;

[0173] Different first operation events correspond to different fields in the preset initial code information;

[0174] Different first-action events correspond to changes in the display status of different settings on the current page.

[0175] The fields include database name, table name, business line, and project name.

[0176] Before the current page is updated, the preset initial code information of the current page is obtained in advance. This preset initial code information corresponds to several fields of the displayed content on the page. During the page update operation, once the first operation event is detected on the current page, the code field information corresponding to the set content being operated on will change. This achieves the listening and recognition of the first operation event, thereby ensuring the page update efficiency.

[0177] In one feasible embodiment, the system further includes:

[0178] Information list acquisition module 5 is used to acquire the information list corresponding to the preset database;

[0179] Obtain a list of all databases in advance, and retrieve the database name, connection, password, and username for each database to query the information list corresponding to each database.

[0180] The system retrieves fields from a preset database based on the information list, uses them as settings for the current page, and then renders and displays these settings on the current page.

[0181] The settings on the current page are determined by different fields in a preset database, and the current page is rendered and displayed based on these settings to achieve the display of the current page.

[0182] The current page is a page for information querying, information display, etc., corresponding to the preset database.

[0183] The settings include a search box for querying database information and a list for displaying database information.

[0184] In one feasible solution, the page code generation module 2 of this embodiment includes:

[0185] The first code information acquisition unit is used to acquire the first code information corresponding to updating the current page after listening to the first operation event;

[0186] The comparison unit is used to compare the first code information and the preset initial code information, determine the fields that have changed in the preset initial code information, and obtain the comparison results;

[0187] The target display content determination unit is used to determine the target display content in the current page when the comparison result indicates a change in the display state of the set content in the current page.

[0188] The page code information generation unit is used to generate page code information based on the target display content.

[0189] After listening to the first operation event, the changes in code information are compared to identify the content that needs to be hidden or displayed on the current page. The corresponding page code is automatically generated for the content that needs to be displayed. This new page can then serve as a fixed display template for a specific display requirement, maintaining the same display method. This makes the new page versatile and meets more page display needs.

[0190] In one feasible embodiment, the system further includes:

[0191] The second event listening module 6 is used to listen for the second operation event for the current page, and to call the page code information generation unit when the second operation event is detected.

[0192] By listening to the second operation event, page code information can be automatically generated based on the target display content. This means that the generation of page code can be determined based on external triggers (such as user clicks), and the current page can be updated and displayed. This can meet higher page operation requirements and effectively improve the user's page operation experience.

[0193] The first operation event and / or the second operation event are both implemented through touch buttons, physical buttons, or externally triggered voice commands.

[0194] In one feasible embodiment, the system further includes:

[0195] The second code information receiving module 7 is used to receive second code information for the current page;

[0196] The second code information is used to display at least one set content and / or newly added content on the current page;

[0197] Page code generation module 2 is also used to merge the first code information and the second code information to obtain new page code information;

[0198] Page update module 3 is also used to update the current page based on new page code information.

[0199] After updating the current page, if the user needs to display other settings or add other content, the corresponding second code information can be merged with the first code information to obtain new page code information, which will further update the current page. This effectively improves the flexibility and effectiveness of page updates, enhances the page's versatility, and improves the user's page operation experience.

[0200] In this embodiment, by listening to operations on the display page, page code is automatically generated when the operation is to hide or show set content. This page code only applies to the content that needs to be displayed and has no relation to the hidden set content. The current page is then updated based on the page code. That is, page code corresponding to the overall operation architecture of the page is generated according to different display requirements, and a page that meets the user's requirements is rendered based on this page code. This is a completely new page update scheme, unlike the existing page update method that only modifies a part of the code. Once a new page is formed, it can serve as a fixed display template for a certain display requirement, and can maintain that display mode indefinitely. This makes the new page universal and reduces subsequent maintenance and development costs. In addition, the code of the generated new page only corresponds to the fixed display inversion and the set content of the display state, making the code concise and improving the page running efficiency.

[0201] This embodiment can also achieve the corresponding technical effects of the page content update method in Embodiment 1 or 2, which has been described in detail above and will not be repeated here.

[0202] Example 5

[0203] Figure 12 This is a schematic diagram of the structure of an electronic device provided in Embodiment 5 of the present invention. The electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, it implements the page content update method in Embodiment 1 or 2. Figure 12 The electronic device 30 shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of the present invention.

[0204] like Figure 12As shown, the electronic device 30 can be represented in the form of a general computing device, such as a server device. The components of the electronic device 30 may include, but are not limited to: at least one processor 31, at least one memory 32, and a bus 33 connecting different system components (including memory 32 and processor 31).

[0205] Bus 33 includes a data bus, an address bus, and a control bus.

[0206] The memory 32 may include volatile memory, such as random access memory (RAM) 321 and / or cache memory 322, and may further include read-only memory (ROM) 323.

[0207] The memory 32 may also include a program / utility 325 having a set (at least one) of program modules 324, including but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of these examples may include an implementation of a network environment.

[0208] The processor 31 executes various functional applications and data processing by running computer programs stored in the memory 32, such as the page content update method in Embodiment 1 or 2 of the present invention.

[0209] Electronic device 30 can also communicate with one or more external devices 34 (e.g., keyboard, pointing device, etc.). This communication can be performed via input / output (I / O) interface 35. Furthermore, the model-generating device 30 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 36. Figure 12 As shown, network adapter 36 communicates with other modules of the model-generated device 30 via bus 33. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the model-generated device 30, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (disk array) systems, tape drives, and data backup storage systems.

[0210] It should be noted that although several units / modules or sub-units / modules of the electronic device have been mentioned in the detailed description above, this division is merely exemplary and not mandatory. In fact, according to embodiments of the present invention, the features and functions of two or more units / modules described above can be embodied in one unit / module. Conversely, the features and functions of one unit / module described above can be further divided and embodied by multiple units / modules. This embodiment can also achieve the corresponding technical effects of the page content update method in Embodiment 1 or 2, as detailed above, and will not be repeated here.

[0211] Example 6

[0212] This embodiment provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the steps in the page content update method of embodiment 1 or 2.

[0213] The readable storage medium may be more specifically adopted, including but not limited to: portable disk, hard disk, random access memory, read-only memory, erasable programmable read-only memory, optical storage device, magnetic storage device, or any suitable combination thereof.

[0214] In a possible implementation, the present invention can also be implemented as a program product, comprising program code. When the program product is run on a terminal device, the program code causes the terminal device to execute the steps of the page content update method in Embodiment 1 or 2. This embodiment can also achieve the corresponding technical effects of the page content update method in Embodiment 1 or 2, as described in detail above, and will not be repeated here.

[0215] The program code for executing the present invention can be written using any combination of one or more programming languages. The program code can be executed entirely on the user device, partially on the user device, as a standalone software package, partially on the user device and partially on a remote device, or entirely on a remote device.

[0216] While specific embodiments of the present invention have been described above, those skilled in the art should understand that these are merely illustrative examples, and the scope of protection of the present invention is defined by the appended claims. Those skilled in the art can make various changes or modifications to these embodiments without departing from the principles and essence of the present invention, but all such changes and modifications fall within the scope of protection of the present invention.

Claims

1. A method of updating contents of a page, characterized by, The method comprises: listening to a first operation event for a current page; generating page code information when the first operation event represents changing the display state of a set content in the current page; wherein the page code information is associated with target display content in the current page except the set content whose display state is changed to hidden; the target display content corresponds to fixed display content in the current page, or fixed display content in the current page and the set content whose display state is display; updating the current page according to the page code information.

2. The method of updating contents of a page according to claim 1, wherein, The step of updating the current page according to the page code information comprises: generating a new page according to the page code information to update the display of the current page.

3. The method of updating contents of a page according to claim 1 or 2, wherein, The step of listening to a first operation event for a current page further comprises: obtaining preset initial code information corresponding to the current page; wherein the preset initial code information includes codes corresponding to fields representing basic parameters of a preset database; different first operation events correspond to different fields in the preset initial code information; different first operation events correspond to changing the display state of different set contents in the current page; wherein the fields include at least one of library name, table name, business line and project name.

4. The method of updating contents of a page according to claim 3, wherein, The step of listening to a first operation event for a current page further comprises: obtaining an information list corresponding to the preset database; obtaining fields in the preset database as the set contents in the current page according to the information list.

5. The method of updating contents of a page according to claim 3, wherein, The step of generating page code information when the first operation event represents changing the display state of a set content in the current page comprises: after listening to the first operation event, obtaining first code information corresponding to the update of the current page; comparing the first code information and the preset initial code information to determine the fields in the preset initial code information that have changed to obtain a comparison result; when the comparison result represents changing the display state of a set content in the current page, determining the target display content in the current page; generating the page code information based on the target display content.

6. The method of updating contents of a page according to Claim 5, wherein, The step of determining the target display content in the current page further comprises: listening to a second operation event for the current page; when the second operation event is listened to, performing the step of generating the page code information based on the target display content.

7. The method of updating contents of a page according to Claim 6, wherein, The first operation event and / or the second operation event is realized by at least one of the following ways: touch key, physical key or external trigger voice.

8. The method of updating contents of a page according to claim 5, wherein, The step of updating the current page according to the page code information further comprises: receiving second code information for the current page; wherein the second code information is used to display at least one of the set contents and / or new contents in the current page; fuse processing of the first code information and the second code information to obtain new page code information; update the current page according to the new page code information.

9. The method of updating contents of a page according to Claim 4, wherein, The current page is a page for information query and / or information display corresponding to the preset database. The setting content includes a search box for database information query and / or a list for database information display.

10. A system for updating contents of a page, characterized by The system comprises: a first event listening module configured to listen to a first operation event directed to a current page; a page code generation module configured to generate page code information when the first operation event indicates a change in display state of setting content in the current page; wherein the page code information is associated with target display content in the current page except for the setting content whose display state is changed to hidden; the target display content corresponds to fixed display content in the current page, or fixed display content in the current page and the setting content whose display state is display; a page updating module configured to update the current page according to the page code information.

11. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, The processor executes the computer program to implement the page content updating method of any one of claims 1-9.

12. A computer readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to implement the page content updating method of any one of claims 1-9.

Citation Information

Patent Citations

  • Code file generation method and device, computing apparatus, and storage medium

    CN109189383A