Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
template_vue
Project
Project
Details
Activity
Releases
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
胡宝山
template_vue
Commits
9674b2a4
Commit
9674b2a4
authored
Apr 07, 2024
by
Hagsn3
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码提交
parent
ba45ae76
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
45 additions
and
45 deletions
+45
-45
ConfirmationMaterials.vue
src/views/template/ConfirmationMaterials.vue
+15
-15
enterboundTwo.vue
src/views/template/enterboundTwo.vue
+15
-15
outcomeWmsApply.vue
src/views/template/outcomeWmsApply.vue
+15
-15
No files found.
src/views/template/ConfirmationMaterials.vue
View file @
9674b2a4
...
...
@@ -364,22 +364,22 @@ export default {
return
commonField
}
},
/
/ /
** 路由离开前存储筛选条件*/
//
beforeRouteLeave(to, from, next) {
//
this.$store.dispatch('searchSave/searchParamsSet', {
//
path: this.$route.path,
//
param: {
//
...this.queryParams
//
}
//
})
//
next()
//
},
/** 路由离开前存储筛选条件*/
beforeRouteLeave
(
to
,
from
,
next
)
{
this
.
$store
.
dispatch
(
'searchSave/searchParamsSet'
,
{
path
:
this
.
$route
.
path
,
param
:
{
...
this
.
queryParams
}
})
next
()
},
created
()
{
//
if (this.$store.getters.searchParams[this.$route.path]) {
//
const { searchParams } = this.$store.getters; const { path } = this.$route
//
const param = JSON.parse(searchParams[path]) // 保留着的查询条件
//
this.queryParams = { ...param }
//
}
if
(
this
.
$store
.
getters
.
searchParams
[
this
.
$route
.
path
])
{
const
{
searchParams
}
=
this
.
$store
.
getters
;
const
{
path
}
=
this
.
$route
const
param
=
JSON
.
parse
(
searchParams
[
path
])
// 保留着的查询条件
this
.
queryParams
=
{
...
param
}
}
this
.
getList
()
// 列表查询
this
.
getwareHouse
()
},
...
...
src/views/template/enterboundTwo.vue
View file @
9674b2a4
...
...
@@ -295,7 +295,7 @@ export default {
apply_create_date
:
''
,
income_create_date
:
''
,
whId
:
''
,
affirmName
:
''
,
affirmName
:
''
,
orderCode
:
''
,
ptype
:
''
,
pn
:
''
,
...
...
@@ -431,21 +431,21 @@ export default {
}
},
/** 路由离开前存储筛选条件*/
//
beforeRouteLeave(to, from, next) {
//
this.$store.dispatch('searchSave/searchParamsSet', {
//
path: this.$route.path,
//
param: {
//
...this.queryParams
//
}
//
})
//
next()
//
},
beforeRouteLeave
(
to
,
from
,
next
)
{
this
.
$store
.
dispatch
(
'searchSave/searchParamsSet'
,
{
path
:
this
.
$route
.
path
,
param
:
{
...
this
.
queryParams
}
})
next
()
},
created
()
{
//
if (this.$store.getters.searchParams[this.$route.path]) {
//
const { searchParams } = this.$store.getters; const { path } = this.$route
//
const param = JSON.parse(searchParams[path]) // 保留着的查询条件
//
this.queryParams = { ...param }
//
}
if
(
this
.
$store
.
getters
.
searchParams
[
this
.
$route
.
path
])
{
const
{
searchParams
}
=
this
.
$store
.
getters
;
const
{
path
}
=
this
.
$route
const
param
=
JSON
.
parse
(
searchParams
[
path
])
// 保留着的查询条件
this
.
queryParams
=
{
...
param
}
}
this
.
getList
()
// 列表查询
this
.
getwareHouse
()
},
...
...
src/views/template/outcomeWmsApply.vue
View file @
9674b2a4
...
...
@@ -395,22 +395,22 @@ export default {
return
commonField
}
},
/
/ /
** 路由离开前存储筛选条件*/
//
beforeRouteLeave(to, from, next) {
//
this.$store.dispatch('searchSave/searchParamsSet', {
//
path: this.$route.path,
//
param: {
//
...this.queryParams
//
}
//
})
//
next()
//
},
/** 路由离开前存储筛选条件*/
beforeRouteLeave
(
to
,
from
,
next
)
{
this
.
$store
.
dispatch
(
'searchSave/searchParamsSet'
,
{
path
:
this
.
$route
.
path
,
param
:
{
...
this
.
queryParams
}
})
next
()
},
created
()
{
//
if (this.$store.getters.searchParams[this.$route.path]) {
//
const { searchParams } = this.$store.getters; const { path } = this.$route
//
const param = JSON.parse(searchParams[path]) // 保留着的查询条件
//
this.queryParams = { ...param }
//
}
if
(
this
.
$store
.
getters
.
searchParams
[
this
.
$route
.
path
])
{
const
{
searchParams
}
=
this
.
$store
.
getters
;
const
{
path
}
=
this
.
$route
const
param
=
JSON
.
parse
(
searchParams
[
path
])
// 保留着的查询条件
this
.
queryParams
=
{
...
param
}
}
this
.
getList
()
// 列表查询
this
.
getwareHouse
()
},
...
...
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