|
@@ -62169,6 +62169,34 @@ define(['exports'], function (exports) { 'use strict';
|
|
});
|
|
});
|
|
}
|
|
}
|
|
/**
|
|
/**
|
|
|
|
+ * 替换内部结构中,所有 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);
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ /**
|
|
* 根据表达式进入写值
|
|
* 根据表达式进入写值
|
|
* express="{query.a}" 写值就是 viewModel.set('query.a', value)
|
|
* express="{query.a}" 写值就是 viewModel.set('query.a', value)
|
|
* express="test-{query.a}" 写值就会失败
|
|
* express="test-{query.a}" 写值就会失败
|
|
@@ -63181,7 +63209,6 @@ define(['exports'], function (exports) { 'use strict';
|
|
function getGridEditRows(grid) {
|
|
function getGridEditRows(grid) {
|
|
return grid.getGridEditRows();
|
|
return grid.getGridEditRows();
|
|
}
|
|
}
|
|
- //# sourceMappingURL=systemLib.js.map
|
|
|
|
|
|
|
|
var SystemLib = /*#__PURE__*/Object.freeze({
|
|
var SystemLib = /*#__PURE__*/Object.freeze({
|
|
__proto__: null,
|
|
__proto__: null,
|
|
@@ -63190,6 +63217,7 @@ define(['exports'], function (exports) { 'use strict';
|
|
calcObjectFlat: calcObjectFlat,
|
|
calcObjectFlat: calcObjectFlat,
|
|
mergeViewModel: mergeViewModel,
|
|
mergeViewModel: mergeViewModel,
|
|
flatRow: flatRow,
|
|
flatRow: flatRow,
|
|
|
|
+ replaceNA: replaceNA,
|
|
tryWriteByExpress: tryWriteByExpress,
|
|
tryWriteByExpress: tryWriteByExpress,
|
|
tryWriteObject: tryWriteObject,
|
|
tryWriteObject: tryWriteObject,
|
|
tryVarSimple: tryVarSimple,
|
|
tryVarSimple: tryVarSimple,
|
|
@@ -94881,6 +94909,9 @@ define(['exports'], function (exports) { 'use strict';
|
|
successProperty: 'success',
|
|
successProperty: 'success',
|
|
messageProperty: 'msg',
|
|
messageProperty: 'msg',
|
|
transform: function (data) {
|
|
transform: function (data) {
|
|
|
|
+ if (typeof window['ajaxProcess'] === 'function') {
|
|
|
|
+ window['ajaxProcess'](data);
|
|
|
|
+ }
|
|
if (typeof grid._transform === 'function') {
|
|
if (typeof grid._transform === 'function') {
|
|
// 系统转换函数
|
|
// 系统转换函数
|
|
grid._transform(data.data);
|
|
grid._transform(data.data);
|
|
@@ -95922,6 +95953,7 @@ define(['exports'], function (exports) { 'use strict';
|
|
}
|
|
}
|
|
// throw new TypeError('无法识别的调用方法')
|
|
// throw new TypeError('无法识别的调用方法')
|
|
}
|
|
}
|
|
|
|
+ //# sourceMappingURL=grid.js.map
|
|
|
|
|
|
function initTextfield () {
|
|
function initTextfield () {
|
|
var cc = Ext.form.field.Text.prototype.constructor;
|
|
var cc = Ext.form.field.Text.prototype.constructor;
|
|
@@ -131920,6 +131952,7 @@ define(['exports'], function (exports) { 'use strict';
|
|
exports.raiseClick = raiseClick;
|
|
exports.raiseClick = raiseClick;
|
|
exports.recast = main$3;
|
|
exports.recast = main$3;
|
|
exports.reloadGrid = reloadGrid;
|
|
exports.reloadGrid = reloadGrid;
|
|
|
|
+ exports.replaceNA = replaceNA;
|
|
exports.serverInvokeUrlTransform = serverInvokeUrlTransform;
|
|
exports.serverInvokeUrlTransform = serverInvokeUrlTransform;
|
|
exports.setComboStore = setComboStore;
|
|
exports.setComboStore = setComboStore;
|
|
exports.setDesignMode = setDesignMode;
|
|
exports.setDesignMode = setDesignMode;
|