@egova/egova-api 1.0.137 → 1.0.145

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.
@@ -53834,7 +53834,13 @@ function (_super) {
53834
53834
  return;
53835
53835
  }
53836
53836
 
53837
- this.checkedData = this.data.$clone();
53837
+ var tmpData = this.data.$clone();
53838
+ this.checkedData = tmpData.map(function (item) {
53839
+ return data_model_assign(data_model_assign({}, item), {
53840
+ code: item.typeCode,
53841
+ description: item.typeDescription
53842
+ });
53843
+ });
53838
53844
  this.init();
53839
53845
  };
53840
53846
 
@@ -55289,7 +55295,12 @@ function (_super) {
55289
55295
  return;
55290
55296
  }
55291
55297
 
55292
- this.checkedData = this.data.$clone();
55298
+ var tmpData = this.data.$clone();
55299
+ this.checkedData = tmpData.map(function (item) {
55300
+ return api_project_assign(api_project_assign({}, item), {
55301
+ url: item.typeCode
55302
+ });
55303
+ });
55293
55304
  this.init();
55294
55305
  };
55295
55306
 
@@ -62759,6 +62770,7 @@ function (_super) {
62759
62770
  result = _a.sent();
62760
62771
 
62761
62772
  if (result && !result.hasError) {
62773
+ this.showGroupModal = false;
62762
62774
  this.init();
62763
62775
  }
62764
62776
 
@@ -62772,7 +62784,7 @@ function (_super) {
62772
62784
 
62773
62785
  ProjectTree.prototype.init = function () {
62774
62786
  return project_detail_tree_awaiter(this, void 0, void 0, function () {
62775
- var result, data;
62787
+ var result, data, lastRenderData;
62776
62788
  return project_detail_tree_generator(this, function (_a) {
62777
62789
  switch (_a.label) {
62778
62790
  case 0:
@@ -62790,7 +62802,19 @@ function (_super) {
62790
62802
  TreeDataUtil.handlerTreeData(data, "name");
62791
62803
  this.groupTree = data;
62792
62804
  data = this.data.$clone();
62805
+ lastRenderData = this.renderData;
62793
62806
  TreeDataUtil.handlerTreeData(this.data, "name", "apis");
62807
+
62808
+ if (lastRenderData && lastRenderData.length > 0) {
62809
+ this.data.forEach(function (dataItem) {
62810
+ lastRenderData.forEach(function (lastDataItem) {
62811
+ if (dataItem.id === lastDataItem.id) {
62812
+ return dataItem.expand = lastDataItem.expand;
62813
+ }
62814
+ });
62815
+ });
62816
+ }
62817
+
62794
62818
  this.renderData = this.data.$clone();
62795
62819
  return [2
62796
62820
  /*return*/
@@ -63218,7 +63242,10 @@ function (_super) {
63218
63242
  var index = this.openInterfaceList.findIndex(function (i) {
63219
63243
  return i.id === data.id;
63220
63244
  });
63221
- this.openInterfaceList[index].name = data.name;
63245
+
63246
+ if (index > -1) {
63247
+ this.openInterfaceList[index].name = data.name;
63248
+ }
63222
63249
  };
63223
63250
 
63224
63251
  ProjectDetail.prototype.onClose = function (index) {
package/dist/index.umd.js CHANGED
@@ -53843,7 +53843,13 @@ function (_super) {
53843
53843
  return;
53844
53844
  }
53845
53845
 
53846
- this.checkedData = this.data.$clone();
53846
+ var tmpData = this.data.$clone();
53847
+ this.checkedData = tmpData.map(function (item) {
53848
+ return data_model_assign(data_model_assign({}, item), {
53849
+ code: item.typeCode,
53850
+ description: item.typeDescription
53851
+ });
53852
+ });
53847
53853
  this.init();
53848
53854
  };
53849
53855
 
@@ -55298,7 +55304,12 @@ function (_super) {
55298
55304
  return;
55299
55305
  }
55300
55306
 
55301
- this.checkedData = this.data.$clone();
55307
+ var tmpData = this.data.$clone();
55308
+ this.checkedData = tmpData.map(function (item) {
55309
+ return api_project_assign(api_project_assign({}, item), {
55310
+ url: item.typeCode
55311
+ });
55312
+ });
55302
55313
  this.init();
55303
55314
  };
55304
55315
 
@@ -62768,6 +62779,7 @@ function (_super) {
62768
62779
  result = _a.sent();
62769
62780
 
62770
62781
  if (result && !result.hasError) {
62782
+ this.showGroupModal = false;
62771
62783
  this.init();
62772
62784
  }
62773
62785
 
@@ -62781,7 +62793,7 @@ function (_super) {
62781
62793
 
62782
62794
  ProjectTree.prototype.init = function () {
62783
62795
  return project_detail_tree_awaiter(this, void 0, void 0, function () {
62784
- var result, data;
62796
+ var result, data, lastRenderData;
62785
62797
  return project_detail_tree_generator(this, function (_a) {
62786
62798
  switch (_a.label) {
62787
62799
  case 0:
@@ -62799,7 +62811,19 @@ function (_super) {
62799
62811
  TreeDataUtil.handlerTreeData(data, "name");
62800
62812
  this.groupTree = data;
62801
62813
  data = this.data.$clone();
62814
+ lastRenderData = this.renderData;
62802
62815
  TreeDataUtil.handlerTreeData(this.data, "name", "apis");
62816
+
62817
+ if (lastRenderData && lastRenderData.length > 0) {
62818
+ this.data.forEach(function (dataItem) {
62819
+ lastRenderData.forEach(function (lastDataItem) {
62820
+ if (dataItem.id === lastDataItem.id) {
62821
+ return dataItem.expand = lastDataItem.expand;
62822
+ }
62823
+ });
62824
+ });
62825
+ }
62826
+
62803
62827
  this.renderData = this.data.$clone();
62804
62828
  return [2
62805
62829
  /*return*/
@@ -63227,7 +63251,10 @@ function (_super) {
63227
63251
  var index = this.openInterfaceList.findIndex(function (i) {
63228
63252
  return i.id === data.id;
63229
63253
  });
63230
- this.openInterfaceList[index].name = data.name;
63254
+
63255
+ if (index > -1) {
63256
+ this.openInterfaceList[index].name = data.name;
63257
+ }
63231
63258
  };
63232
63259
 
63233
63260
  ProjectDetail.prototype.onClose = function (index) {