@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.common.js
CHANGED
|
@@ -41925,7 +41925,7 @@ module.exports = function (S, index, unicode) {
|
|
|
41925
41925
|
/***/ "8ab8":
|
|
41926
41926
|
/***/ (function(module, exports) {
|
|
41927
41927
|
|
|
41928
|
-
module.exports = "<article class=\"pre-execution-setting\">\
|
|
41928
|
+
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"
|
|
41929
41929
|
|
|
41930
41930
|
/***/ }),
|
|
41931
41931
|
|
|
@@ -60371,6 +60371,11 @@ var pre_execution_setting = __webpack_require__("d928");
|
|
|
60371
60371
|
|
|
60372
60372
|
|
|
60373
60373
|
|
|
60374
|
+
|
|
60375
|
+
|
|
60376
|
+
|
|
60377
|
+
|
|
60378
|
+
|
|
60374
60379
|
var pre_execution_setting_extends = undefined && undefined.__extends || function () {
|
|
60375
60380
|
var _extendStatics = function extendStatics(d, b) {
|
|
60376
60381
|
_extendStatics = Object.setPrototypeOf || {
|
|
@@ -60399,6 +60404,22 @@ var pre_execution_setting_extends = undefined && undefined.__extends || function
|
|
|
60399
60404
|
};
|
|
60400
60405
|
}();
|
|
60401
60406
|
|
|
60407
|
+
var pre_execution_setting_assign = undefined && undefined.__assign || function () {
|
|
60408
|
+
pre_execution_setting_assign = Object.assign || function (t) {
|
|
60409
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
60410
|
+
s = arguments[i];
|
|
60411
|
+
|
|
60412
|
+
for (var p in s) {
|
|
60413
|
+
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
60414
|
+
}
|
|
60415
|
+
}
|
|
60416
|
+
|
|
60417
|
+
return t;
|
|
60418
|
+
};
|
|
60419
|
+
|
|
60420
|
+
return pre_execution_setting_assign.apply(this, arguments);
|
|
60421
|
+
};
|
|
60422
|
+
|
|
60402
60423
|
var pre_execution_setting_decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
60403
60424
|
var c = arguments.length,
|
|
60404
60425
|
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
@@ -60564,6 +60585,7 @@ var pre_execution_setting_generator = undefined && undefined.__generator || func
|
|
|
60564
60585
|
|
|
60565
60586
|
|
|
60566
60587
|
|
|
60588
|
+
|
|
60567
60589
|
var pre_execution_setting_PreExecutionSetting =
|
|
60568
60590
|
/** @class */
|
|
60569
60591
|
function (_super) {
|
|
@@ -60573,8 +60595,13 @@ function (_super) {
|
|
|
60573
60595
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
60574
60596
|
|
|
60575
60597
|
_this.scriptData = {};
|
|
60598
|
+
_this.tempScriptData = {};
|
|
60576
60599
|
_this.model = new PreScript();
|
|
60577
60600
|
_this.key = "preScripts";
|
|
60601
|
+
_this.keyword = "";
|
|
60602
|
+
_this.onFilter = lodash_debounce_default()(function () {
|
|
60603
|
+
_this.filterTypeList();
|
|
60604
|
+
}, 300);
|
|
60578
60605
|
return _this;
|
|
60579
60606
|
}
|
|
60580
60607
|
|
|
@@ -60583,18 +60610,26 @@ function (_super) {
|
|
|
60583
60610
|
};
|
|
60584
60611
|
|
|
60585
60612
|
PreExecutionSetting.prototype.getScript = function () {
|
|
60613
|
+
var _a;
|
|
60614
|
+
|
|
60586
60615
|
return pre_execution_setting_awaiter(this, void 0, void 0, function () {
|
|
60587
60616
|
var result;
|
|
60588
|
-
return pre_execution_setting_generator(this, function (
|
|
60589
|
-
switch (
|
|
60617
|
+
return pre_execution_setting_generator(this, function (_b) {
|
|
60618
|
+
switch (_b.label) {
|
|
60590
60619
|
case 0:
|
|
60591
60620
|
return [4
|
|
60592
60621
|
/*yield*/
|
|
60593
60622
|
, this.service.preScript()];
|
|
60594
60623
|
|
|
60595
60624
|
case 1:
|
|
60596
|
-
result =
|
|
60625
|
+
result = _b.sent();
|
|
60597
60626
|
this.scriptData = result || {};
|
|
60627
|
+
this.scriptData.group = (_a = this.scriptData.group) === null || _a === void 0 ? void 0 : _a.map(function (item) {
|
|
60628
|
+
return pre_execution_setting_assign(pre_execution_setting_assign({}, item), {
|
|
60629
|
+
expand: true
|
|
60630
|
+
});
|
|
60631
|
+
});
|
|
60632
|
+
this.tempScriptData = this.scriptData.$clone();
|
|
60598
60633
|
return [2
|
|
60599
60634
|
/*return*/
|
|
60600
60635
|
];
|
|
@@ -60623,6 +60658,40 @@ function (_super) {
|
|
|
60623
60658
|
configurable: true
|
|
60624
60659
|
});
|
|
60625
60660
|
|
|
60661
|
+
PreExecutionSetting.prototype.filterTypeList = function () {
|
|
60662
|
+
var _this = this;
|
|
60663
|
+
|
|
60664
|
+
if (this.keyword) {
|
|
60665
|
+
var tempGroup = this.scriptData.group.map(function (item) {
|
|
60666
|
+
return pre_execution_setting_assign(pre_execution_setting_assign({}, item), {
|
|
60667
|
+
list: item.list.filter(function (listItem) {
|
|
60668
|
+
return listItem.name.indexOf(_this.keyword) !== -1;
|
|
60669
|
+
})
|
|
60670
|
+
});
|
|
60671
|
+
});
|
|
60672
|
+
this.tempScriptData.group = tempGroup.filter(function (item) {
|
|
60673
|
+
return item.list.length;
|
|
60674
|
+
});
|
|
60675
|
+
} else {
|
|
60676
|
+
this.tempScriptData = this.scriptData.$clone();
|
|
60677
|
+
}
|
|
60678
|
+
};
|
|
60679
|
+
|
|
60680
|
+
PreExecutionSetting.prototype.onQuickGroupClick = function (type) {
|
|
60681
|
+
var _a, _b;
|
|
60682
|
+
|
|
60683
|
+
(_a = this.scriptData.group) === null || _a === void 0 ? void 0 : _a.forEach(function (item) {
|
|
60684
|
+
if (type.name === item.name) {
|
|
60685
|
+
item.expand = !item.expand;
|
|
60686
|
+
}
|
|
60687
|
+
});
|
|
60688
|
+
(_b = this.tempScriptData.group) === null || _b === void 0 ? void 0 : _b.forEach(function (item) {
|
|
60689
|
+
if (type.name === item.name) {
|
|
60690
|
+
item.expand = !item.expand;
|
|
60691
|
+
}
|
|
60692
|
+
});
|
|
60693
|
+
};
|
|
60694
|
+
|
|
60626
60695
|
var _a, _b;
|
|
60627
60696
|
|
|
60628
60697
|
pre_execution_setting_decorate([Object(flagwind_web_["config"])({
|
|
@@ -60657,6 +60726,8 @@ function (_super) {
|
|
|
60657
60726
|
|
|
60658
60727
|
|
|
60659
60728
|
|
|
60729
|
+
|
|
60730
|
+
|
|
60660
60731
|
var after_execution_script_extends = undefined && undefined.__extends || function () {
|
|
60661
60732
|
var _extendStatics = function extendStatics(d, b) {
|
|
60662
60733
|
_extendStatics = Object.setPrototypeOf || {
|
|
@@ -60685,6 +60756,22 @@ var after_execution_script_extends = undefined && undefined.__extends || functio
|
|
|
60685
60756
|
};
|
|
60686
60757
|
}();
|
|
60687
60758
|
|
|
60759
|
+
var after_execution_script_assign = undefined && undefined.__assign || function () {
|
|
60760
|
+
after_execution_script_assign = Object.assign || function (t) {
|
|
60761
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
60762
|
+
s = arguments[i];
|
|
60763
|
+
|
|
60764
|
+
for (var p in s) {
|
|
60765
|
+
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
60766
|
+
}
|
|
60767
|
+
}
|
|
60768
|
+
|
|
60769
|
+
return t;
|
|
60770
|
+
};
|
|
60771
|
+
|
|
60772
|
+
return after_execution_script_assign.apply(this, arguments);
|
|
60773
|
+
};
|
|
60774
|
+
|
|
60688
60775
|
var after_execution_script_decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
60689
60776
|
var c = arguments.length,
|
|
60690
60777
|
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
@@ -60856,18 +60943,26 @@ function (_super) {
|
|
|
60856
60943
|
}
|
|
60857
60944
|
|
|
60858
60945
|
AfterExecutionScript.prototype.getScript = function () {
|
|
60946
|
+
var _a;
|
|
60947
|
+
|
|
60859
60948
|
return after_execution_script_awaiter(this, void 0, void 0, function () {
|
|
60860
60949
|
var result;
|
|
60861
|
-
return after_execution_script_generator(this, function (
|
|
60862
|
-
switch (
|
|
60950
|
+
return after_execution_script_generator(this, function (_b) {
|
|
60951
|
+
switch (_b.label) {
|
|
60863
60952
|
case 0:
|
|
60864
60953
|
return [4
|
|
60865
60954
|
/*yield*/
|
|
60866
60955
|
, this.service.postScript()];
|
|
60867
60956
|
|
|
60868
60957
|
case 1:
|
|
60869
|
-
result =
|
|
60958
|
+
result = _b.sent();
|
|
60870
60959
|
this.scriptData = result || {};
|
|
60960
|
+
this.scriptData.group = (_a = this.scriptData.group) === null || _a === void 0 ? void 0 : _a.map(function (item) {
|
|
60961
|
+
return after_execution_script_assign(after_execution_script_assign({}, item), {
|
|
60962
|
+
expand: true
|
|
60963
|
+
});
|
|
60964
|
+
});
|
|
60965
|
+
this.tempScriptData = this.scriptData.$clone();
|
|
60871
60966
|
return [2
|
|
60872
60967
|
/*return*/
|
|
60873
60968
|
];
|