Page dynamic configuration method, device, equipment and storage medium
Through dynamic configuration methods, the fields and controls of the client page are displayed or hidden according to the server configuration conditions, which solves the problem of cumbersome configuration of employees taking leave to apply for system configuration in the existing technology, realizes configuration management without coding, and improves efficiency and flexibility .
Patent Information
- Application Number
- CN202011513946.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-18
- Publication Date
- 2025-01-07
- Estimated Expiration
- 2040-12-18
AI Technical Summary
In the prior art, employees applying for leave to apply for system configuration requires changing the system code. The process is cumbersome and labor-intensive, and may lead to instability of the system and difficult to manage and configure by people without programming experience.
Provide a dynamic page configuration method, by receiving content input from the client, determine whether the visual configuration conditions on the server configuration page are met, and dynamically display or hide corresponding fields and controls, including status, visibility and required status. Configuration, users can configure through visual operations, reducing the labor cost of the back-end configuration page.
It realizes back-end configuration management without coding, improves work efficiency, reduces development costs, and allows administrators without programming experience to perform back-end configuration work, enhancing the flexibility and maintainability of configuration pages.
Smart Images

Figure CN112540822B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computers, and in particular to a page dynamic configuration method, device, equipment and storage medium. Background Art
[0002] Employees need to fill out a leave application form. See attached. Figure 1 The figure shows a schematic diagram of a leave application form of a certain company; if sick leave is selected, the hospital certificate is required, and for other types of leave, the hospital certificate is optional and hidden; in the prior art, R&D personnel are required to change the system code and release system updates, which is a complicated and labor-intensive process, and may cause system instability due to system updates. Summary of the invention
[0003] The main purpose of this application is to provide a page dynamic configuration method, device, equipment and storage medium to solve the above problems.
[0004] In order to achieve the above object, according to one aspect of the present application, a page dynamic configuration method is provided, comprising:
[0005] Receive the content entered on the client's form page;
[0006] Determining whether the visual configuration conditions set on the configuration page of the server are met according to the content;
[0007] If the conditions are met, the qualified fields and corresponding controls are displayed on the client page.
[0008] In one embodiment, the configuration condition options include one or more of the following: status, visibility, and required status;
[0009] The status includes enabled or disabled. If the user clicks the Enable tab, the conditional field and the corresponding controls are enabled; if the user does not click the Enable tab, the conditional field and the corresponding controls are disabled on the client page.
[0010] Visibility includes display or non-display; if the user clicks the Select Display tab, the conditional field and the corresponding controls are displayed on the client page; if the user does not click the Select Display tab, the conditional field and the corresponding controls are not displayed on the client page;
[0011] The mandatory status includes: mandatory or non-mandatory; if the user clicks the mandatory tab, the conditional field and the corresponding control are displayed in the mandatory state; if the user does not click the mandatory tab, the conditional field and the corresponding control are displayed in the client page as non-mandatory.
[0012] In one embodiment, before setting the configuration conditions on the configuration page of the server, the method further includes:
[0013] Receive login information entered by the user;
[0014] Determine whether the password entered by the user is correct;
[0015] If yes, the configuration page is displayed.
[0016] In one embodiment, after displaying the configuration page, the method further includes:
[0017] Receive the name of the client page form selected by the user;
[0018] Determine and display a configuration page corresponding to the client page according to the name of the client page form.
[0019] In one embodiment, if the form is an employee's leave application form, the displayed condition field is a certificate, and a corresponding control for uploading the leave certificate;
[0020] When the leave type is sick leave, the corresponding condition field is hospital certificate, and the hospital certificate field is editable;
[0021] When the leave type is not sick leave, the corresponding hospital certificate field is not editable.
[0022] In one embodiment, when the form on the client page is a form for consumers to purchase goods,
[0023] If the product type is food, the corresponding condition fields include: weight, shelf life;
[0024] If the product type is clothing, the corresponding condition field is size;
[0025] If the product type is household appliances, the corresponding condition field is installation method;
[0026] If it is a dishwasher, the corresponding condition fields are spray type and built-in type;
[0027] If it is an air conditioner, the corresponding condition field is variable frequency; it is used to display the variable frequency or non-variable frequency status;
[0028] If it is a mobile phone, the corresponding condition fields are model and color; the colors include blue, red, white, and black.
[0029] In one embodiment, when the form on the client page is a form for consumers to purchase goods, when settlement is performed, the method further includes calculating the amount of the goods according to the operation symbol control and the calculation coefficient control selected and determined by the user on the server configuration page; and displaying the amount on the client page;
[0030] Among them, the operation symbol controls include: plus operation control, minus operation control, multiplication operation control, division operation control, SUM operation control, Max operation control, Min operation control, and Upper operation control;
[0031] It also includes calculation coefficient controls, specifically: a control with a coefficient of 0; a control with a coefficient of 1; a control with a coefficient of 2; a control with a coefficient of 3; a control with a coefficient of 4; a control with a coefficient of 5; a control with a coefficient of 6; a control with a coefficient of 7; a control with a coefficient of 8; and a control with a coefficient of 9.
[0032] In order to achieve the above object, according to another aspect of the present application, a configuration page dynamic layout device is provided, comprising:
[0033] A receiving module is used to receive the content input on the client's form page;
[0034] A judgment module, used to judge whether the visual configuration conditions set on the configuration page of the server are met according to the content;
[0035] The display module is used to display the fields and corresponding controls that meet the conditions on the client page if the judgment module determines that the visual configuration conditions set on the configuration page of the server are met.
[0036] According to a third aspect of the present application, the present invention further provides an electronic device, comprising: at least one processor and at least one memory; the memory is used to store one or more program instructions; the processor is used to run the one or more program instructions to perform the following steps:
[0037] Receive the content entered on the client's form page;
[0038] Determining whether the visual configuration conditions set on the configuration page of the server are met according to the content;
[0039] If the conditions are met, the qualified fields and corresponding controls are displayed on the client page.
[0040] In one embodiment, the processor is further configured to:
[0041] Receive login information entered by the user;
[0042] Determine whether the password entered by the user is correct;
[0043] If yes, the configuration page is displayed.
[0044] In one embodiment, the processor is further configured to:
[0045] Receive the name of the client page form selected by the user;
[0046] Determine and display a configuration page corresponding to the client page according to the name of the client page form.
[0047] In one embodiment, the processor is further configured to: when the form on the client page is a form for consumers to purchase goods, when settlement is performed, calculate the amount of the goods according to the operation symbol control and calculation coefficient control selected and determined by the user on the server configuration page; and display the amount on the client page;
[0048] Among them, the operation symbol controls include: plus operation control, minus operation control, multiplication operation control, division operation control, SUM operation control, Max operation control, Min operation control, and Upper operation control;
[0049] It also includes calculation coefficient controls, specifically: a control with a coefficient of 0; a control with a coefficient of 1; a control with a coefficient of 2; a control with a coefficient of 3; a control with a coefficient of 4; a control with a coefficient of 5; a control with a coefficient of 6; a control with a coefficient of 7; a control with a coefficient of 8; and a control with a coefficient of 9.
[0050] According to a fourth aspect of the present application, the present invention further provides a computer-readable storage medium, wherein the computer storage medium contains one or more program instructions, and the one or more program instructions are used to execute the following steps:
[0051] Receive the content entered on the client's form page;
[0052] Determining whether the visual configuration conditions set on the configuration page of the server are met according to the content;
[0053] If the conditions are met, the qualified fields and corresponding controls are displayed on the client page.
[0054] In one embodiment, the configuration condition options include one or more of the following: status, visibility, and required status;
[0055] The status includes enabled or disabled. If the user clicks the Enable tab, the conditional field and the corresponding controls are enabled; if the user does not click the Enable tab, the conditional field and the corresponding controls are disabled on the client page.
[0056] Visibility includes display or non-display; if the user clicks the Select Display tab, the conditional field and the corresponding controls are displayed on the client page; if the user does not click the Select Display tab, the conditional field and the corresponding controls are not displayed on the client page;
[0057] The mandatory status includes: mandatory or non-mandatory; if the user clicks the mandatory tab, the conditional field and the corresponding control are displayed in the mandatory state; if the user does not click the mandatory tab, the conditional field and the corresponding control are displayed in the client page as non-mandatory.
[0058] In one embodiment, before setting the configuration conditions on the configuration page of the server, the method further includes:
[0059] Receive login information entered by the user;
[0060] Determine whether the password entered by the user is correct;
[0061] If yes, the configuration page is displayed.
[0062] In one embodiment, after displaying the configuration page, the method further includes:
[0063] Receive the name of the client page form selected by the user;
[0064] Determine and display a configuration page corresponding to the client page according to the name of the client page form.
[0065] In one embodiment, if the form is an employee's leave application form, the displayed condition field is a certificate, and a corresponding control for uploading the leave certificate;
[0066] When the leave type is sick leave, the corresponding condition field is hospital certificate, and the hospital certificate field is editable;
[0067] When the leave type is not sick leave, the corresponding hospital certificate field is not editable.
[0068] In one embodiment, when the form on the client page is a form for consumers to purchase goods,
[0069] If the product type is food, the corresponding condition fields include: weight, shelf life;
[0070] If the product type is clothing, the corresponding condition field is size;
[0071] If the product type is household appliances, the corresponding condition field is installation method;
[0072] If it is a dishwasher, the corresponding condition fields are spray type and built-in type;
[0073] If it is an air conditioner, the corresponding condition field is variable frequency; it is used to display the variable frequency or non-variable frequency status;
[0074] If it is a mobile phone, the corresponding condition fields are model and color; the colors include blue, red, white, and black.
[0075] In one embodiment, when the form on the client page is a form for consumers to purchase goods, when settlement is performed, the method further includes calculating the amount of the goods according to the operation symbol control and the calculation coefficient control selected and determined by the user on the server configuration page; and displaying the amount on the client page;
[0076] Among them, the operation symbol controls include: plus operation control, minus operation control, multiplication operation control, division operation control, SUM operation control, Max operation control, Min operation control, and Upper operation control;
[0077] It also includes calculation coefficient controls, specifically: a control with a coefficient of 0; a control with a coefficient of 1; a control with a coefficient of 2; a control with a coefficient of 3; a control with a coefficient of 4; a control with a coefficient of 5; a control with a coefficient of 6; a control with a coefficient of 7; a control with a coefficient of 8; and a control with a coefficient of 9.
[0078] In the embodiment of the present application, by setting the visual configuration conditions on the configuration page, the content inputted on the client's form page is received; if the content meets the visual configuration conditions set on the configuration page of the server, the fields and corresponding controls meeting the conditions are displayed on the client page. This solves the technical problem in the prior art that personnel who do not know programming cannot manage and configure the configuration page. BRIEF DESCRIPTION OF THE DRAWINGS
[0079] The drawings constituting a part of this application are used to provide a further understanding of this application, so that other features, purposes and advantages of this application become more obvious. The schematic embodiment drawings and their descriptions of this application are used to explain this application and do not constitute an improper limitation on this application. In the drawings:
[0080] Figure 1 It is a schematic diagram of a leave application form according to the relevant technology;
[0081] Figure 2 is a flow chart of a page dynamic configuration method according to an embodiment of the present application;
[0082] Figure 3 This is a configuration page corresponding to the leave request form according to an embodiment of the present application;
[0083] Figure 4 This is a configuration page corresponding to the purchase product form according to an embodiment of the present application;
[0084] Figure 5 is a structural schematic diagram of a page dynamic configuration device according to an embodiment of the present application;
[0085] Figure 6 It is a structural diagram of a page dynamic configuration device according to an embodiment of the present application. DETAILED DESCRIPTION
[0086] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0087] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0088] The front-end display page of the website is realized by performing relevant configuration on the back-end configuration page. In the prior art, the back-end needs to be implemented by programming. However, for people without programming experience, it is impossible to maintain the back-end configuration page.
[0089] Based on this, the present invention proposes a page dynamic configuration method, see the attached Figure 2 , the method comprising:
[0090] Step S202, receiving content input on a form page of a client;
[0091] For example, if the form is a leave application form, the content entered by the user on the form includes the type of leave requested, including personal leave, sick leave, marriage leave, annual leave, bereavement leave, business trip, etc.; the start time of the leave, the end time of the leave, the reason, related attachments, and hospital certificates.
[0092] Step S204, judging whether the visual configuration conditions set on the configuration page of the server are met according to the content;
[0093] Among them, the visual configuration condition options include one or more of the following: status, visibility, and required status.
[0094] The status includes enabled or disabled. If the user clicks the Enable tab, the conditional field and the corresponding controls are enabled; if the user does not click the Enable tab, the conditional field and the corresponding controls are disabled on the front-end page.
[0095] Visibility includes display or non-display; if the user clicks the Select Display tab, the conditional field and the corresponding controls are displayed on the front-end page; if the user does not click the Select Display tab, the conditional field and the corresponding controls are not displayed on the front-end page;
[0096] The mandatory status includes: mandatory or non-mandatory; if the user clicks the mandatory tab, the conditional field and the corresponding controls are displayed as mandatory; if the user does not click the mandatory tab, the conditional field and the corresponding controls are displayed as non-mandatory on the front-end page.
[0097] For example, see the attached Figure 1 When "Leave Type" is equal to "Sick Leave", the configuration action is "Hospital Certificate" is displayed and editable. The application result is that when the user on the front-end page selects sick leave as the leave type, the hospital certificate must be uploaded.
[0098] When "Leave Type" is not equal to "Sick Leave", the configuration action is "Hospital Certificate" which is not editable, not displayed and not required. The application result is that when the user on the front-end page selects sick leave as the leave type, the hospital certificate must be uploaded.
[0099] If so, execute step S206; if not, end.
[0100] Step S206: display the fields and corresponding controls that meet the conditions on the client page.
[0101] See attached Figure 1 In the field, the field is "Hospital Certificate" and the corresponding control is the file upload control. After the user clicks the file upload control on the front-end page, he can upload the hospital's certificate document, which can be a picture of the hospital's seal.
[0102] The technical solution of the present invention performs configuration on the configuration page without coding, only visual checking operations are required, which reduces the labor cost of the back-end configuration page and enables administrators without software coding experience to perform back-end configuration work.
[0103] In one embodiment, before setting the configuration conditions on the back-end configuration page, the server of the configuration page receives login information input by the user;
[0104] The server of the configuration page determines whether the password entered by the user is correct; if so, the server of the configuration page displays the configuration page.
[0105] Specifically, the user sets the login username and password by himself; when logging in, if the password is correct, the configuration page is displayed, and if the password is wrong, the configuration page is not displayed. This improves the confidentiality of the configuration page management.
[0106] In one implementation, each user may be configured to have the function of managing different configuration pages;
[0107] For example, administrator A can manage the leave request form;
[0108] Administrator B can manage the form for product sales;
[0109] When administrator A logs in with his username and password, the configuration page of the leave request form is displayed;
[0110] When administrator B logs in using his user name and password, a configuration page for the form for commodity sales is displayed.
[0111] A correspondence between a user's identification or user name and a corresponding form configuration page is preset.
[0112] When the user's username or identification is detected, the corresponding configuration page is determined according to the username or identification and a preset corresponding relationship.
[0113] In one implementation, after the configuration page is displayed, a name of a form is selected on the configuration page; the name of the form includes, for example, an employee vacation request form and a commodity purchase form.
[0114] Configure the page server to receive the name of the front-end page form selected by the user;
[0115] The configuration page server determines to display the configuration page corresponding to the front-end page according to the name of the front-end page form.
[0116] Specifically, a drop-down list may be displayed in the form name field and the corresponding control; multiple forms may be displayed in the drop-down list; each form corresponds to a configuration page. The administrator configures the form on the configuration page.
[0117] When the administrator selects the employee leave application form from the drop-down list, the configuration page corresponding to the application form is displayed. If the form is an employee leave application form, the displayed condition field is the certificate, and the corresponding control for uploading the leave certificate is displayed. When the leave type is sick leave, the corresponding condition field is the hospital certificate, and the hospital certificate field is editable; when the leave type is not sick leave, the corresponding hospital certificate field is not editable.
[0118] For example, see the attached Figure 3 The configuration page for the vacation request form shown. This page includes an Enable Status tab; if you click Enable, the configuration page is activated;
[0119] The conditions for process judgment. If the administrator clicks the Yes tab, the judgment conditions are enabled. If the Yes tab is not clicked, there is no judgment condition by default.
[0120] The user clicks the ADD control to set configuration conditions.
[0121] See Table 1 for configuration conditions:
[0122] Field Name Comparison value Value Content operate Leave application form != sick leave Delete
[0123] Table 1
[0124] Among them, in Field Name, the user selects Employee Leave Application Form in the drop-down list;
[0125] The comparison value is ! =; the value content is sick leave; the operation content includes delete; when the administrator clicks the delete control, the application form is deleted.
[0126] About configuration actions: see Figure 3 , the field name is Hospital Certificate.
[0127] OPTION options include: status, visibility, required status, clear if not satisfied,
[0128] Among them, the status includes enabling, and a check box is set in front; if the user checks it, it means enabling;
[0129] If it is not checked, it means it is not enabled;
[0130] Visibility includes: display; setting a check box in front; if the user checks it, the field will be displayed; if the user does not check it, the field will not be displayed by default.
[0131] The required status includes: required; a check box is set in front; if the user checks it, it means that the field is required; if the user does not check it, it is not required by default.
[0132] In response, when the front-end display page is displayed on the consumer's front end, if it is required, it will be prompted that the content of the box is required.
[0133] Operation, the corresponding action is delete. If the administrator wants to delete the field, click delete.
[0134] If the condition is not satisfied, clear it. A check box is set in front. If the user checks it, clearing is performed. If not checked, clearing is not enabled.
[0135] In the case where a user purchases a product on the front-end page, in one embodiment, when the form on the front-end page is a form for consumers to purchase products,
[0136] If the product type is food, the corresponding condition fields include: weight, shelf life;
[0137] For example, if a consumer purchases instant noodles on the front-end page, the front-end page will display that the weight of the instant noodles is 150g; the shelf life is less than or equal to 180 days.
[0138] In the corresponding configuration condition part of the configuration page, the field name is the purchased product category; the value content is food; the field names of the configuration action are weight and shelf life; the status is set to enabled; and the visibility is displayed.
[0139] If the product type is clothing, the corresponding condition field is size;
[0140] For example, if a consumer purchases a top on the front page, the front page will display the size of the top as XXL.
[0141] Correspondingly, in the part of the visual configuration conditions on the configuration page, the field name is Purchased Goods Category; the value content is Clothes; the field name of the configuration action is Size; the setting status is Enabled; and the visibility is Display.
[0142] If the product type is household appliances, the corresponding condition field is installation method;
[0143] For example, if a consumer purchases a dishwasher on the front page, the front page will display the installation methods of the dishwasher, including spray type and embedded type;
[0144] Correspondingly, in the configuration page, in the configuration condition section, the field name is Purchase Item Category; the value content is Dishwasher;
[0145] The field name of the configuration action is Installation Mode; the setting status is Enabled; and the visibility is Show.
[0146] If it is an air conditioner, the corresponding condition field is variable frequency; it is used to display the variable frequency or non-variable frequency status;
[0147] For example, if a consumer purchases an air conditioner on the front-end page, the front-end page will display that the frequency conversion state of the air conditioner is variable frequency, indicating that the air conditioner has a variable frequency function;
[0148] Correspondingly, in the configuration page, in the configuration condition section, the field name is Purchased Goods Category; the value content is Air Conditioner;
[0149] The field name of the configuration action is variable frequency; the setting state is enabled; and the visibility is displayed.
[0150] If it is a mobile phone, the corresponding condition fields are standard and color; the colors include blue, red, white, black, aurora blue, etc.
[0151] For example, if a consumer purchases a mobile phone on the front page, the front page will display the model and color of the mobile phone. For example, the model is 4G full network access and the color is aurora blue.
[0152] In addition, the field also includes storage capacity; the storage capacity displayed on the user's front-end page is 6+128GB, 8+128GB, and 8+256GB.
[0153] Correspondingly, in the part of the visible configuration conditions on the configuration page, the field name is Purchased Goods Category; the value content is Mobile Phone.
[0154] The field names of the configuration action include Standard and Color; the status is set to Enabled; and the visibility is set to Display.
[0155] Of course, there are many similar examples, which are not listed one by one. The above-mentioned technical solution of the present invention sets configuration conditions and configuration action parts in the configuration page; fields are set in the configuration condition part; and corresponding actions are set in the configuration action part after the conditions are met. For example, for the front-end form of the leave application type, the action is to upload the certificate, enable and display it; for the form of purchasing goods, the action is to display the attribute parameters of the goods that need to be displayed. By making settings in the configuration page in advance, including setting check boxes in front of the startup tab and the display tab; the administrator only needs to make a selection by checking the box. For people with no programming experience, they can also perform maintenance and management of the background configuration page, which improves work efficiency.
[0156] In one embodiment, when the form on the front-end page is a form for consumers to purchase goods, when performing settlement, the method further includes calculating the amount of the goods according to the operation symbol control and calculation coefficient control selected and determined by the user on the back-end configuration page; and displaying the amount on the front-end page;
[0157] See attached Figure 4 , where the operation symbol controls include: plus operation control, minus operation control, multiplication operation control, division operation control, SUM operation control, Max operation control, Min operation control, and Upper operation control.
[0158] It also includes calculation coefficient controls, including: controls with coefficient 0; controls with coefficient 1; controls with coefficient 2; controls with coefficient 3; controls with coefficient 4; controls with coefficient 5; controls with coefficient 6; controls with coefficient 7; controls with coefficient 8; controls with coefficient 9. Controls with the symbol of decimal point.
[0159] For example, in the configuration page, the configuration conditions are non-essential options. Not configuring the conditions means that they are triggered in any case, because for settlement, no matter what the situation, the total sales = sales quantity × sales unit price; the application result is that when the user fills in the sales quantity and sales unit price, the total sales is automatically calculated.
[0160] However, considering that the prices of some commodities may be raised in the actual sales scenarios of e-commerce platforms, this application sets the coefficients in the configuration page. The administrator needs to select the coefficients. For example, if the price of a commodity becomes 1.3 times the original price, the administrator needs to click the control with the coefficient of 1, the control with the decimal point, and the control with the coefficient of 3 in sequence. At the time of settlement, the calculation formula displayed on the front-end page is:
[0161] Total sales = sales quantity × 1.3 × sales unit price.
[0162] The technical solution of the present invention displays the functions that originally need to be implemented by programmer codes in the form of visual configuration to authorized operators for configuration, and can realize the field content and field values that need to be displayed on the dynamic configuration page. There are no professional technical requirements for operators. This technology has no requirements for the software industry and can be applied to the software fields of various industries to save development labor costs.
[0163] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0164] According to an embodiment of the present invention, a device for implementing the above-mentioned page dynamic configuration is also provided. Figure 4 As shown, the device comprises:
[0165] Receiving module 41, used for receiving content inputted on the form page of the client;
[0166] A judgment module 42, used to judge whether the visual configuration conditions set on the configuration page of the server are met according to the content;
[0167] The display module 43 is used to display the fields and corresponding controls that meet the conditions on the client page if the judgment module determines that the visual configuration conditions set on the configuration page of the server are met.
[0168] The above-mentioned device of the present invention can realize visual dynamic configuration by setting visual configuration conditions on the configuration page; no coding is required, only visual checking operations are required, which reduces the labor cost of the back-end configuration page and enables administrators without software coding experience to perform back-end configuration work.
[0169] It also includes: a login information receiving module, which is used to receive login information input by the user before setting the configuration conditions on the configuration page of the server;
[0170] The permission judgment module is used to judge whether the password entered by the user is correct;
[0171] The configuration page display module is used to display the configuration page if the judgment module determines that the password input by the user is correct.
[0172] After displaying the configuration page, receiving the name of the client page form selected by the user;
[0173] The configuration page module is used to determine and display a configuration page corresponding to the client page according to the name of the client page form.
[0174] It also includes a settlement module, which is used to calculate the amount of the goods according to the operation symbol control and calculation coefficient control selected and determined by the user on the server configuration page when the form on the client page is a form for consumers to purchase goods, and display the amount on the client page;
[0175] Among them, the operation symbol controls include: plus operation control, minus operation control, multiplication operation control, division operation control, SUM operation control, Max operation control, Min operation control, and Upper operation control;
[0176] It also includes calculation coefficient controls, specifically: a control with a coefficient of 0; a control with a coefficient of 1; a control with a coefficient of 2; a control with a coefficient of 3; a control with a coefficient of 4; a control with a coefficient of 5; a control with a coefficient of 6; a control with a coefficient of 7; a control with a coefficient of 8; and a control with a coefficient of 9.
[0177] In a third aspect, the present invention further proposes an electronic device, comprising: at least one processor 51 and at least one memory 52; the memory 52 is used to store one or more program instructions; the processor 51 is used to run one or more program instructions to execute any of the methods described above.
[0178] In a fourth aspect, the present invention further proposes a computer-readable storage medium, characterized in that the computer storage medium contains one or more program instructions, and the one or more program instructions are used to execute any of the methods described above.
[0179] In the embodiment of the present invention, the processor may be an integrated circuit chip having the signal processing capability. The processor may be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.
[0180] The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present invention can be directly embodied as a hardware decoding processor for execution, or can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The processor reads the information in the storage medium and completes the steps of the above method in combination with its hardware.
[0181] The storage medium may be a memory, which may be, for example, a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memory.
[0182] Among them, the non-volatile memory can be a read-only memory (ROM), a programmable ROM (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory.
[0183] The volatile memory may be a random access memory (RAM) which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate synchronous DRAM (DDRSDRAM), enhanced synchronous DRAM (ESDRAM), synchronous link DRAM (SLDRAM), and direct RAM bus DRAM (DRRAM).
[0184] The storage media described in the embodiments of the present invention are intended to include, but are not limited to, these and any other suitable types of memory.
[0185] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0186] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A page dynamic configuration method, characterized in that: include: Receive the content entered on the client's form page; Determining whether the visual configuration conditions set on the configuration page of the server are met based on the content; If the conditions are met, the fields and corresponding controls that meet the conditions will be displayed on the client page; Configuration condition options include one or more of the following: status, visibility, and required status; The status includes enabled or disabled. If the user clicks the Enable tab, the conditional field and the corresponding control are enabled. If the user does not click the Enable tab, the conditional fields and corresponding controls will not be enabled on the client page; Visibility includes display or non-display; if the user clicks the Display tab, the conditional field and the corresponding control will be displayed on the client page; If the user does not click the Display tab, the conditional fields and corresponding controls will not be displayed on the client page; The required status includes: required or non-required. If the user clicks the "Required" tab, the conditional field and the corresponding controls will be displayed as required. If the user does not click the "Required" tab, the conditional field and the corresponding controls will be displayed as non-required on the client page. After displaying the configuration page, the method further includes: Receive the name of the client page form selected by the user; Determine, according to the name of the client page form, to display a configuration page corresponding to the client page; When the form on the client page is a form for consumers to purchase goods, when performing settlement, the method further includes calculating the amount of the goods according to the operation symbol control and calculation coefficient control selected and determined by the user on the server configuration page; and displaying the amount on the client page; Among them, the operation symbol controls include: plus operation control, minus operation control, multiplication operation control, division operation control, SUM operation control, Max operation control, Min operation control, and Upper operation control; It also includes calculation coefficient controls, specifically including: controls with a coefficient of 0; controls with a coefficient of 1; controls with a coefficient of 2; controls with a coefficient of 3; controls with a coefficient of 4; controls with a coefficient of 5; controls with a coefficient of 6; controls with a coefficient of 7; controls with a coefficient of 8; controls with a coefficient of 9; When the form on the client page is a form for consumers to purchase goods, If the product type is food, the corresponding condition fields include: weight, shelf life; If the product type is clothing, the corresponding condition field is size; If the product type is household appliances, the corresponding condition field is installation method; If it is a dishwasher, the corresponding condition fields are spray type and built-in type; If it is an air conditioner, the corresponding condition field is variable frequency; it is used to display the variable frequency or non-variable frequency status; If it is a mobile phone, the corresponding condition fields are model and color; the colors include blue, red, white, and black.
2. The page dynamic configuration method according to claim 1, characterized in that: Before setting the configuration conditions on the configuration page of the server, the method further includes: Receive login information entered by the user; Determine whether the password entered by the user is correct; If yes, the configuration page is displayed.
3. The page dynamic configuration method according to claim 1, characterized in that: If the form is an employee's leave application form, the displayed condition field is "proof" and the corresponding control for uploading the leave certificate is displayed; When the leave type is sick leave, the corresponding condition field is hospital certificate, and the hospital certificate field is editable; When the leave type is not sick leave, the corresponding hospital certificate field is uneditable.
4. A page dynamic configuration device, characterized in that: include: The receiving module is used to receive the content entered on the client's form page; A judgment module, configured to judge whether the visual configuration conditions set on the configuration page of the server are met according to the content; A display module is used to display the fields and corresponding controls that meet the conditions on the client page if the judgment module determines that the visual configuration conditions set on the configuration page of the server are met; Configuration condition options include one or more of the following: status, visibility, and required status; The status includes enabled or disabled. If the user clicks the Enable tab, the conditional field and the corresponding control are enabled. If the user does not click the Enable tab, the conditional fields and corresponding controls will not be enabled on the client page; Visibility includes display or non-display; if the user clicks the Display tab, the conditional field and the corresponding control will be displayed on the client page; If the user does not click the Display tab, the conditional fields and corresponding controls will not be displayed on the client page; The required status includes: required or non-required. If the user clicks the "Required" tab, the conditional field and the corresponding controls will be displayed as required. If the user does not click the "Required" tab, the conditional field and the corresponding controls will be displayed as non-required on the client page. After the configuration page is displayed, it also includes: Receive the name of the client page form selected by the user; Determine, according to the name of the client page form, to display a configuration page corresponding to the client page; When the form on the client page is a form for consumers to purchase goods, when performing settlement, the method further includes calculating the amount of the goods according to the operation symbol control and calculation coefficient control selected and determined by the user on the server configuration page; and displaying the amount on the client page; Among them, the operation symbol controls include: plus operation control, minus operation control, multiplication operation control, division operation control, SUM operation control, Max operation control, Min operation control, and Upper operation control; It also includes calculation coefficient controls, specifically including: controls with a coefficient of 0; controls with a coefficient of 1; controls with a coefficient of 2; controls with a coefficient of 3; controls with a coefficient of 4; controls with a coefficient of 5; controls with a coefficient of 6; controls with a coefficient of 7; controls with a coefficient of 8; controls with a coefficient of 9; When the form on the client page is a form for consumers to purchase goods, If the product type is food, the corresponding condition fields include: weight, shelf life; If the product type is clothing, the corresponding condition field is size; If the product type is household appliances, the corresponding condition field is installation method; If it is a dishwasher, the corresponding condition fields are spray type and built-in type; If it is an air conditioner, the corresponding condition field is variable frequency; it is used to display the variable frequency or non-variable frequency status; If it is a mobile phone, the corresponding condition fields are model and color; the colors include blue, red, white, and black.
5. An electronic device, characterized in that: The electronic device includes: at least one processor and at least one memory; the memory is used to store one or more program instructions; the processor is used to run one or more program instructions to execute the method according to any one of claims 1-3.
6. A computer-readable storage medium, characterized in that The computer storage medium includes one or more program instructions, and the one or more program instructions are used to execute the method according to any one of claims 1 to 3.
Citation Information
Patent Citations
ERP system
CN110428217A
Page processing method, device and equipment and storage medium
CN111177613A