Browse Source

fix:[填报表单]优化

lkf
15881625488@163.com 2 months ago
parent
commit
92cd5f9d58
2 changed files with 21 additions and 15 deletions
  1. +5
    -1
      src/views/business/comps/select/BusinessSelect.vue
  2. +16
    -14
      src/views/business/study/comp/tbbd/Bj.vue

+ 5
- 1
src/views/business/comps/select/BusinessSelect.vue View File

@ -8,7 +8,7 @@
<!-- 处置方式business_czfs -->
<template>
<div>
<el-select style="width:100%" v-model="selected" :placeholder="$t('form.placeholderSelect')" :disabled="readonly" :multiple="multiple" @change="handleChange" :filterable="filterable">
<el-select :style="showMax?'width:100%':''" v-model="selected" :placeholder="$t('form.placeholderSelect')" :disabled="readonly" :multiple="multiple" @change="handleChange" :filterable="filterable">
<el-option v-for="item in list" :key="item.dictCode" :label="item.dictLabel" :value="item.dictLabel" />
</el-select>
</div>
@ -44,6 +44,10 @@ export default {
placeholder: {
type: String,
default: ''
},
showMax: {
type: Boolean,
default: true
}
},
watch: {

+ 16
- 14
src/views/business/study/comp/tbbd/Bj.vue View File

@ -84,7 +84,7 @@
<el-dialog :title="$t('page.business.study.studyFormFill.tjjl')" :visible.sync="openApprove" width="1200px"
append-to-body :close-on-click-modal="false">
<el-form ref="formApprove" :model="formApprove" :rules="rulesApprove" label-width="120px" v-if="openApprove">
<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 v-if="form.sftb == 1">
<el-col :psna="24">
<el-form-item>
@ -166,16 +166,18 @@
<el-col :psna="24">
<el-form-item>
<div>{{ $t('page.business.study.studyFormFill.yltj') }}</div>
<div v-for="(item, index) in resource" :key="'r' + index">
{{ item.bh }}
<el-input type="text" v-model="item.syl" maxlength="50" style="width: 250px;">
<template slot="append">
<div style="width: 70px;">
<BusinessSelect v-model="item.syldw" dictType="business_tjdw">
</BusinessSelect>
</div>
</template>
</el-input>
<div style=" display: flex; flex-wrap: wrap; gap: 16px;">
<div v-for="(item, index) in resource" :key="'r' + index" style=" flex: 0 0 calc(33.333% - 11px);">
{{ item.bh }}
<el-input type="text" v-model="item.syl" maxlength="50" style="width:150px;">
<template slot="append">
<div style="width: 20px;">
<BusinessSelect v-model="item.syldw" :showMax="false" dictType="business_tjdw">
</BusinessSelect>
</div>
</template>
</el-input>
</div>
</div>
</el-form-item>
</el-col>
@ -208,7 +210,7 @@
<el-row>
<el-col :span="24">
<el-form-item :label="$t('form.password')" prop="qmrmm">
<el-input type="password" show-password v-model="formApprove.qmrmm" maxlength="20"
<el-input type="password" show-password v-model="formApprove.qmrmm" maxlength="20"
:placeholder="$t('form.placeholderInput')" />
</el-form-item>
</el-col>
@ -223,7 +225,7 @@
<el-dialog :title="$t('page.business.study.studyFormFill.bcjl')" :visible.sync="openSave" width="600px"
append-to-body :close-on-click-modal="false">
<el-form ref="formSave" :model="formSave" :rules="rulesSave" label-width="120px" v-if="openSave">
<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-col :span="24">
<el-form-item :label="$t('form.qmyy')" prop="qmyy">
@ -252,7 +254,7 @@
<el-row>
<el-col :span="24">
<el-form-item :label="$t('form.password')" prop="qmrmm">
<el-input type="password" show-password v-model="formSave.qmrmm" maxlength="20"
<el-input type="password" show-password v-model="formSave.qmrmm" maxlength="20"
:placeholder="$t('form.placeholderInput')" />
</el-form-item>
</el-col>

Loading…
Cancel
Save