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
a65fd2a1
Commit
a65fd2a1
authored
Dec 07, 2022
by
刘予佳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
只读改造
parent
04610b16
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
9 deletions
+14
-9
FormItemSelf2.vue
src/components/FormComponents/ReadForm/FormItemSelf2.vue
+3
-3
index.vue
src/components/FormComponents/ReadForm/index.vue
+6
-5
followaudit.vue
src/views/followupentry/followaudit.vue
+5
-1
No files found.
src/components/FormComponents/ReadForm/FormItemSelf2.vue
View file @
a65fd2a1
...
...
@@ -18,9 +18,9 @@
"
:label-width="item.labelWidth ? `${item.labelWidth}px` : ''"
:prop="item.prop"
:rules="item.rules"
:class="isEmpty"
>
<!-- :rules="item.rules" -->
<div
class=
"flex"
>
<div>
<!--
<el-upload-self
...
...
@@ -304,10 +304,10 @@
></el-date-picker>-->
</template>
</div>
<span
<
!-- <
span
v-if="item.importantField && !vwForm.detail"
class="important_field"
>
{{ item.importantFieldDesc || "*" }}
</span>
>{{ item.importantFieldDesc || "*" }}</span>
-->
</div>
</el-form-item>
</el-col>
...
...
src/components/FormComponents/ReadForm/index.vue
View file @
a65fd2a1
...
...
@@ -155,7 +155,7 @@ export default {
},
},
watch
:
{
formEdit
:
{
formEdit
:{
handler
()
{
this
.
initfields
(
this
.
formEdit
)
},
...
...
@@ -307,20 +307,21 @@ export default {
this
.
loading
=
false
this
.
$nextTick
(()
=>
{
// 子组件数据初始化完成后
setTimeout
(()
=>
{
//
setTimeout(() => {
this
.
initfields
(
this
.
formEdit
)
},
0
)
//
}, 0)
if
(
this
.
$refs
.
form
&&
this
.
$refs
.
form
.
clearValidate
)
{
this
.
$refs
.
form
.
clearValidate
()
}
this
.
$forceUpdate
();
})
},
// 绑定部分值(此时表单已渲染)
initfields
(
obj
)
{
for
(
let
k
in
obj
)
{
if
(
this
.
form
.
hasOwnProperty
(
k
))
{
//
if (this.form.hasOwnProperty(k)) {
this
.
form
[
k
]
=
obj
[
k
]
}
//
}
}
},
},
...
...
src/views/followupentry/followaudit.vue
View file @
a65fd2a1
...
...
@@ -2,7 +2,7 @@
<!-- 随访调查录入 -->
<div>
<!--
<ConfigForms
form-type=
"2"
formClass=
"follow-form"
></ConfigForms>
-->
<read-form
ref=
"form"
:options=
"followupForm"
></read-form>
<read-form
ref=
"form"
:options=
"followupForm"
:formEdit=
"formEdit"
></read-form>
</div>
</
template
>
...
...
@@ -228,6 +228,10 @@ export default {
}]
},
]
},
formEdit
:{
name
:
"
djksh
"
,
contact_phone
:
"
12345678
"
}
}
},
...
...
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