xingkongshensui 发表于 2022-7-18 07:52:31

流程表单点击保存后将控件设置为只读无效

流程表单各控件填写的数据点击保存后,要求不能再修改,在保存后事件中将各个控件设置为只读后,不起作用。
或者有别的方法能实现这个功能吗??

论坛管理员 发表于 2022-7-18 10:00:03

您如何设置的只读?具体脚本发来看一下

xingkongshensui 发表于 2022-7-18 13:38:14

论坛管理员 发表于 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;
}

论坛管理员 发表于 2022-7-18 15:55:44

this.form.get("subject").node.getElement("input").setAttribute("readonly","true");

xingkongshensui 发表于 2022-8-1 15:02:37

论坛管理员 发表于 2022-7-18 15:55
this.form.get("subject").node.getElement("input").setAttribute("readonly","true");

combox框这么设置也不行啊?combox框输入内容后如何设置为只读
页: [1]
查看完整版本: 流程表单点击保存后将控件设置为只读无效