CN113743061B - Numerical range adjustment method, device, electronic equipment and readable storage medium - Google Patents

Numerical range adjustment method, device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN113743061B
CN113743061B CN202111048671.1A CN202111048671A CN113743061B CN 113743061 B CN113743061 B CN 113743061B CN 202111048671 A CN202111048671 A CN 202111048671A CN 113743061 B CN113743061 B CN 113743061B
Authority
CN
China
Prior art keywords
row
numerical range
line
range
values
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
CN202111048671.1A
Other languages
Chinese (zh)
Other versions
CN113743061A (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.)
Shenzhen Jizhi Digital Technology Co Ltd
Original Assignee
Shenzhen Jizhi Digital 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 Shenzhen Jizhi Digital Technology Co Ltd filed Critical Shenzhen Jizhi Digital Technology Co Ltd
Priority to CN202111048671.1A priority Critical patent/CN113743061B/en
Publication of CN113743061A publication Critical patent/CN113743061A/en
Application granted granted Critical
Publication of CN113743061B publication Critical patent/CN113743061B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • 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
    • 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/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0486Drag-and-drop

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The present disclosure provides a numerical range adjustment method, apparatus, and electronic device and computer-readable storage medium, a target total number value range being divided into a first numerical range and a second numerical range, the method comprising: displaying a numerical range display page, wherein the numerical range display page displays a first numerical range through a first row and displays a second numerical range through a second row, and the first row and the second row are divided through a first row dividing line; in response to a drag instruction for the first line split line, displaying that the first line split line moves according to the drag instruction to adjust the line heights of the first line and the second line; repartitioning the target total number value range according to the first row of the first row and the second row of the second row to update the first value range and the second value range; the updated first range of values is displayed in a first row and the updated second range of values is displayed in a second row.

Description

Numerical range adjustment method, device, electronic equipment and readable storage medium
Technical Field
The disclosure relates to the technical field of computers and the internet, and in particular relates to a numerical range adjusting method and device, electronic equipment and a computer readable storage medium.
Background
In adjusting the numerical distribution range in a conventional environment, it is necessary to manually input numerical range values, for example, one range value "1-15" and another range value "15-17".
According to the numerical distribution range adjusting method, on one hand, manual operation input reduces adjusting efficiency; on the other hand, there may be a case of crossing of the ranges, such as the above-mentioned ranges "1-15" and the ranges "15-17", in which the overlapping range 15 occurs, and the occurrence of the above-mentioned case of crossing of the ranges may cause invalid setting of the ranges.
In view of the above problems, the present disclosure proposes a simple and convenient numerical range adjustment method.
It should be noted that the information disclosed in the foregoing background section is only for enhancing understanding of the background of the present disclosure.
Disclosure of Invention
It is an object of the present disclosure to provide a numerical range adjustment method, apparatus, electronic device, and computer-readable storage medium capable of quickly and accurately adjusting numerical ranges in different rows by adjusting a line height ratio, and avoiding range crossing.
Other features and advantages of the present disclosure will be apparent from the following detailed description, or may be learned in part by the practice of the disclosure.
The embodiment of the disclosure provides a numerical range adjustment method, which comprises the following steps: displaying a numerical range display page, wherein the numerical range display page displays the first numerical range through a first row and displays the second numerical range through a second row, and the first row and the second row are divided through a first row dividing line; displaying that the first line dividing line moves according to a drag instruction in response to the drag instruction for the first line dividing line to adjust the line heights of the first line and the second line; repartitioning the target total range of values according to the first row of the first row and the second row of the second row to update the first range of values and the second range of values; and displaying the updated first numerical range in the first row and displaying the updated second numerical range in the second row.
In some embodiments, re-dividing the target total numerical range according to the first row of the first row and the second row of the second row to update the first numerical range and the first numerical range includes: determining a first row high sum from the first row and the second row; determining a first row ratio of the first row height to the first row height sum and a second row ratio of the second row height to the first row height sum; updating the first range of values according to the first row ratio and the target total range of values; and updating the second numerical range according to the second row ratio and the target total number value range.
In some embodiments, the first row includes an upper boundary line and a lower boundary line, the lower boundary line of the first row being a first row split line between the first row and the second row; wherein displaying, in response to a drag instruction for the first line split line, the first line split line moving according to the drag instruction to adjust the line heights of the first line and the second line, comprises: responding to a dragging instruction for the first line dividing line, and acquiring the distance between the first line dividing line and an upper boundary line of the first line; if the distance between the first line dividing line and the upper boundary line of the first line is smaller than a first threshold value, determining that the first line dividing line coincides with the upper boundary line of the first line; deleting the first row; wherein re-dividing the target total numerical range according to the first row of the first row and the second row of the second row to update the first numerical range and the second numerical range comprises: the first range of values is combined with the second range of values to update the second range of values.
In some embodiments, the first row includes an upper boundary line and a lower boundary line, the lower boundary line of the first row being a first row split line between the first row and the second row; wherein displaying, in response to a drag instruction for the first line split line, the first line split line moving according to the drag instruction to adjust the line heights of the first line and the second line, comprises: responding to a dragging instruction for the first line dividing line, and acquiring the distance between the first line dividing line and an upper boundary line of the first line; if the distance between the first line of dividing lines and the upper boundary line of the first line is smaller than a second threshold value, displaying that the first line of dividing lines cannot be dragged upwards, and displaying a dragging stopping prompt; wherein re-dividing the target total numerical range according to the first row of the first row and the second row of the second row to update the first numerical range and the second numerical range comprises: determining a first row of the first row after dragging and a second row of the second row after dragging; and updating the first numerical range and the second numerical range according to the first row after dragging, the second row after dragging and the target total numerical range. In some embodiments, the first row is above the first row, the method further comprising: displaying a first new control under the row of the second row; responding to the triggering operation of the first newly-added control, and determining that the values of the first value range and the second value range are consistent in size; dividing the target total numerical range into a first updated numerical range, a second updated numerical range and a third updated numerical range according to the number average of data, wherein the maximum value of the first updated numerical range is smaller than the minimum value of the second updated numerical range, and the maximum value of the second updated numerical range is smaller than the minimum value of the third updated numerical range; updating a first row of the first row and the first numerical range according to the first updated numerical range; updating a second row of the second row and the second range of values according to the second updated range of values; determining a third row of values and a third range of values from the third updated range of values; displaying the third row and the third range of values by the third row below the second row.
In some embodiments, the second row and the third row are divided by a second row division line; wherein the method further comprises: displaying the second line dividing line and simultaneously displaying a deletion control corresponding to the second line dividing line; responding to the triggering operation for the deleting control, and determining that the values of the first value range, the second value range and the third value range are consistent in size; dividing the target total numerical range into two parts according to the number of data to update the first numerical range and the second numerical range; merging the third row to the second row; displaying the updated first numerical range on the first row and displaying the updated second numerical range on the second row.
In some embodiments, the second row and the third row are divided by a second row division line; wherein the method further comprises: displaying the second line dividing line and simultaneously displaying a deletion control corresponding to the second line dividing line; responding to the triggering operation for the deleting control, and determining that the sizes of the numerical ranges corresponding to the first numerical range, the second numerical range and the third numerical range are inconsistent; merging the third range of values into the second range of values to update the second range of values; merging the third row to the second row; displaying the first numerical range on the first row and displaying the updated second numerical range on the second row.
In some embodiments, the first row is above the second row, the method further comprising: displaying a second newly added control over the first row; responding to the triggering operation of the second newly-added control, and determining that the values of the first value range and the second value range are inconsistent in size; dividing the first numerical range into a fourth updated numerical range and a fifth updated numerical range according to data number average, wherein the maximum value in the fourth updated numerical range is smaller than the minimum value in the fifth updated numerical range; updating the first row and the first numerical range of the first row according to the fifth updated numerical range; determining a fourth row of a fourth row and a fourth numerical range according to the fourth updated numerical range; the first row and the first range of values are displayed by the fourth row over the first row while the first row and the first range of values are displayed according to the updated first row height.
The embodiment of the disclosure provides a numerical range adjustment device, which comprises: the device comprises a numerical range display module, a dragging module, a re-segmentation module and an updating display module.
The numerical range display module is used for displaying a numerical range display page, the numerical range display page displays the first numerical range through a first row, displays the second numerical range through a second row, and the first row and the second row are divided through a first row dividing line; the dragging module may be configured to respond to a dragging instruction for the first line dividing line, and display that the first line dividing line moves according to the dragging instruction, so as to adjust the line heights of the first line and the second line; the re-segmentation module may be configured to re-segment the target total numerical range according to a first row of the first row and a second row of the second row to update the first numerical range and the second numerical range; the update display module may be configured to display an updated first range of values in the first row and an updated second range of values in the second row.
The embodiment of the disclosure provides an electronic device, which comprises: one or more processors; and a storage device for storing one or more programs that, when executed by the one or more processors, cause the one or more processors to implement the method of numerical range adjustment of any of the above.
The presently disclosed embodiments provide a computer readable storage medium having stored thereon a computer program which when executed by a processor implements a method of adjusting a numerical range as set forth in any of the above.
Embodiments of the present disclosure propose a computer program product or a computer program comprising computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions so that the computer device performs the above-described numerical range adjustment method.
According to the numerical range adjusting method, the device, the electronic equipment and the computer readable storage medium, on one hand, the numerical ranges of different rows are adjusted by adjusting the row height, so that the union of a first numerical range corresponding to a first row and a second numerical range corresponding to a second row is always the target total number value range no matter how the union is adjusted, and the problem that the intersection occurs between the first adjusting range and the second adjusting range is avoided; on the other hand, the row heights of the first row and the second row are adjusted through the first row dividing line, and then the numerical value ranges corresponding to the first row and the second row are adjusted, and the adjustment mode of the numerical value ranges is simple and visual, and manual input is not needed.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure. It will be apparent to those of ordinary skill in the art that the drawings in the following description are merely examples of the disclosure and that other drawings may be derived from them without undue effort.
Fig. 1 shows a schematic diagram of an exemplary system architecture of a numerical range adjustment method or a numerical range adjustment apparatus that may be applied to embodiments of the present disclosure.
Fig. 2 is a flow chart illustrating a method of adjusting a range of values according to an exemplary embodiment.
FIG. 3 is a schematic diagram of a numerical range display interface, according to an example embodiment.
FIG. 4 is a schematic diagram illustrating a first range of values and a second range of values after dragging a first line of severance lines in accordance with an exemplary embodiment.
FIG. 5 is a schematic diagram illustrating a first range of values and a second range of values after dragging a first line of dividing lines, according to an example embodiment.
FIG. 6 is a schematic diagram illustrating a first range of values and a second range of values after dragging a first line of severance lines in accordance with an exemplary embodiment.
Fig. 7 is a flow chart illustrating a method of row addition according to an exemplary embodiment.
FIG. 8 is a schematic diagram of a numerical range display interface, according to an example embodiment.
FIG. 9 is a schematic diagram of a numerical range display interface, according to an example embodiment.
Fig. 10 is a flow chart illustrating a method of row addition according to an exemplary embodiment.
FIG. 11 is a schematic diagram of a numerical range display interface, according to an example embodiment.
FIG. 12 is a schematic diagram of a numerical range display interface, according to an example embodiment.
Fig. 13 is a flow chart illustrating a method of row deletion according to an exemplary embodiment.
FIG. 14 is a schematic diagram of a numerical range display interface, according to an example embodiment.
Fig. 15 is a flow chart illustrating a method of row deletion according to an exemplary embodiment.
FIG. 16 is a schematic diagram illustrating a numerical range display interface, according to an example embodiment.
Fig. 17 is a block diagram illustrating a numerical range adjustment device according to an exemplary embodiment.
Fig. 18 shows a schematic structural diagram of an electronic device suitable for use in implementing embodiments of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments can be embodied in many forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art. The same reference numerals in the drawings denote the same or similar parts, and thus a repetitive description thereof will be omitted.
The described features, structures, or characteristics of the disclosure may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the present disclosure. However, those skilled in the art will recognize that the aspects of the present disclosure may be practiced with one or more of the specific details, or with other methods, components, devices, steps, etc. In other instances, well-known methods, devices, implementations, or operations are not shown or described in detail to avoid obscuring aspects of the disclosure.
The drawings are merely schematic illustrations of the present disclosure, in which like reference numerals denote like or similar parts, and thus a repetitive description thereof will be omitted. Some of the block diagrams shown in the figures do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software or in one or more hardware modules or integrated circuits or in different networks and/or processor devices and/or microcontroller devices.
The flow diagrams depicted in the figures are exemplary only, and not necessarily all of the elements or steps are included or performed in the order described. For example, some steps may be decomposed, and some steps may be combined or partially combined, so that the order of actual execution may be changed according to actual situations.
In the present specification, the terms "a," "an," "the," "said" and "at least one" are used to indicate the presence of one or more elements/components/etc.; the terms "comprising," "including," and "having" are intended to be inclusive and mean that there may be additional elements/components/etc., in addition to the listed elements/components/etc.; the terms "first," "first," and "second," etc. are used merely as labels, and do not limit the number of their objects.
The following describes example embodiments of the present disclosure in detail with reference to the accompanying drawings.
Fig. 1 shows a schematic diagram of an exemplary system architecture of a numerical range adjustment method or a numerical range adjustment apparatus that may be applied to embodiments of the present disclosure.
As shown in fig. 1, a system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used as a medium to provide communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The user may interact with the server 105 via the network 104 using the terminal devices 101, 102, 103 to receive or send messages or the like. The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, wearable devices, virtual reality devices, smart homes, etc.
The terminal devices 101, 102, 103 may, for example, perform the following operations: displaying a numerical range display page, wherein the numerical range display page displays the first numerical range through a first row and displays the second numerical range through a second row, and the first row and the second row are divided through a first row dividing line; displaying that the first line dividing line moves according to a drag instruction in response to the drag instruction for the first line dividing line to adjust the line heights of the first line and the second line; repartitioning the target total range of values according to the first row of the first row and the second row of the second row to update the first range of values and the second range of values; and displaying the updated first numerical range in the first row and displaying the updated second numerical range in the second row.
The server 105 may be a server providing various services, such as a background management server providing support for devices operated by users with the terminal devices 101, 102, 103. The background management server can analyze and process the received data such as the request and the like, and feed back the processing result to the terminal equipment.
The server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server or the like for providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs (Content Delivery Network, content delivery networks), basic cloud computing services such as big data and artificial intelligent platforms, and the disclosure is not limited thereto.
It should be understood that the number of terminal devices, networks and servers in fig. 1 is merely illustrative, and that the server 105 may be a server of one entity, or may be composed of a plurality of servers, and may have any number of terminal devices, networks and servers according to actual needs.
Fig. 2 is a flow chart illustrating a method of adjusting a range of values according to an exemplary embodiment. The method provided in the embodiments of the present disclosure may be performed by any electronic device having computing processing capability, for example, the method may be performed by a server or a terminal device in the embodiment of fig. 1, or may be performed by both the server and the terminal device, and in the following embodiments, the terminal device is taken as an example to illustrate an execution subject, but the present disclosure is not limited thereto.
Before the present embodiment is executed, a target total value range needs to be obtained in advance, where the target total value range may be set by a user, or may be an output range of other methods, etc., and the disclosure does not limit a specific source of the target total value range.
Referring to fig. 2, the numerical range adjustment method provided by the embodiment of the present disclosure may include the following steps.
Step S202, displaying a numerical range display page, wherein the numerical range display page displays the first numerical range through a first row and displays the second numerical range through a second row, and the first row and the second row are divided through a first row dividing line.
In some embodiments, different numerical ranges and attribute information corresponding to the numerical ranges may be displayed by different rows in the numerical range display page.
As shown in fig. 3, a first numerical range 1-15 and attribute information, i.e., bonus information, corresponding to the first numerical range may be displayed through a first line 301; the second range of values 16-30 and the attribute information, rewards information, corresponding to the range of values may also be displayed via the second row 302.
Wherein the first range of values and the second range of values are related to one another to obtain a target total range of values. For example, the first range of values 1-15 and the second range of values 16-30 in the interface shown in FIG. 3 may be phased and the target total range of values 1-30 may be obtained.
In some embodiments, the first and second rows may be partitioned by a first row partition line 303 as shown in fig. 3, and the row heights of the first and second rows 301 and 302 may be adjusted by adjusting the position of the first row partition line 303, thereby adjusting the first range of values corresponding to the first row 301 and the second range of values corresponding to the second row 302.
In step S204, in response to a drag instruction for the first line dividing line, the first line dividing line is displayed to move according to the drag instruction, so as to adjust the line heights of the first line and the second line.
In some embodiments, the numerical range display interface may also display a drag control (e.g., drag control 304 in fig. 3) corresponding to the first line of separation lines near the first line of separation lines. The user may issue a drag instruction for the first line of severance line to the electronic device by dragging a drag control (e.g., control 304 in fig. 3) of the first line of severance line or dragging the first line of severance line (e.g., first line of severance line 303 in fig. 3).
In some embodiments, the user may drag the first line of severance lines up or down to move the first line of severance lines.
And step S206, re-dividing the target total numerical range according to the first row of the first row and the second row of the second row to update the first numerical range and the second numerical range.
With the movement of the first line of division lines, the first numerical range and the second numerical range are updated and displayed in real time, so that a user can determine the first numerical range and the second numerical range after final updating.
In some embodiments, the following method may be performed in real time to update the first and second numerical ranges in real time according to the first line of separation lines: determining a first row of the first row and a second row of the second row; determining a first row high sum from the first row and the second row; determining a first row ratio of the first row height to the first row height sum and a second row ratio of the second row height to the first row height sum; updating the first range of values according to the first row ratio and the target total range of values; and updating the second numerical range according to the second row ratio and the target total number value range.
In some embodiments, updating the first range of values based on the first row ratio and the target total range of values may include the following: determining that the minimum value of the first range of values (e.g., minimum value 1 of the first range of values in fig. 3) is the minimum value of the target total range of values (the minimum value of the target total range of values 1-30 is 1); determining a target data number, which is a value obtained by adding 1 to a difference between a maximum value and a minimum value in a target total value range (taking a target total value range of 1-30 as an example, the target data number=30-29+1); multiplying the first row height ratio by the number of target data to determine a first boundary value (e.g., 10); an updated first range of values (e.g., 1-10) is generated based on the minimum value (e.g., 1) of the target total range of values and the first boundary value (e.g., 10).
If the first row height ratio is not an integer obtained by multiplying the target data number, an up rounding (or a down rounding) operation or a down rounding operation is performed on the first row height ratio and the target data number to obtain the first boundary value.
In some embodiments, updating the second range of values based on the second row ratio and the target total range of values may include the steps of: determining that the second numerical range and the first numerical range are adjacent numerical ranges (for example, the step size of the data in the target numerical range is N, if the difference between the maximum value of the first numerical range and the minimum value of the second numerical range is N, or if the difference between the minimum value of the first numerical range and the maximum value of the second numerical range is N, the first numerical range and the second numerical range can be considered to be adjacent numerical ranges, N is a positive number), and the maximum value of the first numerical range is smaller than the minimum value of the second numerical range (as shown in fig. 3, the maximum value 15 of the first numerical range is smaller than the minimum value 16 of the second numerical range), and continuously judging whether the maximum value of the second numerical range is the maximum value of the target total number range; if the maximum value of the second value range is the maximum value of the target total value range (as shown in fig. 3, the maximum value 30 of the second value range is equal to the maximum value 30 of the target total value range 1-30), the second value range is updated according to the first boundary value and the maximum value of the target total value range (the first boundary value is added with a step length to determine the lower boundary (assuming that the step length of the target total value range is 1, the first boundary value 10 obtained above can be added with 1 to determine the lower boundary 11), and the updated first value range (11-30) is obtained with the maximum value 30 of the target total value range as the upper boundary); if the maximum value of the second numerical range is smaller than the maximum value of the target total numerical range (i.e. the maximum value of the second numerical range is not the upper boundary value of the target total numerical range), summing the first row height ratio and the second row height ratio to generate a target row height ratio; multiplying the target row height ratio by the target number of data in the target total number value range to determine a second boundary value; the second range of values is updated based on the first boundary value and the second boundary value (e.g., the first boundary value is incremented by a step size of the target total range of values to serve as a lower boundary of the second range of values and the second boundary value is used as an upper boundary of the second range of values).
As shown in fig. 3, the first numerical range before dragging is 1-15, the second numerical range is 16-30, and the target total numerical range is 1-30, and if the first row dividing line is dragged, the first row height ratio is 1/3, and the second row height ratio is 2/3, then the first row height ratio is multiplied by the target data number 30 of the target total numerical range, and it can be determined that the first numerical range is 1-10, and the second numerical range is 11-30.
It should be noted that the data size relationship between the first numerical range and the second numerical range is consistent before and after the dragging. For example, the data in the first numerical range before dragging is smaller than the data in the second numerical range, and then the data in the first numerical range after updating is smaller than the data in the second numerical range after updating.
Step S208, displaying the updated first numerical range in the first row, and displaying the updated second numerical range in the second row.
FIG. 4 is a schematic diagram illustrating a first range of values and a second range of values after dragging a first line of severance lines in accordance with an exemplary embodiment.
After the first and second numerical ranges are updated in real time, the updated first numerical range (e.g., 1-10) may be displayed via the first row 401 and the updated second numerical range (e.g., 11-30) may be displayed via the second row 402 at the interface as shown in FIG. 4.
In some embodiments, as shown in fig. 3, the first row may include an upper boundary line and a lower boundary line, and the lower boundary line of the first row may be a first row dividing line 303 between the first row and the second row.
Then, in response to a drag instruction for the first line split line, displaying that the first line split line moves according to the drag instruction to adjust the line heights of the first line and the second line may include the following process:
Responding to a dragging instruction for the first line dividing line, and acquiring the distance between the first line dividing line and an upper boundary line of the first line; if the distance between the first line dividing line and the upper boundary line of the first line is smaller than a first threshold (preset value in advance), determining that the first line dividing line coincides with the upper boundary line of the first line; deleting the first row; and combining the first range of values with the second range of values to update the second range of values.
That is, when the distance between the first line dividing line and the upper boundary line of the first line is smaller than the first threshold, then the first line dividing line may be considered to coincide with the upper boundary line of the first line, then the first line may be deleted, and the first numerical range (e.g., 1-10) and the second numerical range (11-30) may be directly combined to generate the updated second numerical range (as shown in fig. 5, 501 may be regarded as a line after the first line and the second line are combined, and the updated second numerical range 1-30 may be displayed through the line 501).
It should be noted that the first and second embodiments of the present disclosure are merely used to distinguish names, and are not limited in any size and position. Moreover, although the present embodiment has been described as an embodiment in which the first line is deleted, the first numerical range and the second numerical range are combined to generate the updated second numerical range, in practice, the second line may be deleted, and the second numerical range and the first numerical range are combined to generate the updated first numerical range, which is not limited in this disclosure.
It should be noted that the positional relationship between the first row, the second row (or the third row, the fourth row, or the like) and the second row before and after the update does not change, and the size relationship between the data does not change.
In some other embodiments, the first row includes an upper boundary line and a lower boundary line, the lower boundary line of the first row being a first row split line between the first row and the second row; then, in response to a drag instruction for the first line split line, displaying that the first line split line moves according to the drag instruction to adjust the line heights of the first line and the second line may include: responding to a dragging instruction for the first line dividing line, and acquiring the distance between the first line dividing line and an upper boundary line of the first line; if the distance between the first line dividing line and the upper boundary line of the first line is smaller than a second threshold (preset value in advance), displaying that the first line dividing line cannot be dragged upwards, and displaying a drag stopping prompt (for example, "the upper limit is reached, and the drag cannot be upwards"); wherein re-dividing the target total numerical range according to the first row of the first row and the second row of the second row to update the first numerical range and the second numerical range comprises: determining a first row of the first row after dragging and a second row of the second row after dragging; updating the first range of values (e.g., 1 in fig. 6) and the second range of values (e.g., 2-30 in fig. 6) based on the first line after dragging, the second line after dragging, and the target total range of values.
Fig. 6 is a numerical range display interface according to an exemplary embodiment, and fig. 6 shows the updated first numerical range 1 in a first row 601 and the second numerical range 2-30 in a second row 602.
In some embodiments, a second threshold may be preset in advance, so that when the distance between the first line dividing line and the upper boundary of the first line is smaller than the second threshold, the first line dividing line is not allowed to move upwards any more, so as to ensure that the first numerical range exists, and the first line has enough rows to display the first numerical range and attribute information corresponding to the first numerical range.
According to the technical scheme provided by the embodiment, on one hand, the numerical value ranges of different rows are adjusted by adjusting the row height ratio, so that the numerical value range corresponding to the row can be intuitively and conveniently determined through the row height, the union of the first numerical value range corresponding to the first row and the second numerical value range corresponding to the second row can be always the target total number value range regardless of the adjustment, and the problem that the intersection occurs between the first adjustment range and the second adjustment range can be avoided; on the other hand, the row heights of the first row and the second row are adjusted through the first row dividing line, and then the numerical value ranges corresponding to the first row and the second row are adjusted, and the adjustment mode of the numerical value ranges is simple and visual.
Fig. 7 is a flow chart illustrating a method of row addition according to an exemplary embodiment.
Referring to fig. 7, the above-described row-new method may include the following steps.
Step S702, displaying a second newly added control over the first row.
In some embodiments, a new increment control may be displayed above the top row and below the bottom row of the numerical range display interface to increment one row above the top row and its corresponding numerical range or to increment one row below the bottom row and its corresponding numerical range.
As shown in fig. 3, assuming that the first row 301 is above the second row 302, the first row 301 is the top row of the numerical display interface, the second row 302 is the bottom row of the numerical display interface, a second new control 305 may be displayed above the first row 301, and a first new control 306 may be displayed below the first row 302.
Step S704, in response to the triggering operation for the second newly added control, determines that the values of the first and second value ranges are inconsistent.
In some embodiments, the numerical ranges corresponding to the first and second numerical ranges are considered inconsistent in size if the number of data included in the first numerical range (e.g., the number of data in the first numerical range 1-10 is 10) is different from the number of data included in the second numerical range (e.g., the number of data in the second numerical range 11-30 is 20), or the distance between the maximum and minimum of the first numerical range (e.g., the distance between the maximum and minimum of the first numerical range 1-10 is 10-1=9) is different from the distance between the maximum and minimum of the second numerical range (e.g., the distance between the maximum and minimum of the second numerical range 11-30 is 30-11=19).
In some embodiments, the first range of values and the second range of values may be non-uniform in size by adjusting a first line split line between the first line and the second line.
Step S706, dividing the first numerical range into a fourth updated numerical range and a fifth updated numerical range according to the number average, where the maximum value in the fourth updated numerical range is smaller than the minimum value in the fifth updated numerical range.
In some embodiments, when the second new button is triggered and it is determined that the number of data corresponding to each numerical range displayed in the numerical display interface is inconsistent, the first numerical range may be evenly allocated, so that the numerical ranges corresponding to each row are consistent.
In some embodiments, if it is determined that the first numerical range (e.g., 1-20) is inconsistent with the numerical range of the second numerical range (e.g., 21-30) after the second new control is triggered, the first numerical range (1-20) below the second new control may be equally divided into a fourth updated numerical range and a fifth updated numerical range, wherein the maximum value of the fourth updated numerical range may be less than the maximum value of the fifth updated numerical range.
Step S708, updating the first row and the first numerical range of the first row according to the fifth updated numerical range.
In some embodiments, a fifth updated range of values with a greater maximum value may be used as the first range of values, and then the rows of the first row are back-pushed according to the updated first range of values.
The method for determining the height according to the value range in the embodiment may be implemented according to the embodiment for determining the value range according to the height, which is not described in detail in this disclosure.
Step S710, determining a fourth row of values and a fourth range of values according to the fourth updated range of values.
In some embodiments, the row height of the fourth row may be determined from a fourth range of values having a smaller maximum value.
In some embodiments, the row of the first row before the new control is triggered can be divided into two parts, and the row of the fourth row and the row of the fifth row can be used as the row of the third row.
Step S712, displaying the first row and the first numerical range by the fourth row above the first row while displaying the first row and the fourth numerical range according to the updated first row height.
In some embodiments, if the first range of values for the first row is 1-22 and the second range of values for the second row is 22-30, then after clicking on the second add-on control over the first row, a range display interface may be generated as shown in fig. 8. In the numerical range display interface shown in fig. 8, a fourth line 801 may be generated above the first line 802 in response to a new instruction, and the fourth numerical range 1-11 may be displayed through the fourth line 801, the first numerical range 12-22 may be displayed through the first line 802, and the second numerical range 22-30 may be displayed through the second line 803.
In still other embodiments, if, in response to a trigger operation for the second newly added control, it is determined that the numerical range sizes of the respective numerical ranges in the numerical range display interface are consistent (e.g., it is determined that the numerical range sizes of the first and second numerical ranges are consistent), then the target total data range is averaged (e.g., the target total numerical range is averaged by the number of rows 3 in the newly added data range display interface) to obtain the updated first, second, and fourth numerical ranges, respectively.
For example, if the first numerical range is 1-15 and the second numerical range is 16-30 before the second new control is triggered, the target total number value range is divided into 3 parts after the second new control is triggered, which are respectively a fourth numerical range (which may be displayed by the fourth row 901 in fig. 9), a first numerical range (which may be displayed by the first row 902 in fig. 9), and a second numerical range (which may be displayed by the second row 903 in fig. 9).
Fig. 10 is a flow chart illustrating a method of row addition according to an exemplary embodiment.
Step S1002 displays a first new control under the row of the second row.
In some embodiments, a new increment control may be displayed above the top row and below the bottom row of the numerical range display interface to increment one row above the top row and its corresponding numerical range or to increment one row below the bottom row and its corresponding numerical range.
As shown in fig. 3, a first new button 306 may be displayed below the second row 302.
In step S1004, in response to the triggering operation for the first new control, it is determined that the numerical value ranges corresponding to the first numerical value range and the second numerical value range are consistent in size.
In step S1006, the target total numerical range is divided into a first updated numerical range, a second updated numerical range and a third updated numerical range according to the number average, wherein the maximum value of the first updated numerical range is smaller than the minimum value of the second updated numerical range, and the maximum value of the second updated numerical range is smaller than the minimum value of the third updated numerical range.
In some embodiments, after the first new button is activated, if it is determined that the first numerical range (e.g., 1-15 shown in fig. 3) is consistent with the second numerical range (e.g., 16-30 shown in fig. 3), the target total number of numerical ranges may be averaged according to the number of rows in the newly-added numerical range display interface to generate the first updated numerical range (1-10), the second updated numerical range (11-20), and the third updated numerical range (21-30).
Step S1008, updating the first row of the first row and the first numerical range according to the first updated numerical range.
Step S1010, updating the second row of the second row and the second value range according to the second updated value range.
In some embodiments, the first range of values and the second range of values may be assigned according to a precedence relationship between the first row and the second row. If the maximum value of the first numerical range corresponding to the first line before the new line is smaller than the maximum value in the second numerical range, the first numerical range of the first line may be updated according to the first updated numerical range (or the second updated numerical range) with the smaller maximum value. It is conceivable that if the maximum value of the first numerical range is greater than the maximum value of the second numerical range, the first numerical range may be updated according to the second updated numerical range (or the first updated numerical range) with the greater maximum value, which is not limited in this disclosure, and may be set by those skilled in the art according to their own practical experience.
Step S1012, determining a third row of values and a third range of values according to the third updated range of values.
In some embodiments, if the maximum value of the second numerical range before updating is greater than the maximum value in the first numerical range, the maximum value of the third numerical range corresponding to the third row should also be greater than the second numerical range, then the third numerical range may be determined according to the third updated numerical range with the maximum value being the largest, and the row height of the third row may be determined according to the determined third numerical range.
Step S1014, displaying the third row and the third numerical range by the third row under the second row.
As shown in fig. 11, a first range of values 1-10 may be displayed by a first row 110, a second range of values 11-20 may be displayed by a second row 111, and a third range of values 21-30 may be displayed by a third range of values 112, wherein the trend of the newly added range of values is consistent with the trend of the newly added range of values. For example, if the second row is located below the first row before the new addition, the values in the second range are all greater than the values in the first range, then after the new addition, the values in the third range for the third row located below the second row should also be all greater than the values in the first range and the second range, and the values in the second range located below the first row should also be all greater than the values in the first range.
In still other embodiments, if it is determined that the first range of values (e.g., 1-8) and the second range of values (e.g., 9-30) are not uniform in size in response to a trigger operation for the first new control, the second range of values (9-30) may be divided to update the second range of values (11-20) and the third range of values (21-30), and the first range of values 1-8 is displayed by the first row 121, the second range of values 9-19 is displayed by the second row 122, and the third range of values 20-30 is displayed by the third row 123 in the range of values display interface shown in fig. 12.
Fig. 13 is a flow chart illustrating a method of row deletion according to an exemplary embodiment.
In some embodiments, as shown in fig. 11, the second row 111 and the third row 112 in the numerical range display interface may be divided by a second row division line 113.
In step S1302, the deletion control corresponding to the second line dividing line is displayed while the second line dividing line is displayed.
In some embodiments, a delete control for the second line split line (e.g., delete control 114 shown in FIG. 11) is also displayed adjacent to the second line split line.
In step S1304, in response to the triggering operation for the deletion control, it is determined that the numerical ranges corresponding to the first numerical range, the second numerical range, and the third numerical range are consistent in size.
In some embodiments, in response to a trigger operation of the delete control for the second line of separation, it may be determined whether the corresponding numerical ranges in the respective lines of the numerical range display interface are uniform in size. For example, if the first numerical range is displayed in the first line, the second numerical range is displayed in the second line, and the third numerical range is displayed in the third line in the numerical range display interface, it may be determined whether the numerical ranges corresponding to the first numerical range, the second numerical range, and the third numerical range are identical in size.
Step S1306, dividing the target total numerical range into two parts according to the number of data, so as to update the first numerical range and the second numerical range.
In some embodiments, if the first, second, and third numerical ranges are consistent in size, the target total number of numerical ranges may be directly halved according to the number of rows (e.g., 2) in the deleted numerical range display interface to update the first and second numerical ranges.
It should be noted that the data size relationship between the first numerical range and the second numerical range before and after updating is consistent. If the first, second and third rows are displayed in data increments prior to updating, then the first and second numerical ranges are displayed in data increments as well after updating.
Step S1308, merging the third row to the second row.
Step S1310, displaying the updated first numerical range on the first line and displaying the updated second numerical range on the second line.
In some embodiments, updated first numerical ranges 1-15 may be displayed by first row 141 and second numerical ranges 16-30 may be displayed by second row 142 in a numerical range display interface as shown in FIG. 14. s
Fig. 15 is a flow chart illustrating a method of row deletion according to an exemplary embodiment.
Referring to fig. 15, the above-described line deletion method may include the following steps.
In some embodiments, as shown in fig. 12, the second line 122 and the third line 123 in the numerical range display interface may be divided by a second line dividing line 124.
In step S1502, the deletion control corresponding to the second line dividing line is displayed while the second line dividing line is displayed.
In some embodiments, a delete control for the second row split line 124 (e.g., delete control 125 shown in FIG. 12) is also displayed adjacent to the second row split line.
In step S1504, in response to the triggering operation for the deletion control, the values of the first, second and third numerical ranges are determined to be inconsistent.
In some embodiments, in response to a trigger operation of the delete control for the second line of separation, it may be determined whether the corresponding numerical ranges in the respective lines of the numerical range display interface are uniform in size. For example, if the first numerical range is displayed in the first line, the second numerical range is displayed in the second line, and the third numerical range is displayed in the third line in the numerical range display interface, it may be determined whether the numerical ranges corresponding to the first numerical range, the second numerical range, and the third numerical range are identical in size.
Step S1506, merging the third range of values into the second range of values to update the second range of values.
In some embodiments, if the first, second, and third numerical ranges are not uniform in size, a third numerical range (e.g., third numerical range 20-30 corresponding to third row 123 in fig. 12) may be merged into a second numerical range (e.g., second numerical range 9-19 corresponding to second row in fig. 12) to generate an updated second numerical range (e.g., second numerical range 9-30 shown by second row 161 in fig. 16).
It should be noted that the data size relationship between the first numerical range and the second numerical range before and after updating is consistent. If the first, second and third rows are displayed in data increments prior to updating, then the first and second numerical ranges are displayed in data increments as well after updating.
Step S1508, merging the third row into the second row.
Step S1510 displays the first numerical range on the first line and the updated second numerical range on the second line.
Fig. 17 is a block diagram illustrating a numerical range adjustment device according to an exemplary embodiment. Referring to fig. 17, a numerical range adjustment apparatus 1700 provided by an embodiment of the present disclosure may include: a numerical range display module 1701, a drag module 1702, a re-segmentation module 1703, and an update display module 1704.
The numerical range display module 1701 may be configured to display a numerical range display page, where the numerical range display page displays the first numerical range through a first line and the second numerical range through a second line, and the first line and the second line are divided through a first line dividing line; the drag module 1702 may be configured to display, in response to a drag instruction for the first line split line, that the first line split line moves according to the drag instruction to adjust the line heights of the first line and the second line; the re-segmentation module 1703 may be configured to re-segment the target total numerical range according to a first row of the first row and a second row of the second row to update the first numerical range and the second numerical range; the update display module 1704 may be configured to display the updated first range of values in the first row and the updated second range of values in the second row.
In some embodiments, the re-segmentation module 1703 may include: the system comprises a first row and determination sub-module, a row ratio determination sub-module, a first numerical range updating sub-module and a second numerical range updating sub-module.
Wherein the first row and determination sub-module may be configured to determine a first row and from the first row and the second row; the row-ratio determination submodule may be configured to determine a first row ratio of the first row height to the first row sum and a second row ratio of the second row height to the first row sum; a first numerical range updating sub-module may be configured to update the first numerical range based on the first row ratio and the target total number value range; a second range of values update sub-module may be configured to update the second range of values based on the second row-to-row ratio and the target total range of values.
In some embodiments, the first row includes an upper boundary line and a lower boundary line, the lower boundary line of the first row being a first row split line between the first row and the second row; wherein, the dragging module 1702 may include: the distance determining sub-module, the first distance judging sub-module, the coincidence judging sub-module and the deleting sub-module; wherein the re-segmentation module 1703 may include: and a first merging sub-module.
The distance determining first sub-module may be configured to obtain a distance between the first line dividing line and an upper boundary line of the first line in response to a drag instruction for the first line dividing line; the first distance judging submodule may be configured to determine that the first line dividing line coincides with an upper boundary line of the first line if a distance between the first line dividing line and the upper boundary line of the first line is smaller than a first threshold; a delete sub-module may be used to delete the first row; the first merging sub-module may be configured to merge the first range of values with the second range of values to update the second range of values.
In some embodiments, the first row includes an upper boundary line and a lower boundary line, the lower boundary line of the first row being a first row split line between the first row and the second row; wherein, the dragging module 1702 may include: a second distance determining sub-module and a second distance judging sub-module; wherein the re-segmentation module 1703 may include: a row determination sub-module and a numerical range re-determination sub-module.
The distance determining second sub-module may be configured to obtain a distance between the first line dividing line and an upper boundary line of the first line in response to a drag instruction for the first line dividing line; the second distance judging sub-module may be configured to display that the first line parting line cannot be dragged upwards and display a drag stopping prompt if a distance between the first line parting line and an upper boundary line of the first line is less than a second threshold; the row height determination sub-module may be used to determine a first row height of the first row after dragging and a second row height of the second row after dragging; the numerical range re-determination sub-module may be configured to update the first numerical range and the second numerical range based on the post-drag first line height, the post-drag second line height, and the target total numerical range.
In some embodiments, the first row is above the first row, and the numerical range adjustment device 1700 may further include: the system comprises a first display module of the newly added control, a first trigger module of the newly added control, a first average module of the target total number value range, a first updating numerical value range updating module, a second updating numerical value range updating module, a third updating numerical value range updating module and a third numerical value range display module.
The first display module of the new control can be used for displaying the first new control under the row of the second row; the first trigger module of the new control can be used for responding to the trigger operation of the first new control, and determining that the first numerical range is consistent with the numerical range corresponding to the second numerical range in size; the first average module of the target total number value range may be configured to divide the target total number value range into a first updated number value range, a second updated number value range, and a third updated number value range according to a data number average, where a maximum value of the first updated number value range is smaller than a minimum value of the second updated number value range, and a maximum value of the second updated number value range is smaller than a minimum value of the third updated number value range; the first updated numerical range updating module may be configured to update the first row of the first row and the first numerical range according to the first updated numerical range; a second updated numerical range updating module may be used to update a second row of the second row and the second numerical range according to the second updated numerical range; the third updated numerical range updating module may be configured to determine a third row of a third line of lines and a third numerical range from the third updated numerical range; a third numerical range display module may be used to display the third row and the third numerical range through the third row below the second row.
In some embodiments, the second row and the third row are divided by a second row division line; wherein, the numerical range adjustment device 1700 may further include: the device comprises a first deletion control display module, a first deletion control trigger module, an average target total value range module, a merging third row module and a merging display module.
The first deletion control display module may be configured to display a deletion control corresponding to the second line dividing line while displaying the second line dividing line; the first deletion control triggering module may be configured to determine that the first numerical range, the second numerical range, and the numerical range corresponding to the third numerical range are consistent in size in response to a triggering operation for the deletion control; the average target total number value range module may be configured to average the target total number value range into two according to a number of data, so as to update the first number value range and the second number value range; a merge third row module may be used to merge the third row into the second row; the combined display module may be configured to display the updated first range of values in the first row and display the updated second range of values in the second row.
In some embodiments, the second row and the third row are divided by a second row division line; wherein, the numerical range adjustment device 1700 may further include: the system comprises a second deletion control display module, a second deletion control triggering module, a third numerical range merging module, a third row merging module and a merging display module.
The second deletion control display module may be configured to display a deletion control corresponding to the second line dividing line while displaying the second line dividing line; the second deletion control triggering module may be configured to determine that the values of the first value range, the second value range, and the third value range are inconsistent in size in response to a triggering operation for the deletion control; a third numerical range merge module may be used to merge the third numerical range into the second numerical range to update the second numerical range; a third row merge module may be used to merge the third row into the second row; the combined display module may be configured to display the first range of values in the first row and display the updated second range of values in the second row.
In some embodiments, the first row is above the first row, and the numerical range adjustment device 1700 may further include: the system comprises a control second display module, a control second trigger module, a first numerical range equipartition module, a fifth updating numerical range updating module, a fourth updating numerical range updating module and a fourth row display module.
The second display module of the newly added control can be used for displaying a second newly added control above the row of the first row; the second trigger module of the newly added control can be used for responding to the trigger operation of the second newly added control and determining that the sizes of the numerical value ranges corresponding to the first numerical value range and the second numerical value range are inconsistent; the first numerical range averaging module may be configured to divide the first numerical range into a fourth updated numerical range and a fifth updated numerical range according to a data number average, where a maximum value in the fourth updated numerical range is smaller than a minimum value in the fifth updated numerical range; a fifth updated numerical range update module may be used to update the first row and the first numerical range of the first row according to the fifth updated numerical range; the fourth updated numerical range updating module may be configured to determine a fourth row of a fourth line and a fourth numerical range from the fourth updated numerical range; the fourth line display module may be configured to display the fourth line and the fourth numerical range through the fourth line above the first line while displaying the first line and the first numerical range according to the updated first line height.
Since the functions of the apparatus 1700 are described in detail in the corresponding method embodiments, the disclosure is not repeated here.
The modules or sub-modules involved in the embodiments of the present application may be implemented in software or in hardware. The described modules or sub-modules may also be provided in the processor. Wherein the names of the modules or sub-modules do not in some cases constitute a limitation of the module or sub-module itself.
The flowcharts 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 or flowchart illustration, and combinations of blocks in the block diagrams 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.
Furthermore, the above-described figures are only schematic illustrations of processes included in the method according to the exemplary embodiments of the present disclosure, and are not intended to be limiting. It will be readily appreciated that the processes shown in the above figures do not indicate or limit the temporal order of these processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, for example, among a plurality of modules.
Fig. 18 shows a schematic structural diagram of an electronic device suitable for use in implementing embodiments of the present disclosure. It should be noted that the electronic device 1800 shown in fig. 18 is only an example, and should not be construed as limiting the functionality and scope of use of the embodiments of the present disclosure.
As shown in fig. 18, the electronic device 1800 includes a Central Processing Unit (CPU) 1801, which can perform various appropriate actions and processes in accordance with programs stored in a Read Only Memory (ROM) 1802 or programs loaded from a storage section 1808 into a Random Access Memory (RAM) 1803. In the RAM 1803, various programs and data required for the operation of the electronic device 1800 are also stored. The CPU 1801, ROM 1802, and RAM 1803 are connected to each other via a bus 1804. An input/output (I/O) interface 1805 is also connected to the bus 1804.
The following components are connected to the I/O interface 1805: an input section 1806 including a keyboard, a mouse, and the like; an output portion 1807 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker, and the like; a storage portion 1808 including a hard disk or the like; and a communication section 1809 including a network interface card such as a LAN card, a modem, or the like. The communication section 1809 performs communication processing via a network such as the internet. The drive 1810 is also connected to the I/O interface 1805 as needed. A removable medium 1811 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is installed as needed in the drive 1810, so that a computer program read therefrom is installed as needed in the storage portion 1808.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable storage medium, the computer program comprising program code for performing the method shown in the flowcharts. In such embodiments, the computer program may be downloaded and installed from a network via the communication portion 1809, and/or installed from the removable medium 1811. The above-described functions defined in the system of the present application are performed when the computer program is executed by a Central Processing Unit (CPU) 1801.
It should be noted that the computer readable storage medium shown in the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present application, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable storage medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable storage medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
As another aspect, the present application also provides a computer-readable storage medium that may be contained in the apparatus described in the above embodiments; or may be present alone without being fitted into the device. The computer-readable storage medium carries one or more programs which, when executed by a device, cause the device to perform functions including: displaying a numerical range display page, wherein the numerical range display page displays the first numerical range through a first row and displays the second numerical range through a second row, and the first row and the second row are divided through a first row dividing line; displaying that the first line dividing line moves according to a drag instruction in response to the drag instruction for the first line dividing line to adjust the line heights of the first line and the second line; repartitioning the target total range of values according to the first row of the first row and the second row of the second row to update the first range of values and the second range of values; and displaying the updated first numerical range in the first row and displaying the updated second numerical range in the second row.
According to one aspect of the present application, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the methods provided in the various alternative implementations of the above-described embodiments.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, the technical solutions of the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.), and include several instructions for causing a computing device (may be a personal computer, a server, a mobile terminal, or a smart device, etc.) to perform a method according to the embodiments of the present disclosure, such as the steps shown in fig. 2.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following the general principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the disclosure is not to be limited to the details of construction, the manner of drawing, or the manner of implementation, which has been set forth herein, but, on the contrary, is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.

Claims (10)

1. A method of adjusting a range of values, wherein a target total range of values is divided into a first range of values and a second range of values; wherein the method comprises the following steps:
Displaying a numerical range display page, wherein the numerical range display page displays the first numerical range through a first row and displays the second numerical range through a second row, and the first row and the second row are divided through a first row dividing line;
displaying that the first line dividing line moves according to a drag instruction in response to the drag instruction for the first line dividing line to adjust the line heights of the first line and the second line;
Repartitioning the target total range of values according to the first row of the first row and the second row of the second row to update the first range of values and the second range of values;
Displaying the updated first numerical range in the first row and the updated second numerical range in the second row;
wherein re-dividing the target total numerical range according to the first row of the first row and the second row of the second row to update the first numerical range and the second numerical range comprises:
Determining a first row high sum from the first row and the second row;
Determining a first row ratio of the first row height to the first row height sum and a second row ratio of the second row height to the first row height sum;
Updating the first range of values according to the first row ratio and the target total range of values;
And updating the second numerical range according to the second row ratio and the target total number value range.
2. The method of claim 1, wherein the first row includes an upper boundary line and a lower boundary line, the lower boundary line of the first row being a first row split line between the first row and the second row; wherein displaying, in response to a drag instruction for the first line split line, the first line split line moving according to the drag instruction to adjust the line heights of the first line and the second line, comprises:
Responding to a dragging instruction for the first line dividing line, and acquiring the distance between the first line dividing line and an upper boundary line of the first line;
If the distance between the first line dividing line and the upper boundary line of the first line is smaller than a first threshold value, determining that the first line dividing line coincides with the upper boundary line of the first line;
Deleting the first row;
wherein re-dividing the target total numerical range according to the first row of the first row and the second row of the second row to update the first numerical range and the second numerical range comprises:
The first range of values is combined with the second range of values to update the second range of values.
3. The method of claim 1, wherein the first row includes an upper boundary line and a lower boundary line, the lower boundary line of the first row being a first row split line between the first row and the second row; wherein displaying, in response to a drag instruction for the first line split line, the first line split line moving according to the drag instruction to adjust the line heights of the first line and the second line, comprises:
Responding to a dragging instruction for the first line dividing line, and acquiring the distance between the first line dividing line and an upper boundary line of the first line;
If the distance between the first line of dividing lines and the upper boundary line of the first line is smaller than a second threshold value, displaying that the first line of dividing lines cannot be dragged upwards, and displaying a dragging stopping prompt;
wherein re-dividing the target total numerical range according to the first row of the first row and the second row of the second row to update the first numerical range and the second numerical range comprises:
Determining a first row of the first row after dragging and a second row of the second row after dragging;
And updating the first numerical range and the second numerical range according to the first row after dragging, the second row after dragging and the target total numerical range.
4. The method of claim 1, wherein the first row is above the first row, the method further comprising:
displaying a first new control under the row of the second row;
Responding to the triggering operation of the first newly-added control, and determining that the values of the first value range and the second value range are consistent in size;
Dividing the target total numerical range into a first updated numerical range, a second updated numerical range and a third updated numerical range according to the number average of data, wherein the maximum value of the first updated numerical range is smaller than the minimum value of the second updated numerical range, and the maximum value of the second updated numerical range is smaller than the minimum value of the third updated numerical range;
updating a first row of the first row and the first numerical range according to the first updated numerical range;
updating a second row of the second row and the second range of values according to the second updated range of values;
determining a third row of values and a third range of values from the third updated range of values;
displaying the third row and the third range of values by the third row below the second row.
5. The method of claim 4, wherein the second row and the third row are divided by a second row division line; wherein the method further comprises:
displaying the second line dividing line and simultaneously displaying a deletion control corresponding to the second line dividing line;
responding to the triggering operation for the deleting control, and determining that the values of the first value range, the second value range and the third value range are consistent in size;
dividing the target total numerical range into two parts according to the number of data to update the first numerical range and the second numerical range;
Merging the third row to the second row;
displaying the updated first numerical range on the first row and displaying the updated second numerical range on the second row.
6. The method of claim 4, wherein the second row and the third row are divided by a second row division line; wherein the method further comprises:
displaying the second line dividing line and simultaneously displaying a deletion control corresponding to the second line dividing line;
Responding to the triggering operation for the deleting control, and determining that the sizes of the numerical ranges corresponding to the first numerical range, the second numerical range and the third numerical range are inconsistent;
merging the third range of values into the second range of values to update the second range of values;
Merging the third row to the second row;
Displaying the first numerical range on the first row and displaying the updated second numerical range on the second row.
7. The method of claim 1, wherein the first row is above the second row, the method further comprising:
Displaying a second newly added control over the first row;
responding to the triggering operation of the second newly-added control, and determining that the values of the first value range and the second value range are inconsistent in size;
Dividing the first numerical range into a fourth updated numerical range and a fifth updated numerical range according to data number average, wherein the maximum value in the fourth updated numerical range is smaller than the minimum value in the fifth updated numerical range;
Updating the first row and the first numerical range of the first row according to the fifth updated numerical range;
determining a fourth row of a fourth row and a fourth numerical range according to the fourth updated numerical range;
the first row and the first range of values are displayed by the fourth row over the first row while the first row and the first range of values are displayed according to the updated first row height.
8. A numerical range adjustment device, characterized in that a target total numerical range is divided into a first numerical range and a second numerical range; wherein the device comprises:
the numerical range display module is used for displaying a numerical range display page, wherein the numerical range display page displays the first numerical range through a first row and displays the second numerical range through a second row, and the first row and the second row are divided through a first row dividing line;
A drag module for responding to a drag instruction for the first line dividing line, displaying that the first line dividing line moves according to the drag instruction, so as to adjust the line heights of the first line and the second line;
A re-segmentation module, configured to re-segment the target total numerical range according to a first row of the first row and a second row of the second row, so as to update the first numerical range and the second numerical range;
The updating display module is used for displaying the updated first numerical range in the first row and displaying the updated second numerical range in the second row;
wherein re-dividing the target total numerical range according to the first row of the first row and the second row of the second row to update the first numerical range and the second numerical range comprises:
Determining a first row high sum from the first row and the second row;
Determining a first row ratio of the first row height to the first row height sum and a second row ratio of the second row height to the first row height sum;
Updating the first range of values according to the first row ratio and the target total range of values;
And updating the second numerical range according to the second row ratio and the target total number value range.
9. An electronic device, comprising:
A memory; and
A processor coupled to the memory, the processor being configured to perform the numerical range adjustment method of any of claims 1-7 based on instructions stored in the memory.
10. A computer-readable storage medium having stored thereon a program which, when executed by a processor, implements the numerical range adjustment method according to any one of claims 1-7.
CN202111048671.1A 2021-09-08 2021-09-08 Numerical range adjustment method, device, electronic equipment and readable storage medium Active CN113743061B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111048671.1A CN113743061B (en) 2021-09-08 2021-09-08 Numerical range adjustment method, device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111048671.1A CN113743061B (en) 2021-09-08 2021-09-08 Numerical range adjustment method, device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN113743061A CN113743061A (en) 2021-12-03
CN113743061B true CN113743061B (en) 2024-04-30

Family

ID=78736895

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111048671.1A Active CN113743061B (en) 2021-09-08 2021-09-08 Numerical range adjustment method, device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN113743061B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008136151A1 (en) * 2007-04-24 2008-11-13 Sony Computer Entertainment Inc. Image display device, image display method and information recording medium
CN105824531A (en) * 2016-03-15 2016-08-03 网易(杭州)网络有限公司 Method and device for adjusting numbers
JP2017208089A (en) * 2016-05-13 2017-11-24 株式会社公差設計研究所 Assembly design support device, computer program for tolerance setting, computer program for tolerance analysis, and assembly design support method
CN107748641A (en) * 2017-11-01 2018-03-02 网易(杭州)网络有限公司 Numerical value adjustment control method, device, electronic equipment and storage medium
CN108319490A (en) * 2018-03-01 2018-07-24 网易(杭州)网络有限公司 Numerical value determines method, numerical value determining device, electronic equipment and storage medium
CN109045687A (en) * 2018-07-18 2018-12-21 网易(杭州)网络有限公司 Numerical value distribution method, device, storage medium and electronic equipment
CN111182479A (en) * 2019-08-12 2020-05-19 腾讯科技(深圳)有限公司 Information sending control method and device
CN112363663A (en) * 2020-11-27 2021-02-12 深圳集智数字科技有限公司 Data display method and device
CN113126863A (en) * 2021-04-20 2021-07-16 深圳集智数字科技有限公司 Object selection implementation method and device, storage medium and electronic equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9141267B2 (en) * 2007-12-20 2015-09-22 Ebay Inc. Non-linear slider systems and methods
US9594491B2 (en) * 2012-11-26 2017-03-14 Ca, Inc. Slide control for setting boundaries between regions of a data range
US10037308B2 (en) * 2014-01-17 2018-07-31 Htc Corporation Method for adding two rows of tiles to an existing two rows of tiles based on the number of tiles in each of the existing two rows

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008136151A1 (en) * 2007-04-24 2008-11-13 Sony Computer Entertainment Inc. Image display device, image display method and information recording medium
CN105824531A (en) * 2016-03-15 2016-08-03 网易(杭州)网络有限公司 Method and device for adjusting numbers
JP2017208089A (en) * 2016-05-13 2017-11-24 株式会社公差設計研究所 Assembly design support device, computer program for tolerance setting, computer program for tolerance analysis, and assembly design support method
CN107748641A (en) * 2017-11-01 2018-03-02 网易(杭州)网络有限公司 Numerical value adjustment control method, device, electronic equipment and storage medium
CN111766995A (en) * 2017-11-01 2020-10-13 网易(杭州)网络有限公司 Numerical value adjustment control method and device, electronic equipment and storage medium
CN108319490A (en) * 2018-03-01 2018-07-24 网易(杭州)网络有限公司 Numerical value determines method, numerical value determining device, electronic equipment and storage medium
CN109045687A (en) * 2018-07-18 2018-12-21 网易(杭州)网络有限公司 Numerical value distribution method, device, storage medium and electronic equipment
CN111182479A (en) * 2019-08-12 2020-05-19 腾讯科技(深圳)有限公司 Information sending control method and device
CN112363663A (en) * 2020-11-27 2021-02-12 深圳集智数字科技有限公司 Data display method and device
CN113126863A (en) * 2021-04-20 2021-07-16 深圳集智数字科技有限公司 Object selection implementation method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN113743061A (en) 2021-12-03

Similar Documents

Publication Publication Date Title
EP2557490A1 (en) Icon adding method and device in interface of android system and mobile terminal
CN109885314B (en) Automatic layout method and device for small programs
CN109710865B (en) Open type automatic layout method, device, electronic equipment and storage medium
CN106843794B (en) Split screen display method and system based on android
CN113626113B (en) Page rendering method and device
CN113609419A (en) Information display method and device, electronic equipment and computer readable medium
CN113743061B (en) Numerical range adjustment method, device, electronic equipment and readable storage medium
CN113761411A (en) Page processing method and device
CN113282852A (en) Method and device for editing webpage
CN107741970B (en) Method and device for laying out main page
CN113010582A (en) Data processing method and device, computer readable medium and electronic equipment
CN113760136A (en) Icon layout method and device
CN110888583B (en) Page display method, system and device and electronic equipment
CN109190097B (en) Method and apparatus for outputting information
CN113126866A (en) Object determination method and device, electronic equipment and storage medium
CN113377380B (en) User interface component deployment method and device
CN111461969A (en) Method, device, electronic equipment and computer readable medium for processing picture
CN113687809A (en) Information display method and device, electronic equipment and readable storage medium
CN111569418A (en) Rendering method, device and medium for content to be output and electronic equipment
CN110825478A (en) Main interface content adding method, device, medium and electronic equipment
CN114895832B (en) Object adjustment method, device, electronic equipment and computer readable medium
CN117389446A (en) Page interaction method and device based on suspension control
CN106204448A (en) Spacecraft stratification supplies stepless zooming display packing and the display system of the big figure of distribution
CN117111922A (en) Data configuration method, device, equipment and medium of page component
CN113648649A (en) Game interface control method and device, computer readable medium and terminal equipment

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