|
用的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关闭对话框
}
}
});
|
|