Method and device for modifying page configuration, storage medium and electronic device
By configuring components to parse and render page configuration items, users can directly modify and save them, solving the problem of cumbersome page configuration modification in existing technologies and improving efficiency.
Patent Information
- Application Number
- CN202210891054.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-27
- Publication Date
- 2026-02-24
- Estimated Expiration
- 2042-07-27
AI Technical Summary
In existing technologies, modifying the configuration of multiple system pages requires writing separate code, which makes the process cumbersome and consumes a lot of human resources and time.
The configuration component receives user requests, parses configuration object information, determines the target page configuration items, renders the current configuration value and allows users to modify it, updates and saves the latest configuration value, and uniformly executes backend modification operations.
It enables visual configuration modification without writing code for each page, saving manpower and improving the efficiency of configuration modification.
Smart Images

Figure CN115202760B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer technology, and in particular to a method and apparatus for modifying page configuration, a storage medium, and an electronic device. Background Technology
[0002] In the process of providing services through business systems, multiple system pages are usually involved. When business requirements change, the configuration of these system pages usually needs to be modified.
[0003] Currently, when the configuration of a system page needs to be modified, staff must write logic code to modify the configuration for that specific system page. However, in real-world business scenarios, the configurations of various system pages may be interconnected. For example, different system pages might deploy component modules with the same content, or different system pages might call each other's data. Therefore, when the configuration of a particular system page needs to be modified, the configurations of all related system pages also need to be modified accordingly.
[0004] Based on the existing page configuration modification method, when it is necessary to modify the configuration of multiple system pages, the configuration of each system page needs to be modified separately. The modification process is cumbersome and requires a lot of human resources and time. Summary of the Invention
[0005] In view of this, embodiments of the present invention provide a method for modifying page configuration to solve the problem that modifying page configuration is a cumbersome process that requires a lot of human resources and time.
[0006] This invention also provides a page configuration modification device to ensure the practical implementation and application of the above method.
[0007] To achieve the above objectives, the embodiments of the present invention provide the following technical solutions:
[0008] A method for modifying page configuration, comprising:
[0009] When the configuration component receives a configuration request sent by the user through the target page, it parses the configuration request to obtain configuration object information; the target page is the front-end page corresponding to the configuration component.
[0010] Identify the multiple target page configuration items corresponding to the configuration object information;
[0011] A first configuration value is determined for each target page configuration item in the database of the business system; the database contains page configuration information of each system page of the business system; the first configuration value for each target page configuration item is the current configuration value of that target page configuration item.
[0012] The first configuration value corresponding to each of the target page configuration items is rendered on the target page to prompt the user to modify the configuration value of each of the target page configuration items;
[0013] In response to the user's operation of modifying the configuration value, a second configuration value corresponding to each of the target page configuration items is determined; each of the second configuration items is a configuration value input by the user through the target page;
[0014] Based on the second configuration value corresponding to each target page configuration item, the configuration value of each target page configuration item is updated to obtain the latest configuration value of each target page configuration item;
[0015] The latest configuration value of each target page configuration item is sent to the database, so that the database saves the latest configuration value of each target page configuration item in order to modify the page configuration of the business system.
[0016] Optionally, in the above method, determining the first configuration value corresponding to each target page configuration item in the business system's database includes:
[0017] In the database, determine the target page configuration information corresponding to each target page configuration item;
[0018] For each target page configuration item, the current configuration value of the target page configuration item is obtained from its corresponding target page configuration information, and the current configuration value of the target page configuration item is used as the first configuration value corresponding to the target page configuration item.
[0019] Optionally, in the above method, rendering the first configuration value corresponding to each of the target page configuration items in the target page includes:
[0020] Among the multiple preset internal components corresponding to the configuration component, determine the target internal component corresponding to each target page configuration item;
[0021] For each target page configuration item, the first configuration value corresponding to the target page configuration item is sent to the target internal component corresponding to the target page configuration item, so that the target internal component renders the first configuration value corresponding to the target page configuration item in the target page.
[0022] Optionally, in the above method, updating the configuration value of each target page configuration item based on the second configuration value corresponding to each target page configuration item includes:
[0023] The target internal component corresponding to each target page configuration item updates the configuration value of the target page configuration item by using the second configuration value corresponding to the target page configuration item as the configuration value of the target page configuration item.
[0024] Optionally, in the above method, sending the latest configuration value of each target page configuration item to the database includes:
[0025] Extract the latest configuration value corresponding to each target page configuration item from the target internal component corresponding to each target page configuration item;
[0026] The latest configuration values of each of the target page configuration items are sent to the database through a preset interface.
[0027] Optionally, in the above method, the process of saving the latest configuration values of each of the target page configuration items in the database includes:
[0028] In the database, determine the configuration storage location corresponding to each of the target page configuration items;
[0029] For each target page configuration item, the latest configuration value of the target page configuration item is stored in the configuration storage location corresponding to the target page configuration item, so as to save the latest configuration value of the target page configuration item to the page configuration information of the system page corresponding to the target page configuration item.
[0030] A device for modifying page configuration, comprising:
[0031] The parsing unit is used to parse the configuration request and obtain configuration object information when the configuration component receives a configuration request sent by the user through the target page; the target page is the front-end page corresponding to the configuration component.
[0032] The first determining unit is used to determine multiple target page configuration items corresponding to the configuration object information;
[0033] The second determining unit is configured to determine a first configuration value corresponding to each target page configuration item in the database of the business system; the database contains page configuration information of each system page of the business system; the first configuration value corresponding to each target page configuration item is the current configuration value of the target page configuration item.
[0034] A rendering unit is used to render the first configuration value corresponding to each of the target page configuration items in the target page, so as to prompt the user to modify the configuration value of each of the target page configuration items;
[0035] The third determining unit is configured to, in response to the user's operation of modifying the configuration value, determine a second configuration value corresponding to each of the target page configuration items; each of the second configuration items is a configuration value input by the user through the target page;
[0036] The modification unit is used to update the configuration value of each target page configuration item according to the second configuration value corresponding to each target page configuration item, so as to obtain the latest configuration value of each target page configuration item;
[0037] The storage unit is used to send the latest configuration value of each of the target page configuration items to the database, so that the database stores the latest configuration value of each of the target page configuration items to modify the page configuration of the business system.
[0038] Optionally, the second determining unit in the aforementioned apparatus includes:
[0039] A subunit is defined, used to determine the target page configuration information corresponding to each target page configuration item in the database;
[0040] The acquisition subunit is used to, for each target page configuration item, obtain the current configuration value of the target page configuration item from its corresponding target page configuration information, and use the current configuration value of the target page configuration item as the first configuration value corresponding to the target page configuration item.
[0041] A storage medium comprising stored instructions, wherein, when the instructions are executed, the device in which the storage medium resides executes a page configuration modification method as described above.
[0042] An electronic device includes a memory and one or more instructions, wherein one or more instructions are stored in the memory and configured to be executed by one or more processors using a page configuration modification method as described above.
[0043] A method for modifying page configuration based on the above embodiments of the present invention includes: when a configuration component receives a configuration request sent by a user through a target page, parsing the configuration request to obtain configuration object information and determining multiple target page configuration items corresponding to the configuration object information; determining a first configuration value corresponding to each target page configuration item in the database of the business system, wherein the first configuration value corresponding to each target page configuration item is the current configuration value of the target page configuration item; rendering the first configuration values corresponding to each target page configuration item on the target page to prompt the user to modify the configuration values of each target page configuration item; responding to the user's operation of modifying the configuration values, determining a second configuration value corresponding to each target page configuration item; updating the configuration value of each target page configuration item according to the second configuration value corresponding to each target page configuration item to obtain the latest configuration value of each target page configuration item; and sending the latest configuration value of each target page configuration item to the database so that the database saves the latest configuration value of each target page configuration item for modifying the page configuration of the business system. By applying the method provided by the embodiments of the present invention, staff can visually modify the page configuration items of various system pages through the target page, and the configuration component can uniformly execute the background configuration modification operation. In scenarios involving modifying page configurations, staff no longer need to write logic code for each page's configuration requirements, saving significant manpower and improving configuration modification efficiency. Attached Figure Description
[0044] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.
[0045] Figure 1 A flowchart illustrating a method for modifying page configuration according to an embodiment of the present invention;
[0046] Figure 2 A flowchart illustrating another method for modifying page configuration as provided in an embodiment of the present invention;
[0047] Figure 3 A schematic diagram of a page configuration modification device provided in an embodiment of the present invention;
[0048] Figure 4 Another schematic diagram of a page configuration modification device provided in an embodiment of the present invention;
[0049] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0050] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0051] In this application, the terms "comprising," "including," or any other variations thereof are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0052] As the background technology shows, the existing methods for modifying page configurations require manual coding to modify each item that needs to be modified. This often involves repetitive work, and in the actual modification process, the interface return results are deeply nested, and data storage is also quite complex. Even a small change may require continuous modification through dot methods of objects to update the data. The configuration modification process is cumbersome, consumes a lot of human resources and time, and has low efficiency.
[0053] Therefore, this embodiment of the invention provides a method for modifying page configuration. A configuration component is constructed to perform configuration modification operations in the background. Users can uniformly modify the page configuration of various system pages through a visual interface without writing code, which can save a lot of human resources and time.
[0054] This invention provides a method for modifying page configuration. The method can be applied to a page configuration system, and its execution entity can be the system's processor. The method flowchart is shown below. Figure 1 As shown, it includes:
[0055] S101: When the configuration component receives a configuration request sent by the user through the target page, it parses the configuration request to obtain configuration object information; the target page is the front-end page corresponding to the configuration component.
[0056] In the method provided by this invention, the page configuration system can specifically be a pre-built configuration component that can be used to modify page configuration data in the database. Users can access the front-end page corresponding to this configuration component and input information about the configuration items that need to be modified, specifying which system pages and which configuration items need to be modified, thereby sending a configuration request to the processor. The configuration items of the system pages refer to those used to configure page content such as query conditions for query columns, specific styles of controls, dynamic interfaces, and operation buttons.
[0057] In the method provided by this embodiment of the invention, when the configuration component receives a configuration request, it can parse the request and then obtain the configuration object information, that is, the relevant information of the configuration item that the user needs to modify.
[0058] S102: Determine the multiple target page configuration items corresponding to the configuration object information;
[0059] In the method provided by this embodiment of the invention, the configuration items of each target page that the user needs to modify can be determined based on the configuration object information.
[0060] S103: Determine the first configuration value corresponding to each target page configuration item in the database of the business system; the database contains page configuration information of each system page of the business system; the first configuration value corresponding to each target page configuration item is the current configuration value of the target page configuration item;
[0061] In the method provided by this invention, the database stores page configuration information of each system page of the business system, that is, records the page configuration information of the system page, which may specifically include the current configuration value of each page configuration item associated with the system page.
[0062] In the method provided by this invention, a preset data acquisition interface can be called to retrieve relevant data for each target page configuration item from a database. The returned data is then processed to filter out the current configuration value of each target page configuration item, thereby determining the first configuration value corresponding to each target page configuration item. The specific data content of the page configuration items and configuration values can be determined by the specific business scenario.
[0063] S104: Render the first configuration value corresponding to each of the target page configuration items in the target page to prompt the user to modify the configuration value of each of the target page configuration items;
[0064] In the method provided by this embodiment of the invention, after obtaining the first configuration value corresponding to each target page configuration item, the first configuration value of each target page configuration item can be displayed on the target page, that is, the front-end page of the configuration component. At the same time, a control for inputting configuration values is provided to prompt the user to input the configuration value used to modify the configuration value of the target page configuration item, that is, the configuration value applied after modifying the target page configuration item.
[0065] S105: In response to the user's operation of modifying the configuration value, determine the second configuration value corresponding to each of the target page configuration items; each of the second configuration items is the configuration value input by the user through the target page;
[0066] In the method provided by this invention, the user can input the configuration value to be applied to each configuration item on the target page and click the "Save" button to confirm the modification of the configuration value with the currently input information. In response to the user's operation of modifying the configuration value on the target page, the configuration component can obtain the configuration value input by the user on the target page, thereby determining the second configuration value for each configuration item on the target page.
[0067] S106: Based on the second configuration value corresponding to each target page configuration item, update the configuration value of each target page configuration item to obtain the latest configuration value of each target page configuration item;
[0068] In the method provided by this embodiment of the invention, for each target page configuration item, the configuration value applied to the target page configuration item can be updated according to the second configuration value corresponding to the target page configuration item. The updated configuration value is its latest configuration value. The latest configuration value applied to each target page configuration item is its corresponding second configuration value.
[0069] S107: Send the latest configuration value of each of the target page configuration items to the database, so that the database saves the latest configuration value of each of the target page configuration items in order to modify the page configuration of the business system.
[0070] In the method provided by this embodiment of the invention, after modifying the configuration values of each target page configuration item, the latest configuration values of each target page configuration item can be sent to the database, triggering the database to save the latest configuration values of each target page configuration item, thereby modifying the associated page configuration.
[0071] Based on the method provided in this embodiment of the invention, when a configuration component receives a configuration request sent by a user through a target page, it can parse the configuration request to obtain configuration object information; the target page is the front-end page corresponding to the configuration component; multiple target page configuration items corresponding to the configuration object information are determined; a first configuration value corresponding to each target page configuration item is determined in the database of the business system; the database contains page configuration information of each system page of the business system; the first configuration value corresponding to each target page configuration item is the current configuration value of the target page configuration item; the first configuration value corresponding to each target page configuration item is rendered in the target page to prompt the user to modify the configuration value of each target page configuration item; in response to the user's operation of modifying the configuration value, a second configuration value corresponding to each target page configuration item is determined; each second configuration item is the configuration value input by the user through the target page; the configuration value of each target page configuration item is updated according to the second configuration value corresponding to each target page configuration item to obtain the latest configuration value of each target page configuration item; the latest configuration value of each target page configuration item is sent to the database so that the database saves the latest configuration value of each target page configuration item to modify the page configuration of the business system. Using the method provided in this invention, staff (i.e., users) can visually modify page configuration items on various system pages through the target page, and the configuration component can uniformly execute the configuration modification operations in the background. In scenarios involving modifying page configurations, staff do not need to write configuration modification logic code for each page's configuration requirements, which can save a significant amount of manpower and improve configuration modification efficiency.
[0072] exist Figure 1 Based on the method shown, this embodiment of the invention provides another method for modifying page configuration, see reference. Figure 2 The flowchart shown illustrates the process of determining the first configuration value corresponding to each target page configuration item in the database of the business system, as mentioned in step S103 of the method provided in this embodiment of the invention. This process includes:
[0073] S201: In the database, determine the target page configuration information corresponding to each target page configuration item;
[0074] In the method provided by the embodiments of the present invention, the target page configuration information to which each target page configuration item belongs can be determined from the page configuration information of each system page contained in the database, that is, the page configuration information of the system page associated with the target page configuration item.
[0075] S202: For each target page configuration item, obtain the current configuration value of the target page configuration item from its corresponding target page configuration information;
[0076] In the method provided by the embodiments of the present invention, the current configuration value of the corresponding target page configuration item can be obtained from the configuration information of each target page.
[0077] S203: Use the current configuration value of the target page configuration item as the first configuration value corresponding to the target page configuration item.
[0078] In the method provided by the embodiments of the present invention, the current configuration value of each target page configuration item is used as its corresponding first configuration value.
[0079] exist Figure 1 Based on the method shown, the method provided in this embodiment of the invention, in step S104, the process of rendering the first configuration value corresponding to each of the target page configuration items in the target page, includes:
[0080] Among the multiple preset internal components corresponding to the configuration component, determine the target internal component corresponding to each target page configuration item;
[0081] In the method provided by this invention, the configuration component is a composite component that includes multiple preset internal components, i.e., inner layer components. During the actual operation, the configuration modification work corresponding to each target page configuration item can be executed by the corresponding preset internal component. Therefore, among each preset internal component, the preset internal component that executes the configuration modification operation for each target page configuration item can be determined. For each target page configuration item, the preset internal component that executes its configuration modification operation is taken as its corresponding target internal component.
[0082] For each target page configuration item, the first configuration value corresponding to the target page configuration item is sent to the target internal component corresponding to the target page configuration item, so that the target internal component renders the first configuration value corresponding to the target page configuration item in the target page.
[0083] In the method provided by this embodiment of the invention, a first configuration value corresponding to each target page configuration item can be sent to its corresponding target internal component, triggering the target internal component to render the first configuration value on the target page. Simultaneously, the target internal component corresponding to the target page configuration item can also receive a second configuration value corresponding to the target page configuration item input by the user through the target page.
[0084] Based on the method provided in the above embodiments, the method provided in this embodiment of the invention includes, in step S106, the process of updating the configuration value of each target page configuration item according to the second configuration value corresponding to each target page configuration item, which includes:
[0085] The target internal component corresponding to each target page configuration item updates the configuration value of the target page configuration item by using the second configuration value corresponding to the target page configuration item as the configuration value of the target page configuration item.
[0086] In the method provided by the embodiments of the present invention, for each target page configuration item, when the target internal component corresponding to the target page configuration item receives the second configuration value corresponding to the target page configuration item, it can update the configuration value applied to the target page configuration item, that is, use the second configuration value as the configuration value applied to the target page configuration item.
[0087] Based on the method provided in the above embodiments, the method provided in this embodiment of the invention includes, in step S107, the process of sending the latest configuration value of each target page configuration item to the database, which includes:
[0088] Extract the latest configuration value corresponding to each target page configuration item from the target internal component corresponding to each target page configuration item;
[0089] The latest configuration values of each of the target page configuration items are sent to the database through a preset interface.
[0090] In the method provided by this invention, after each target's internal component completes its data modification, the latest configuration values of each target page configuration item can be extracted from each target's internal component. A pre-set data transmission interface (i.e., a preset interface) is then called to send each of the latest configuration values to the backend database.
[0091] exist Figure 1 Based on the method shown, the process of saving the latest configuration values of each target page configuration item in the database mentioned in step S107 of the method provided in this embodiment of the invention includes:
[0092] In the database, determine the configuration storage location corresponding to each of the target page configuration items;
[0093] For each target page configuration item, the latest configuration value of the target page configuration item is stored in the configuration storage location corresponding to the target page configuration item, so as to save the latest configuration value of the target page configuration item to the page configuration information of the system page corresponding to the target page configuration item.
[0094] In the method provided by this invention, page configuration information for each system page is stored in a corresponding location in the database, including configuration values for each page configuration item used for page configuration. When the database receives the latest configuration value for each target page configuration item, it can determine the configuration storage location corresponding to each target page configuration item, which is the location in the database where the configuration value applied to the target page configuration item is stored. Through a preset data storage instruction, the latest configuration value for each target page configuration item can be stored in the configuration storage location corresponding to each target page configuration item, so as to save the latest configuration value of the target page configuration item in the page configuration information of the relevant system page for subsequent page configuration. This saving operation is to change the configuration value applied to the target page configuration item from the first configuration value corresponding to the target page configuration item to its corresponding second configuration value.
[0095] To better illustrate the methods provided in the embodiments of the present invention, based on the methods provided in the above embodiments, the present invention provides another method for modifying page configuration, in order to provide a brief and exemplary overall description of the methods provided in the embodiments of the present invention.
[0096] The method provided in this invention can be applied to a pre-built configuration component. This component is a composite component. The front-end page transmits corresponding configuration parameters to this component, i.e., the configuration items that need to be modified (such as query conditions, specific styles, dynamic interfaces, operation buttons, etc.). After receiving the configuration parameters, data is uniformly retrieved. The data returned by the interface is logically processed using data processing methods. The required fields on the front-end page (i.e., the current configuration values of the configuration items to be modified) are filtered out, and the field data is distributed to the inner components of this component in a loop. The inner components are responsible for rendering data (rendering the current configuration value) and modifying data (changing the applied configuration value of the configuration item to the configuration value input by the user). Based on the user's use of the save button, the updated data from the inner components is uniformly extracted and uniformly passed to the back-end by this component calling the save interface.
[0097] Based on the method provided in the embodiments of the present invention, by passing the corresponding configuration parameters, page configuration modification operations can be achieved quickly, uniformly, with low error rate, convenient maintenance, and in line with product requirements and business scenarios.
[0098] and Figure 1 Corresponding to the method for modifying page configuration shown, this embodiment of the invention also provides a device for modifying page configuration, used for modifying... Figure 1 The specific implementation of the method shown is illustrated in the following diagram. Figure 3 As shown, it includes:
[0099] The parsing unit 301 is used to parse the configuration request and obtain configuration object information when the configuration component receives a configuration request sent by the user through the target page; the target page is the front-end page corresponding to the configuration component.
[0100] The first determining unit 302 is used to determine multiple target page configuration items corresponding to the configuration object information;
[0101] The second determining unit 303 is used to determine a first configuration value corresponding to each target page configuration item in the database of the business system; the database contains page configuration information of each system page of the business system; the first configuration value corresponding to each target page configuration item is the current configuration value of the target page configuration item.
[0102] The rendering unit 304 is used to render the first configuration value corresponding to each of the target page configuration items in the target page, so as to prompt the user to modify the configuration value of each of the target page configuration items;
[0103] The third determining unit 305 is configured to, in response to the user's operation of modifying the configuration value, determine a second configuration value corresponding to each of the target page configuration items; each of the second configuration items is a configuration value input by the user through the target page;
[0104] Modification unit 306 is used to update the configuration value of each target page configuration item according to the second configuration value corresponding to each target page configuration item, so as to obtain the latest configuration value of each target page configuration item;
[0105] The storage unit 307 is used to send the latest configuration value of each of the target page configuration items to the database, so that the database saves the latest configuration value of each of the target page configuration items to modify the page configuration of the business system.
[0106] Based on the apparatus provided in this embodiment of the invention, when the configuration component receives a configuration request sent by a user through a target page, it can parse the configuration request to obtain configuration object information; the target page is the front-end page corresponding to the configuration component; multiple target page configuration items corresponding to the configuration object information are determined; a first configuration value corresponding to each target page configuration item is determined in the database of the business system; the database contains page configuration information of each system page of the business system; the first configuration value corresponding to each target page configuration item is the current configuration value of the target page configuration item; the first configuration value corresponding to each target page configuration item is rendered in the target page to prompt the user to modify the configuration value of each target page configuration item; in response to the user's operation of modifying the configuration value, a second configuration value corresponding to each target page configuration item is determined; each second configuration item is the configuration value input by the user through the target page; the configuration value of each target page configuration item is updated according to the second configuration value corresponding to each target page configuration item to obtain the latest configuration value of each target page configuration item; the latest configuration value of each target page configuration item is sent to the database so that the database saves the latest configuration value of each target page configuration item to modify the page configuration of the business system. Using the device provided in this embodiment of the invention, staff (i.e., users) can visually modify the page configuration items of various system pages through the target page, and the configuration component can uniformly execute the configuration modification operations in the background. In scenarios where page configuration is modified, staff do not need to write configuration modification logic code for each page's configuration requirements, which can save a lot of manpower and improve the efficiency of configuration modification.
[0107] This invention provides yet another device for modifying page configuration, the structural diagram of which is shown below. Figure 4 As shown, in Figure 3 Based on the illustrated device, in the device provided by the embodiments of the present invention, the second determining unit 303 includes:
[0108] The determining subunit 308 is used to determine the target page configuration information corresponding to each target page configuration item in the database;
[0109] The acquisition subunit 309 is used to obtain the current configuration value of each target page configuration item from its corresponding target page configuration information, and use the current configuration value of the target page configuration item as the first configuration value corresponding to the target page configuration item.
[0110] exist Figure 3 Based on the device shown, the device provided in this embodiment of the invention can be further refined into other units. The specific functions of the units can be referred to the descriptions in the various embodiments of the page configuration modification method provided above, and will not be further illustrated here.
[0111] This invention also provides a storage medium, which includes stored instructions, wherein when the instructions are executed, the device where the storage medium is located is controlled to perform the page configuration modification method as described above.
[0112] This invention also provides an electronic device, the structural schematic of which is shown below. Figure 5 As shown, it specifically includes a memory 401 and one or more instructions 402, wherein one or more instructions 402 are stored in the memory 401 and configured to be executed by one or more processors 403 to perform the following operations:
[0113] When the configuration component receives a configuration request sent by the user through the target page, it parses the configuration request to obtain configuration object information; the target page is the front-end page corresponding to the configuration component.
[0114] Identify the multiple target page configuration items corresponding to the configuration object information;
[0115] A first configuration value is determined for each target page configuration item in the database of the business system; the database contains page configuration information of each system page of the business system; the first configuration value for each target page configuration item is the current configuration value of that target page configuration item.
[0116] The first configuration value corresponding to each of the target page configuration items is rendered on the target page to prompt the user to modify the configuration value of each of the target page configuration items;
[0117] In response to the user's operation of modifying the configuration value, a second configuration value corresponding to each of the target page configuration items is determined; each of the second configuration items is a configuration value input by the user through the target page;
[0118] Based on the second configuration value corresponding to each target page configuration item, the configuration value of each target page configuration item is updated to obtain the latest configuration value of each target page configuration item;
[0119] The latest configuration value of each target page configuration item is sent to the database, so that the database saves the latest configuration value of each target page configuration item in order to modify the page configuration of the business system.
[0120] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, for system or system embodiments, since they are basically similar to method embodiments, the description is relatively simple, and relevant parts can be referred to the descriptions in the method embodiments. The systems and system embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without creative effort.
[0121] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.
[0122] The above description of the disclosed embodiments enables those skilled in the art to make or use the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for modifying page configuration, characterized in that, include: When the configuration component receives a configuration request sent by the user through the target page, it parses the configuration request to obtain configuration object information; The target page is the front-end page corresponding to the configuration component; the configuration component is a pre-built component used to modify page configuration data in the database; the page configuration data in the database includes page configuration information of various system pages of the business system; the configuration object information is the relevant information of the configuration items of the system page to be modified specified by the user in the front-end page; the configuration items include the query conditions of the query column, the specific style of the control, the dynamic interface, and the operation button; Identify the multiple target page configuration items corresponding to the configuration object information; In the database of the business system, determine the first configuration value corresponding to each target page configuration item; the first configuration value corresponding to each target page configuration item is the current configuration value of that target page configuration item; The first configuration value corresponding to each of the target page configuration items is rendered on the target page to prompt the user to modify the configuration value of each of the target page configuration items; In response to the user's operation of modifying the configuration value, a second configuration value corresponding to each of the target page configuration items is determined; each of the second configuration items is a configuration value input by the user through the target page; Based on the second configuration value corresponding to each target page configuration item, the configuration value of each target page configuration item is updated to obtain the latest configuration value of each target page configuration item; The latest configuration value of each target page configuration item is sent to the database, so that the database saves the latest configuration value of each target page configuration item in order to modify the page configuration of the business system.
2. The method according to claim 1, characterized in that, The step of determining the first configuration value corresponding to each target page configuration item in the database of the business system includes: In the database, determine the target page configuration information corresponding to each target page configuration item; For each target page configuration item, the current configuration value of the target page configuration item is obtained from its corresponding target page configuration information, and the current configuration value of the target page configuration item is used as the first configuration value corresponding to the target page configuration item.
3. The method according to claim 1, characterized in that, The step of rendering the first configuration value corresponding to each of the target page configuration items in the target page includes: Among the multiple preset internal components corresponding to the configuration component, determine the target internal component corresponding to each target page configuration item; For each target page configuration item, the first configuration value corresponding to the target page configuration item is sent to the target internal component corresponding to the target page configuration item, so that the target internal component renders the first configuration value corresponding to the target page configuration item in the target page.
4. The method according to claim 3, characterized in that, The step of updating the configuration value of each target page configuration item based on the second configuration value corresponding to each target page configuration item includes: The target internal component corresponding to each target page configuration item updates the configuration value of the target page configuration item by using the second configuration value corresponding to the target page configuration item as the configuration value of the target page configuration item.
5. The method according to claim 4, characterized in that, Sending the latest configuration value of each of the target page configuration items to the database includes: Extract the latest configuration value corresponding to each target page configuration item from the target internal component corresponding to each target page configuration item; The latest configuration values of each of the target page configuration items are sent to the database through a preset interface.
6. The method according to claim 1, characterized in that, The process of storing the latest configuration values of each of the target page configuration items in the database includes: In the database, determine the configuration storage location corresponding to each of the target page configuration items; For each target page configuration item, the latest configuration value of the target page configuration item is stored in the configuration storage location corresponding to the target page configuration item, so as to save the latest configuration value of the target page configuration item to the page configuration information of the system page corresponding to the target page configuration item.
7. A device for modifying page configuration, characterized in that, include: The parsing unit is used to parse the configuration request sent by the user through the target page when the configuration component receives the configuration request, and obtain the configuration object information. The target page is the front-end page corresponding to the configuration component. The configuration component is a pre-built component for modifying page configuration data in the database. The page configuration data in the database includes the page configuration information of each system page of the business system. The configuration object information is the relevant information of the configuration items of the system page that the user specifies in the front-end page to be modified. The configuration items include the query conditions of the query column, the specific style of the control, the dynamic interface, and the operation button. The first determining unit is used to determine multiple target page configuration items corresponding to the configuration object information; The second determining unit is used to determine a first configuration value corresponding to each target page configuration item in the database of the business system; the first configuration value corresponding to each target page configuration item is the current configuration value of that target page configuration item; A rendering unit is used to render the first configuration value corresponding to each of the target page configuration items in the target page, so as to prompt the user to modify the configuration value of each of the target page configuration items; The third determining unit is used to determine the second configuration value corresponding to each of the target page configuration items in response to the user's operation of modifying the configuration value; Each of the second configuration items is a configuration value entered by the user through the target page; The modification unit is used to update the configuration value of each target page configuration item according to the second configuration value corresponding to each target page configuration item, so as to obtain the latest configuration value of each target page configuration item; The storage unit is used to send the latest configuration value of each of the target page configuration items to the database, so that the database stores the latest configuration value of each of the target page configuration items to modify the page configuration of the business system.
8. The apparatus according to claim 7, characterized in that, The second determining unit includes: A subunit is defined, used to determine the target page configuration information corresponding to each target page configuration item in the database; The acquisition subunit is used to, for each target page configuration item, obtain the current configuration value of the target page configuration item from its corresponding target page configuration information, and use the current configuration value of the target page configuration item as the first configuration value corresponding to the target page configuration item.
9. A storage medium, characterized in that, The storage medium includes stored instructions, wherein, when the instructions are executed, the device where the storage medium is located is controlled to perform the page configuration modification method as described in any one of claims 1 to 6.
10. An electronic device, characterized in that, It includes memory, and one or more instructions, wherein one or more instructions are stored in memory and configured to be executed by one or more processors, as described in any one of claims 1 to 6, to modify the page configuration.
Citation Information
Patent Citations
Data processing method and device, electronic equipment and storage medium
CN113065082A
Website page modification method and device, electronic equipment and storage medium
CN113779469A