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', backgroundSize: 'cover',
backgroundRepeat: 'no-repeat', backgroundRepeat: 'no-repeat',
backgroundPosition: 'center', backgroundPosition: 'center',
overflowY: 'auto',
overflowX: 'hidden',
height: 'calc(100vh - 100px)' height: 'calc(100vh - 100px)'
}" }"
mode="vertical" 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" <el-dialog :title="$t('page.business.study.studyFormPre.shjj')" :visible.sync="openReject" width="500px"
append-to-body :close-on-click-modal="false"> 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> <div class="sbzdtcma"> <input type="text"> <input type="password" show-password> </div>
<el-row> <el-row>
<el-col :span="24"> <el-col :span="24">
@ -184,18 +184,25 @@ export default {
this.$emit('close') this.$emit('close')
this.open = false this.open = false
}, },
reset() {
this.form = {
resetApprove() {
this.formApprove = {
id: null, id: null,
studyId: null,
qmyy: null, qmyy: null,
remark: null, remark: null,
qmrmm: 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) { show(row) {
this.reset()
this.$modal.loading() this.$modal.loading()
studyFormPre_info({ id: row.id }).then(response => { studyFormPre_info({ id: row.id }).then(response => {
this.form = response.data this.form = response.data
@ -207,6 +214,7 @@ export default {
}) })
}, },
showApprove() { showApprove() {
this.resetApprove()
this.formApprove.id = this.form.id this.formApprove.id = this.form.id
this.openApprove = true this.openApprove = true
}, },
@ -226,6 +234,7 @@ export default {
}) })
}, },
showReject() { showReject() {
this.resetReject()
this.formReject.id = this.form.id this.formReject.id = this.form.id
this.openReject = true this.openReject = true
}, },

Loading…
Cancel
Save