@egova/egova-api 1.0.189 → 1.0.192

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.
package/dist/index.umd.js CHANGED
@@ -41934,7 +41934,7 @@ module.exports = function (S, index, unicode) {
41934
41934
  /***/ "8ab8":
41935
41935
  /***/ (function(module, exports) {
41936
41936
 
41937
- module.exports = "<article class=\"pre-execution-setting\">\r\n <section class=\"script\">\r\n <u-editor\r\n @inited=\"onEditorInited\"\r\n :value.sync=\"script\"\r\n lang=\"groovy\"\r\n ></u-editor>\r\n </section>\r\n <section class=\"quick-input\">\r\n <div class=\"info\">\r\n <p>{{scriptData.description}}</p>\r\n <!-- <ul>\r\n <li>request: 请求</li>\r\n </ul> -->\r\n </div>\r\n <div class=\"quick-list\">\r\n <div v-for=\"type in scriptData.group\" class=\"quick-type\">\r\n <p>{{type.name}}</p>\r\n <div\r\n v-for=\"item in type.list\"\r\n :key=\"item.name\"\r\n class=\"quick-item\"\r\n @click=\"onClickItem(item)\"\r\n >\r\n <i class=\"api-icon icon-item\"></i> {{item.name}}\r\n </div>\r\n </div>\r\n </div>\r\n </section>\r\n</article>\r\n"
41937
+ module.exports = "<article class=\"pre-execution-setting\">\n <section class=\"script\">\n <u-editor\n @inited=\"onEditorInited\"\n :value.sync=\"script\"\n lang=\"groovy\"\n ></u-editor>\n </section>\n <section class=\"quick-input\">\n <div class=\"info\">\n <p>{{scriptData.description}}</p>\n <!-- <ul>\n <li>request: 请求</li>\n </ul> -->\n </div>\n <i-input class=\"diy-input\" v-model=\"keyword\" @on-change=\"onFilter\" placeholder=\"输入关键字查询\">\n <i class=\"iconfont icon-chaxun\" slot=\"prefix\"></i>\n </i-input>\n <div class=\"quick-list\">\n <div v-for=\"type in tempScriptData.group\" class=\"quick-type\">\n <div class=\"quick-type-name\" @click=\"onQuickGroupClick(type)\">\n <i-icon type=\"md-arrow-dropright\" :class=\"type.expand ? 'expand' : ''\"/>\n <p>{{type.name}}</p>\n </div>\n <div\n v-show=\"type.expand\"\n v-for=\"item in type.list\"\n :key=\"item.name\"\n class=\"quick-item\"\n @click=\"onClickItem(item)\"\n >\n <i class=\"api-icon icon-item\"></i> {{item.name}}\n </div>\n </div>\n </div>\n </section>\n</article>\n"
41938
41938
 
41939
41939
  /***/ }),
41940
41940
 
@@ -60380,6 +60380,11 @@ var pre_execution_setting = __webpack_require__("d928");
60380
60380
 
60381
60381
 
60382
60382
 
60383
+
60384
+
60385
+
60386
+
60387
+
60383
60388
  var pre_execution_setting_extends = undefined && undefined.__extends || function () {
60384
60389
  var _extendStatics = function extendStatics(d, b) {
60385
60390
  _extendStatics = Object.setPrototypeOf || {
@@ -60408,6 +60413,22 @@ var pre_execution_setting_extends = undefined && undefined.__extends || function
60408
60413
  };
60409
60414
  }();
60410
60415
 
60416
+ var pre_execution_setting_assign = undefined && undefined.__assign || function () {
60417
+ pre_execution_setting_assign = Object.assign || function (t) {
60418
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
60419
+ s = arguments[i];
60420
+
60421
+ for (var p in s) {
60422
+ if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
60423
+ }
60424
+ }
60425
+
60426
+ return t;
60427
+ };
60428
+
60429
+ return pre_execution_setting_assign.apply(this, arguments);
60430
+ };
60431
+
60411
60432
  var pre_execution_setting_decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
60412
60433
  var c = arguments.length,
60413
60434
  r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
@@ -60573,6 +60594,7 @@ var pre_execution_setting_generator = undefined && undefined.__generator || func
60573
60594
 
60574
60595
 
60575
60596
 
60597
+
60576
60598
  var pre_execution_setting_PreExecutionSetting =
60577
60599
  /** @class */
60578
60600
  function (_super) {
@@ -60582,8 +60604,13 @@ function (_super) {
60582
60604
  var _this = _super !== null && _super.apply(this, arguments) || this;
60583
60605
 
60584
60606
  _this.scriptData = {};
60607
+ _this.tempScriptData = {};
60585
60608
  _this.model = new PreScript();
60586
60609
  _this.key = "preScripts";
60610
+ _this.keyword = "";
60611
+ _this.onFilter = lodash_debounce_default()(function () {
60612
+ _this.filterTypeList();
60613
+ }, 300);
60587
60614
  return _this;
60588
60615
  }
60589
60616
 
@@ -60592,18 +60619,26 @@ function (_super) {
60592
60619
  };
60593
60620
 
60594
60621
  PreExecutionSetting.prototype.getScript = function () {
60622
+ var _a;
60623
+
60595
60624
  return pre_execution_setting_awaiter(this, void 0, void 0, function () {
60596
60625
  var result;
60597
- return pre_execution_setting_generator(this, function (_a) {
60598
- switch (_a.label) {
60626
+ return pre_execution_setting_generator(this, function (_b) {
60627
+ switch (_b.label) {
60599
60628
  case 0:
60600
60629
  return [4
60601
60630
  /*yield*/
60602
60631
  , this.service.preScript()];
60603
60632
 
60604
60633
  case 1:
60605
- result = _a.sent();
60634
+ result = _b.sent();
60606
60635
  this.scriptData = result || {};
60636
+ this.scriptData.group = (_a = this.scriptData.group) === null || _a === void 0 ? void 0 : _a.map(function (item) {
60637
+ return pre_execution_setting_assign(pre_execution_setting_assign({}, item), {
60638
+ expand: true
60639
+ });
60640
+ });
60641
+ this.tempScriptData = this.scriptData.$clone();
60607
60642
  return [2
60608
60643
  /*return*/
60609
60644
  ];
@@ -60632,6 +60667,40 @@ function (_super) {
60632
60667
  configurable: true
60633
60668
  });
60634
60669
 
60670
+ PreExecutionSetting.prototype.filterTypeList = function () {
60671
+ var _this = this;
60672
+
60673
+ if (this.keyword) {
60674
+ var tempGroup = this.scriptData.group.map(function (item) {
60675
+ return pre_execution_setting_assign(pre_execution_setting_assign({}, item), {
60676
+ list: item.list.filter(function (listItem) {
60677
+ return listItem.name.indexOf(_this.keyword) !== -1;
60678
+ })
60679
+ });
60680
+ });
60681
+ this.tempScriptData.group = tempGroup.filter(function (item) {
60682
+ return item.list.length;
60683
+ });
60684
+ } else {
60685
+ this.tempScriptData = this.scriptData.$clone();
60686
+ }
60687
+ };
60688
+
60689
+ PreExecutionSetting.prototype.onQuickGroupClick = function (type) {
60690
+ var _a, _b;
60691
+
60692
+ (_a = this.scriptData.group) === null || _a === void 0 ? void 0 : _a.forEach(function (item) {
60693
+ if (type.name === item.name) {
60694
+ item.expand = !item.expand;
60695
+ }
60696
+ });
60697
+ (_b = this.tempScriptData.group) === null || _b === void 0 ? void 0 : _b.forEach(function (item) {
60698
+ if (type.name === item.name) {
60699
+ item.expand = !item.expand;
60700
+ }
60701
+ });
60702
+ };
60703
+
60635
60704
  var _a, _b;
60636
60705
 
60637
60706
  pre_execution_setting_decorate([Object(flagwind_web_["config"])({
@@ -60666,6 +60735,8 @@ function (_super) {
60666
60735
 
60667
60736
 
60668
60737
 
60738
+
60739
+
60669
60740
  var after_execution_script_extends = undefined && undefined.__extends || function () {
60670
60741
  var _extendStatics = function extendStatics(d, b) {
60671
60742
  _extendStatics = Object.setPrototypeOf || {
@@ -60694,6 +60765,22 @@ var after_execution_script_extends = undefined && undefined.__extends || functio
60694
60765
  };
60695
60766
  }();
60696
60767
 
60768
+ var after_execution_script_assign = undefined && undefined.__assign || function () {
60769
+ after_execution_script_assign = Object.assign || function (t) {
60770
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
60771
+ s = arguments[i];
60772
+
60773
+ for (var p in s) {
60774
+ if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
60775
+ }
60776
+ }
60777
+
60778
+ return t;
60779
+ };
60780
+
60781
+ return after_execution_script_assign.apply(this, arguments);
60782
+ };
60783
+
60697
60784
  var after_execution_script_decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
60698
60785
  var c = arguments.length,
60699
60786
  r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
@@ -60865,18 +60952,26 @@ function (_super) {
60865
60952
  }
60866
60953
 
60867
60954
  AfterExecutionScript.prototype.getScript = function () {
60955
+ var _a;
60956
+
60868
60957
  return after_execution_script_awaiter(this, void 0, void 0, function () {
60869
60958
  var result;
60870
- return after_execution_script_generator(this, function (_a) {
60871
- switch (_a.label) {
60959
+ return after_execution_script_generator(this, function (_b) {
60960
+ switch (_b.label) {
60872
60961
  case 0:
60873
60962
  return [4
60874
60963
  /*yield*/
60875
60964
  , this.service.postScript()];
60876
60965
 
60877
60966
  case 1:
60878
- result = _a.sent();
60967
+ result = _b.sent();
60879
60968
  this.scriptData = result || {};
60969
+ this.scriptData.group = (_a = this.scriptData.group) === null || _a === void 0 ? void 0 : _a.map(function (item) {
60970
+ return after_execution_script_assign(after_execution_script_assign({}, item), {
60971
+ expand: true
60972
+ });
60973
+ });
60974
+ this.tempScriptData = this.scriptData.$clone();
60880
60975
  return [2
60881
60976
  /*return*/
60882
60977
  ];