提交 2a5fd0db 编写于 作者: WodahsOrez's avatar WodahsOrez

lxm--表格外部校验--fix1

上级 01066f19
......@@ -523,7 +523,7 @@ import { FormItemModel } from '@/model/form-detail';
*
* @memberof ${srfclassname('${ctrl.codeName}')}
*/
public validtor(property:string, data:any, rowIndex:number){
public validate(property:string, data:any, rowIndex:number){
this.$util.validateItem(property,data,this.rules).then(()=>{
this.gridItemsModel[rowIndex][property].setError(null);
}).catch(({ errors, fields }) => {
......@@ -1596,7 +1596,7 @@ import { FormItemModel } from '@/model/form-detail';
return;
}
row[$event.name] = $event.value;
this.gridEditItemChange(row, $event.name, $event.value);
this.gridEditItemChange(row, $event.name, $event.value, rowIndex);
}
/**
......@@ -1611,7 +1611,7 @@ import { FormItemModel } from '@/model/form-detail';
*/
public gridEditItemChange(row: any, property: string, value: any, rowIndex: number){
row.rowDataState = row.rowDataState ? row.rowDataState : "update" ;
this.validtor(property,row,rowIndex);
this.validate(property,row,rowIndex);
<#if ctrl.getPSDEGridEditItems()??>
<#list ctrl.getPSDEGridEditItems() as editItem>
<#if editItem.getPSDEGridEditItemUpdate()??>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册