提交 2a5e91a3 编写于 作者: 蔡祥熠

Merge branch 'fix/api' into 'develop'

Merge of fix/api to  api中使用vaildate替换validation develop

See merge request o2oa/o2oa!1038
......@@ -85,11 +85,19 @@ MWF.xApplication.process.Xform.$Module = MWF.APP$Module = new Class(
* @summary 根据组件的校验设置进行校验。
* @param {String} [routeName] - 可选,路由名称.
* @example
* if( !this.form.get('fieldId').validation() ){
* if( !this.form.get('fieldId').validate() ){
* return false;
* }
* @return {Boolean} 是否通过校验
*/
validate: function (routeName, opinion) {
if( this.validationMode )this.validationMode();
if( this.validation ){
return this.validation(routeName, opinion);
}else{
return true;
}
},
validation: function (routeName, opinion) {
if (!this.isReadonly()){
if (this.getInputData){
......
......@@ -1835,15 +1835,6 @@ MWF.xApplication.process.Xform.DatagridMobile = new Class(
}
return true;
},
/**
* @summary 根据组件的校验设置进行校验。
* @param {String} [routeName] - 可选,路由名称.
* @example
* if( !this.form.get('fieldId').validation() ){
* return false;
* }
* @return {Boolean} 是否通过校验
*/
validation: function(routeName, opinion){
if (this.isEdit){
if (!this.editValidation()){
......
......@@ -1776,15 +1776,6 @@ MWF.xApplication.process.Xform.DatagridPC = new Class(
}
return true;
},
/**
* @summary 根据组件的校验设置进行校验。
* @param {String} [routeName] - 可选,路由名称.
* @example
* if( !this.form.get('fieldId').validation() ){
* return false;
* }
* @return {Boolean} 是否通过校验
*/
validation: function(routeName, opinion){
if (this.isEdit){
if (!this.editValidation()){
......
......@@ -1715,15 +1715,6 @@ MWF.xApplication.process.Xform.DatatablePC = new Class(
}
return true;
},
/**
* @summary 根据组件的校验设置进行校验。
* @param {String} [routeName] - 可选,路由名称.
* @example
* if( !this.form.get('fieldId').validation() ){
* return false;
* }
* @return {Boolean} 是否通过校验
*/
validation: function(routeName, opinion){
if (this.isEdit){
if (!this.editValidation()){
......
......@@ -1387,15 +1387,6 @@ MWF.xApplication.process.Xform.Datatemplate = MWF.APPDatatemplate = new Class(
}
return true;
},
/**
* @summary 根据组件的校验设置进行校验。
* @param {String} [routeName] - 可选,路由名称.
* @example
* if( !this.form.get('fieldId').validation() ){
* return false;
* }
* @return {Boolean} 是否通过校验
*/
validation: function(routeName, opinion){
if (this.isEdit){
if (!this.editValidation()){
......
......@@ -3748,15 +3748,6 @@ MWF.xApplication.process.Xform.Documenteditor = MWF.APPDocumenteditor = new Cla
}
return true;
},
/**
* @summary 根据组件的校验设置进行校验。
* @param {String} [routeName] - 可选,路由名称.
* @example
* if( !this.form.get('fieldId').validation() ){
* return false;
* }
* @return {Boolean} 是否通过校验
*/
validation: function(routeName, opinion){
if (!this.validationConfig(routeName, opinion)) return false;
......
......@@ -650,15 +650,6 @@ MWF.xApplication.process.Xform.Htmleditor = MWF.APPHtmleditor = new Class(
}
return true;
},
/**
* @summary 根据组件的校验设置进行校验。
* @param {String} [routeName] - 可选,路由名称.
* @example
* if( !this.form.get('fieldId').validation() ){
* return false;
* }
* @return {Boolean} 是否通过校验
*/
validation: function(routeName, opinion){
if (!this.validationConfig(routeName, opinion)) return false;
......
......@@ -328,15 +328,6 @@ MWF.xApplication.process.Xform.ImageClipper = MWF.APPImageClipper = new Class(
}
return true;
},
/**
* @summary 根据组件的校验设置进行校验。
* @param {String} [routeName] - 可选,路由名称.
* @example
* if( !this.form.get('fieldId').validation() ){
* return false;
* }
* @return {Boolean} 是否通过校验
*/
validation: function(routeName, opinion){
if (!this.validationConfig(routeName, opinion)) return false;
......
......@@ -392,15 +392,6 @@ MWF.xApplication.process.Xform.TinyMCEEditor = MWF.APPTinyMCEEditor = new Class(
}
return true;
},
/**
* @summary 根据组件的校验设置进行校验。
* @param {String} [routeName] - 可选,路由名称.
* @example
* if( !this.form.get('fieldId').validation() ){
* return false;
* }
* @return {Boolean} 是否通过校验
*/
validation: function (routeName, opinion) {
if (!this.validationConfig(routeName, opinion)) return false;
......
......@@ -416,15 +416,6 @@ MWF.xApplication.process.Xform.WritingBoard = MWF.APPWritingBoard = new Class(
}
return true;
},
/**
* @summary 根据组件的校验设置进行校验。
* @param {String} [routeName] - 可选,路由名称.
* @example
* if( !this.form.get('fieldId').validation() ){
* return false;
* }
* @return {Boolean} 是否通过校验
*/
validation: function (routeName, opinion) {
if (!this.validationConfig(routeName, opinion)) return false;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册