CN113032061A - Page configuration method and device, computer equipment and storage medium - Google Patents

Page configuration method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN113032061A
CN113032061A CN201911347556.7A CN201911347556A CN113032061A CN 113032061 A CN113032061 A CN 113032061A CN 201911347556 A CN201911347556 A CN 201911347556A CN 113032061 A CN113032061 A CN 113032061A
Authority
CN
China
Prior art keywords
page
component
information
configuration
configuration information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911347556.7A
Other languages
Chinese (zh)
Inventor
巫勇明
罗俊彪
蓝景全
陈秋浩
刘君
李余良
程庞钢
张媛
邹艳军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SF Technology Co Ltd
SF Tech Co Ltd
Original Assignee
SF Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SF Technology Co Ltd filed Critical SF Technology Co Ltd
Priority to CN201911347556.7A priority Critical patent/CN113032061A/en
Publication of CN113032061A publication Critical patent/CN113032061A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application relates to a page configuration method, a page configuration device, computer equipment and a storage medium. The method comprises the following steps: acquiring a component dragging instruction, and dragging the component to a corresponding configuration area according to the component dragging instruction to obtain a component list; acquiring component configuration information corresponding to each component in a component list; configuring the corresponding component according to the component configuration information to obtain page configuration information; generating page interaction information according to the page configuration information; analyzing the page interaction information to obtain a target page; and when receiving component selection operation in the target page, calling the corresponding component according to the page interaction information, and changing the target page through the called component. The method can reduce the service cost.

Description

Page configuration method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a page configuration method and apparatus, a computer device, and a storage medium.
Background
With the development of internet technology, internet services are increasing to meet the growing and diversified business demands. Internet services are generally implemented by developing pages, and each internet service needs to provide a plurality of page modes in order to meet various business requirements, and the plurality of page modes are different from each other. In a conventional manner, information such as a field sequence and a field type of a field of a page is analyzed to obtain corresponding components, and the components obtained through analysis are arranged on the page according to a preset sequence.
The page generated in the conventional manner can only provide an internet service in one page mode, and therefore, a new page needs to be developed for each page mode of the internet service, resulting in higher service cost. Therefore, how to reduce the service cost by reducing the number of pages is a technical problem that needs to be solved at present.
Disclosure of Invention
In view of the above, it is necessary to provide a page configuration method, apparatus, computer device and storage medium capable of reducing service cost by reducing the number of pages.
A method of page configuration, the method comprising:
acquiring a component dragging instruction, and dragging a component to a corresponding configuration area according to the component dragging instruction to obtain a component list;
acquiring component configuration information corresponding to each component in the component list;
configuring the corresponding component according to the component configuration information to obtain page configuration information;
generating page interaction information according to the page configuration information;
analyzing the page interaction information to obtain a target page;
and when receiving component selection operation in the target page, calling a corresponding component according to the page interaction information, and changing the target page through the called component.
In one embodiment, the configuring the corresponding component according to the component configuration information to obtain the page configuration information includes: carrying out dependency relationship configuration on the corresponding component according to first configuration information in the component configuration information; and configuring the corresponding components after the dependency relationship is configured according to the second configuration information in the component configuration information to obtain page configuration information.
In one embodiment, the generating page interaction information according to the page configuration information includes: analyzing the page configuration information to obtain a configured component list, verification information and a dependency relationship; and generating page interaction information according to the configured component list, the verification information and the dependency relationship.
In one embodiment, the analyzing the page interaction information to generate the target page includes: initializing the page object according to the component list in the page interaction information to obtain an initialized page object; processing the dependency relationship of the initialized page object; carrying out format conversion on the verification information corresponding to the page object after the dependency relationship processing; and rendering the component list in the page interaction information according to the verification information after format conversion to generate a target page.
In one embodiment, the performing dependency relationship processing on the initialized page object includes: monitoring the initialized page object; when the initialized page object is monitored to be changed, traversing the dependency relationship in the page interaction information, and determining a dependency object corresponding to the changed page object; and updating the dependent object according to the changed page object.
In one embodiment, the method further comprises: acquiring product information, calling a preset interface according to the product information, and acquiring page interaction information corresponding to the product information from the page interaction information through the preset interface to serve as the product interaction information; analyzing the product information and the product interaction information according to the target page to generate a first service page; receiving product setting operation on all components in the first service page, and setting all components according to the product setting operation to obtain set components; sending the set assembly to an auditing terminal, and auditing the set assembly through the auditing service terminal; and when the audit passing information returned by the audit terminal is received, displaying the product identification corresponding to the component after the audit passing.
A page configuration apparatus, the apparatus comprising:
the dragging module is used for acquiring a component dragging instruction, and dragging the component to a corresponding configuration area according to the component dragging instruction to obtain a component list;
the communication module is used for acquiring component configuration information corresponding to each component in the component list;
the configuration module is used for configuring the corresponding component according to the component configuration information to obtain page configuration information;
the generating module is used for generating page interaction information according to the page configuration information;
the analysis module is used for analyzing the page interaction information to obtain a target page;
and the changing module is used for calling the corresponding component according to the page interaction information when receiving the component selection operation in the target page, and changing the target page through the called component.
In one embodiment, the generating module is further configured to analyze the page configuration information to obtain a configured component list, verification information, and a dependency relationship; and generating page interaction information according to the configured component list, the verification information and the dependency relationship.
In one embodiment, the parsing module is further configured to perform initialization processing on a page object according to a component list in the page interaction information to obtain an initialized page object; processing the dependency relationship of the initialized page object; carrying out format conversion on the verification information corresponding to the page object after the dependency relationship processing; and rendering the component list in the page interaction information according to the verification information after format conversion to generate a target page.
A computer device comprising a memory and a processor, the memory storing a computer program operable on the processor, the processor implementing the steps in the various method embodiments described above when executing the computer program.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the respective method embodiment described above.
According to the page configuration method, the page configuration device, the computer equipment and the storage medium, the components are dragged to the corresponding configuration areas according to the component dragging instruction to obtain the component list, and the components required by generating the target page can be obtained. And acquiring component configuration information corresponding to each component in the component list, and configuring the corresponding component according to the component configuration information to obtain page configuration information, thereby being beneficial to the subsequent generation of a target page. And generating page interaction information according to the page configuration information. And when receiving component selection operation in the target page, calling the corresponding component according to the page interaction information, and changing the target page through the called component. The interaction among a plurality of sub-pages is realized on the target page through the page interaction information, the switching among a plurality of page modes of the internet service can be realized, a plurality of page modes are provided through one page, and a new page does not need to be developed, so that the number of pages is reduced, and the service cost is effectively reduced.
Drawings
FIG. 1 is a diagram of an application environment of a page configuration method in one embodiment;
FIG. 2 is a flowchart illustrating a page allocation method according to an embodiment;
FIG. 3 is a schematic view of a base assembly;
FIG. 4 is a schematic diagram of a basic configuration of a base assembly;
FIG. 5 is a schematic diagram of a drop down box configuration;
FIG. 6 is a schematic diagram of a counter configuration;
FIG. 7 is a schematic diagram of an input box configuration;
FIG. 8 is a schematic view of a slider configuration;
FIG. 9 is a schematic diagram of a switch configuration;
FIG. 10 is a schematic illustration of page configuration information;
FIG. 11 is a flowchart illustrating the step of generating page interaction information according to the page configuration information in one embodiment;
FIG. 12 is a block diagram showing the structure of a page configuration apparatus in one embodiment;
FIG. 13 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The page configuration method provided by the application can be applied to the application environment shown in fig. 1. Wherein the service terminal 102 communicates with the server 104 via a network. The service terminal 102 acquires a component dragging instruction, and drags the component to the corresponding configuration area according to the component dragging instruction to obtain a component list. The service terminal 102 generates an information acquisition request according to the component list, and sends the information acquisition request to the server 104. The service terminal 102 acquires the component configuration information corresponding to each component in the component list returned by the server 104 according to the information acquisition request. The service terminal 102 configures the corresponding component according to the component configuration information to obtain page configuration information. The service terminal 102 generates page interaction information according to the page configuration information. The service terminal 102 analyzes the page interaction information to obtain a target page. When the service terminal 102 receives the component selection operation in the target page, the corresponding component is called according to the page interaction information, and the target page is changed through the called component. The service terminal 102 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices. The server 104 may be implemented as a stand-alone server or as a server cluster comprised of multiple servers.
In an embodiment, as shown in fig. 2, a page configuration method is provided, which is described by taking the application of the method to the service terminal in fig. 1 as an example, and includes the following steps:
step 202, acquiring a component dragging instruction, and dragging the component to a corresponding configuration area according to the component dragging instruction to obtain a component list.
And the service terminal acquires a component display instruction of a user and displays the corresponding component according to the component display instruction and preset configuration information. The components may be used to develop page elements such as windows, text boxes, buttons, and the like. The components may be product rule components and the components may include product specification base components and product specification business components. A product specification base component can be referred to as a base component and a product specification business component can be referred to as a business component. And the service terminal acquires a component dragging instruction of a user and drags the component to the corresponding configuration area according to the component dragging instruction. And the service terminal obtains a component list according to the dragged components. The component list may be an array generated from the underlying components and the business component drag.
Step 204, obtaining component configuration information corresponding to each component in the component list.
And the service terminal generates an information acquisition request according to the component list and sends the information acquisition request to the server. The server analyzes the information acquisition request to obtain request parameters. And the server acquires the component configuration information corresponding to each component in the component list from the database according to the request parameters. The component configuration information may include component parameter information, dependency relationship, verification information, and the like. The dependency relationship may be an association between fields on a page. The dependencies may include display dependencies, disable dependencies, and check dependencies, among other dependencies. Display dependencies may be where other components decide whether the component needs to be displayed. The disabling dependency may be the decision by the other component whether the component needs to be disabled. Checking dependencies may be the determination by other components of the page check result for that component. The verification information may include a manner of verifying a field value in the page. The verification mode can be various, can be character string verification, can be data verification, can be verified through a regular expression, and can also be verified through a remote interface. And the server sends the component configuration information corresponding to each component in the obtained component list to the service terminal.
And step 206, configuring the corresponding component according to the component configuration information to obtain page configuration information.
The service terminal acquires the component configuration information sent by the server, determines the component configuration information corresponding to each component, and configures the corresponding component according to the component configuration information to further obtain the page configuration information. Specifically, the service terminal may divide the component configuration information into first configuration information and second configuration information according to the type of the component configuration information. And the service terminal determines a corresponding first component in the component list according to the first configuration information, and configures the first component according to the first configuration information. And the service terminal determines a corresponding second component in the component list according to the second configuration information, and configures the second component according to the second configuration information, so as to obtain the page configuration information of the whole page. The format of the page configuration information of the entire page may be a json format. The page configuration information may include component parameter information, a component list, verification information, and a dependency relationship.
And step 208, generating page interaction information according to the strategy configuration information.
And step 210, analyzing the page interaction information to obtain a target page.
And the service terminal combines the component list, the verification information and the dependency relationship in the page configuration information to generate page interaction information. The format of the page interaction information can be a json format, and the page interaction information is used for realizing interaction among a plurality of sub pages on the current page. Wherein the sub-page may be a form.
The page interaction information may include a component list, dependencies, and verification information. And the service terminal initializes the page object according to the component list in the page interaction information to obtain an initialized page object. For example, the page object may be a form object. And the service terminal processes the dependency relationship of the initialized page object and binds the components corresponding to the page object with the dependency relationship. And the service terminal performs format conversion on the check information corresponding to the bound page object, converts the check information into a format which can be identified by the page display script, and is favorable for displaying the changed page on a target page after the page configuration is completed. And the service terminal further renders the component list in the page interaction information according to the verification information after format conversion to obtain a target page.
And 212, when component selection operation in the target page is received, calling a corresponding component according to the page interaction information, and changing the target page through the called component.
And when the service terminal receives the component selection operation of the user on the target page, calling the corresponding component according to the page interaction information. The invoked component may be a user selected component. And the service terminal changes the target page through the called component to realize the interaction between the pages. For example, when the service terminal receives a product specification selection operation of a user on a target page, the service terminal calls a corresponding product specification component according to page information, and the target page is changed through the product rule component to obtain a page corresponding to the product rule component.
In this embodiment, the service terminal drags the component to the corresponding configuration area according to the component dragging instruction to obtain the component list, and can obtain the component required for generating the target page. And the service terminal acquires the component configuration information corresponding to each component in the component list, configures the corresponding component according to the component configuration information to obtain page configuration information, and is favorable for subsequently generating a target page. And the service terminal generates page interaction information according to the page configuration information. And when the service terminal receives the component selection operation in the target page, calling the corresponding component according to the page interaction information, and changing the target page through the called component. The interaction among a plurality of sub-pages is realized on the target page through the page interaction information, the switching among a plurality of page modes of the internet service can be realized, a plurality of page modes are provided through one page, and a new page does not need to be developed, so that the number of pages is reduced, and the service cost is effectively reduced.
In one embodiment, configuring the corresponding component according to the component configuration information, and obtaining the page configuration information includes: carrying out dependency relationship configuration on the corresponding component according to the first configuration information in the component configuration information; and configuring the corresponding components after the dependency relationship is configured according to the second configuration information in the component configuration information to obtain page configuration information.
The component configuration information may include first configuration information and second configuration information. The first configuration information may include a basic configuration of the base component. Wherein, the component information of the basic component can be as shown in table 1.
TABLE 1 basic Components
Figure BDA0002333808190000091
The service terminal may arrange the basic components according to a preset sequence, and the obtained schematic diagram of the basic components may be as shown in fig. 3. Wherein all options in the tile list may be rectangular-shaped. For example, the options selected for the tile may include option 1 and option 2. The counter is used to enter a number, increment the data by the "+" button, and decrement the number by the "-" button. For example, the radio box may include option 1 and option 2. The check box may include option 1 as well as option 2. The descriptive text can be used for text configuration and inputting historical component information.
A schematic diagram of a basic configuration obtained by arranging a plurality of configuration items in the basic configuration of the basic component according to a preset order may be shown in fig. 4. The basic configuration may include basic configuration parameters such as a name, a title, a unit, a dependency relationship, and a necessary fill as configuration information that all basic components have. The name may be the name of the page field. The name may be generated from the start time of the page configuration process to achieve that the name is unique within the same page. The dependency may include a disabled state and a display state. The service terminal can configure the dependency relationship of the corresponding component through the dependency relationship. The values of the disabled state may include enable, disable, and dependent. The initial value of the disabled state may be on. When the value of the disabled state is dependent, the service terminal may determine whether to disable according to the value of the dependent field. The service terminal can realize the forbidden dependency by setting a judgment condition between the dependency field and the preset field value. The determination condition may be any one of equal to, unequal to, present, and absent. The values of the display states may include display, hide, and dependent. The initial value of the display state may be a display. When the value of the display state is dependent, the service terminal may determine whether to display according to the value of the dependent field. The service terminal can realize the forbidden dependency by setting a judgment condition between the dependency field and the preset field value. The determination condition may be any one of equal to, unequal to, present, and absent. The padding is used to indicate whether the field is a padding field, and the initial value of the padding may be non-padding.
The second configuration information may include component configuration of the base component and business configuration information of the business component. The component configuration may be configuration information that each component possesses individually. The component configuration can be a tiled radio configuration, a drop-down box configuration, a counter configuration, an input box configuration, a slider configuration, a switch configuration, a radio box configuration, a check box configuration, a caption configuration, a split line configuration, an option configuration, and the like. The tile radio configures an option source for configuring the component. A schematic diagram of a drop-down frame configuration obtained by arranging a plurality of configuration items in the drop-down frame configuration according to a preset order may be as shown in fig. 5. The drop-down box configuration information may be as shown in table 2:
TABLE 2 drop-down box configuration information
Figure BDA0002333808190000101
A schematic diagram of a counter configuration obtained by arranging a plurality of configuration items in the counter configuration according to a preset order may be as shown in fig. 6. The default value, the minimum value, the maximum value, the step length and the decimal digit are all initial values. The counter configuration information may be as shown in table 3:
TABLE 3 counter configuration information
Configuration item Initial value Description of the invention
Default value
1 Must be a number
Minimum value
1 Minimum value that can be input
Maximum value 10 Maximum value that can be input
Step size
1 Click-once plus or minus varying amplitude
Decimal fraction
0 Reserved decimal fraction
A schematic diagram of an input box configuration obtained by arranging a plurality of configuration items in the input box configuration in order may be as shown in fig. 7. The input box configuration information may be as shown in table 4:
TABLE 4 input Box configuration information
Figure BDA0002333808190000111
The automatic completion mode in the input box configuration information can comprise manual addition and interface addition. The manual addition may be to add the option information to the option names one by acquiring the option information. The interface addition may be to obtain the interface identifier and the page field, call the corresponding interface according to the interface identifier to obtain the option content in the page field, and add the option content to the corresponding option name. A schematic diagram of interface addition may be as shown in fig. 7.
A schematic diagram of a slider configuration obtained by arranging a plurality of configuration items in the slider configuration according to a preset order may be shown in fig. 8. The slider configuration information may be as shown in table 5:
TABLE 5 slider configuration information
Configuration item Default value Description of the invention
Display input box Is opened After opening, the number can be input at the back of the sliding strip
Minimum value
0 Minimum value of sliding bar
Maximum value
100 Maximum value of sliding strip
Step size
1 Minimum amplitude of numerical variation
A schematic diagram of the switch configuration obtained by arranging the plurality of configuration items in the switch configuration according to the preset order may be as shown in fig. 9. The switch configuration information may be as shown in table 6:
TABLE 6 switch configuration information
Configuration item Default value Description of the invention
Value at opening true When the switch is in the on state, the values in the page can be sent to the server
Name when opening Is opened Name displayed when switch is on
Value at shut down false Corresponding to values at the time of opening
Name at closing Close off Corresponding to the name at the time of opening
Default open Is opened When page previewing is carried out, the default opening state of the switch
The configuration items in the radio box configuration may include a first option. The first option may be for configuring one option source of the component. The configuration items in the check box configuration can include a second option. The second option may be for configuring multiple option sources for the component. Configuration items of the caption configuration may include captions and links. For example, the default value for the caption could be "this is content, and a link could also be added". The caption could be used to add a line of caption associated with the history component. The link can be used for adding the link to the content in the explanatory text, and the link text can be acquired first and then the content is added to the link text according to the link address. The link text needs to be looked up from the explanatory text.
The partition line component in the basic component has no basic configuration and only has one title configuration item. The split lines may be used to insert between components, grouping components. The acquisition mode of the option configuration can comprise manual addition and interface acquisition. The manual addition may be to display the options according to a preset sequence, the service terminal may configure a certain option to be disabled or to check by default, and when an operation instruction of the check box is obtained, a plurality of options may be selected. The interface acquisition can be realized by acquiring the interface identifier and the page field, calling the corresponding interface according to the interface identifier to acquire the option content in the page field, and adding the option content to the corresponding option name. Interface acquisition can support two modes of GET and POST. A schematic diagram of interface acquisition may be as shown in fig. 10.
The service configuration information of the service component may include a service logic relationship of the service component for implementing the customized service component. The service terminal can judge whether the service component needs to be configured according to the user-defined information, and when the configuration is needed, the service component is configured according to the service configuration information. When configuration is not needed, the service terminal can directly use the service component according to the component dragging instruction. And the service terminal adds the service component and the configured component into the component list, so that page configuration information can be obtained. A schematic diagram of the page configuration information may be as shown in fig. 10.
In this embodiment, the service terminal performs dependency configuration on the corresponding component through the first configuration information in the component configuration information, and can establish a dependency relationship between multiple fields in the page, so that when a field value changes, the dependency field is correspondingly changed according to the dependency relationship, and the service efficiency of the corresponding service of the page is further improved.
In one embodiment, as shown in fig. 11, the step of generating the page interaction information according to the page configuration information includes:
step 1102, parsing the page configuration information to obtain a configured component list, verification information and a dependency relationship.
And 1104, generating page interaction information according to the configured component list, the verification information and the dependency relationship.
The page configuration information may include a base component and a business component. The basic component stores dependency relationship and verification information. The dependencies may include display dependencies, disable dependencies, and check dependencies, among other dependencies. Display dependencies may be where other components decide whether the component needs to be displayed. The disabling dependency may be the decision by the other component whether the component needs to be disabled. Checking dependencies may be the determination by other components of the page check result for that component. The verification information may include the verification initiation manner of different components and the manner in which field values in the page are verified. The verification starting modes of different components can comprise input box focus losing starting verification, starting verification when the field value of a drop-down box is changed, and the like. The verification mode can be various, can be character string verification, can be data verification, can be verified through a regular expression, and can also be verified through a remote interface.
The service terminal can analyze the configuration information of the basic component in the page configuration information to obtain the dependency relationship and the check information, and respectively generate an array from the dependency relationship and the check information to obtain a dependency relationship array and a check information array. The service terminal can add the dependency relationship and the verification information to the component list to generate page interaction information. The format of the page interaction information may be a json format. The component list comprises service components, dependency relationships and verification information are preset in the service components, and configuration is not needed.
In this embodiment, the service terminal analyzes the page configuration information to obtain the configured component list, the verification information, and the dependency relationship, and generates the page interaction information according to the configured component list, the verification information, and the dependency relationship. Because the page configuration information comprises the check information and the dependency relationship, after the page interaction information is generated, when different components are selected on the page, sub-page interaction can be directly carried out on the current page through the page interaction information, a new page does not need to be generated again, and the service cost of the service provided by the page is further reduced.
In one embodiment, parsing the page interaction information to generate the target page includes: initializing the page object according to the component list in the page interaction information to obtain an initialized page object; processing the dependency relationship of the initialized page object; carrying out format conversion on the verification information corresponding to the page object after the dependency relationship processing; and rendering the component list in the page interaction information according to the verification information after format conversion to generate a target page.
After the service terminal obtains the page interaction information, initializing the page object according to the component list in the page interaction information, generating a display dependent object and a forbidden dependent object, and further obtaining the initialized page object. For example, the page object may be a form object. The business terminal performs initialization processing on the page object to realize uniform management of all page field values and dependency information of all components.
The service terminal can process the dependency relationship of the initialized page object. In one embodiment, the performing dependency processing on the initialized page object includes: monitoring the initialized page object; when the initialized page object is monitored to be changed, traversing the dependency relationship in the page interaction information, and determining a dependency object corresponding to the changed page object; and updating the dependent object according to the changed page object. Specifically, the service terminal may be a listener bound to the initialized page object, and monitor the initialized page object through the listener, when it is monitored that a field value of the initialized page object is changed, traverse a dependency relationship in the page interaction information, determine a corresponding dependent object according to the changed page object, and then change the field value of the dependent object according to the changed page object, at this time, a component state of the dependent object may also be changed accordingly. The service terminal monitors the initialized page object, when the initialized page object is monitored to be changed, the dependency relationship in the page interaction information is traversed, the dependency object corresponding to the changed page object is determined, the dependency object is updated according to the changed page object, the change information can be obtained in time, and then the corresponding dependency object is changed according to the change information through the dependency relationship, so that the service efficiency of the page is further improved.
The service terminal can also convert the verification information corresponding to the processed page object into a format which can be identified by the page display script. The format that the page display script can recognize may include the manner in which the different components are checked for activation and the manner in which field values in the page are checked. The verification starting modes of different components can comprise input box focus losing starting verification, starting verification when the field value of a drop-down box is changed, and the like. The verification mode can be various, can be character string verification, can be data verification, can be verified through a regular expression, and can also be verified through a remote interface. And the service terminal renders the component list in the page interaction information according to the converted verification information, and renders each component in the component list to obtain a target page. The target page may be used to perform interactions between multiple sub-pages. The destination page may also be used for interaction between forms.
In this embodiment, the service terminal performs initialization processing on the page object to realize uniform management of all page field values and dependency information of all components. The business terminal processes the dependency relationship of the initialized page object, and can correspondingly change the corresponding dependency when the page object is changed, thereby improving the service efficiency of the page. The service terminal performs format conversion on the verification information corresponding to the page object after the dependency relationship processing, which is beneficial to verifying the field value of the page, thereby improving the security of the page field. The service terminal renders the component list in the page interaction information according to the verification information after format conversion to generate a target page, so that the target page capable of sub-page interaction is obtained according to the dependency relationship, and meanwhile, the safety of the page field is improved.
In one embodiment, the method further comprises: acquiring product information, calling a preset interface according to the product information, and acquiring page interaction information corresponding to the product information from the page interaction information through the preset interface to serve as the product interaction information; analyzing the product information and the product interaction information according to the target page to generate a first service page; receiving product setting operation on all components in the first business page, and setting all the components according to the product setting operation to obtain set components; sending the set assembly to an auditing terminal, and auditing the set assembly through the auditing terminal; and when the audit passing information returned by the audit terminal is received, displaying the product identification corresponding to the component after the audit passing.
The service terminal may include a service terminal and an audit terminal. After the service terminal generates the page interaction information according to the strategy configuration information and the component list, the service terminal can also edit the page interaction information and send the edited page interaction information to the auditing terminal. And auditing the edited page interaction information through the auditing terminal. And the service terminal logs in the product management system and sends a product editing request to the product management system, and the product management system acquires product information according to the product editing request and returns the product information to the service terminal. The product information may include a product identification. And the service terminal calls a preset interface according to the product information. The preset interface is used for inquiring page interaction information. And the service terminal acquires page interaction information corresponding to the product information from the page interaction information through a preset interface to serve as the product interaction information. And the service terminal analyzes the product information and the product interaction information according to the target page. The analyzing method may include initializing the product information and the product interaction information, performing dependency relationship processing on the initialized product information and the initialized product interaction information, and verifying the dependency relationship processed product information and the product interaction information to generate the first service page.
The service terminal can also send a product newly-adding request to the product management system after logging in the product management system, the product management system displays the component according to the product newly-adding request, the service terminal obtains a component dragging instruction of the display component, and the component is dragged to the corresponding configuration area according to the component dragging instruction.
And the service terminal receives product setting operation on all the components in the first service page after generating the first service page or dragging the components to the corresponding configuration areas according to the component dragging instruction. The product setting operation may include a data source setting operation, a product specification setting operation, a product interaction information selection operation, and a policy information selection operation. The service terminal sets an operation setting component source according to the data sources of all the components in the first service page, sets the product specification output by the operation setting component according to the product specification, sets product interaction information corresponding to the operation setting product identification according to the product interaction information, and selects operation to determine strategy information corresponding to the product identification according to the strategy information, so as to obtain the set components. The policy information may include resource computation policies and orchestration policy identification.
And the service terminal receives the submission operation or the storage operation of the set component. And the service terminal converts the set components into json policy information according to the submitting operation or the storing operation, calls a corresponding interface according to the json policy information, and stores the json policy information into a database through the interface. And when the service terminal receives the submitting operation, inputting the set components into a list to be checked in the product management system. And after logging in the product management system, the auditing terminal acquires the set components in the list to be audited and audits the set components. And when the audit passing information returned by the audit terminal is received, displaying the product identification corresponding to the component after the audit passing. When receiving the audit failure information returned by the audit terminal, the service terminal can edit or modify the set component according to the audit failure information.
In this embodiment, the service terminal obtains page interaction information corresponding to the product information from the page interaction information by calling a preset interface, and the page interaction information is used as the product interaction information. And analyzing the product information and the product interaction information according to the target page to generate a first service page. And the subsequent product setting of the components in the first service page is facilitated. And the service terminal receives product setting operation on all the components in the first service page, and sets all the components according to the product setting operation to obtain the set components. And sending the set assembly to an auditing terminal, auditing the set assembly through the auditing terminal, and displaying a product identifier corresponding to the assembly after the auditing is passed. The validity of the product information can be improved by auditing the set components.
In one embodiment, the service terminal may further send the generated target page to the server, so that the server calculates the product resource information according to the target page. Specifically, when the user terminal logs in the server, a product service acquisition request is sent, and the server analyzes the product service acquisition request to obtain a product identifier and an operation terminal identifier. And the server calls a preset interface according to the product service acquisition request, and acquires the strategy information and the page interaction information corresponding to the product identification through the preset interface. And the server analyzes the strategy information and the page interaction information corresponding to the product identification according to the target page to generate a second service page. The server receives a product specification selection operation on the business page and calculates dynamic product attribute information according to the selected product specification. And the server calculates corresponding product resource information according to the dynamic product attribute information, and adds the field resource data of each field in the dynamic attribute information to obtain the product resource information. For example, the cloud host product has CPU memory parameter fields: and the value of the flavoValue is 30 yuan when the field value is 1C 2G. When the field value is 1C4G, the price is 45 Yuan. Disc type field: dataDiskType, the association field may include a local or gfs field. Wherein the local price is equal to local value 10, and the gfs price is equal to gfs value 15. The price of the cloud host product is equal to the price of the flavovalue + the price of the dataDiskType. When product specifications are selected, the generated product dynamic attributes are: flavovalue: 1C2G, datadiscktype: local, local: 45. The price of the cloud host is: 30+45 × 10 ═ 480 yuan.
And when the server receives the confirmation operation of the product resource information sent by the terminal, generating product consumption information and product detailed information. For example, the detailed information of the cloud host may include order placing time, an operator, cloud host initialization completion time, a price calculation period, CPU memory, a disk type, network area information, an instance number, a mirror type, a mirror name, a system code to which a current product belongs, a parent host resource pool code, and the like. And the server stores the product consumption information into a consumption information base and stores the detailed product information into a consumption detail base. And the server locks the product consumption information. And the server acquires the initialization interface list, calls the initialization interfaces in the initialization interface list according to the interface calling sequence until all the interfaces in the initialization interface list are successfully called, and finishes product arrangement through all the interfaces. And after finishing the product arrangement, the server deducts the locked product consumption information and updates the display state of the product consumption information. For example, an initialization interface list (A, B, C, D) of a cloud host product is stored in a server in advance, an interface calling sequence is preset, the server calls an initialization interface in the initialization interface list according to a calling state code, if the calling of the A is successful, the calling of the B is continued, and if the calling of the A is failed, the interface calling process is interrupted until the calling of the ABCD is successful. The server calls an initialization distribution IP (Internet Protocol) of a network area at an interface A, calls initialization disks of different brands of mother host interfaces at an interface B, calls initialization Virtual machines (VM for short) of the different brands of mother host interfaces at an interface C and assigns the disks to distribute the IP, and adds a VM monitoring script at an interface D.
In this embodiment, the service terminal sends the target page to the server, and the server analyzes the policy information and the page interaction information corresponding to the product identifier according to the target page to generate a second service page. And receiving a product specification selection operation on the service page through the server, calculating dynamic product attribute information according to the selected product specification, and calculating corresponding product resource information according to the dynamic product attribute information. The interaction of the product rule page can be carried out on the target page, the dynamic product attribute information and the product resource information are calculated in time, and the service efficiency of the corresponding service of the page is improved.
It should be understood that although the steps in the flowcharts of fig. 2 to 3 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-3 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 12, there is provided a page configuring apparatus including: a drag module 1202, a communication module 1204, a configuration module 1206, a generation module 1208, a parsing module 1210, and a change module 1212, wherein:
the dragging module 1202 is configured to obtain a component dragging instruction, and drag a component to a corresponding configuration area according to the component dragging instruction to obtain a component list.
The communication module 1204 is configured to obtain component configuration information corresponding to each component in the component list.
The configuration module 1206 is configured to configure the corresponding component according to the component configuration information, so as to obtain page configuration information.
The generating module 1208 is configured to generate the page interaction information according to the page configuration information.
And the analysis module 1210 is configured to analyze the page interaction information to obtain a target page.
The changing module 1212 is configured to, when receiving a component selection operation in the target page, call a corresponding component according to the page interaction information, and change the target page through the called component.
In one embodiment, the configuration module 1206 is further configured to perform dependency configuration on the corresponding component according to the first configuration information in the component configuration information; and configuring the corresponding components after the dependency relationship is configured according to the second configuration information in the component configuration information to obtain page configuration information.
In an embodiment, the generating module 1208 is further configured to analyze the page configuration information to obtain a configured component list, verification information, and a dependency relationship; and generating page interaction information according to the configured component list, the verification information and the dependency relationship.
In an embodiment, the parsing module 1210 is further configured to perform initialization processing on the page object according to the component list in the page interaction information, so as to obtain an initialized page object; processing the dependency relationship of the initialized page object; carrying out format conversion on the verification information corresponding to the page object after the dependency relationship processing; and rendering the component list in the page interaction information according to the verification information after format conversion to generate a target page.
In one embodiment, the parsing module 1210 is further configured to monitor the initialized page object; when the initialized page object is monitored to be changed, traversing the dependency relationship in the page interaction information, and determining a dependency object corresponding to the changed page object; and updating the dependent object according to the changed page object.
In one embodiment, the above apparatus further comprises:
the acquisition module is used for acquiring the product information, calling a preset interface according to the product information, and acquiring page interaction information corresponding to the product information from the page interaction information through the preset interface to serve as the product interaction information.
The parsing module 1210 is further configured to parse the product information and the product interaction information according to the target page, and generate a first service page.
And the setting module is used for receiving product setting operation on all the components in the first service page, and setting all the components according to the product setting operation to obtain the set components.
And the sending module is used for sending the set assembly to an auditing terminal and auditing the set assembly through an auditing service terminal.
And the display module is used for displaying the product identifier corresponding to the component after the audit is passed when the audit passing information returned by the audit terminal is received.
For the specific definition of the page configuration device, reference may be made to the above definition of the page configuration method, which is not described herein again. The various modules in the page configuring apparatus may be implemented wholly or partially by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 13. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a page configuration method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 13 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory storing a computer program and a processor implementing the steps of the above-described method embodiments when the processor executes the computer program.
In an embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the respective method embodiment as described above.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (11)

1. A method of page configuration, the method comprising:
acquiring a component dragging instruction, and dragging a component to a corresponding configuration area according to the component dragging instruction to obtain a component list;
acquiring component configuration information corresponding to each component in the component list;
configuring the corresponding component according to the component configuration information to obtain page configuration information;
generating page interaction information according to the page configuration information;
analyzing the page interaction information to obtain a target page;
and when receiving component selection operation in the target page, calling a corresponding component according to the page interaction information, and changing the target page through the called component.
2. The method of claim 1, wherein the configuring the corresponding component according to the component configuration information to obtain page configuration information comprises:
carrying out dependency relationship configuration on the corresponding component according to first configuration information in the component configuration information;
and configuring the corresponding components after the dependency relationship is configured according to the second configuration information in the component configuration information to obtain page configuration information.
3. The method of claim 1, wherein generating page interaction information according to the page configuration information comprises:
analyzing the page configuration information to obtain a configured component list, verification information and a dependency relationship;
and generating page interaction information according to the configured component list, the verification information and the dependency relationship.
4. The method of claim 1, wherein the parsing the page interaction information to generate a target page comprises:
initializing the page object according to the component list in the page interaction information to obtain an initialized page object;
processing the dependency relationship of the initialized page object;
carrying out format conversion on the verification information corresponding to the page object after the dependency relationship processing;
and rendering the component list in the page interaction information according to the verification information after format conversion to generate a target page.
5. The method of claim 4, wherein the processing the initialized page object for dependency comprises:
monitoring the initialized page object;
when the initialized page object is monitored to be changed, traversing the dependency relationship in the page interaction information, and determining a dependency object corresponding to the changed page object;
and updating the dependent object according to the changed page object.
6. The method according to any one of claims 1 to 5, further comprising:
acquiring product information, calling a preset interface according to the product information, and acquiring page interaction information corresponding to the product information from the page interaction information through the preset interface to serve as the product interaction information;
analyzing the product information and the product interaction information according to the target page to generate a first service page;
receiving product setting operation on all components in the first service page, and setting all components according to the product setting operation to obtain set components;
sending the set assembly to an auditing terminal, and auditing the set assembly through the auditing service terminal;
and when the audit passing information returned by the audit terminal is received, displaying the product identification corresponding to the component after the audit passing.
7. A page configuring apparatus, the apparatus comprising:
the dragging module is used for acquiring a component dragging instruction, and dragging the component to a corresponding configuration area according to the component dragging instruction to obtain a component list;
the communication module is used for acquiring component configuration information corresponding to each component in the component list;
the configuration module is used for configuring the corresponding component according to the component configuration information to obtain page configuration information;
the generating module is used for generating page interaction information according to the page configuration information;
the analysis module is used for analyzing the page interaction information to obtain a target page;
and the changing module is used for calling the corresponding component according to the page interaction information when receiving the component selection operation in the target page, and changing the target page through the called component.
8. The apparatus of claim 7, wherein the generating module is further configured to parse the page configuration information to obtain a configured component list, verification information, and a dependency relationship; and generating page interaction information according to the configured component list, the verification information and the dependency relationship.
9. The apparatus according to claim 7, wherein the parsing module is further configured to perform initialization processing on a page object according to a component list in the page interaction information, so as to obtain an initialized page object; processing the dependency relationship of the initialized page object; carrying out format conversion on the verification information corresponding to the page object after the dependency relationship processing; and rendering the component list in the page interaction information according to the verification information after format conversion to generate a target page.
10. A computer device comprising a memory and a processor, the memory storing a computer program operable on the processor, wherein the processor implements the steps of the method of any one of claims 1 to 6 when executing the computer program.
11. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
CN201911347556.7A 2019-12-24 2019-12-24 Page configuration method and device, computer equipment and storage medium Pending CN113032061A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911347556.7A CN113032061A (en) 2019-12-24 2019-12-24 Page configuration method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911347556.7A CN113032061A (en) 2019-12-24 2019-12-24 Page configuration method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113032061A true CN113032061A (en) 2021-06-25

Family

ID=76451759

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911347556.7A Pending CN113032061A (en) 2019-12-24 2019-12-24 Page configuration method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113032061A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140047228A1 (en) * 2012-08-09 2014-02-13 International Business Machines Corporation Configuring a System with Various System Components Utilizing a Configuration Profile
US20170123642A1 (en) * 2015-10-28 2017-05-04 International Business Machines Corporation Generating component pages to render in a configuration page in a graphical user interface to configure a computing resource
CN107273122A (en) * 2017-06-07 2017-10-20 深圳市卓讯信息技术有限公司 Based on decoupling mechanism can iteration set up operation system method and its terminal
CN109871500A (en) * 2019-01-24 2019-06-11 平安科技(深圳)有限公司 Page loading method, device, computer equipment and storage medium
CN110362307A (en) * 2019-06-13 2019-10-22 深圳壹账通智能科技有限公司 Forms pages configuration method and server

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140047228A1 (en) * 2012-08-09 2014-02-13 International Business Machines Corporation Configuring a System with Various System Components Utilizing a Configuration Profile
US20170123642A1 (en) * 2015-10-28 2017-05-04 International Business Machines Corporation Generating component pages to render in a configuration page in a graphical user interface to configure a computing resource
CN107273122A (en) * 2017-06-07 2017-10-20 深圳市卓讯信息技术有限公司 Based on decoupling mechanism can iteration set up operation system method and its terminal
CN109871500A (en) * 2019-01-24 2019-06-11 平安科技(深圳)有限公司 Page loading method, device, computer equipment and storage medium
CN110362307A (en) * 2019-06-13 2019-10-22 深圳壹账通智能科技有限公司 Forms pages configuration method and server

Similar Documents

Publication Publication Date Title
US10757036B2 (en) Method and system for provisioning computing resources
US10521243B2 (en) Pre/post deployment customization
CN112633691A (en) Method and device for generating custom approval process
CN110689232A (en) Workflow configuration optimization processing method and device and computer equipment
US20200244549A1 (en) Integration and customization of third-party services with remote computing infrastructure
US11681961B2 (en) Flexible work breakdown structure
CN110704095A (en) Workflow-based configuration processing method and device, computer equipment and storage medium
CN107908657A (en) Querying method, device, computer equipment and the storage medium of bordereau
CN114185632A (en) Page configuration method, device, computer equipment, medium and program product
CN109711124B (en) Method, apparatus, computer device and storage medium for managing mobile device
CN113742023A (en) Authority configuration method and device, computer equipment and storage medium
CN112686580B (en) Workflow definition method and system capable of customizing flow
CN113032061A (en) Page configuration method and device, computer equipment and storage medium
US10061686B2 (en) Method, electronic apparatus, system, and storage medium for automated testing of application user interface
CN116112457A (en) Method, device, computer equipment and storage medium for notifying message
CN115827051A (en) Software integration management system, method and server
CN111007975B (en) Method and device for realizing calculation formula in document, computer equipment and storage medium
CN113076728A (en) Data filling method of dialog box and related equipment
CN107665045B (en) Safety keyboard configuration method, device, terminal and storage medium
CN103500097A (en) Method for developing secondary development platform
US20230230324A1 (en) Method, System, Equipment and Medium for Modifying the Layering Layer Information of Finite Element Model Unit
CN116051056A (en) Front-end project management method, front-end project management device, computer equipment and storage medium
CN115292028A (en) Configuration method and device of machine learning engineering, electronic equipment and storage medium
CN116643825A (en) Virtual desktop configuration method, device, equipment and storage medium
CN115826818A (en) Financial product online method and device, computer equipment and storage medium

Legal Events

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