提交 21d7f203 编写于 作者: U unknown

自定义视图

上级 7dd0c670
......@@ -26,7 +26,8 @@ MWF.xScript.ViewEnvironment = function (ev) {
// this.setData(_data);
this.viewContext = {
viewInfor : _form.viewInfor,
getPageNumber : _form.getPageNumber()
};
//dict
......
......@@ -55,6 +55,7 @@ MWF.xApplication.query.Query.Viewer = MWF.QViewer = new Class({
this.load();
}.bind(this));
}
},
loadView: function(){
if (this.viewJson){
......@@ -105,6 +106,7 @@ MWF.xApplication.query.Query.Viewer = MWF.QViewer = new Class({
this.viewPageAreaNode = new Element("div", {"styles": this.css.viewPageAreaNode}).inject(this.viewPageNode);
},
loadMacro: function (callback) {
this.viewInfor = this.json;
if( !this.Macro ){ //有可能是page\cms\process传入的macro
MWF.require("MWF.xScript.Macro", function () {
this.Macro = new MWF.Macro.ViewContext(this);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册