@egova/egova-api 1.0.82 → 1.0.83

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.
@@ -51747,12 +51747,12 @@ var project_combine_generator = undefined && undefined.__generator || function (
51747
51747
 
51748
51748
 
51749
51749
 
51750
- var project_combine_CombineManage =
51750
+ var project_combine_ProjectCombineManage =
51751
51751
  /** @class */
51752
51752
  function (_super) {
51753
- project_combine_extends(CombineManage, _super);
51753
+ project_combine_extends(ProjectCombineManage, _super);
51754
51754
 
51755
- function CombineManage() {
51755
+ function ProjectCombineManage() {
51756
51756
  var _this = _super !== null && _super.apply(this, arguments) || this;
51757
51757
 
51758
51758
  _this.split = 0.2;
@@ -51817,7 +51817,7 @@ function (_super) {
51817
51817
  return _this;
51818
51818
  }
51819
51819
 
51820
- Object.defineProperty(CombineManage.prototype, "form", {
51820
+ Object.defineProperty(ProjectCombineManage.prototype, "form", {
51821
51821
  get: function get() {
51822
51822
  return this.$refs["searchForm"];
51823
51823
  },
@@ -51825,7 +51825,7 @@ function (_super) {
51825
51825
  configurable: true
51826
51826
  });
51827
51827
 
51828
- CombineManage.prototype.mounted = function () {
51828
+ ProjectCombineManage.prototype.mounted = function () {
51829
51829
  var categoryId = this.$route.query.categoryId;
51830
51830
 
51831
51831
  if (categoryId) {
@@ -51835,23 +51835,23 @@ function (_super) {
51835
51835
  }
51836
51836
  };
51837
51837
 
51838
- CombineManage.prototype.onNodeSelect = function (node) {
51838
+ ProjectCombineManage.prototype.onNodeSelect = function (node) {
51839
51839
  this.currentNode = node;
51840
51840
  this.onQuery();
51841
51841
  };
51842
51842
 
51843
- CombineManage.prototype.onReset = function () {
51843
+ ProjectCombineManage.prototype.onReset = function () {
51844
51844
  this.form.resetFields();
51845
51845
  this.onQuery();
51846
51846
  };
51847
51847
 
51848
- CombineManage.prototype.onQuery = function () {
51848
+ ProjectCombineManage.prototype.onQuery = function () {
51849
51849
  this.$set(this.paging, "pageIndex", 1); // this.$set(this.paging, "pageSize", 10);
51850
51850
 
51851
51851
  this.doQuery();
51852
51852
  };
51853
51853
 
51854
- CombineManage.prototype.doQuery = function () {
51854
+ ProjectCombineManage.prototype.doQuery = function () {
51855
51855
  var _a, _b, _c, _d;
51856
51856
 
51857
51857
  return project_combine_awaiter(this, void 0, void 0, function () {
@@ -51903,23 +51903,23 @@ function (_super) {
51903
51903
  });
51904
51904
  };
51905
51905
 
51906
- CombineManage.prototype.onPageIndexChange = function (index) {
51906
+ ProjectCombineManage.prototype.onPageIndexChange = function (index) {
51907
51907
  this.$set(this.paging, "pageIndex", index);
51908
51908
  this.doQuery();
51909
51909
  };
51910
51910
 
51911
- CombineManage.prototype.onPageSizeChange = function (size) {
51911
+ ProjectCombineManage.prototype.onPageSizeChange = function (size) {
51912
51912
  this.$set(this.paging, "pageIndex", 1);
51913
51913
  this.$set(this.paging, "pageSize", size);
51914
51914
  this.doQuery();
51915
51915
  };
51916
51916
 
51917
- CombineManage.prototype.onEdit = function (row) {
51917
+ ProjectCombineManage.prototype.onEdit = function (row) {
51918
51918
  var id = (row !== null && row !== void 0 ? row : {}).id;
51919
51919
  this.onAdd(id);
51920
51920
  };
51921
51921
 
51922
- CombineManage.prototype.onAdd = function (id) {
51922
+ ProjectCombineManage.prototype.onAdd = function (id) {
51923
51923
  return project_combine_awaiter(this, void 0, void 0, function () {
51924
51924
  return project_combine_generator(this, function (_a) {
51925
51925
  this.$router.push({
@@ -51940,7 +51940,7 @@ function (_super) {
51940
51940
  });
51941
51941
  };
51942
51942
 
51943
- CombineManage.prototype.onDelete = function (row) {
51943
+ ProjectCombineManage.prototype.onDelete = function (row) {
51944
51944
  return project_combine_awaiter(this, void 0, void 0, function () {
51945
51945
  var id, res;
51946
51946
  return project_combine_generator(this, function (_a) {
@@ -51973,7 +51973,7 @@ function (_super) {
51973
51973
  });
51974
51974
  };
51975
51975
 
51976
- CombineManage.prototype.onBatchDelete = function () {
51976
+ ProjectCombineManage.prototype.onBatchDelete = function () {
51977
51977
  var _this = this;
51978
51978
 
51979
51979
  var ids = this.selection.map(function (item) {
@@ -52014,7 +52014,7 @@ function (_super) {
52014
52014
  });
52015
52015
  };
52016
52016
 
52017
- CombineManage.prototype.onStatusChange = function (value, row, index) {
52017
+ ProjectCombineManage.prototype.onStatusChange = function (value, row, index) {
52018
52018
  return project_combine_awaiter(this, void 0, void 0, function () {
52019
52019
  var id, res;
52020
52020
  return project_combine_generator(this, function (_a) {
@@ -52051,11 +52051,11 @@ function (_super) {
52051
52051
  });
52052
52052
  };
52053
52053
 
52054
- CombineManage.prototype.onSelectChange = function (selection) {
52054
+ ProjectCombineManage.prototype.onSelectChange = function (selection) {
52055
52055
  this.selection = selection;
52056
52056
  };
52057
52057
 
52058
- CombineManage.prototype.onOpenDoc = function (row) {
52058
+ ProjectCombineManage.prototype.onOpenDoc = function (row) {
52059
52059
  return project_combine_awaiter(this, void 0, void 0, function () {
52060
52060
  var res;
52061
52061
  return project_combine_generator(this, function (_a) {
@@ -52087,7 +52087,7 @@ function (_super) {
52087
52087
  });
52088
52088
  };
52089
52089
 
52090
- CombineManage.prototype.activated = function () {
52090
+ ProjectCombineManage.prototype.activated = function () {
52091
52091
  if (this.currentNode) {
52092
52092
  this.onQuery();
52093
52093
  }
@@ -52095,20 +52095,20 @@ function (_super) {
52095
52095
 
52096
52096
  var _a;
52097
52097
 
52098
- project_combine_decorate([autowired(project_combine_service), project_combine_metadata("design:type", typeof (_a = typeof project_combine_service !== "undefined" && project_combine_service) === "function" ? _a : Object)], CombineManage.prototype, "service", void 0);
52098
+ project_combine_decorate([autowired(project_combine_service), project_combine_metadata("design:type", typeof (_a = typeof project_combine_service !== "undefined" && project_combine_service) === "function" ? _a : Object)], ProjectCombineManage.prototype, "service", void 0);
52099
52099
 
52100
- CombineManage = project_combine_decorate([Object(flagwind_web_["component"])({
52101
- name: "ApiCombineManage",
52100
+ ProjectCombineManage = project_combine_decorate([Object(flagwind_web_["component"])({
52101
+ name: "ProjectCombineManage",
52102
52102
  template: __webpack_require__("ccf6"),
52103
52103
  components: {
52104
52104
  "u-type-tree": project_combine_tree,
52105
52105
  "u-data-model-doc": data_model_data_model_doc
52106
52106
  }
52107
- })], CombineManage);
52108
- return CombineManage;
52107
+ })], ProjectCombineManage);
52108
+ return ProjectCombineManage;
52109
52109
  }(flagwind_web_["View"]);
52110
52110
 
52111
- /* harmony default export */ var views_project_combine = (project_combine_CombineManage);
52111
+ /* harmony default export */ var views_project_combine = (project_combine_ProjectCombineManage);
52112
52112
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
52113
52113
  var es_array_includes = __webpack_require__("caad");
52114
52114
 
@@ -55621,12 +55621,12 @@ var combine_model_spreadArray = undefined && undefined.__spreadArray || function
55621
55621
 
55622
55622
 
55623
55623
 
55624
- var combine_model_ApiCombineModel =
55624
+ var combine_model_ProjectCombineModel =
55625
55625
  /** @class */
55626
55626
  function (_super) {
55627
- combine_model_extends(ApiCombineModel, _super);
55627
+ combine_model_extends(ProjectCombineModel, _super);
55628
55628
 
55629
- function ApiCombineModel() {
55629
+ function ProjectCombineModel() {
55630
55630
  var _this = _super !== null && _super.apply(this, arguments) || this;
55631
55631
 
55632
55632
  _this.model = {
@@ -55689,7 +55689,7 @@ function (_super) {
55689
55689
  return _this;
55690
55690
  }
55691
55691
 
55692
- Object.defineProperty(ApiCombineModel.prototype, "isEdit", {
55692
+ Object.defineProperty(ProjectCombineModel.prototype, "isEdit", {
55693
55693
  get: function get() {
55694
55694
  var _a;
55695
55695
 
@@ -55698,7 +55698,7 @@ function (_super) {
55698
55698
  enumerable: false,
55699
55699
  configurable: true
55700
55700
  });
55701
- Object.defineProperty(ApiCombineModel.prototype, "dataModelRelations", {
55701
+ Object.defineProperty(ProjectCombineModel.prototype, "dataModelRelations", {
55702
55702
  get: function get() {
55703
55703
  var _a, _b;
55704
55704
 
@@ -55709,7 +55709,7 @@ function (_super) {
55709
55709
  enumerable: false,
55710
55710
  configurable: true
55711
55711
  });
55712
- Object.defineProperty(ApiCombineModel.prototype, "apiProjectRelations", {
55712
+ Object.defineProperty(ProjectCombineModel.prototype, "apiProjectRelations", {
55713
55713
  get: function get() {
55714
55714
  var _a, _b;
55715
55715
 
@@ -55721,7 +55721,7 @@ function (_super) {
55721
55721
  configurable: true
55722
55722
  });
55723
55723
 
55724
- ApiCombineModel.prototype.onBack = function () {
55724
+ ProjectCombineModel.prototype.onBack = function () {
55725
55725
  this.$router.push({
55726
55726
  name: "combine" // query: { categoryId: this.categoryId }
55727
55727
 
@@ -55729,15 +55729,15 @@ function (_super) {
55729
55729
  this.$store.commit("tag/closeCurrent", this.$route);
55730
55730
  };
55731
55731
 
55732
- ApiCombineModel.prototype.mounted = function () {
55732
+ ProjectCombineModel.prototype.mounted = function () {
55733
55733
  this.init();
55734
55734
  };
55735
55735
 
55736
- ApiCombineModel.prototype.activated = function () {
55736
+ ProjectCombineModel.prototype.activated = function () {
55737
55737
  this.init();
55738
55738
  };
55739
55739
 
55740
- ApiCombineModel.prototype.init = function () {
55740
+ ProjectCombineModel.prototype.init = function () {
55741
55741
  var _a = this.$route.query || {},
55742
55742
  _b = _a.id,
55743
55743
  id = _b === void 0 ? "" : _b,
@@ -55752,7 +55752,7 @@ function (_super) {
55752
55752
  }
55753
55753
  };
55754
55754
 
55755
- ApiCombineModel.prototype.getById = function () {
55755
+ ProjectCombineModel.prototype.getById = function () {
55756
55756
  return combine_model_awaiter(this, void 0, void 0, function () {
55757
55757
  var res;
55758
55758
  return combine_model_generator(this, function (_a) {
@@ -55783,7 +55783,7 @@ function (_super) {
55783
55783
  });
55784
55784
  };
55785
55785
 
55786
- ApiCombineModel.prototype.onValidate = function () {
55786
+ ProjectCombineModel.prototype.onValidate = function () {
55787
55787
  var _this = this;
55788
55788
 
55789
55789
  return new Promise(function (resolve, reject) {
@@ -55798,13 +55798,13 @@ function (_super) {
55798
55798
  if (!((_b = r.name) === null || _b === void 0 ? void 0 : _b.length)) {
55799
55799
  _this.$message.error("请求参数名称不能为空!");
55800
55800
 
55801
- reject();
55801
+ return reject();
55802
55802
  }
55803
55803
 
55804
55804
  if (nameMap.has(r.name)) {
55805
55805
  _this.$message.error("请求参数有重名!");
55806
55806
 
55807
- reject();
55807
+ return reject();
55808
55808
  } else {
55809
55809
  nameMap.add(r.name);
55810
55810
  }
@@ -55814,115 +55814,119 @@ function (_super) {
55814
55814
  if (!((_c = _this.model.relations) === null || _c === void 0 ? void 0 : _c.length)) {
55815
55815
  _this.$message.error("合并列表不能为空!");
55816
55816
 
55817
- reject();
55817
+ return reject();
55818
55818
  } // 执行脚本验证
55819
55819
 
55820
55820
 
55821
55821
  if (!((_d = _this.model.content) === null || _d === void 0 ? void 0 : _d.length)) {
55822
55822
  _this.$message.error("执行脚本不能为空!");
55823
55823
 
55824
- reject();
55824
+ return reject();
55825
55825
  }
55826
55826
 
55827
55827
  var form = _this.$refs.form;
55828
55828
  form === null || form === void 0 ? void 0 : form.validate(function (valid) {
55829
- resolve(valid);
55829
+ return resolve(valid);
55830
55830
  });
55831
55831
  });
55832
55832
  };
55833
55833
 
55834
- ApiCombineModel.prototype.onSave = function (isBack) {
55835
- return combine_model_awaiter(this, void 0, void 0, function () {
55836
- var res, _a;
55834
+ ProjectCombineModel.prototype.onSave = function (isBack) {
55835
+ var _this = this;
55837
55836
 
55838
- return combine_model_generator(this, function (_b) {
55839
- switch (_b.label) {
55840
- case 0:
55841
- if (this.saveing) {
55842
- return [2
55843
- /*return*/
55844
- , Promise.reject()];
55845
- }
55837
+ return new Promise(function (resolve, reject) {
55838
+ return combine_model_awaiter(_this, void 0, void 0, function () {
55839
+ var res, _a;
55846
55840
 
55847
- this.saveing = true;
55848
- _b.label = 1;
55841
+ return combine_model_generator(this, function (_b) {
55842
+ switch (_b.label) {
55843
+ case 0:
55844
+ if (this.saveing) {
55845
+ return [2
55846
+ /*return*/
55847
+ , reject()];
55848
+ }
55849
55849
 
55850
- case 1:
55851
- _b.trys.push([1, 7, 8, 9]);
55850
+ this.saveing = true;
55851
+ _b.label = 1;
55852
55852
 
55853
- return [4
55854
- /*yield*/
55855
- , this.onValidate()];
55853
+ case 1:
55854
+ _b.trys.push([1, 7, 8, 9]);
55856
55855
 
55857
- case 2:
55858
- _b.sent();
55856
+ return [4
55857
+ /*yield*/
55858
+ , this.onValidate()];
55859
55859
 
55860
- this.$set(this.model, "categoryId", this.categoryId);
55861
- return [4
55862
- /*yield*/
55863
- , this.service.save(this.model)];
55860
+ case 2:
55861
+ _b.sent();
55864
55862
 
55865
- case 3:
55866
- res = _b.sent();
55867
- if (!!(res === null || res === void 0 ? void 0 : res.hasError)) return [3
55868
- /*break*/
55869
- , 6];
55870
- if (!res.result) return [3
55871
- /*break*/
55872
- , 5];
55873
- this.id = res.result;
55874
- return [4
55875
- /*yield*/
55876
- , this.getById()];
55863
+ this.$set(this.model, "categoryId", this.categoryId);
55864
+ return [4
55865
+ /*yield*/
55866
+ , this.service.save(this.model)];
55877
55867
 
55878
- case 4:
55879
- _b.sent();
55868
+ case 3:
55869
+ res = _b.sent();
55870
+ if (!!(res === null || res === void 0 ? void 0 : res.hasError)) return [3
55871
+ /*break*/
55872
+ , 6];
55873
+ if (!res.result) return [3
55874
+ /*break*/
55875
+ , 5];
55876
+ this.id = res.result;
55877
+ return [4
55878
+ /*yield*/
55879
+ , this.getById()];
55880
55880
 
55881
- _b.label = 5;
55881
+ case 4:
55882
+ _b.sent();
55882
55883
 
55883
- case 5:
55884
- if (isBack) {
55885
- this.$message.success("保存数据成功!");
55886
- this.onBack();
55887
- }
55884
+ _b.label = 5;
55888
55885
 
55889
- _b.label = 6;
55886
+ case 5:
55887
+ if (isBack) {
55888
+ this.$message.success("保存数据成功!");
55889
+ this.onBack();
55890
+ }
55890
55891
 
55891
- case 6:
55892
- return [3
55893
- /*break*/
55894
- , 9];
55892
+ _b.label = 6;
55895
55893
 
55896
- case 7:
55897
- _a = _b.sent();
55898
- return [3
55899
- /*break*/
55900
- , 9];
55894
+ case 6:
55895
+ return [2
55896
+ /*return*/
55897
+ , resolve(true)];
55901
55898
 
55902
- case 8:
55903
- this.saveing = false;
55904
- return [7
55905
- /*endfinally*/
55906
- ];
55899
+ case 7:
55900
+ _a = _b.sent();
55901
+ return [3
55902
+ /*break*/
55903
+ , 9];
55907
55904
 
55908
- case 9:
55909
- return [2
55910
- /*return*/
55911
- , Promise.resolve()];
55912
- }
55905
+ case 8:
55906
+ this.saveing = false;
55907
+ return [7
55908
+ /*endfinally*/
55909
+ ];
55910
+
55911
+ case 9:
55912
+ return [2
55913
+ /*return*/
55914
+ ];
55915
+ }
55916
+ });
55913
55917
  });
55914
55918
  });
55915
55919
  };
55916
55920
 
55917
- ApiCombineModel.prototype.onAddDataModel = function () {
55921
+ ProjectCombineModel.prototype.onAddDataModel = function () {
55918
55922
  this.dataModelShow = true;
55919
55923
  };
55920
55924
 
55921
- ApiCombineModel.prototype.onAddApiProject = function () {
55925
+ ProjectCombineModel.prototype.onAddApiProject = function () {
55922
55926
  this.apiProjectShow = true;
55923
55927
  };
55924
55928
 
55925
- ApiCombineModel.prototype.onRelationsSave = function (relationType, addData, delData) {
55929
+ ProjectCombineModel.prototype.onRelationsSave = function (relationType, addData, delData) {
55926
55930
  return combine_model_awaiter(this, void 0, void 0, function () {
55927
55931
  var delIds, addIds, addRelations, addReqParams, res, res;
55928
55932
  return combine_model_generator(this, function (_a) {
@@ -56019,7 +56023,7 @@ function (_super) {
56019
56023
  });
56020
56024
  };
56021
56025
 
56022
- ApiCombineModel.prototype.onRelationDelete = function (row) {
56026
+ ProjectCombineModel.prototype.onRelationDelete = function (row) {
56023
56027
  this.model.relations = this.model.relations.filter(function (r) {
56024
56028
  return r.typeId !== row.typeId;
56025
56029
  });
@@ -56028,7 +56032,7 @@ function (_super) {
56028
56032
  });
56029
56033
  };
56030
56034
 
56031
- ApiCombineModel.prototype.onDetail = function (row) {
56035
+ ProjectCombineModel.prototype.onDetail = function (row) {
56032
56036
  return combine_model_awaiter(this, void 0, void 0, function () {
56033
56037
  var res, res;
56034
56038
  return combine_model_generator(this, function (_a) {
@@ -56089,7 +56093,7 @@ function (_super) {
56089
56093
  });
56090
56094
  };
56091
56095
 
56092
- ApiCombineModel.prototype.onOpenTest = function () {
56096
+ ProjectCombineModel.prototype.onOpenTest = function () {
56093
56097
  return combine_model_awaiter(this, void 0, void 0, function () {
56094
56098
  var _a;
56095
56099
 
@@ -56125,7 +56129,7 @@ function (_super) {
56125
56129
  });
56126
56130
  };
56127
56131
 
56128
- ApiCombineModel.prototype.onTestRun = function (context) {
56132
+ ProjectCombineModel.prototype.onTestRun = function (context) {
56129
56133
  var _a, _b;
56130
56134
 
56131
56135
  return combine_model_awaiter(this, void 0, void 0, function () {
@@ -56158,14 +56162,14 @@ function (_super) {
56158
56162
 
56159
56163
  var _a, _b, _c;
56160
56164
 
56161
- combine_model_decorate([autowired(project_combine_service), combine_model_metadata("design:type", typeof (_a = typeof project_combine_service !== "undefined" && project_combine_service) === "function" ? _a : Object)], ApiCombineModel.prototype, "service", void 0);
56165
+ combine_model_decorate([autowired(project_combine_service), combine_model_metadata("design:type", typeof (_a = typeof project_combine_service !== "undefined" && project_combine_service) === "function" ? _a : Object)], ProjectCombineModel.prototype, "service", void 0);
56162
56166
 
56163
- combine_model_decorate([autowired(data_model_service), combine_model_metadata("design:type", typeof (_b = typeof data_model_service !== "undefined" && data_model_service) === "function" ? _b : Object)], ApiCombineModel.prototype, "dataModelService", void 0);
56167
+ combine_model_decorate([autowired(data_model_service), combine_model_metadata("design:type", typeof (_b = typeof data_model_service !== "undefined" && data_model_service) === "function" ? _b : Object)], ProjectCombineModel.prototype, "dataModelService", void 0);
56164
56168
 
56165
- combine_model_decorate([autowired(api_project_service), combine_model_metadata("design:type", typeof (_c = typeof api_project_service !== "undefined" && api_project_service) === "function" ? _c : Object)], ApiCombineModel.prototype, "apiProjectService", void 0);
56169
+ combine_model_decorate([autowired(api_project_service), combine_model_metadata("design:type", typeof (_c = typeof api_project_service !== "undefined" && api_project_service) === "function" ? _c : Object)], ProjectCombineModel.prototype, "apiProjectService", void 0);
56166
56170
 
56167
- ApiCombineModel = combine_model_decorate([Object(flagwind_web_["component"])({
56168
- name: "ApiCombineModel",
56171
+ ProjectCombineModel = combine_model_decorate([Object(flagwind_web_["component"])({
56172
+ name: "ProjectCombineModel",
56169
56173
  template: __webpack_require__("d8e7"),
56170
56174
  components: {
56171
56175
  "u-base-editor": combine_model_base_editor,
@@ -56177,11 +56181,11 @@ function (_super) {
56177
56181
  "u-response-parameter-list": response_parameter_list,
56178
56182
  "u-test-run-modal": combine_model_test_run_modal
56179
56183
  }
56180
- })], ApiCombineModel);
56181
- return ApiCombineModel;
56184
+ })], ProjectCombineModel);
56185
+ return ProjectCombineModel;
56182
56186
  }(flagwind_web_["View"]);
56183
56187
 
56184
- /* harmony default export */ var project_combine_combine_model = (combine_model_ApiCombineModel);
56188
+ /* harmony default export */ var project_combine_combine_model = (combine_model_ProjectCombineModel);
56185
56189
  // EXTERNAL MODULE: ./src/views/project-list/add-project-modal/index.scss
56186
56190
  var add_project_modal = __webpack_require__("1aea");
56187
56191