CN108268192B - List operation method and device - Google Patents

List operation method and device Download PDF

Info

Publication number
CN108268192B
CN108268192B CN201611264915.9A CN201611264915A CN108268192B CN 108268192 B CN108268192 B CN 108268192B CN 201611264915 A CN201611264915 A CN 201611264915A CN 108268192 B CN108268192 B CN 108268192B
Authority
CN
China
Prior art keywords
index
list
target
same
different
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
CN201611264915.9A
Other languages
Chinese (zh)
Other versions
CN108268192A (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 Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum 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 Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201611264915.9A priority Critical patent/CN108268192B/en
Publication of CN108268192A publication Critical patent/CN108268192A/en
Application granted granted Critical
Publication of CN108268192B publication Critical patent/CN108268192B/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/0482Interaction with lists of selectable items, e.g. menus

Landscapes

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

Abstract

The embodiment of the invention discloses a list operation method and a list operation device, which are used for avoiding repeated selection of the same index in different lists. The method provided by the embodiment of the invention comprises the following steps: determining a first index selected in the first list; determining a second index selected in the second list; replacing the second index with a target index in the second list when the first index and the second index are the same, the target index being an index in the second list that was selected before the second index, the target index being different from the first index; performing a target operation using the first metric and the target metric. Therefore, the repeated selection of the same index can be avoided in different lists comprising indexes, so that meaningful operations can be executed according to different indexes.

Description

List operation method and device
Technical Field
The present invention relates to the field of data processing, and in particular, to a method and an apparatus for list operation.
Background
When data processing is performed, when at least two lists are provided for a user to select, if the user selects the same index from the lists, because the selected indexes are the same indexes, the device will repeatedly determine the value currently indicated by the index according to the selection of the user, and the determined value is the same values.
For example, in a device using a ui-select plug-in, when the device uses at least two ui-select plug-ins, if the user selects the same index through the ui-select plug-ins, the device repeatedly determines the value currently indicated by the index.
After the device determines the same index for different lists, meaningful operations are often not performed according to the same index, for example, when the current same numerical values indicated by the same index are used for comparison, the significance of data comparison is not provided.
Disclosure of Invention
The embodiment of the invention provides a list operation method and device, which are used for avoiding repeated selection of the same index in different lists.
In order to solve the above technical problem, an embodiment of the present invention provides the following technical solutions:
a method of list manipulation, the method comprising:
determining a first index selected in the first list;
determining a second index selected in the second list;
replacing the second index with a target index in the second list when the first index and the second index are the same, the target index being an index in the second list that was selected before the second index, the target index being different from the first index;
performing a target operation using the first metric and the target metric.
Optionally, the performing a target operation using the first index and the target index includes:
acquiring data indicated by the first index;
acquiring target data indicated by the target index;
comparing and analyzing the data indicated by the first index and the target data;
alternatively, the first and second electrodes may be,
data indicated by the first indicator and the target data are shown in a graph.
Optionally, the first list includes at least two indicators, the second list includes at least two indicators,
the determining a first index selected in the first list; after determining the second index selected in the second list, the method further comprises:
identifying the first index and indexes except the first index in the first list by adopting different identification information;
and identifying the second index and indexes except the second index in the second list by adopting different identification information.
Optionally, before determining that the second pointer is selected in the second list, the method further includes:
when the preselected index in the second list is the same index as the first index, the first index and the preselected index are identified using different identification information, wherein preselection is an operation in which a user determines an index before selecting an index.
Optionally, when the first index and the second index are the same, the method further includes:
and sending prompt information, wherein the prompt information is used for prompting that the operation of selecting the index is abnormal.
Optionally, the first list and the second list are lists in a ui-select plugin.
In order to solve the above technical problem, an embodiment of the present invention further provides the following technical solutions:
a list manipulation apparatus, the apparatus comprising:
a first determination unit configured to determine a first index selected in the first list;
a second determination unit configured to determine a second index selected in the second list;
a replacing unit, configured to replace the second index with a target index in the second list when the first index and the second index are the same, where the target index is an index in the second list that is selected before the second index, and the target index is different from the first index;
an execution unit to execute a target operation using the first index and the target index.
Optionally, the execution unit includes an obtaining module, a comparing module or a displaying module,
the acquisition module is used for acquiring the data indicated by the first index and acquiring the target data indicated by the target index;
the comparison module is used for comparing and analyzing the data indicated by the first index and the target data;
alternatively, the first and second electrodes may be,
and the display module is used for displaying the data indicated by the first index and the target data in a chart.
Optionally, the first list includes at least two indicators, the second list includes at least two indicators,
the device further comprises:
an identifying unit configured to identify the first index and the index other than the first index in the first list using different identification information, and identify the second index and the index other than the second index in the second list using different identification information.
Optionally, the first list and the second list are lists in a ui-select plugin.
According to the technical scheme, the embodiment of the invention has the following advantages:
a first metric selected in the first list is determined, and a second metric selected in the second list is determined. And when the first index and the second index are the same, replacing the second index with a target index in a second list, wherein the target index is the index selected before the second index in the second list, and the target index is different from the first index. So that the target operation can be performed using the first index and the target index. In this way, when a user or a device selects the same index in different lists, the device can replace the index of one list with the selected index, and the selected index and the replaced index are different indexes, so that repeated selection of the same index in different lists including indexes can be avoided, and meaningful operations can be performed according to different indexes.
Drawings
FIG. 1 is a flowchart of a method for operating a list according to an embodiment of the present invention;
FIG. 2 is a flowchart of a method for list manipulation according to another embodiment of the present invention;
FIG. 3 is a diagram of a ui-select plug-in usage scenario involving the method shown in FIG. 2;
fig. 4 is a schematic structural diagram of a list operation apparatus according to another embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a list operation method and device, which are used for avoiding repeated selection of the same index in different lists.
Fig. 1 is a flowchart of a method for operating a list according to an embodiment of the present invention. Referring to fig. 1, the method of the embodiment of the present invention includes:
step 101: determining a first index selected in the first list;
step 102: determining a second index selected in the second list;
step 103: when the first index and the second index are the same, replacing the second index with a target index in a second list, wherein the target index is an index selected before the second index in the second list, and is different from the first index;
step 104: the target operation is performed using the first index and the target index.
Optionally, performing the target operation using the first index and the target index includes:
acquiring data indicated by a first index;
acquiring target data indicated by a target index;
comparing and analyzing the data indicated by the first index and the target data;
alternatively, the first and second electrodes may be,
data indicated by the first index and the target data are shown in the graph.
Optionally, the first list includes at least two indicators, and the second list includes at least two indicators.
Determining a first index selected in the first list; after determining the second index selected in the second list, the method of the embodiment of the present invention further includes:
adopting different identification information to identify the first index and indexes except the first index in the first list;
and adopting different identification information to identify the second index and indexes except the second index in the second list.
Alternatively,
before determining the second index selected in the second list, the method of the embodiment of the present invention further includes:
when the preselected index is the same index as the first index in the second list, the first index and the preselected index are identified using different identification information, wherein the preselection is an operation in which the user determines the index before selecting the index.
Optionally, when the first index and the second index are the same, the method of the embodiment of the present invention further includes:
and sending out prompt information, wherein the prompt information is used for prompting that the operation of selecting the index is abnormal.
Alternatively,
the first list and the second list are lists in the ui-select plugin.
In summary, a first indicator selected in the first list is determined, and a second indicator selected in the second list is determined. And when the first index and the second index are the same, replacing the second index with a target index in a second list, wherein the target index is the index selected before the second index in the second list, and the target index is different from the first index. So that the target operation can be performed using the first index and the target index. In this way, when a user or a device selects the same index in different lists, the device can replace the index of one list with the selected index, and the selected index and the replaced index are different indexes, so that repeated selection of the same index in different lists including indexes can be avoided, and meaningful operations can be performed according to different indexes.
Fig. 2 is a flowchart of a method for operating a list according to an embodiment of the present invention. With reference to the above, and with reference to fig. 2, a method according to an embodiment of the present invention includes:
step 201: a first indicator selected in the first list is determined.
The processing device determines a selected first indicator in the first list. The first list may include a plurality of metric options, the first metric being one of the metric options.
The usage scenario of the method of the embodiment of the present invention may include a plurality of lists, for example, a first list, a second list, and the like, and the selection of the index may be performed on each list, where each index option may indicate a corresponding numerical value.
The processing device is a device for executing the method of the embodiment of the invention, and the processing device can be a computer or other devices.
For example, in a scenario using a ui-select plug-in, the first list and the second list are two different lists in the ui-select plug-in, each list including at least two different indicators, and at least one same indicator is included between the lists of the different columns. The index includes, but is not limited to, exposure, click, independent exposure, independent click, CTR, and the like.
For example, when a user uses a processing device for advertisement monitoring, two ui-select plug-ins are used for data processing on the front-end processing interface of the device. As shown in fig. 3, the interface includes two ui-select drop-down lists, which are two lists for the user to select, and each drop-down list has at least two index options, and at least one of the index options in the two drop-down lists is the same index option.
The user selects one index in one of the lists, and according to the selection result of the user, the processing device can determine the selected index in the list.
Step 202: a second metric selected in the second list is determined.
The processing device determines a second metric selected in the second list. The usage scenario of the method of the embodiment of the present invention further includes a second list, where the second list may include a plurality of index options, and the second index is one of the index options. The second list and the first list are in the same selection stage, and in the same selection stage, the user can select the indexes of the first list and the indexes of the second list and then execute subsequent operations according to the selection result.
Wherein the first list and the second list are different lists, and the metric options of the first list and the metric options of the second list may include the same metric option. The first list and the second list have various expressions, for example, the first list and the second list are lists in the ui-select plugin, and the first list and the second list can belong to the same ui-select plugin or different ui-select plugins.
The ui-select plug-in is a pull-down list plug-in used by the front end.
For example, on an advertisement monitoring interface using two ui-select plug-ins, after the processing device detects that the user selects one exposure indicator option of a first drop-down list, the processing device determines that the exposure indicator is a first indicator, and then the user selects another exposure indicator option in a second drop-down list, and the processing device determines that the exposure indicator in the second drop-down list is a second indicator.
It can be understood that, in different selection processes, a user may select different indexes in the same list, and in order to record a historical selection result of the user, in some embodiments of the present invention, the method of the embodiments of the present invention further includes: when the metrics option on the list is selected, the processing device records the selected metrics. In this way, the processing device records the user's history selection operation for the index option of the list by observing the user's operation.
For example, in the method of implementing the embodiment of the present invention by means of an instruction, the instruction may be an Angular instruction, such an instruction may observe the change of the selected index, and implement recording of the index selected by the user each time the user selects the index. For example, the last time the user selected the exposure indicator in the ui-select list, the Angular directive keeps track of the exposure indicator as selected by the user: exposure-1, the user performs an operation using the index. Subsequently, when the user selects the click index again in the drop-down list of the ui-select plug-in, the processing device records the selection process of the index through the Angular instruction: click-2. Therefore, the selection operation of the index by the user can be recorded.
In order to remind the user of the selected indicator in the list to facilitate the selection operation of the user, the indicator may be identified after determining the selected indicator in the list, for example, optionally, after determining a first indicator selected in the first list and determining a second indicator selected in the second list, the method of the embodiment of the present invention further includes: and identifying the first index and the indexes except the first index in the first list by adopting different identification information, and identifying the second index and the indexes except the second index in the second list by adopting different identification information.
Wherein, the first list comprises at least two indexes, and the second list comprises at least two indexes. And the identification information is used to identify the index, and includes, but is not limited to, color, fill texture, font bolding, and the like.
For example, as shown in fig. 3, when the user selects an index in the drop-down list of the first ui-select plug-in, the user selects an exposure index, the processing device determines that the index selected in the first list is the exposure index, and then the selection of the exposure index is displayed in the screen using a preset color, for example, blue, while the other indexes in the first list are displayed using white undertone, so that the user can easily distinguish the index selected by the user as the exposure index. Similarly, if a user selects a pointer in the drop-down list of the second ui-select plug-in, the pointer is displayed with a blue background color, and the other pointers in the drop-down list of the second ui-select plug-in are displayed with white background colors.
Step 203: when the first index and the second index are the same, the second index is replaced with a target index in the second list.
The target index is an index selected before the second index in the second list, and the target index is different from the first index.
After the first index and the second index are determined, the processing equipment judges whether the first index and the second index are the same, if the first index and the second index are the same, the second index is replaced to be a target index, the target index belongs to the second list, the target index and the second index are different indexes, and the first index and the target index can be used for operation subsequently, so that the operation can be carried out by using different indexes in different lists.
In order to make determination of the target index more meaningful, in the embodiment of the present invention, the target index is an index selected before the second index in the second list, for example, the user selects an index in the second list last time, the processing device records the index to be subsequently used as the target index, and then, when the first index and the second index are the same next time the selection of the indexes of the first list and the second list is performed, the second index is replaced with the last selected index as the target index.
It is to be understood that the target indicator is an indicator selected before the second indicator in the second list, and may be an indicator selected in the second list by the user last time, or an indicator selected in the second list by the user last N times, where N is a positive integer greater than zero. And the target index is different from the second index, and a specific implementation method may be that, if the index selected by the last user is the same as the second index, whether the index selected by the last user is the same as the second index or not may be compared again until a different index is selected, and the selected index is taken as the target index. Of course, there are various specific methods for determining the target index, for example, a method of using random selection, and the embodiment of the present invention is not limited to this.
Of course, if the first index and the second index are not the same, the processing device may continue to operate in the original manner.
For example, the user selects the exposure index through the option list of the ui-select plug-in, the processing device determines the exposure index, and then the user selects the exposure index in another option list of the ui-select plug-in on the interface, and the processing device determines that the exposure index has been selected by the user in the calculation process, so that the processing device reads the record information: the second list is history data of selected indicators, for example, the record information is: and the exposure-1 and click-2 indexes selected by the user in the second list are click indexes, and the click indexes are different from the exposure indexes, so that the processing equipment takes the click indexes as target indexes to replace the original exposure indexes.
In order to remind the user of selecting the same index in different lists and to change the selection in time in the face of the user, the identifiers of the first index and the second index may be distinguished, for example, optionally, before determining the second index selected in the second list, the method of the embodiment of the present invention further includes: when the preselected index in the second list is the same index as the first index, the first index and the preselected index are identified using different identification information.
Wherein the preselection is an operation in which the user determines the index before selecting the index. For example, the user controls the mouse to move the cursor of the mouse to the area where a pointer in the second list is located, which is the preselection of the pointer. Subsequently, if the user clicks the left mouse button, the index is selected.
The description of the identification information may refer to the above detailed description.
For example,
when the first index and the index preselected in the second list are displayed on the screen, if the preselected index is the same as the first index, the display area of the first index and the display area of the preselected index are filled with different colors.
For example, the system of the processing device sets the indicator selected in the list to be identified with a blue undertone. When a user selects a first index in the first drop-down list, the index of the second drop-down list, which is the same as the first index, is not selected, and if the index of the second drop-down list, which is not selected and is the same as the first index, is moved on the cursor of the mouse, the index is possibly selected by the user, the default color is changed from the original blue color to the gray color by the system, and the index moved on the cursor of the mouse is marked by the gray color. Thus, the user can be reminded that the subsequent selection operation will be changed.
In some embodiments of the present invention, when the first index and the second index are the same, the method of an embodiment of the present invention further includes: and sending out prompt information.
The prompt information is used for prompting that the operation of selecting the index is abnormal.
And the processing equipment sends prompt information which is used for prompting that the operation of selecting the indexes is abnormal so as to remind a user of selecting the same indexes. For example, when the first index and the second index are the same, the processing device issues a friendly prompt to the user by using a plugin such as toastr, for example, pop up a prompt box, which may include a text prompt "please select different indexes for comparison", and the prompt box may automatically disappear after a period of time, for example, 1 second. In this way, the user can be alerted that the user's selection operation is problematic, or that the subsequent step is the execution of the following step.
It is understood that the pre-selection operation and the selection operation are two different operations, the pre-selection operation is an operation before the selection operation, and the user can determine the index through the pre-selection operation but not select the index. The steps of adopting different identification information to identify the first index and the preselected index and sending out the prompt message can play a role of reminding the user.
By performing the above method, that is, in the method including at least two lists, when the user selects the same index through the lists, the apparatus can change the two same indexes into different indexes through the above method. Because, in some methods, if the user selects two identical indexes, the processing device repeatedly obtains the same value currently indicated by the index, it will not make sense to compare the same value of the index, but the processing device will continue to process, and query the corresponding value through the data interface, which may waste the performance of the device and the time of the user.
In the embodiment using the ui-select plug-in, since the existing ui-select plug-in does not provide the corresponding API or attribute for recording the last selection value, if the index selected by the user before the selection of the drop-down list is to be obtained, the user cannot realize the requirement through the ui-select. By the method of the embodiment of the invention, the user can utilize the property of the extended ui-select plugin, wherein the property is the index selected before the ui-select plugin is acquired. In the conventional method, when the user selects the same index, the selection is prohibited, and the method of the embodiment of the present invention assigns the attribute value to the pull-down list, so that different indexes can be obtained.
The API is a predefined function for developers to use.
Step 204: the target operation is performed using the first index and the target index.
When the first index and the second index are the same, the processing device replaces the second index with the target index, and then the target operation can be executed by using the target index and the first index. It is often the case that performing an operation using different metrics is a meaningful operation.
For example, for the ui-select plug-in shown in fig. 3, after the user selects the same index from different lists, the index of the next drop-down list is updated to the index of the list that was selected last time, so that there is a meaningful processing result when performing subsequent numerical processing, such as numerical comparison of indexes.
The target operation has a plurality of specific types, which is not specifically limited in the embodiments of the present invention, and two cases are given below as specific implementations of performing the target operation using the first index and the target index.
1) Comparing and analyzing data of different indexes
For example, after obtaining the first index and the target index by the processing device through the above method, the processing device may obtain data indicated by the first index; and obtaining target data indicated by the target index, for example, obtaining backend data according to the index. Thus, the data indicated by the first index and the target data are compared and analyzed. Such comparative analysis can give the user more information.
Or after the data indicated by the first index is acquired and the target data indicated by the target index is acquired, the data indicated by the first index and the target data are displayed in the chart.
The processing device renders and displays the data indicated by the first index and the target data in the chart, and if the same first index and second index are used for acquiring and displaying the data, the data seen by the user is repeated, and the use significance is avoided. By the method provided by the embodiment of the invention, the numerical values of different indexes can be displayed on the chart so that a user can analyze the numerical values of the indexes.
It is to be understood that although the above description of the embodiment of the present invention uses two list scenarios, the list of the method of the embodiment of the present invention may also include 3, 4, etc. scenarios, for example, 4 ui-select plug-ins are used in the scenario of advertisement data monitoring, and each ui-select plug-in provides a pull-down option list. At this time, if the same index is selected by the user in the option lists, three indexes are replaced by other indexes according to the above-described principle, so that the indexes are different from each other. For example, if the user selects a first index at a first ui-select plugin, a second index at a second ui-select plugin, a third index at a third ui-select plugin, and the first, second, and third indexes are all the same, the processing device replaces the index previously selected by the user in the second ui-select plugin with the second index being a different index than the second index. Similarly, the processing device replaces the index previously selected by the user in the third ui-select plug-in component with the third index, and the index is different from the third index, and the three indexes obtained after replacement are different.
When the method of the embodiment of the invention is applied to the ui-select plugin, the list selection method of the embodiment of the invention can be realized on the ui-select plugin by means of instructions. That is, the method according to the embodiment of the present invention extends the ui-select plugin, and uses the instruction to make the ui-select plugin have the function of providing and recording the selected index, that is, make the ui-select provide the attribute of recording the index selected last time. Thus, when the user needs to select the index before it is acquired through the ui-select pull-down list, it can be obtained by acquiring the instruction attribute.
The ui-select plug-in is used by calling through an instruction, wherein the instruction is a mark on a DOM (Document Object Model) element, and the DOM element has a specific behavior. The list selection method of the embodiment of the invention is realized on the ui-select plugin in an instruction mode, namely, the instruction is expanded for the existing ui-select plugin.
Among other things, the instructions can be used to extend and customize the behavior of browsers to handle HTML, HyperText markup language, which is a programming language commonly used to make websites.
For example, the extended instruction is added to the DOM element from the beginning, and it will always monitor the chosen pointer of the drop-down list of the ui-select plug-in, and record the pointer of each selection of the drop-down list, after a pointer is reselected, compare whether the chosen pointer in the two drop-down boxes is repeated, if so, replace the chosen pointer in one of the drop-down lists with the pointer from the last selection of the list.
The method of the embodiment of the invention can be suitable for systems such as advertisement monitoring and the like, and the systems usually select two different indexes in different lists by default. When the user selects the indexes as required, if the same index is selected in different lists, the index selected this time can be ignored by one ui-select plug-in list, and the index is updated to the index selected last time.
Of course, the method of the embodiment of the invention can also be applied to other systems which need to compare the current selection index with the last selection index.
Specifically, the attribute of the index selected last time is recorded in an extended manner by using the instruction for the ui-select plug-in unit, so that in a system such as advertisement monitoring, the indexes selected in a plurality of ui-select plug-in units are different, if a user selects the same index from different lists of ui-select plug-in units, the index in the corresponding list of ui-select plug-in units can be switched to the index selected last time, and therefore in the monitoring system, the user can select any two different indexes to compare, and does not need to unconsciously select two same indexes, the same data appears, and unnecessary comparison is caused.
In summary, a first indicator selected in the first list is determined, and a second indicator selected in the second list is determined. And when the first index and the second index are the same, replacing the second index with a target index in a second list, wherein the target index is the index selected before the second index in the second list, and the target index is different from the first index. So that the target operation can be performed using the first index and the target index. In this way, when a user or a device selects the same index in different lists, the device can replace the index of one list with the selected index, and the selected index and the replaced index are different indexes, so that repeated selection of the same index in different lists including indexes can be avoided, and meaningful operations can be performed according to different indexes.
Fig. 4 is a flowchart of a method for operating a list according to an embodiment of the present invention. With reference to the above, and with reference to fig. 4, an apparatus according to an embodiment of the present invention includes:
a first determination unit 401 configured to determine a first index selected in the first list;
a second determining unit 402 configured to determine a second index selected in the second list;
a replacing unit 403, configured to replace the second index with a target index in the second list when the first index and the second index are the same, where the target index is an index in the second list that is selected before the second index, and the target index is different from the first index;
an execution unit 404 for executing the target operation using the first index and the target index.
Alternatively,
the execution unit 404, including an acquisition module 405, a comparison module 406, or a presentation module 407,
an obtaining module 405, configured to obtain data indicated by a first index, and obtain target data indicated by a target index;
a comparison module 406, configured to compare and analyze the data indicated by the first indicator and the target data;
alternatively, the first and second electrodes may be,
a display module 407, configured to display the data indicated by the first indicator and the target data in a chart.
Optionally, the first list includes at least two metrics, the second list includes at least two metrics,
the device of the embodiment of the invention also comprises:
an identifying unit 408 configured to identify the first index and the index other than the first index in the first list using different identification information, and identify the second index and the index other than the second index in the second list using different identification information.
Alternatively,
the identifying unit 408 is further configured to identify the first index and the preselected index using different identification information when the preselected index in the second list is the same index as the first index, wherein the preselected is an operation of determining the index by the user before selecting the index.
Alternatively,
the device of the embodiment of the invention also comprises:
and the prompting unit 409 is used for sending out prompting information, and the prompting information is used for prompting that the operation of selecting the index is abnormal.
Alternatively,
the first list and the second list are lists in the ui-select plugin.
In summary, a first indicator selected in the first list is determined, and a second indicator selected in the second list is determined. And when the first index and the second index are the same, replacing the second index with a target index in a second list, wherein the target index is the index selected before the second index in the second list, and the target index is different from the first index. So that the target operation can be performed using the first index and the target index. In this way, when a user or a device selects the same index in different lists, the device can replace the index of one list with the selected index, and the selected index and the replaced index are different indexes, so that repeated selection of the same index in different lists including indexes can be avoided, and meaningful operations can be performed according to different indexes.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method of list manipulation, the method comprising:
determining a first index selected in the first list;
determining a second index selected in the second list;
replacing the second index with a target index in the second list when the first index and the second index are the same, the target index being an index in the second list that was selected before the second index, the target index being different from the first index;
performing a target operation using the first metric and the target metric.
2. The method of claim 1, wherein performing a target operation using the first metric and the target metric comprises:
acquiring data indicated by the first index;
acquiring target data indicated by the target index;
comparing and analyzing the data indicated by the first index and the target data;
alternatively, the first and second electrodes may be,
data indicated by the first indicator and the target data are shown in a graph.
3. The method of claim 1, wherein the first list includes at least two metrics, wherein the second list includes at least two metrics,
the determining a first index selected in the first list; after determining the second index selected in the second list, the method further comprises:
identifying the first index and indexes except the first index in the first list by adopting different identification information;
and identifying the second index and indexes except the second index in the second list by adopting different identification information.
4. The method of claim 3,
before the determining the second index selected in the second list, the method further comprises:
when the preselected index in the second list is the same index as the first index, the first index and the preselected index are identified using different identification information, wherein preselection is an operation in which a user determines an index before selecting an index.
5. The method of claim 1, wherein when the first metric and the second metric are the same, the method further comprises:
and sending prompt information, wherein the prompt information is used for prompting that the operation of selecting the index is abnormal.
6. The method according to any one of claims 1 to 5,
the first list and the second list are lists in a ui-select plugin.
7. A list manipulation apparatus, said apparatus comprising:
a first determination unit configured to determine a first index selected in the first list;
a second determination unit configured to determine a second index selected in the second list;
a replacing unit, configured to replace the second index with a target index in the second list when the first index and the second index are the same, where the target index is an index in the second list that is selected before the second index, and the target index is different from the first index;
an execution unit to execute a target operation using the first index and the target index.
8. The apparatus of claim 7,
the execution unit comprises an acquisition module, a comparison module or a display module,
the acquisition module is used for acquiring the data indicated by the first index and acquiring the target data indicated by the target index;
the comparison module is used for comparing and analyzing the data indicated by the first index and the target data;
alternatively, the first and second electrodes may be,
and the display module is used for displaying the data indicated by the first index and the target data in a chart.
9. The apparatus of claim 7, wherein the first list includes at least two metrics, wherein the second list includes at least two metrics,
the device further comprises:
an identifying unit configured to identify the first index and the index other than the first index in the first list using different identification information, and identify the second index and the index other than the second index in the second list using different identification information.
10. The apparatus according to any one of claims 7 to 9,
the first list and the second list are lists in a ui-select plugin.
CN201611264915.9A 2016-12-30 2016-12-30 List operation method and device Active CN108268192B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611264915.9A CN108268192B (en) 2016-12-30 2016-12-30 List operation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611264915.9A CN108268192B (en) 2016-12-30 2016-12-30 List operation method and device

Publications (2)

Publication Number Publication Date
CN108268192A CN108268192A (en) 2018-07-10
CN108268192B true CN108268192B (en) 2020-11-24

Family

ID=62770136

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611264915.9A Active CN108268192B (en) 2016-12-30 2016-12-30 List operation method and device

Country Status (1)

Country Link
CN (1) CN108268192B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111026312B (en) * 2019-12-10 2021-07-23 北京新氧万维科技咨询有限公司 Linkage data processing method and device and terminal

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1669845A1 (en) * 2004-12-13 2006-06-14 Siemens Aktiengesellschaft Menu entries in drop-down menus of graphical user interfaces
CN104541510A (en) * 2012-04-15 2015-04-22 三星电子株式会社 Inter prediction method in which reference picture lists can be changed and apparatus for same
CN106033295A (en) * 2015-03-09 2016-10-19 阿里巴巴集团控股有限公司 A menu display method and device and a mobile terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8413070B1 (en) * 2007-05-07 2013-04-02 Adobe Systems Incorporated Declarative resizeable list in electronic form
WO2012094247A2 (en) * 2011-01-05 2012-07-12 Rovi Technologies Corporation Systems and methods for mixed-media content guidance
US20130286043A1 (en) * 2012-04-30 2013-10-31 General Electric Company Systems and methods for analyzing biomarker co-localization in a biological tissue
CN104636024A (en) * 2013-11-07 2015-05-20 腾讯科技(深圳)有限公司 Touch screen shortcut button control method and device and mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1669845A1 (en) * 2004-12-13 2006-06-14 Siemens Aktiengesellschaft Menu entries in drop-down menus of graphical user interfaces
CN104541510A (en) * 2012-04-15 2015-04-22 三星电子株式会社 Inter prediction method in which reference picture lists can be changed and apparatus for same
CN106033295A (en) * 2015-03-09 2016-10-19 阿里巴巴集团控股有限公司 A menu display method and device and a mobile terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
可配置WEB报表二次开发平台的设计与实现;秦涛;《中国优秀硕士学位论文全文数据库 信息科技辑》;20150415;第I138-341页 *

Also Published As

Publication number Publication date
CN108268192A (en) 2018-07-10

Similar Documents

Publication Publication Date Title
US11868404B1 (en) Monitoring service-level performance using defined searches of machine data
US11132109B2 (en) Timeline visualization and investigation systems and methods for time lasting events
WO2011152149A1 (en) Region recommendation device, region recommendation method, and recording medium
US20160004629A1 (en) User workflow replication for execution error analysis
CN100578445C (en) System and method for displaying dynamic graphical content in graphical user interface controls
WO2017104119A1 (en) Log analysis system, method, and program
CN105302828B (en) Page label information display method and device and electronic equipment
KR20130058336A (en) Analysis apparatus and method for usability of mobile application using user bebavior log
CN108268192B (en) List operation method and device
KR101164849B1 (en) Method for providing software estimation information, recording medium, and apparatus for providing software estimation information
US20210157928A1 (en) Information processing apparatus, information processing method, and program
US8782626B2 (en) Search suggestions for static code analysis
US20210405827A1 (en) Display control device, display control method, and display control program
US8887077B2 (en) Synchronized graphical and tabular performance data display
JP6670320B2 (en) Apparatus, method and system for graphical resolution dependent on signal resolution
CN110019431A (en) Processing method, system and the terminal device of data visualization
CN109710369B (en) full-graphical user interface display method and device
KR101422180B1 (en) Method of measuring application usability, server performing the same and storage media storing the same
JP2010250677A (en) Security-evaluating device, security-evaluating method for security-evaluating device, and security-evaluating program for security-evaluating device
US20190278871A1 (en) Data analysis system, data analysis method, and computer program product
CN105359111A (en) User-interface review method, device, and program
US20180081951A1 (en) Information generation system, a method and a non-transitory computer readable medium thereof
JP2010128894A (en) Database generation device, method of generating database, and computer program
JP2018055667A (en) Trace information management system, method, and program
CN107844103B (en) Method and device for displaying multiple errors on human-computer interface

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100080 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing

Applicant after: Beijing Guoshuang Technology Co.,Ltd.

Address before: 100086 Cuigong Hotel, 76 Zhichun Road, Shuangyushu District, Haidian District, Beijing

Applicant before: Beijing Guoshuang Technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant