Browse Source

fix:[预填表单bug

luojie
15881625488@163.com 4 weeks ago
parent
commit
f8612855ff
2 changed files with 17 additions and 6 deletions
  1. +2
    -0
      src/layout/components/Sidebar/index.vue
  2. +15
    -6
      src/views/business/study/comp/ytbd/Sh.vue

+ 2
- 0
src/layout/components/Sidebar/index.vue View File

@ -14,6 +14,8 @@
backgroundSize: 'cover',
backgroundRepeat: 'no-repeat',
backgroundPosition: 'center',
overflowY: 'auto',
overflowX: 'hidden',
height: 'calc(100vh - 100px)'
}"
mode="vertical"

+ 15
- 6
src/views/business/study/comp/ytbd/Sh.vue View File

@ -67,7 +67,7 @@
<!-- 拒绝 -->
<el-dialog :title="$t('page.business.study.studyFormPre.shjj')" :visible.sync="openReject" width="500px"
append-to-body :close-on-click-modal="false">
<el-form ref="formReject" :model="formReject" :rules="rulesReject" label-width="120px">
<el-form ref="formReject" :model="formReject" :rules="rulesReject" label-width="120px" v-if="openReject">
<div class="sbzdtcma"> <input type="text"> <input type="password" show-password> </div>
<el-row>
<el-col :span="24">
@ -184,18 +184,25 @@ export default {
this.$emit('close')
this.open = false
},
reset() {
this.form = {
resetApprove() {
this.formApprove = {
id: null,
studyId: null,
qmyy: null,
remark: null,
qmrmm: null
}
this.resetForm("form")
this.resetForm("formApprove")
},
resetReject() {
this.formReject = {
id: null,
qmyy: null,
remark: null,
qmrmm: null
}
this.resetForm("formReject")
},
show(row) {
this.reset()
this.$modal.loading()
studyFormPre_info({ id: row.id }).then(response => {
this.form = response.data
@ -207,6 +214,7 @@ export default {
})
},
showApprove() {
this.resetApprove()
this.formApprove.id = this.form.id
this.openApprove = true
},
@ -226,6 +234,7 @@ export default {
})
},
showReject() {
this.resetReject()
this.formReject.id = this.form.id
this.openReject = true
},

Loading…
Cancel
Save