w_pf8375 发表于 2024-8-29 11:10:17

流程表单中想加个点击弹窗口功能报this.form.dialog is not a fun...

用的V7.0.3版本,在流程表单组件点击事件上加弹窗,提示this.form.dialog is not a function
var _self = this;
var dlg = this.form.dialog({
"title": "填写内容",
"width": "500",
"height": "300",
"html": "<div>内容:</div><div><input type='text'></div>",
"ok": function(){
      var value = this.node.getElement("input").value; //this指向对话框对象
      if( !value ){
          _self.form.notice("请填写内容", "info");
          return false; //返回false不关闭对话框
      }else{
          return true; //返回true关闭对话框
      }
}
});


论坛管理员 发表于 2024-8-30 11:04:08

换https://www.o2oa.net/cms/apicourse/333.html这个试试
页: [1]
查看完整版本: 流程表单中想加个点击弹窗口功能报this.form.dialog is not a fun...