@egova/egova-api 1.0.65 → 1.0.69
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 +31 -5
- package/dist/index.umd.js +31 -5
- package/dist/index.umd.min.js +3 -3
- package/package.json +2 -2
package/dist/index.common.js
CHANGED
|
@@ -51934,6 +51934,8 @@ function (_super) {
|
|
|
51934
51934
|
};
|
|
51935
51935
|
|
|
51936
51936
|
AfterExecutionTransfer.prototype.initDataList = function () {
|
|
51937
|
+
var _this = this;
|
|
51938
|
+
|
|
51937
51939
|
var _a;
|
|
51938
51940
|
|
|
51939
51941
|
if ((_a = this.interfaceModel.fieldMappings) === null || _a === void 0 ? void 0 : _a.length) {
|
|
@@ -51944,6 +51946,11 @@ function (_super) {
|
|
|
51944
51946
|
});
|
|
51945
51947
|
this.lastDataList = this.dataList.$clone();
|
|
51946
51948
|
}
|
|
51949
|
+
|
|
51950
|
+
this.$subscribe("api://project-detail-save", function () {
|
|
51951
|
+
console.log("api://project-detail-save", _this.dataList);
|
|
51952
|
+
_this.lastDataList = _this.dataList.$clone();
|
|
51953
|
+
});
|
|
51947
51954
|
};
|
|
51948
51955
|
|
|
51949
51956
|
AfterExecutionTransfer.prototype.getFiledMappings = function () {
|
|
@@ -51957,15 +51964,33 @@ function (_super) {
|
|
|
51957
51964
|
return after_execution_transfer_generator(this, function (_c) {
|
|
51958
51965
|
switch (_c.label) {
|
|
51959
51966
|
case 0:
|
|
51960
|
-
|
|
51961
|
-
|
|
51962
|
-
|
|
51967
|
+
console.log("response", this.response);
|
|
51968
|
+
|
|
51969
|
+
if (!this.response.originalContent) {
|
|
51970
|
+
return [2
|
|
51971
|
+
/*return*/
|
|
51972
|
+
];
|
|
51973
|
+
}
|
|
51974
|
+
|
|
51975
|
+
if (this.dataList.length > 0) {
|
|
51976
|
+
return [2
|
|
51977
|
+
/*return*/
|
|
51978
|
+
];
|
|
51979
|
+
}
|
|
51980
|
+
|
|
51963
51981
|
return [4
|
|
51964
51982
|
/*yield*/
|
|
51965
51983
|
, this.service.parseResponse2Fields(this.response.originalContent, (_a = this.interfaceModel.convertConfig) === null || _a === void 0 ? void 0 : _a.convertRoot)];
|
|
51966
51984
|
|
|
51967
51985
|
case 1:
|
|
51968
51986
|
result = _c.sent();
|
|
51987
|
+
|
|
51988
|
+
if (result === null || result === void 0 ? void 0 : result.hasError) {
|
|
51989
|
+
return [2
|
|
51990
|
+
/*return*/
|
|
51991
|
+
];
|
|
51992
|
+
}
|
|
51993
|
+
|
|
51969
51994
|
dataList = ((_b = result === null || result === void 0 ? void 0 : result.result) === null || _b === void 0 ? void 0 : _b.fieldMappings) || [];
|
|
51970
51995
|
checkArray = this.interfaceModel.fieldMappings;
|
|
51971
51996
|
set = new Set(checkArray.map(function (v) {
|
|
@@ -51982,7 +52007,6 @@ function (_super) {
|
|
|
51982
52007
|
}
|
|
51983
52008
|
});
|
|
51984
52009
|
this.dataList = dataList;
|
|
51985
|
-
this.lastDataList = this.dataList.$clone();
|
|
51986
52010
|
return [2
|
|
51987
52011
|
/*return*/
|
|
51988
52012
|
];
|
|
@@ -53410,8 +53434,10 @@ function (_super) {
|
|
|
53410
53434
|
, this.service.saveApiInfo(this.interfaceModel)];
|
|
53411
53435
|
|
|
53412
53436
|
case 1:
|
|
53413
|
-
_a.sent();
|
|
53437
|
+
_a.sent(); // 保存后触发
|
|
53438
|
+
|
|
53414
53439
|
|
|
53440
|
+
this.$publish("api://project-detail-save");
|
|
53415
53441
|
this.loading = false;
|
|
53416
53442
|
return [2
|
|
53417
53443
|
/*return*/
|
package/dist/index.umd.js
CHANGED
|
@@ -51943,6 +51943,8 @@ function (_super) {
|
|
|
51943
51943
|
};
|
|
51944
51944
|
|
|
51945
51945
|
AfterExecutionTransfer.prototype.initDataList = function () {
|
|
51946
|
+
var _this = this;
|
|
51947
|
+
|
|
51946
51948
|
var _a;
|
|
51947
51949
|
|
|
51948
51950
|
if ((_a = this.interfaceModel.fieldMappings) === null || _a === void 0 ? void 0 : _a.length) {
|
|
@@ -51953,6 +51955,11 @@ function (_super) {
|
|
|
51953
51955
|
});
|
|
51954
51956
|
this.lastDataList = this.dataList.$clone();
|
|
51955
51957
|
}
|
|
51958
|
+
|
|
51959
|
+
this.$subscribe("api://project-detail-save", function () {
|
|
51960
|
+
console.log("api://project-detail-save", _this.dataList);
|
|
51961
|
+
_this.lastDataList = _this.dataList.$clone();
|
|
51962
|
+
});
|
|
51956
51963
|
};
|
|
51957
51964
|
|
|
51958
51965
|
AfterExecutionTransfer.prototype.getFiledMappings = function () {
|
|
@@ -51966,15 +51973,33 @@ function (_super) {
|
|
|
51966
51973
|
return after_execution_transfer_generator(this, function (_c) {
|
|
51967
51974
|
switch (_c.label) {
|
|
51968
51975
|
case 0:
|
|
51969
|
-
|
|
51970
|
-
|
|
51971
|
-
|
|
51976
|
+
console.log("response", this.response);
|
|
51977
|
+
|
|
51978
|
+
if (!this.response.originalContent) {
|
|
51979
|
+
return [2
|
|
51980
|
+
/*return*/
|
|
51981
|
+
];
|
|
51982
|
+
}
|
|
51983
|
+
|
|
51984
|
+
if (this.dataList.length > 0) {
|
|
51985
|
+
return [2
|
|
51986
|
+
/*return*/
|
|
51987
|
+
];
|
|
51988
|
+
}
|
|
51989
|
+
|
|
51972
51990
|
return [4
|
|
51973
51991
|
/*yield*/
|
|
51974
51992
|
, this.service.parseResponse2Fields(this.response.originalContent, (_a = this.interfaceModel.convertConfig) === null || _a === void 0 ? void 0 : _a.convertRoot)];
|
|
51975
51993
|
|
|
51976
51994
|
case 1:
|
|
51977
51995
|
result = _c.sent();
|
|
51996
|
+
|
|
51997
|
+
if (result === null || result === void 0 ? void 0 : result.hasError) {
|
|
51998
|
+
return [2
|
|
51999
|
+
/*return*/
|
|
52000
|
+
];
|
|
52001
|
+
}
|
|
52002
|
+
|
|
51978
52003
|
dataList = ((_b = result === null || result === void 0 ? void 0 : result.result) === null || _b === void 0 ? void 0 : _b.fieldMappings) || [];
|
|
51979
52004
|
checkArray = this.interfaceModel.fieldMappings;
|
|
51980
52005
|
set = new Set(checkArray.map(function (v) {
|
|
@@ -51991,7 +52016,6 @@ function (_super) {
|
|
|
51991
52016
|
}
|
|
51992
52017
|
});
|
|
51993
52018
|
this.dataList = dataList;
|
|
51994
|
-
this.lastDataList = this.dataList.$clone();
|
|
51995
52019
|
return [2
|
|
51996
52020
|
/*return*/
|
|
51997
52021
|
];
|
|
@@ -53419,8 +53443,10 @@ function (_super) {
|
|
|
53419
53443
|
, this.service.saveApiInfo(this.interfaceModel)];
|
|
53420
53444
|
|
|
53421
53445
|
case 1:
|
|
53422
|
-
_a.sent();
|
|
53446
|
+
_a.sent(); // 保存后触发
|
|
53447
|
+
|
|
53423
53448
|
|
|
53449
|
+
this.$publish("api://project-detail-save");
|
|
53424
53450
|
this.loading = false;
|
|
53425
53451
|
return [2
|
|
53426
53452
|
/*return*/
|