EAS Web端编辑表格指定列动态设置必录或取消必录原创
金蝶云社区-zhiwei_xing
zhiwei_xing
0人赞赏了该文章 676次浏览 未经作者许可,禁止转载编辑于2020年11月13日 12:10:37

//其中[index]中的index为编辑表格列的索引,如:[1]、[2]、[3]...
//设置必录:
waf("#entries").wafGrid("option","colModel")[index].editoptions.validateJson.rules="required:true";
//取消必录:
waf("#entries").wafGrid("option","colModel")[index].editoptions.validateJson.rules="required:false";


赞 0