CN110262801A - Data Binding Method, device, equipment and the storage medium of multistage linking selector - Google Patents
Data Binding Method, device, equipment and the storage medium of multistage linking selector Download PDFInfo
- Publication number
- CN110262801A CN110262801A CN201910528264.7A CN201910528264A CN110262801A CN 110262801 A CN110262801 A CN 110262801A CN 201910528264 A CN201910528264 A CN 201910528264A CN 110262801 A CN110262801 A CN 110262801A
- Authority
- CN
- China
- Prior art keywords
- selector
- target data
- data
- junior
- data set
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The embodiment of the invention discloses Data Binding Method, device, equipment and the storage mediums of a kind of multistage linking selector.This method comprises: in response to user to the data selection operation of present level selector, using data selection result as current target data item;In selection data acquisition system, junior's target data set that there is direct membership with current target data item is obtained, and determine the binding relationship between junior's target data set and the lower level selector of present level selector;After junior's target data is concentrated and chooses new current target data item, it returns and executes in selection data acquisition system, the operation for junior's target data set that there is direct membership with current target data item is obtained, until completing to confirm the binding relationship for the selector that all links in multistage linking selector.The technical solution of the embodiment of the present invention is realized the multistage linking selector of Android platform using existing selector assembly, improves the efficiency of selection of selector.
Description
Technical field
The present embodiments relate to Internet technical field more particularly to a kind of data binding sides of multistage linking selector
Method, device, equipment and storage medium.
Background technique
With the development of internet technology, currently, research staff can be based on existing selector assembly, such as React
Picker selector assembly in Native frame is realized in Android platform and is selected with IOS using the pattern of imitative IOS selector
The selector of device same pattern.
It is above-mentioned in the prior art, research staff is not supported based on the selector for the Android platform that existing selector assembly is realized
Multistage linking function, i.e. each selector are independent choices, and selection each other is independent of each other, therefore, when multiple choosings
When selecting device common choice and determining one group of data, if the selection result of one of selector changes, need to change other choosings one by one
Device is selected, the efficiency of selection of selector is reduced.
Summary of the invention
The present invention provides Data Binding Method, device, equipment and the storage medium of a kind of multistage linking selector, using now
Some selector assemblies realize the multistage linking selector of Android platform, and realization becomes in real time according to the selection result of a selector
The more binding data of other linkage selectors.
In a first aspect, the embodiment of the invention provides a kind of Data Binding Methods of multistage linking selector, comprising:
In response to user to the data selection operation of present level selector, using data selection result as current goal number
According to item;The present level selector is the level-one linkage selector in multistage linking selector, the multistage linking selector
It is associated with setting selection data acquisition system;
In the selection data acquisition system, junior's mesh that there is direct membership with the current target data item is obtained
Data set is marked, and determines tying up between junior's target data set and the lower level selector of the present level selector
Determine relationship;
After junior's target data is concentrated and chooses new current target data item, returns and execute in the selection data
In set, the operation for junior's target data set that there is direct membership with the current target data item is obtained, until complete
All link the binding relationship confirmation of selector in the pairs of multistage linking selector.
Optionally, it determines between junior's target data set and the lower level selector of the present level selector
Binding relationship, comprising:
If the lower level selector has currently bound comparison data collection, by the comparison data collection and institute
Junior's target data set is stated to be matched;
If mismatched between the comparison data collection and junior's target data set, the lower level is selected
The binding data of device is updated to junior's target data set;
If the lower level selector it is current it is unbound have any data set, by junior's target data set with
The lower level selector of the present level selector is bound.
It is optionally, described to match the comparison data collection with junior's target data set, comprising:
If the comparison data collection is consistent with junior's target data set, the binding number of lower level selector is kept
According to constant;
If the comparison data collection and junior's target data set are inconsistent, by the binding number of lower level selector
According to emptying, and junior's target data set is bound with lower level selector.
Optionally, it is selected in the lower level of determination junior's target data set and the present level selector
After binding relationship between device, further includes:
The data item in data set bound in lower level selector in predeterminated position is chosen at as newly current
Target data item.
Optionally, described in response to user to the data selection operation of present level selector, by data selection result
Before current target data item, further includes:
The selection data acquisition system that receiving front-end is sent, sends selector assembly for the selection data acquisition system and deposits
Storage;
Control selections device assembly is that each ranking selector of multistage linking selector is bound respectively in selection data acquisition system
The data set of corresponding grade.
Optionally, it is executed in the selection data acquisition system in the return, obtains and have with the current target data item
There is the operation of junior's target data set of direct membership, until completing to all linkage is selected in the multistage linking selector
After the binding relationship confirmation for selecting device, further includes:
The data selection result of each ranking selector of multistage linking selector is packaged into one group of data, before being sent to
End.
Second aspect, the embodiment of the invention also provides a kind of data binding devices of multistage linking selector, comprising:
Target data item determining module will be counted for the data selection operation in response to user to present level selector
According to selection result as current target data item;The present level selector is the level-one linkage choosing in multistage linking selector
Device is selected, the multistage linking selector is associated with setting selection data acquisition system;
Binding relationship determining module, for obtaining and having with the current target data item in the selection data acquisition system
There is junior's target data set of direct membership, and determines junior's target data set and the present level selector
Binding relationship between lower level selector;
Execution module is returned to, for returning after junior's target data is concentrated and chooses new current target data item
It executes in the selection data acquisition system, obtains junior's number of targets that there is direct membership with the current target data item
According to the operation of collection, until completing to confirm the binding relationship for the selector that all links in the multistage linking selector.
Optionally, binding relationship determining module includes:
Matching unit will be described if currently having bound comparison data collection for the lower level selector
Comparison data collection is matched with junior's target data set;
Data updating unit, if for being mismatched between the comparison data collection and junior's target data set,
The binding data of the lower level selector is updated to junior's target data set;
Data binding unit, if for the lower level selector it is current it is unbound have any data set, by institute
It states junior's target data set and the lower level selector of the present level selector is bound.
The third aspect the embodiment of the invention also provides a kind of computer equipment, including memory, processor and is stored in
On memory and the computer program that can run on a processor, the processor realize that the present invention such as appoints when executing described program
The Data Binding Method for the multistage linking selector that embodiment of anticipating provides.
Fourth aspect, the embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with computer
Program realizes the data binding of the multistage linking selector provided such as any embodiment of that present invention when the program is executed by processor
Method.
The embodiment of the present invention selects to tie by the data selection operation in response to user to present level selector, by data
Fruit is as current target data item, and then from selection data acquisition system, acquisition has with current target data item is directly subordinate to pass
Junior's target data set of system, and determine between junior's target data set and the lower level selector of present level selector
Binding relationship is returned and is executed in selection data acquisition system after junior's target data is concentrated and chooses new current target data item,
The operation for junior's target data set that there is direct membership with current target data item is obtained, until completing to multistage linking
All link the binding relationship confirmation of selector in selector, and the selector for solving existing Android platform do not support multi-cascade
Dynamic function, each selector independent choice, the lower problem of efficiency of selection realize that Android is flat using existing selector assembly
The multistage linking selector of platform realizes the binding number for changing other linkage selectors in real time according to the selection result of a selector
According to improving the efficiency of selection of selector and the selection experience sense of user.
Detailed description of the invention
Fig. 1 is the flow chart of the Data Binding Method of one of embodiment of the present invention one multistage linking selector;
Fig. 2 a is the flow chart of the Data Binding Method of one of embodiment of the present invention two multistage linking selector;
Fig. 2 b is the pre-bound implementation flow chart of data of one of embodiment of the present invention two multistage linking selector;
Fig. 3 is the structural schematic diagram of the data binding device of one of embodiment of the present invention three multistage linking selector;
Fig. 4 is the structural schematic diagram of one of the embodiment of the present invention four computer equipment.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just
Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Embodiment one
Fig. 1 is a kind of flow chart of the Data Binding Method for multistage linking selector that the embodiment of the present invention one provides, this
Embodiment is applicable to the case where realizing the multistage linking selector of Android platform using existing selector assembly, and this method can
To be executed by the data binding device of multistage linking selector, which can be realized by the mode of software and/or hardware, and
It generally can integrate in the various computer equipments for realizing multistage linking selector.In conjunction with Fig. 1, specifically comprise the following steps:
Step 110, in response to user to the data selection operation of present level selector, using data selection result as working as
Preceding target data item;Present level selector is the level-one linkage selector in multistage linking selector, multistage linking selector
It is associated with setting selection data acquisition system.
In the present embodiment, multistage linking selector includes the selector of multiple and different grades, is based on ReactNative frame
What the shared selector assembly of frame was realized, have the function of multistage linking, the i.e. number of the high selector of rank in selector assembly
The binding data of all inferior grade selectors behind can be influenced according to selection result.For example, the first estate selector rank is most
Height, selection result can influence and refresh the binding data of the second ranking selector to last ranking selector, the second grade
Selector rank is lower than the first estate selector, then the data selection result of the second ranking selector can only influence and refresh third
Ranking selector is to the binding data of last ranking selector, and the rank of last ranking selector is minimum, and binding data is by preceding
The influence of the data selection result of any ranking selector in face.
Wherein, the binding data of selector refers to the selector when the preceding data shown to user, the data and preceding first-class
The selection result of grade selector should have direct membership, for example, when the selection result of prior level selector is Shandong
Time saving, the binding data of current selector should be the Urban Data for having direct membership with Shandong Province, such as data { jujube
Village city, Jinan City, Dezhou City, Jining City, Linyi City, Qingdao City, Tai'an, Weihai City, Zibo City, Heze City, Yantai City, Lay
Overgrown with weeds city, Accessories during Binzhou, Dongying City, Liaocheng City, Rizhao City }.
In the present embodiment, multistage linking selector is associated with setting selection data acquisition system, and it includes multiple for selecting data acquisition system
The selector of multiple grades in the associated data of grade, with multistage linking selector corresponds.For example, if multistage linking selects
Selecting device includes three-level selector, then selecting data acquisition system includes three-level associated data, also, the first estate associated data and first
Ranking selector association, the second grade associated data are associated with the second ranking selector, tertiary gradient associated data and third etc.
Grade selector association.
In order to realize the multistage linking function of multistage linking selector, when user carries out selection behaviour to wherein level-one selector
When making, result according to the user's choice is needed at once to update the binding data of other inferior grade selectors, after showing to user
Continuous selection data avoid the selection experience for influencing user to improve the efficiency of selection of multistage linking selector.The present embodiment will
The selector that user currently selects is known as present level selector, selects behaviour in response to data of the user to present level selector
Make, using data selection result be used as current target data item, for multistage linking selector data binding device according to currently
Target data item judges whether the selector of inferior grade needs to update binding data.Wherein, present level selector is multi-cascade
Level-one linkage selector in dynamic selector.
Step 120, selection data acquisition system in, obtain with current target data item have direct membership junior's mesh
Data set is marked, and determines the binding relationship between junior's target data set and the lower level selector of present level selector.
After determining current target data item, the data binding device of multistage linking selector is in selection data acquisition system
In, junior's target data set that there is direct membership with current target data item is obtained, and according to junior's target data set
Judge whether lower level selector needs to update its binding data, so that lower level selector and present level selector
Realize linkage.
Optionally, determine that the binding between junior's target data set and the lower level selector of present level selector is closed
System, comprising: if lower level selector has currently bound comparison data collection, by comparison data collection and junior's number of targets
It is matched according to collection;If mismatched between comparison data collection and junior's target data set, by tying up for lower level selector
Fixed number evidence is updated to junior's target data set;If lower level selector is currently unbound any data set, by junior
The lower level selector of target data set and present level selector is bound.
Illustratively, it is assumed that current target data item is " Shandong Province ", is had under direct membership with " Shandong Province "
Grade target data set is { Zaozhuang City, Jinan City, Dezhou City, Jining City, Linyi City, Qingdao City, Tai'an, Weihai City, Zibo
City, Heze City, Yantai City, Laiwu City, Accessories during Binzhou, Dongying City, Liaocheng City, Rizhao City }, first judge that lower level selector is current
Whether comparison data collection has been bound, if bound, and comparison data collection is { Datong, Xinzhou City, Yangquan City, Changzhi
City, Jinzhong City, Linfen, Yuncheng, Shuozhou City, Taiyuan City, Jincheng City, Lvliang City }, then by comparison data collection and junior's target
Data set is matched, due to mismatching between the two, i.e., lower level selector binding data and current target data item
" Shandong Province " there is no direct memberships, therefore the binding data of lower level selector is updated to junior's target data
Collection, if the current unbound any data of lower level selector, directly select junior's target data set and lower level
Device is bound, and realizes the direct membership with current target data item " Shandong Province ".
Step 130, after junior's target data is concentrated and chooses new current target data item, return and execute in selection data
In set, the operation for junior's target data set that there is direct membership with current target data item is obtained, until completion pair
All link in multistage linking selector selector binding relationship confirmation.
After the binding data of lower level selector for determining present level selector, need to continue to determine present level choosing
The binding data of the selector of lower level again of device is selected, therefore, is bound in the lower level selector of present level selector
After the current target data item that junior's target data concentrates selection new, return step 120 is executed in selection data acquisition system, is obtained
The operation for junior's target data set that there is direct membership with current target data item is taken, until completing to select multistage linking
Select the binding relationship confirmation for the selector that all links in device.
The embodiment of the present invention selects to tie by the data selection operation in response to user to present level selector, by data
Fruit is as current target data item, and then from selection data acquisition system, acquisition has with current target data item is directly subordinate to pass
Junior's target data set of system, and determine between junior's target data set and the lower level selector of present level selector
Binding relationship is returned and is executed in selection data acquisition system after junior's target data is concentrated and chooses new current target data item,
The operation for junior's target data set that there is direct membership with current target data item is obtained, until completing to multistage linking
All link the binding relationship confirmation of selector in selector, and the selector for solving existing Android platform do not support multi-cascade
Dynamic function, each selector independent choice, the lower problem of efficiency of selection realize that Android is flat using existing selector assembly
The multistage linking selector of platform realizes the binding number for changing other linkage selectors in real time according to the selection result of a selector
According to improving the efficiency of selection of selector and the selection experience sense of user.
Embodiment two
Fig. 2 a is the flow chart of the Data Binding Method of one of embodiment of the present invention two multistage linking selector.This reality
Applying example can be in conjunction with optinal plan each in above-described embodiment.Specifically, this method may include walking as follows with reference to Fig. 2 a
It is rapid:
Step 210 for each ranking selector of multistage linking selector binds corresponding associated data in advance respectively.
Optionally, as shown in Figure 2 b, the data binding device receiving front-end research staff of multistage linking selector sends
Data acquisition system is selected, and the selector assembly for selecting data acquisition system to be sent to React Native frame is stored;Then
Control selections device assembly is that each ranking selector of multistage linking selector binds the corresponding grade selected in data acquisition system respectively
Data set.Wherein, it selects the data for including in data acquisition system that can be divided into multiple grades, there is association between each level data
Relationship, for example, it is relevant between the first estate data [year] and the second level data [moon], and to be directly subordinate to pass
System, it is also relevant between the second level data [moon] and tertiary gradient data [day].
It optionally, can be that each ranking selector binds pair selected in data acquisition system respectively according to preset rule
The data set of grade is answered, for example, from the corresponding all data sets of present level selector, selection and prior level selector
The data item of preset quantity in binding data has the data set of direct membership to be tied in present level selector.Its
In, the first estate selector only one corresponding data collection can be directly bound a data set corresponding with its grade.
Illustratively, if the first estate selector binding data set be { Shandong Province, Shanxi Province, Zhejiang Province }, second etc.
The corresponding data set of grade selector has { Qingdao City, Tai'an, Weihai City, Zibo City }, { Datong, Xinzhou City, Yangquan City, length
Control city } and { Hangzhou, Huzhou City, Jiaxing City, Jinhua, Lishui City }, then from the corresponding data set of the second ranking selector
In, selection has the data set { Qingdao of direct membership with first data item in the binding data of the first estate selector
City, Tai'an, Weihai City, Zibo City } it is tied in the second ranking selector.
Step 220, in response to user to the data selection operation of present level selector, using data selection result as working as
Preceding target data item, and in selection data acquisition system, obtain junior's mesh that there is direct membership with current target data item
Mark data set.
Step 230 judges whether the lower level selector of present level selector has bound comparison data collection, if so,
Step 240 is then continued to execute, otherwise, executes step 260.
In the present embodiment, comparison data integrates the data set of the lower level selector current bindings as ranking selector, should
Data set may there is no direct memberships with current target data item, for example, when user has changed present level selector
Selection result, cause current target data item to change, and lower level selector binding be with user change before
Target data item when having the data set of direct membership, comparison data collection current target data item is not subordinate to pass directly
System.
There is the data set of direct membership to guarantee the binding of lower level selector with current target data item, first sentences
Whether the lower level selector of disconnected present level selector has bound comparison data collection, if so, then continue to execute step 240 into
The judgement of one step thens follow the steps 260 and binds suitable data set for lower level selector if not having.
Step 240 judges whether junior's target data set matches with the comparison data collection of lower level selector, if
Match, then follow the steps 270, otherwise, executes step 250.
Optionally, if the lower level selector of present level selector has bound comparison data collection, by junior
Target data set is matched with the comparison data collection of lower level selector, if comparison data collection and junior's target data set one
It causes, then keeps the binding data of lower level selector constant, continue to execute step 270, otherwise, execute step 250.
The binding data of lower level selector is updated to junior's target data set by step 250, jumps to step 270.
Optionally, however, it is determined that comparison data collection and junior's target data set are inconsistent, then tying up lower level selector
Fixed number evidence empties, and junior's target data set and lower level selector are bound.
Step 260 binds junior's target data set and the lower level selector of present level selector.
Optionally, however, it is determined that the lower level selector of present level selector does not bind any data set, then directly
Junior's target data set and the lower level selector of present level selector are bound.
Step 270 selects new current target data item in the binding data of lower level selector.
Optionally, after determining the binding data of lower level selector of present level selector, further includes: choose
Data item in the data set bound in lower level selector in predeterminated position is as new current target data item.In advance
If position can be first, either any one is less than in data set bound in lower level selector for last
The numerical value of data item sum.
Step 280 judges whether to determine the binding data of selector of all linking in multistage linking selector, if so,
It executes step 290 and otherwise returns to step 220.
The final choice result of user is returned to front end by step 290.
Optionally, it all links in determining multistage linking selector after the binding data of selector, further includes: according to
User is to the data selection operation of each ranking selector of multistage linking selector, by the data selection result of each ranking selector
It is packaged into one group of data, is sent to front end, final selection result is showed user by front-end interface.
The embodiment of the present invention selects to tie by the data selection operation in response to user to present level selector, by data
Fruit is as current target data item, and then from selection data acquisition system, acquisition has with current target data item is directly subordinate to pass
Junior's target data set of system, and determine between junior's target data set and the lower level selector of present level selector
Binding relationship is returned and is executed in selection data acquisition system after junior's target data is concentrated and chooses new current target data item,
The operation for junior's target data set that there is direct membership with current target data item is obtained, until completing to multistage linking
All link the binding relationship confirmation of selector in selector, and the selector for solving existing Android platform do not support multi-cascade
Dynamic function, each selector independent choice, the lower problem of efficiency of selection realize that Android is flat using existing selector assembly
The multistage linking selector of platform realizes the binding number for changing other linkage selectors in real time according to the selection result of a selector
According to improving the efficiency of selection of selector and the selection experience sense of user.
Embodiment three
Fig. 3 is the structural schematic diagram of the data binding device of one of embodiment of the present invention three multistage linking selector.
The present embodiment is applicable to the case where realizing the multistage linking selector of Android platform using existing selector assembly.Such as Fig. 3
Shown, the data binding device of the multistage linking selector includes: that target data item determining module 310, binding relationship determine mould
Block 320 and return execution module 330;
Target data item determining module 310 will for the data selection operation in response to user to present level selector
Data selection result is as current target data item;Present level selector is the level-one linkage selection in multistage linking selector
Device, multistage linking selector are associated with setting selection data acquisition system;
Binding relationship determining module 320, for obtaining with current target data item with direct in selection data acquisition system
Junior's target data set of membership, and determine the lower level selector of junior's target data set and present level selector
Between binding relationship;
Execution module 330 is returned to, for after junior's target data is concentrated and chooses new current target data item, return to be held
Row obtains the behaviour for the junior's target data set for having direct membership with current target data item in selection data acquisition system
Make, until completing to confirm the binding relationship for the selector that all links in multistage linking selector.
The embodiment of the present invention selects to tie by the data selection operation in response to user to present level selector, by data
Fruit is as current target data item, and then from selection data acquisition system, acquisition has with current target data item is directly subordinate to pass
Junior's target data set of system, and determine between junior's target data set and the lower level selector of present level selector
Binding relationship is returned and is executed in selection data acquisition system after junior's target data is concentrated and chooses new current target data item,
The operation for junior's target data set that there is direct membership with current target data item is obtained, until completing to multistage linking
All link the binding relationship confirmation of selector in selector, and the selector for solving existing Android platform do not support multi-cascade
Dynamic function, each selector independent choice, the lower problem of efficiency of selection realize that Android is flat using existing selector assembly
The multistage linking selector of platform realizes the binding number for changing other linkage selectors in real time according to the selection result of a selector
According to improving the efficiency of selection of selector and the selection experience sense of user.
Optionally, binding relationship determining module 320 includes: matching unit, if currently for lower level selector
There is comparison data collection through binding, then matches comparison data collection with junior target data set;Data updating unit, for such as
It is mismatched between fruit comparison data collection and junior's target data set, then the binding data of lower level selector is updated to junior
Target data set;Data binding unit, if for lower level selector it is current it is unbound have any data set, by junior
The lower level selector of target data set and present level selector is bound.
Optionally, data updating unit is specifically used for, if comparison data collection is consistent with junior's target data set, under keeping
The binding data of one ranking selector is constant;If comparison data collection and junior's target data set are inconsistent, lower level is selected
The binding data for selecting device empties, and junior's target data set and lower level selector are bound.
Optionally, binding relationship determining module 320 further include: data item selecting unit, for determining junior's number of targets
After the binding relationship between collection and the lower level selector of present level selector, it is chosen at lower level selector institute
Data item in the data set of binding in predeterminated position is as new current target data item.
Optionally, target data item determining module 310 further include: data receipt unit, in response to user to working as
The data selection operation of preceding ranking selector, using data selection result as current target data item before, receiving front-end send
Selection data acquisition system, send selection data acquisition system to selector assembly and store;Control selections device assembly is multi-cascade
Each ranking selector of dynamic selector binds the data set of the corresponding grade in selection data acquisition system respectively.
Optionally, device further include: result sending module is obtained for returning to execution in selection data acquisition system
There is the operation of junior's target data set of direct membership with current target data item, until completing to select multistage linking
It is all linked after the binding relationship confirmation of selector in device, the data of each ranking selector of multistage linking selector is selected
As a result it is packaged into one group of data, is sent to front end.
The executable present invention of the data binding device of multistage linking selector provided by the embodiment of the present invention is any to be implemented
The Data Binding Method of multistage linking selector provided by example, has the corresponding functional module of execution method and beneficial effect.
Example IV
It is a kind of structural schematic diagram for computer equipment that the embodiment of the present invention four provides referring to Fig. 4, Fig. 4, such as Fig. 4 institute
Show, which includes processor 410, memory 420, input unit 430 and output device 440;The number of processor 410 in equipment
It measures and can be one or more, in Fig. 4 by taking a processor 410 as an example;Processor 410, memory 420, input in equipment
Device 430 can be connected with output device 440 by bus or other modes, in Fig. 4 for being connected by bus.
Memory 420 is used as a kind of computer readable storage medium, can be used for storing software program, journey can be performed in computer
Sequence and module, such as the corresponding program instruction/module of the Data Binding Method of the multistage linking selector in the embodiment of the present invention
(for example, target data item determining module 310, binding relationship determining module in the data binding device of multistage linking selector
320 and return execution module 330).Processor 410 by operation be stored in memory 420 software program, instruction and
Module realizes the data of above-mentioned multistage linking selector thereby executing the various function application and data processing of equipment
Binding method.
Processor 410 realizes a kind of Data Binding Method of multistage linking selector, comprising:
In response to user to the data selection operation of present level selector, using data selection result as current goal number
According to item;The present level selector is the level-one linkage selector in multistage linking selector, the multistage linking selector
It is associated with setting selection data acquisition system;
In the selection data acquisition system, junior's mesh that there is direct membership with the current target data item is obtained
Data set is marked, and determines tying up between junior's target data set and the lower level selector of the present level selector
Determine relationship;
After junior's target data is concentrated and chooses new current target data item, returns and execute in the selection data
In set, the operation for junior's target data set that there is direct membership with the current target data item is obtained, until complete
All link the binding relationship confirmation of selector in the pairs of multistage linking selector.
Memory 420 can mainly include storing program area and storage data area, wherein storing program area can store operation system
Application program needed for system, at least one function;Storage data area, which can be stored, uses created data etc. according to terminal.This
Outside, memory 420 may include high-speed random access memory, can also include nonvolatile memory, for example, at least one
Disk memory, flush memory device or other non-volatile solid state memory parts.In some instances, memory 420 can be into one
Step includes the memory remotely located relative to processor 410, these remote memories can pass through network connection to equipment.On
The example for stating network includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Input unit 430 can be used for receiving selection data acquisition system or the user's selection of input, and generate and equipment
User setting and the related key signals input of function control.Output device 440 may include output interface etc., for exporting user
Final choice result.
Embodiment five
The embodiment of the present invention five provides a kind of computer readable storage medium, is stored thereon with computer instruction, the meter
A kind of Data Binding Method of multistage linking selector, a kind of multistage linking selector are realized in the instruction of calculation machine when being executed by processor
Data Binding Method include:
In response to user to the data selection operation of present level selector, using data selection result as current goal number
According to item;The present level selector is the level-one linkage selector in multistage linking selector, the multistage linking selector
It is associated with setting selection data acquisition system;
In the selection data acquisition system, junior's mesh that there is direct membership with the current target data item is obtained
Data set is marked, and determines tying up between junior's target data set and the lower level selector of the present level selector
Determine relationship;
After junior's target data is concentrated and chooses new current target data item, returns and execute in the selection data
In set, the operation for junior's target data set that there is direct membership with the current target data item is obtained, until complete
All link the binding relationship confirmation of selector in the pairs of multistage linking selector.
Certainly, a kind of computer readable storage medium provided by the embodiment of the present invention, computer instruction are executable not
It is limited to method operation as above, the data binding of multistage linking selector provided by any embodiment of the invention can also be performed
Relevant operation in method.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention
It can be realized by software and required common hardware, naturally it is also possible to which by hardware realization, but in many cases, the former is more
Good embodiment.Based on this understanding, technical solution of the present invention substantially in other words contributes to the prior art
Part can be embodied in the form of software products, which can store in computer readable storage medium
In, floppy disk, read-only memory (Read-Only Memory, ROM), random access memory (Random such as computer
Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions are with so that a computer is set
The method that standby (can be personal computer, server or the network equipment etc.) executes each embodiment of the present invention.
It is worth noting that, included is each in the embodiment of the data binding device of above-mentioned multistage linking selector
Unit and module are only divided according to the functional logic, but are not limited to the above division, as long as can be realized corresponding
Function;In addition, the specific name of each functional unit is also only for convenience of distinguishing each other, it is not intended to restrict the invention
Protection scope.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that
The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation,
It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention
It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also
It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.
Claims (10)
1. a kind of Data Binding Method of multistage linking selector characterized by comprising
In response to user to the data selection operation of present level selector, using data selection result as current target data
?;The present level selector be multistage linking selector in level-one link selector, the multistage linking selector with
Setting selection data acquisition system association;
In the selection data acquisition system, junior's number of targets that there is direct membership with the current target data item is obtained
According to collection, and determine that the binding between junior's target data set and the lower level selector of the present level selector is closed
System;
After junior's target data is concentrated and chooses new current target data item, returns and execute in the selection data acquisition system
In, the operation for junior's target data set that there is direct membership with the current target data item is obtained, until completion pair
All link in the multistage linking selector selector binding relationship confirmation.
2. the method according to claim 1, wherein determining junior's target data set and the present level
Binding relationship between the lower level selector of selector, comprising:
If the lower level selector has currently bound comparison data collection, by the comparison data collection and it is described under
Grade target data set is matched;
If mismatched between the comparison data collection and junior's target data set, by the lower level selector
Binding data is updated to junior's target data set;
If the lower level selector it is current it is unbound have any data set, by junior's target data set with it is described
The lower level selector of present level selector is bound.
3. according to the method described in claim 2, it is characterized in that, described by the comparison data collection and junior's number of targets
It is matched according to collection, comprising:
If the comparison data collection is consistent with junior's target data set, the binding data of lower level selector is kept not
Become;
If the comparison data collection and junior's target data set are inconsistent, and the binding data of lower level selector is clear
Sky, and junior's target data set is bound with lower level selector.
4. according to the method described in claim 2, it is characterized in that, working as in determination junior's target data set with described
After binding relationship between the lower level selector of preceding ranking selector, further includes:
The data item in data set bound in lower level selector in predeterminated position is chosen at as new current goal
Data item.
5. the method according to claim 1, wherein it is described in response to user to the number of present level selector
According to selection operation, using data selection result as current target data item before, further includes:
The selection data acquisition system that receiving front-end is sent, sends selector assembly for the selection data acquisition system and stores;
Control selections device assembly is that each ranking selector of multistage linking selector binds the correspondence selected in data acquisition system respectively
The data set of grade.
6. the method according to claim 1, wherein the return execute in the selection data acquisition system,
The operation for junior's target data set that there is direct membership with the current target data item is obtained, until completing to described
All link in multistage linking selector selector binding relationship confirmation after, further includes:
The data selection result of each ranking selector of multistage linking selector is packaged into one group of data, is sent to front end.
7. a kind of data binding device of multistage linking selector characterized by comprising
Target data item determining module selects data for the data selection operation in response to user to present level selector
Result is selected as current target data item;The present level selector is the level-one linkage selection in multistage linking selector
Device, the multistage linking selector are associated with setting selection data acquisition system;
Binding relationship determining module, in the selection data acquisition system, obtaining to have directly with the current target data item
It connects junior's target data set of membership, and determines the next of junior's target data set and the present level selector
Binding relationship between ranking selector;
Execution module is returned to, for returning and executing after junior's target data is concentrated and chooses new current target data item
In the selection data acquisition system, junior's target data set that there is direct membership with the current target data item is obtained
Operation, until completing to confirm the binding relationship of the selector that all links in the multistage linking selector.
8. device according to claim 7, which is characterized in that binding relationship determining module includes:
Matching unit, if currently having bound comparison data collection for the lower level selector, by the comparison
Data set is matched with junior's target data set;
Data updating unit, if for being mismatched between the comparison data collection and junior's target data set, by institute
The binding data for stating lower level selector is updated to junior's target data set;
Data binding unit, if for the lower level selector it is current it is unbound have any data set, under described
The lower level selector of grade target data set and the present level selector is bound.
9. a kind of computer equipment including memory, processor and stores the meter that can be run on a memory and on a processor
Calculation machine program, which is characterized in that the processor realizes such as multistage as claimed in any one of claims 1 to 6 when executing described program
The Data Binding Method of linkage selector.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor
The Data Binding Method such as multistage linking selector as claimed in any one of claims 1 to 6 is realized when execution.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910528264.7A CN110262801A (en) | 2019-06-18 | 2019-06-18 | Data Binding Method, device, equipment and the storage medium of multistage linking selector |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910528264.7A CN110262801A (en) | 2019-06-18 | 2019-06-18 | Data Binding Method, device, equipment and the storage medium of multistage linking selector |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110262801A true CN110262801A (en) | 2019-09-20 |
Family
ID=67919176
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910528264.7A Pending CN110262801A (en) | 2019-06-18 | 2019-06-18 | Data Binding Method, device, equipment and the storage medium of multistage linking selector |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110262801A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113741743A (en) * | 2021-01-04 | 2021-12-03 | 北京沃东天骏信息技术有限公司 | Display method and device, equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170091159A1 (en) * | 2015-09-25 | 2017-03-30 | Yahoo! Inc. | Programmatic native rendering of structured content |
CN106569794A (en) * | 2016-09-23 | 2017-04-19 | 北京五八信息技术有限公司 | Application developing device |
CN108153885A (en) * | 2017-12-27 | 2018-06-12 | 东软集团股份有限公司 | Chart interlock method, device, storage medium and electronic equipment |
-
2019
- 2019-06-18 CN CN201910528264.7A patent/CN110262801A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170091159A1 (en) * | 2015-09-25 | 2017-03-30 | Yahoo! Inc. | Programmatic native rendering of structured content |
CN106569794A (en) * | 2016-09-23 | 2017-04-19 | 北京五八信息技术有限公司 | Application developing device |
CN108153885A (en) * | 2017-12-27 | 2018-06-12 | 东软集团股份有限公司 | Chart interlock method, device, storage medium and electronic equipment |
Non-Patent Citations (2)
Title |
---|
ZHAOWENYIN: ""动手封装一个React Native多级联动"", 《HTTPS://SEGMENTFAULT.COM/A/1190000016442846》 * |
小心夹手: ""小程序:动态数据实现三级联动选择器"", 《HTTPS://JUEJIN.IM/POST/5AA2289E518825557207F675》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113741743A (en) * | 2021-01-04 | 2021-12-03 | 北京沃东天骏信息技术有限公司 | Display method and device, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104266656B (en) | For the method for searching shortest route and device of road network | |
CN104810829B (en) | A kind of network structure simplified process method of power distribution network reconfiguration | |
CN108765151A (en) | A kind of method of commerce based on block chain | |
CN104992240B (en) | A kind of method and device in optimization picking path | |
CN112887148B (en) | Method and device for simulating and predicting network flow | |
CN102097865A (en) | Method for restoring power supply in power system | |
CN108734361A (en) | Share-car order processing method and apparatus | |
CN110262801A (en) | Data Binding Method, device, equipment and the storage medium of multistage linking selector | |
CN106371448B (en) | A kind of imaging satellite based on movement optimization is from master instruction generation method | |
CN110148039A (en) | A kind of crowd's intelligence network intelligence number body demand matching strategy optimization method and system | |
CN104868465A (en) | Power system grid structure reconfiguration and optimization method based on fuzzy chance constraint | |
CN109635028A (en) | Data query method and device, server and computer readable storage medium | |
CN109739903A (en) | A kind of generation method and relevant apparatus of ranking list data | |
CN105183623A (en) | Method and apparatus for improving VDG reconstruction performance based on hot standby VD | |
CN106329568A (en) | User-commercial type photovoltaic generation economic dispatching control system | |
JP5395367B2 (en) | Minimum transmission loss system configuration determination device, method and program | |
CN103198012A (en) | Automatic test case generating method based on expanded state machine diagram | |
CN113299079B (en) | Regional intersection signal control method based on PPO and graph convolution neural network | |
Hasan et al. | Local search algorithms for the maximal planar layout problem | |
US20190080117A1 (en) | Method for transmitting and checking the validity of configuration data in an electronic system, and associated electronic system and computer program product | |
CN103577588A (en) | Implement method for distributed transactions in cloud data base | |
CN111126709B (en) | Method, device, computer equipment and storage medium for determining dispatch output | |
CN115603326B (en) | Power distribution network load transfer method and system based on tree topology | |
CN102809711B (en) | Wire spreading method for testing FPGA (Field Programmable Gata Array) single long line and linked switch | |
CN107172222A (en) | A kind of date storage method and device based on distributed memory system |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190920 |