1、栏目管理的添加与修改中添加内容模板和列表模板选项必填
2、删除对栏目管理中栏目属性的长度验证 3、resources.properties内容与resources_zh_CN.properties内容同步
This commit is contained in:
parent
dde8f9b255
commit
b392260a2c
|
@ -163,9 +163,7 @@ public class CategoryAction extends BaseAction{
|
||||||
if(!StringUtil.checkLength(category.getCategoryTitle()+"", 1, 100)){
|
if(!StringUtil.checkLength(category.getCategoryTitle()+"", 1, 100)){
|
||||||
return ResultData.build().error(getResString("err.length", this.getResString("category.title"), "1", "100"));
|
return ResultData.build().error(getResString("err.length", this.getResString("category.title"), "1", "100"));
|
||||||
}
|
}
|
||||||
if(!StringUtil.checkLength(category.getCategoryFlag()+"", 1, 100)){
|
|
||||||
return ResultData.build().error(getResString("err.length", this.getResString("category.flag"), "1", "100"));
|
|
||||||
}
|
|
||||||
if(!StringUtil.checkLength(category.getCategoryPath()+"", 1, 100)){
|
if(!StringUtil.checkLength(category.getCategoryPath()+"", 1, 100)){
|
||||||
return ResultData.build().error(getResString("err.length", this.getResString("category.path"), "1", "100"));
|
return ResultData.build().error(getResString("err.length", this.getResString("category.path"), "1", "100"));
|
||||||
}
|
}
|
||||||
|
@ -236,9 +234,7 @@ public class CategoryAction extends BaseAction{
|
||||||
if(!StringUtil.checkLength(category.getCategoryTitle()+"", 1, 100)){
|
if(!StringUtil.checkLength(category.getCategoryTitle()+"", 1, 100)){
|
||||||
return ResultData.build().error(getResString("err.length", this.getResString("category.title"), "1", "100"));
|
return ResultData.build().error(getResString("err.length", this.getResString("category.title"), "1", "100"));
|
||||||
}
|
}
|
||||||
if(!StringUtil.checkLength(category.getCategoryFlag()+"", 0, 100)){
|
|
||||||
return ResultData.build().error(getResString("err.length", this.getResString("category.flag"), "1", "100"));
|
|
||||||
}
|
|
||||||
if(!StringUtil.checkLength(category.getCategoryPath()+"", 0, 100)){
|
if(!StringUtil.checkLength(category.getCategoryPath()+"", 0, 100)){
|
||||||
return ResultData.build().error(getResString("err.length", this.getResString("category.path"), "1", "100"));
|
return ResultData.build().error(getResString("err.length", this.getResString("category.path"), "1", "100"));
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,35 @@
|
||||||
#
|
#
|
||||||
#Mon Dec 23 09:24:03 CST 2019
|
#Thu Nov 28 15:12:32 CST 2019
|
||||||
content.id=\u6587\u7AE0\u7F16\u53F7
|
category.img=\u7F29\u7565\u56FE
|
||||||
hl.ip=\u6D4F\u89C8ip
|
appid=\u6587\u7AE0\u7BA1\u7406\u7684\u5E94\u7528id
|
||||||
hl.people.id=\u7528\u6237id
|
content.datetime=\u53D1\u5E03\u65F6\u95F4
|
||||||
hl.is.mobile=\u662F\u5426\u4E3A\u79FB\u52A8\u7AEF
|
category.manager.id=\u53D1\u5E03\u7528\u6237id
|
||||||
|
category.title=\u680F\u76EE\u7BA1\u7406\u540D\u79F0
|
||||||
|
category.keyword=\u680F\u76EE\u7BA1\u7406\u5173\u952E\u5B57
|
||||||
|
content.img=\u6587\u7AE0\u7F29\u7565\u56FE
|
||||||
|
category.path=\u680F\u76EE\u8DEF\u5F84
|
||||||
|
content.type=\u6587\u7AE0\u7C7B\u578B
|
||||||
|
category.url=\u5185\u5BB9\u6A21\u677F
|
||||||
|
dict.id=\u5B57\u5178\u5BF9\u5E94\u7F16\u53F7
|
||||||
|
content.author=\u6587\u7AE0\u4F5C\u8005
|
||||||
|
category.parent.id=\u7236\u7C7B\u578B\u7F16\u53F7
|
||||||
|
category.datetime=\u7C7B\u522B\u53D1\u5E03\u65F6\u95F4
|
||||||
|
category.flag=\u680F\u76EE\u5C5E\u6027
|
||||||
|
content.description=\u63CF\u8FF0
|
||||||
|
content.url=\u6587\u7AE0\u8DF3\u8F6C\u94FE\u63A5\u5730\u5740
|
||||||
|
category.sort=\u81EA\u5B9A\u4E49\u987A\u5E8F
|
||||||
|
content.title=\u6587\u7AE0\u6807\u9898
|
||||||
|
content.category.id=\u6240\u5C5E\u680F\u76EE
|
||||||
id=\u7F16\u53F7
|
id=\u7F16\u53F7
|
||||||
|
app.id=\u5E94\u7528\u7F16\u53F7
|
||||||
|
category.list.url=\u5217\u8868\u6A21\u677F
|
||||||
|
mdiy.model.id=\u680F\u76EE\u7BA1\u7406\u7684\u5185\u5BB9\u6A21\u578Bid
|
||||||
|
content.source=\u6587\u7AE0\u6765\u6E90
|
||||||
|
content.display=\u662F\u5426\u663E\u793A
|
||||||
|
category.type=\u680F\u76EE\u7BA1\u7406\u5C5E\u6027
|
||||||
|
category.descrip=\u680F\u76EE\u7BA1\u7406\u63CF\u8FF0
|
||||||
|
content.details=\u6587\u7AE0\u5185\u5BB9
|
||||||
|
category.id=\u6240\u5C5E\u680F\u76EE
|
||||||
|
content.sort=\u81EA\u5B9A\u4E49\u987A\u5E8F
|
||||||
|
category.diy.url=\u81EA\u5B9A\u4E49\u94FE\u63A5
|
||||||
|
content.keyword=\u5173\u952E\u5B57
|
||||||
|
|
|
@ -283,6 +283,9 @@
|
||||||
"required": true,
|
"required": true,
|
||||||
"message": "请选择栏目管理名称"
|
"message": "请选择栏目管理名称"
|
||||||
}, {"pattern": /^[^[!@#$%^&*()_+-/~?!@#¥%…&*()——+—?》《:“‘’]+$/, "message": "栏目管理名称格式不匹配"}],
|
}, {"pattern": /^[^[!@#$%^&*()_+-/~?!@#¥%…&*()——+—?》《:“‘’]+$/, "message": "栏目管理名称格式不匹配"}],
|
||||||
|
categoryListUrl: [{"required":true,"message":"请选择列表模板"}],
|
||||||
|
// 内容模板
|
||||||
|
categoryUrl: [{"required":true,"message":"请选择内容模板"}],
|
||||||
},
|
},
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue