luoyifan 3 lat temu
rodzic
commit
a20c2ca6c4
2 zmienionych plików z 35 dodań i 2 usunięć
  1. 34 1
      dist/yvan-ext.js
  2. 1 1
      dist/yvan-ext.js.map

+ 34 - 1
dist/yvan-ext.js

@@ -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="test-{query.a}"   写值就会失败
@@ -63181,7 +63209,6 @@ define(['exports'], function (exports) { 'use strict';
     function getGridEditRows(grid) {
         return grid.getGridEditRows();
     }
-    //# sourceMappingURL=systemLib.js.map
 
     var SystemLib = /*#__PURE__*/Object.freeze({
         __proto__: null,
@@ -63190,6 +63217,7 @@ define(['exports'], function (exports) { 'use strict';
         calcObjectFlat: calcObjectFlat,
         mergeViewModel: mergeViewModel,
         flatRow: flatRow,
+        replaceNA: replaceNA,
         tryWriteByExpress: tryWriteByExpress,
         tryWriteObject: tryWriteObject,
         tryVarSimple: tryVarSimple,
@@ -94881,6 +94909,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);
@@ -95922,6 +95953,7 @@ define(['exports'], function (exports) { 'use strict';
         }
         // throw new TypeError('无法识别的调用方法')
     }
+    //# sourceMappingURL=grid.js.map
 
     function initTextfield () {
         var cc = Ext.form.field.Text.prototype.constructor;
@@ -131920,6 +131952,7 @@ define(['exports'], function (exports) { 'use strict';
     exports.raiseClick = raiseClick;
     exports.recast = main$3;
     exports.reloadGrid = reloadGrid;
+    exports.replaceNA = replaceNA;
     exports.serverInvokeUrlTransform = serverInvokeUrlTransform;
     exports.setComboStore = setComboStore;
     exports.setDesignMode = setDesignMode;

Plik diff jest za duży
+ 1 - 1
dist/yvan-ext.js.map