Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
agcs2.0-web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
liang
agcs2.0-web
Commits
f9bca93c
Commit
f9bca93c
authored
Mar 09, 2023
by
miaojiale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改每个表单提交数据
parent
26e91946
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
FormTab.vue
src/views/screening/components/FormTab.vue
+10
-2
No files found.
src/views/screening/components/FormTab.vue
View file @
f9bca93c
...
@@ -179,7 +179,11 @@ export default {
...
@@ -179,7 +179,11 @@ export default {
},
},
},
},
created
()
{
created
()
{
if
(
sessionStorage
.
getItem
(
"
formEdit
"
))
{
if
(
this
.
formType
==
"
2
"
&&
sessionStorage
.
getItem
(
"
formEdit
"
)
&&
this
.
activeName
==
"
index0
"
)
{
let
data
=
JSON
.
parse
(
sessionStorage
.
getItem
(
"
formEdit
"
))
let
data
=
JSON
.
parse
(
sessionStorage
.
getItem
(
"
formEdit
"
))
for
(
const
key
in
data
)
{
for
(
const
key
in
data
)
{
if
(
typeof
data
[
key
]
==
"
number
"
)
{
if
(
typeof
data
[
key
]
==
"
number
"
)
{
...
@@ -188,7 +192,7 @@ export default {
...
@@ -188,7 +192,7 @@ export default {
}
}
this
.
formData
.
formEdit
=
data
this
.
formData
.
formEdit
=
data
}
}
this
.
initForm
()
this
.
initForm
()
//! 随防筛查通用的设置form
if
(
this
.
getAll
)
{
if
(
this
.
getAll
)
{
// 监听patientId 获取页面所有数据
// 监听patientId 获取页面所有数据
this
.
$watch
(
this
.
$watch
(
...
@@ -208,6 +212,10 @@ export default {
...
@@ -208,6 +212,10 @@ export default {
},
},
{
immediate
:
true
}
{
immediate
:
true
}
)
)
}
else
{
this
.
$nextTick
(()
=>
{
this
.
$refs
.
form
&&
this
.
$refs
.
form
.
resetForm
()
})
}
}
}
}
},
},
...
...
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