The recording method of user's selection operation based on the exploitation of map object
Technical field
The present invention relates to power system management page applicating developing technology fields, and in particular to one kind is opened based on map object
The recording method of user's selection operation of hair.
Background technique
In the power system management page, page data is more and carries out under the business scenario of paging, and user is in switching point
Selected data will appear the phenomenon that being reset when page, such as use fixed value list in relay protection profession adjusting group user
When selection function, in current management page for the fixed value list for having selected for " issuing ", need to select again when switching the page number
Fixed value list after middle switching in the page number, after clicking confirmation, in addition to the fixed value list of last time selection, all fronts are selected
Fixed value list there is no in fixed value list list, be currently to be badly in need of there is no to user to require to provide paging to select definite value single function
It solves the problems, such as.
Summary of the invention
The purpose of the invention is to overcome in the existing power system management page, page data is more and carries out paging
Under business scenario, the data that user selected when switching paging will appear the problem of being reset.It is of the invention based on map object
It is more and carry out the business of paging to can be realized power system management page data for the recording method of user's selection operation of exploitation
Under scene, realize that each data select the function being recorded when recording any paging switching, have a good application prospect.
To achieve the above object, the technical scheme adopted by the invention is that:
The recording method of user's selection operation based on the exploitation of map object, it is characterised in that: include the following steps,
Step (1), select the power system management page homepage on, define a global map collection object, wherein
Key value is that major key ID, the value value of map collection object is the check box object of current page;
Step (2), building first function is realized when check box object is chosen, and is added in map collection object;?
When check box object revocation is chosen, then removed from map collection object;
Step (3), building second function realize for click full choosing or it is counter select all check box objects when, by what is chosen
It is all that frame object is selected to be added in map collection object;All check box objects of revocation are removed from map collection object;
Step (4), when user chooses a check box object, then the first function of invocation step (2), return one it is new
The key value of map collection object;When user chooses multiple check box objects simultaneously, then the second function of invocation step (3), returns
The key value of one new map collection object;
Step (5) initializes current map collection object when user carries out page number switching, if current
Map collection object obtains check box object by key value, then chooses current check box object, and record current page
Data;If current map collection object does not obtain check box object, the data of current page are not recorded.
The beneficial effects of the present invention are: the recording method of user's selection operation of the invention based on the exploitation of map object, right
JS Array(JavaScript Array) array object is packaged, and it is become into map collection object, provides and gathers map
The function of object addition and remove, so as to realize that power system management page data is more and carries out the business scenario of paging
Under, realize that each data select the function being recorded when recording any paging switching, have a good application prospect.
Detailed description of the invention
Fig. 1 is the flow chart of the recording method of user's selection operation of the invention based on the exploitation of map object.
Specific embodiment
Below in conjunction with Figure of description 1, the present invention is further illustrated.
The recording method of user's selection operation based on the exploitation of map object of the invention, to JS Array array object into
It is become map collection object, the function that map collection object is added and removed is provided, so as to realize electric power by row encapsulation
System administration page data is more and carries out under the business scenario of paging, and realization records each data selection when any paging switching
The function being all recorded, as shown in Figure 1, specific implementation includes the following steps,
Step (1), select the power system management page homepage on, define a global map collection object, wherein
Key value is that major key ID, the value value of map collection object is the check box object of current page;
Step (2), building first function is realized when check box object is chosen, and is added in map collection object;?
When check box object revocation is chosen, then removed from map collection object;
Step (3), building second function realize for click full choosing or it is counter select all check box objects when, by what is chosen
It is all that frame object is selected to be added in map collection object;All check box objects of revocation are removed from map collection object;
Step (4), when user chooses a check box object, then the first function of invocation step (2), return one it is new
The key value of map collection object;When user chooses multiple check box objects simultaneously, then the second function of invocation step (3), returns
The key value of one new map collection object;
Step (5) initializes current map collection object when user carries out page number switching, if current
Map collection object obtains check box object by key value, then chooses current check box object, and record current page
Data;If current map collection object does not obtain check box object, the data of current page are not recorded.
The recording method of user's selection operation according to the present invention based on the exploitation of map object, is protected in Guangdong Power Grid Corporation
Professional adjusting group user is protected, processing adaptive setting " adjusting group issues " procedure links page is entered, in current page, is clicked
" fixed value list selection " function button pops up fixed value list list dialog box, and selection needs to be issued to the fixed value list of " operation group ", supports
Switch the page and select fixed value list, clicks " selection " function button, all records chosen are filled into adjusting group and issue homepage
In, it can be realized each data when recording any paging switching and select the function being recorded, have a good application prospect.
Basic principles and main features and advantage of the invention have been shown and described above.The technical staff of the industry should
Understand, the present invention is not limited to the above embodiments, and the above embodiments and description only describe originals of the invention
Reason, without departing from the spirit and scope of the present invention, various changes and improvements may be made to the invention, these changes and improvements
It all fall within the protetion scope of the claimed invention.The claimed scope of the invention is by appended claims and its equivalent circle
It is fixed.