Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
techbook
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
front-end-dev
techbook
Commits
73786f02
Commit
73786f02
authored
Dec 10, 2019
by
zhangyanni
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
90a34b36
83d7185d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
store.js
src/store.js
+8
-0
seeprojectlist.vue
src/views/seeprojects/seeprojectlist.vue
+5
-0
No files found.
src/store.js
View file @
73786f02
...
...
@@ -7,6 +7,7 @@ export default new Vuex.Store({
state
:
{
bigBusinessSearch
:
new
Map
(),
//大B列表搜索
bigBusinessPage
:
new
Map
(),
//大B分页页码
projectPage
:
new
Map
(),
//小B分页页码
searchResultBigBusiness
:
new
Map
(),
//搜索结果大B分页
searchResultSmallBusiness
:
new
Map
(),
//搜索结果小B分页
searchResult
:
new
Map
(),
//搜索结果
...
...
@@ -21,6 +22,10 @@ export default new Vuex.Store({
state
.
bigBusinessPage
.
set
(
path
,
pars
)
},
project_PAGE_NUM
:(
state
,{
path
,
pars
})
=>
{
//大B记住分页
state
.
projectPage
.
set
(
path
,
pars
)
},
SEARCH_RESULT_BB_PAGE_NUM
:(
state
,{
path
,
pars
})
=>
{
//搜索结果大B分页
state
.
searchResultBigBusiness
.
set
(
path
,
pars
)
},
...
...
@@ -46,6 +51,9 @@ export default new Vuex.Store({
commit
(
'SAVE_LIST_PAGE_NUM'
,{
path
,
pars
});
},
projectPageNum
:
({
commit
},{
path
,
pars
})
=>
{
commit
(
'project_PAGE_NUM'
,{
path
,
pars
});
},
saveSearchResultBBPageNum
:
({
commit
},{
path
,
pars
})
=>
{
commit
(
'SEARCH_RESULT_BB_PAGE_NUM'
,{
path
,
pars
});
},
...
...
src/views/seeprojects/seeprojectlist.vue
View file @
73786f02
...
...
@@ -135,6 +135,7 @@
// 分页导航
handleCurrentChange
(
val
)
{
this
.
cur_page
=
val
;
this
.
$store
.
dispatch
(
'projectPageNum'
,{
path
:
this
.
$route
.
path
,
pars
:
this
.
cur_page
});
this
.
add
();
},
//设置个数
...
...
@@ -151,6 +152,9 @@
this
.
$router
.
push
({
path
:
"/viewproject"
,
query
:{
projectId
:
row
.
projectId
,
state
:
0
}});
},
add
(){
if
(
this
.
$store
.
state
.
projectPage
.
has
(
this
.
$route
.
path
))
{
this
.
cur_page
=
this
.
$store
.
state
.
projectPage
.
get
(
this
.
$route
.
path
);
}
let
params
=
{
pagination
:
{
number
:
this
.
numberData
,
...
...
@@ -274,6 +278,7 @@
if
(
to
.
path
!=
"/viewproject"
||
to
.
path
==
undefined
)
{
window
.
sessionStorage
.
setItem
(
"isDetailInpro"
,
false
);
this
.
$store
.
dispatch
(
'projectPagePars'
,{
path
:
this
.
$route
.
path
,
pars
:{}});
this
.
$store
.
dispatch
(
'projectPageNum'
,{
path
:
this
.
$route
.
path
,
pars
:
1
});
next
()
}
else
{
window
.
sessionStorage
.
setItem
(
"isDetailInpro"
,
true
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment