@egova/egova-api 1.0.211 → 1.0.212
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 +24 -18
- package/dist/index.umd.js +24 -18
- package/dist/index.umd.min.js +1 -1
- package/package.json +2 -2
package/dist/index.common.js
CHANGED
|
@@ -60883,22 +60883,23 @@ function (_super) {
|
|
|
60883
60883
|
|
|
60884
60884
|
|
|
60885
60885
|
PreExecutionSetting.prototype.displayError = function (value) {
|
|
60886
|
-
var _this = this;
|
|
60886
|
+
var _this = this; // 检查错误行是否在当前代码编辑器可视区
|
|
60887
60887
|
|
|
60888
|
-
if (value === null || value === void 0 ? void 0 : value.length) {
|
|
60889
|
-
// 检查错误行是否在当前代码编辑器可视区
|
|
60890
|
-
var textAll_1 = document.getElementsByClassName("ace_gutter-cell"); // 清楚上一次所有的错误图标
|
|
60891
60888
|
|
|
60892
|
-
|
|
60893
|
-
var _a;
|
|
60889
|
+
var textAll = document.getElementsByClassName("ace_gutter-cell"); // 清楚上一次所有的错误图标
|
|
60894
60890
|
|
|
60895
|
-
|
|
60896
|
-
|
|
60897
|
-
}); // 清楚保存错误信息的容器
|
|
60891
|
+
this.errorMap.forEach(function (value, key) {
|
|
60892
|
+
var _a;
|
|
60898
60893
|
|
|
60899
|
-
|
|
60894
|
+
var son = (_a = textAll[value]) === null || _a === void 0 ? void 0 : _a.firstElementChild;
|
|
60895
|
+
son && textAll[value].removeChild(son);
|
|
60896
|
+
}); // 清楚保存错误信息的容器
|
|
60897
|
+
|
|
60898
|
+
this.errorMap.clear();
|
|
60899
|
+
|
|
60900
|
+
if (value === null || value === void 0 ? void 0 : value.length) {
|
|
60900
60901
|
value.forEach(function (h) {
|
|
60901
|
-
|
|
60902
|
+
textAll === null || textAll === void 0 ? void 0 : textAll.forEach(function (v, index) {
|
|
60902
60903
|
// 如果当前错误行在可视区内
|
|
60903
60904
|
if ((v === null || v === void 0 ? void 0 : v.innerHTML) === h + "") {
|
|
60904
60905
|
var text = v;
|
|
@@ -61038,8 +61039,7 @@ function (_super) {
|
|
|
61038
61039
|
}), pre_execution_setting_metadata("design:type", Object)], PreExecutionSetting.prototype, "errorLine", void 0);
|
|
61039
61040
|
|
|
61040
61041
|
pre_execution_setting_decorate([Object(flagwind_web_["watch"])("errorLine", {
|
|
61041
|
-
immediate: true
|
|
61042
|
-
deep: true
|
|
61042
|
+
immediate: true
|
|
61043
61043
|
}), pre_execution_setting_metadata("design:type", Function), pre_execution_setting_metadata("design:paramtypes", [Object]), pre_execution_setting_metadata("design:returntype", void 0)], PreExecutionSetting.prototype, "handleError", null);
|
|
61044
61044
|
|
|
61045
61045
|
PreExecutionSetting = pre_execution_setting_decorate([Object(flagwind_web_["component"])({
|
|
@@ -64197,23 +64197,22 @@ function (_super) {
|
|
|
64197
64197
|
switch (_g.label) {
|
|
64198
64198
|
case 0:
|
|
64199
64199
|
this.loading = true;
|
|
64200
|
-
this.originId = ((_b = (_a = this.interfaceModel) === null || _a === void 0 ? void 0 : _a.info) === null || _b === void 0 ? void 0 : _b.id) || "";
|
|
64201
64200
|
formParams = [];
|
|
64202
64201
|
requestHeaders = [];
|
|
64203
64202
|
|
|
64204
|
-
if (((
|
|
64203
|
+
if (((_a = this.interfaceModel.formParams) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
64205
64204
|
formParams = this.interfaceModel.formParams.filter(function (param) {
|
|
64206
64205
|
return !param.disabled;
|
|
64207
64206
|
});
|
|
64208
64207
|
}
|
|
64209
64208
|
|
|
64210
|
-
if (((
|
|
64209
|
+
if (((_b = this.interfaceModel.requestHeaders) === null || _b === void 0 ? void 0 : _b.length) > 0) {
|
|
64211
64210
|
requestHeaders = this.interfaceModel.requestHeaders.filter(function (param) {
|
|
64212
64211
|
return !param.disabled;
|
|
64213
64212
|
});
|
|
64214
64213
|
}
|
|
64215
64214
|
|
|
64216
|
-
if (!((
|
|
64215
|
+
if (!((_c = this.interfaceModel.environmentParam) === null || _c === void 0 ? void 0 : _c.length)) {
|
|
64217
64216
|
index = this.paramList.findIndex(function (v) {
|
|
64218
64217
|
return v.id === _this.interfaceModel.info.envId;
|
|
64219
64218
|
});
|
|
@@ -64238,7 +64237,14 @@ function (_super) {
|
|
|
64238
64237
|
}
|
|
64239
64238
|
|
|
64240
64239
|
this.responseCache.set(this.interfaceModel.info.id, this.response);
|
|
64241
|
-
|
|
64240
|
+
|
|
64241
|
+
if ((_d = this.response.errorLineNumbers) === null || _d === void 0 ? void 0 : _d.length) {
|
|
64242
|
+
this.errorLine = this.response.errorLineNumbers;
|
|
64243
|
+
} else {
|
|
64244
|
+
this.errorLine = null;
|
|
64245
|
+
}
|
|
64246
|
+
|
|
64247
|
+
this.originId = ((_f = (_e = this.interfaceModel) === null || _e === void 0 ? void 0 : _e.info) === null || _f === void 0 ? void 0 : _f.id) || "";
|
|
64242
64248
|
return [2
|
|
64243
64249
|
/*return*/
|
|
64244
64250
|
];
|
package/dist/index.umd.js
CHANGED
|
@@ -60892,22 +60892,23 @@ function (_super) {
|
|
|
60892
60892
|
|
|
60893
60893
|
|
|
60894
60894
|
PreExecutionSetting.prototype.displayError = function (value) {
|
|
60895
|
-
var _this = this;
|
|
60895
|
+
var _this = this; // 检查错误行是否在当前代码编辑器可视区
|
|
60896
60896
|
|
|
60897
|
-
if (value === null || value === void 0 ? void 0 : value.length) {
|
|
60898
|
-
// 检查错误行是否在当前代码编辑器可视区
|
|
60899
|
-
var textAll_1 = document.getElementsByClassName("ace_gutter-cell"); // 清楚上一次所有的错误图标
|
|
60900
60897
|
|
|
60901
|
-
|
|
60902
|
-
var _a;
|
|
60898
|
+
var textAll = document.getElementsByClassName("ace_gutter-cell"); // 清楚上一次所有的错误图标
|
|
60903
60899
|
|
|
60904
|
-
|
|
60905
|
-
|
|
60906
|
-
}); // 清楚保存错误信息的容器
|
|
60900
|
+
this.errorMap.forEach(function (value, key) {
|
|
60901
|
+
var _a;
|
|
60907
60902
|
|
|
60908
|
-
|
|
60903
|
+
var son = (_a = textAll[value]) === null || _a === void 0 ? void 0 : _a.firstElementChild;
|
|
60904
|
+
son && textAll[value].removeChild(son);
|
|
60905
|
+
}); // 清楚保存错误信息的容器
|
|
60906
|
+
|
|
60907
|
+
this.errorMap.clear();
|
|
60908
|
+
|
|
60909
|
+
if (value === null || value === void 0 ? void 0 : value.length) {
|
|
60909
60910
|
value.forEach(function (h) {
|
|
60910
|
-
|
|
60911
|
+
textAll === null || textAll === void 0 ? void 0 : textAll.forEach(function (v, index) {
|
|
60911
60912
|
// 如果当前错误行在可视区内
|
|
60912
60913
|
if ((v === null || v === void 0 ? void 0 : v.innerHTML) === h + "") {
|
|
60913
60914
|
var text = v;
|
|
@@ -61047,8 +61048,7 @@ function (_super) {
|
|
|
61047
61048
|
}), pre_execution_setting_metadata("design:type", Object)], PreExecutionSetting.prototype, "errorLine", void 0);
|
|
61048
61049
|
|
|
61049
61050
|
pre_execution_setting_decorate([Object(flagwind_web_["watch"])("errorLine", {
|
|
61050
|
-
immediate: true
|
|
61051
|
-
deep: true
|
|
61051
|
+
immediate: true
|
|
61052
61052
|
}), pre_execution_setting_metadata("design:type", Function), pre_execution_setting_metadata("design:paramtypes", [Object]), pre_execution_setting_metadata("design:returntype", void 0)], PreExecutionSetting.prototype, "handleError", null);
|
|
61053
61053
|
|
|
61054
61054
|
PreExecutionSetting = pre_execution_setting_decorate([Object(flagwind_web_["component"])({
|
|
@@ -64206,23 +64206,22 @@ function (_super) {
|
|
|
64206
64206
|
switch (_g.label) {
|
|
64207
64207
|
case 0:
|
|
64208
64208
|
this.loading = true;
|
|
64209
|
-
this.originId = ((_b = (_a = this.interfaceModel) === null || _a === void 0 ? void 0 : _a.info) === null || _b === void 0 ? void 0 : _b.id) || "";
|
|
64210
64209
|
formParams = [];
|
|
64211
64210
|
requestHeaders = [];
|
|
64212
64211
|
|
|
64213
|
-
if (((
|
|
64212
|
+
if (((_a = this.interfaceModel.formParams) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
64214
64213
|
formParams = this.interfaceModel.formParams.filter(function (param) {
|
|
64215
64214
|
return !param.disabled;
|
|
64216
64215
|
});
|
|
64217
64216
|
}
|
|
64218
64217
|
|
|
64219
|
-
if (((
|
|
64218
|
+
if (((_b = this.interfaceModel.requestHeaders) === null || _b === void 0 ? void 0 : _b.length) > 0) {
|
|
64220
64219
|
requestHeaders = this.interfaceModel.requestHeaders.filter(function (param) {
|
|
64221
64220
|
return !param.disabled;
|
|
64222
64221
|
});
|
|
64223
64222
|
}
|
|
64224
64223
|
|
|
64225
|
-
if (!((
|
|
64224
|
+
if (!((_c = this.interfaceModel.environmentParam) === null || _c === void 0 ? void 0 : _c.length)) {
|
|
64226
64225
|
index = this.paramList.findIndex(function (v) {
|
|
64227
64226
|
return v.id === _this.interfaceModel.info.envId;
|
|
64228
64227
|
});
|
|
@@ -64247,7 +64246,14 @@ function (_super) {
|
|
|
64247
64246
|
}
|
|
64248
64247
|
|
|
64249
64248
|
this.responseCache.set(this.interfaceModel.info.id, this.response);
|
|
64250
|
-
|
|
64249
|
+
|
|
64250
|
+
if ((_d = this.response.errorLineNumbers) === null || _d === void 0 ? void 0 : _d.length) {
|
|
64251
|
+
this.errorLine = this.response.errorLineNumbers;
|
|
64252
|
+
} else {
|
|
64253
|
+
this.errorLine = null;
|
|
64254
|
+
}
|
|
64255
|
+
|
|
64256
|
+
this.originId = ((_f = (_e = this.interfaceModel) === null || _e === void 0 ? void 0 : _e.info) === null || _f === void 0 ? void 0 : _f.id) || "";
|
|
64251
64257
|
return [2
|
|
64252
64258
|
/*return*/
|
|
64253
64259
|
];
|