优化代码

This commit is contained in:
Your Name 2023-02-13 11:32:41 +08:00
parent e17ccc08f0
commit 47a0f835f4
5 changed files with 10 additions and 11 deletions

View File

@ -1,4 +1,4 @@
<div id="addFloorModel" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div id="addFloorModel" class="modal fade" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg"> <div class="modal-dialog modal-lg">
<div class="modal-content"> <div class="modal-content">
<div class="modal-body"> <div class="modal-body">

View File

@ -47,7 +47,7 @@
}, },
{ {
limit: "maxin", limit: "maxin",
param: "2,10", param: "2,64",
errInfo: "楼名称长度必须在2位至10位" errInfo: "楼名称长度必须在2位至10位"
}, },
], ],
@ -58,8 +58,8 @@
}, },
{ {
limit: "maxin", limit: "maxin",
param: "1,12", param: "1,64",
errInfo: "楼编号长度必须在1位至12位" errInfo: "楼编号长度必须在1位至64位"
}, },
], ],
'addFloorInfo.floorArea': [{ 'addFloorInfo.floorArea': [{

View File

@ -44,8 +44,8 @@
}, },
{ {
limit: "maxin", limit: "maxin",
param: "1,10", param: "1,64",
errInfo: "楼名称长度必须在2位至10位" errInfo: "楼名称长度必须在2位至64位"
}, },
], ],
'editFloorInfo.floorNum': [{ 'editFloorInfo.floorNum': [{
@ -55,8 +55,8 @@
}, },
{ {
limit: "maxin", limit: "maxin",
param: "1,12", param: "1,64",
errInfo: "楼编号长度必须在1位至12位" errInfo: "楼编号长度必须在1位至64位"
}, },
], ],
'editFloorInfo.floorArea': [{ 'editFloorInfo.floorArea': [{

View File

@ -175,7 +175,6 @@
<vc:create path="property/addCommunitySpace" callBackListener="" callBackFunction=""></vc:create> <vc:create path="property/addCommunitySpace" callBackListener="" callBackFunction=""></vc:create>
<vc:create path="property/editCommunitySpace"></vc:create> <vc:create path="property/editCommunitySpace"></vc:create>
<vc:create path="property/editCommunitySpaceOpenTime"></vc:create> <vc:create path="property/editCommunitySpaceOpenTime"></vc:create>

View File

@ -73,13 +73,13 @@
communityId:vc.getCurrentCommunity().communityId communityId:vc.getCurrentCommunity().communityId
} }
}; };
//发送get请求 //发送get请求
vc.http.apiGet('/communityVenue.listCommunityVenue', vc.http.apiGet('/communityVenue.listCommunityVenue',
param, param,
function(json, res) { function(json, res) {
let _communityVenue= JSON.parse(json); let _communityVenue= JSON.parse(json);
vc.component.communitySpaceManageInfo.venues = _communityVenue.data; $that.communitySpaceManageInfo.venues = _communityVenue.data;
if(_communityVenue.data && _communityVenue.data.length >0){ if(_communityVenue.data && _communityVenue.data.length >0){
$that.swatchVenue(_communityVenue.data[0]); $that.swatchVenue(_communityVenue.data[0]);