流程表单点击保存后将控件设置为只读无效
流程表单各控件填写的数据点击保存后,要求不能再修改,在保存后事件中将各个控件设置为只读后,不起作用。或者有别的方法能实现这个功能吗??
您如何设置的只读?具体脚本发来看一下 论坛管理员 发表于 2022-7-18 10:00
您如何设置的只读?具体脚本发来看一下
if(this.workContext.getWork().activityName=="检验记录"){
this.form.get("wendang").json.isReadonly = true;
}
else {
this.form.get("wendang").json.isReadonly = false;
} this.form.get("subject").node.getElement("input").setAttribute("readonly","true"); 论坛管理员 发表于 2022-7-18 15:55
this.form.get("subject").node.getElement("input").setAttribute("readonly","true");
combox框这么设置也不行啊?combox框输入内容后如何设置为只读
页:
[1]