Browse Source

fix:[填报表单]优化

luojie
15881625488@163.com 4 weeks ago
parent
commit
a51e058558
3 changed files with 19 additions and 12 deletions
  1. +9
    -8
      src/views/business/study/comp/tbbd/Bj.vue
  2. +9
    -4
      src/views/business/study/comp/tbbd/Jq.vue
  3. +1
    -0
      src/views/business/study/comp/tbbdList.vue

+ 9
- 8
src/views/business/study/comp/tbbd/Bj.vue View File

@ -63,7 +63,7 @@
<el-row> <el-row>
<el-col :span="24"> <el-col :span="24">
<el-form-item :label="$t('page.business.study.studyFormFill.sfbl')" prop="sfbl"> <el-form-item :label="$t('page.business.study.studyFormFill.sfbl')" prop="sfbl">
<el-select v-model="form.sfbl" :placeholder="$t('form.placeholderSelect')" style="width: 100%;">
<el-select v-model="form.sfbl" :placeholder="$t('form.placeholderSelect')" style="width: 100%;" @change="validForm">
<el-option :label="$t('page.business.study.studyFormFill.yes')" value="是" /> <el-option :label="$t('page.business.study.studyFormFill.yes')" value="是" />
<el-option :label="$t('page.business.study.studyFormFill.no')" value="否" /> <el-option :label="$t('page.business.study.studyFormFill.no')" value="否" />
</el-select> </el-select>
@ -563,6 +563,11 @@ export default {
this.getCcwz() this.getCcwz()
}, },
methods: { methods: {
validForm() {
this.$refs["form"].validate(valid => {
if (valid) { }
})
},
getCcwz() { getCcwz() {
listData({ listData({
pageNum: 1, pageNum: 1,
@ -889,13 +894,9 @@ export default {
cancelSave() { cancelSave() {
try { try {
// 1510 // 1510
if (this.form.studyType == 1) {
EventBus.$emit('onRefreshStudyTbbdList', {});
} else if (this.form.studyType == 5) {
EventBus.$emit('onRefreshNonTrialTbbdList', {});
} else if (this.form.studyType == 10) {
EventBus.$emit('onRefreshDrugTbbdList', {});
}
EventBus.$emit('onRefreshStudyTbbdList', {});
EventBus.$emit('onRefreshNonTrialTbbdList', {});
EventBus.$emit('onRefreshDrugTbbdList', {});
let key = caesarDecipher(this.$route.params.key) let key = caesarDecipher(this.$route.params.key)
let data = JSON.parse(key) let data = JSON.parse(key)
if (data && data != undefined && data != '') { if (data && data != undefined && data != '') {

+ 9
- 4
src/views/business/study/comp/tbbd/Jq.vue View File

@ -3,11 +3,11 @@
<el-dialog :title="$t('page.business.study.studyFormFill.jiaqian')" :visible.sync="open" width="500px" <el-dialog :title="$t('page.business.study.studyFormFill.jiaqian')" :visible.sync="open" width="500px"
append-to-body :close-on-click-modal="false"> append-to-body :close-on-click-modal="false">
<el-form ref="form" :model="form" :rules="rules" label-width="120px" v-if="open"> <el-form ref="form" :model="form" :rules="rules" label-width="120px" v-if="open">
<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">
<el-form-item :label="$t('form.qmyy')" prop="qmyy"> <el-form-item :label="$t('form.qmyy')" prop="qmyy">
<el-select v-model="form.qmyy" :placeholder="$t('form.placeholderSelect')" style="width: 100%;">
<el-select v-model="form.qmyy" :placeholder="$t('form.placeholderSelect')" style="width: 100%;" @change="validForm">
<el-option :label="$t('page.business.study.studyFormFill.ksxcfh')" value="开始现场复核" /> <el-option :label="$t('page.business.study.studyFormFill.ksxcfh')" value="开始现场复核" />
<el-option :label="$t('page.business.study.studyFormFill.jsxcfh')" value="结束现场复核" /> <el-option :label="$t('page.business.study.studyFormFill.jsxcfh')" value="结束现场复核" />
<el-option :label="$t('page.business.study.studyFormFill.smxz')" value="申明协作" /> <el-option :label="$t('page.business.study.studyFormFill.smxz')" value="申明协作" />
@ -36,7 +36,7 @@
<el-row> <el-row>
<el-col :span="24"> <el-col :span="24">
<el-form-item :label="$t('form.password')" prop="qmrmm"> <el-form-item :label="$t('form.password')" prop="qmrmm">
<el-input type="password" show-password v-model="form.qmrmm" maxlength="20"
<el-input type="password" show-password v-model="form.qmrmm" maxlength="20"
:placeholder="$t('form.placeholderInput')" /> :placeholder="$t('form.placeholderInput')" />
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -85,7 +85,7 @@ export default {
}, },
computed: { computed: {
...mapGetters([ ...mapGetters([
'nickName','name'
'nickName', 'name'
]), ]),
}, },
created() { created() {
@ -108,6 +108,11 @@ export default {
this.form.id = row.id this.form.id = row.id
this.open = true this.open = true
}, },
validForm() {
this.$refs["form"].validate(valid => {
if (valid) { }
})
},
save() { save() {
this.$refs["form"].validate(valid => { this.$refs["form"].validate(valid => {
if (valid) { if (valid) {

+ 1
- 0
src/views/business/study/comp/tbbdList.vue View File

@ -228,6 +228,7 @@ export default {
}, },
mounted() { mounted() {
EventBus.$on('onRefreshStudyTbbdList', (data) => { EventBus.$on('onRefreshStudyTbbdList', (data) => {
debugger
this.getList() this.getList()
}); });
}, },

Loading…
Cancel
Save