You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.2 KiB
57 lines
1.2 KiB
|
|
define(['system/views/pages/page', 'text!./pageArea.tpl'], function (BasePage, tpl) {
|
|
/**
|
|
* 列表页类定义
|
|
* @param id
|
|
* @param node 节点信息
|
|
* @constructor
|
|
*/
|
|
function Page(id, node, biz) {
|
|
var self = this;
|
|
|
|
//通过绑定控制界面显示
|
|
self.opts = {
|
|
showWest: true,
|
|
showEast: true,
|
|
showNorth: true,
|
|
showSouth: true,
|
|
showDetail: true,
|
|
showTree: true
|
|
};
|
|
|
|
//继承Page类构造函数
|
|
BasePage.call(self, id, node, tpl, self.opts, biz);
|
|
|
|
}
|
|
|
|
//继承Page类方法
|
|
inherits(Page, BasePage);
|
|
|
|
/**
|
|
* Override
|
|
* 界面显示后
|
|
*/
|
|
Page.prototype.initCompleted = function () {
|
|
this.super('initCompleted')
|
|
|
|
$(window).resize(function () {
|
|
setTimeout(function () {
|
|
var tabId = Store.tabPrefix + self.node.id;
|
|
self.$container = $('#' + tabId)
|
|
self.$layout = self.getElement('.easyui-layout');
|
|
self.resize();
|
|
}, 100);
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Override
|
|
* 用于初始化界面
|
|
* @return
|
|
*/
|
|
Page.prototype.init = function () {};
|
|
|
|
return Page;
|
|
|
|
|
|
}) |