Page processing method and apparatus, and device, medium and product
Through the visual page processing method and device, the definition, assignment and use of variables are realized, the problem of variable management in the form of complex codes in the existing technology is solved, the technical complexity is reduced and the collaboration efficiency is improved.
Patent Information
- Application Number
- PCT/CN2023/129206
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-01-18
- Filing Date
- 2023-11-02
- Publication Date
- 2024-09-06
AI Technical Summary
In the existing technology, program developers and other users need to display the entire life cycle of variables in the form of complex codes, from definition to use, which increases the technical complexity.
Provide a page processing method and device that visually displays the application editing page and responds to variable creation and action addition operations. The action event configuration page contains events for variable assignment, completes variable definition and assignment, and reduces technical complexity.
It realizes visual management from variable definition to use, reduces technical complexity, improves collaboration efficiency and user experience of the visual platform for variable creation.
Smart Images

Figure CN2023129206_06092024_PF_FP
Abstract
Description
Page processing method, device, equipment, medium and product
[0001] Related applications
[0002] This application claims priority to Chinese patent application number 2023101239004, filed on January 18, 2023, entitled “A page processing method, device, equipment, medium and product,” the entire text of which is incorporated herein by reference. Technical Field
[0003] The present application relates to the field of computer technology, and in particular to a page processing method, apparatus, device, medium, and product. Background Art
[0004] Currently, program developers can define and assign values to variables in a complex code format using a specific programming language (eg, Java) within an application development framework, and then present the compiled application to other users.
[0005] During practice, the inventors discovered that other users (for example, people other than program developers) also need to call the variable in the form of complex code (for example, Java language) under the specific application development framework to use the variable. This means that both program developers and users other than program developers need to display the entire life cycle of the variable (i.e., from variable definition, variable assignment, and variable use) in the form of complex code, thereby increasing the technical complexity from variable definition to variable use.
[0006] Summary of the Invention
[0007] Embodiments of the present application provide a page processing method, apparatus, device, medium, and product.
[0008] In one aspect, an embodiment of the present application provides a page processing method, which is executed by a computer device, and includes:
[0009] Displaying an application editing page, and in response to a triggering operation on a variable creation component in the application editing page, displaying a variable creation page corresponding to the variable type indicated by the variable creation component;
[0010] In response to a variable definition operation triggered on a variable creation page, a target variable corresponding to the variable type is displayed on the variable creation page;
[0011] In response to a triggering operation on an action adding component in an application editing page, an action event configuration page corresponding to the action adding component is displayed, wherein the action event configuration page includes at least one action event for assigning a variable value to a target variable;
[0012] In response to a triggering operation on a target action event among the at least one action event, displaying action configuration information corresponding to the target variable on an action configuration page corresponding to the target action event;
[0013] When the variable assignment to the target variable is completed based on the action configuration information, the action configuration page is switched to the application editing page;
[0014] In response to a triggering operation on the running component in the application editing page, the target variable after the variable assignment is rendered and displayed on the application editing page.
[0015] In one aspect, an embodiment of the present application provides a page processing device, the device comprising:
[0016] a page display unit, configured to display an application editing page, and in response to a triggering operation on a variable creation component in the application editing page, display a variable creation page corresponding to the variable type indicated by the variable creation component;
[0017] a variable display unit, configured to display a target variable corresponding to a variable type on the variable creation page in response to a variable definition operation triggered on the variable creation page;
[0018] The action configuration unit is further configured to, in response to a triggering operation on the action adding component in the application editing page, display an action event configuration page corresponding to the action adding component, wherein the action event configuration page includes at least one action event for assigning a variable to a target variable;
[0019] The action configuration unit is further configured to, in response to a triggering operation on a target action event in at least one action event, display action configuration information corresponding to the target variable on an action configuration page corresponding to the target action event;
[0020] A switching display unit, configured to switch the action configuration page to the application editing page when the variable assignment to the target variable is completed based on the action configuration information;
[0021] The rendering and displaying unit is configured to render and display the target variable after the variable assignment on the application editing page in response to a triggering operation on the running component in the application editing page.
[0022] On one hand, an embodiment of the present application provides a computer-readable storage medium, in which computer-readable instructions are stored. The computer-readable instructions are suitable for being loaded and executed by a processor, so that a computer device with a processor executes the method provided in the above aspect of the embodiment of the present application.
[0023] According to one aspect of the present application, a computer program product or computer program is provided, the computer program product or computer program including computer-readable instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer-readable instructions from the computer-readable storage medium and executes the computer-readable instructions, causing the computer device to perform the method provided in the above aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the conventional technology, the following briefly introduces the drawings required for use in the embodiments or the conventional technology descriptions. Obviously, the drawings described below are merely embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the disclosed drawings without any creative work.
[0025] FIG1 is a flow chart of a page processing solution provided in an embodiment of the present application;
[0026] FIG2 is a schematic diagram of the architecture of a page processing system provided in an embodiment of the present application;
[0027] FIG3 is a data flow diagram of a page processing method according to an embodiment of the present application;
[0028] FIG4 is a flow chart of a page processing method provided in an embodiment of the present application;
[0029] FIG5 is a schematic diagram of a page editing page provided in an embodiment of the present application;
[0030] FIG6 is a schematic diagram of a display variable creation component provided in an embodiment of the present application;
[0031] FIG7 is a schematic diagram of another display variable creation component provided in an embodiment of the present application;
[0032] FIG8 is a schematic diagram of another display variable creation component provided in an embodiment of the present application;
[0033] FIG9 is a schematic diagram of another display variable creation component provided in an embodiment of the present application;
[0034] FIG10 is a schematic diagram of a display variable creation page provided in an embodiment of the present application;
[0035] FIG11 is a schematic diagram of displaying a target variable on a variable creation page according to an embodiment of the present application;
[0036] FIG12 is a schematic diagram showing a global variable type provided by an embodiment of the present application;
[0037] FIG13 is a schematic diagram of inputting variable identification information provided by an embodiment of the present application;
[0038] FIG14 is a schematic diagram of determining a data type provided by an embodiment of the present application;
[0039] FIG15 is a schematic diagram showing a determined data type provided by an embodiment of the present application;
[0040] FIG16 is a schematic diagram of a target variable structure showing a target variable provided by an embodiment of the present application;
[0041] FIG17 is a schematic diagram of a target variable structure for determining a target variable provided by an embodiment of the present application;
[0042] FIG18 is a schematic diagram showing one or more variable structures provided by an embodiment of the present application;
[0043] FIG19 is a schematic diagram showing a target variable to be modified provided in an embodiment of the present application;
[0044] FIG20 is a schematic diagram of modifying a target variable provided in an embodiment of the present application;
[0045] FIG21 is a schematic diagram of an entry action event configuration page provided in an embodiment of the present application;
[0046] FIG22 is a schematic diagram of a method for assigning a variable value by calling an interface event provided in an embodiment of the present application;
[0047] FIG23 is a schematic diagram of action configuration information corresponding to a target variable provided in an embodiment of the present application;
[0048] FIG24 is a schematic diagram of a variable assignment for a form submission event provided in an embodiment of the present application;
[0049] FIG25 is a schematic diagram of a selection form target provided in an embodiment of the present application;
[0050] FIG26 is a schematic diagram of selecting a target variable for variable assignment according to an embodiment of the present application;
[0051] FIG27 is a schematic diagram of a variable assignment event for performing variable assignment according to an embodiment of the present application;
[0052] FIG28 is a schematic diagram of selecting a target variable for variable assignment according to an embodiment of the present application;
[0053] FIG29 is a schematic diagram of another method for selecting a target variable for variable assignment provided in an embodiment of the present application;
[0054] FIG30 is a schematic diagram of an embodiment of the present application providing an entry expression setting page;
[0055] FIG31 is a schematic diagram of a selection parameter provided in an embodiment of the present application;
[0056] FIG32 is a schematic diagram of displaying selected parameters on an action configuration page according to an embodiment of the present application;
[0057] FIG33 is a flow chart of a page processing method provided in an embodiment of the present application;
[0058] FIG34 is a schematic diagram of a page for creating an application provided in an embodiment of the present application;
[0059] FIG35 is a schematic diagram of page components included in an application page provided in an embodiment of the present application;
[0060] FIG36 is a schematic diagram showing variable usage options corresponding to a target page component provided by an embodiment of the present application;
[0061] FIG37 is a schematic diagram of entering a variable usage page provided in an embodiment of the present application;
[0062] FIG38 is a schematic diagram of an application page for triggering the running of a running component provided in an embodiment of the present application;
[0063] FIG39 is a flow chart of a page processing method provided in an embodiment of the present application;
[0064] FIG40 is a schematic diagram of an input parameter setting option corresponding to a display target page component provided by an embodiment of the present application;
[0065] FIG41 is a schematic diagram of entering an input parameter setting page provided in an embodiment of the present application;
[0066] FIG42 is a schematic diagram of setting input parameters provided by an embodiment of the present application;
[0067] FIG43 is a schematic diagram showing variables to be used as input parameters, provided in an embodiment of the present application;
[0068] FIG44 is a schematic diagram of the structure of a page processing device provided in an embodiment of the present application;
[0069] Figure 45 is a structural diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0070] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0071] The following describes the relevant technical terms involved in the embodiments of this application.
[0072] 1. Application Orchestration
[0073] Application orchestration defines data and application services, enabling rapid creation and deployment of applications. Application orchestration can encompass two states: design state and operational state. The design state can be understood as a visual simulation of traditional coding. Any user (e.g., operations personnel, application designers, etc.) can visually create an application page for an application in the design state. The design state allows you to design page components for a page, set interactive behaviors for page components (e.g., buttons, options, tables, etc.) on an application page (e.g., clicking a view button on a page will jump to the view page; in this case, jumping to the view page is an interactive behavior), declare variables, assign values to declared variables to store corresponding data, bind variables to be used by the application page, and so on.
[0074] The running state triggers components to generate the final running code for the entire application page, and then runs the code to display the entire application page. When the application page is in the running state, it can respond to interactive behaviors on the application page, assign values to variables declared on the application page, and render and display the assigned variables.
[0075] 2. Action Events
[0076] An action event is the act of completing an operation, which can be the smallest granularity, such as: message prompt, pop-up confirmation, calling an interface, logging in, submitting a form, opening an application page, closing an application page, opening a link, etc. In the embodiment of the present application, action events can be used to assign values to defined variables.
[0077] Variables
[0078] As the name implies, a variable refers to a quantity whose value can change. In the embodiments of the present application, variables can be used as data carriers and as the source of rendering. Regarding the scope of variables, variables can be divided into: global variables, page variables, and input parameters. Among them, global variables refer to variables that are valid throughout the entire application life cycle, and each application page can freely assign and use them. It should be understood that two global variables with the same identifier cannot be defined in an application. Page variables refer to variables that are only used in the application page of a certain application, that is, the page variable can only be assigned and used in that application page, and two variables with the same identifier cannot be defined in the same application page. Input parameters refer to variables that are only used to parse the query parameters of the request for the current application page. Schematically, the variable value of an input parameter variable refers to the parameter carried after the question mark of the access address when accessing a page. For example, if the access address is "http: / / dhdhdh?uid", the variable value of the input parameter variable is uid (i.e., user ID). It can be understood that the validity of the input parameter variable is also limited to the current application page.
[0079] The embodiment of the present application provides a page processing solution, which can provide a visual application platform, on which application arrangement can be performed, that is, an application page can be created on the visual application platform, and variables can be defined for the application page in the application editing page of the visual application platform, variable assignments can be performed for the defined variables (hereinafter referred to as target variables), variables after variable assignments can be used, and the like. Among them, it should be understood that the reason why the visual application platform in the embodiment of the present application provides a mechanism for visually creating variables, assigning values, and using variables is that: first, the visual application platform can be oriented to non-program developers (such as product managers and operations personnel). Secondly, to simulate the logic of the application page in a visual way, four capabilities are required: page display, response interaction, logic control, and data source. To fully implement this logic control, it is necessary to use variables visually as the carrier of data and as the source of rendering.
[0080] Please refer to Figure 1 to illustrate the page processing solution provided by the embodiment of the present application from the perspectives of variable definition, variable assignment, and variable use:
[0081] ① Variable definition: The application editing page is displayed on the visualization application platform. Any user (operator, program developer, product manager, etc.) can trigger (such as clicking, long pressing, sliding) the variable creation component in the application editing page. In response to the triggering operation of the variable creation component in the application editing page, the variable creation page corresponding to the variable type indicated by the variable creation component is displayed; then when the user defines the variable in the variable creation page, in response to the variable definition operation for the variable type triggered in the variable creation page, the variable to be defined is declared in the variable creation page (that is, the variable identification information of the variable is declared). After declaring the variable, if it is necessary to define the variable structure of the declared variable (the defined variable is referred to as the target variable in the embodiment of this application), then a variable structure can also be selected from the variable structure associated with the model or the variable structure associated with the interface as the variable structure of the target variable, thereby creating a target variable corresponding to the variable type and displaying the target variable corresponding to the variable type in the variable creation page.
[0082] It should be understood that the process of declaring a variable can be regarded as defining a variable or creating a variable.
[0083] ② Variable assignment: After creating a target variable, you need to allow it to be used anywhere on the application page. This involves parsing the target variable, converting it into a visual assignment, and then visually using it. This involves assigning a value to the target variable. In practice, you can assign a value to the target variable through an action event. For example, if the action event is calling an interface, you can assign the data variable returned from the interface to the target variable. Alternatively, if the action event is submitting a form, you can assign the data variable returned when submitting the form to the target variable.
[0084] It should be understood that the variable assignment to the target variable in the embodiment of the present application is not limited to the above two methods. For example, the data variable returned by the component method can be assigned to the target variable, or the data variable returned by the functional module can be assigned to the target variable, etc.
[0085] In a specific implementation, in response to a trigger operation on an action adding component in an application editing page, an action event configuration page corresponding to the action adding component may be displayed, the action event configuration page containing at least one action event for assigning a value to a target variable; the user may then select a target action event from the at least one action event, and in response to a trigger operation on the target action event in the at least one action event, the action configuration information corresponding to the target variable is displayed on the action configuration page corresponding to the target action event. It should be understood that the displayed action configuration information corresponding to the target variable is for the purpose of assigning a value to the target variable.
[0086] ③ Variable usage: After completing the variable assignment for the target variable, the target variable after variable assignment can be used as the variable assignment source of other variables (i.e., secondary variable assignment), or the target variable after variable assignment can be bound to the application page, or the variable value of the target variable after variable assignment can be used as the input parameter of a certain interface. Then, in response to the triggering operation of the running component in the application editing page, the target variable after variable assignment can be rendered and displayed on the application editing page of the visualization platform; as an implementation method, when the target variable after variable assignment is bound to the application page, the target variable after variable assignment can be rendered and displayed in the application page. As another implementation method, when the variable value of the target variable after variable assignment is passed into the interface as the input parameter of the interface, the interface can be called to display the interface page of the interface.
[0087] Among them, it should be understood that the visual definition of variables to variable use provided in the embodiment of the present application realizes the management of the entire life cycle of variables. The visualization platform provided in the embodiment of the present application can allow multiple users to collaboratively create a target application and each user can define variables for the application page of the target application. The variables defined by each user can be displayed in the application editing page or the variable creation page. That is to say, by visually defining variables to variable use, the problem of the same variable being created by multiple users at the same time can be avoided, redundant variables can be reduced to a certain extent, and the collaborative efficiency during variable creation or application creation can be improved.
[0088] As can be seen from the above scheme, this embodiment of the application uses a visual approach from variable definition to variable usage. This visual presentation reduces the technical complexity of the entire process. Furthermore, it facilitates the management of defined variables, allowing users to clearly understand the variables on the current application page and their variable structure.
[0089] Please refer to Figure 2, which is a schematic diagram of the architecture of a page processing system provided in an embodiment of the present application. The page processing system includes a computer device 101 and a server 102. The present embodiment of the application does not limit the type and number of computer devices and servers. Among them:
[0090] Computer device 101 can provide a visual application platform, in which applications can be orchestrated. Specifically, users (e.g., operations personnel, product managers) can create applications on the visual application platform, create application pages on the application editing page of the visual application platform, define variables, assign values to defined variables, use the assigned variables, and so on. Furthermore, computer device 101 can store information about variables defined in the visual application platform, where the information includes at least one of the following: variable identification information, data type, and variable structure.
[0091] It can be understood that the computer device 101 may include but is not limited to: smart phones (such as Android phones, iOS phones, etc.), tablet computers, portable personal computers, mobile Internet devices (Mobile Internet Devices, referred to as MID), smart TVs, vehicle-mounted devices, head-mounted devices, intelligent voice interaction devices, aircraft, etc.
[0092] Server 102 may correspond to computer device 101 and be a server that provides technical support for the services provided by computer device 101. For example, computer device 101 provides application orchestration services, and server 102 is a server that provides technical support for the application orchestration services provided by computer device 101. Server 102 may be used to store information about defined variables. Server 102 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms.
[0093] It is understood that application orchestration can be implemented in the visual application platform provided by computer device 101. In this case, computer device 101 may include the following modules: application orchestration front-end storage (store), application orchestration page rendering, and application orchestration front-end renderer. Server 102 may include: application orchestration back-end logic, application orchestration cache (DB), and application orchestration action execution engine.
[0094] The application orchestration front-end store is used to store data on the application orchestration front-end (i.e., information stored in variables defined in the visualization application platform). This store is primarily used for data processing. Data can be stored in a key-value format, where values can be objects, arrays, and so on.
[0095] Application orchestration page rendering is mainly used to render the variable values of variables in the application page, and then display the page components of the application page or display a new page (such as an interface page), etc.
[0096] The application orchestration front-end renderer is a bus designed to facilitate the parsing of variables, functions, expressions, method calls, and so on. Data in the application orchestration front-end renderer is ultimately stored in memory, but unlike a store, it is stored in DOM (Document Object Model) elements. This renderer is only used where the DOM is used. The application orchestration front-end renderer handles events, methods, variables, and actions related to the application page.
[0097] The application orchestration action execution engine is used to execute action events related to application pages, such as opening and closing application pages, calling interfaces, submitting forms, and so on.
[0098] Based on the above page processing system, an embodiment of the present application provides a page processing process. The data flow during the page processing process can be shown in FIG3 :
[0099] ① The user can create a target application on the visualization application platform provided by the computer device 101 and enter the application name and other relevant information of the target application on the visualization application platform. The target application can be an engineering service application (such as an application for collecting construction project information), a map application, a game application, a social application, etc.
[0100] ② The user can trigger the application editing page in the visualization application platform and create an application page for the target application within the application editing page. In a specific implementation, the application editing page includes an application creation component. In response to the triggering operation on the application creation component, the computer device 101 can display the application page of the target application within the application editing page. The application page here can be any page related to the target application. For example, if the target application is a map application, the application page can be a page displaying routes and surroundings of a certain area, or a page for location search, etc.
[0101] ③ After creating the application page for the target application, you can create variables corresponding to different variable types for the application page. At this time, variable types may include, but are not limited to: global variable types, input parameter variable types, and page variable types. In other words, in this embodiment of the application, you can create variables corresponding to global variable types, page variable types, and page variable types for the application page.
[0102] In a specific implementation, a variable creation component is included in the application editing page, and the user can trigger the variable creation component. In response to the triggering operation on the variable creation component, the computer device 101 displays a variable creation page corresponding to the variable type indicated by the variable creation component, and then creates a target variable corresponding to the variable type indicated by the variable creation component in the variable creation page.
[0103] Creating a target variable corresponding to the variable type indicated by the variable creation component on the variable creation page can include the following steps: first, entering the target identification information of the variable to be defined on the variable creation page; second, selecting the target data type for the variable to be defined on the variable creation page; at this point, the declaration of the variable to be defined is complete. Third, when a variable structure needs to be defined for a defined target variable, the target variable structure can be determined for the defined variable from the variable structure associated with the variable structure source, such as a model or interface.
[0104] It should be noted that, in the embodiments of the present application, the variables to be defined may be referred to as initial variables, and the defined variables may be referred to as target variables.
[0105] It is understandable that after the target variable is created, considering that the target variable has its own variable structure and can only be executed in the running state, not in the design state, it can be simply understood that the design state is the process of declaring the variable and setting the action event to assign the variable value to the target variable, and this process cannot be executed in the design state. Therefore, a data protocol for defining the variable is required to record the target variable's target identification information, variable type, target variable structure, etc. through the data protocol. The data protocol is as follows:
[0106] In addition, since the scope of target variables is generally divided into two categories, namely global type or local type, in the embodiment of the present application, variables that act globally (i.e., global variables) can be stored in the form of keywords key-value value, where the key is the global type (i.e., the key is global), and the value is the variable corresponding to the global type; similarly, variables that act locally (such as input parameter variables and page variables) can be stored in the form of keywords key-value value, at this time, the key is the local type (the local type includes the input parameter variable type and the page variable type, i.e., the key is state), and the value can be the variable corresponding to the input parameter variable type and the variable corresponding to the page variable type.
[0107] ④ After creating the target variable (completion of variable definition), the target variable can be assigned a value. At this point, the computer device 101 can assign a value to the target variable through a target event action. The target action event for assigning a value to the target variable can include a variable assignment event, an interface call event, a form submission event, and so on. It is understood that action events generally generate certain data. In this case, the data generated by the action event can be used as the variable value of the target variable, thereby completing the variable assignment to the target variable.
[0108] ⑤ After assigning a value to the target variable, the target variable after the variable assignment can be used. In this embodiment of the present application, the computer device 101 can bind the target variable after the variable assignment to a page component in the application page. Alternatively, the computer device 101 can use the variable value of the target variable after the variable assignment as an input parameter of a certain interface.
[0109] ⑥ Computer device 101 may save the target variable and its information to the application orchestration front-end storage. Furthermore, the application orchestration front-end storage may send the target variable and its information to the application orchestration back-end logic for persistent storage in the application orchestration back-end logic. Simultaneously, the application orchestration back-end logic sends the target variable and its information to the application orchestration cache (DB) for persistent storage.
[0110] ⑦ When you want to view the effect of the application page, trigger the running component in the visual application platform. The computer device 101 responds to the triggering operation of the running component in the application editing page and renders the target variable after the variable assignment on the application editing page.
[0111] It should be understood that when the target variable after variable assignment is bound to a page component in an application page, the page component bound to the target variable after variable assignment is rendered and displayed on the application edit page. When the variable value of the target variable after variable assignment is used as an input parameter of an interface, the variable value of the target variable after variable assignment can be passed as an input parameter of the interface, and then the interface page of the interface is displayed.
[0112] Among them, it can be understood that when the running component in the application editing page is triggered, it means that the application page enters the running state. When the running component in the application editing page is not triggered, defining variables in the visual application platform and assigning variables through action events are all design state operations, that is, assigning variables through action events is not a true variable assignment.
[0113] At this time, the computer device responds to the trigger operation of the running component in the application editing page, and renders and displays the target variable after the variable assignment on the application editing page, which may include: responding to the trigger operation of the running component in the application editing page, the application orchestration action execution engine can parse the target action event, execute the target action event to obtain the data generated by the target action event, and assign the generated data variable to the variable value of the target variable. Since the variable assignment is actually an action generated in the running state, the target variable after the variable assignment can be stored on the application orchestration front-end renderer to facilitate the subsequent parsing of the target variable after the variable assignment from the application orchestration front-end renderer when the target variable is used.
[0114] Specifically, the application orchestration action execution engine can mount the target variable after variable assignment and the corresponding variable value to the application front-end renderer. Then, when the application orchestration page rendering parses the target variable after variable assignment, the variable value of the target variable after variable assignment can be found from the application orchestration front-end renderer. If it is determined that the variable type of the target variable after variable assignment is a global type, then based on the global type and the target identification information of the target variable after variable assignment (i.e. similar to global.a, where global represents the global type and a represents the target identification information), the variable value of the target variable after variable assignment is found from the application orchestration front-end renderer. If it is determined that the variable type of the target variable after variable assignment is a page variable type, then based on the page variable type and the target identification information of the target variable after variable assignment (i.e. similar to state.b, state represents the page variable type and a represents the target identification information), the variable value of the target variable after variable assignment is found from the application orchestration front-end renderer, and then the variable value of the target variable after variable assignment is rendered to the application page. If the variable value of the target variable after variable assignment is used as an input parameter of a certain interface, the variable value of the target variable after the variable assignment can be passed into the interface as an input parameter of the interface to display the interface page of the interface.
[0115] It should be understood that the target application may include multiple application pages. When each application page is accessed, the application orchestration front-end renderer only mounts the global variables, page variables, and input parameter variables defined by the currently accessed application page.
[0116] From the above scheme, it can be seen that the embodiment of the present application adopts a visual approach from variable definition to variable use, that is, a variable is declared in a visual way, and then the variable is assigned a value through an action event. Finally, the variable after the variable assignment is bound to the corresponding page component, and the data can be automatically rendered when the running component is triggered. Through the visual presentation method, the technical complexity from variable definition to variable use is reduced. In addition, it is also convenient to manage the defined variables, and you can also understand at a glance what variables the current application page has, as well as information such as the variable structure of the variables.
[0117] Based on the above description, please refer to Figure 4, which is a flowchart of a page processing method provided by an embodiment of the present application. The page processing method can be executed by the above computer device 101, and the page processing method includes the following steps S401-S406.
[0118] Step S401: Display an application editing page. In response to a triggering operation on a variable creation component in the application editing page, display a variable creation page corresponding to the variable type indicated by the variable creation component.
[0119] It is understood that the visualization application platform can be a citybase building block platform or other platform that provides application orchestration. The component triggering operation for creating a variable in the application editing page can include but is not limited to: clicking, dragging, long pressing, etc.
[0120] Among them, the variable creation component can include at least one of the following: global variable component, input parameter variable component, page variable component; the variable type includes: the global variable type corresponding to the global variable component (hereinafter referred to as global variable), the input parameter variable type corresponding to the input parameter variable component (hereinafter referred to as input parameter variable), and the page variable type corresponding to the page variable component (hereinafter referred to as page variable).
[0121] In one embodiment, the variable creation component can be displayed in the target display area in the page editing page, and the target display area here can refer to any area in the page editing page. For example, as shown in Figure 5, the target display area is area 51 in the application editing page 501, that is, the variable creation component 50 can be displayed in area 51; for another example: as shown in Figure 6, the variable creation component includes an input parameter variable component 2 and a page variable component 3; the target display area can be area 52 in the application editing page 501, and the input parameter variable component 2 and the page variable component 3 can be displayed in the area 52. It should be understood that the target display area can also be the lower right area, the right area, the left area, etc. in the application editing page, and this application does not limit this.
[0122] In another embodiment, the variable creation component can be displayed on a variable component page independent of the application editing page. In this case, the size of the variable component page is smaller than the size of the application editing page. For example, as shown in FIG7 , the variable creation component is displayed on a variable component page 53 independent of the application editing page 501.
[0123] In another embodiment, the variable creation component is hidden in the application editing page, and in response to a variable creation component display operation on the application editing page, the hidden variable creation component is displayed in the application editing page. The variable creation component display operation can be a trigger operation (such as a click operation, a long press operation) on the page variable component in the application editing page. For example, as shown in Figure 8, the variable creation component includes an input parameter variable component 2 and a page variable component 3; the user can trigger the variable display component 4 in the application editing page 502 (as shown in Figure 8, the page variable component 4 is clicked), and in response to the trigger operation on the variable display component 4, the input parameter variable component 2 and the page variable component 3 are displayed in area 54 of the application editing page 502.
[0124] It should be understood that the variable creation component display operation can also be a sliding operation of sliding the target area in the application editing page in a certain direction (such as left, right, or upward). For example, as shown in Figure 9, the variable creation component display operation can be a sliding operation of sliding to the right in area 55 of the application editing page 502. In response to the sliding operation on area 55 in the application editing page, the variable creation component 56 is displayed in the application editing page 502. The embodiment of the present application does not impose any limitation on the display method of the variable creation component.
[0125] It should be understood that when a variable creation component includes at least two of a global variable component, an input parameter variable component, a page variable component, and a system variable component, the target display areas of the at least two components included in the variable creation component may be different. For example, when a variable creation component includes a global variable component and an input parameter variable component, the target display area of the global variable component may be area 51 shown in FIG. 5 , while the target display area of the input parameter variable component may be area 52 in the application editing page 501 shown in FIG. 6 . In addition, the target display areas of the at least two components included in the variable creation component may also be the same.
[0126] For example, when the variable creation component includes a page variable component and an input parameter variable component, the target display areas of the input parameter variable component and the page variable component are both area 52 in the application editing page 501 shown in FIG. 6 .
[0127] In one embodiment, taking the case where the variable creation component includes a global variable component as an example, as shown in FIG10 , the global variable component is the variable creation component 50 shown in FIG10 . When the user triggers (such as clicking) the variable creation component 50 in the application editing page 501, the computer device can display the variable creation page 501 corresponding to the global variable type indicated by the variable creation component 50 in response to the triggering operation on the variable creation component 50 in the application editing page 501. It should be understood that here only the example of the variable creation component including the global variable component is used. When the variable creation component includes other variable components (i.e., the input variable component and the page variable component), the variable creation interface corresponding to the variable type indicated by the other variable components can be displayed by referring to the specific implementation method of displaying the variable creation page corresponding to the variable type indicated by the global variable component, which will not be repeated here.
[0128] Step S402: In response to the variable definition operation triggered on the variable creation page, a target variable corresponding to the variable type is displayed on the variable creation page.
[0129] The variable definition operation can be a trigger operation for the variable definition area of the variable creation page. As an implementation method, the variable definition area contains a variable definition component corresponding to the variable type, and the trigger operation is a double-click operation, a single-click operation, a drag operation, etc. on the variable definition component. For example, as shown in Figure 10, the variable definition area 1002 contains a variable definition component 101 corresponding to the variable type. In response to the trigger operation on the variable definition component 101, the target variable corresponding to the variable type can be displayed on the variable creation page. As another implementation method, the variable definition operation can be a sliding operation in the variable definition area along the target direction (such as right or left). For example, as shown in Figure 11, the variable definition operation is a sliding operation along the right side of the variable definition area 1002. In response to the sliding operation along the right side of the variable definition area 1002, the target variable corresponding to the variable type is displayed on the variable creation page 1001, wherein the target variable has target identification information (i.e., target identification information is a), variable type (i.e., global variable type), target data type (i.e., String), etc. As another implementation, the variable definition operation may be a click operation (such as a double-click operation or a single-click operation) on the variable definition area. The embodiment of the present application does not impose any limitation on the variable definition operation.
[0130] It should be understood that, as shown in FIG12 , the variable creation page 1001 may include a type display area 104 for displaying the variable type, a variable identification area 103 for entering variable identification information, and a data type area 105 for determining the data type. In response to a variable definition operation triggered on the variable creation page, displaying the target variable corresponding to the variable type on the variable creation page may include the following steps ① to ⑤:
[0131] Step ①: In response to the variable definition operation triggered on the variable creation page, the variable type can be displayed in the type display area of the variable creation page; wherein, the variable type displayed is the variable type of the initial variable. For ease of explanation, the variable type is taken as a global variable type as an example in the following. For example, as shown in Figure 12, when the user triggers the variable definition component 101 in the variable definition area in the variable creation page, in response to the triggering operation of the variable definition component 101 corresponding to the variable type (i.e., global variable) in the variable creation page, the global variable can be displayed in the type display area 104 of the variable creation page 1001.
[0132] Step ②: In response to the identifier entry operation for the variable identification area in the variable creation page, the entered target identification information is displayed in the variable identification area. The target identification information is the variable identification information of the initial variable. For example, as shown in Figure 13, the variable creation page 1001 may include a variable identification area 103. When the user wants to define the initial variable, the target identification information can be entered in the variable identification area 103. At this time, in response to the identifier entry operation for the variable identification area 103, the entered target identification information (i.e., the target identification information is "a" as shown in Figure 13) is displayed in the variable identification area 103.
[0133] It should be understood that the entered target identification information can be displayed in the variable identification entry area in the variable identification area 103. Of course, the variable identification entry area can be a circular area, a rectangular frame, an irregular trapezoid, etc., and the embodiment of the present application does not impose any limitation on the shape of the variable identification entry area.
[0134] Step ③: In response to a type trigger operation on the data type area in the variable creation page, M candidate data types are output, where M is a positive integer. The candidate data types can be a numeric type, a string type, an array type, an object type, or a binary type. As an implementation, the trigger operation can be a sliding operation, a click operation, or the like on the data type area; for example, the variable creation page 1001 includes a data type area 105, and the user can directly slide on the data type area 105 (i.e., there is a sliding operation on the data type area 105). In response to the sliding operation on the data type area 105 in the variable creation page, M candidate data types are output. As another implementation, the type trigger operation can be a trigger operation on a type selection component in the data type area. In this case, in response to a trigger operation on a type selection component 1051 in the data type area, M candidate data types are output. For example, as shown in FIG14 , the variable creation page 1001 includes a data type area 105, and the data type area 105 includes a type selection component 1051, and the user can trigger the type selection component 1051. Correspondingly, in response to the triggering operation of the type selection component 1051 in the data type area, three candidate data types are output, namely, a string type, an object type, and an array type.
[0135] Among them, it can be understood that the output positions of the M candidate data types can be flexibly set. For example: the M candidate data types are output directly in the data type area 105. For another example: the M candidate data types can be output on a data type display page independent of the variable creation page. For another example, the M candidate data types can be output directly on the variable creation page. For example, in Figure 14, three candidate data types (i.e., string type, object type, array type) can be output in area 1052. The embodiment of the present application does not limit the output position of the M candidate data types.
[0136] Similarly, the output method of the M candidate data types can also be flexibly set. For example, the candidate data types can be output according to their usage frequency, that is, the higher the usage frequency of the candidate data type, the candidate data type is displayed at the front. For example, in Figure 14, the usage frequency of the string type is greater than the usage frequency of the object type, and the usage frequency of the object type is greater than the usage frequency of the array type. In this case, as shown in Figure 14, the string type is ranked first, the object type is ranked second, and the array type is ranked third. For another example, the M candidate data types can be directly output randomly.
[0137] It should be understood that the output location, output method, etc. of the M candidate data types can be flexibly set according to actual needs, and the embodiments of the present application do not limit this.
[0138] Step 4: In response to a type selection operation for a target data type among the M candidate data types, the target data type is displayed in the data type area. The target data type is the data type of the initial variable. The type selection operation can be a click operation on the target data type among the M candidate data types. In response to the click operation on the target data type, the target data type is displayed in the data type area. For example, in FIG15 , the three candidate data types are: string type, object type, and array type. When the user clicks on the string type, the string type is displayed in the data type area 105 in response to the click operation on the string type. In one embodiment, the type selection operation can also be an operation of directly selecting the candidate data type (i.e., the target candidate data type) that is ranked highest in the order of the M candidate data types. In this case, the target candidate data type that is ranked highest can be automatically displayed in the data type area. For example, if M = 3 and the three candidate data types are ranked in the order of: string type, string type, array type, the string type is ranked highest. In response to the type selection operation on the string type, the string type is displayed in the data type area.
[0139] Step 5: Set the initial variable with the target data type, target identification information, and variable type as the target variable and display the target variable on the variable creation page; the target variable is the variable defined on the variable creation page. It should be understood that the target variable has the target data type, target identification information, and variable type. For example, as shown in Figure 15, the variable definition area on the variable creation page 101 displays the target variable with target identification information a, global variable type, and string type.
[0140] In one embodiment, the variable creation page 1001 further includes a confirmation component 106 and a reset component 107. In response to a triggering operation of the confirmation component 106, the variable creation page can be switched to an application editing page. In response to a triggering operation of the reset component 107, the target variable in the variable creation page can be redefined.
[0141] Among them, it can be understood that when the data type of the target variable is a composite data type (such as an object type, an array type, etc.), it is necessary to define the target variable structure of the target variable. In one embodiment, in response to the variable structure editing operation in the variable creation page, the target variable structure of the target variable is displayed on the variable structure editing page; in response to the confirmation operation for the target variable structure, the variable creation page is switched from the variable structure editing page to display the target variable, and the target variable structure corresponding to the target variable is displayed in the variable structure display area in the variable creation page, and the target variable structure includes one or more target structure parameters. Among them, the above-mentioned variable structure editing operation can be: a trigger operation on the variable structure editing component in the variable creation page, or the variable structure editing operation can be a sliding operation, a click operation, etc. in the variable structure display area in the variable creation page. The confirmation operation can be a trigger operation on the confirmation option in the variable structure editing page (such as a single-click operation, a double-click operation, etc.), or the confirmation operation can be an operation of sliding along the target direction in the variable structure editing page, or an operation of double-clicking in any area in the variable structure editing page. The embodiment of the present application does not impose any restrictions on the confirmation operation and the variable structure editing operation.
[0142] For example, as shown in Figure 16, when the data type is an array type, a variable structure editing component 108 is included in the variable creation page 101. In response to the triggering operation on the variable structure editing component 108, the target variable structure of the target variable is displayed on the variable structure editing page 1003, and the target variable structure includes structure parameter 1 and structure parameter 2; the structure editing page 1003 also includes a confirmation option 109. When the user triggers the confirmation option 109, in response to the triggering operation on the confirmation option 109, the display can be switched from the variable structure editing page 1003 to the variable creation page 1001, and the target structure parameters (i.e., structure parameter 1 and structure parameter 2) contained in the target variable structure of the target variable are displayed in the variable structure display area 1011 in the variable creation page 1001.
[0143] It should be understood that in the embodiment of the present application, when the type selection operation is performed on the target data type among the M candidate data types and the target data type is displayed in the data type area, if the target variable under the target data type requires a variable structure to be defined, then the variable structure editing component 108 can be displayed together with the target data type. Of course, the variable structure editing component can also be displayed continuously on the variable creation page. The embodiment of the present application is not limited to this.
[0144] In response to the variable structure editing operation in the variable creation page, the target variable structure of the target variable is displayed on the variable structure editing page, which may include but is not limited to the following methods:
[0145] (1) In response to a variable structure editing operation in a variable creation page, displaying a target variable structure of a target variable on the variable structure editing page may include: displaying a variable structure editing page in response to a variable structure editing operation in a variable creation page; the variable structure editing page includes one or more variable structures; a variable structure includes one or more structure parameters; when a target variable structure in one or more variable structures is selected, displaying the target variable structure of the target variable in a variable structure display area of the variable structure editing page.
[0146] (2) It can be understood that the variable structure used by the variable can include the variable structure corresponding to the model (i.e., some table structures), the variable structure corresponding to the interface, etc., and the variable structure corresponding to the interface can include the interface return parameter structure and the interface input parameter structure. In the embodiment of the present application, by taking the model or interface as the variable structure source, it is possible to quickly select a suitable target variable structure for the target variable from the variable structure source such as the model or interface. At this time, in response to the variable structure editing operation in the variable creation page, the target variable structure of the target variable is displayed on the variable structure editing page, including: in response to the variable structure editing operation in the variable creation page, one or more variable structure sources are displayed in the variable structure source area of the variable structure editing page; in response to the trigger operation for the target variable structure source in one or more variable structure sources, the target variable structure source is highlighted in the variable structure source area; in response to the trigger operation for the variable structure identification area in the variable structure editing page, one or more variable structures associated with the target variable structure source are displayed; in response to the trigger operation for the target variable structure in one or more variable structures, the identification of the target variable structure is displayed in the variable structure identification area, and the target structure parameters contained in the target variable structure are displayed in the variable structure content area of the variable structure editing page.
[0147] For example, as shown in Figure 17 , if the data type is an object type, in response to a trigger operation on the variable structure editing component 108 in the variable creation page, two variable structure sources (i.e., interface and model) are displayed in the variable structure source area 1031 of the variable structure editing page 1003 . When the user selects the target variable structure source (i.e., model), the target variable structure source is displayed as selected in the variable structure source area. In response to a trigger operation on the variable structure identification area 1032 in the variable structure editing page, one or more variable structures associated with the target variable structure source are displayed (i.e., variable structure 1 and variable structure 2, as shown in Figure 17 ). In response to a trigger operation on variable structure 1 among the one or more variable structures, the identifier of variable structure 1 (i.e., variable structure 1) is displayed in the variable structure identification area 1032, and the structure parameters contained in variable structure 1 are displayed in the variable structure content area 1033 in the variable structure editing page. Optionally, the structure parameters contained in variable structure 1 may also be displayed in the variable structure content area 1033 in the variable structure editing page. Optionally, the parameter names, parameter types, parameter descriptions, etc. of the structure parameters contained in variable structure 1 may also be displayed.
[0148] It is understood that highlighting the target variable structure source in the variable structure source area can be flexibly set. The target variable structure source is selected in the variable structure source area. For example, the target variable structure source is selected with a "√" in the variable structure source area. For another example, the target variable structure source is displayed in bold in the variable structure source area; for another example, the target variable structure source is displayed in an enlarged manner in the variable structure source area. The embodiments of the present application do not impose any limitations on highlighting the target variable structure source.
[0149] In one embodiment, when the variable structure identification area includes a variable structure selection component; in response to a trigger operation on the variable structure identification area in the variable structure editing page, displaying one or more variable structures associated with the target variable structure source may include: in response to a trigger operation on the variable structure selection component (such as the trigger operation can be a single click, double click, long press, and multiple clicks within a preset time), displaying one or more variable structures associated with the target variable structure source. For example, in Figure 18, the variable structure identification area 1032 includes a variable structure selection component 10321, and the variable structure selection component 10321 is clicked. Accordingly, in response to the click operation on the variable structure selection component, one or more variable structures associated with the model source are displayed, that is, two variable structures related to the model source (i.e., variable structure 1 and variable structure 2) are displayed in the variable structure identification area 1032.
[0150] It should be understood that one or more variable structures associated with the target variable structure source can be displayed at any location in the variable structure identification area. For example, the arbitrary location can be the location shown in Figure 18. Alternatively, one or more variable structures associated with the target variable structure source can be displayed on a page independent of the variable structure editing page 1003. This embodiment of the present application is not limited to this.
[0151] Among them, it can be understood that the target variable structure can contain one or more candidate structure parameters, and one or more candidate structure parameters can be directly used as the target structure parameters contained in the target variable structure. In addition, the user can also select appropriate candidate structure parameters as the target structure parameters of the target variable structure according to needs. At this time, displaying the parameters contained in the target variable structure in the variable structure content area in the variable structure editing page can include: in response to the selection operation of the candidate structure parameters in the target variable structure, the candidate structure parameters contained in the selected target variable structure can be highlighted in the variable structure content area, and the selected candidate structure parameters can be used as the target structure parameters contained in the target variable structure. For example, in Figure 17, the candidate structure parameters contained in variable structure 1 (i.e., the target variable structure) are identification (ID), XXX, and project; then in response to the selection operation for XXX and project, the selected XXX and project can be highlighted in the variable structure content area 1033 (i.e., the selected candidate structure parameters are highlighted in a "√" manner).
[0152] It is understood that embodiments of the present application can also modify already defined variables. In this case, in response to a variable modification operation on a target variable, the target variable to be modified can be displayed in the variable modification area, and in response to a data modification operation on the target variable to be modified, the modified target variable can be displayed in the variable modification area.
[0153] In one embodiment, the modification operation for the target variable can be a trigger operation for the variable modification component in the variable definition area; for example, as shown in Figure 19, the variable definition area 1902 includes a variable modification component 191. In response to the trigger operation for the variable modification component 191, the target variable to be modified can be displayed in the variable modification area 1904. The target identification information of the target variable to be modified (such as the target identification information is C) can be displayed in the variable modification area 1904. The variable type of the target variable to be modified is a global variable and the target data type is String (i.e., a string type). In another embodiment, the variable creation page includes a variable display area 1903, in which the target variable (i.e., variable C, array type) is displayed. At this time, the modification operation for the target variable can be a direct trigger (such as clicking, long pressing, etc.) on the target variable.
[0154] In response to a data modification operation on a target variable to be modified, displaying the modified target variable in the variable modification area may include: in response to an identifier update operation on a variable identification area in a variable modification page, updating the target identification information entered in the variable identification area, and updating the displayed target identification information to be the new variable identification information of the target variable; in response to a type trigger operation on a data type area in a variable modification page, outputting M candidate data types; in response to a type selection operation on a target data type among the M candidate data types, updating the display of the target data type in the data type area, and updating the displayed target data type to be the new data type of the target variable; using the target variable having the new target data type, the new target identification information, and the variable type as the target variable, and displaying the target variable in the variable creation page. For example, as shown in FIG20 , in response to an identifier update operation on a variable identification area in a variable modification page, the target identification information (i.e., identifier C) in the variable identification area is updated and displayed to be identifier D.
[0155] Among them, it should be understood that when modifying the target variable to be modified (that is, the target variable to be modified can be used as the initial variable), one or more of the target identification information, target data type and target variable structure of the target variable to be modified can be modified. The specific implementation process of modifying the target identification information, target data type and target variable structure of the target variable to be modified can be referred to the specific process of defining the initial variable above, and will not be repeated here.
[0156] Step S403: In response to the triggering operation on the action adding component in the application editing page, an action event configuration page corresponding to the action adding component is displayed, where the action event configuration page includes at least one action event for assigning a value to a target variable.
[0157] Among them, it can be understood that the action event for assigning a variable to a target variable can be an interface calling event, a form submission event, a variable assignment event, etc. An interface calling event refers to an event that calls a certain interface. When a certain interface (i.e., the target interface) is called, corresponding data will be returned. At this time, the data returned by the target interface can be assigned to the target variable. A form submission event refers to an event that submits a certain form (i.e., the target form). When the target form is submitted, corresponding data will be returned. At this time, the data returned by submitting the target form can also be assigned to the target variable. A variable assignment event can refer to direct variable assignment to a target. The direct variable assignment here can include: directly assigning the variable value of the variable after variable assignment to the target variable, directly assigning the data opened by the component method to the target variable, and directly assigning the data opened by the module parameter (or module function) to the target variable.
[0158] It is understandable that the triggering operation for the action adding component in the application editing page can be a click operation, a long press operation, a sliding operation of sliding in a certain direction, and the like. When you want to assign a variable to a defined variable (i.e., a target variable), an action adding component is included in the application editing page, and the action adding component is triggered to enter the action event configuration page to assign a variable to the target variable. For example, as shown in Figure 21, the application editing page 2101 includes an action adding component 211. In response to the triggering operation (i.e., a click operation) for the action adding component 211, the action event configuration page 2102 corresponding to the action adding component is displayed. The action event configuration page 2102 includes 3 action events for assigning variables to the target variable (calling interface event 212, form submission event 213, variable assignment event 214).
[0159] Step S404: In response to a triggering operation on a target action event in at least one action event, displaying action configuration information corresponding to the target variable on an action configuration page corresponding to the target action event.
[0160] It should be understood that the target action event is any one of the at least one action event. The triggering operation may be a click operation, a long press operation, a sliding operation in a certain direction, and the like.
[0161] In one embodiment, when the target action event is a call interface event, in response to a triggering operation on the target action event in at least one action event, displaying action configuration information corresponding to the target variable on an action configuration page corresponding to the target action event may include steps s11-s15:
[0162] s11: In response to a trigger operation for a call interface event in at least one action event (such as the trigger operation can be a single click, double click, long press, and multiple clicks within a preset time), the action configuration page corresponding to the call interface event is displayed, and the action configuration page can include a call interface display area and a first variable assignment area, wherein the call interface display area is used to display interface information, and the first variable assignment area is used to display the target variable to be assigned. For example, as shown in Figure 22, the user clicks on the call interface event 212 in at least one action event, and in response to the click operation on the call interface event 212 in at least one action event, the action configuration page 2103 corresponding to the call interface event is displayed. The action configuration page 2103 includes a call interface display area 2111 and a first variable assignment area 2112.
[0163] s12: In response to the interface selection operation of calling the interface display area, one or more interfaces are displayed. The interface selection operation can be a trigger operation on the interface selection component in the interface display area, or the interface selection operation can be a click operation, a sliding operation, etc. on the interface display area. The embodiment of the present application does not impose any restrictions on the interface selection operation. For example, as shown in Figure 22, the interface display area 2111 includes an interface selection component 2114. In response to the trigger operation of the interface selection component 2114, one or more interfaces can be displayed, that is, interface 1 and interface 2 are displayed.
[0164] It should be understood that the display area of one or more interfaces can be flexibly set. For example, one or more interfaces can be displayed in any area of the calling interface display area 2111. For another example, one or more interfaces can be displayed in the calling interface display page. For another example, one or more interfaces can be displayed in any area of the action configuration page 2103.
[0165] s13: When a target interface among one or more interfaces is selected, the interface information of the target interface is displayed in the calling interface display area. For example, in FIG23 , when interface 1 is selected, the interface information "aaa" of interface 1 (i.e., the target interface) is displayed in the calling interface display area 2111. It is understood that displaying the interface information of the target interface in the calling interface display area may include: displaying the target interface information in an interface display box in the calling interface display area.
[0166] s14: In response to a trigger operation on the first variable assignment area, a first variable list is displayed, wherein the first variable list includes a target variable; wherein the trigger operation on the first variable assignment area may be an assignment variable selection component in the first variable assignment area. For example, in FIG23 , the first variable assignment area 2112 includes an assignment variable selection component 2115. In response to the assignment variable selection component 2115 in the first variable assignment area, a first variable list 2116 is displayed. The first variable list 2116 may include defined variables (e.g., in FIG23 , the first variable list includes variables corresponding to an input parameter type, a global variable type, and a page variable type. The target variable is any variable of the parameter type, the global variable type, or the page variable type).
[0167] It can be understood that displaying the first variable list may include but is not limited to: displaying the first variable list in any area of the action configuration page (for example, displaying the first variable list 2116 in the area shown in Figure 23), displaying the first variable list in a variable assignment selection page independent of the action configuration page, etc.
[0168] s15: When the target variable is selected, the target variable to be assigned is displayed in the first variable assignment area. It is understood that the target variable to be assigned can be displayed in the target display box in the first variable assignment area. For example, in Figure 23, when variable a (i.e., the target variable) is selected, variable a can be displayed in the target display box 2113 in the first variable assignment area 2112.
[0169] It should be understood that the interface information of the target interface displayed above and the target variable to be assigned can be understood as the action configuration information corresponding to the target variable. In response to the confirmation operation on the action configuration page, the variable assignment of the target variable can be completed based on the action configuration information. At this time, the variable value of the target variable after the variable assignment is the data returned by calling the target interface. The confirmation operation here can be a trigger operation for a determined component in the action configuration page, or the confirmation operation can be a sliding operation on any area of the action configuration page.
[0170] It should be noted that the above steps s12-s13 are executed after steps s14 and s15, and of course they can also be executed before steps s14 and s15. The implementation of this application is not limited to this.
[0171] In one embodiment, when the target action event is a form submission event, in response to a triggering operation on the form submission event in at least one action event, displaying action configuration information corresponding to the target variable on the action configuration page corresponding to the form submission event may include the following steps s21-s25:
[0172] s21: In response to a trigger operation of a form submission event in at least one action event (such as the trigger operation can be a single click, double click, long press, and multiple clicks within a preset time), the action configuration page corresponding to the form submission event is displayed, and the action configuration page can include a form information display area and a second variable assignment area; wherein the form information display area is used to display form information, and the second variable assignment area is used to display the target variable to be assigned.
[0173] For example, as shown in Figure 24, a user clicks on a form submission event 213 in at least one action event. In response to the click operation on the form submission event 213 in at least one action event, an action configuration page 2104 corresponding to the form submission event is displayed. The action configuration page 2104 includes a form information display area 2121 and a second variable assignment area 2123.
[0174] s22: In response to the form selection operation in the form information display area, form information of one or more forms is displayed. The form selection operation can be a trigger operation on the form selection component in the form information display area, or the form selection operation can be a click operation, a sliding operation, etc. on the form information display area. The embodiment of the present application does not impose any limitation on the form selection operation. For example, as shown in Figure 25, the form information display area 2121 includes a form selection component 2122. In response to the trigger operation of the form selection component 2122, form information of one or more forms (i.e., form information "bbbb" of form 1 and form information "XX" of form 2) can be displayed.
[0175] It should be understood that displaying form information of one or more forms may include, but is not limited to, displaying form information of one or more forms in any area of the action configuration page 2104 or displaying form information of one or more forms on a page independent of the action configuration page 2104. For example, area 2125 of the action configuration page 2104 may display form information of form 1 and form information of form 2. Of course, the arbitrary area may be the middle area or the left area of the action configuration page 2104.
[0176] s23: When the form information of the target form is selected in the form information of one or more forms, the form information of the target form is displayed in the form information display area. For example, in Figure 25, when the form information of Form 1 is selected, the form information "bbbb" of Form 1 is displayed in the form information display area.
[0177] It should be understood that, as shown in Figure 25, the form information of the target form can be displayed in the form information display box in the form information display area. The shape of the form information display box is not limited in this embodiment of the application. For example, the shape of the form information display box can be rectangular, circular, etc.
[0178] s24: In response to a trigger operation on the second variable assignment area, a second variable list is displayed, which includes a target variable. In response to a trigger operation on the second variable assignment area, a second variable list is displayed, which includes a target variable; wherein the trigger operation on the second variable assignment area can be an assignment variable selection component in the second variable assignment area. For example, in Figure 26, the second variable assignment area 2123 includes an assignment variable selection component 2124. In response to the assignment variable selection component 724 in the second variable assignment area, a second variable list 2125 is displayed. The second variable list 2125 can include the target variable. Of course, the second variable list also includes defined variables (for example, in Figure 26, the second variable list includes variables of the global variable type and variables of the page variable type, and the target variable is any variable of the global variable type or the page variable type).
[0179] It can be understood that displaying the second variable list may include but is not limited to: displaying the second variable list in any area of the action configuration page (for example, displaying the second variable list 2125 in the area shown in Figure 26), displaying the second variable list in a variable assignment selection page independent of the action configuration page, etc.
[0180] s25: When a target variable is selected, the target variable to be assigned is displayed in the second variable assignment area. For example, in FIG26 , when a global variable (i.e., the target variable) is selected, the global variable can be displayed in a display box in the second variable assignment area 2123. The shape of the display box is not limited in any way.
[0181] It should be understood that the form information of the target form displayed above and the target variable to be assigned can be understood as the action configuration information corresponding to the target variable. In response to the confirmation operation on the action configuration page, the variable assignment of the target variable can be completed based on the action configuration information. At this time, the variable value of the target variable after the variable assignment is the data returned when the target form is submitted. The confirmation operation here can be a trigger operation for a certain component in the action configuration page, or the confirmation operation can be a sliding operation on any area of the action configuration page.
[0182] In one embodiment, the target variable assignment action option includes a variable assignment event. In response to a trigger operation for a target action event in at least one action event, the action configuration information corresponding to the target variable is displayed on an action configuration page corresponding to the target action event, including the following steps s31-s36:
[0183] s31: In response to a trigger operation for a variable assignment event in at least one action event, an action configuration page corresponding to the variable assignment event is displayed. The trigger operation here can be a click operation, a long press operation, etc. For example, as shown in Figure 27, in response to a click operation for a variable assignment event 214 in at least one action event, an action configuration page 2701 corresponding to the variable assignment event is displayed. The action configuration page 2701 can include a variable selection area 271 and a parameter expression display area 272. The variable selection area 271 is used to display variables, and the parameter expression display area 272 is used to display parameters.
[0184] s32: In response to a trigger operation on the variable selection area in the action configuration page, a third variable list to be assigned to the variable is displayed, and the third variable list includes the target variable. The variable selection area 271 may include a variable selection component 273. At this time, the trigger operation on the variable selection area in the action configuration page may be a click operation, a long press operation, etc. on the variable selection component 273. For example, as shown in FIG28 , when the user clicks on the variable selection component 83, the computer device may display a third variable list in response to the click operation on the variable selection component 273, and the third variable list includes variable A, which is the target variable.
[0185] Among them, it should be understood that the third variable list can also include one or more variables corresponding to the page variable type, the global variable type, and the input parameter variable type. The target variable is any variable among the variables corresponding to the page variable type, or the target variable is any variable among the variables corresponding to the global page type; or the target variable is any variable among the variables corresponding to the input parameter variable type. At this time, as shown in Figure 29, when the user clicks on the variable selection component 273, the computer device can display the third variable list in response to the click operation on the variable selection component 273, and the third variable list includes variables corresponding to the page variable type, variables corresponding to the global variable type, and variables corresponding to the input parameter variable type, wherein the variables corresponding to the global variable type include variable A (i.e., the target variable).
[0186] Among them, it should be understood that, as an implementation method, the third variable list to be assigned to the variable can be displayed in the variable selection area of the action configuration page. For example, as shown in Figure 28, the third variable list to be assigned to the variable is displayed in the variable selection area 274. For another example, as shown in Figure 29, the third variable list to be assigned to the variable is displayed in the variable selection area 275. As another implementation method, the third variable list to be assigned to the variable is displayed in a variable selection page independent of the action configuration page, or the third variable list to be assigned to the variable is suspended in the variable selection area. The embodiment of the present application does not limit how to display the third variable list to be assigned to the variable.
[0187] s33: When the target variable is selected, the target variable to be assigned is displayed in the variable selection area of the action configuration page. For example, as shown in FIG29 , when the target variable (i.e., variable A in FIG29 ) is selected, the target variable to be assigned can be displayed in the variable selection area 271 of the action configuration page (i.e., variable A is displayed in FIG29 ).
[0188] s34: In response to the trigger operation on the parameter display area in the action configuration page, the expression setting page is displayed, and the expression setting page includes a first parameter list. The first parameter list includes one or more parameters. The parameters include variables after variable assignment, component methods, event parameters, and constants.
[0189] It is understood that the triggering operation for the parameter display area in the action configuration page can be a click operation, a long press operation, etc. on the parameter selection option in the parameter display area. For example, in Figure 30, the parameter display area 272 includes a parameter selection option 276. In response to the click operation of the parameter selection option 276, the expression setting page 2702 is displayed, wherein a parameter list 279 is displayed in the expression setting page 2702. The parameter list 279 includes variables after variable assignment, component methods, event parameters, and constants. The variables after variable assignment can include variables after variable assignment corresponding to the global variable type, variables after variable assignment corresponding to the page variable type, and variables after variable assignment corresponding to the input variable type.
[0190] It should be understood that, in the embodiment of the present application, the first parameter list can be displayed at any position on the expression setting page 2702, and the arbitrary position can be, for example, the left area, right area, upper area, middle area, etc. of the expression setting page 2702.
[0191] In one embodiment, as shown in FIG31 , in response to the triggering operation of the selection component 2791 corresponding to the global variable type, the variables corresponding to the global variable type (i.e., variables C and D as shown in FIG31 ) can be displayed. At this time, variables C and D are both variables after variable assignment.
[0192] Among them, it should be understood that any parameter type corresponds to a selection component 2791. When the selection component is triggered, the variables corresponding to the parameter type can be displayed. For specific implementation, please refer to the above-mentioned implementation process of displaying the variables corresponding to the global variable type, which will not be repeated here.
[0193] s35: In response to a parameter selection operation for a target parameter in the first parameter list, the target syntax expression corresponding to the target parameter is displayed in the expression display area of the expression setting page. For example, in FIG31 , in response to a parameter selection operation for variable D (i.e., the target parameter) in the first parameter list, the target syntax expression corresponding to variable D (i.e., XXXX: AAA CCCC XXX) is displayed in the expression display area 277 of the expression setting page. The target syntax expression here may include: the parameter name, parameter structure, parameter value, etc. of the target parameter.
[0194] s36: When the Confirm option in the expression setting page is triggered, the target parameter is displayed in the parameter display area of the action configuration page; the variable value of the target variable is the parameter value corresponding to the target parameter. For example, as shown in Figure 32, the expression setting page includes a Verify Expression option 2711 and a Confirm option 2712. When the Confirm option 2712 in the expression setting page is triggered, the expression setting page switches to the action configuration page 2701; and the variable D (i.e., variable D) is displayed in the parameter display area 272.
[0195] Optionally, the expression setting page includes an expression verification option 2711 for the target syntax expression. At this time, when the expression verification option 2711 is triggered, the debugging result of the target syntax expression is displayed in the debugging display area 278 of the expression setting page.
[0196] Among them, it should be understood that the above-mentioned selected target variable information and the target parameters displayed in the parameter display area of the action configuration page can be understood as the action configuration information corresponding to the target variable. In response to the confirmation operation on the action configuration page, the variable assignment of the target variable can be completed based on the action configuration information. At this time, the variable value of the target variable after the variable assignment is the parameter value corresponding to the target parameter. The confirmation operation here can be a trigger operation for the determination component in the action configuration page, or the confirmation operation can be a sliding operation on any area of the action configuration page.
[0197] Step S405: When the variable assignment to the target variable is completed based on the action configuration information, the action configuration page is switched to be displayed as an application editing page.
[0198] It is understood that when the variable assignment to the target variable is completed based on the action configuration information, the action configuration page can be directly switched to the application editing page. In one embodiment, the action configuration page includes a confirmation component. When the variable assignment to the target variable is completed based on the action configuration information, the action configuration page is switched to the application editing page in response to a triggering operation of the confirmation component.
[0199] Step S406: In response to the triggering operation on the running component in the application editing page, the target variable after the variable assignment is rendered and displayed on the application editing page.
[0200] It can be understood that in the above Figure 5, the application editing page 501 may include a running component 511. At this time, the triggering operation for the running component in the application editing page may include but is not limited to clicking, long pressing operations, etc. on the running component 511.
[0201] The display position of the running component can be flexibly set. For example, the running component 511 can be displayed in the area shown in Figure 5. For another example, the running component 511 can be displayed in the left area or the right area of the application editing page 501. For another example, the running component 511 can also be displayed in a floating manner on the application editing page 501.
[0202] In an embodiment of the present application, an application editing page is displayed, and in response to a triggering operation for a variable creation component in the application editing page, a variable creation page corresponding to the variable type indicated by the variable creation component is displayed; in response to a variable definition operation triggered on the variable creation page, a target variable corresponding to the variable type is displayed on the variable creation page; in response to a triggering operation for an action adding component in the application editing page, an action event configuration page corresponding to the action adding component is displayed, and the action event configuration page contains at least one action event for performing variable assignment on the target variable; in response to a triggering operation for a target action event in at least one action event, action configuration information corresponding to the target variable is displayed on the action configuration page corresponding to the target action event; when the variable assignment to the target variable is completed based on the action configuration information, the action configuration page is switched to be displayed as an application editing page; in response to a triggering operation for a running component in the application editing page, the target variable after variable assignment is rendered and displayed on the application editing page. Through a visual presentation method, variable definition is performed to variable use, thereby reducing the technical complexity from variable definition to variable use.
[0203] Please refer to Figure 33, which is a flow chart of a page processing method provided by an embodiment of the present application. The page processing method can be executed by a computer device, and the page processing method can include the following steps S3301-S3310:
[0204] Step S3301: Display the application editing page. In response to the triggering operation of the variable creation component in the application editing page, display the variable creation page corresponding to the variable type indicated by the variable creation component; the application editing page includes the application page of the target application, and the application page includes one or more page components.
[0205] In one embodiment, the visualization application platform includes an application creation component. In response to a triggering operation on the application creation component of the visualization application platform, the application name of the target application to be created is filled in the visualization platform. The target application can be a game application, an engineering application, a traffic information collection application, etc. When the application editing component in the visualization application platform is triggered, the application editing page of the target application is displayed on the visualization application platform. For example, as shown in Figure 34, when the application editing component in the visualization application platform is triggered, the application editing page 3401 of the target application can be displayed on the visualization application platform.
[0206] Optionally, the application editing page 3401 includes a page creation component 10, through which the application page of the target application can be created. In response to a trigger operation on the page creation component 10 (such as a trigger operation that can be a click operation, a long press operation, etc.), the application page of the target application is created, and the application page of the target application is displayed in the page display area of the application editing page 3401. The page display area can be any area in the application editing page. The page display area is the middle area, the left area, the right area, etc. of the application editing page. For example, in Figure 34, the application page 3411 of the target application is displayed in the page display area 3402 of the application editing page 3401.
[0207] It is understood that users can design different page components in the application page of the target application according to their needs. The page components here may include but are not limited to: tables, buttons, form drop-down boxes, etc. For example, as shown in Figure 35, the application page 3411 of the target application can display multiple page components, namely page component 34111, page component 34112, and page component 34113.
[0208] It should be noted that after defining the target variables and assigning values to the target variables, you can create an application page for the target application and design page components in the application page; of course, you can also create an application page for the target application and design page components in the application page after creating the target application, and then define the target variables and assign values to the target variables. This embodiment of the present application is not limited to this.
[0209] Step S3302: In response to the variable definition operation triggered on the variable creation page, the target variable corresponding to the variable type is displayed on the variable creation page.
[0210] Step S3303: In response to the triggering operation on the action adding component in the application editing page, an action event configuration page corresponding to the action adding component is displayed, and the action event configuration page includes at least one action event for assigning a variable to a target variable.
[0211] Step S3304: In response to a triggering operation on a target action event in at least one action event, display action configuration information corresponding to the target variable on an action configuration page corresponding to the target action event.
[0212] Step S3305: When the variable assignment to the target variable is completed based on the action configuration information, the action configuration page is switched to be displayed as an application editing page.
[0213] Step S3306: When a target page component among one or more page components is selected, a variable usage option corresponding to the target page component is displayed in the application editing page.
[0214] In one embodiment, when a target page component in one or more page components is selected, the variable usage options corresponding to the target page component can be displayed in the property display area in the application editing page. The property display area can be any area in the application editing page. For example, as shown in Figure 36, when a page component 34113 (i.e., the target page component) is selected, the variable usage options 34121 corresponding to the page component 34113 can be displayed in the property display area 3412 in the application editing page 3401. It should be understood that the property information of the target page component, such as component ID, whether to display, basic properties, display mode, etc., can also be displayed in the property display area 3412. This application does not limit this.
[0215] In another embodiment, when a target page component in one or more page components is selected, the display can be switched from the application editing page to a property display page independent of the application editing page, and the variable usage options corresponding to the target page component can be displayed in the property display page.
[0216] Step S3307: In response to the triggering operation of the variable usage option corresponding to the target page component, the variable usage page is displayed. The variable usage page includes a second parameter list. The second parameter list includes at least one parameter. The parameters include: target variables after variable assignment, component methods, event parameters, constants, and system variables.
[0217] Among them, it can be understood that the triggering operation of the variable usage option corresponding to the target page component can be a click operation, a long press operation, a drag operation, etc. This application is not limited to this. For example, as shown in Figure 37, the user can trigger the variable usage option 34121 corresponding to the target page component, and the computer device responds to the triggering operation of the variable usage option 34121 corresponding to the target page component (i.e., page component 34113) to display the variable usage page 3413, which includes a second parameter list 34131. Among them, the second parameter list 34131 includes a variable 34137; the variable type of the variable 34137 can be a global variable type.
[0218] In one embodiment, when the second parameter list 34131 includes variables corresponding to the input variable type, variables corresponding to the page variable type, and variables corresponding to the global variable type, and the variables corresponding to the input variable type, the variables corresponding to the page variable type, and the variables corresponding to the global variable type are all variables after variable assignment, in response to a trigger operation for a target variable type (such as the trigger operation for a global variable in FIG37 ), the variables corresponding to the target variable type may be displayed, wherein the variables corresponding to the target variable type include variable 34137 (i.e., the target variable after variable assignment).
[0219] Step S3308: When the target variable after variable assignment in the second parameter list is selected, the syntax expression corresponding to the target variable after variable assignment is displayed in the expression display area of the variable use page.
[0220] Among them, as shown in Figure 37 above, when the target variable (i.e., variable 10137) after the variable assignment in the second parameter list 34131 is selected, the syntax expression 34136 corresponding to the target variable after the variable assignment is displayed in the expression display area 34132 of the variable usage page 3413.
[0221] Optionally, the variable usage page 3413 also includes a verification expression option 34134. In response to the trigger operation of the verification expression option 34134, the debugging result of the syntax expression 34136 corresponding to the target variable after the variable assignment can be output in the debugging result output area 10133 in the variable usage page.
[0222] Step S3309: In response to the confirmation operation on the target variable after the variable assignment, the target variable after the variable assignment is bound to the target page component.
[0223] It is understood that the confirmation operation for the target variable after variable assignment can be a trigger operation of the confirmation component of the variable usage page. For example, in Figure 37, the variable usage page includes a confirmation component 34135. In response to a trigger operation on the confirmation component 34135 (such as a click operation, a long press operation, a sliding operation, etc.), the target variable after variable assignment can be bound to the target page component (that is, the variable 34137 can be bound to the above-mentioned page component 34113).
[0224] Step S3310: In response to a triggering operation on a running component in an application editing page, the target variable after variable assignment is rendered and displayed on the application editing page.
[0225] Among them, it can be understood that when the target variable after variable assignment is bound to the target page component, in response to the trigger operation of the running component in the application editing page, the target page component bound to the target variable after the variable assignment can be rendered and displayed on the application editing page. It can be understood here that: the variable value of the target variable after the variable assignment can be rendered on the application editing page, and then displayed on the target page component bound to the target variable after the variable assignment. For example, if the variable value of the target variable after the variable assignment is the user information of a certain user, then the variable value of the target variable after the variable assignment can be rendered and displayed on the target page component, that is, the user information of the user will be displayed on the target page component. For example, as shown in Figure 38, in response to the trigger operation of the running component in the application editing page, the application page 3431 can be displayed. At this time, the target page component (i.e., the service type component) of the displayed application page 3431 is displayed after rendering the target variable after the variable assignment.
[0226] It should be understood that in response to the triggering operation on the running component in the application editing page, the application page of the target application is in the running state. At this time, when the computer device triggers the target action event in steps S3303-S3304, the target variable can be assigned a value, and then the target page component bound to the target variable after the variable assignment is rendered and displayed.
[0227] Among them, it should be understood that by binding the target variable to the target page, the original need to call two interfaces to obtain the corresponding data can be merged into calling one interface to obtain the corresponding data, and the data returned by the interface can be assigned to the variable structure of the corresponding variable. The purpose of reducing one request can be achieved by rendering different structures of the variable on the application page.
[0228] In an embodiment of the present application, an application editing page is displayed, and in response to a triggering operation on a variable creation component in the application editing page, a variable creation page corresponding to the variable type indicated by the variable creation component is displayed. The application editing page includes an application page of a target application, and the application page includes one or more page components; in response to a variable definition operation triggered on a variable creation page, a target variable corresponding to the variable type is displayed on the variable creation page; in response to a triggering operation on an action adding component in the application editing page, an action event configuration page corresponding to the action adding component is displayed; in response to a triggering operation on a target action event in at least one action event, action configuration information corresponding to the target variable is displayed on the action configuration page corresponding to the target action event; when a target page component in one or more page components is selected, variable usage options corresponding to the target page component are displayed on the application editing page; in response to a triggering operation on the variable usage options corresponding to the target page component, a variable usage page is displayed, and the variable usage page includes a second parameter list; when an assigned target variable in the second parameter list is selected, a syntax expression corresponding to the assigned target variable is displayed in an expression display area of the variable usage page; in response to a confirmation operation on the assigned target variable, the assigned target variable is bound to the target page component; in response to a triggering operation on a running component in the application editing page, the assigned target variable is rendered and displayed on the application editing page. Through visual presentation, variable definition and variable use are carried out, thereby reducing the technical complexity from variable definition to variable use.
[0229] Please refer to Figure 39, which is a flowchart of a page processing method provided by an embodiment of the present application. The page processing method can be executed by a computer device, and the page processing method can include the following steps S3901 to S3911:
[0230] Step S3901: Display an application editing page. In response to a trigger operation on a variable creation component in the application editing page, display a variable creation page corresponding to the variable type indicated by the variable creation component. The application editing page includes an application page of the target application, and the application page includes one or more page components.
[0231] Step S3902: In response to the variable definition operation triggered on the variable creation page, the target variable corresponding to the variable type is displayed on the variable creation page;
[0232] Step S3903: In response to the triggering operation on the action adding component in the application editing page, an action event configuration page corresponding to the action adding component is displayed, and the action event configuration page includes at least one action event for assigning a variable to a target variable.
[0233] Step S3904: In response to a triggering operation on a target action event in at least one action event, displaying action configuration information corresponding to the target variable on an action configuration page corresponding to the target action event;
[0234] Step S3905: When the variable assignment to the target variable is completed based on the action configuration information, the action configuration page is switched to be displayed as an application editing page.
[0235] Step S3906: When a target page component is selected from one or more page components and the data source of the target page component is an interface, an input parameter setting option corresponding to the target page component is displayed in the application editing page.
[0236] In one embodiment, when a target page component among one or more page components is selected, the attribute information corresponding to the target page component can be displayed in the attribute display area in the application editing page, and the attribute information includes the data source of the target page component. When the data source of the target page component is an interface, the attribute display area in the application editing page displays the input parameter setting options corresponding to the target page component. Among them, the attribute display area can be any area in the application editing page. For example, as shown in Figure 40, when page component 4011 (i.e., the target page component) is selected, the attribute information corresponding to the page component 4011 can be displayed in the attribute display area 4012 in the application editing page 4001. The attribute information includes the data source of the page component 4011, i.e., in Figure 40, the data source of the page component 4011 is an interface, and the attribute display area 4012 in the application editing page displays the input parameter setting options 4013 corresponding to the target page component.
[0237] It is understood that one or more data sources are displayed in the data source setting area of the property display area 4012. The data source can be a model, an interface, a variable, etc. If the data source of the target page component is the target data source, the target source is highlighted in the data source setting area. For example, in FIG40 , the data source of the target page component is an interface (i.e., the target data source), and the interface is highlighted in the data source setting area (i.e., the interface is highlighted in the selected mode).
[0238] It should be understood that the highlighting involved in the embodiment of the present application may be displayed in a selected manner, displayed in bold, displayed in an enlarged manner, etc. The embodiment of the present application does not limit this.
[0239] Step S3907: In response to the triggering operation of the input parameter setting option corresponding to the target page component, an input parameter display area for entering the input parameter name and a variable setting area for determining the input parameter are displayed in the input parameter configuration interface.
[0240] It is understood that the trigger operation may be a click operation, a long press operation, a drag operation, a specific gesture (such as an OK gesture, an M gesture, etc.) input operation on the input parameter setting option, etc. For example, as shown in FIG41 , the user may click on the input parameter setting option corresponding to the target page component. In response to the click operation on the input parameter setting option 4013 corresponding to the target page component, an input parameter display area 1221 for entering the input parameter name and a variable setting area 4022 for determining the input parameter are displayed in the input parameter configuration interface 4002.
[0241] Step S3908: Display the names of the input parameters of the interface in the input parameter display area.
[0242] Among them, it can be understood that the input parameter settings of the interface call the parameters required by the interface. In response to the trigger operation of the input parameter setting option corresponding to the target page component, the name of the input parameter of the interface can be automatically displayed directly in the input parameter display area. For example, in Figure 41, the name of one input parameter of the interface displayed in the input parameter display area is aaa, and the name of the other input parameter is bbb. Optionally, the data type of the input parameter can be displayed in the input parameter display area 4021 (for example, the names of the two input parameters in Figure 41 are both int).
[0243] Step S3909: In response to the trigger operation on the input parameter setting area, a third parameter list is displayed, and the third parameter list includes the target variable after the variable assignment.
[0244] Among them, it can be understood that, as shown in Figure 41, the variable setting area 4022 includes an input parameter variable selection component 4023, and the trigger operation can be a click operation, a long press operation, etc. for the input parameter variable selection component 4023. For example, as shown in Figure 42, in response to the long press operation for the input parameter variable selection component 4023, the third parameter list 4024 is displayed. The third parameter list includes variables corresponding to the global variable type, constant variables, variables of the input parameter variable type, constants, variables corresponding to the system variable type, and parameter values corresponding to the component method. Among them, the variables corresponding to the global variable type include variable 2 (i.e., the target variable after the variable assignment). At this time, it is necessary to trigger the view option corresponding to the global variable type (i.e., 12 in Figure 42), and in response to the trigger operation of the view option, the variable 2 corresponding to the global variable type is displayed. Of course, in an embodiment of the present application, variable 2 can be displayed directly in the third parameter list.
[0245] It should be understood that the third parameter list may include one or more of the following: variables corresponding to global variable types, constant variables, variables of input variable types, constants, variables corresponding to system variable types, parameter values corresponding to component methods, and variables corresponding to page variable types. Of course, the third parameter list may also include other parameters (such as values corresponding to event parameters).
[0246] Among them, it can be understood that, in response to the trigger operation on the input parameter setting area, displaying the third parameter list may include but is not limited to: displaying the third parameter list in the input parameter setting area; displaying the third parameter list on the input parameter selection page; displaying the third parameter list in the input parameter setting page. For example, in Figure 42, the third parameter list is displayed in the input parameter setting page.
[0247] Step S3910: When the target variable after variable assignment is selected, the target variable after variable assignment is displayed in the input parameter setting area; the input parameter of the interface is the variable value of the target variable after variable assignment.
[0248] For example, in Figure 43, when variable 2 (i.e., the target variable after variable assignment) is selected, variable 2 is displayed in the input parameter setting area 4022. As an implementation, variable 2 can be displayed in the input parameter setting box 4025 in the input parameter setting area.
[0249] Step S3911: In response to a triggering operation on a running component in an application editing page, the target variable after variable assignment is rendered and displayed on the application editing page.
[0250] Among them, it can be understood that when the target variable after variable assignment is used as the input parameter of the interface, rendering and displaying the target variable after variable assignment on the application editing page can include: passing the variable value of the assigned target variable as the input parameter of the interface into the interface, and when the variable value of the assigned target variable is passed into the interface as the input parameter of the interface, displaying the interface page of the interface.
[0251] This can be understood as follows: on the application editing page, the variable value of the target variable after the variable assignment can be rendered, and the variable value of the target variable after the assignment is passed into the interface as the input parameter of the interface, so that the interface can be called to obtain the data required by the target page component. It should be understood that in response to the triggering operation of the running component in the application editing page, the application page of the target application is in the running state. At this time, when the computer device triggers the target action event in steps S3903-S3904, the target variable can be assigned a variable value, and then the variable value of the target variable after the assignment is passed into the interface as the input parameter of the interface.
[0252] In an embodiment of the present application, an application editing page is displayed, and in response to a triggering operation on a variable creation component in the application editing page, a variable creation page corresponding to the variable type indicated by the variable creation component is displayed. The application editing page includes an application page of a target application, and the application page includes one or more page components; in response to a variable definition operation triggered on the variable creation page, a target variable corresponding to the variable type is displayed on the variable creation page; in response to a triggering operation on an action adding component in the application editing page, an action event configuration page corresponding to the action adding component is displayed; in response to a triggering operation on a target action event in at least one action event, action configuration information corresponding to the target variable is displayed on the action configuration page corresponding to the target action event; when a target page component in one or more page components is selected and the data source of the target page component is an interface, the target page component is displayed in the application editing page. Corresponding input parameter setting options; in response to the trigger operation of the input parameter setting option corresponding to the target page component, an input parameter display area for entering the input parameter name and a variable setting area for determining the input parameter are displayed in the input parameter configuration interface; the name of the input parameter of the interface is displayed in the input parameter display area; in response to the trigger operation of the input parameter setting area, a third parameter list is displayed; when the target variable after variable assignment is selected, the target variable after variable assignment is displayed in the input parameter setting area; the variable value of the target variable after variable assignment is the input parameter of the interface; variable definition to variable use can be carried out through a visual presentation method, thereby reducing the technical complexity from variable definition to variable use.
[0253] Further, please refer to Figure 44, which is a structural diagram of a page processing device provided by the present application. The page processing device 450 can be set in the computer device provided in the embodiment of the present application. The page processing device 450 shown in Figure 44 can be a computer-readable instruction (including program code) running in the computer device, and the page processing device 450 can be used to execute some or all of the steps in the method embodiments shown in Figures 4, 33 and 39. Referring to Figure 44, the page processing device may include the following units: a page display unit 4411, a variable display unit 4412, an action configuration unit 4413, a switching display unit 4414, and a rendering display unit 4415;
[0254] The page display unit 4411 is used to display the application editing page. In response to the triggering operation of the variable creation component in the application editing page, the variable creation page corresponding to the variable type indicated by the variable creation component is displayed;
[0255] The variable display unit 4412 is configured to display a target variable corresponding to a variable type on the variable creation page in response to a variable definition operation triggered on the variable creation page;
[0256] The action configuration unit 4413 is further configured to, in response to a triggering operation on the action adding component in the application editing page, display an action event configuration page corresponding to the action adding component, the action event configuration page including at least one action event for assigning a value to a target variable;
[0257] The action configuration unit 4413 is further configured to, in response to a triggering operation on a target action event in at least one action event, display action configuration information corresponding to the target variable on an action configuration page corresponding to the target action event;
[0258] The switching display unit 4414 is used to switch the action configuration page to the application editing page when the variable assignment to the target variable is completed based on the action configuration information;
[0259] The rendering and display unit 4415 is configured to render and display the target variable after the variable assignment on the application editing page in response to a triggering operation on the running component in the application editing page.
[0260] Among them, the variable creation component in the application editing page includes at least one of a global variable creation component, an input parameter variable creation component or a page variable creation component, and the variable type includes: at least one of the global variable type corresponding to the global variable creation component, the input parameter variable type corresponding to the input parameter variable creation component or the page variable type corresponding to the page variable creation component.
[0261] The variable display unit 4412 includes:
[0262] The variable type display subunit 44121 is used to display the variable type in the type display area of the variable creation page in response to a variable definition operation triggered on the variable creation page. The displayed variable type is the variable type of the initial variable, which is the variable to be defined on the variable creation page.
[0263] The variable identification display subunit 44122 is further configured to respond to an identification entry operation in the variable identification area on the variable creation page and display the entered target identification information in the variable identification area, where the target identification information is the variable identification information of the initial variable;
[0264] An output subunit 44123 is configured to output M candidate data types in response to a type trigger operation in the data type area in the variable creation page, where M is a positive integer;
[0265] a data type display subunit 44124 for displaying the target data type in the data type area in response to a type selection operation on the target data type among the M candidate data types, the target data type being the data type of the initial variable;
[0266] The first variable display subunit 44125 is used to use the initial variable with the target data type, target identification information and variable type as the target variable, and display the target variable in the variable creation page; the target variable is the variable defined in the variable creation page.
[0267] The output subunit 44123 is used to:
[0268] In response to a triggering operation on the type selection component in the data type area, M candidate data types are output.
[0269] In one embodiment, the variable display unit 4412 is further configured to display the target variable structure of the target variable on the variable structure editing page in response to a variable structure editing operation on the variable creation page;
[0270] The switching display unit 4414 is also used to switch the display from the variable structure editing page to the variable creation page in response to a confirmation operation on the target variable structure, and display the target variable structure of the target variable in the variable structure display area in the variable creation page, where the target variable structure includes one or more target structure parameters.
[0271] The variable display unit 4412 includes:
[0272] The page display subunit 44126 is used to display a variable structure editing page in response to a variable structure editing operation in a variable creation page; the variable structure editing page includes one or more variable structures; a variable structure includes one or more structure parameters;
[0273] The first variable display subunit 44125 is used to display target structure parameters included in the target variable structure in the variable structure display area of the variable structure editing page when a target variable structure is selected from one or more variable structures.
[0274] The variable display unit 4412 includes:
[0275] A first variable display subunit 44125 is configured to display one or more variable structure sources in the variable structure source area of the variable structure editing page in response to a variable structure editing operation in the variable creation page;
[0276] A highlighting subunit 44127 is configured to highlight a target variable structure source in the variable structure source area in response to a triggering operation on a target variable structure source among the one or more variable structure sources;
[0277] A first variable display subunit 44125 is configured to display one or more variable structures associated with a target variable structure source in response to a triggering operation on a variable structure identification area in a variable structure editing page;
[0278] The first variable display subunit 44125 is used to display the identifier of the target variable structure in the variable structure identification area in response to a trigger operation on the target variable structure in one or more variable structures, and to display the target structure parameters contained in the target variable structure in the variable structure content area in the variable structure editing page.
[0279] The action configuration unit 4413 includes:
[0280] Configuration display subunit 44131, configured to, in response to a triggering operation for a call interface event in at least one action event, display an action configuration page corresponding to the call interface event, the action configuration page comprising a call interface display area and a first variable assignment area, the call interface display area being used to display interface information, and the first variable assignment area being used to display a target variable to be assigned;
[0281] The information display subunit 44132 is used to display one or more interfaces in response to an interface selection operation invoking the interface display area;
[0282] The information display subunit 44132 is further configured to display the interface information of the target interface in the calling interface display area when the target interface among the one or more interfaces is selected;
[0283] The second variable display subunit 44133 is configured to display a first variable list in response to a trigger operation in the first variable assignment area, wherein the first variable list includes a target variable;
[0284] The second variable display subunit 44133 is used to display the target variable to be assigned in the first variable assignment area when the target variable is selected; wherein the variable value of the target variable after the variable assignment is the data returned by calling the target interface.
[0285] The action configuration unit 4413 includes:
[0286] Configuration display subunit 44131 is configured to, in response to a trigger operation for a form submission event in at least one action event, display an action configuration page corresponding to the form submission event, the action configuration page comprising a form information display area and a second variable assignment area; the form information display area is used to display form information, and the second variable assignment area is used to display a target variable to be assigned a value;
[0287] The information display subunit 44132 is used to display form information of one or more forms in response to a form selection operation in the form information display area;
[0288] The information display subunit 44132 is configured to display the form information of the target form in the form information display area when the form information of the target form is selected from the form information of one or more forms;
[0289] The second variable display subunit 44133 is configured to display a second variable list in response to a trigger operation in the second variable assignment area, wherein the second variable list includes a target variable;
[0290] The second variable display subunit 44133 is used to display the target variable to be assigned in the second variable assignment area when the target variable is selected; wherein the variable value of the target variable after variable assignment is the data returned when the target form is submitted.
[0291] The action configuration unit 4413 includes:
[0292] The configuration display subunit 44131 is configured to display an action configuration page corresponding to the variable assignment event in response to a triggering operation on a variable assignment event in at least one action event;
[0293] The second variable display subunit 44133 is configured to display a third variable list to be assigned a value in response to a trigger operation on the variable selection area in the action configuration page, wherein the third variable list includes a target variable;
[0294] The second variable display subunit 44133 is used to display the target variable to be assigned in the variable selection area of the action configuration page when the target variable is selected;
[0295] The parameter display subunit 44134 is configured to display an expression setting page in response to a trigger operation on the parameter expression display area in the action configuration page, wherein the expression setting page includes a first parameter list, the first parameter list includes one or more parameters, and the parameters include variables after variable assignment, component methods, event parameters, and constants;
[0296] The parameter display subunit 44134 is further configured to, in response to a parameter selection operation on a target parameter in the first parameter list, display a target syntax expression corresponding to the target parameter in the expression display area of the expression setting page;
[0297] The parameter display subunit 44134 is also used to display the target parameter in the parameter display area of the action configuration page when the confirmation option in the expression setting page is triggered; the variable value of the target variable after the variable is assigned is the parameter value corresponding to the target parameter.
[0298] The parameter display subunit 44134 is further used for:
[0299] When the expression validation option is triggered, the debugging results of the target syntax expression are displayed in the debug display area of the expression setting page.
[0300] The variable display unit 4412 further includes:
[0301] The first variable display subunit 44125 is configured to display variable usage options corresponding to a target page component in the application editing page when the target page component is selected from the one or more page components;
[0302] The page display subunit 44126 is configured to display a variable usage page in response to a trigger operation on a variable usage option, wherein the variable usage page includes a second parameter list, and the second parameter list includes at least one parameter, wherein the parameter includes: a target variable after variable assignment, a component method, an event parameter, and a constant;
[0303] The first variable display subunit 44125 is configured to display the syntax expression corresponding to the assigned target variable in the expression display area of the variable use page when the assigned target variable in the second parameter list is selected;
[0304] The binding subunit 44128 binds the target variable after the variable assignment to the target page component in response to a confirmation operation on the target variable after the variable assignment.
[0305] Among them, the rendering display unit 4415 is used to:
[0306] On the application editing page, the target page component bound to the target variable after the variable assignment is rendered and displayed.
[0307] The variable display unit 4412 further includes:
[0308] The first variable display subunit 44125 is configured to display input parameter setting options corresponding to the target page component in the application editing page when the target page component is selected from one or more page components and the data source of the target page component is an interface;
[0309] The page display subunit 44126 is configured to display, in response to a triggering operation on an input parameter setting option corresponding to a target page component, an input parameter display area for inputting input parameter names and a variable setting area for determining input parameters in the input parameter configuration interface;
[0310] The input parameter display subunit 44129 is used to display the names of the input parameter of the interface in the input parameter display area;
[0311] The first variable display subunit 44125 is configured to display a third parameter list in response to a trigger operation on the input parameter setting area, where the third parameter list includes target variables after variable assignment;
[0312] The first variable display subunit 44125 is used to display the target variable after variable assignment in the input parameter setting area when the target variable after variable assignment is selected; the input parameter of the interface is the variable value of the target variable after variable assignment.
[0313] The rendering and display unit 4415 is used to:
[0314] When the variable value of the assigned target variable is passed into the interface as the input parameter of the interface, the interface page of the interface is displayed.
[0315] The device further comprises:
[0316] Filling unit 4416, for filling in the application name of the target application to be created in the visual application platform in response to a triggering operation on the application creation component in the visual application platform;
[0317] The page display unit 4411 is configured to display an application editing page of a target application on the visual application platform when the application editing component in the visual application platform is triggered;
[0318] The page display unit 4411 is further configured to display the application page of the target application in the page display area of the application editing page in response to a triggering operation of the page creation component in the application editing page.
[0319] In an embodiment of the present application, an application editing page is displayed, and in response to a triggering operation for a variable creation component in the application editing page, a variable creation page corresponding to the variable type indicated by the variable creation component is displayed; in response to a variable definition operation triggered on the variable creation page, a target variable corresponding to the variable type is displayed on the variable creation page; in response to a triggering operation for an action adding component in the application editing page, an action event configuration page corresponding to the action adding component is displayed, and the action event configuration page contains at least one action event for performing variable assignment on the target variable; in response to a triggering operation for a target action event in at least one action event, action configuration information corresponding to the target variable is displayed on the action configuration page corresponding to the target action event; when the variable assignment to the target variable is completed based on the action configuration information, the action configuration page is switched to be displayed as an application editing page; in response to a triggering operation for a running component in the application editing page, the target variable after variable assignment is rendered and displayed on the application editing page. Through a visual presentation method, variable definition is performed to variable use, thereby reducing the technical complexity from variable definition to variable use.
[0320] Furthermore, an embodiment of the present application also provides a schematic diagram of the structure of a computer device, which can be seen in Figure 45 . The computer device may include: a processor 4501, an input device 4502, an output device 4503, and a memory 4504. The processor 4501, input device 4502, output device 4503, and memory 4504 are connected via a bus. The memory 4504 is used to store computer-readable instructions, including program instructions, and the processor 4501 is used to execute the program instructions stored in the memory 4504.
[0321] In one embodiment, the processor 4501 performs the following operations by running the executable program code in the memory 4504:
[0322] Displaying an application editing page, and in response to a triggering operation on a variable creation component in the application editing page, displaying a variable creation page corresponding to the variable type indicated by the variable creation component;
[0323] In response to a variable definition operation triggered on a variable creation page, a target variable corresponding to the variable type is displayed on the variable creation page;
[0324] In response to a triggering operation on an action adding component in an application editing page, an action event configuration page corresponding to the action adding component is displayed, wherein the action event configuration page includes at least one action event for assigning a variable value to a target variable;
[0325] In response to a triggering operation on a target action event among the at least one action event, displaying action configuration information corresponding to the target variable on an action configuration page corresponding to the target action event;
[0326] When the variable assignment to the target variable is completed based on the action configuration information, the action configuration page is switched to the application editing page;
[0327] In response to a triggering operation on the running component in the application editing page, the target variable after the variable assignment is rendered and displayed on the application editing page.
[0328] Among them, the variable creation component in the application editing page includes at least one of a global variable creation component, an input parameter variable creation component or a page variable creation component, and the variable type includes: at least one of the global variable type corresponding to the global variable creation component, the input parameter variable type corresponding to the input parameter variable creation component or the page variable type corresponding to the page variable creation component.
[0329] In response to the variable definition operation triggered on the variable creation page, the processor 4501 specifically performs the following steps when displaying the target variable corresponding to the variable type on the variable creation page:
[0330] In response to a variable definition operation triggered on a variable creation page, the variable type is displayed in the type display area of the variable creation page. The displayed variable type is the variable type of the initial variable, which is the variable to be defined on the variable creation page.
[0331] In response to an identification input operation in the variable identification area of the variable creation page, the input target identification information is displayed in the variable identification area, where the target identification information is the variable identification information of the initial variable;
[0332] In response to a type trigger operation on the data type area in the variable creation page, output M candidate data types, where M is a positive integer;
[0333] In response to a type selection operation for a target data type among the M candidate data types, the target data type is displayed in the data type area, the target data type being the data type of the initial variable;
[0334] The initial variable with the target data type, target identification information and variable type is used as the target variable, and the target variable is displayed on the variable creation page; the target variable is the variable defined on the variable creation page.
[0335] In response to the type triggering operation in the data type area of the variable creation page, when outputting M candidate data types, the processor 4501 specifically performs the following steps:
[0336] In response to a triggering operation on the type selection component in the data type area, M candidate data types are output.
[0337] The processor 4501 is further configured to:
[0338] In response to a variable structure editing operation in a variable creation page, displaying a target variable structure of the target variable on a variable structure editing page;
[0339] In response to a confirmation operation on the target variable structure, the display is switched from the variable structure editing page to the variable creation page, and the target variable structure of the target variable is displayed in the variable structure display area in the variable creation page, where the target variable structure includes one or more target structure parameters.
[0340] In response to the variable structure editing operation in the variable creation page, when the target variable structure of the target variable is displayed on the variable structure editing page, the processor 4501 specifically performs the following steps:
[0341] In response to a variable structure editing operation in a variable creation page, a variable structure editing page is displayed; the variable structure editing page includes one or more variable structures; a variable structure includes one or more structure parameters;
[0342] When a target variable structure in one or more variable structures is selected, the target structure parameters contained in the target variable structure are displayed in the variable structure display area of the variable structure editing page.
[0343] In response to the variable structure editing operation in the variable creation page, when the target variable structure of the target variable is displayed on the variable structure editing page, the processor 4501 specifically performs the following steps:
[0344] In response to a variable structure editing operation in a variable creation page, displaying one or more variable structure sources in a variable structure source area of a variable structure editing page;
[0345] In response to a triggering operation on a target variable structure source from the one or more variable structure sources, highlighting the target variable structure source in a variable structure source area;
[0346] In response to a triggering operation on a variable structure identification area in a variable structure editing page, displaying one or more variable structures associated with a target variable structure source;
[0347] In response to a trigger operation on a target variable structure in one or more variable structures, the identifier of the target variable structure is displayed in the variable structure identifier area, and the target structure parameters contained in the target variable structure are displayed in the variable structure content area in the variable structure editing page.
[0348] In one embodiment, the target action event is a call interface event. When the processor 4501 displays action configuration information corresponding to the target variable on the action configuration page corresponding to the target action event in response to a trigger operation for the target action event in at least one action event, the processor 4501 specifically performs the following steps:
[0349] In response to a triggering operation for a call interface event in at least one action event, an action configuration page corresponding to the call interface event is displayed, the action configuration page including a call interface display area and a first variable assignment area, the call interface display area being used to display interface information, and the first variable assignment area being used to display a target variable to be assigned a value;
[0350] In response to an interface selection operation invoking the interface display area, displaying one or more interfaces;
[0351] When a target interface among one or more interfaces is selected, the interface information of the target interface is displayed in the calling interface display area;
[0352] In response to a triggering operation of the first variable assignment area, a first variable list is displayed, wherein the first variable list includes a target variable;
[0353] When the target variable is selected, the target variable to be assigned is displayed in the first variable assignment area; wherein the variable value of the target variable after the variable assignment is the data returned by calling the target interface.
[0354] The target action event is a form submission event; in response to a triggering operation for the target action event in at least one action event, the processor 4501 displays action configuration information corresponding to the target variable on the action configuration page corresponding to the target action event, and specifically performs the following steps:
[0355] In response to a triggering operation for a form submission event in at least one action event, an action configuration page corresponding to the form submission event is displayed, the action configuration page including a form information display area and a second variable assignment area; the form information display area is used to display form information, and the second variable assignment area is used to display a target variable to be assigned a value;
[0356] In response to a form selection operation in the form information display area, displaying form information of one or more forms;
[0357] When form information of a target form in form information of one or more forms is selected, the form information of the target form is displayed in the form information display area;
[0358] In response to a triggering operation of the second variable assignment area, a second variable list is displayed, wherein the second variable list includes a target variable;
[0359] When the target variable is selected, the target variable to be assigned is displayed in the second variable assignment area; wherein the variable value of the target variable after the variable assignment is the data returned when the target form is submitted.
[0360] The target action event includes a variable assignment event. When the processor 4501 displays the action configuration information corresponding to the target variable on the action configuration page corresponding to the target action event in response to the triggering operation of the target action event in at least one action event, the processor 4501 specifically performs the following steps:
[0361] In response to a triggering operation on a variable assignment event in at least one action event, displaying an action configuration page corresponding to the variable assignment event;
[0362] In response to a trigger operation on a variable selection area in an action configuration page, a third variable list to be assigned a value to is displayed, wherein the third variable list includes a target variable;
[0363] When the target variable is selected, the target variable to be assigned is displayed in the variable selection area of the action configuration page;
[0364] In response to a trigger operation on a parameter expression display area in an action configuration page, an expression setting page is displayed, wherein the expression setting page includes a first parameter list, the first parameter list includes one or more parameters, and the parameters include variables after variable assignment, component methods, event parameters, and constants;
[0365] In response to a parameter selection operation for a target parameter in the first parameter list, a target syntax expression corresponding to the target parameter is displayed in an expression display area of the expression setting page;
[0366] When the confirmation option in the expression setting page is triggered, the target parameter is displayed in the parameter display area of the action configuration page; the variable value of the target variable after the variable assignment is the parameter value corresponding to the target parameter.
[0367] In one embodiment, the expression setting page includes an expression validation option for the target syntax expression, and the processor 4501 further performs the following steps:
[0368] When the expression validation option is triggered, the debugging results of the target syntax expression are displayed in the debug display area of the expression setting page.
[0369] In one embodiment, the application editing page includes an application page of the target application, and the application page includes one or more page components; the processor 4501 further performs the following steps:
[0370] When a target page component is selected from one or more page components, the variable usage options corresponding to the target page component are displayed in the application editing page;
[0371] In response to a trigger operation for a variable use option, a variable use page is displayed, the variable use page including a second parameter list, the second parameter list including at least one parameter, the parameter including: a target variable after variable assignment, a component method, an event parameter, and a constant;
[0372] When the assigned target variable in the second parameter list is selected, the syntax expression corresponding to the assigned target variable is displayed in the expression display area of the variable usage page;
[0373] In response to a confirmation operation on the target variable after the variable assignment, the target variable after the variable assignment is bound to the target page component.
[0374] The processor 4501 renders and displays the target variable after the variable assignment on the application editing page, specifically performing the following steps:
[0375] On the application editing page, the target page component bound to the target variable after the variable assignment is rendered and displayed.
[0376] The application editing page includes an application page of the target application, and the application page includes one or more page components. The processor 4501 further performs the following steps:
[0377] When a target page component is selected from one or more page components and its data source is an interface, the input parameter setting options corresponding to the target page component are displayed on the application editing page;
[0378] In response to a triggering operation on an input parameter setting option corresponding to a target page component, an input parameter display area for entering an input parameter name and a variable setting area for determining a variable as an input parameter are displayed in the input parameter configuration interface;
[0379] Display the names of the interface input parameters in the input parameter display area;
[0380] In response to a trigger operation on the input parameter setting area, a third parameter list is displayed, where the third parameter list includes target variables after variable assignment;
[0381] When the target variable after variable assignment is selected, the target variable after variable assignment is displayed in the input parameter setting area, and the input parameter of the interface is the variable value of the target variable after variable assignment.
[0382] When the processor 4501 renders and displays the target variable after the variable assignment on the application editing page, it specifically performs the following steps:
[0383] When the variable value of the assigned target variable is passed into the interface as the input parameter of the interface, the interface page of the interface is displayed.
[0384] The processor 4501 further performs the following steps:
[0385] In response to a triggering operation on an application creation component in the visualization application platform, filling in an application name of a target application to be created in the visualization application platform;
[0386] When the application editing component in the visual application platform is triggered, the application editing page of the target application is displayed on the visual application platform;
[0387] In response to a triggering operation of a page creation component in the application editing page, an application page of the target application is displayed in a page display area of the application editing page.
[0388] In an embodiment of the present application, an application editing page is displayed, and in response to a triggering operation for a variable creation component in the application editing page, a variable creation page corresponding to the variable type indicated by the variable creation component is displayed; in response to a variable definition operation triggered on the variable creation page, a target variable corresponding to the variable type is displayed on the variable creation page; in response to a triggering operation for an action adding component in the application editing page, an action event configuration page corresponding to the action adding component is displayed, and the action event configuration page contains at least one action event for performing variable assignment on the target variable; in response to a triggering operation for a target action event in at least one action event, action configuration information corresponding to the target variable is displayed on the action configuration page corresponding to the target action event; when the variable assignment to the target variable is completed based on the action configuration information, the action configuration page is switched to be displayed as an application editing page; in response to a triggering operation for a running component in the application editing page, the target variable after variable assignment is rendered and displayed on the application editing page. Variable definition to variable use can be performed through a visual presentation method, thereby reducing the technical complexity from variable definition to variable use.
[0389] In addition, it should be pointed out here that: the embodiment of the present application also provides a computer-readable storage medium, and the computer-readable storage medium stores computer-readable instructions executed by the aforementioned page processing device, and the computer-readable instructions include computer-readable instructions. When the processor executes the computer-readable instructions, it can execute the description of the page processing method in the embodiment corresponding to Figure 4, Figure 33 or Figure 39 above, so it will not be repeated here. In addition, the description of the beneficial effects of adopting the same method will not be repeated. For technical details not disclosed in the computer-readable storage medium embodiment involved in this application, please refer to the description of the method embodiment of this application. As an example, the computer-readable instructions can be deployed on a computing device for execution, or on multiple computing devices located at one location, or on multiple computing devices distributed at multiple locations and interconnected by a communication network.
[0390] In addition, it should be noted that: the embodiment of the present application also provides a computer program product or computer-readable instructions, which may include computer-readable instructions, and the computer-readable instructions may be stored in a computer-readable storage medium. The processor of the computer device reads the computer-readable instructions from the computer-readable storage medium, and the processor can execute the computer-readable instructions, so that the computer device executes the description of the page processing method in the embodiment corresponding to Figure 4, Figure 33 or Figure 39 above, and therefore, it will not be repeated here. In addition, the description of the beneficial effects of using the same method will not be repeated. For technical details not disclosed in the computer program product or computer-readable instruction embodiment involved in this application, please refer to the description of the method embodiment of this application.
[0391] Those skilled in the art will appreciate that all or part of the processes in the above-described method embodiments can be implemented by instructing related hardware via computer-readable instructions. The program can be stored in a computer-readable storage medium, and when executed, the program can include the processes in the above-described method embodiments. The storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
[0392] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0393] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that a person skilled in the art could make various modifications and improvements without departing from the spirit of the present application, all of which fall within the scope of protection of the present application. Therefore, the scope of protection of the present patent application shall be determined by the appended claims.
Claims
1. A page processing method, executed by a computer device, comprising: Displaying an application editing page, and in response to a triggering operation on a variable creation component in the application editing page, displaying a variable creation page corresponding to the variable type indicated by the variable creation component; In response to a variable definition operation triggered on the variable creation page, displaying a target variable corresponding to the variable type on the variable creation page; In response to a triggering operation on an action adding component in the application editing page, an action event configuration page corresponding to the action adding component is displayed, wherein the action event configuration page includes at least one action event for performing variable assignment on the target variable; In response to a triggering operation on a target action event among the at least one action event, displaying action configuration information corresponding to the target variable on an action configuration page corresponding to the target action event; When the variable assignment of the target variable is completed based on the action configuration information, switching the action configuration page to display the application editing page; and In response to a triggering operation on a running component in the application editing page, a target variable after variable assignment is rendered and displayed on the application editing page.
2. According to the method described in claim 1, the variable creation component in the application editing page includes at least one of a global variable creation component, an input parameter variable creation component or a page variable creation component, and the variable type includes: at least one of a global variable type corresponding to the global variable creation component, an input parameter variable type corresponding to the input parameter variable creation component or a page variable type corresponding to the page variable creation component.
3. The method according to claim 1 or 2, wherein in response to the variable definition operation triggered on the variable creation page, displaying the target variable corresponding to the variable type on the variable creation page comprises: In response to a variable definition operation triggered on the variable creation page, displaying the variable type in a type display area on the variable creation page, wherein the displayed variable type is a variable type of an initial variable, and the initial variable is a variable to be defined on the variable creation page; In response to an identification entry operation for a variable identification area in the variable creation page, displaying the entered target identification information in the variable identification area, the target identification information being the variable identification information of the initial variable; In response to a type trigger operation on a data type area in the variable creation page, output M candidate data types, where M is a positive integer; In response to a type selection operation for a target data type among the M candidate data types, displaying the target data type in the data type area, the target data type being the data type of the initial variable; The initial variable having the target data type, the target identification information and the variable type is used as the target variable, and the target variable is displayed in the variable creation page. The target variable is the variable defined in the variable creation page.
4. The method according to claim 3, wherein the outputting M candidate data types in response to the type triggering operation in the data type area in the variable creation page comprises: In response to a triggering operation on a type selection component in the data type area, M candidate data types are output.
5. The method according to claim 3 or 4, further comprising: In response to the variable structure editing operation in the variable creation page, displaying the target variable structure of the target variable on the variable structure editing page; In response to a confirmation operation on the target variable structure, the display is switched from the variable structure editing page to the variable creation page, and the target variable structure of the target variable is displayed in the variable structure display area in the variable creation page, the target variable structure including one or more target structure parameters.
6. The method according to claim 5, wherein in response to the variable structure editing operation in the variable creation page, displaying the target variable structure of the target variable on the variable structure editing page comprises: In response to the variable structure editing operation in the variable creation page, a variable structure editing page is displayed, wherein the variable structure editing page includes one or more variable structures, and a variable structure includes one or more structure parameters; When a target variable structure among the one or more variable structures is selected, target structure parameters included in the target variable structure are displayed in a variable structure display area of the variable structure editing page.
7. The method according to claim 5, wherein in response to the variable structure editing operation in the variable creation page, displaying the target variable structure of the target variable on the variable structure editing page comprises: In response to a variable structure editing operation in the variable creation page, displaying one or more variable structure sources in a variable structure source area of the variable structure editing page; In response to a trigger operation on a target variable structure source among the one or more variable structure sources, highlighting the target variable structure source in the variable structure source area; In response to a trigger operation on a variable structure identification area in the variable structure editing page, displaying one or more variable structures associated with the target variable structure source; In response to a trigger operation on a target variable structure among the one or more variable structures, an identifier of the target variable structure is displayed in the variable structure identifier area, and target structure parameters contained in the target variable structure are displayed in the variable structure content area in the variable structure editing page.
8. The method according to any one of claims 1 to 7, wherein the target action event is a call interface event, and the response to the trigger operation of the target action event in the at least one action event, displaying the action configuration information corresponding to the target variable on the action configuration page corresponding to the target action event, comprises: In response to a trigger operation for a call interface event in the at least one action event, an action configuration page corresponding to the call interface event is displayed, wherein the action configuration page includes a call interface display area and a first variable assignment area, wherein the call interface display area is used to display interface information, and the first variable assignment area is used to display a target variable to be assigned a value; In response to an interface selection operation in the calling interface display area, displaying one or more interfaces; When a target interface among the one or more interfaces is selected, displaying interface information of the target interface in the calling interface display area; In response to a trigger operation of the first variable assignment area, displaying a first variable list, wherein the first variable list includes the target variable; When the target variable is selected, the target variable to be assigned is displayed in the first variable assignment area, wherein the variable value of the target variable after the variable assignment is the data returned by calling the target interface.
9. The method according to any one of claims 1 to 7, wherein the target action event is a form submission event, and the response to the triggering operation of the target action event in the at least one action event, displaying the action configuration information corresponding to the target variable on the action configuration page corresponding to the target action event, comprises: In response to a trigger operation for a form submission event in the at least one action event, an action configuration page corresponding to the form submission event is displayed, the action configuration page comprising a form information display area and a second variable assignment area, the form information display area is used to display form information, and the second variable assignment area is used to display a target variable to be assigned a value; In response to a form selection operation in the form information display area, displaying form information of one or more forms; When form information of a target form in the form information of the one or more forms is selected, displaying the form information of the target form in the form information display area; In response to a trigger operation of the second variable assignment area, displaying a second variable list, wherein the second variable list includes the target variable; When the target variable is selected, the target variable to be assigned is displayed in the second variable assignment area, wherein the variable value of the target variable after the variable assignment is the data returned when the target form is submitted.
10. The method according to any one of claims 1 to 7, wherein the target action event comprises a variable assignment event, and the response to the triggering operation of the target action event in the at least one action event, displaying the action configuration information corresponding to the target variable on the action configuration page corresponding to the target action event, comprises: In response to a trigger operation on a variable assignment event in the at least one action event, displaying an action configuration page corresponding to the variable assignment event; In response to a trigger operation on a variable selection area in the action configuration page, displaying a third variable list to be assigned a variable value, wherein the third variable list includes the target variable; When the target variable is selected, the target variable to be assigned is displayed in the variable selection area of the action configuration page; In response to a trigger operation on a parameter expression display area in the action configuration page, an expression setting page is displayed, wherein the expression setting page includes a first parameter list, wherein the first parameter list includes one or more parameters, wherein the parameters include variables after variable assignment, component methods, event parameters, and constants; In response to a parameter selection operation for a target parameter in the first parameter list, displaying a target syntax expression corresponding to the target parameter in an expression display area of the expression setting page; When the confirmation option in the expression setting page is triggered, the target parameter is displayed in the parameter display area of the action configuration page, and the variable value of the target variable after the variable assignment is the parameter value corresponding to the target parameter.
11. The method according to claim 10, wherein the expression setting page comprises an expression validation option for the target syntax expression, and the method further comprises: When the expression verification option is triggered, the debugging result of the target syntax expression is displayed in the debugging display area of the expression setting page.
12. The method according to claim 1, wherein the application editing page includes an application page of a target application, and the application page includes one or more page components, and the method further includes: When a target page component among the one or more page components is selected, a variable usage option corresponding to the target page component is displayed in the application editing page; In response to a trigger operation for the variable use option, a variable use page is displayed, the variable use page includes a second parameter list, the second parameter list includes at least one parameter, the parameter includes: a target variable after variable assignment, a component method, an event parameter, and a constant; When the assigned target variable in the second parameter list is selected, the syntax expression corresponding to the assigned target variable is displayed in the expression display area of the variable use page; In response to a confirmation operation on the target variable after the variable assignment, the target variable after the variable assignment is bound to the target page component.
13. The method according to claim 12, wherein rendering and displaying the target variable after variable assignment on the application editing page comprises: On the application editing page, the target page component bound to the target variable after the variable assignment is rendered and displayed.
14. The method according to claim 1, wherein the application editing page includes an application page of a target application, and the application page includes one or more page components, and the method further includes: When a target page component among the one or more page components is selected and the data source of the target page component is an interface, an input parameter setting option corresponding to the target page component is displayed in the application editing page; In response to a trigger operation on an input parameter setting option corresponding to the target page component, an input parameter display area for inputting an input parameter name and a variable setting area for determining a variable as an input parameter are displayed in an input parameter configuration interface; Display the name of the input parameter of the interface in the input parameter display area; In response to a trigger operation on the input parameter setting area, displaying a third parameter list, wherein the third parameter list includes target variables after variable assignment; When the target variable after the variable assignment is selected, the target variable after the variable assignment is displayed in the input parameter setting area, and the input parameter of the interface is the variable value of the target variable after the variable assignment.
15. The method according to claim 14, wherein rendering and displaying the target variable after variable assignment on the application editing page comprises: When the variable value of the assigned target variable is passed into the interface as an input parameter of the interface, the interface page of the interface is displayed.
16. The method according to claim 12 or 14, further comprising: In response to a triggering operation on an application creation component in a visualization application platform, filling in an application name of a target application to be created in the visualization application platform; When the application editing component in the visualization application platform is triggered, an application editing page of the target application is displayed on the visualization application platform; In response to a triggering operation of a page creation component in the application editing page, an application page of a target application is displayed in a page display area of the application editing page.
17. A page processing device, comprising: A page display unit, configured to display an application editing page, and in response to a triggering operation on a variable creation component in the application editing page, display a variable creation page corresponding to a variable type indicated by the variable creation component; a variable display unit, configured to display a target variable corresponding to the variable type in the variable creation page in response to a variable definition operation triggered on the variable creation page; The action configuration unit is further configured to, in response to a trigger operation on the action adding component in the application editing page, display an action event configuration page corresponding to the action adding component, wherein the action event configuration page includes at least one action event for performing variable assignment on the target variable; The action configuration unit is further configured to, in response to a trigger operation on a target action event in the at least one action event, display action configuration information corresponding to the target variable on an action configuration page corresponding to the target action event; A switching display unit, configured to switch and display the action configuration page to the application editing page when the variable assignment to the target variable is completed based on the action configuration information; and The rendering and displaying unit is used to render and display the target variable after the variable assignment on the application editing page in response to the triggering operation on the running component in the application editing page.
18. A computer device comprising a memory and a processor; The memory is connected to the processor, the memory is used to store computer-readable instructions, and the processor is used to call the computer-readable instructions so that the computer device executes the method according to any one of claims 1 to 16.
19. A computer-readable storage medium storing computer-readable instructions, wherein the computer-readable instructions are suitable for being loaded and executed by a processor, so that a computer device having the processor executes the method according to any one of claims 1 to 16.
20. A computer program product, comprising computer readable instructions, wherein when the computer readable instructions are executed by a processor, the method according to any one of claims 1 to 16 is implemented.
