CN108280195A - Querying method, device, equipment based on index slip and storage medium - Google Patents

Querying method, device, equipment based on index slip and storage medium Download PDF

Info

Publication number
CN108280195A
CN108280195A CN201810078465.7A CN201810078465A CN108280195A CN 108280195 A CN108280195 A CN 108280195A CN 201810078465 A CN201810078465 A CN 201810078465A CN 108280195 A CN108280195 A CN 108280195A
Authority
CN
China
Prior art keywords
node
layer
view
index slip
index
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
Application number
CN201810078465.7A
Other languages
Chinese (zh)
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.)
Wuba Co Ltd
Original Assignee
Wuba 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 Wuba Co Ltd filed Critical Wuba Co Ltd
Priority to CN201810078465.7A priority Critical patent/CN108280195A/en
Publication of CN108280195A publication Critical patent/CN108280195A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/242Query formulation
    • G06F16/2428Query predicate definition using graphical user interfaces, including menus and forms
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2228Indexing structures
    • G06F16/2246Trees, e.g. B+trees

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Mathematical Physics (AREA)
  • Computational Linguistics (AREA)
  • Software Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the present invention provides a kind of querying method, device, equipment and storage medium based on index slip, and this method includes:Receive the query messages for carrying the first node that user clicks in index slip, determine whether first node carried in query messages is leafy node, if the node is not leafy node, then obtain next layer of layer view of first node, and show the display list in the layer view, the display list includes each node data of next layer of the first node, and each layer of layer view includes display list, index slip and model array.By the multistage tree view scheme of design, every layer of data are being preserved according to the model array of specified protocol, are being suitable for the scene of all list displayings and user's selection, and the scene for especially needing multi-layer view to show allows user more easily to navigate to option.

Description

Querying method, device, equipment based on index slip and storage medium
Technical field
The present embodiments relate to field of computer technology more particularly to a kind of querying method based on index slip, device, Equipment and storage medium.
Background technology
In application program (Application, APP) development process, it is frequently encountered multistage tree-like displaying and selection View, such as the organizational structure of enterprise rollout department, in enterprise if bigger sectorial structure complexity, this level will compare It is more.For another example address, user select province, city and region, then also some cases, all cities and the district under it that such as show the whole nation And small towns three-level information and selected, at least the node of first layer displaying can be very much, it is therefore desirable on first layer view plus One index slip, so that user is quickly found out desired city.
When multistage tree-like displaying view, by taking the multistage tree for developing address in APP as an example, in the three-level of province, city and region Tree-like displayed page, per one layer of level-one, one list display data of each layer, data type is array, when clicking the one or two layer, Next layer is popped up, when clicking third layer counties and districts, carries out the processing of service logic.
However, the scheme of this three-level tree using the above scheme, autgmentability is inadequate, and the number of plies is limited, does not support infinite layers Demand.
Invention content
The embodiment of the present invention provides a kind of querying method, device, equipment and storage medium based on index slip, for solving The scheme of above-mentioned three-level tree, autgmentability is inadequate, and the number of plies is limited, the problem of not supporting the demand of infinite layers.
First aspect present invention provides a kind of querying method based on index slip, the method includes:
Receive query messages;The first node that user clicks in index slip is carried in the query messages;
Determine whether first node carried in the query messages is leafy node;
If the node is not leafy node, next layer of layer view of first node is obtained, and described in display Display list in layer view;The display list includes next layer of each node data of first node;Each layer Layer view include display list, index slip and model array.
In a kind of specific implementation, the method further includes:
If the node is leafy node, the corresponding service logic of first node is executed.
In a kind of specific implementation, the model array in each layer of layer view includes:The layer identification, current knot Point title, the selected state of current node, index entry title where current node, current node child node and current node Father node.
In a kind of specific implementation, before the reception query messages, the method further includes:
Tree-like total view is created, tree-like total view is used for maintenance level view list, and layer view list includes each The layer view of layer;
The model array of each layer obtained according to preset protocol is imported into corresponding layer view in tree-like total view.
In a kind of specific implementation, the method further includes:
Obtain the first model array that next layer of layer view of first node includes;
The data class to be shown in next layer of layer view of first node is judged according to the first model array Whether type is array type;
If so, showing the index slip in the layer view.
Second aspect of the present invention provides a kind of inquiry unit based on index slip, and described device includes:
Receiving module, for receiving query messages;User clicks in index slip first is carried in the query messages Node;
Processing module, for determining whether first node carried in the query messages is leafy node;
If the node is not leafy node, the processing module is additionally operable to obtain next layer of first node Layer view;
Display module, for showing the display list in the layer view;The display list includes first node Next layer of each node data;Each layer of layer view includes display list, index slip and model array.
Optionally, the processing module is additionally operable to:
If the node is leafy node, the corresponding service logic of first node is executed.
Optionally, the model array in each layer of layer view includes:The layer identification, current node title, current knot The selected state of point, index entry title, the child node of current node and the father node of current node where current node.
Optionally, the processing module is additionally operable to:
Tree-like total view is created, tree-like total view is used for maintenance level view list, and layer view list includes each The layer view of layer;
The model array of each layer obtained according to preset protocol is imported into corresponding layer view.
Optionally, the processing module is additionally operable to:Next layer of layer view for obtaining first node include One model array;
The data class to be shown in next layer of layer view of first node is judged according to the first model array Whether type is array type;
If so, the display module is additionally operable to show the index slip in the layer view.
Third aspect present invention provides a kind of query facility based on index slip, including:Memory and processor;
The memory is for storing computer instruction;The processor by run memory storage it is described based on The querying method based on index slip that first aspect any embodiment provides is realized in the instruction of calculation machine.
Fourth aspect present invention provides a kind of readable storage medium storing program for executing, and the readable storage medium storing program for executing refers to for storing computer It enables, the computer instruction is for realizing the querying method based on index slip described in any realization method of first aspect.
Querying method, device, equipment and storage medium provided in an embodiment of the present invention based on index slip are received to carry and be used The query messages for the first node that family is clicked in index slip determine whether first node carried in query messages is leaf Child node obtains next layer of layer view of first node if the node is not leafy node, and shows the layer Display list in view, the display list include each node data of next layer of the first node, each layer of layer view Including display list, index slip and model array.By the multistage tree view scheme of design, in the model according to specified protocol Array preserves every layer of data, is suitable for the scene of all list displayings and user's selection, especially needs multi-layer view The scene of displaying, allows user more easily to navigate to option.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair Some bright embodiments for those of ordinary skill in the art without having to pay creative labor, can be with Other attached drawings are obtained according to these attached drawings.
Fig. 1 is the flow chart of the querying method embodiment one provided in an embodiment of the present invention based on index slip;
Fig. 2 is the flow chart of the querying method embodiment two provided in an embodiment of the present invention based on index slip;
Fig. 3 is the site-plan of tree view provided in an embodiment of the present invention;
Fig. 4 is the flow chart of the querying method embodiment three provided in an embodiment of the present invention based on index slip;
Fig. 5 is the flow chart of the querying method example IV provided in an embodiment of the present invention based on index slip;
Fig. 6 is a kind of implementation procedure schematic diagram of the querying method provided in an embodiment of the present invention based on index slip;
Fig. 7 is the structural schematic diagram of the inquiry unit embodiment provided in an embodiment of the present invention based on index slip;
Fig. 8 is the structural schematic diagram of the query facility embodiment provided in an embodiment of the present invention based on index slip.
Specific implementation mode
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art The all other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
Based in the three-level tree query scheme used at present, autgmentability is inadequate, and the number of plies is limited, does not support the need of infinite layers The problems such as asking, the present invention provide a kind of querying method based on index slip, and this programme supports the displaying of unlimited multistage tree view With user's selection operation, horizontally slipping for user is supported to carry out the layer view that emphasis display user's needs are seen when layer view is excessive.Together When, the program designs the display that each layer of view all supports index slip, facilitates user's fast browsing to target item.And this programme In the display of every layer of view, the node chosen all is rolled to screen centre position.
Three-level tree query scheme provided in an embodiment of the present invention can be applicable to mobile phone, personal computer, tablet computer and Among the terminal devices such as other users equipment, the clothes in the application program for needing to carry out multi-layer information selection inquiry can also be applied It is engaged in the server devices such as device, this this programme is not limited.
Fig. 1 is the flow chart of the querying method embodiment one provided in an embodiment of the present invention based on index slip, such as Fig. 1 institutes Show, the program is applied to be opened in the servers such as apps server, web page server or application development or webpage In the equipment of hair, the querying method provided in this embodiment based on index slip specifically includes following steps:
S101:Receive query messages;The first node that user clicks in index slip is carried in query messages.
In this step, user needing in network either application program through tree view selection target address or It when other target informations, can be operated on the terminal device, terminal device generates query messages and is sent to server, that is, services Either equipment receives the query messages that other equipment is sent to device or the query messages generated depending on the user's operation, the inquiry disappear The first node that user chooses is included at least in breath.
S102:Determine whether the first node carried in query messages is leafy node.
In this step, it needs to be judged according to the structure and data model therein of pre-set multilevel viewing, Determine the first node that user chooses whether leafy node, i.e., whether first node is directed toward next layer of view, if the first knot Point is not leafy node, then executes S103.
S103:If node is not leafy node, next layer of layer view of the first node is obtained, and in display layer view Display list.
In the present solution, display list includes next layer of each node data of first node;Each layer of layer View includes display list, index slip and model array.
In this step, it should be appreciated that in view design process, for each layer of layer view, design includes one Show list, an index slip and a model array.Often a nodal point number is shown in row for display list in the program According to whether index slip shows judges according to model data, and model array is transmitted by external parameter, which needs Follow specified agreement.
User is in query process, when the first node of selection is not leafy node, then under confirming that first node is directed toward One layer of view then obtains next layer of view, and shows the display list for the next layer of view that first node is directed toward, so as to user Continue to select according to information shown in the display list.If user clicks in the display list and has selected new knot Point, then repeat the above steps, and continues to judge whether the new node is leafy node, accurately needs to hold until user chooses Until the node of industry business.
S104:If node is leafy node, the corresponding service logic of the first node is executed.
In this step, if first node is leafy node, then think to have reached last layer of view, then Can the node model of first node be gone to operation layer to execute, execute the corresponding service logic of the first node.
Querying method provided in this embodiment based on index slip, by the multistage tree view scheme of design, according to The model array of specified protocol preserves every layer of data, is suitable for the scene of all list displayings and user's selection, especially The scene for needing multi-layer view to show, allows user more easily to navigate to option.
Fig. 2 is the flow chart of the querying method embodiment two provided in an embodiment of the present invention based on index slip, such as Fig. 2 institutes Show, on the basis of the above embodiments, before step S101, it further includes specifically following step to be somebody's turn to do the querying method based on index slip Suddenly:
S201:Tree-like total view is created, tree-like total view is used for maintenance level view list, and layer view list includes each The layer view of layer.
In this step, it before user applies, needs to design a total view, as the container of tree view, This view includes the sub- view of multilayer, and hereinafter referred to as layer view, each layer view are the objects of same class.Fig. 3 is this hair The site-plan for the tree view that bright embodiment provides, as shown in figure 3, the list of a layer view is safeguarded in the tree view, Layer view (1 layer, 2 layers to N layers) object of all current presentations is all placed in the list of this layer of view.Each layer is regarded Scheme (i.e. single-layer view in Fig. 3), including a display list (i.e. list in Fig. 3), an index slip and a pattern number Group.Often a node data are shown in row for list, and whether index slip, which shows, is judged according to model array, and model array is It transmitting by external parameter, model therein must be complied with specified agreement, if it is one-dimensional, then not need index slip, Otherwise it needs to show index slip.
S202:The model array of each layer obtained according to preset protocol is imported corresponding layer in tree-like total view to regard Figure.
In this step, the model array for needing to obtain each level according to preset model in advance, in array Model, this programme provide an agreement it is as shown in the table, incoming data in need be required for deferring to the model:
In the model as shown in the following table 1, layer identifies the level where current node, and id is not repeated, and name is to work as Preceding node title to be shown, can repeat, isSelected identify current node whether selected state, if subNodes is not For sky, then shows to click and have the layer view of next stage after this node and to show that otherwise this node is leafy node. ParentNode is directed toward the father node pointer of current node, needs to use when node is recalled, if this pointer value is sky, Then current node is in first layer.IndexItemName is the index entry title where current node, when having index slip It shows.
Table 1
In this programme in the specific implementation, each of will will be obtained according to preset protocol according to agreement shown in above-mentioned table 1 The model array of layer imports corresponding layer view in tree-like total view.Certainly, in this programme in the specific implementation, also can be according to not Same preset protocol obtains model array, and which is not described herein again.
The each layer of view designed according to the program all shows a list, and there are one model arrays, for the first time into tree-like When total view, from first layer to choosing layer where leafy node all to show, when clicked, according to current node whether leaf Node determines to release next layer of view or to execute the service logic of node selection.
S203:Receive query messages;The first node that user clicks in index slip is carried in query messages.
S204:Determine whether the first node carried in query messages is leafy node.
S205:If node is not leafy node, next layer of layer view of the first node is obtained, and in display layer view Display list.
S206:If node is leafy node, the corresponding service logic of the first node is executed.
The specific implementation of above-mentioned steps S203 to S206 is similar with S101 to S104 in above-described embodiment one, herein not It is repeating.
Fig. 4 is the flow chart of the querying method embodiment three provided in an embodiment of the present invention based on index slip, such as Fig. 4 institutes Show, on the basis of the above embodiments, i.e. the total model array incoming in outside has deferred to model protocol, from the in model One layer to every layer chosen among leaf layer choose the isSelected values of node it is identified it is good on the basis of, rope should be based on A kind of specific implementation for drawing the querying method of item includes the following steps:
S301:Receive query messages;The first node that user clicks in index slip is carried in query messages.
S302:Determine whether the first node carried in query messages is leafy node.
S303:If node is not leafy node, next layer of layer view of the first node is obtained, and in display layer view Display list.
S304:If node is leafy node, the corresponding service logic of the first node is executed.
The specific implementation of above-mentioned steps S301 to S304 is similar with S101 to S104 in above-described embodiment one, herein not It is repeating.
S305:Obtain the first model array that next layer of layer view of the first node includes.
S306:Judge that the data type to be shown is in next layer of layer view of the first node according to the first model array No is array type.
In above-mentioned steps, after determining the first node not and being leafy node, then enter the layer that first node is directed toward View, i.e., next layer of the first above-mentioned node obtain the model array in this layer of view, and according to the member in the model array Element determines subsequently whether need to show index slip.It can specifically be judged to open up in this layer of view according to the element in model array Whether the data type shown is array type, if it is not, then index slip need not be shown.
S307:If so, the index slip in display layer view.
If it is judged that the data type to be shown in this layer of view is array type, then illustrate that this layer of view needs to show Index slip then shows the index slip in this layer of view.
Fig. 5 is the flow chart of the querying method example IV provided in an embodiment of the present invention based on index slip, such as Fig. 5 institutes Show, a kind of specific implementation for being somebody's turn to do the querying method based on index slip includes the following steps:
S401:Tree-like total view is created, tree-like total view is used for maintenance level view list, and layer view list includes each The layer view of layer.
S402:The model array of each layer obtained according to preset protocol is imported corresponding layer in tree-like total view to regard Figure.
The specific implementation of above-mentioned steps S401 to S402 is similar with S201 to S202 in above-described embodiment two, herein not It is repeating.
S403:Receive query messages;The first node that user clicks in index slip is carried in query messages.
S404:Determine whether the first node carried in query messages is leafy node.
S405:If node is not leafy node, next layer of layer view of the first node is obtained, and in display layer view Display list.
S406:If node is leafy node, the corresponding service logic of the first node is executed.
The specific implementation of above-mentioned steps S403 to S406 is similar with S101 to S104 in above-described embodiment one, herein not It is repeating.
S407:Obtain the first model array that next layer of layer view of the first node includes.
S408:Judge that the data type to be shown is in next layer of layer view of the first node according to the first model array No is array type.
In above-mentioned steps, after determining the first node not and being leafy node, then enter the layer that first node is directed toward View, i.e., next layer of the first above-mentioned node obtain the model array in this layer of view, and according to the member in the model array Element determines subsequently whether need to show index slip.It can specifically be judged to open up in this layer of view according to the element in model array Whether the data type shown is array type, if it is not, then index slip need not be shown.
S409:If so, the index slip in display layer view.
If it is judged that the data type to be shown in this layer of view is array type, then illustrate that this layer of view needs to show Index slip then shows the index slip in this layer of view.
Based on above-mentioned several embodiment bases, to the multistage tree view design scheme provided by the invention based on index slip It is described in detail.Fig. 6 is a kind of implementation procedure schematic diagram of the querying method provided in an embodiment of the present invention based on index slip, As shown in fig. 6, in the querying method based on the index slip, obtain the node that user clicks first, judge the node whether be Leafy node if it is transmits the node model and is handled to operation layer, if it is not, then (L is more than 1 for displaying 1 to L Integer) each layer model data, be accurately the next layer model data for showing the node, it is determined whether displaying index slip is No displaying list and the scroll list whether is needed, right choice is placed in the middle, when user selects node again, then repeats the step and knows Road goes to operation layer execution.The multistage tree view design scheme based on index slip that this example provides is specific as follows:
1, the incoming tree of layer (being denoted as L) where outside gets out model array (being denoted as TreeArr) and chooses leafy node The total view of shape.
2, L layer view is initialized according to the L numbers of plies, view object is packed into view container, and each layer view is pressed into level It is shown successively by left-to-right, each layer of view is shown according to the following steps.
(1), if it is first layer, by the incoming model arrays as this layer of the TreeArr of total view;Otherwise, by upper one The incoming model array as this layer of the subNodes arrays of node model in layer choosing.
(2), access group first ties up first element, judges element type, if it is array type, illustrates that this layer of view needs Show index slip, and index number is that current array first ties up element number, the content that index entry is shown is tieed up for array second The indexItemName values of first model;Otherwise it need not show that index slip, array one-dimensional element are current layers list The data to be shown.
(3), the incoming array of traversal current layer, finds the node for being identified as isSelected, record for PreSeleNode, and (if there is index slip, then group and row, are otherwise place where being by the position indexPath of the node Row).
(4), Array Model data are shown in current layers list, and difference is shown respectively according to selected state for each node Pattern.
(5), after the completion of list display, it is possible to which at this moment the data chosen need list carrying out one not in the first screen Current layer table data is rolled to the positions indexPath by rolling operation, and the node that current layer is chosen is allowed to show in lists Between.
If 3, layer view is more, screen may can not shown any more, can be slided some layers on the left side to the left, not shown; Equally, it when user wants to see left side hidden layer view, then slides to the right, the layer view of rightmost is slided into outside screen, is not shown Show, hiding layer view was shown originally.
4, when user carries out click selection operation, each layer view carries out following response.
(1), the node preSeleNode once chosen before current layer is cancelled into selected state, i.e., changed isSelected For false, and father node is found by the parentNode pointers of preSeleNode, father node isSelected is also set For false, cycle constantly recalls the parentNode pointers until father node to be empty, by the father node of each layer view upwards IsSelected is set to false.
(2), similarly, by parentNode pointers by the node currently chosen and the father node recalled all the way up IsSelected is also set to true.
(3) if, the node of selection be not leafy node, to release next layer of view, execute step 4.
(4) if, the node of selection be leafy node, execute the service logic chosen, execute step 5.
5, the number of plies layer for taking current node model, if layer<=total view list the number of plies, then will be after layer Layer view all remove, layer object is discharged, the subNodes arrays of current node model is taken to be shown to layer layers of view On.
6, the outflow of current node model is taken to go to handle to operation layer, agency by agreement pattern may be used in mode.
The multistage tree view scheme of this programme design can be used for all APP under conditions of deferring to designated model agreement Or the scene of the list displaying and user's selection (single choice) in webpage, the scene for especially needing multi-layer view to show, together When can all layers support index slip display, allow user more easily to navigate to option.Unlimited multistage tree is supported simultaneously The displaying of shape view and user's selection operation, when layer view is excessive support user horizontally slip come emphasis show user need see Layer view, each layer of view all support the display of index slip, facilitates user's fast browsing to target item, in the aobvious of every layer of view When showing, the node chosen all is rolled to screen centre position, improves user experience.
Fig. 7 is the structural schematic diagram of the inquiry unit embodiment provided in an embodiment of the present invention based on index slip, such as Fig. 7 institutes Show, the inquiry unit 10 provided in this embodiment based on index slip includes:
Receiving module 11, for receiving query messages;User clicks in index slip the is carried in the query messages One node;
Processing module 12, for determining whether first node carried in the query messages is leafy node;
If the node is not leafy node, the processing module 12 is additionally operable to obtain next layer of first node Layer view;
Display module 13, for showing the display list in the layer view;The display list includes first knot Next layer of each node data of point;Each layer of layer view includes display list, index slip and model array.
Inquiry unit provided in this embodiment based on index slip, the technical side for executing aforementioned either method embodiment Case, implementing principle and technical effect are similar, by the multistage tree view scheme of design, in the pattern number according to specified protocol Group preserves every layer of data, when user clicks and inquires, judges the node of click, in next layer of layer view Display list is shown, so that user continues to click the content for selecting inquiry to need, is suitable for all list displayings and use The scene of family selection, the scene for especially needing multi-layer view to show allow user more easily to navigate to option.
In the specific implementation of the inquiry unit 10 based on index slip, the processing module 12 is additionally operable to:
If the node is leafy node, the corresponding service logic of first node is executed.
Optionally, the model array in each layer of layer view includes:The layer identification, current node title, current knot The selected state of point, index entry title, the child node of current node and the father node of current node where current node.
Optionally, the processing module 12 is additionally operable to:
Tree-like total view is created, tree-like total view is used for maintenance level view list, and layer view list includes each The layer view of layer;
The model array of each layer obtained according to preset protocol is imported into corresponding layer view.
Optionally, the processing module 12 is additionally operable to:Next layer of layer view for obtaining first node include First model array;
The data class to be shown in next layer of layer view of first node is judged according to the first model array Whether type is array type;
If so, the display module is additionally operable to show the index slip in the layer view.
The inquiry unit based on index slip that any of the above-described realization method provides, for realizing aforementioned either method embodiment In technical solution, implementing principle and technical effect are similar, and details are not described herein.
Fig. 8 is the structural schematic diagram of the query facility embodiment provided in an embodiment of the present invention based on index slip.Such as Fig. 8 institutes Show, it can be terminal device to be somebody's turn to do the query facility based on index slip, can also be the equipment such as server, do not limit this this programme System, being somebody's turn to do the query facility 100 based on index slip includes:Memory 101 and processor 102;
The memory 101 is for storing computer instruction;The processor 102 is deposited for running the memory 101 The computer instruction of storage realizes the technical solution for the querying method based on index slip that aforementioned any embodiment provides.
The present invention also provides a kind of readable storage medium storing program for executing, the readable storage medium storing program for executing is described for storing computer instruction The technical solution for the querying method based on index slip that computer instruction provides for realizing aforementioned either method embodiment.
In above-mentioned terminal device or server in the specific implementation, it should be understood that processor can be central processing unit (English:Central Processing Unit, referred to as:CPU), it can also be other general processors, digital signal processor (English:Digital Signal Processor, referred to as:DSP), application-specific integrated circuit (English:Application Specific Integrated Circuit, referred to as:ASIC) etc..General processor can be microprocessor or the processor It can also be any conventional processor etc..The step of method in conjunction with disclosed in the embodiment of the present invention, can be embodied directly in hard Part processor executes completion, or in processor hardware and software module combination execute completion.
One of ordinary skill in the art will appreciate that:Realize that all or part of step of above-mentioned each method embodiment can lead to The relevant hardware of program instruction is crossed to complete.Program above-mentioned can be stored in a computer read/write memory medium.The journey When being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned includes:Read-only memory (English Text:Read-onlymemory, abbreviation:ROM), RAM, flash memory, hard disk, solid state disk, tape (English:magnetic Tape), floppy disk (English:Floppy disk), CD (English:Optical disc) and its arbitrary combination.
Finally it should be noted that:The above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Present invention has been described in detail with reference to the aforementioned embodiments for pipe, it will be understood by those of ordinary skill in the art that:Its according to So can with technical scheme described in the above embodiments is modified, either to which part or all technical features into Row equivalent replacement;And these modifications or replacements, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (12)

1. a kind of querying method based on index slip, which is characterized in that the method includes:
Receive query messages;The first node that user clicks in index slip is carried in the query messages;
Determine whether first node carried in the query messages is leafy node;
If the node is not leafy node, next layer of layer view of first node is obtained, and shows that the layer regards Display list in figure;The display list includes next layer of each node data of first node;Each layer of layer View includes display list, index slip and model array.
2. according to the method described in claim 1, it is characterized in that, the method further includes:
If the node is leafy node, the corresponding service logic of first node is executed.
3. method according to claim 1 or 2, which is characterized in that the model array in each layer of layer view includes:Institute State layer identification, current node title, the selected state of current node, index entry title where current node, current node son The father node of node and current node.
4. according to the method described in claim 3, it is characterized in that, before the reception query messages, the method further includes:
Tree-like total view is created, tree-like total view is used for maintenance level view list, and layer view list includes each layer Layer view;
The model array of each layer obtained according to preset protocol is imported into corresponding layer view in tree-like total view.
5. method according to any one of claims 1 to 4, which is characterized in that the method further includes:
Obtain the first model array that next layer of layer view of first node includes;
Judge that the data type to be shown is in next layer of layer view of first node according to the first model array No is array type;
If so, showing the index slip in the layer view.
6. a kind of inquiry unit based on index slip, which is characterized in that described device includes:
Receiving module, for receiving query messages;The first node that user clicks in index slip is carried in the query messages;
Processing module, for determining whether first node carried in the query messages is leafy node;
If the node is not leafy node, next layer of the layer that the processing module is additionally operable to obtain first node regards Figure;
Display module, for showing the display list in the layer view;The display list includes under first node One layer of each node data;Each layer of layer view includes display list, index slip and model array.
7. device according to claim 6, which is characterized in that the processing module is additionally operable to:
If the node is leafy node, the corresponding service logic of first node is executed.
8. the device described according to claim 6 or 7, which is characterized in that the model array in each layer of layer view includes:Institute State layer identification, current node title, the selected state of current node, index entry title where current node, current node son The father node of node and current node.
9. device according to claim 8, which is characterized in that the processing module is additionally operable to:
Tree-like total view is created, tree-like total view is used for maintenance level view list, and layer view list includes each layer Layer view;
The model array of each layer obtained according to preset protocol is imported into corresponding layer view.
10. according to claim 6 to 9 any one of them device, which is characterized in that the processing module is additionally operable to:Obtain institute State the first model array that next layer of layer view of the first node includes;
Judge that the data type to be shown is in next layer of layer view of first node according to the first model array No is array type;
If so, the display module is additionally operable to show the index slip in the layer view.
11. a kind of query facility based on index slip, which is characterized in that including:Memory and processor;
The memory is for storing computer instruction;The processor is used to run the computer of the memory storage The querying method described in any one of claim 1 to 5 based on index slip is realized in instruction.
12. a kind of readable storage medium storing program for executing, which is characterized in that the readable storage medium storing program for executing is for storing computer instruction, the meter Calculation machine instructs for realizing the querying method described in any one of claim 1 to 5 based on index slip.
CN201810078465.7A 2018-01-26 2018-01-26 Querying method, device, equipment based on index slip and storage medium Pending CN108280195A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810078465.7A CN108280195A (en) 2018-01-26 2018-01-26 Querying method, device, equipment based on index slip and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810078465.7A CN108280195A (en) 2018-01-26 2018-01-26 Querying method, device, equipment based on index slip and storage medium

Publications (1)

Publication Number Publication Date
CN108280195A true CN108280195A (en) 2018-07-13

Family

ID=62805202

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810078465.7A Pending CN108280195A (en) 2018-01-26 2018-01-26 Querying method, device, equipment based on index slip and storage medium

Country Status (1)

Country Link
CN (1) CN108280195A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110737660A (en) * 2019-09-24 2020-01-31 南京南瑞继保电气有限公司 data processing method, device and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102117333A (en) * 2011-03-11 2011-07-06 北京神舟航天软件技术有限公司 Method for browsing tree-like structural data at multiple views
US8639680B1 (en) * 2012-05-07 2014-01-28 Google Inc. Hidden text detection for search result scoring
CN104112020A (en) * 2014-07-25 2014-10-22 沈阳美行科技有限公司 Frame type retrieval method for navigation equipment
CN105404977A (en) * 2015-12-10 2016-03-16 淄博铭润环境检测咨询服务有限公司 Enterprise safety production file information and occupational hygiene file management system
CN107391091A (en) * 2016-05-17 2017-11-24 武汉宏途科技有限公司 A kind of panorama multi-view system and its construction method based on father and son's state

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102117333A (en) * 2011-03-11 2011-07-06 北京神舟航天软件技术有限公司 Method for browsing tree-like structural data at multiple views
US8639680B1 (en) * 2012-05-07 2014-01-28 Google Inc. Hidden text detection for search result scoring
CN104112020A (en) * 2014-07-25 2014-10-22 沈阳美行科技有限公司 Frame type retrieval method for navigation equipment
CN105404977A (en) * 2015-12-10 2016-03-16 淄博铭润环境检测咨询服务有限公司 Enterprise safety production file information and occupational hygiene file management system
CN107391091A (en) * 2016-05-17 2017-11-24 武汉宏途科技有限公司 A kind of panorama multi-view system and its construction method based on father and son's state

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110737660A (en) * 2019-09-24 2020-01-31 南京南瑞继保电气有限公司 data processing method, device and computer readable storage medium
CN110737660B (en) * 2019-09-24 2022-09-23 南京南瑞继保电气有限公司 Data processing method and device and computer readable storage medium

Similar Documents

Publication Publication Date Title
US11736913B2 (en) Mobile device with applications that use a common place card to display data relating to a location
CN107957831B (en) Data processing method, device and processing equipment for displaying interface content
US9733802B2 (en) Automatic deep view card stacking
US20130219319A1 (en) Apparatus and method for grouping application program folders in electronic device
WO2016082598A1 (en) Method, apparatus, and device for rapidly searching for application program
US20160357832A1 (en) Data rendering optimization
US20130007667A1 (en) People centric, cross service, content discovery system
CN110007986B (en) Function implementation method and device
CN109190101A (en) Note reading generation method, device and electronic equipment
US20120191756A1 (en) Terminal having searching function and method for searching using data saved in clipboard
CN105354195B (en) Information searching method and device
EP3746873A1 (en) Techniques for utilizing translucent user interface elements
CN105915615A (en) Method for displaying application information in mobile equipment and device thereof
US11068557B2 (en) Mobile application discovery using an electronic map
CN108280195A (en) Querying method, device, equipment based on index slip and storage medium
US10970332B2 (en) Electronic device and digital content managing method
US20140181113A1 (en) Apparatus and method for managing received files
US9424256B2 (en) Method and apparatus for performing type-aware change tracking in a document
CN104699765B (en) A kind of date storage method and mobile terminal
US10133446B2 (en) Content chase-ability for apps
CN110888649B (en) Application deployment method, application baseline creation method and device
CN111984809A (en) Image searching method and related device
WO2015057589A2 (en) Mobil device with applications that use a common place card to display data relating to a location
US20090300047A1 (en) Automatically assigning data bindings in visual designers
WO2014066560A1 (en) Enhanced views of tagged items in a gallery

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

Application publication date: 20180713

RJ01 Rejection of invention patent application after publication