@egova/egova-api 1.0.67 → 1.0.71

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -156,6 +156,18 @@ module.exports = function (fn, that) {
156
156
  };
157
157
 
158
158
 
159
+ /***/ }),
160
+
161
+ /***/ "04d1":
162
+ /***/ (function(module, exports, __webpack_require__) {
163
+
164
+ var userAgent = __webpack_require__("342f");
165
+
166
+ var firefox = userAgent.match(/firefox\/(\d+)/i);
167
+
168
+ module.exports = !!firefox && +firefox[1];
169
+
170
+
159
171
  /***/ }),
160
172
 
161
173
  /***/ "057f":
@@ -37631,6 +37643,119 @@ module.exports = function from(arrayLike /* , mapfn = undefined, thisArg = undef
37631
37643
  };
37632
37644
 
37633
37645
 
37646
+ /***/ }),
37647
+
37648
+ /***/ "4e82":
37649
+ /***/ (function(module, exports, __webpack_require__) {
37650
+
37651
+ "use strict";
37652
+
37653
+ var $ = __webpack_require__("23e7");
37654
+ var uncurryThis = __webpack_require__("e330");
37655
+ var aCallable = __webpack_require__("59ed");
37656
+ var toObject = __webpack_require__("7b0b");
37657
+ var lengthOfArrayLike = __webpack_require__("07fa");
37658
+ var toString = __webpack_require__("577e");
37659
+ var fails = __webpack_require__("d039");
37660
+ var internalSort = __webpack_require__("addb");
37661
+ var arrayMethodIsStrict = __webpack_require__("a640");
37662
+ var FF = __webpack_require__("04d1");
37663
+ var IE_OR_EDGE = __webpack_require__("d998");
37664
+ var V8 = __webpack_require__("2d00");
37665
+ var WEBKIT = __webpack_require__("512c");
37666
+
37667
+ var test = [];
37668
+ var un$Sort = uncurryThis(test.sort);
37669
+ var push = uncurryThis(test.push);
37670
+
37671
+ // IE8-
37672
+ var FAILS_ON_UNDEFINED = fails(function () {
37673
+ test.sort(undefined);
37674
+ });
37675
+ // V8 bug
37676
+ var FAILS_ON_NULL = fails(function () {
37677
+ test.sort(null);
37678
+ });
37679
+ // Old WebKit
37680
+ var STRICT_METHOD = arrayMethodIsStrict('sort');
37681
+
37682
+ var STABLE_SORT = !fails(function () {
37683
+ // feature detection can be too slow, so check engines versions
37684
+ if (V8) return V8 < 70;
37685
+ if (FF && FF > 3) return;
37686
+ if (IE_OR_EDGE) return true;
37687
+ if (WEBKIT) return WEBKIT < 603;
37688
+
37689
+ var result = '';
37690
+ var code, chr, value, index;
37691
+
37692
+ // generate an array with more 512 elements (Chakra and old V8 fails only in this case)
37693
+ for (code = 65; code < 76; code++) {
37694
+ chr = String.fromCharCode(code);
37695
+
37696
+ switch (code) {
37697
+ case 66: case 69: case 70: case 72: value = 3; break;
37698
+ case 68: case 71: value = 4; break;
37699
+ default: value = 2;
37700
+ }
37701
+
37702
+ for (index = 0; index < 47; index++) {
37703
+ test.push({ k: chr + index, v: value });
37704
+ }
37705
+ }
37706
+
37707
+ test.sort(function (a, b) { return b.v - a.v; });
37708
+
37709
+ for (index = 0; index < test.length; index++) {
37710
+ chr = test[index].k.charAt(0);
37711
+ if (result.charAt(result.length - 1) !== chr) result += chr;
37712
+ }
37713
+
37714
+ return result !== 'DGBEFHACIJK';
37715
+ });
37716
+
37717
+ var FORCED = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD || !STABLE_SORT;
37718
+
37719
+ var getSortCompare = function (comparefn) {
37720
+ return function (x, y) {
37721
+ if (y === undefined) return -1;
37722
+ if (x === undefined) return 1;
37723
+ if (comparefn !== undefined) return +comparefn(x, y) || 0;
37724
+ return toString(x) > toString(y) ? 1 : -1;
37725
+ };
37726
+ };
37727
+
37728
+ // `Array.prototype.sort` method
37729
+ // https://tc39.es/ecma262/#sec-array.prototype.sort
37730
+ $({ target: 'Array', proto: true, forced: FORCED }, {
37731
+ sort: function sort(comparefn) {
37732
+ if (comparefn !== undefined) aCallable(comparefn);
37733
+
37734
+ var array = toObject(this);
37735
+
37736
+ if (STABLE_SORT) return comparefn === undefined ? un$Sort(array) : un$Sort(array, comparefn);
37737
+
37738
+ var items = [];
37739
+ var arrayLength = lengthOfArrayLike(array);
37740
+ var itemsLength, index;
37741
+
37742
+ for (index = 0; index < arrayLength; index++) {
37743
+ if (index in array) push(items, array[index]);
37744
+ }
37745
+
37746
+ internalSort(items, getSortCompare(comparefn));
37747
+
37748
+ itemsLength = items.length;
37749
+ index = 0;
37750
+
37751
+ while (index < itemsLength) array[index] = items[index++];
37752
+ while (index < arrayLength) delete array[index++];
37753
+
37754
+ return array;
37755
+ }
37756
+ });
37757
+
37758
+
37634
37759
  /***/ }),
37635
37760
 
37636
37761
  /***/ "4ec9":
@@ -37705,6 +37830,18 @@ module.exports = function (argument) {
37705
37830
  };
37706
37831
 
37707
37832
 
37833
+ /***/ }),
37834
+
37835
+ /***/ "512c":
37836
+ /***/ (function(module, exports, __webpack_require__) {
37837
+
37838
+ var userAgent = __webpack_require__("342f");
37839
+
37840
+ var webkit = userAgent.match(/AppleWebKit\/(\d+)\./);
37841
+
37842
+ module.exports = !!webkit && +webkit[1];
37843
+
37844
+
37708
37845
  /***/ }),
37709
37846
 
37710
37847
  /***/ "554d":
@@ -46043,6 +46180,16 @@ module.exports = fails(function () {
46043
46180
 
46044
46181
  module.exports = "<div class=\"interface-tree-node\" @click=\"onClick\">\n <span v-if=\"isLeaf && data.method\" class=\"method\" :class=\"data.method.toLowerCase() \"\n >{{data.method}}</span\n >\n <i class=\"api-icon icon-interface\"></i>\n <span class=\"interface-tree-node-name\" :title=\"data.title\">{{data.title}}</span>\n <i-dropdown\n transfer\n stop-propagation\n class=\"diy-dropdown\"\n transfer-class-name=\"diy-transfer-dropdown\"\n @on-click=\"onClickAction\"\n >\n <i class=\"api-icon icon-more\"></i>\n <i-dropdown-menu slot=\"list\">\n <template v-if=\"isLeaf\">\n <i-dropdown-item name=\"edit-interface\">修改</i-dropdown-item>\n <u-confirm\n title=\"删除接口\"\n @on-ok=\"onDelete('delete-interface')\"\n message=\"删除接口, 是否确认执行?\"\n >\n <i-dropdown-item>删除</i-dropdown-item>\n </u-confirm>\n <i-dropdown-item name=\"copy-interface\">复制</i-dropdown-item>\n </template>\n <template v-else>\n <i-dropdown-item name=\"edit-group\">修改</i-dropdown-item>\n <i-dropdown-item name=\"add-interface\">新增接口</i-dropdown-item>\n <u-confirm\n title=\"删除接口\"\n @on-ok=\"onDelete('delete-group')\"\n message=\"分组内的接口一并删除, 是否确认执行?\"\n >\n <i-dropdown-item>删除</i-dropdown-item>\n </u-confirm>\n </template>\n </i-dropdown-menu>\n </i-dropdown>\n</div>\n"
46045
46182
 
46183
+ /***/ }),
46184
+
46185
+ /***/ "d998":
46186
+ /***/ (function(module, exports, __webpack_require__) {
46187
+
46188
+ var UA = __webpack_require__("342f");
46189
+
46190
+ module.exports = /MSIE|Trident/.test(UA);
46191
+
46192
+
46046
46193
  /***/ }),
46047
46194
 
46048
46195
  /***/ "d9b5":
@@ -51348,6 +51495,9 @@ function (_super) {
51348
51495
  }(project_detail_pre_execution_setting);
51349
51496
 
51350
51497
  /* harmony default export */ var after_execution_script = (after_execution_script_AfterExecutionScript);
51498
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.sort.js
51499
+ var es_array_sort = __webpack_require__("4e82");
51500
+
51351
51501
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.keys.js
51352
51502
  var es_object_keys = __webpack_require__("b64b");
51353
51503
 
@@ -51631,6 +51781,7 @@ var lodash_debounce_default = /*#__PURE__*/__webpack_require__.n(lodash_debounce
51631
51781
 
51632
51782
 
51633
51783
 
51784
+
51634
51785
 
51635
51786
  var after_execution_transfer_extends = undefined && undefined.__extends || function () {
51636
51787
  var _extendStatics = function extendStatics(d, b) {
@@ -51934,6 +52085,8 @@ function (_super) {
51934
52085
  };
51935
52086
 
51936
52087
  AfterExecutionTransfer.prototype.initDataList = function () {
52088
+ var _this = this;
52089
+
51937
52090
  var _a;
51938
52091
 
51939
52092
  if ((_a = this.interfaceModel.fieldMappings) === null || _a === void 0 ? void 0 : _a.length) {
@@ -51941,9 +52094,17 @@ function (_super) {
51941
52094
  return after_execution_transfer_assign(after_execution_transfer_assign({}, g), {
51942
52095
  checked: true
51943
52096
  });
52097
+ }).sort(function (a, b) {
52098
+ var _a;
52099
+
52100
+ return (_a = a.paramPath) === null || _a === void 0 ? void 0 : _a.localeCompare(b.paramPath);
51944
52101
  });
51945
52102
  this.lastDataList = this.dataList.$clone();
51946
52103
  }
52104
+
52105
+ this.$subscribe("api://project-detail-save", function () {
52106
+ _this.lastDataList = _this.dataList.$clone();
52107
+ });
51947
52108
  };
51948
52109
 
51949
52110
  AfterExecutionTransfer.prototype.getFiledMappings = function () {
@@ -51957,16 +52118,13 @@ function (_super) {
51957
52118
  return after_execution_transfer_generator(this, function (_c) {
51958
52119
  switch (_c.label) {
51959
52120
  case 0:
51960
- console.log(this.response);
51961
-
51962
52121
  if (!this.response.originalContent) {
51963
52122
  return [2
51964
52123
  /*return*/
51965
52124
  ];
51966
52125
  }
51967
52126
 
51968
- if (!this.dataList.length) {
51969
- this.lastDataList = this.dataList.$clone();
52127
+ if (this.dataList.length > 0) {
51970
52128
  return [2
51971
52129
  /*return*/
51972
52130
  ];
@@ -53428,10 +53586,10 @@ function (_super) {
53428
53586
  , this.service.saveApiInfo(this.interfaceModel)];
53429
53587
 
53430
53588
  case 1:
53431
- _a.sent(); // 保存后更新 response
53589
+ _a.sent(); // 保存后触发
53432
53590
 
53433
53591
 
53434
- this.response = this.responseCache.get(this.interfaceModel.info.id) || new Response();
53592
+ this.$publish("api://project-detail-save");
53435
53593
  this.loading = false;
53436
53594
  return [2
53437
53595
  /*return*/
@@ -54052,7 +54210,6 @@ function (_super) {
54052
54210
  };
54053
54211
 
54054
54212
  ProjectTree.prototype.onCheckInterface = function (data) {
54055
- console.log("check", data);
54056
54213
  this.$emit("on-check-interface", data);
54057
54214
  };
54058
54215
 
package/dist/index.umd.js CHANGED
@@ -165,6 +165,18 @@ module.exports = function (fn, that) {
165
165
  };
166
166
 
167
167
 
168
+ /***/ }),
169
+
170
+ /***/ "04d1":
171
+ /***/ (function(module, exports, __webpack_require__) {
172
+
173
+ var userAgent = __webpack_require__("342f");
174
+
175
+ var firefox = userAgent.match(/firefox\/(\d+)/i);
176
+
177
+ module.exports = !!firefox && +firefox[1];
178
+
179
+
168
180
  /***/ }),
169
181
 
170
182
  /***/ "057f":
@@ -37640,6 +37652,119 @@ module.exports = function from(arrayLike /* , mapfn = undefined, thisArg = undef
37640
37652
  };
37641
37653
 
37642
37654
 
37655
+ /***/ }),
37656
+
37657
+ /***/ "4e82":
37658
+ /***/ (function(module, exports, __webpack_require__) {
37659
+
37660
+ "use strict";
37661
+
37662
+ var $ = __webpack_require__("23e7");
37663
+ var uncurryThis = __webpack_require__("e330");
37664
+ var aCallable = __webpack_require__("59ed");
37665
+ var toObject = __webpack_require__("7b0b");
37666
+ var lengthOfArrayLike = __webpack_require__("07fa");
37667
+ var toString = __webpack_require__("577e");
37668
+ var fails = __webpack_require__("d039");
37669
+ var internalSort = __webpack_require__("addb");
37670
+ var arrayMethodIsStrict = __webpack_require__("a640");
37671
+ var FF = __webpack_require__("04d1");
37672
+ var IE_OR_EDGE = __webpack_require__("d998");
37673
+ var V8 = __webpack_require__("2d00");
37674
+ var WEBKIT = __webpack_require__("512c");
37675
+
37676
+ var test = [];
37677
+ var un$Sort = uncurryThis(test.sort);
37678
+ var push = uncurryThis(test.push);
37679
+
37680
+ // IE8-
37681
+ var FAILS_ON_UNDEFINED = fails(function () {
37682
+ test.sort(undefined);
37683
+ });
37684
+ // V8 bug
37685
+ var FAILS_ON_NULL = fails(function () {
37686
+ test.sort(null);
37687
+ });
37688
+ // Old WebKit
37689
+ var STRICT_METHOD = arrayMethodIsStrict('sort');
37690
+
37691
+ var STABLE_SORT = !fails(function () {
37692
+ // feature detection can be too slow, so check engines versions
37693
+ if (V8) return V8 < 70;
37694
+ if (FF && FF > 3) return;
37695
+ if (IE_OR_EDGE) return true;
37696
+ if (WEBKIT) return WEBKIT < 603;
37697
+
37698
+ var result = '';
37699
+ var code, chr, value, index;
37700
+
37701
+ // generate an array with more 512 elements (Chakra and old V8 fails only in this case)
37702
+ for (code = 65; code < 76; code++) {
37703
+ chr = String.fromCharCode(code);
37704
+
37705
+ switch (code) {
37706
+ case 66: case 69: case 70: case 72: value = 3; break;
37707
+ case 68: case 71: value = 4; break;
37708
+ default: value = 2;
37709
+ }
37710
+
37711
+ for (index = 0; index < 47; index++) {
37712
+ test.push({ k: chr + index, v: value });
37713
+ }
37714
+ }
37715
+
37716
+ test.sort(function (a, b) { return b.v - a.v; });
37717
+
37718
+ for (index = 0; index < test.length; index++) {
37719
+ chr = test[index].k.charAt(0);
37720
+ if (result.charAt(result.length - 1) !== chr) result += chr;
37721
+ }
37722
+
37723
+ return result !== 'DGBEFHACIJK';
37724
+ });
37725
+
37726
+ var FORCED = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD || !STABLE_SORT;
37727
+
37728
+ var getSortCompare = function (comparefn) {
37729
+ return function (x, y) {
37730
+ if (y === undefined) return -1;
37731
+ if (x === undefined) return 1;
37732
+ if (comparefn !== undefined) return +comparefn(x, y) || 0;
37733
+ return toString(x) > toString(y) ? 1 : -1;
37734
+ };
37735
+ };
37736
+
37737
+ // `Array.prototype.sort` method
37738
+ // https://tc39.es/ecma262/#sec-array.prototype.sort
37739
+ $({ target: 'Array', proto: true, forced: FORCED }, {
37740
+ sort: function sort(comparefn) {
37741
+ if (comparefn !== undefined) aCallable(comparefn);
37742
+
37743
+ var array = toObject(this);
37744
+
37745
+ if (STABLE_SORT) return comparefn === undefined ? un$Sort(array) : un$Sort(array, comparefn);
37746
+
37747
+ var items = [];
37748
+ var arrayLength = lengthOfArrayLike(array);
37749
+ var itemsLength, index;
37750
+
37751
+ for (index = 0; index < arrayLength; index++) {
37752
+ if (index in array) push(items, array[index]);
37753
+ }
37754
+
37755
+ internalSort(items, getSortCompare(comparefn));
37756
+
37757
+ itemsLength = items.length;
37758
+ index = 0;
37759
+
37760
+ while (index < itemsLength) array[index] = items[index++];
37761
+ while (index < arrayLength) delete array[index++];
37762
+
37763
+ return array;
37764
+ }
37765
+ });
37766
+
37767
+
37643
37768
  /***/ }),
37644
37769
 
37645
37770
  /***/ "4ec9":
@@ -37714,6 +37839,18 @@ module.exports = function (argument) {
37714
37839
  };
37715
37840
 
37716
37841
 
37842
+ /***/ }),
37843
+
37844
+ /***/ "512c":
37845
+ /***/ (function(module, exports, __webpack_require__) {
37846
+
37847
+ var userAgent = __webpack_require__("342f");
37848
+
37849
+ var webkit = userAgent.match(/AppleWebKit\/(\d+)\./);
37850
+
37851
+ module.exports = !!webkit && +webkit[1];
37852
+
37853
+
37717
37854
  /***/ }),
37718
37855
 
37719
37856
  /***/ "554d":
@@ -46052,6 +46189,16 @@ module.exports = fails(function () {
46052
46189
 
46053
46190
  module.exports = "<div class=\"interface-tree-node\" @click=\"onClick\">\n <span v-if=\"isLeaf && data.method\" class=\"method\" :class=\"data.method.toLowerCase() \"\n >{{data.method}}</span\n >\n <i class=\"api-icon icon-interface\"></i>\n <span class=\"interface-tree-node-name\" :title=\"data.title\">{{data.title}}</span>\n <i-dropdown\n transfer\n stop-propagation\n class=\"diy-dropdown\"\n transfer-class-name=\"diy-transfer-dropdown\"\n @on-click=\"onClickAction\"\n >\n <i class=\"api-icon icon-more\"></i>\n <i-dropdown-menu slot=\"list\">\n <template v-if=\"isLeaf\">\n <i-dropdown-item name=\"edit-interface\">修改</i-dropdown-item>\n <u-confirm\n title=\"删除接口\"\n @on-ok=\"onDelete('delete-interface')\"\n message=\"删除接口, 是否确认执行?\"\n >\n <i-dropdown-item>删除</i-dropdown-item>\n </u-confirm>\n <i-dropdown-item name=\"copy-interface\">复制</i-dropdown-item>\n </template>\n <template v-else>\n <i-dropdown-item name=\"edit-group\">修改</i-dropdown-item>\n <i-dropdown-item name=\"add-interface\">新增接口</i-dropdown-item>\n <u-confirm\n title=\"删除接口\"\n @on-ok=\"onDelete('delete-group')\"\n message=\"分组内的接口一并删除, 是否确认执行?\"\n >\n <i-dropdown-item>删除</i-dropdown-item>\n </u-confirm>\n </template>\n </i-dropdown-menu>\n </i-dropdown>\n</div>\n"
46054
46191
 
46192
+ /***/ }),
46193
+
46194
+ /***/ "d998":
46195
+ /***/ (function(module, exports, __webpack_require__) {
46196
+
46197
+ var UA = __webpack_require__("342f");
46198
+
46199
+ module.exports = /MSIE|Trident/.test(UA);
46200
+
46201
+
46055
46202
  /***/ }),
46056
46203
 
46057
46204
  /***/ "d9b5":
@@ -51357,6 +51504,9 @@ function (_super) {
51357
51504
  }(project_detail_pre_execution_setting);
51358
51505
 
51359
51506
  /* harmony default export */ var after_execution_script = (after_execution_script_AfterExecutionScript);
51507
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.sort.js
51508
+ var es_array_sort = __webpack_require__("4e82");
51509
+
51360
51510
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.keys.js
51361
51511
  var es_object_keys = __webpack_require__("b64b");
51362
51512
 
@@ -51640,6 +51790,7 @@ var lodash_debounce_default = /*#__PURE__*/__webpack_require__.n(lodash_debounce
51640
51790
 
51641
51791
 
51642
51792
 
51793
+
51643
51794
 
51644
51795
  var after_execution_transfer_extends = undefined && undefined.__extends || function () {
51645
51796
  var _extendStatics = function extendStatics(d, b) {
@@ -51943,6 +52094,8 @@ function (_super) {
51943
52094
  };
51944
52095
 
51945
52096
  AfterExecutionTransfer.prototype.initDataList = function () {
52097
+ var _this = this;
52098
+
51946
52099
  var _a;
51947
52100
 
51948
52101
  if ((_a = this.interfaceModel.fieldMappings) === null || _a === void 0 ? void 0 : _a.length) {
@@ -51950,9 +52103,17 @@ function (_super) {
51950
52103
  return after_execution_transfer_assign(after_execution_transfer_assign({}, g), {
51951
52104
  checked: true
51952
52105
  });
52106
+ }).sort(function (a, b) {
52107
+ var _a;
52108
+
52109
+ return (_a = a.paramPath) === null || _a === void 0 ? void 0 : _a.localeCompare(b.paramPath);
51953
52110
  });
51954
52111
  this.lastDataList = this.dataList.$clone();
51955
52112
  }
52113
+
52114
+ this.$subscribe("api://project-detail-save", function () {
52115
+ _this.lastDataList = _this.dataList.$clone();
52116
+ });
51956
52117
  };
51957
52118
 
51958
52119
  AfterExecutionTransfer.prototype.getFiledMappings = function () {
@@ -51966,16 +52127,13 @@ function (_super) {
51966
52127
  return after_execution_transfer_generator(this, function (_c) {
51967
52128
  switch (_c.label) {
51968
52129
  case 0:
51969
- console.log(this.response);
51970
-
51971
52130
  if (!this.response.originalContent) {
51972
52131
  return [2
51973
52132
  /*return*/
51974
52133
  ];
51975
52134
  }
51976
52135
 
51977
- if (!this.dataList.length) {
51978
- this.lastDataList = this.dataList.$clone();
52136
+ if (this.dataList.length > 0) {
51979
52137
  return [2
51980
52138
  /*return*/
51981
52139
  ];
@@ -53437,10 +53595,10 @@ function (_super) {
53437
53595
  , this.service.saveApiInfo(this.interfaceModel)];
53438
53596
 
53439
53597
  case 1:
53440
- _a.sent(); // 保存后更新 response
53598
+ _a.sent(); // 保存后触发
53441
53599
 
53442
53600
 
53443
- this.response = this.responseCache.get(this.interfaceModel.info.id) || new Response();
53601
+ this.$publish("api://project-detail-save");
53444
53602
  this.loading = false;
53445
53603
  return [2
53446
53604
  /*return*/
@@ -54061,7 +54219,6 @@ function (_super) {
54061
54219
  };
54062
54220
 
54063
54221
  ProjectTree.prototype.onCheckInterface = function (data) {
54064
- console.log("check", data);
54065
54222
  this.$emit("on-check-interface", data);
54066
54223
  };
54067
54224