|
@@ -37752,6 +37752,11 @@ define(['exports'], function (exports) { 'use strict';
|
|
|
};
|
|
|
Scope.prototype.onGoBack = function (params) {
|
|
|
};
|
|
|
+ /**
|
|
|
+ * 模块载入动画结束之后的回调, 在onload之后
|
|
|
+ */
|
|
|
+ Scope.prototype.onLoadAnimationEnd = function () {
|
|
|
+ };
|
|
|
Object.defineProperty(Scope.prototype, "isScope", {
|
|
|
get: function () {
|
|
|
return true;
|
|
@@ -37772,6 +37777,9 @@ define(['exports'], function (exports) { 'use strict';
|
|
|
Scope.prototype._onLoad = function () {
|
|
|
this.onLoad();
|
|
|
};
|
|
|
+ Scope.prototype._onLoadAnimationEnd = function () {
|
|
|
+ this.onLoadAnimationEnd();
|
|
|
+ };
|
|
|
Scope.prototype._onGoBack = function (params) {
|
|
|
this.onGoBack(params);
|
|
|
};
|
|
@@ -37892,6 +37900,7 @@ define(['exports'], function (exports) { 'use strict';
|
|
|
if (!actived && item === that._handle) {
|
|
|
actived = true;
|
|
|
Ext.Viewport.getLayout().setAnimation({ type: 'slide', direction: 'left', duration: 300 });
|
|
|
+ setTimeout(that._onLoadAnimationEnd.bind(that), 300);
|
|
|
Ext.Viewport.setActiveItem(idx);
|
|
|
that._lastShowTime = new Date().getTime();
|
|
|
Scope.SHOW_PAGE_STACK.push(that);
|
|
@@ -38770,6 +38779,34 @@ define(['exports'], function (exports) { 'use strict';
|
|
|
|
|
|
var SIMPLE_RE = /^(?:\{(?:(\d+)|([a-z_][\w\.]*))\})$/i;
|
|
|
/**
|
|
|
+ * 替换内部结构中,所有 N/A
|
|
|
+ */
|
|
|
+ function replaceNA(obj) {
|
|
|
+ if (obj === 'N/A') {
|
|
|
+ return '';
|
|
|
+ }
|
|
|
+ if (lodash.isArray(obj)) {
|
|
|
+ lodash.forEach(obj, function (value, idx) {
|
|
|
+ if (value === 'N/A') {
|
|
|
+ obj[idx] = '';
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ replaceNA(value);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ else if (lodash.isPlainObject(obj)) {
|
|
|
+ lodash.forOwn(obj, function (value, key) {
|
|
|
+ if (value === 'N/A') {
|
|
|
+ obj[key] = '';
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ replaceNA(value);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /**
|
|
|
* 对某个表达式进行求值
|
|
|
* a:{query.a},b:{query.b} -> a:aValue,b:bValue
|
|
|
*
|
|
@@ -39975,6 +40012,7 @@ define(['exports'], function (exports) { 'use strict';
|
|
|
var SystemLib = /*#__PURE__*/Object.freeze({
|
|
|
__proto__: null,
|
|
|
SIMPLE_RE: SIMPLE_RE,
|
|
|
+ replaceNA: replaceNA,
|
|
|
calcExpress: calcExpress,
|
|
|
calcObjectFlat: calcObjectFlat,
|
|
|
mergeViewModel: mergeViewModel,
|
|
@@ -40044,6 +40082,9 @@ define(['exports'], function (exports) { 'use strict';
|
|
|
successProperty: 'success',
|
|
|
messageProperty: 'msg',
|
|
|
transform: function (data) {
|
|
|
+ if (typeof window['ajaxProcess'] === 'function') {
|
|
|
+ window['ajaxProcess'](data);
|
|
|
+ }
|
|
|
if (typeof grid._transform === 'function') {
|
|
|
// 系统转换函数
|
|
|
grid._transform(data.data);
|