/**
* 用户管理
*/
var leftSchoolModule = function (o) {
this.module = "leftSchool",
this.action = "leftSchool",
this.moduleId = "#leftSchoolHomeArticle",
this.articleId = "",
this.tabActive = null,
this.deferred = {},
this.debug = false,
this.format = o;
};
/**
* 渲染主页布局
*/
leftSchoolModule.prototype.home = function(o) {
this.articleId = "Home";
renderTplUrl = null,
renderTpl = {renderObj:leftSchool.moduleId, renderOnObj:"", renderHtml:iyyIV +"/modules/ihr/leftSchool/html/leftSchoolHome.html"};
icmInit.renderTpl({'renderTplUrl':renderTplUrl,'renderTpl':renderTpl,'deferred':$.Deferred()});
};
leftSchoolModule.prototype.searchGridRows = function(o) {
if("object" != typeof o)return;
$(leftSchool.moduleId).off('submit').on('submit',o.renderTpl.renderOnObj, o, function(event, state) {
event.preventDefault();// 阻止a链接的跳转行为
leftSchool.articleId = "ModuleGrid",searchDeferred={},arrList= new Array();
arrList.push(o.renderTplUrl.params);
arrList.push(icmInit.serializeForm({'_this':$(this),'type':'json'}));
o.renderTplUrl.params = icmInit.merge({type:"json",arrList:arrList});
leftSchool.modualGrid({renderTplUrl:o.renderTplUrl,renderTpl:o.renderTpl});//渲染右侧table栏
//前置请求条件
event.stopPropagation(); // 是停止事件传递 , 并不影响它后面的代码执行。
return ;
});
};