v1.9 优化不能连续添加小区bug

This commit is contained in:
wuxw 2025-09-19 19:16:38 +08:00
parent 0606c3d8a6
commit 6831c15703

View File

@ -2,26 +2,26 @@
<el-dialog :title="$t('addCommunity.title')" :visible.sync="visible" width="40%" @close="clearAddCommunityInfo">
<el-form ref="form" :model="addCommunityInfo" label-width="120px" class="text-left">
<el-form-item :label="$t('addCommunity.name')" prop="name" required>
<el-input v-model="addCommunityInfo.name" :placeholder="$t('addCommunity.namePlaceholder')" />
<el-input v-model="addCommunityInfo.name" :placeholder="$t('addCommunity.name')" />
</el-form-item>
<el-form-item :label="$t('addCommunity.area')" prop="area">
<area-select @selectArea="selectArea" />
<area-select ref="areaSelectRef" @selectArea="selectArea" />
</el-form-item>
<el-form-item :label="$t('addCommunity.address')" prop="tmpAddress" required>
<el-input v-model="addCommunityInfo.tmpAddress" :placeholder="$t('addCommunity.addressPlaceholder')" />
<el-input v-model="addCommunityInfo.tmpAddress" :placeholder="$t('addCommunity.address')" />
</el-form-item>
<el-form-item :label="$t('addCommunity.nearbyLandmarks')" prop="nearbyLandmarks" required>
<el-input v-model="addCommunityInfo.nearbyLandmarks"
:placeholder="$t('addCommunity.nearbyLandmarksPlaceholder')" />
:placeholder="$t('addCommunity.nearbyLandmarks')" />
</el-form-item>
<el-form-item :label="$t('addCommunity.tel')" prop="tel" required>
<el-input v-model="addCommunityInfo.tel" :placeholder="$t('addCommunity.telPlaceholder')" />
<el-input v-model="addCommunityInfo.tel" :placeholder="$t('addCommunity.tel')" />
</el-form-item>
<el-form-item :label="$t('addCommunity.payFeeMonth')" prop="payFeeMonth" required>
<el-input v-model="addCommunityInfo.payFeeMonth" :placeholder="$t('addCommunity.payFeeMonthPlaceholder')" />
<el-input v-model="addCommunityInfo.payFeeMonth" :placeholder="$t('addCommunity.payFeeMonth')" />
</el-form-item>
<el-form-item :label="$t('addCommunity.feePrice')" prop="feePrice" required>
<el-input v-model="addCommunityInfo.feePrice" :placeholder="$t('addCommunity.feePricePlaceholder')" />
<el-input v-model="addCommunityInfo.feePrice" :placeholder="$t('addCommunity.feePrice')" />
</el-form-item>
<el-form-item v-for="(item, index) in addCommunityInfo.attrs" :key="index" :label="item.specName"
:prop="'attrs.' + index + '.value'">
@ -70,6 +70,9 @@ export default {
methods: {
openModal() {
this._loadCommunityAttrSpec()
setTimeout(() => {
this.$refs.areaSelectRef.clearArea()
}, 100)
this.visible = true
},
selectArea(area) {