Parcourir la source

表单引擎 - grid_dialog

luoyifan il y a 2 ans
Parent
commit
04cb31c018
2 fichiers modifiés avec 27 ajouts et 2 suppressions
  1. 26 1
      dist/yvan-ext.js
  2. 1 1
      dist/yvan-ext.js.map

+ 26 - 1
dist/yvan-ext.js

@@ -63330,6 +63330,15 @@ define(['exports', 'node-sql-parser', 'sql-formatter'], function (exports, nodeS
         }
         window['showGridRowDetail'](grid1, record);
     }
+    function commitMe(sender) {
+        var window = sender.up('window');
+        var scope = lookupScope(sender);
+        if (typeof scope['commit'] === 'function') {
+            scope['commit']().then(function (res) {
+                window.close();
+            });
+        }
+    }
     function removeGridRow(grid1) {
         var _a;
         var config = grid1.config;
@@ -63394,6 +63403,11 @@ define(['exports', 'node-sql-parser', 'sql-formatter'], function (exports, nodeS
                 moveUpGridRow(grid1);
             };
         };
+        SystemEventFu.prototype.commitMe = function () {
+            return function (sender) {
+                commitMe(sender);
+            };
+        };
         SystemEventFu.prototype.moveDownGridRow = function () {
             return function (sender) {
                 var grid1 = sender.up('yvgrid');
@@ -63714,6 +63728,15 @@ define(['exports', 'node-sql-parser', 'sql-formatter'], function (exports, nodeS
         ], SystemEventFu.prototype, "moveUpGridRow", null);
         __decorate([
             Lib({
+                title: '为某个表格,上移行',
+                author: '罗一帆', createAt: '2022-07-19', updateAt: '2022-07-19', type: 'system', category: '表格',
+            }),
+            __metadata("design:type", Function),
+            __metadata("design:paramtypes", []),
+            __metadata("design:returntype", void 0)
+        ], SystemEventFu.prototype, "commitMe", null);
+        __decorate([
+            Lib({
                 title: '为某个表格,下移行',
                 author: '罗一帆', createAt: '2022-07-19', updateAt: '2022-07-19', type: 'system', category: '表格',
             }),
@@ -64149,7 +64172,6 @@ define(['exports', 'node-sql-parser', 'sql-formatter'], function (exports, nodeS
     function getGridEditRows(grid) {
         return grid.getGridEditRows();
     }
-    //# sourceMappingURL=systemLib.js.map
 
     var SystemLib = /*#__PURE__*/Object.freeze({
         __proto__: null,
@@ -64177,6 +64199,7 @@ define(['exports', 'node-sql-parser', 'sql-formatter'], function (exports, nodeS
         saveGridRow: saveGridRow,
         insertGridRow: insertGridRow,
         showGridRowDetail: showGridRowDetail,
+        commitMe: commitMe,
         removeGridRow: removeGridRow,
         moveUpGridRow: moveUpGridRow,
         moveDownGridRow: moveDownGridRow,
@@ -96156,6 +96179,7 @@ define(['exports', 'node-sql-parser', 'sql-formatter'], function (exports, nodeS
             }
         }
     }
+    //# sourceMappingURL=grid_dialog.js.map
 
     window["EXPORT_DATA_HOST"] = "http://127.0.0.1:30000/exportData";
     var hexToString = function (hex) {
@@ -134891,6 +134915,7 @@ define(['exports', 'node-sql-parser', 'sql-formatter'], function (exports, nodeS
     exports.clearViewModelByLookup = clearViewModelByLookup;
     exports.clearViewModelReloadGrid = clearViewModelReloadGrid;
     exports.clearViewModelValues = clearViewModelValues;
+    exports.commitMe = commitMe;
     exports.confirm = confirm;
     exports.createAjax = createAjax;
     exports.createUUID = createUUID;

Fichier diff supprimé car celui-ci est trop grand
+ 1 - 1
dist/yvan-ext.js.map