From 6d8a43de07062234a05716fcbb94273709cab21e Mon Sep 17 00:00:00 2001
From: shiyj <1098226878@qq.com>
Date: 星期二, 16 七月 2019 17:04:36 +0800
Subject: [PATCH] Merge branch 'master' of https://github.com/java110/MicroCommunity
---
WebService/src/main/resources/components/edit-community/editCommunity.js | 69 +++++++++++++++++++++++++++++++++-
1 files changed, 66 insertions(+), 3 deletions(-)
diff --git a/WebService/src/main/resources/components/edit-community/editCommunity.js b/WebService/src/main/resources/components/edit-community/editCommunity.js
index 47c2e65..0cd8c7a 100644
--- a/WebService/src/main/resources/components/edit-community/editCommunity.js
+++ b/WebService/src/main/resources/components/edit-community/editCommunity.js
@@ -17,11 +17,11 @@
},
_initEvent:function(){
- vc.on('editCommunity','openCommunityModel',function(_params){
+ vc.on('editCommunity','openEditCommunityModal',function(_params){
vc.component.refreshEditCommunityInfo();
$('#editCommunityModel').modal('show');
vc.component.editCommunityInfo = _params;
- vc.component.editCommunityInfo.communityId = vc.getCurrentCommunity().communityId;
+ //vc.component.editCommunityInfo.communityId = vc.getCurrentCommunity().communityId;
});
},
methods:{
@@ -29,7 +29,70 @@
return vc.validate.validate({
editCommunityInfo:vc.component.editCommunityInfo
},{
- @@addTemplateCodeValidate@@
+ 'editCommunityInfo.name':[
+{
+ limit:"required",
+ param:"",
+ errInfo:"灏忓尯鍚嶇О涓嶈兘涓虹┖"
+ },
+ {
+ limit:"maxin",
+ param:"4,20",
+ errInfo:"灏忓尯鍚嶇О蹇呴』鍦�4鑷�20瀛楃涔嬮棿"
+ },
+ ],
+'editCommunityInfo.address':[
+{
+ limit:"required",
+ param:"",
+ errInfo:"灏忓尯鍦板潃涓嶈兘涓虹┖"
+ },
+ {
+ limit:"maxLength",
+ param:"200",
+ errInfo:"灏忓尯鍦板潃涓嶈兘澶т簬200涓瓧绗�"
+ },
+ ],
+'editCommunityInfo.nearbyLandmarks':[
+{
+ limit:"required",
+ param:"",
+ errInfo:"闄勮繎鍦版爣涓嶈兘涓虹┖"
+ },
+ {
+ limit:"maxLength",
+ param:"50",
+ errInfo:"灏忓尯闄勮繎鍦版爣涓嶈兘澶т簬50涓瓧绗�"
+ },
+ ],
+'editCommunityInfo.cityCode':[
+ {
+ limit:"maxLength",
+ param:"12",
+ errInfo:"灏忓尯鍩庡競缂栫爜涓嶈兘澶т簬4涓瓧绗�"
+ },
+ ],
+'editCommunityInfo.mapX':[
+ {
+ limit:"maxLength",
+ param:"20",
+ errInfo:"灏忓尯鍩庡競缂栫爜涓嶈兘澶т簬4涓瓧绗�"
+ },
+ ],
+'editCommunityInfo.mapY':[
+ {
+ limit:"maxLength",
+ param:"20",
+ errInfo:"灏忓尯鍩庡競缂栫爜涓嶈兘澶т簬4涓瓧绗�"
+ },
+ ],
+'editCommunityInfo.communityId':[
+{
+ limit:"required",
+ param:"",
+ errInfo:"灏忓尯ID涓嶈兘涓虹┖"
+ }]
+
});
},
editCommunity:function(){
--
Gitblit v1.8.0