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
c73620c6
Commit
c73620c6
authored
Aug 07, 2023
by
CenXinYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增添设备入库离开路路由的信息存储
Signed-off-by:
CenXinYi
<
2810162984@qq.com
>
parent
81dce88f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
4 deletions
+21
-4
application.vue
src/views/equipment/application.vue
+3
-3
basicInfo.vue
src/views/equipment/basicInfo.vue
+1
-1
income.vue
src/views/equipment/income.vue
+17
-0
No files found.
src/views/equipment/application.vue
View file @
c73620c6
...
...
@@ -62,9 +62,9 @@
</el-form-item>
</el-col>
</el-row>
<!--
<div
class=
"button"
>
-->
<!--
<el-button
type=
"primary"
@
click=
"submitForm"
>
提交
</el-button>
-->
<!--
</div>
-->
<!--
<div
class=
"button"
>
-->
<!--
<el-button
type=
"primary"
@
click=
"submitForm"
>
提交
</el-button>
-->
<!--
</div>
-->
</el-form>
<el-form
label-width=
"80px"
>
<el-row
style=
"padding-left: 8.7%; padding-top: 1%"
>
...
...
src/views/equipment/basicInfo.vue
View file @
c73620c6
...
...
@@ -168,7 +168,7 @@
/>
</el-form-item>
<el-form-item
label=
"prank"
prop=
"prank"
>
<el-input
ref=
"input3"
v-model
.
trim=
"form.prank"
:maxlength=
"9"
placeholder=
"请输入prank"
@
keyup
.
enter
.
native=
"handelTab(3,$event)"
/>
<el-input
ref=
"input3"
v-model
.
trim=
"form.prank"
:maxlength=
"9"
placeholder=
"请输入prank"
@
keyup
.
enter
.
native=
"handelTab(3,$event)"
/>
</el-form-item>
<el-form-item
label=
"pissb"
prop=
"pissb"
>
<el-select
...
...
src/views/equipment/income.vue
View file @
c73620c6
...
...
@@ -93,6 +93,9 @@ export default {
return
{
index
:
0
,
flag
:
false
,
// TODO: 判断页面路由跳转前是否有数据存在
existForm
:
false
,
existTableData
:
false
,
form
:
{
pn
:
''
,
lot
:
''
,
...
...
@@ -130,7 +133,21 @@ export default {
this
.
$refs
.
input1
.
$refs
.
input
.
focus
()
})
},
// 路由跳转,是存储页面的值
beforeRouteLeave
(
to
,
from
,
next
)
{
localStorage
.
setItem
(
'form'
,
JSON
.
stringify
(
this
.
form
))
localStorage
.
setItem
(
'tableData'
,
JSON
.
stringify
(
this
.
tableData
))
next
()
},
created
()
{
localStorage
.
getItem
(
'form'
)
?
this
.
existForm
=
true
:
this
.
existForm
=
false
localStorage
.
getItem
(
'tableData'
)
?
this
.
existTableData
=
true
:
this
.
existTableData
=
false
if
(
this
.
existForm
)
{
this
.
form
=
JSON
.
parse
(
localStorage
.
getItem
(
'form'
))
}
if
(
this
.
existTableData
)
{
this
.
tableData
=
JSON
.
parse
(
localStorage
.
getItem
(
'tableData'
))
}
this
.
init
()
},
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