|
@@ -37753,6 +37753,7 @@ define(['exports'], function (exports) { 'use strict';
|
|
|
function Scope(_a) {
|
|
|
var model = _a.model, vjson = _a.vjson;
|
|
|
this.scopeTag = '';
|
|
|
+ this.allowBack = true;
|
|
|
/**
|
|
|
* 业务模块的唯一编号
|
|
|
*/
|
|
@@ -37766,6 +37767,17 @@ define(['exports'], function (exports) { 'use strict';
|
|
|
this.vjson = this.originalVjson; // this.buildVjson()
|
|
|
}
|
|
|
/**
|
|
|
+ * 活动回调
|
|
|
+ */
|
|
|
+ Scope.prototype.activate = function () {
|
|
|
+ var _a;
|
|
|
+ // @ts-ignore
|
|
|
+ if ((_a = window === null || window === void 0 ? void 0 : window.JSInterface) === null || _a === void 0 ? void 0 : _a.setWebViewCanBack) {
|
|
|
+ // @ts-ignore
|
|
|
+ window.JSInterface.setWebViewCanBack(this.allowBack);
|
|
|
+ }
|
|
|
+ };
|
|
|
+ /**
|
|
|
* 模块载入完成之后的回调
|
|
|
*/
|
|
|
Scope.prototype.onLoad = function () {
|
|
@@ -37845,6 +37857,12 @@ define(['exports'], function (exports) { 'use strict';
|
|
|
dataOption: {}
|
|
|
});
|
|
|
var allowBack = option.allowBack, vjsonOption = option.vjsonOption, dataOption = option.dataOption;
|
|
|
+ lodash.defaults(vjsonOption, {
|
|
|
+ listeners: {}
|
|
|
+ });
|
|
|
+ lodash.defaults(vjsonOption['listeners'], {
|
|
|
+ activate: "scope.activate"
|
|
|
+ });
|
|
|
this._vjsonOption = vjsonOption;
|
|
|
this._dataOption = dataOption;
|
|
|
var vmodel = lodash.defaultsDeep({
|
|
@@ -37860,6 +37878,7 @@ define(['exports'], function (exports) { 'use strict';
|
|
|
}, vjsonOption, that.vjson, {
|
|
|
xtype: 'panel',
|
|
|
});
|
|
|
+ that.allowBack = allowBack;
|
|
|
if (allowBack) {
|
|
|
var configNew = lodash.defaultsDeep({
|
|
|
iconCls: 'x-fa fa-angle-left',
|
|
@@ -37924,6 +37943,9 @@ define(['exports'], function (exports) { 'use strict';
|
|
|
console.error('errorAt onLoad', e);
|
|
|
}
|
|
|
}
|
|
|
+ Ext.Viewport.activeItem = function () {
|
|
|
+ debugger;
|
|
|
+ };
|
|
|
Ext.Viewport.add(that._handle);
|
|
|
// if ((window as any).mainWindow === that || (window as any).loginWindow === that) {
|
|
|
// Scope.SHOW_PAGE_STACK.length = 0
|