将楼层支持 字母

This commit is contained in:
java110 2022-04-25 19:02:21 +08:00
parent ce0fbc63ad
commit e3339972ed
4 changed files with 17 additions and 27 deletions

View File

@ -66,16 +66,10 @@
},
],
'addRoomViewInfo.layer': [{
limit: "required",
param: "",
errInfo: "房屋楼层不能为空"
},
{
limit: "num",
param: "",
errInfo: "房屋楼层高度必须为数字"
},
],
limit: "required",
param: "",
errInfo: "房屋楼层不能为空"
}],
'addRoomViewInfo.apartment': [{
limit: "required",
param: "",

View File

@ -2,18 +2,20 @@
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel"><vc:i18n name="请确认您的操作" namespace="deleteFloor"></vc:i18n>!</h5>
<h5 class="modal-title" id="exampleModalLabel"><span><vc:i18n name="请确认您的操作" namespace="deleteFloor"></vc:i18n></span>!</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<tr align="center"><th><vc:i18n name="确认是否删除" namespace="deleteFloor"></vc:i18n>!</th></tr>
<tr align="center">
<th><span><vc:i18n name="确认是否删除" namespace="deleteFloor"></vc:i18n></span>!</th>
</tr>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal" ><vc:i18n name="点错了" namespace="deleteFloor"></vc:i18n></button>
<button type="button" class="btn btn-primary" v-on:click="deleteFloor()"><vc:i18n name="确认删除" namespace="deleteFloor"></vc:i18n></button>
<button type="button" class="btn btn-secondary" data-dismiss="modal"><span><vc:i18n name="点错了" namespace="deleteFloor"></vc:i18n></span></button>
<button type="button" class="btn btn-primary" v-on:click="deleteFloor()"><span><vc:i18n name="确认删除" namespace="deleteFloor"></vc:i18n></span></button>
</div>
</div>
</div>
</div>
</div>

View File

@ -19,7 +19,7 @@
</div>
<div class="form-group row">
<label class="col-sm-2 col-form-label"><vc:i18n name="房屋楼层" namespace="editRoom"></vc:i18n></label>
<div class="col-sm-10"><input v-model="editRoomInfo.layer" type="number" :placeholder="vc.i18n('必填,请填写房屋楼层','editRoom')" class="form-control"></div>
<div class="col-sm-10"><input v-model="editRoomInfo.layer" type="text" :placeholder="vc.i18n('必填,请填写房屋楼层','editRoom')" class="form-control"></div>
</div>
<div class="form-group row">
<label class="col-sm-2 col-form-label"><vc:i18n name="房屋单元" namespace="editRoom"></vc:i18n></label>
@ -148,4 +148,4 @@
</div>
</div>
</div>
</div>
</div>

View File

@ -145,16 +145,10 @@
},
],
'editRoomInfo.layer': [{
limit: "required",
param: "",
errInfo: "房屋楼层高度不能为空"
},
{
limit: "num",
param: "",
errInfo: "房屋楼层高度必须为数字"
}
],
limit: "required",
param: "",
errInfo: "房屋楼层高度不能为空"
}],
'editRoomInfo.state': [{
limit: "required",
param: "",