define(['system/views/pages/page', 'text!./pageOver.tpl'], function (BasePage, tpl) { /** * 列表页类定义 * @param id * @param node 节点信息 * @constructor */ function Page(id, node, biz) { let 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'); let $detailPanel = this.getElement('.edp-page .page-body-south'); let self = this; $detailPanel.panel({ onResize: function (w, h) { self.resizeGrid($detailPanel); } }); $(window).resize(function () { setTimeout(function () { let 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; })