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
fa925fdb
Commit
fa925fdb
authored
Dec 18, 2023
by
cat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
路由保存数据
parent
ee16b1da
Changes
17
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
152 additions
and
1 deletion
+152
-1
basicInfo.vue
src/views/equipment/basicInfo.vue
+0
-1
draw.vue
src/views/equipment/draw.vue
+5
-0
index.vue
src/views/equipment/equipmentCheck/index.vue
+2
-0
index.vue
src/views/equipment/inventoryRecord/index.vue
+14
-0
index.vue
src/views/equipment/printingCheck/index.vue
+8
-0
draw.vue
src/views/processManagement/draw.vue
+6
-0
index.vue
src/views/processManagement/inventoryQuery/index.vue
+6
-0
index.vue
src/views/processManagement/inventoryRecord/index.vue
+2
-0
index.vue
src/views/processManagement/processesCheck/index.vue
+2
-0
index.vue
src/views/production/barcodegeneration/index.vue
+15
-0
index.vue
src/views/production/craftsmanship/index.vue
+15
-0
index.vue
src/views/production/gxlog/index.vue
+15
-0
index.vue
src/views/sample/basicInformation/index.vue
+16
-0
index.vue
src/views/sample/correctionLibrary/index.vue
+16
-0
index.vue
src/views/sample/errorRecord/index.vue
+7
-0
index.vue
src/views/sample/inventoryRecord/index.vue
+7
-0
index.vue
src/views/sample/sampleType/index.vue
+16
-0
No files found.
src/views/equipment/basicInfo.vue
View file @
fa925fdb
...
...
@@ -310,7 +310,6 @@ export default {
},
/** 路由离开前存储筛选条件*/
beforeRouteLeave
(
to
,
from
,
next
)
{
console
.
log
(
"離開路由前賦值"
)
this
.
$store
.
dispatch
(
'searchSave/searchParamsSet'
,
{
path
:
this
.
$route
.
path
,
param
:
{
...
...
src/views/equipment/draw.vue
View file @
fa925fdb
...
...
@@ -505,6 +505,11 @@ export default {
this
.
getDict
()
this
.
getList
()
this
.
getCodeDict
()
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
}
}
}
,
methods
:
{
parseTime
,
...
...
src/views/equipment/equipmentCheck/index.vue
View file @
fa925fdb
...
...
@@ -224,6 +224,8 @@ export default {
const
{
path
}
=
this
.
$route
const
param
=
JSON
.
parse
(
searchParams
[
path
])
// 保留着的查询条件
this
.
queryParams
=
{
...
param
}
this
.
dateRange
[
0
]
=
this
.
queryParams
.
beginTime
this
.
dateRange
[
1
]
=
this
.
queryParams
.
endTime
}
this
.
getList
()
},
...
...
src/views/equipment/inventoryRecord/index.vue
View file @
fa925fdb
...
...
@@ -439,6 +439,7 @@ export default {
},
/** 路由离开前存储筛选条件*/
beforeRouteLeave
(
to
,
from
,
next
)
{
console
.
log
(
'this.queryParams'
,
this
.
queryParams
)
this
.
$store
.
dispatch
(
'searchSave/searchParamsSet'
,
{
path
:
this
.
$route
.
path
,
param
:
{
...
...
@@ -453,6 +454,8 @@ export default {
const
{
searchParams
}
=
this
.
$store
.
getters
;
const
{
path
}
=
this
.
$route
const
param
=
JSON
.
parse
(
searchParams
[
path
])
// 保留着的查询条件
this
.
queryParams
=
{
...
param
}
this
.
dateRange
[
0
]
=
this
.
queryParams
.
beginTime
this
.
dateRange
[
1
]
=
this
.
queryParams
.
endTime
}
this
.
getList
()
this
.
getDict
()
...
...
@@ -530,12 +533,23 @@ export default {
/** TODO: 重置按钮操作 */
resetQuery
()
{
this
.
queryParams
=
{
page
:
1
,
rows
:
10
,
beginTime
:
''
,
endTime
:
''
,
// TODO: 0表示倒序排序,1表示顺序排序
tableSortMark
:
0
,
entity
:
{
// TODO: 设备编码
pn
:
''
,
// TODO: lot
lot
:
''
,
// TODO: 位置
plocation
:
''
,
// TODO: 库状态 1 入,2出,3修正,4废弃
poperate
:
''
,
// TODO: 库类型 1设备库 2工序库
ptype
:
''
}
}
...
...
src/views/equipment/printingCheck/index.vue
View file @
fa925fdb
...
...
@@ -427,6 +427,14 @@ export default {
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
}
this
.
dateRange
[
0
]
=
this
.
queryParams
.
beginTime
this
.
dateRange
[
1
]
=
this
.
queryParams
.
endTime
}
this
.
getUserName
()
this
.
getYsList
()
this
.
getDict
()
...
...
src/views/processManagement/draw.vue
View file @
fa925fdb
...
...
@@ -554,6 +554,12 @@ export default {
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
}
}
this
.
getDict
()
this
.
getList
()
}
,
...
...
src/views/processManagement/inventoryQuery/index.vue
View file @
fa925fdb
...
...
@@ -581,6 +581,12 @@ export default {
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
}
}
this
.
getDict
()
this
.
getList
()
}
,
...
...
src/views/processManagement/inventoryRecord/index.vue
View file @
fa925fdb
...
...
@@ -452,6 +452,8 @@ export default {
const
{
path
}
=
this
.
$route
const
param
=
JSON
.
parse
(
searchParams
[
path
])
// 保留着的查询条件
this
.
queryParams
=
{...
param
}
this
.
dateRange
[
0
]
=
this
.
queryParams
.
beginTime
this
.
dateRange
[
1
]
=
this
.
queryParams
.
endTime
}
this
.
getList
()
this
.
getDict
()
...
...
src/views/processManagement/processesCheck/index.vue
View file @
fa925fdb
...
...
@@ -211,6 +211,8 @@ export default {
const
{
searchParams
}
=
this
.
$store
.
getters
;
const
{
path
}
=
this
.
$route
const
param
=
JSON
.
parse
(
searchParams
[
path
])
// 保留着的查询条件
this
.
queryParams
=
{
...
param
}
this
.
dateRange
[
0
]
=
this
.
queryParams
.
beginTime
this
.
dateRange
[
1
]
=
this
.
queryParams
.
endTime
}
this
.
getList
()
},
...
...
src/views/production/barcodegeneration/index.vue
View file @
fa925fdb
...
...
@@ -318,7 +318,22 @@ export default {
basicinfoMationList
:
[]
}
}
,
/** 路由离开前存储筛选条件*/
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
}
}
this
.
getList
()
}
,
methods
:
{
...
...
src/views/production/craftsmanship/index.vue
View file @
fa925fdb
...
...
@@ -434,7 +434,22 @@ export default {
basicinfoMationList
:
[]
}
}
,
/** 路由离开前存储筛选条件*/
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
}
}
this
.
getDict
()
this
.
getList
()
}
,
...
...
src/views/production/gxlog/index.vue
View file @
fa925fdb
...
...
@@ -401,7 +401,22 @@ export default {
basicinfoMationList
:
[]
}
}
,
/** 路由离开前存储筛选条件*/
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
}
}
this
.
getDict
()
this
.
getList
()
}
,
...
...
src/views/sample/basicInformation/index.vue
View file @
fa925fdb
...
...
@@ -188,7 +188,23 @@ export default {
basicinfoMationList
:
[]
}
}
,
/** 路由离开前存储筛选条件*/
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
}
}
this
.
getList
()
}
,
methods
:
{
...
...
src/views/sample/correctionLibrary/index.vue
View file @
fa925fdb
...
...
@@ -170,7 +170,23 @@ export default {
basicinfoMationList
:
[]
}
}
,
/** 路由离开前存储筛选条件*/
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
}
}
this
.
getList
()
}
,
methods
:
{
...
...
src/views/sample/errorRecord/index.vue
View file @
fa925fdb
...
...
@@ -317,6 +317,13 @@ export default {
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
}
this
.
dateRange
[
0
]
=
this
.
queryParams
.
beginTime
this
.
dateRange
[
1
]
=
this
.
queryParams
.
endTime
}
this
.
getList
()
},
// 监听回车
...
...
src/views/sample/inventoryRecord/index.vue
View file @
fa925fdb
...
...
@@ -350,6 +350,13 @@ export default {
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
}
this
.
dateRange
[
0
]
=
this
.
queryParams
.
beginTime
this
.
dateRange
[
1
]
=
this
.
queryParams
.
endTime
}
this
.
getList
()
},
// 监听回车
...
...
src/views/sample/sampleType/index.vue
View file @
fa925fdb
...
...
@@ -199,7 +199,23 @@ export default {
basicinfoMationList
:
[]
}
}
,
/** 路由离开前存储筛选条件*/
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
}
}
this
.
getList
()
}
,
methods
:
{
...
...
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