@egova/egova-api 1.0.189 → 1.0.190
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\">\
|
|
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, index) in tempScriptData.group\" class=\"quick-type\">\n <div class=\"quick-type-name\" @click=\"onQuickGroupClick(index)\">\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,10 @@ var pre_execution_setting = __webpack_require__("d928");
|
|
|
60380
60380
|
|
|
60381
60381
|
|
|
60382
60382
|
|
|
60383
|
+
|
|
60384
|
+
|
|
60385
|
+
|
|
60386
|
+
|
|
60383
60387
|
var pre_execution_setting_extends = undefined && undefined.__extends || function () {
|
|
60384
60388
|
var _extendStatics = function extendStatics(d, b) {
|
|
60385
60389
|
_extendStatics = Object.setPrototypeOf || {
|
|
@@ -60408,6 +60412,22 @@ var pre_execution_setting_extends = undefined && undefined.__extends || function
|
|
|
60408
60412
|
};
|
|
60409
60413
|
}();
|
|
60410
60414
|
|
|
60415
|
+
var pre_execution_setting_assign = undefined && undefined.__assign || function () {
|
|
60416
|
+
pre_execution_setting_assign = Object.assign || function (t) {
|
|
60417
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
60418
|
+
s = arguments[i];
|
|
60419
|
+
|
|
60420
|
+
for (var p in s) {
|
|
60421
|
+
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
60422
|
+
}
|
|
60423
|
+
}
|
|
60424
|
+
|
|
60425
|
+
return t;
|
|
60426
|
+
};
|
|
60427
|
+
|
|
60428
|
+
return pre_execution_setting_assign.apply(this, arguments);
|
|
60429
|
+
};
|
|
60430
|
+
|
|
60411
60431
|
var pre_execution_setting_decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
60412
60432
|
var c = arguments.length,
|
|
60413
60433
|
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
@@ -60573,6 +60593,7 @@ var pre_execution_setting_generator = undefined && undefined.__generator || func
|
|
|
60573
60593
|
|
|
60574
60594
|
|
|
60575
60595
|
|
|
60596
|
+
|
|
60576
60597
|
var pre_execution_setting_PreExecutionSetting =
|
|
60577
60598
|
/** @class */
|
|
60578
60599
|
function (_super) {
|
|
@@ -60582,8 +60603,13 @@ function (_super) {
|
|
|
60582
60603
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
60583
60604
|
|
|
60584
60605
|
_this.scriptData = {};
|
|
60606
|
+
_this.tempScriptData = {};
|
|
60585
60607
|
_this.model = new PreScript();
|
|
60586
60608
|
_this.key = "preScripts";
|
|
60609
|
+
_this.keyword = "";
|
|
60610
|
+
_this.onFilter = lodash_debounce_default()(function () {
|
|
60611
|
+
_this.filterTypeList();
|
|
60612
|
+
}, 300);
|
|
60587
60613
|
return _this;
|
|
60588
60614
|
}
|
|
60589
60615
|
|
|
@@ -60592,18 +60618,26 @@ function (_super) {
|
|
|
60592
60618
|
};
|
|
60593
60619
|
|
|
60594
60620
|
PreExecutionSetting.prototype.getScript = function () {
|
|
60621
|
+
var _a;
|
|
60622
|
+
|
|
60595
60623
|
return pre_execution_setting_awaiter(this, void 0, void 0, function () {
|
|
60596
60624
|
var result;
|
|
60597
|
-
return pre_execution_setting_generator(this, function (
|
|
60598
|
-
switch (
|
|
60625
|
+
return pre_execution_setting_generator(this, function (_b) {
|
|
60626
|
+
switch (_b.label) {
|
|
60599
60627
|
case 0:
|
|
60600
60628
|
return [4
|
|
60601
60629
|
/*yield*/
|
|
60602
60630
|
, this.service.preScript()];
|
|
60603
60631
|
|
|
60604
60632
|
case 1:
|
|
60605
|
-
result =
|
|
60633
|
+
result = _b.sent();
|
|
60606
60634
|
this.scriptData = result || {};
|
|
60635
|
+
this.scriptData.group = (_a = this.scriptData.group) === null || _a === void 0 ? void 0 : _a.map(function (item) {
|
|
60636
|
+
return pre_execution_setting_assign(pre_execution_setting_assign({}, item), {
|
|
60637
|
+
expand: true
|
|
60638
|
+
});
|
|
60639
|
+
});
|
|
60640
|
+
this.tempScriptData = this.scriptData.$clone();
|
|
60607
60641
|
return [2
|
|
60608
60642
|
/*return*/
|
|
60609
60643
|
];
|
|
@@ -60632,6 +60666,26 @@ function (_super) {
|
|
|
60632
60666
|
configurable: true
|
|
60633
60667
|
});
|
|
60634
60668
|
|
|
60669
|
+
PreExecutionSetting.prototype.filterTypeList = function () {
|
|
60670
|
+
var _this = this;
|
|
60671
|
+
|
|
60672
|
+
var tempGroup = this.scriptData.group.map(function (item) {
|
|
60673
|
+
return pre_execution_setting_assign(pre_execution_setting_assign({}, item), {
|
|
60674
|
+
list: item.list.filter(function (listItem) {
|
|
60675
|
+
return listItem.name.indexOf(_this.keyword) !== -1;
|
|
60676
|
+
})
|
|
60677
|
+
});
|
|
60678
|
+
});
|
|
60679
|
+
this.tempScriptData.group = tempGroup.filter(function (item) {
|
|
60680
|
+
return item.list.length;
|
|
60681
|
+
});
|
|
60682
|
+
};
|
|
60683
|
+
|
|
60684
|
+
PreExecutionSetting.prototype.onQuickGroupClick = function (index) {
|
|
60685
|
+
this.scriptData.group[index].expand = !this.scriptData.group[index].expand;
|
|
60686
|
+
this.tempScriptData.group[index].expand = !this.tempScriptData.group[index].expand;
|
|
60687
|
+
};
|
|
60688
|
+
|
|
60635
60689
|
var _a, _b;
|
|
60636
60690
|
|
|
60637
60691
|
pre_execution_setting_decorate([Object(flagwind_web_["config"])({
|
|
@@ -60666,6 +60720,8 @@ function (_super) {
|
|
|
60666
60720
|
|
|
60667
60721
|
|
|
60668
60722
|
|
|
60723
|
+
|
|
60724
|
+
|
|
60669
60725
|
var after_execution_script_extends = undefined && undefined.__extends || function () {
|
|
60670
60726
|
var _extendStatics = function extendStatics(d, b) {
|
|
60671
60727
|
_extendStatics = Object.setPrototypeOf || {
|
|
@@ -60694,6 +60750,22 @@ var after_execution_script_extends = undefined && undefined.__extends || functio
|
|
|
60694
60750
|
};
|
|
60695
60751
|
}();
|
|
60696
60752
|
|
|
60753
|
+
var after_execution_script_assign = undefined && undefined.__assign || function () {
|
|
60754
|
+
after_execution_script_assign = Object.assign || function (t) {
|
|
60755
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
60756
|
+
s = arguments[i];
|
|
60757
|
+
|
|
60758
|
+
for (var p in s) {
|
|
60759
|
+
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
60760
|
+
}
|
|
60761
|
+
}
|
|
60762
|
+
|
|
60763
|
+
return t;
|
|
60764
|
+
};
|
|
60765
|
+
|
|
60766
|
+
return after_execution_script_assign.apply(this, arguments);
|
|
60767
|
+
};
|
|
60768
|
+
|
|
60697
60769
|
var after_execution_script_decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
60698
60770
|
var c = arguments.length,
|
|
60699
60771
|
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
@@ -60865,18 +60937,26 @@ function (_super) {
|
|
|
60865
60937
|
}
|
|
60866
60938
|
|
|
60867
60939
|
AfterExecutionScript.prototype.getScript = function () {
|
|
60940
|
+
var _a;
|
|
60941
|
+
|
|
60868
60942
|
return after_execution_script_awaiter(this, void 0, void 0, function () {
|
|
60869
60943
|
var result;
|
|
60870
|
-
return after_execution_script_generator(this, function (
|
|
60871
|
-
switch (
|
|
60944
|
+
return after_execution_script_generator(this, function (_b) {
|
|
60945
|
+
switch (_b.label) {
|
|
60872
60946
|
case 0:
|
|
60873
60947
|
return [4
|
|
60874
60948
|
/*yield*/
|
|
60875
60949
|
, this.service.postScript()];
|
|
60876
60950
|
|
|
60877
60951
|
case 1:
|
|
60878
|
-
result =
|
|
60952
|
+
result = _b.sent();
|
|
60879
60953
|
this.scriptData = result || {};
|
|
60954
|
+
this.scriptData.group = (_a = this.scriptData.group) === null || _a === void 0 ? void 0 : _a.map(function (item) {
|
|
60955
|
+
return after_execution_script_assign(after_execution_script_assign({}, item), {
|
|
60956
|
+
expand: true
|
|
60957
|
+
});
|
|
60958
|
+
});
|
|
60959
|
+
this.tempScriptData = this.scriptData.$clone();
|
|
60880
60960
|
return [2
|
|
60881
60961
|
/*return*/
|
|
60882
60962
|
];
|