@egova/egova-api 1.0.65 → 1.0.66
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 +23 -5
- package/dist/index.umd.js +23 -5
- package/dist/index.umd.min.js +1 -1
- package/package.json +2 -2
package/dist/index.common.js
CHANGED
|
@@ -51957,15 +51957,32 @@ function (_super) {
|
|
|
51957
51957
|
return after_execution_transfer_generator(this, function (_c) {
|
|
51958
51958
|
switch (_c.label) {
|
|
51959
51959
|
case 0:
|
|
51960
|
-
if (!this.response.originalContent)
|
|
51961
|
-
|
|
51962
|
-
|
|
51960
|
+
if (!this.response.originalContent) {
|
|
51961
|
+
return [2
|
|
51962
|
+
/*return*/
|
|
51963
|
+
];
|
|
51964
|
+
}
|
|
51965
|
+
|
|
51966
|
+
if (!this.dataList.length) {
|
|
51967
|
+
this.lastDataList = this.dataList.$clone();
|
|
51968
|
+
return [2
|
|
51969
|
+
/*return*/
|
|
51970
|
+
];
|
|
51971
|
+
}
|
|
51972
|
+
|
|
51963
51973
|
return [4
|
|
51964
51974
|
/*yield*/
|
|
51965
51975
|
, this.service.parseResponse2Fields(this.response.originalContent, (_a = this.interfaceModel.convertConfig) === null || _a === void 0 ? void 0 : _a.convertRoot)];
|
|
51966
51976
|
|
|
51967
51977
|
case 1:
|
|
51968
51978
|
result = _c.sent();
|
|
51979
|
+
|
|
51980
|
+
if (result === null || result === void 0 ? void 0 : result.hasError) {
|
|
51981
|
+
return [2
|
|
51982
|
+
/*return*/
|
|
51983
|
+
];
|
|
51984
|
+
}
|
|
51985
|
+
|
|
51969
51986
|
dataList = ((_b = result === null || result === void 0 ? void 0 : result.result) === null || _b === void 0 ? void 0 : _b.fieldMappings) || [];
|
|
51970
51987
|
checkArray = this.interfaceModel.fieldMappings;
|
|
51971
51988
|
set = new Set(checkArray.map(function (v) {
|
|
@@ -51982,7 +51999,6 @@ function (_super) {
|
|
|
51982
51999
|
}
|
|
51983
52000
|
});
|
|
51984
52001
|
this.dataList = dataList;
|
|
51985
|
-
this.lastDataList = this.dataList.$clone();
|
|
51986
52002
|
return [2
|
|
51987
52003
|
/*return*/
|
|
51988
52004
|
];
|
|
@@ -53410,8 +53426,10 @@ function (_super) {
|
|
|
53410
53426
|
, this.service.saveApiInfo(this.interfaceModel)];
|
|
53411
53427
|
|
|
53412
53428
|
case 1:
|
|
53413
|
-
_a.sent();
|
|
53429
|
+
_a.sent(); // 保存后更新 response
|
|
53430
|
+
|
|
53414
53431
|
|
|
53432
|
+
this.response = this.responseCache.get(this.interfaceModel.info.id) || new Response();
|
|
53415
53433
|
this.loading = false;
|
|
53416
53434
|
return [2
|
|
53417
53435
|
/*return*/
|
package/dist/index.umd.js
CHANGED
|
@@ -51966,15 +51966,32 @@ function (_super) {
|
|
|
51966
51966
|
return after_execution_transfer_generator(this, function (_c) {
|
|
51967
51967
|
switch (_c.label) {
|
|
51968
51968
|
case 0:
|
|
51969
|
-
if (!this.response.originalContent)
|
|
51970
|
-
|
|
51971
|
-
|
|
51969
|
+
if (!this.response.originalContent) {
|
|
51970
|
+
return [2
|
|
51971
|
+
/*return*/
|
|
51972
|
+
];
|
|
51973
|
+
}
|
|
51974
|
+
|
|
51975
|
+
if (!this.dataList.length) {
|
|
51976
|
+
this.lastDataList = this.dataList.$clone();
|
|
51977
|
+
return [2
|
|
51978
|
+
/*return*/
|
|
51979
|
+
];
|
|
51980
|
+
}
|
|
51981
|
+
|
|
51972
51982
|
return [4
|
|
51973
51983
|
/*yield*/
|
|
51974
51984
|
, this.service.parseResponse2Fields(this.response.originalContent, (_a = this.interfaceModel.convertConfig) === null || _a === void 0 ? void 0 : _a.convertRoot)];
|
|
51975
51985
|
|
|
51976
51986
|
case 1:
|
|
51977
51987
|
result = _c.sent();
|
|
51988
|
+
|
|
51989
|
+
if (result === null || result === void 0 ? void 0 : result.hasError) {
|
|
51990
|
+
return [2
|
|
51991
|
+
/*return*/
|
|
51992
|
+
];
|
|
51993
|
+
}
|
|
51994
|
+
|
|
51978
51995
|
dataList = ((_b = result === null || result === void 0 ? void 0 : result.result) === null || _b === void 0 ? void 0 : _b.fieldMappings) || [];
|
|
51979
51996
|
checkArray = this.interfaceModel.fieldMappings;
|
|
51980
51997
|
set = new Set(checkArray.map(function (v) {
|
|
@@ -51991,7 +52008,6 @@ function (_super) {
|
|
|
51991
52008
|
}
|
|
51992
52009
|
});
|
|
51993
52010
|
this.dataList = dataList;
|
|
51994
|
-
this.lastDataList = this.dataList.$clone();
|
|
51995
52011
|
return [2
|
|
51996
52012
|
/*return*/
|
|
51997
52013
|
];
|
|
@@ -53419,8 +53435,10 @@ function (_super) {
|
|
|
53419
53435
|
, this.service.saveApiInfo(this.interfaceModel)];
|
|
53420
53436
|
|
|
53421
53437
|
case 1:
|
|
53422
|
-
_a.sent();
|
|
53438
|
+
_a.sent(); // 保存后更新 response
|
|
53439
|
+
|
|
53423
53440
|
|
|
53441
|
+
this.response = this.responseCache.get(this.interfaceModel.info.id) || new Response();
|
|
53424
53442
|
this.loading = false;
|
|
53425
53443
|
return [2
|
|
53426
53444
|
/*return*/
|