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
3dfa2583
Commit
3dfa2583
authored
Feb 06, 2023
by
miaojiale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. 修改切换筛查提示图片
2. 修改临时保存按钮位置 3. 去除接口所传的formRecordId
parent
c6ac0b41
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
56 additions
and
46 deletions
+56
-46
index.vue
src/components/FormComponents/CustomForm/index.vue
+35
-33
index.vue
src/layouts/index.vue
+6
-0
ConfigForms.vue
src/views/screening/components/ConfigForms.vue
+12
-10
FormTab.vue
src/views/screening/components/FormTab.vue
+3
-3
No files found.
src/components/FormComponents/CustomForm/index.vue
View file @
3dfa2583
...
...
@@ -271,44 +271,45 @@ export default {
},
// 临时保存
temporarySave
()
{
//? 只传数据
this
.
$refs
.
form
.
validate
((
valid
)
=>
{
if
(
valid
)
{
const
data
=
{}
const
form
=
this
.
deepClone
(
this
.
form
)
Object
.
keys
(
form
).
forEach
((
k
)
=>
{
if
(
form
[
k
]
===
undefined
)
{
data
[
k
]
=
""
return
false
}
if
(
k
===
"
YZZKJC
"
)
{
// 牙周表格
data
[
k
]
=
JSON
.
stringify
(
form
[
k
])
}
else
if
(
Array
.
isArray
(
form
[
k
])
&&
form
[
k
][
0
]
&&
isObject
(
form
[
k
][
0
])
)
{
// 子表单 去除前端添加的显隐辅助数据($_)和 删除按钮辅助数据(showDelBtn)
data
[
k
]
=
form
[
k
].
map
((
item
)
=>
{
for
(
let
key
in
item
)
{
if
([
"
$_keyField
"
,
"
$_hidden
"
,
"
showDelBtn
"
].
includes
(
key
))
delete
item
[
key
]
}
return
item
})
}
else
{
data
[
k
]
=
form
[
k
]
//? 只传数据 获取当前步数,如果个人信息已经提交可以临时保存
// this.$refs.form.validate((valid) => {
// if (valid) {
const
data
=
{}
const
form
=
this
.
deepClone
(
this
.
form
)
Object
.
keys
(
form
).
forEach
((
k
)
=>
{
if
(
form
[
k
]
===
undefined
)
{
data
[
k
]
=
""
return
false
}
if
(
k
===
"
YZZKJC
"
)
{
// 牙周表格
data
[
k
]
=
JSON
.
stringify
(
form
[
k
])
}
else
if
(
Array
.
isArray
(
form
[
k
])
&&
form
[
k
][
0
]
&&
isObject
(
form
[
k
][
0
])
)
{
// 子表单 去除前端添加的显隐辅助数据($_)和 删除按钮辅助数据(showDelBtn)
data
[
k
]
=
form
[
k
].
map
((
item
)
=>
{
for
(
let
key
in
item
)
{
if
([
"
$_keyField
"
,
"
$_hidden
"
,
"
showDelBtn
"
].
includes
(
key
))
delete
item
[
key
]
}
})
this
.
$emit
(
"
temporaryConfirm
"
,
data
,
()
=>
{
// 完成之后的回调
this
.
loading
=
false
return
item
})
}
else
{
this
.
loading
=
false
data
[
k
]
=
form
[
k
]
}
})
this
.
$emit
(
"
temporaryConfirm
"
,
data
,
()
=>
{
// 完成之后的回调
this
.
loading
=
false
})
// } else {
// this.loading = false
// }
// })
},
handleConfirm
()
{
this
.
loading
=
true
...
...
@@ -461,6 +462,7 @@ export default {
}
.form-footer
{
margin-top
:
20px
;
margin-bottom
:
20px
;
text-align
:
center
;
}
}
...
...
src/layouts/index.vue
View file @
3dfa2583
...
...
@@ -569,12 +569,18 @@ export default {
}
.right
{
flex
:
1
;
.r_col_item
:nth-child
(
4
)
{
img
{
align-self
:
flex-start
;
}
}
.r_col_item
{
min-height
:
72px
;
display
:
flex
;
justify-content
:
flex-start
;
align-items
:
center
;
padding
:
20px
0
20px
20px
;
img
{
width
:
26px
;
height
:
26px
;
...
...
src/views/screening/components/ConfigForms.vue
View file @
3dfa2583
<
template
>
<div
id=
"publicContent"
:style=
"
{
padding:
$route.path == '/screening/draft'
? ' 10px 24px 60px;'
: ' 32px 24px 60px;',
}"
:class="activeName == 'index0'
&&
formClass ? formClass : ''"
:class=
"[
activeName == 'index0' && formClass ? formClass : '',
$route.path === '/screening/draft' ? 'p_padding' : '',
]"
>
<div
v-if=
"formTabs && formTabs.length > 0"
>
<div
v-if=
"formTabs && formTabs.length > 0"
style=
"position: relative"
>
<el-button
v-if=
"!disabled"
class=
"draftButton"
...
...
@@ -31,6 +28,7 @@
:key=
"form.id"
:label=
"form.label"
:name=
"'index' + index"
disabled
>
<!-- disabled -->
<transition
mode=
"out-in"
name=
"fade-transform"
>
...
...
@@ -148,7 +146,7 @@ export default {
watch
:
{
activeName
(
val
)
{
if
(
!
this
.
disabled
)
{
if
(
!
[
"
index0
"
].
includes
(
val
))
{
if
(
!
[
"
index0
"
,
"
index1
"
].
includes
(
val
))
{
this
.
infoCompelete
=
true
}
else
{
this
.
infoCompelete
=
false
...
...
@@ -277,9 +275,10 @@ export default {
<
style
lang=
"scss"
scoped
>
#publicContent
{
position
:
relative
;
padding
:
32px
24px
32px
;
.draftButton
{
position
:
absolute
;
top
:
46
px
;
top
:
0
px
;
right
:
40px
;
z-index
:
999
;
border-radius
:
4px
;
...
...
@@ -293,6 +292,9 @@ export default {
}
}
}
#publicContent
.p_padding
{
padding
:
10px
24px
32px
;
}
::v-deep
.el-dialog__body
{
.title
{
font-size
:
22px
;
...
...
src/views/screening/components/FormTab.vue
View file @
3dfa2583
...
...
@@ -180,7 +180,7 @@ export default {
data
,
formId
:
this
.
form
.
formId
,
// 每个大表单的id
patientId
:
this
.
patientId
||
this
.
patientStandbyId
,
formRecordId
:
this
.
formData
.
formRecordId
||
this
.
newformRecordId
,
// 是否为编辑的表单id
//
formRecordId: this.formData.formRecordId || this.newformRecordId, // 是否为编辑的表单id
statusMap
:
{
patient_from
:
this
.
$store
.
getters
[
"
table/selectedIndex
"
],
is_draft
:
1
,
//是否为草稿
...
...
@@ -204,7 +204,7 @@ export default {
data
,
formId
:
this
.
form
.
formId
,
// 每个大表单的id
patientId
:
this
.
patientId
||
this
.
patientStandbyId
,
formRecordId
:
this
.
formData
.
formRecordId
||
this
.
newformRecordId
,
// 是否为编辑的表单id
//
formRecordId: this.formData.formRecordId || this.newformRecordId, // 是否为编辑的表单id
statusMap
:
{
patient_from
:
this
.
$store
.
getters
[
"
table/selectedIndex
"
],
is_draft
:
0
,
//是否为草稿
...
...
@@ -421,7 +421,7 @@ export default {
z-index
:
9
;
}
.header
{
height
:
36
px
;
height
:
5
px
;
box-shadow
:
0
5px
4px
rgb
(
0
21
41
/
8%
);
padding-right
:
20px
;
position
:
relative
;
...
...
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