CN112269517B - Generation method and device of interactive interface - Google Patents

Generation method and device of interactive interface Download PDF

Info

Publication number
CN112269517B
CN112269517B CN202011282332.5A CN202011282332A CN112269517B CN 112269517 B CN112269517 B CN 112269517B CN 202011282332 A CN202011282332 A CN 202011282332A CN 112269517 B CN112269517 B CN 112269517B
Authority
CN
China
Prior art keywords
numerical value
value
dimensional matrix
dimensional
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011282332.5A
Other languages
Chinese (zh)
Other versions
CN112269517A (en
Inventor
余鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202011282332.5A priority Critical patent/CN112269517B/en
Publication of CN112269517A publication Critical patent/CN112269517A/en
Application granted granted Critical
Publication of CN112269517B publication Critical patent/CN112269517B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04812Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

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

Abstract

The application discloses a method and a device for generating an interactive interface, particularly relates to the technical field of artificial intelligence, and further relates to the technical field of interface interaction. The specific implementation mode comprises the following steps: acquiring a two-dimensional matrix; in response to a selection event which is obtained by one of two selection frames of the two-way two-level linkage, searching at least one numerical value corresponding to a target numerical value indicated by the selection event in the two-dimensional matrix, wherein the target numerical value is one of the first numerical value and the second numerical value, and the at least one numerical value is the other one; determining the at least one value as a user-selectable item of another selection box, and outputting the user-selectable item. According to the method and the device, the corresponding relation between the first numerical value and the second numerical value can be embodied by the two-dimensional matrix, so that when the numerical value corresponding to the numerical value selected by the user is searched, the quick search can be realized in the two-dimensional matrix, and the generation efficiency of the human-computer interaction interface is improved.

Description

Generation method and device of interactive interface
Technical Field
The application relates to the technical field of computers, in particular to the technical field of artificial intelligence, further relates to the technical field of interface interaction, and particularly relates to a method and a device for generating an interactive interface.
Background
The two-level linkage of the selection boxes (such as a pull-down list box) means that the selection boxes are two selection boxes of the former and the latter, and the selection data of the latter is directly related to the selection data of the former and can be influenced by the former. For example, the first selection box includes options of provinces and cities, and after one of the provinces and cities is selected, the second selection box displays all the cities in the selected province and city.
In the related art, each time the latter is displayed, the values of all the options of the former need to be traversed, and therefore, the page display is easy to be stuck.
Disclosure of Invention
Provided are a generation method and device of an interactive interface, electronic equipment and a storage medium.
According to a first aspect, a method for generating an interactive interface is provided, which includes: acquiring a two-dimensional matrix, wherein the two-dimensional matrix is generated based on a corresponding relation between a first numerical value of a first parameter and a second numerical value of a second parameter, an element in the two-dimensional matrix represents whether the first numerical value and the second numerical value indicated by the element have the corresponding relation, each first numerical value has at least one corresponding second numerical value, and each second numerical value has at least one corresponding first numerical value; in response to the fact that a monitored selection event is obtained by one of two selection frames of the two-way two-stage linkage, at least one numerical value corresponding to a target numerical value indicated by the selection event is searched in the two-dimensional matrix, wherein the target numerical value is one of a first numerical value and a second numerical value, and the at least one numerical value is the other one; determining at least one value as a user selectable item of another selection box, and outputting the user selectable item.
According to a second aspect, there is provided an interactive interface generation apparatus, including: the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is configured to acquire a two-dimensional matrix, the two-dimensional matrix is generated based on a corresponding relation between a first numerical value of a first parameter and a second numerical value of a second parameter, an element in the two-dimensional matrix represents whether the first numerical value and the second numerical value indicated by the element have the corresponding relation, each first numerical value has at least one corresponding second numerical value, and each second numerical value has at least one corresponding first numerical value; the searching unit is configured to respond to the fact that a monitored selection event is acquired by one of two selection frames of the two-way two-stage linkage, and search at least one numerical value corresponding to a target numerical value indicated by the selection event in the two-dimensional matrix, wherein the target numerical value is one of a first numerical value and a second numerical value, and the at least one numerical value is the other one; an output unit configured to determine at least one value as a user-selectable item of another selection box, and output the user-selectable item.
According to a third aspect, there is provided an electronic device comprising: one or more processors; a storage device for storing one or more programs which, when executed by one or more processors, cause the one or more processors to implement a method as in any embodiment of a method for generating an interactive interface.
According to a fourth aspect, there is provided a computer-readable storage medium, on which a computer program is stored which, when executed by a processor, implements a method as in any one of the embodiments of the method of generating an interactive interface.
According to the scheme of the application, the corresponding relation between the first numerical value and the second numerical value can be embodied by utilizing the two-dimensional matrix, so that when the numerical value corresponding to the numerical value selected by the user is searched, the quick search can be realized in the two-dimensional matrix, the generation efficiency of a man-machine interaction interface is improved, the situation that a bidirectional two-level linkage page is blocked is avoided to a certain extent, and the user experience is facilitated to be improved.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is an exemplary system architecture diagram to which some embodiments of the present application may be applied;
FIG. 2 is a flow diagram of one embodiment of a method for generating an interactive interface according to the present application;
FIG. 3a is a flow chart of the steps of generating a two-dimensional matrix according to the method of generating an interactive interface of the present application;
FIG. 3b is a schematic diagram of a two-dimensional initial matrix of a method of generating an interactive interface according to the present application;
FIG. 3c is a schematic diagram of a two-dimensional matrix of a method of generating an interactive interface according to the present application;
FIG. 4 is a schematic view of an interactive interface of a method of generating an interactive interface according to the present application;
FIG. 5 is a schematic structural diagram of an embodiment of an interactive interface generating apparatus according to the present application;
fig. 6 is a block diagram of an electronic device for implementing a method for generating an interactive interface according to an embodiment of the present application.
Detailed Description
The following description of the exemplary embodiments of the present application, taken in conjunction with the accompanying drawings, includes various details of the embodiments of the application for the understanding of the same, which are to be considered exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 shows an exemplary system architecture 100 to which an embodiment of the interactive interface generation method or interactive interface generation apparatus of the present application may be applied.
As shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. Various communication client applications, such as video applications, live applications, instant messaging tools, mailbox clients, social platform software, and the like, may be installed on the terminal devices 101, 102, and 103.
Here, the terminal apparatuses 101, 102, and 103 may be hardware or software. When the terminal devices 101, 102, 103 are hardware, they may be various electronic devices having a display screen, including but not limited to smart phones, tablet computers, e-book readers, laptop portable computers, desktop computers, and the like. When the terminal apparatuses 101, 102, 103 are software, they can be installed in the electronic apparatuses listed above. It may be implemented as multiple pieces of software or software modules (e.g., multiple pieces of software or software modules to provide distributed services) or as a single piece of software or software module. And is not particularly limited herein.
The server 105 may be a server providing various services, such as a background server providing support for the terminal devices 101, 102, 103. The background server may analyze and perform other processing on the received data such as the first numerical value and the second numerical value, and feed back a processing result (e.g., a user selectable item) to the terminal device.
It should be noted that the method for generating the interactive interface provided in the embodiment of the present application may be executed by the server 105 or the terminal devices 101, 102, and 103, and accordingly, the generating apparatus of the interactive interface may be disposed in the server 105 or the terminal devices 101, 102, and 103.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
With continued reference to FIG. 2, a flow 200 of one embodiment of a method for generating an interactive interface according to the present application is shown. The generation method of the interactive interface comprises the following steps:
step 201, a two-dimensional matrix is obtained, where the two-dimensional matrix is generated based on a correspondence between a first value of a first parameter and a second value of a second parameter, an element in the two-dimensional matrix indicates whether there is a correspondence between the first value and the second value indicated by the element, each first value has at least one corresponding second value, and each second value has at least one corresponding first value.
In this embodiment, an execution subject (for example, the server or the terminal device shown in fig. 1) on which the method for generating the interactive interface operates may obtain the two-dimensional matrix from a local or other electronic device. The two-dimensional matrix may be generated in advance or may be generated in real time. The first value here is a parameter value of the first parameter and the second value is a parameter value of the second parameter. There is a correspondence between the first and second values, which may be indicated by the two-dimensional matrix.
For example, the first parameter is the number of CPU cores, the first number may have 1 core, 2 cores, 4 cores, etc., the second parameter is the size of the memory, and the second number may have different values of 1GB, 2GB, 4GB, 8GB, etc. The first value has at least one corresponding second value, for example, the electronic device with 1 core may only be 1GB, 2GB, 4GB of memory. Furthermore, there is at least one first value for the second value, such as 1GB of memory, that may only be present in 1-core and 2-core electronic devices.
Specifically, the element indicating that the correspondence exists may be a specific numerical value, and correspondingly, the element indicating that the correspondence does not exist is not the specific numerical value.
An element may indicate whether there is a correspondence between a first value and a second value to which the element corresponds. For example, the first value is 1 core (the number of cores of the electronic device), and the second value corresponding to the 1 core is a memory value of 1GB, 2GB, or 4GB, then the elements indicated by the 1 core and the 1GB in the two-dimensional matrix in common are the specific values, the elements indicated by the 1 core and the 2GB in the two-dimensional matrix in common are the specific values, and the elements indicated by the 1 core and the 4GB in common in the two-dimensional matrix are the specific values.
In practice, the execution subject or other electronic device may generate the two-dimensional matrix based on the correspondence between the first numerical value and the second numerical value in various ways. For example, the execution body may generate a two-dimensional matrix indicating a correspondence relationship between the first numerical value and the second numerical value in a format other than the header in the format of a table, the two-dimensional matrix being similar to a table in which rows and columns exist. For another example, the execution body may input the first numerical value, the second numerical value, and the corresponding relationship between the first numerical value and the second numerical value into a preset matrix generation model, so as to obtain a two-dimensional matrix output by the model.
Step 202, in response to a selection event obtained by one of two selection boxes in the two-way two-stage linkage, at least one numerical value corresponding to a target numerical value indicated by the selection event is searched in the two-dimensional matrix, where the target numerical value is one of the first numerical value and the second numerical value, and the at least one numerical value is the other.
In this embodiment, the executing entity may search for at least one numerical value in the two-dimensional matrix in response to a selection event that is obtained by monitoring one of the two selection boxes of the two-way two-stage linkage. The at least one value corresponds to the target value indicated by the selection event, i.e. selected by the user. A selection event may be generated if the user selects one of the first or second values, and the selection event may indicate the user's selection, i.e., the value selected by the user in the first or second values.
Bi-directional here means that selection in either of the two selection boxes affects the options displayed in the other selection box.
In practice, in the case that the execution subject is a server, the execution subject may receive a selection event that is monitored and uploaded by a terminal, so as to obtain the selection event. Or, in the case that the execution subject is a terminal, the terminal may monitor the selection event by itself, so as to obtain the selection event.
And step 203, determining at least one numerical value as a user selectable item of another selection box, and outputting the user selectable item.
In this embodiment, the execution body may determine at least one value as a user selectable item of another selection box and output the user selectable item. The other selection frame herein refers to the other selection frame other than the one selection frame among the two selection frames. The user may select the option in the interactive interface in which the user selectable options are displayed.
In practice, if the execution subject is a server, the execution subject may send the determined user selectable item to the terminal, and the terminal may render and display the user selectable item, so as to output the user selectable item. Or, if the execution main body is a terminal, the execution main body may directly display the user selectable item in the interactive interface to implement outputting the user selectable item.
According to the method provided by the embodiment of the application, the corresponding relation between the first numerical value and the second numerical value can be embodied by utilizing the two-dimensional matrix, so that when the numerical value corresponding to the numerical value (any one of the first numerical value and the second numerical value) selected by the user is determined, the quick search can be realized in the two-dimensional matrix, the generation efficiency of the human-computer interaction interface is improved, the situation of two-way two-level linkage page blocking is avoided to a certain extent, and the user experience is facilitated to be improved.
With further reference to FIG. 3a, a flow 300 of a two-dimensional matrix generation step in a method of generating an interactive interface is shown. The process 300 includes the following steps:
step 301, obtaining a first numerical value and a second numerical value, and generating a two-dimensional initial matrix according to the first numerical value and the second numerical value, wherein in the two-dimensional initial matrix, the number of elements in one dimension is the number of the first numerical value, and the number of elements in the other dimension is the number of the second numerical value.
In this embodiment, an execution subject (for example, the server or the terminal device shown in fig. 1) on which the method for generating the interactive interface operates may obtain the corresponding first numerical value and second numerical value. The first value here is a parameter value of the first parameter and the second value is a parameter value of the second parameter. The execution main body can generate a two-dimensional initial matrix according to a result obtained by traversing, namely numerical information. The execution body can generate a two-dimensional matrix capable of representing various possibilities of the first numerical value and various possibilities of the second numerical value as the two-dimensional initial matrix. The elements in the two-dimensional initial matrix may all be null or preset values.
In practice, the number of elements (values) in a column of the two-dimensional matrix may be the number of first values, and the number of elements (values) in a row may be the number of second values.
Step 302, modifying elements in the two-dimensional initial matrix based on the corresponding relationship between the first numerical value and the second numerical value to obtain a two-dimensional matrix.
In this embodiment, the execution body may modify the elements in the two-dimensional initial matrix in various ways based on the correspondence between the first numerical value and the second numerical value. For example, the execution subject may search, in the correspondence, for each first numerical value, a second numerical value corresponding to the first numerical value, determine, using the searched result, an element indicating the corresponding two (the first numerical value and the second numerical value) in the two-dimensional initial matrix, and modify the element.
The embodiment can ensure that the number of elements in each dimension is equal to one of the first numerical value and the second numerical value through the two-dimensional initial matrix, thereby helping the finally generated two-dimensional matrix to completely represent the corresponding relationship between the first numerical value and the second numerical value.
In some optional implementation manners of this embodiment, an element in the two-dimensional initial matrix is a first preset value; the modifying the elements in the two-dimensional initial matrix based on the correspondence between the first value and the second value to obtain the two-dimensional matrix may include: traversing elements in the two-dimensional initial matrix, and modifying any element into a second preset value if a first numerical value and a second numerical value indicated by the any element have a corresponding relation when the any element is traversed; and responding to the end of traversal, and taking the traversal result as a two-dimensional matrix.
In these optional implementation manners, the executing entity may traverse the elements in the two-dimensional initial matrix, and in the process of traversing, each time an element is traversed, if there is a correspondence between the first numerical value and the second numerical value indicated by the element, the element may be modified to the second preset value. After the traversal is finished, the execution main body may use a traversal result of the traversal as a two-dimensional matrix.
As shown in fig. 3b, a two-dimensional initial matrix is shown, wherein the first preset value is 0. The number of the first numerical value in the figure is 6, and for example, the number of cores of 1 core, 2 cores, 4 cores, and so on, 6 CPUs can be respectively indicated. The number of the second numerical value in the figure is 9, for example, 9 memory sizes of 2GB, 4GB, 8GB, and so on can be indicated respectively.
As shown in fig. 3c, a two-dimensional matrix is shown, in which the second preset value is 1.
In the implementation modes, the two-dimensional initial matrix is traversed and modified, so that whether the corresponding relation exists between the first numerical value and the second numerical value can be accurately reflected by each element in the obtained two-dimensional matrix.
Optionally, the searching for at least one value corresponding to the target value indicated by the selection event in the two-dimensional matrix may include: searching a target numerical value indicated by the selected event in the two-dimensional matrix; responding to the target value as a first value, and determining each second preset value of the target value in the same dimension in the two-dimensional matrix; determining each second numerical value respectively indicated by each second preset value, and taking each second numerical value as at least one numerical value; responding to the target value as a second value, and determining each second preset value of the target value in the same dimension in the two-dimensional matrix; and determining each first numerical value indicated by each second preset value respectively, and taking each first numerical value as at least one numerical value.
In an alternative implementation, the execution body may first search for a first value or a second value of the selection time indication, and use the first value or the second value as the target value. If the target value is the first value, the execution subject may determine, in the two-dimensional matrix, each of the second preset values corresponding to the target value. The second preset values are in the same dimension and respectively indicate different second values. The execution main body may use, as the at least one value, each of different second values indicated by each of the second preset values.
If the target value is a second value, the executing entity may determine, in the two-dimensional matrix, each second preset value corresponding to the target value. The second preset values are in the same dimension and respectively indicate different first values. The execution main body may use each different first value indicated by each first preset value as the at least one value.
These alternative implementations may utilize a two-dimensional matrix to accurately and quickly find the value corresponding to the value indicated by the selection event.
In some optional implementation manners of this embodiment, the obtaining the first numerical value and the second numerical value may include: and acquiring a data source comprising a first numerical value and a second numerical value, and traversing the data source to obtain a non-repeated first numerical value and a non-repeated second numerical value.
In these alternative implementations, an execution subject (e.g., the server or the terminal device shown in fig. 1) on which the method for generating the interactive interface operates may obtain a data source, where the data source may include the first numerical value and the second numerical value. The executing agent may traverse (i.e., scan) the data source to initialize the first value and the second value. The result of the initialization is that there is no duplicate data, i.e. the first and second values of the initialization are both non-duplicate.
The implementation manners can traverse the data source with complete data to acquire each first numerical value and each second numerical value.
In some optional implementations of any of the embodiments, the generating of the interactive interface may further include: using other numerical values except the at least one numerical value in another one of the at least one numerical value as user-unavailable options; the output user selectable items may include: the user selectable options and the user unavailable options are sent to the terminal so that the terminal highlights the user selectable options in a selection box drop-down option including the user selectable options and the user unavailable options.
In these alternative implementations, the execution subject may use, as the user-inaccessibility option, a value other than the at least one value in the other one. Each of the other is a first value or a second value. In the pull-down option of the same selection box, only one of the first value or the second value is displayed.
As shown in fig. 4, the memory size of 4GB, 8GB, and the like are highlighted, and the graying processing is performed with 1GB, 2GB, and the like as the user-selectable items.
These implementations may highlight selectable items to enable a user to intuitively see the value corresponding to the content they select.
With further reference to fig. 5, as an implementation of the method shown in the above figures, the present application provides an embodiment of an apparatus for generating an interactive interface, where the embodiment of the apparatus corresponds to the embodiment of the method shown in fig. 2, and besides the features described below, the embodiment of the apparatus may further include the same or corresponding features or effects as the embodiment of the method shown in fig. 2. The device can be applied to various electronic equipment.
As shown in fig. 5, the generation apparatus 500 of the interactive interface of the present embodiment includes: an acquisition unit 501, a lookup unit 502, and an output unit 503. The obtaining unit 501 is configured to obtain a two-dimensional matrix, where the two-dimensional matrix is generated based on a correspondence between a first value of a first parameter and a second value of a second parameter, an element in the two-dimensional matrix indicates whether there is a correspondence between the first value and the second value indicated by the element, there is at least one corresponding second value for each first value, and there is at least one corresponding first value for each second value; the searching unit 502 is configured to search, in response to a selection event obtained by one of the two selection frames of the bidirectional two-stage linkage, at least one numerical value corresponding to a target numerical value indicated by the selection event in the two-dimensional matrix, wherein the target numerical value is one of a first numerical value and a second numerical value, and the at least one numerical value is the other; an output unit 503 configured to determine at least one value as a user-selectable item of another selection box, and output the user-selectable item.
In this embodiment, specific processing of the obtaining unit 501, the searching unit 502, and the output unit 503 of the interactive interface generating apparatus 500 and technical effects thereof can refer to related descriptions of step 201, step 202, and step 203 in the corresponding embodiment of fig. 2, which are not described herein again.
In some optional implementations of this embodiment, the generating of the two-dimensional matrix includes: acquiring a first numerical value and a second numerical value, and generating a two-dimensional initial matrix according to the first numerical value and the second numerical value, wherein the number of elements in one dimension in the two-dimensional initial matrix is the number of the first numerical value, and the number of elements in the other dimension is the number of the second numerical value; and modifying elements in the two-dimensional initial matrix based on the corresponding relation between the first numerical value and the second numerical value to obtain the two-dimensional matrix.
In some optional implementation manners of this embodiment, an element in the two-dimensional initial matrix is a first preset value; a generating unit, further configured to modify elements in the two-dimensional initial matrix based on the correspondence between the first numerical value and the second numerical value to obtain a two-dimensional matrix, as follows: traversing elements in the two-dimensional initial matrix, and modifying any element into a second preset value if a first numerical value and a second numerical value indicated by the any element have a corresponding relation when the any element is traversed; and responding to the traversal end, and taking the traversal result of this time as a two-dimensional matrix.
In some optional implementations of the embodiment, the finding unit is further configured to perform finding at least one value corresponding to the target value indicated by the selection event in the two-dimensional matrix as follows: searching a target numerical value indicated by the selected event in the two-dimensional matrix; responding to the target value as a first value, and determining each second preset value of the target value in the same dimension in the two-dimensional matrix; determining each second numerical value indicated by each second preset value, and taking each second numerical value as at least one numerical value; responding to the target value as a second value, and determining each second preset value of the target value in the same dimension in the two-dimensional matrix; and determining each first numerical value indicated by each second preset value, and taking each first numerical value as at least one numerical value.
In some optional implementation manners of this embodiment, the obtaining the first numerical value and the second numerical value includes: and acquiring a data source comprising a first numerical value and a second numerical value, and traversing the data source to obtain a non-repeated first numerical value and a non-repeated second numerical value.
In some optional implementations of this embodiment, the apparatus further includes: an option determining unit configured to take other values than the at least one value in the other as user-unavailable options; and an output unit further configured to perform outputting the user selectable item as follows: the user selectable options and the user unavailable options are sent to the terminal so that the terminal highlights the user selectable options in a selection box drop-down option including the user selectable options and the user unavailable options.
According to an embodiment of the present application, an electronic device and a readable storage medium are also provided.
Fig. 6 is a block diagram of an electronic device according to an embodiment of the present application. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the present application that are described and/or claimed herein.
As shown in fig. 6, the electronic apparatus includes: one or more processors 601, memory 602, and interfaces for connecting the various components, including a high-speed interface and a low-speed interface. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions for execution within the electronic device, including instructions stored in or on the memory to display graphical information of a GUI on an external input/output apparatus (such as a display device coupled to the interface). In other embodiments, multiple processors and/or multiple buses may be used, along with multiple memories and multiple memories, as desired. Also, multiple electronic devices may be connected, with each device providing portions of the necessary operations (e.g., as a server array, a group of blade servers, or a multi-processor system). In fig. 6, one processor 601 is taken as an example.
The memory 602 is a non-transitory computer readable storage medium as provided herein. The memory stores instructions executable by the at least one processor, so that the at least one processor executes the method for generating the interactive interface provided by the present application. The non-transitory computer-readable storage medium of the present application stores computer instructions for causing a computer to execute the method for generating an interactive interface provided by the present application.
The memory 602 is a non-transitory computer readable storage medium, and can be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the generation method of the interactive interface in the embodiment of the present application (for example, the obtaining unit 501, the searching unit 502, and the output unit 503 shown in fig. 5). The processor 601 executes various functional applications of the server and data processing by running non-transitory software programs, instructions and modules stored in the memory 602, that is, implements the generation method of the interactive interface in the above method embodiment.
The memory 602 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the electronic device for generation of the interactive interface, and the like. Further, the memory 602 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 602 optionally includes memory located remotely from the processor 601, and these remote memories may be connected to the generating electronics of the interactive interface via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The electronic device of the method for generating an interactive interface may further include: an input device 603 and an output device 604. The processor 601, the memory 602, the input device 603 and the output device 604 may be connected by a bus or other means, and fig. 6 illustrates the connection by a bus as an example.
The input device 603 may receive input numeric or character information and generate key signal inputs related to user settings and function controls of the generating electronic device of the interactive interface, such as a touch screen, keypad, mouse, track pad, touch pad, pointer stick, one or more mouse buttons, track ball, joystick, or other input device. The output devices 604 may include a display device, auxiliary lighting devices (e.g., LEDs), and tactile feedback devices (e.g., vibrating motors), among others. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device can be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASICs (application specific integrated circuits), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
These computer programs (also known as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented using high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, Programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present application may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes an acquisition unit, a lookup unit, and an output unit. Where the names of these units do not in some cases constitute a limitation of the unit itself, for example, the acquiring unit may also be described as a "unit that acquires a first value of a first parameter and a second value of a second parameter".
As another aspect, the present application also provides a computer-readable medium, which may be contained in the apparatus described in the above embodiments; or may be present separately and not assembled into the device. The computer readable medium carries one or more programs which, when executed by the apparatus, cause the apparatus to: acquiring first numerical values of the first parameters and second numerical values of the second parameters, wherein each first numerical value has at least one corresponding second numerical value, and each second numerical value has at least one corresponding first numerical value; generating a two-dimensional matrix based on the corresponding relation between the first numerical value and the second numerical value, wherein an element in the two-dimensional matrix represents whether the corresponding relation exists between the first numerical value and the second numerical value indicated by the element; in response to the fact that a monitored selection event is obtained by one of two selection frames of the two-way two-stage linkage, at least one numerical value corresponding to a target numerical value indicated by the selection event is searched in the two-dimensional matrix, wherein the target numerical value is one of a first numerical value and a second numerical value, and the at least one numerical value is the other one; determining at least one value as a user selectable item of another selection box, and outputting the user selectable item.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention herein disclosed is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the invention. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (14)

1. A method for generating an interactive interface, the method comprising:
acquiring a two-dimensional matrix, wherein the two-dimensional matrix is generated based on a corresponding relation between a first numerical value of a first parameter and a second numerical value of a second parameter, an element in the two-dimensional matrix represents whether the first numerical value and the second numerical value indicated by the element have the corresponding relation, each first numerical value has at least one corresponding second numerical value, and each second numerical value has at least one corresponding first numerical value;
in response to a selection event which is obtained by one of two selection frames of the two-way two-level linkage, searching at least one numerical value corresponding to a target numerical value indicated by the selection event in the two-dimensional matrix, wherein the target numerical value is one of the first numerical value and the second numerical value, and the at least one numerical value is the other one;
determining the at least one value as a user-selectable item of another selection box, and outputting the user-selectable item.
2. The method of claim 1, wherein the generating of the two-dimensional matrix comprises:
acquiring the first numerical value and the second numerical value, and generating a two-dimensional initial matrix according to the first numerical value and the second numerical value, wherein in the two-dimensional initial matrix, the number of elements in one dimension is the number of the first numerical value, and the number of elements in the other dimension is the number of the second numerical value;
and modifying elements in the two-dimensional initial matrix based on the corresponding relation between the first numerical value and the second numerical value to obtain the two-dimensional matrix.
3. The method of claim 2, wherein elements in the two-dimensional initial matrix are at first preset values;
modifying elements in the two-dimensional initial matrix based on the corresponding relationship between the first numerical value and the second numerical value to obtain the two-dimensional matrix, including:
traversing elements in the two-dimensional initial matrix, and modifying any element into a second preset value if a first numerical value and a second numerical value indicated by the any element have a corresponding relation when the any element is traversed;
and responding to the traversal end, and taking the traversal result of this time as the two-dimensional matrix.
4. The method of claim 3, wherein said finding in said two-dimensional matrix at least one value corresponding to a target value indicated by said selection event comprises:
searching the target numerical value indicated by the selection event in the two-dimensional matrix;
responding to the target value as the first value, and determining each corresponding second preset value of the target value in the same dimension in the two-dimensional matrix; determining each second numerical value indicated by each second preset value, and taking each second numerical value as the at least one numerical value;
responding to the target value as the second value, and determining each corresponding second preset value of the target value in the same dimension in the two-dimensional matrix; and determining each first numerical value indicated by each second preset value, and taking each first numerical value as the at least one numerical value.
5. The method of claim 2, wherein said obtaining the first and second numerical values comprises:
and acquiring a data source comprising the first numerical value and the second numerical value, and traversing the data source to obtain a non-repeated first numerical value and a non-repeated second numerical value.
6. The method of claim 1, wherein the method further comprises:
taking other values than the at least one value in the other as user-not-selectable options; and
the outputting the user selectable items includes:
and sending the user selectable items and the user unavailable items to a terminal so that the terminal highlights the user selectable items in a selection box pull-down option comprising the user selectable items and the user unavailable items.
7. An apparatus for generating an interactive interface, the apparatus comprising:
an obtaining unit configured to obtain a two-dimensional matrix, wherein the two-dimensional matrix is generated based on a correspondence between a first numerical value of a first parameter and a second numerical value of a second parameter, an element in the two-dimensional matrix represents whether there is a correspondence between the first numerical value and the second numerical value indicated by the element, there is at least one corresponding second numerical value for each first numerical value, and there is at least one corresponding first numerical value for each second numerical value;
the searching unit is configured to search at least one numerical value corresponding to a target numerical value indicated by a monitored selection event in the two-dimensional matrix in response to the fact that the monitored selection event is acquired by one of the two selection frames of the two-way two-stage linkage, wherein the target numerical value is one of the first numerical value and the second numerical value, and the at least one numerical value is the other one;
an output unit configured to determine the at least one numerical value as a user-selectable item of another selection box, and output the user-selectable item.
8. The apparatus of claim 7, wherein the generating of the two-dimensional matrix comprises:
acquiring the first numerical value and the second numerical value, and generating a two-dimensional initial matrix according to the first numerical value and the second numerical value, wherein in the two-dimensional initial matrix, the number of elements in one dimension is the number of the first numerical value, and the number of elements in the other dimension is the number of the second numerical value;
and modifying elements in the two-dimensional initial matrix based on the corresponding relation between the first numerical value and the second numerical value to obtain the two-dimensional matrix.
9. The apparatus of claim 8, wherein elements in the two-dimensional initial matrix are at first preset values;
modifying elements in the two-dimensional initial matrix based on the corresponding relationship between the first numerical value and the second numerical value to obtain the two-dimensional matrix, including:
traversing elements in the two-dimensional initial matrix, and modifying any element into a second preset value if a first numerical value and a second numerical value indicated by the any element have a corresponding relation when the any element is traversed;
and responding to the traversal end, and taking the traversal result of this time as the two-dimensional matrix.
10. The apparatus of claim 9, wherein the finding unit is further configured to perform the finding of the at least one value in the two-dimensional matrix corresponding to the target value indicated by the selection event as follows:
searching the target numerical value indicated by the selection event in the two-dimensional matrix;
responding to the target value as the first value, and determining each corresponding second preset value of the target value in the same dimension in the two-dimensional matrix; determining each second numerical value indicated by each second preset value, and taking each second numerical value as the at least one numerical value;
responding to the target value as the second value, and determining each corresponding second preset value of the target value in the same dimension in the two-dimensional matrix; and determining each first numerical value indicated by each second preset value, and taking each first numerical value as the at least one numerical value.
11. The apparatus of claim 8, wherein the obtaining the first and second numerical values comprises:
and acquiring a data source comprising the first numerical value and the second numerical value, and traversing the data source to obtain a non-repeated first numerical value and a non-repeated second numerical value.
12. The apparatus of claim 7, wherein the apparatus further comprises:
an option determination unit configured to take other values than the at least one value in the other one as user-unavailable options; and
the output unit is further configured to perform the outputting the user selectable item as follows:
and sending the user selectable items and the user unavailable items to a terminal so that the terminal highlights the user selectable items in a selection box pull-down option comprising the user selectable items and the user unavailable items.
13. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-6.
14. A computer-readable storage medium having stored thereon a computer program, wherein,
the program when executed by a processor implementing the method as claimed in any one of claims 1-6.
CN202011282332.5A 2020-11-16 2020-11-16 Generation method and device of interactive interface Active CN112269517B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011282332.5A CN112269517B (en) 2020-11-16 2020-11-16 Generation method and device of interactive interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011282332.5A CN112269517B (en) 2020-11-16 2020-11-16 Generation method and device of interactive interface

Publications (2)

Publication Number Publication Date
CN112269517A CN112269517A (en) 2021-01-26
CN112269517B true CN112269517B (en) 2022-03-01

Family

ID=74339447

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011282332.5A Active CN112269517B (en) 2020-11-16 2020-11-16 Generation method and device of interactive interface

Country Status (1)

Country Link
CN (1) CN112269517B (en)

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9032444B2 (en) * 2008-12-31 2015-05-12 Verizon Patent And Licensing Inc. Systems, methods, and apparatuses for resolving media content recording conflicts
CN104881641B (en) * 2015-05-18 2019-01-25 上海交通大学 Mobile device-based questionnaire and table Digital identification method and system
CN106648335A (en) * 2016-12-27 2017-05-10 天脉聚源(北京)科技有限公司 Secondary-linkage menu building method and apparatus
CN107643911B (en) * 2017-08-21 2021-02-02 上海精灵天下数字技术有限公司 HTML 5-based interface interaction and display system and method
CN109271083B (en) * 2018-08-22 2021-06-29 创新先进技术有限公司 Data processing method and device, computing equipment and storage medium
CN110309425B (en) * 2019-07-05 2021-08-24 北京字节跳动网络技术有限公司 Method and apparatus for storing data
CN110989981B (en) * 2019-11-27 2023-05-16 北京搜狐新媒体信息技术有限公司 Screening control
CN111309608B (en) * 2020-02-13 2023-09-05 咪咕音乐有限公司 Test case selection method and device, electronic equipment and readable storage medium
CN111932308A (en) * 2020-08-13 2020-11-13 中国工商银行股份有限公司 Data recommendation method, device and equipment

Also Published As

Publication number Publication date
CN112269517A (en) 2021-01-26

Similar Documents

Publication Publication Date Title
US10528589B2 (en) Cross visualization interaction between data visualizations
US8577960B2 (en) Providing status information for components in a distributed landscape
EP3916630A1 (en) Method and apparatus for identifying video
US10394437B2 (en) Custom widgets based on graphical user interfaces of applications
US20160092048A1 (en) Display of hierarchical datasets using high-water mark scrolling
US20130227412A1 (en) Tooltip feedback for zoom using scroll wheel
CN111694857B (en) Method, device, electronic equipment and computer readable medium for storing resource data
JP7220753B2 (en) Labeling tool generation method and apparatus, labeling method and apparatus, electronic device, storage medium and program
KR102511094B1 (en) Digital image capture session and metadata association
JP2021174516A (en) Knowledge graph construction method, device, electronic equipment, storage medium, and computer program
CN111582477B (en) Training method and device for neural network model
CN112199620A (en) Page operation method and device, electronic equipment and storage medium
CN111913998B (en) Data processing method, device, equipment and storage medium
US10712913B2 (en) Event-based architecture for expand-collapse operations
CN110992112A (en) Method and device for processing advertisement information
KR20160022362A (en) Synchronization points for state information
CN111740859B (en) Test environment deployment method and device, electronic equipment and storage medium
CN113158098A (en) Page generation method, device, equipment and medium
JP2021170391A (en) Commodity guidance method, apparatus, device, storage medium, and program
CN112163143A (en) Page switching method, device, equipment and storage medium
CN112269517B (en) Generation method and device of interactive interface
CN111738325A (en) Image recognition method, device, equipment and storage medium
CN111177479A (en) Method and device for acquiring feature vectors of nodes in relational network graph
CN111783591B (en) Abnormality detection method, abnormality detection device, abnormality detection apparatus, and recording medium
CN115803729A (en) Direct data loading of middleware generated records

Legal Events

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