Browse Source

必填修改

shibei_master
jiangyy 4 years ago
parent
commit
f4e7fdedfe
  1. 44
      src/views/modules/base/community/buildForm.vue
  2. 6
      src/views/modules/base/community/communityForm.vue
  3. 17
      src/views/modules/base/community/roomForm.vue

44
src/views/modules/base/community/buildForm.vue

@ -58,7 +58,7 @@
label-width="150px"> label-width="150px">
<el-input-number class="item_width_1" <el-input-number class="item_width_1"
v-model="dataForm.totalFloorNum" v-model="dataForm.totalFloorNum"
:min="1" :min="0"
label="层数"></el-input-number> label="层数"></el-input-number>
</el-form-item> </el-form-item>
<el-form-item label="户数" <el-form-item label="户数"
@ -67,15 +67,16 @@
label-width="150px"> label-width="150px">
<el-input-number class="item_width_1" <el-input-number class="item_width_1"
v-model="dataForm.totalHouseNum" v-model="dataForm.totalHouseNum"
:min="1" :min="0"
label="户数"></el-input-number> label="户数"></el-input-number>
</el-form-item>
<div style="width:500px">
<el-form-item label="位置坐标" <el-form-item label="位置坐标"
prop="longitude" prop="longitude"
label-width="150px" label-width="150px"
style="display: block"> style="display: block">
</el-form-item>
<div style="width:500px">
<el-input class="item_width_4" <el-input class="item_width_4"
maxlength="50" maxlength="50"
placeholder="请输入关键字" placeholder="请输入关键字"
@ -102,6 +103,7 @@
</el-input> </el-input>
</div> </div>
</div> </div>
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -139,7 +141,7 @@ export default {
neighborHoodId: '',//id neighborHoodId: '',//id
buildingName: '',// buildingName: '',//
// sort: 0,// // sort: 0,//
totalUnitNum: 0,// totalUnitNum: 1,//
totalFloorNum: 0,// totalFloorNum: 0,//
totalHouseNum: 0,// totalHouseNum: 0,//
type: '',// type: '',//
@ -317,7 +319,7 @@ export default {
neighborHoodId: '',//id neighborHoodId: '',//id
buildingName: '',// buildingName: '',//
// sort: 0,// // sort: 0,//
totalUnitNum: 0,// totalUnitNum: 1,//
totalFloorNum: 0,// totalFloorNum: 0,//
totalHouseNum: 0,// totalHouseNum: 0,//
type: '',// type: '',//
@ -349,8 +351,8 @@ export default {
{ required: true, message: '楼栋名称不能为空', trigger: 'blur' }, { required: true, message: '楼栋名称不能为空', trigger: 'blur' },
{ {
min: 1, min: 1,
max: 50, max: 10,
message: '小区名称长度在 1 到 50个字符', message: '小区名称长度在 1 到 10个字符',
trigger: 'blur' trigger: 'blur'
} }
], ],
@ -360,15 +362,15 @@ export default {
totalUnitNum: [ totalUnitNum: [
{ required: true, message: '单元数不能为空', trigger: 'blur' } { required: true, message: '单元数不能为空', trigger: 'blur' }
], ],
totalFloorNum: [ // totalFloorNum: [
{ required: true, message: '层数不能为空', trigger: 'blur' } // { required: true, message: '', trigger: 'blur' }
], // ],
totalHouseNum: [ // totalHouseNum: [
{ required: true, message: '户数不能为空', trigger: 'blur' } // { required: true, message: '', trigger: 'blur' }
], // ],
longitude: [ // longitude: [
{ required: true, message: '坐标不能为空', trigger: 'blur' } // { required: true, message: '', trigger: 'blur' }
], // ],
} }
}, },
@ -376,7 +378,7 @@ export default {
props: {} props: {}
} }
</script> </script>
<style scoped> <style lang="scss" scoped>
.item_width_1 { .item_width_1 {
width: 500px; width: 500px;
} }
@ -410,3 +412,9 @@ export default {
margin-top: 30px; margin-top: 30px;
} }
</style> </style>
<style>
.el-dialog__body {
padding: 0 10px 20px !important;
}
</style>

6
src/views/modules/base/community/communityForm.vue

@ -535,3 +535,9 @@ export default {
margin-top: 30px; margin-top: 30px;
} }
</style> </style>
<style>
.el-dialog__body {
padding: 0 10px 20px !important;
}
</style>

17
src/views/modules/base/community/roomForm.vue

@ -74,8 +74,8 @@
style="display: block"> style="display: block">
<el-radio-group v-model="rentFlag"> <el-radio-group v-model="rentFlag">
<el-radio :label="0"></el-radio>
<el-radio :label="1"></el-radio> <el-radio :label="1"></el-radio>
<el-radio :label="0"></el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
@ -137,7 +137,7 @@ export default {
houseId: '', //ID houseId: '', //ID
houseType: '1', houseType: '1',
purpose: '1', purpose: '1',
rentFlag: 0, rentFlag: 1,
dataForm: { dataForm: {
neighborHoodId: '', // ID neighborHoodId: '', // ID
buildingId: '',//ID buildingId: '',//ID
@ -145,7 +145,7 @@ export default {
doorName: '',// doorName: '',//
houseType: '',// houseType: '',//
purpose: '',// purpose: '',//
rentFlag: 0,//10 rentFlag: 1,//10
ownerPhone: '', // ownerPhone: '', //
ownerName: '', // ownerName: '', //
ownerIdCard: '' // ownerIdCard: '' //
@ -282,7 +282,7 @@ export default {
this.houseId = '' //ID this.houseId = '' //ID
this.houseType = '1' this.houseType = '1'
this.purpose = '1' this.purpose = '1'
this.rentFlag = 0 this.rentFlag = 1
this.dataForm = { this.dataForm = {
neighborHoodId: '', // ID neighborHoodId: '', // ID
buildingId: '',//ID buildingId: '',//ID
@ -290,7 +290,7 @@ export default {
doorName: '',// doorName: '',//
houseType: '1',// houseType: '1',//
purpose: '1',// purpose: '1',//
rentFlag: 0,//10 rentFlag: 1,//10
ownerPhone: '', // ownerPhone: '', //
ownerName: '', // ownerName: '', //
ownerIdCard: '' // ownerIdCard: '' //
@ -347,7 +347,7 @@ export default {
props: {} props: {}
} }
</script> </script>
<style scoped> <style lang="scss" scoped>
.item_width_1 { .item_width_1 {
width: 500px; width: 500px;
} }
@ -374,3 +374,8 @@ export default {
margin-top: 30px; margin-top: 30px;
} }
</style> </style>
<style>
.el-dialog__body {
padding: 0 10px 20px !important;
}
</style>
Loading…
Cancel
Save