提交 27dbda1b 编写于 作者: KK's avatar KK

搜索表单 update

上级 e1e8e609
......@@ -473,12 +473,23 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @memberof ${srfclassname('${ctrl.codeName}')}
*/
protected formValidateStatus(): boolean {
const form: any = this.$refs.${ctrl.name};
<#-- const form: any = this.$refs.${ctrl.name};
let validatestate: boolean = true;
<#-- form.validate((valid: boolean) => {
form.validate((valid: boolean) => {
validatestate = valid ? true : false;
}); -->
return validatestate
return this.cheackRules();
}
public cheackRules() :boolean{
let refArr = [<#list ctrl.getAllPSDEFormDetails() as formdetail><#if formdetail.getDetailType?? && formdetail.getDetailType() == 'FORMITEM'>"${formdetail.getName()}rules",</#if></#list>];
let falg = true ;
refArr.forEach((item:any) => {
if(this.$refs[item] && (this.$refs[item] as any).checkRule && !(this.$refs[item] as any).checkRule()){
falg = false;
}
});
return falg;
}
/**
......@@ -1268,6 +1279,8 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
this.$emit('load', this.data);
}
</#if>
</#if>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册