Visual page processing method and device

Through the visual page processing method and the use of drag components to generate page configuration tools, it solves the problems of high cost and low efficiency of traditional web development, achieves efficient reuse of page components and improves development efficiency.

CN112241264BActive Publication Date: 2024-09-27EBAOTECH CORP
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN201910643679.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-07-17
Publication Date
2024-09-27
Estimated Expiration
2039-11-23

AI Technical Summary

Technical Problem

Traditional policy web development requires high software development costs and code volume, high technical requirements for developers, and low reuse of functional modules, resulting in low efficiency.

Method used

Provides a visual page processing method. By dragging the page tool components of the user interface, page assembly and configuration can be achieved, reducing the technical requirements of developers and improving the degree of component reuse. Specific methods include displaying page components in the user interface, receiving user drag and drop components, generating corresponding graphical elements on the page to be edited, and supporting component configuration and event settings.

Benefits of technology

The page configuration is visible to users, and non-professional technical personnel can complete page assembly and configuration, which reduces the technical requirements of developers, improves the efficiency of page generation and component reusability, and reduces the code development and testing process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112241264B
    Figure CN112241264B
Patent Text Reader

Abstract

The present invention provides a visual page configuration method, including: in a page editing state, displaying a user interface, displaying page components in a first area of ​​the user interface, and displaying a page to be edited in a second area of ​​the user interface; receiving a user dragging a first component in a page component area; in response to the first component being dragged to a predetermined position in the second area, generating a first graphical element corresponding to the first component at a predetermined position in the page to be edited, displaying the first graphical element on the page to be edited to generate a first editing page, determining a JSON file corresponding to the first editing page, and saving it to a database. The present invention can realize page editing and generation through a drag-and-drop assembly tool, without the need for code writing and testing operations, realizes visualization of page editing and generation, and reduces the technical requirements of page development for technicians.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computers, and more specifically, to a visualized page processing method and device. Background Art

[0002] The requirements for web page configuration are becoming more and more diverse, especially in the field of insurance policy processing. Different insurance policy products require corresponding web pages. Traditional insurance policy web pages require separate development projects for different insurance policy items, that is, different web pages with different configuration items in the page. This brings about problems such as high software development costs, high code volume, and high technical requirements for developers. Moreover, different development projects usually require different software development technicians, and for similar functional modules, the degree of code reuse is also small. In addition, traditional web page development can only realize page display after all functional modules of the web page are developed by different technicians. If the page display is not satisfactory, the code work that needs to be adjusted is high, resulting in low efficiency. Therefore, there is an urgent need for a page generation solution that is visible to users, has low requirements for developers, and has a high degree of functional module reuse. Summary of the invention

[0003] The present invention provides a visual page processing method, which can realize page assembly and configuration by dragging the page tool components of the user interface. The page configuration process is visible to the user, and non-professional technicians can realize page assembly and configuration, which reduces the technical requirements for developers; each component can be reused in different page configurations, and the degree of component reuse is high.

[0004] According to a first aspect of an embodiment of the present invention, a method for configuring a page of a dialog box is provided, the method comprising: displaying a tool component for page configuration in a first area of ​​a user interface, and displaying a page to be edited in a second area of ​​the user interface, wherein the tool component comprises a dialog box, and the page to be edited occupies the entire area of ​​the second area; receiving a user's drag of a first dialog box component in the dialog box component in the first area; when the first dialog box component is dragged to the second area, shrinking a first view in the second area where the page to be edited is located, and displaying a first graphical element corresponding to the first dialog box component in a second view below the first view in the second area.

[0005] In some embodiments of the present invention, the method further includes: receiving in the first area a user's dragging of a second dialog box in the dialog box component; and when the second dialog box is dragged to the second area, displaying a second graphical element corresponding to the second dialog box in a third view below the second view.

[0006] In some embodiments of the present invention, the method also includes: receiving the user's selection of a first graphical element in the second view, displaying the second view corresponding to the first graphical element as a focus view, configuring a trigger condition of the first graphical element on the focus view, and displaying the first view and the third view as background views of the second view.

[0007] In some embodiments of the present invention, the method further includes: the second view is displayed in the form of partially covering the third view and retaining a part of the text mark of the second graphical element corresponding to the third view.

[0008] In some embodiments of the present invention, the method further comprises: displaying the first graphical element in the second view and the second graphical element in the third view in different colors.

[0009] In some embodiments of the present invention, the tool component further includes: one or more of a container component, an input box component, a button component, a data component, and a menu component, and the tool component is configured with corresponding models and events.

[0010] In some embodiments of the present invention, the method further includes: receiving in the first area an operation by the user to drag a first component among the container component, input box component, button component, data component and menu component in the tool component; generating a third graphical element corresponding to the first component in the page to be edited in the second area; receiving a selection by the user of the third graphical element, and displaying configuration items corresponding to the third graphical element, wherein the configuration items include models and events.

[0011] In some embodiments of the present invention, configuring the trigger condition of the first graphical element on the focus view includes: setting the trigger condition of the first graphical element to be associated with a model or event of the third graphical element.

[0012] According to a second aspect of the embodiments of the present invention, a computer device is provided, comprising a memory and a processor, wherein the memory is configured to store a computer program; and the processor is configured to execute the computer program to implement the above method.

[0013] According to a third aspect of the embodiments of the present invention, a computer-readable storage medium is provided, on which computer instructions are stored. When the computer instructions are executed by a processor, the above method is implemented. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 A schematic flow chart of a page configuration method according to an embodiment of the present invention is shown.

[0015] Figure 2 A tool display screenshot of a user interface according to an embodiment of the present invention is shown.

[0016] Figure 3 A tool display screenshot of a user interface according to an embodiment of the present invention is shown.

[0017] Figure 4 A screenshot of a configuration page of a user interface according to an embodiment of the present invention is shown.

[0018] Figure 5 A schematic diagram of the process of configuring page components according to an embodiment of the present invention is shown.

[0019] Figure 6 A page screenshot showing a page component configuration according to an embodiment of the present invention.

[0020] Figure 7 A page screenshot showing a page component configuration according to an embodiment of the present invention.

[0021] Figure 8 A page screenshot showing a page component configuration according to an embodiment of the present invention.

[0022] Fig. 9 A page screenshot showing a page component configuration according to an embodiment of the present invention.

[0023] Fig.10 A page screenshot showing a page component configuration according to an embodiment of the present invention.

[0024] Fig.11 A page screenshot showing a page component configuration according to an embodiment of the present invention.

[0025] Fig.12 A schematic flow chart of a method for configuring a dialog box according to an embodiment of the present invention is shown.

[0026] Fig.13 A page screenshot showing a dialog component configuration according to an embodiment of the present invention.

[0027] Fig.14 A schematic structural diagram of a computer device according to an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0028] The present invention will now be described in detail with reference to exemplary embodiments, some of which are illustrated in the accompanying drawings. The following description is made with reference to the accompanying drawings, and unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The schemes described in the following exemplary embodiments do not represent all schemes of the present invention. On the contrary, these schemes are only examples of systems and methods of various aspects of the present invention involved in the appended claims.

[0029] See also Figure 1 , shows a flow chart of a visual page configuration method according to an embodiment of the present invention. The method comprises: step S110, step S120 and step S130. The above steps will be described below with reference to specific examples.

[0030] S110, in the page editing state, displaying a user interface, wherein the first area of ​​the user interface displays page components, and the second area of ​​the user interface displays the page to be edited, wherein the page components include one or more of the following components: container components, input box components, button components, and data components.

[0031] In an embodiment of the present invention, the configuration of the page is visual. The configuration of the page can be encapsulated in software, for example, Figure 2 The UI studio shown in the figure can be run on a personal computer or mobile device. In the page editing state, the following is displayed: Figure 2 and Figure 3 The user interface shown in Figure 2 In the user interface shown, the first area, i.e., the area on the left side of the user interface, displays various configuration components of the page, for example, may include the following types or categories of tool components: container components, input box components, button components, and data components. In some other embodiments, the components may also include dialog components. In some specific embodiments, the page to be edited is a policy product page.

[0032] Among the components displayed in the first area, the input box component, button component and data component can be considered as the basic components in the page configuration component. These basic components cannot contain other components. Unlike basic components such as input boxes, other container components can be configured in container components. For example, input box components and data components or button components can be set in container components. Container components can include different types, such as Figure 2As shown, component containers may include update panel, cell, smart, card, card group, tab, and buttonbox. Among them, the updatepancel container component can be configured with basic components required for refresh. The cell container component can be configured with components related to table input. The smart container component can be configured with parameters to intelligently layout multiple input boxes. For example, by passing parameters of 2 rows and 3 columns to the smart container, the original layout of 6 input boxes with 1 row and 1 input box can be converted to a layout of 2 rows of input boxes and 3 input boxes in each row. The card and card group container parameters can be configured with basic components such as input box components and data components. The tab container component is a basic component that can be used for page label configuration. The buttonbox container component can be configured with button components, etc.

[0033] Input box components may include UI search, search CT, English characters, Arabic numerals, asterisks, email addresses, decimal points, dates, percentages, clocks, attribute selection boxes (including circles with dots, check marks in rectangular boxes, and half of rectangular boxes with black), text input areas, and labels. Button components may include components in the form of buttons and button components in the form of links. Data components may include: Arabic numerals, asterisks, email addresses, decimal points, dates, percentages, clocks, selections, text input areas, and labels. Data components may also include: Figure 3 The data is shown in tabular form.

[0034] S120: receiving, in the first area, a user dragging a first component in the page component.

[0035] In an embodiment of the present invention, the page components displayed in the first area of ​​the user interface are selectable. For example, one type of a container component, an input box component, a button component, and a data component in the tool component can be selected, and then a specific tool component can be selected in the component of this type. In some specific embodiments, the selection and dragging can be performed by clicking and dragging with a mouse. In other specific embodiments, for a touch screen device, the selection and dragging can be performed by clicking and dragging with the user's hand.

[0036] The selected tool component can be dragged to the second area of ​​the user interface, or to other locations in the first area, for example, to other locations of the tool component. The multiple tool components in the input box component area can be dragged to change their placement according to the usage habits or usage frequency of each user.

[0037] S130, in response to the first component being dragged to a predetermined position in the second area, generating a first graphical element corresponding to the first component at the predetermined position in the page to be edited, displaying the first graphical element on the page to be edited to generate a first editing page, determining the JSON file corresponding to the first editing page, and saving it to a database.

[0038] In an embodiment of the present invention, in response to the first component being dragged to a predetermined position in the second area, a first graphical element corresponding to the first component is generated at the predetermined position in the page to be edited, and the first graphical element can be considered as an instance of the first component. The functions of the first component and the options configured therefor have corresponding functions and configuration options for the first graphical element embedded in the page to be edited.

[0039] The first graphical element is displayed on the page to be edited, so that the page to be edited is updated, a first editing page is generated, and then a JSON file corresponding to the first editing page is determined and saved to the database. For example, an Arabic numeral input component is dragged to the page to be edited in the second area, and after being dragged to a predetermined position, an input item corresponding to the Arabic numeral is generated at the predetermined position, that is, the Arabic numeral input item is displayed on the page to be edited, and the updated page to be edited is the first editing page, and a JSON file corresponding to the first editing page is generated and saved to the database.

[0040] In some specific implementations, the method provided by the implementation of the present invention also includes: receiving a user drag of a second component in the page component; in response to the second component being dragged to the second area, generating a second graphical element corresponding to the second component at the end position of the dragging of the second component in the first editing page, displaying the second graphical element in the first editing page to form a second editing page, configuring the element relationship between the first graphical element and the second graphical element in the second editing page, determining a JSON file corresponding to the second editing page, and saving the JSON file to the database with a predetermined name. It should be noted that the second component can be any component in the page component, can be a tool component that is the same as the first component, or can be a tool component that is different from the first component, and the implementation of the present invention does not limit this.

[0041] According to the implementation mode of the present invention, in the editing state of the page, various configuration components of the page are displayed in real time. In the component configuration of the page, what the user sees is what he gets, and the page configuration can be realized without the need for code development and testing processes, thereby improving the efficiency of page development and reducing the technical requirements for developers in page configuration. In particular, in scenarios where a large number of page types need to be developed, the efficiency of page development can be greatly improved. The page components displayed in the tool area are reusable, thereby improving the reuse efficiency of components in the page configuration, thereby improving the development efficiency of the page configuration.

[0042] In some embodiments of the present invention, configuring the element relationship between the first graphical element and the second graphical element in the second editing page includes: configuring the first graphical element and the second graphical element in the second editing page as a parallel node relationship. Furthermore, the display positions of the first graphical element and the second graphical element on the page may also be determined based on the element relationship between the first graphical element and the second graphical element. For example, when the first graphical element is an input box and the second graphical element is also an input box, the first graphical element and the second graphical element may be configured as a parallel node relationship, that is, the first graphical element and the second graphical element are parallel nodes in the JSON file corresponding to the second editing page, and accordingly, on the second editing page, the first graphical element and the second graphical element are displayed as two parallel input boxes. In a specific embodiment, it may be Figure 4 The parallel input boxes shown.

[0043] In some other embodiments of the present invention, configuring the element relationship between the first graphical element and the second graphical element in the second editing page includes: configuring the first graphical element and the second graphical element in the second editing page as a parent node and child node relationship. After determining the element relationship between the first graphical element and the second graphical element, the display positions of the two on the page and the relative position relationship between the two can also be determined based on the element relationship between the two. For example, in the case where the first graphical element corresponds to a Card container component (the container component may include multiple basic components, for example, multiple input boxes) and the second graphical element corresponds to an input box component, if the input box component needs to be used as a component in the card container component, that is, the first graphical component and the second graphical component can be configured as a parent node and child node relationship, so that the second graphical element is presented in the area circled by the first graphical element.

[0044] In some embodiments of the present invention, the first component in step S110 may be an input box, the type of which includes one or more of the following: characters, numbers, email addresses, dates, clocks, and percentages, and the second component includes a data component that matches the type of the first component. For example, if the type of the input box of the first component is a date component, then the corresponding data component is a date type component.

[0045] In some embodiments of the present invention, in addition to the above-mentioned page editing state, a page operation method may also be included. Specifically, it also includes: reading the JSON file corresponding to the second editing page from the database, running the JSON file to generate a graphical user interface of the second editing page, receiving the second user's input request for the first graphical element, displaying multiple candidate data provided by the second graphical element on the second editing page, receiving the second user's selection of the first candidate data among the multiple candidate data, and displaying the first candidate data in the designated area of ​​the first graphical element. It should be noted that the second user can be a user different from the first user, or a user the same as the first user. For example, by using the page assembly method provided by the present invention, ordinary insurance agents can freely combine tool components within the preset authority to generate corresponding insurance products. For another example, the first user can be a user who assembles the page, and the second user can be another user who uses the assembled page. In the case where the configured page is an insurance product, the first user can be a user who has the authority to configure the insurance product, and the second user can be an insurance agent of the configured insurance product, etc.

[0046] The embodiment of the present invention also provides a method for configuring a page component. Figure 5 FIG. 2 is a flow chart of a method for configuring a page component according to an embodiment of the present invention. The method may include: steps S510 to S560, and the above steps are described below in conjunction with specific embodiments.

[0047] S510, displaying a user interface, wherein a first area of ​​the user interface displays page components, and a second area of ​​the user interface displays a page to be edited.

[0048] In an embodiment of the present invention, the user interface is as follows Figure 2 and Figure 3 In the user interface shown, the first area on the left displays the page component tool, and the second area on the right displays the page to be edited. The first component can be any component of the page components displayed in the first area. In some specific embodiments, the page to be edited is a policy product page. For the description of the first area and the second area of ​​the user page, reference can be made to the relevant description of S110 above.

[0049] S520: receiving, in the first area, a user dragging a first component in the page component.

[0050] In the embodiment of the present invention, the page component displayed in the first area can receive the dragging of the user, for example, the dragging of the mouse, etc. For the description of step S520, reference can be made to the description of step S120 above.

[0051] S530: In response to the first component being dragged to a predetermined position in the second area, generating a first graphical element corresponding to the first component at the predetermined position in the page to be edited.

[0052] In an embodiment of the present invention, after the first component is dragged to a predetermined position in the second area, a first graphical element corresponding to the first component is generated at the predetermined position, and accordingly, the JSON file corresponding to the corresponding editing page is updated, and the layout information of the first graphical element in the JSON file is updated.

[0053] S540: Receive a configuration request for the first graphical element.

[0054] In an embodiment of the present invention, the first graphical element is displayed on the editing page of the second area, and the first graphical element is editable. In some embodiments, the user can click the first graphical element with a mouse as a configuration request for the graphical element. In other embodiments, other methods are used to generate a configuration request for the first graphical element, for example, double-clicking or other selection methods.

[0055] S550, displaying the configuration page of the first graphical element on top of the first editing page of the user interface, wherein the configuration page is located in a first view and is in an editable state, and the first editing page is located in a second view below the first view and is in a non-editable state.

[0056] In an embodiment of the present invention, after receiving a configuration request from a user for a graphical element of an edit page, a configuration page of the graphical element is displayed on top of the edit page, and the configuration page may include configuration items, and the configuration page covers a portion of the edit page. The configuration items may include: one or more of attribute configuration, field configuration, model configuration, and event configuration. In some embodiments, the configuration items may include attribute configuration, field configuration, and model configuration, for example, Figures 6 to 10 In some other embodiments, the configuration items may include attribute configuration, model configuration, and event configuration, such as Fig.11 shown.

[0057] like Figure 6 shown. Figure 6In the user interface shown, the configuration page of the graphical element with the identifier SELECT_CODE_151392603676 is displayed. The configuration items include attribute configuration, field configuration and event configuration. It displays the attribute configuration page of the element component, mainly displaying its basic attributes, for example, it may include code, default value, disabled, input class, input / output, isinitchange, key, label, required, style class, value and visible. It should be noted that for a graphical element corresponding to a tool component, its basic attributes have default attributes, that is, there is no need for users of the configuration page to manually configure these attributes. In specific application scenarios, some of these basic attributes can be configured accordingly as needed.

[0058] In some other embodiments, in addition to showing Figure 6 After configuring the basic properties shown, you can also display Figure 7 Basic and advanced properties are shown. Figure 7 The advanced properties shown may include: Customization Field, AutoChoose First, Auto Complete, Codetable, Colspan, Condition Map, CustomizationObject relation, Event target code, Format, Help text, Ingorepagereadonly, layout, max length message, max length, min length message, min length, placeholder, process option, mask, required message, show blank option, show valuetooltip, style, validation group, value to string, width, width allocation. These advanced properties have default properties, and the properties can be configured according to specific application requirements. These property configurations can also be associated with event configurations. For example, when a component event is configured as a refresh event, the refresh event may involve the refresh of the associated properties.

[0059] exist Figure 6 and Figure 7In the example, the first view where the configuration page is located is displayed on the second view where the editing page is located. The configuration page covers part of the editing page. When the focus frame is located in the first view, the items on the configuration page are in an editable state, while the editing page is not in a node frame and is in an uneditable state. The configuration page in an editable state can receive editing operations from the user.

[0060] In some implementations, selecting a field configuration may display Figure 8 The interface shown in the figure. Below the field configuration, there are many options, from which you can configure the fields of the graphical element. Figure 8 In the example shown, a Category Type field is selected for the graphical element. After the field attributes are determined, the JSON data file corresponding to the edit page will be updated accordingly.

[0061] In some embodiments, selecting an event configuration may display Fig. 9 and Fig.10 The configuration page is shown. Fig. 9 In the page shown, the display area on the right shows the configuration options of the event trigger point and the event trigger options. Clicking the button circled by the event box will show the source code corresponding to the event in the area on the right. Moreover, the source code shown in the area on the right is editable, that is, the user can modify, save and run the source code to change the related operations and results of the event. In some embodiments, the event configuration may include the click, double-click, left-click and right-click events of the component, and may also include the configuration of the corresponding events before and after rendering. In some embodiments, the configuration of the component may be as follows: Fig. 9 The event shown in the code on the right. In some other embodiments, the component can also be set as follows Fig.10 That is, after configuring an event for the graphical element corresponding to the component, after receiving the operation corresponding to the trigger point, the operation corresponding to the event is executed. In some embodiments, the component can also be configured Fig. 9 and Fig.10 After receiving the trigger operation, the action events are executed in sequence. Fig. 9 and Fig.10 Action shown.

[0062] S560, receiving a user's selection of a configuration item for the first graphical element displayed in the configuration page, displaying candidate items of the selected configuration item in a predetermined area of ​​the configuration page based on the selection of the configuration item, receiving the user's input of the candidate items, and updating the JSON data file regarding the first graphical element in the first editing page based on the input.

[0063] In the embodiment of the present invention, the configuration items displayed on the configuration page are editable. During the configuration process, the configuration items can be selected, for example, Figure 6 After the property configuration shown is selected, the candidate properties are displayed in a part of the configuration page, for example, Figure 6 The basic attributes shown are candidates or Figure 7 The user can enter corresponding configuration information for these candidate items. Then, according to the user's input for the candidate items, the JSON data file about the first graphical element in the first editing page is updated.

[0064] In some embodiments, for example, Figure 8 In the example shown, a CategoryType type field is selected for the graphical element. After the field attributes are determined, the JSON data file corresponding to the edit page will be updated accordingly.

[0065] In some embodiments, Fig. 9 and Fig.10 In the example shown, the candidate items of the configuration items displayed in the configuration page, such as trigger points and defined events, can be input and configured. After completing the input configuration, the JSON data file corresponding to the editing page will be updated accordingly.

[0066] In some implementations, when the configuration item is an event configuration, displaying the candidate items of the selected configuration item in a predetermined area of ​​the configuration page includes: displaying the trigger options and event actions of the event configuration in a predetermined area of ​​the configuration page, the trigger options including a preset trigger point, and the event actions including a preset action selection. Fig. 9 In the interface shown, the trigger point is onchange, and the event is defined as custom action.

[0067] In some embodiments, the method of the present invention further includes: displaying the editable source code corresponding to the event action in the predetermined area, receiving the user's editing operation on the editable source code, updating the editable source code, and saving the updated editable source code to the event action. Fig. 9 As shown, by clicking the box button that defines an event, you can view the source code of the event, which is displayed in the rectangular box on the right. The source code on the right is editable, and the user can manually modify the code therein and save the modified code. In the event configuration method provided by the embodiment of the present invention, the user can not only select the preset code, but also flexibly modify the event action code, which improves the flexibility of event action configuration.

[0068] In an embodiment of the present invention, the first editing page may include a second graphical element in addition to the first graphical element. The event configuration of the first graphical element may also involve the second graphical element associated with the first graphical element. The updated source code of the first graphical element is associated with the second graphical element, and the method of the present invention may further include: updating the configuration item of the second graphical element in the first editing page according to the updated editable source code.

[0069] In some embodiments, the container component may also include a model configuration, such as Fig.11 As shown. As mentioned above, multiple basic components can be set in the container component, and these basic components can include attribute configuration items, field configuration items, and event configuration items. The model configuration items of the graphical elements corresponding to the container component are the field configuration items of the basic component items in the container component. For example, if the container card is an insurance policy, and the field configuration of the input box is the policy number, then the model configuration of the container card is the policy number.

[0070] The embodiment of the present invention also provides a method for configuring a dialog box in a page, such as Fig.12 As shown, a flow chart of a method for configuring a dialog box in a page is shown. The method may include: step S1210, step S1220 and step S1230, and the above steps are described below in conjunction with a specific embodiment.

[0071] S1210, displaying a tool component for page configuration in a first area of ​​the user interface, and displaying a page to be edited in a second area of ​​the user interface, wherein the tool component includes a dialog box, and the page to be edited occupies the entire area of ​​the second area.

[0072] In an embodiment of the present invention, the first area of ​​the user interface displays the tool components of the page configuration, and the second area displays the page to be edited, such as Figure 2 and Figure 3 As shown. Tool components may include dialog boxes. Figure 2 and Figure 3 As shown, the page to be edited occupies the entire area of ​​the second area, that is, the page to be edited is tiled and fully covers the second area.

[0073] S1220: Receive, in the first area, a user's dragging of a first dialog component in the dialog components.

[0074] In an embodiment of the present invention, the dialog box displayed in the first area can be selected and dragged, for example, by clicking and dragging with a mouse. For the description of step 1220, reference can be made to the relevant descriptions of S520 and S120 above.

[0075] S1230, when the first dialog component is dragged to the second area, the first view in the second area where the page to be edited is located is reduced, and the first graphical element corresponding to the first dialog component is displayed in a second view below the first view in the second area.

[0076] In an embodiment of the present invention, the dragged dialog component is invisible on the page to be edited, that is, the dialog box dragged to the page to be edited will not be displayed on the page to be edited, but will appear on the page when the page to be edited is run and a predetermined trigger condition is met. During the configuration process of the dialog box, after the dragged dialog box is dragged to the second area, it is not presented on the view of the page to be edited like tool components such as input box components and data components, but the first view where the page to be edited is located in the second area is reduced, and the first graphical element corresponding to the first dialog component is displayed in the second view below the first view in the second area. For example, Fig.13 The DIALOG dialog box is shown in the view below the property insurance premium calculation page. The page view and the dialog box are displayed overlapping in the second area and arranged in sequence. The view in front partially covers the view behind and partially displays the content of the dialog box.

[0077] In some embodiments of the present invention, the method further includes: receiving, in the first area, a user dragging a second dialog box in the dialog box component; when the second dialog box is dragged to the second area, displaying a second graphical element corresponding to the second dialog box in a third view below the second view. Fig.13 As shown, after dragging the first dialog box to the second area, the graphical element of the first dialog box is displayed below the page, and after dragging the second dialog box to the second area, the second graphical element corresponding to the second dialog box is displayed below the graphical element of the first dialog box. It should be noted that in addition to dragging the second dialog box to the second area, you can also drag the third dialog box to the second area. Fig.13 In the figure, three dialog interfaces are displayed below the page. The first view where the page to be edited is located, the second view where the first graphical element is located, and the third view where the second graphical element is located can be switched. That is to say, the first view, the second view, or the third view can be selected through the input device, and one of the first view, the second view, or the third view can be used as the focus for editing. In other words, the configuration of dialog boxes and pages is achieved by switching views. Through this visual way of switching views, dialog boxes that are not directly displayed on the page can be configured, and invisible elements of the page can still be intuitively configured, so that users can see what they get, which improves the user's configuration experience.

[0078] In some embodiments of the present invention, the method further includes: receiving a selection of the first graphical element in the second view by the user, displaying the second view corresponding to the first graphical element as a focus view, configuring the triggering condition of the first graphical element on the focus view, and displaying the first view and the third view as background views of the second view. As described above, the second view where the first graphical element in the second area is located and the first view where the page is located can be switched, and the switched view serves as the focus view, and the other view serves as the background view. The triggering condition of the graphical element corresponding to the dialog box can be configured on the focus view.

[0079] In some embodiments, the second view corresponding to the first graphical element is displayed in the form of partially covering the third view corresponding to the second graphical element, and retaining a portion of the text mark of the second graphical element corresponding to the third view. Fig.13 As shown, the DIALOG text in the second graphical element is retained.

[0080] In some embodiments, when multiple dialog boxes are configured at the same time, there are multiple dialog box graphical elements in the second area, and the first graphical element in the second view and the second graphical element in the third view are displayed in different colors. Fig.13 As shown, the color of the rectangular bar in the upper left corner of the dialog graphical element under the page is different. In other embodiments, other methods of color differentiation can also be adopted, for example, the entire dialog edge is differentiated and displayed with different colors.

[0081] As shown above, the tool components displayed in the first area include, in addition to the dialog component, one or more of: container components, input box components, button components and data components. The tool components are configured with corresponding models and events, and can also be configured with properties and fields, etc.

[0082] As described above, the embodiments of the present invention not only involve the configuration of the dialog component, but also involve the configuration of other components. The method of the present invention further includes: receiving the user's dragging of the first component among the container component, input box component, button component and data component in the tool component in the first area; generating a third graphical element corresponding to the first component in the page to be edited in the second area; receiving the user's selection of the third graphical element, and displaying the configuration items corresponding to the third graphical element, wherein the configuration items include models and events.

[0083] In some embodiments, configuring the trigger condition of the first graphical element on the focus view includes: setting the trigger condition of the first graphical element to be associated with the model or event of the third graphical element. That is, the trigger condition of the dialog graphical element can be set to be associated with the model or event of other tool components. For example, it can be set that when the model of the input box is a predetermined model, a dialog box pops up to prompt the user. For another example, when the event of a certain tool component is a predetermined event, a dialog box pops up to prompt the user.

[0084] In some embodiments, Fig.13 The three dialog elements shown may be three parallel dialog boxes on the same page. Fig.13 The three dialog elements shown may be three progressive dialog boxes. For example, the second dialog box pops up when the selection in the first dialog box is a predetermined selection, and the third dialog box pops up when the selection in the second dialog box is a predetermined selection.

[0085] The embodiment of the present invention also provides a computer device. Fig.14 As shown, the computer device 1400 may include a memory 1401 and a processor 1402, wherein the memory 1401 stores computer programs, and the processor 1402 is configured to execute these computer programs to implement the above method. The computer device may be a personal computer, a laptop or other portable computer device.

[0086] The embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored, and the computer program implements the above method when executed.

[0087] Through the description of the above implementation methods, those skilled in the art can clearly understand that the present invention can be implemented by combining software with a hardware platform. Based on this understanding, all or part of the contribution of the technical solution of the present invention to the background technology can be embodied in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a disk, an optical disk, etc., including several instructions for enabling a computer device (which can be a personal computer, a server, a smart phone or a network device, etc.) to execute the methods described in various embodiments of the present invention or certain parts of the embodiments.

[0088] The terms and expressions used in the present specification are for illustration only and are not intended to be limiting. It should be understood by those skilled in the art that various changes may be made to the details of the above embodiments without departing from the basic principles of the disclosed embodiments. Therefore, the scope of the present invention is determined solely by the claims, in which, unless otherwise indicated, all terms should be understood in the broadest reasonable sense.

Claims

1. A page configuration method for a dialog box, It is characterized in that The method comprises: Displaying a tool component for page configuration in a first area of ​​the user interface, and displaying a page to be edited in a second area of ​​the user interface, wherein the tool component includes a dialog box, and the page to be edited occupies the entire area of ​​the second area; receiving, in the first area, a user dragging a first dialog component in the dialog component; When the first dialog component is dragged to the second area, the first view where the page to be edited is located in the second area is reduced, and the first graphical element corresponding to the first dialog component is displayed in the second view below the first view in the second area, and the first view is displayed in the form of partially covering the second view, retaining part of the text mark of the first graphical element corresponding to the second view, and the partially covered second view is not editable, wherein the first view and the second view are switchable, and the first view or the second view is selected through an input device, and one of the first view or the second view is edited as a focus view, and the configuration of the dialog box and the page is realized by switching the view; Receiving, in the first area, a user dragging a second dialog box in the dialog box component; When the second dialog box is dragged to the second area, a second graphical element corresponding to the second dialog box is displayed in a third view below the second view; Receive the user's selection of the first graphical element in the second view, display the second view corresponding to the first graphical element as a focus view, configure the trigger condition of the first graphical element on the focus view, and display the first view and the third view as background views of the second view.

2. The method according to claim 1, It is characterized in that The method further comprises: The second view is displayed in a form of partially covering the third view and retaining a part of the text mark of the second graphical element corresponding to the third view.

3. The method according to claim 1, It is characterized in that The method further comprises: The first graphical element in the second view and the second graphical element in the third view are displayed in different colors.

4. The method according to claim 1, It is characterized in that The tool component also includes: one or more of a container component, an input box component, a button component, a data component and a menu component, and the tool component is configured with corresponding models and events.

5. The method according to claim 4, It is characterized in that The method further comprises: Receiving, in the first area, a dragging operation of the user on a first component among a container component, an input box component, a button component, a data component, and a menu component in the tool component; Generating a third graphical element corresponding to the first component in the page to be edited in the second area; A selection of the third graphical element by the user is received, and a configuration item corresponding to the third graphical element is displayed, where the configuration item includes a model and an event.

6. The method according to claim 5, It is characterized in that The configuring the triggering condition of the first graphical element on the focus view includes: The trigger condition of the first graphical element is set to be associated with the model or event of the third graphical element.

7. A computer device comprising a memory and a processor, in, a memory configured to store a computer program; A processor configured to execute the computer program to implement the method according to any one of claims 1 to 6.

8. A computer-readable storage medium having computer instructions stored thereon, wherein the computer instructions implement the method according to any one of claims 1 to 6 when executed by a processor.

Citation Information

Patent Citations

  • Application menu user interface

    CN101821707A

  • Visualized cross-platform mobile application development and generation system

    CN104636139A

  • Visual component extension method, visual component extension device, electronic equipment and storage medium

    CN107577515A

  • Interface generation method and device, storage medium and computer device

    CN107783762A

  • Method and device for generating display interface

    CN107992304A