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
2688f785
Commit
2688f785
authored
May 21, 2024
by
高宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.设置三级菜单
parent
e9ea15f8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
outcomeWmsJbapplyTemp.vue
src/views/template/outcomeWmsJbapplyTemp.vue
+16
-1
No files found.
src/views/template/outcomeWmsJbapplyTemp.vue
View file @
2688f785
...
@@ -660,6 +660,16 @@ export default {
...
@@ -660,6 +660,16 @@ export default {
}
}
}
}
},
},
/** 路由离开前存储筛选条件*/
beforeRouteLeave
(
to
,
from
,
next
)
{
this
.
$store
.
dispatch
(
'searchSave/searchParamsSet'
,
{
path
:
this
.
$route
.
path
,
param
:
{
...
this
.
queryParams
}
})
next
()
},
computed
:
{
computed
:
{
// 判断是否禁用输入框并清空值
// 判断是否禁用输入框并清空值
isDisabled
()
{
isDisabled
()
{
...
@@ -675,6 +685,11 @@ export default {
...
@@ -675,6 +685,11 @@ export default {
},
},
created
()
{
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
}
}
this
.
manufacturer
=
manufacturer
this
.
manufacturer
=
manufacturer
this
.
getList
()
// 列表查询
this
.
getList
()
// 列表查询
this
.
getwareHouse
()
// 查询数据字典
this
.
getwareHouse
()
// 查询数据字典
...
@@ -785,7 +800,7 @@ export default {
...
@@ -785,7 +800,7 @@ export default {
formData
.
append
(
'file'
,
this
.
files
)
formData
.
append
(
'file'
,
this
.
files
)
importJbapplyExcel
(
formData
).
then
(
res
=>
{
importJbapplyExcel
(
formData
).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
this
.
$message
.
success
(
'共
导入
'
+
res
.
data
.
total
+
'条'
+
`成功导入`
+
res
.
data
.
rows
+
`条`
)
this
.
$message
.
success
(
'共'
+
res
.
data
.
total
+
'条'
+
`成功导入`
+
res
.
data
.
rows
+
`条`
)
this
.
importLoading
=
false
this
.
importLoading
=
false
this
.
importControls
.
open
=
false
this
.
importControls
.
open
=
false
this
.
files
=
[]
this
.
files
=
[]
...
...
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