@egova/egova-api 1.0.67 → 1.0.68

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.
@@ -51957,7 +51957,7 @@ function (_super) {
51957
51957
  return after_execution_transfer_generator(this, function (_c) {
51958
51958
  switch (_c.label) {
51959
51959
  case 0:
51960
- console.log(this.response);
51960
+ console.log("response", this.response);
51961
51961
 
51962
51962
  if (!this.response.originalContent) {
51963
51963
  return [2
@@ -51965,8 +51965,7 @@ function (_super) {
51965
51965
  ];
51966
51966
  }
51967
51967
 
51968
- if (!this.dataList.length) {
51969
- this.lastDataList = this.dataList.$clone();
51968
+ if (this.dataList.length > 0) {
51970
51969
  return [2
51971
51970
  /*return*/
51972
51971
  ];
@@ -52009,6 +52008,11 @@ function (_super) {
52009
52008
  });
52010
52009
  };
52011
52010
 
52011
+ AfterExecutionTransfer.prototype.refreshLastDataList = function () {
52012
+ console.log("api://project-detail-save", this.dataList);
52013
+ this.lastDataList = this.dataList.$clone();
52014
+ };
52015
+
52012
52016
  AfterExecutionTransfer.prototype.onToggleAll = function (checkAll) {
52013
52017
  this.dataList = this.dataList.map(function (d) {
52014
52018
  return after_execution_transfer_assign(after_execution_transfer_assign({}, d), {
@@ -52067,6 +52071,8 @@ function (_super) {
52067
52071
  immediate: true
52068
52072
  }), after_execution_transfer_metadata("design:type", Function), after_execution_transfer_metadata("design:paramtypes", []), after_execution_transfer_metadata("design:returntype", Promise)], AfterExecutionTransfer.prototype, "getFiledMappings", null);
52069
52073
 
52074
+ after_execution_transfer_decorate([Object(flagwind_web_["receivable"])("api://project-detail-save"), after_execution_transfer_metadata("design:type", Function), after_execution_transfer_metadata("design:paramtypes", []), after_execution_transfer_metadata("design:returntype", void 0)], AfterExecutionTransfer.prototype, "refreshLastDataList", null);
52075
+
52070
52076
  AfterExecutionTransfer = after_execution_transfer_decorate([Object(flagwind_web_["component"])({
52071
52077
  template: __webpack_require__("236b"),
52072
52078
  components: {}
@@ -53428,10 +53434,10 @@ function (_super) {
53428
53434
  , this.service.saveApiInfo(this.interfaceModel)];
53429
53435
 
53430
53436
  case 1:
53431
- _a.sent(); // 保存后更新 response
53437
+ _a.sent(); // 保存后触发
53432
53438
 
53433
53439
 
53434
- this.response = this.responseCache.get(this.interfaceModel.info.id) || new Response();
53440
+ this.$publish("api://project-detail-save");
53435
53441
  this.loading = false;
53436
53442
  return [2
53437
53443
  /*return*/
package/dist/index.umd.js CHANGED
@@ -51966,7 +51966,7 @@ function (_super) {
51966
51966
  return after_execution_transfer_generator(this, function (_c) {
51967
51967
  switch (_c.label) {
51968
51968
  case 0:
51969
- console.log(this.response);
51969
+ console.log("response", this.response);
51970
51970
 
51971
51971
  if (!this.response.originalContent) {
51972
51972
  return [2
@@ -51974,8 +51974,7 @@ function (_super) {
51974
51974
  ];
51975
51975
  }
51976
51976
 
51977
- if (!this.dataList.length) {
51978
- this.lastDataList = this.dataList.$clone();
51977
+ if (this.dataList.length > 0) {
51979
51978
  return [2
51980
51979
  /*return*/
51981
51980
  ];
@@ -52018,6 +52017,11 @@ function (_super) {
52018
52017
  });
52019
52018
  };
52020
52019
 
52020
+ AfterExecutionTransfer.prototype.refreshLastDataList = function () {
52021
+ console.log("api://project-detail-save", this.dataList);
52022
+ this.lastDataList = this.dataList.$clone();
52023
+ };
52024
+
52021
52025
  AfterExecutionTransfer.prototype.onToggleAll = function (checkAll) {
52022
52026
  this.dataList = this.dataList.map(function (d) {
52023
52027
  return after_execution_transfer_assign(after_execution_transfer_assign({}, d), {
@@ -52076,6 +52080,8 @@ function (_super) {
52076
52080
  immediate: true
52077
52081
  }), after_execution_transfer_metadata("design:type", Function), after_execution_transfer_metadata("design:paramtypes", []), after_execution_transfer_metadata("design:returntype", Promise)], AfterExecutionTransfer.prototype, "getFiledMappings", null);
52078
52082
 
52083
+ after_execution_transfer_decorate([Object(flagwind_web_["receivable"])("api://project-detail-save"), after_execution_transfer_metadata("design:type", Function), after_execution_transfer_metadata("design:paramtypes", []), after_execution_transfer_metadata("design:returntype", void 0)], AfterExecutionTransfer.prototype, "refreshLastDataList", null);
52084
+
52079
52085
  AfterExecutionTransfer = after_execution_transfer_decorate([Object(flagwind_web_["component"])({
52080
52086
  template: __webpack_require__("236b"),
52081
52087
  components: {}
@@ -53437,10 +53443,10 @@ function (_super) {
53437
53443
  , this.service.saveApiInfo(this.interfaceModel)];
53438
53444
 
53439
53445
  case 1:
53440
- _a.sent(); // 保存后更新 response
53446
+ _a.sent(); // 保存后触发
53441
53447
 
53442
53448
 
53443
- this.response = this.responseCache.get(this.interfaceModel.info.id) || new Response();
53449
+ this.$publish("api://project-detail-save");
53444
53450
  this.loading = false;
53445
53451
  return [2
53446
53452
  /*return*/