Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
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
8e88d185
Commit
8e88d185
authored
Jan 09, 2023
by
miaojiale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改第四部风险评估时数据回显问题
parent
5eee2d75
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
47 deletions
+12
-47
ConfigForms.vue
src/views/screening/components/ConfigForms.vue
+2
-14
FormTab.vue
src/views/screening/components/FormTab.vue
+10
-33
No files found.
src/views/screening/components/ConfigForms.vue
View file @
8e88d185
...
...
@@ -149,7 +149,7 @@ export default {
watch
:
{
activeName
(
val
)
{
if
(
val
==
"
index3
"
)
{
//
setTimeout(() => {
//
第四步风险评估
this
.
$nextTick
(()
=>
{
//!
this
.
formInitial
=
{
...
...
@@ -158,21 +158,9 @@ export default {
screening_advise
:
"
立刻住院
"
,
}
})
// }, 300)
}
else
{
this
.
formInitial
=
{}
this
.
formInitial
=
false
}
// if(val=="index0" && this.formClass){
// this.showIndex = false
// // this.survivalFlag = true
// console.log(1)
// }
// else{
// this.showIndex = true
// // this.survivalFlag = false
// console.log(2)
// }
},
},
computed
:
{
...
...
src/views/screening/components/FormTab.vue
View file @
8e88d185
...
...
@@ -92,6 +92,7 @@ export default {
getAll
:
Boolean
,
// 获取页面所有数据
survivalFlag
:
Boolean
,
//存活的显示
formEdit
:
Object
,
formInitial
:
{},
},
provide
()
{
return
{
...
...
@@ -361,39 +362,6 @@ export default {
return
this
.
loading
||
this
.
formloading
},
},
watch
:
{
formInitial
:
{
handler
(
v
)
{
if
(
v
)
{
this
.
$set
(
this
.
formData
,
"
formEdit
"
,
{
...
v
})
console
.
log
(
this
.
formData
.
formEdit
)
}
},
deep
:
true
,
},
},
created
()
{
this
.
initForm
()
if
(
this
.
getAll
)
{
// 监听patientId 获取页面所有数据
this
.
$watch
(
"
patientId
"
,
()
=>
{
this
.
initData
()
},
{
immediate
:
true
}
)
}
else
{
// 监听form.silent 获取当前tab页数据
this
.
$watch
(
"
form.silent
"
,
()
=>
{
this
.
initData
()
},
{
immediate
:
true
}
)
}
},
methods
:
{
initData
()
{
this
.
formData
.
formRecordId
=
null
...
...
@@ -559,6 +527,15 @@ export default {
formEdit
(
val
)
{
console
.
log
(
"
回显3
"
,
val
)
},
formInitial
:
{
handler
(
v
)
{
if
(
v
)
{
this
.
$set
(
this
.
formData
,
"
formEdit
"
,
{
...
v
})
console
.
log
(
this
.
formData
.
formEdit
)
}
},
deep
:
true
,
},
},
created
()
{
if
(
this
.
$route
.
query
.
formEdit
)
{
...
...
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