@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.
package/dist/index.umd.js CHANGED
@@ -51756,12 +51756,12 @@ var project_combine_generator = undefined && undefined.__generator || function (
51756
51756
 
51757
51757
 
51758
51758
 
51759
- var project_combine_CombineManage =
51759
+ var project_combine_ProjectCombineManage =
51760
51760
  /** @class */
51761
51761
  function (_super) {
51762
- project_combine_extends(CombineManage, _super);
51762
+ project_combine_extends(ProjectCombineManage, _super);
51763
51763
 
51764
- function CombineManage() {
51764
+ function ProjectCombineManage() {
51765
51765
  var _this = _super !== null && _super.apply(this, arguments) || this;
51766
51766
 
51767
51767
  _this.split = 0.2;
@@ -51826,7 +51826,7 @@ function (_super) {
51826
51826
  return _this;
51827
51827
  }
51828
51828
 
51829
- Object.defineProperty(CombineManage.prototype, "form", {
51829
+ Object.defineProperty(ProjectCombineManage.prototype, "form", {
51830
51830
  get: function get() {
51831
51831
  return this.$refs["searchForm"];
51832
51832
  },
@@ -51834,7 +51834,7 @@ function (_super) {
51834
51834
  configurable: true
51835
51835
  });
51836
51836
 
51837
- CombineManage.prototype.mounted = function () {
51837
+ ProjectCombineManage.prototype.mounted = function () {
51838
51838
  var categoryId = this.$route.query.categoryId;
51839
51839
 
51840
51840
  if (categoryId) {
@@ -51844,23 +51844,23 @@ function (_super) {
51844
51844
  }
51845
51845
  };
51846
51846
 
51847
- CombineManage.prototype.onNodeSelect = function (node) {
51847
+ ProjectCombineManage.prototype.onNodeSelect = function (node) {
51848
51848
  this.currentNode = node;
51849
51849
  this.onQuery();
51850
51850
  };
51851
51851
 
51852
- CombineManage.prototype.onReset = function () {
51852
+ ProjectCombineManage.prototype.onReset = function () {
51853
51853
  this.form.resetFields();
51854
51854
  this.onQuery();
51855
51855
  };
51856
51856
 
51857
- CombineManage.prototype.onQuery = function () {
51857
+ ProjectCombineManage.prototype.onQuery = function () {
51858
51858
  this.$set(this.paging, "pageIndex", 1); // this.$set(this.paging, "pageSize", 10);
51859
51859
 
51860
51860
  this.doQuery();
51861
51861
  };
51862
51862
 
51863
- CombineManage.prototype.doQuery = function () {
51863
+ ProjectCombineManage.prototype.doQuery = function () {
51864
51864
  var _a, _b, _c, _d;
51865
51865
 
51866
51866
  return project_combine_awaiter(this, void 0, void 0, function () {
@@ -51912,23 +51912,23 @@ function (_super) {
51912
51912
  });
51913
51913
  };
51914
51914
 
51915
- CombineManage.prototype.onPageIndexChange = function (index) {
51915
+ ProjectCombineManage.prototype.onPageIndexChange = function (index) {
51916
51916
  this.$set(this.paging, "pageIndex", index);
51917
51917
  this.doQuery();
51918
51918
  };
51919
51919
 
51920
- CombineManage.prototype.onPageSizeChange = function (size) {
51920
+ ProjectCombineManage.prototype.onPageSizeChange = function (size) {
51921
51921
  this.$set(this.paging, "pageIndex", 1);
51922
51922
  this.$set(this.paging, "pageSize", size);
51923
51923
  this.doQuery();
51924
51924
  };
51925
51925
 
51926
- CombineManage.prototype.onEdit = function (row) {
51926
+ ProjectCombineManage.prototype.onEdit = function (row) {
51927
51927
  var id = (row !== null && row !== void 0 ? row : {}).id;
51928
51928
  this.onAdd(id);
51929
51929
  };
51930
51930
 
51931
- CombineManage.prototype.onAdd = function (id) {
51931
+ ProjectCombineManage.prototype.onAdd = function (id) {
51932
51932
  return project_combine_awaiter(this, void 0, void 0, function () {
51933
51933
  return project_combine_generator(this, function (_a) {
51934
51934
  this.$router.push({
@@ -51949,7 +51949,7 @@ function (_super) {
51949
51949
  });
51950
51950
  };
51951
51951
 
51952
- CombineManage.prototype.onDelete = function (row) {
51952
+ ProjectCombineManage.prototype.onDelete = function (row) {
51953
51953
  return project_combine_awaiter(this, void 0, void 0, function () {
51954
51954
  var id, res;
51955
51955
  return project_combine_generator(this, function (_a) {
@@ -51982,7 +51982,7 @@ function (_super) {
51982
51982
  });
51983
51983
  };
51984
51984
 
51985
- CombineManage.prototype.onBatchDelete = function () {
51985
+ ProjectCombineManage.prototype.onBatchDelete = function () {
51986
51986
  var _this = this;
51987
51987
 
51988
51988
  var ids = this.selection.map(function (item) {
@@ -52023,7 +52023,7 @@ function (_super) {
52023
52023
  });
52024
52024
  };
52025
52025
 
52026
- CombineManage.prototype.onStatusChange = function (value, row, index) {
52026
+ ProjectCombineManage.prototype.onStatusChange = function (value, row, index) {
52027
52027
  return project_combine_awaiter(this, void 0, void 0, function () {
52028
52028
  var id, res;
52029
52029
  return project_combine_generator(this, function (_a) {
@@ -52060,11 +52060,11 @@ function (_super) {
52060
52060
  });
52061
52061
  };
52062
52062
 
52063
- CombineManage.prototype.onSelectChange = function (selection) {
52063
+ ProjectCombineManage.prototype.onSelectChange = function (selection) {
52064
52064
  this.selection = selection;
52065
52065
  };
52066
52066
 
52067
- CombineManage.prototype.onOpenDoc = function (row) {
52067
+ ProjectCombineManage.prototype.onOpenDoc = function (row) {
52068
52068
  return project_combine_awaiter(this, void 0, void 0, function () {
52069
52069
  var res;
52070
52070
  return project_combine_generator(this, function (_a) {
@@ -52096,7 +52096,7 @@ function (_super) {
52096
52096
  });
52097
52097
  };
52098
52098
 
52099
- CombineManage.prototype.activated = function () {
52099
+ ProjectCombineManage.prototype.activated = function () {
52100
52100
  if (this.currentNode) {
52101
52101
  this.onQuery();
52102
52102
  }
@@ -52104,20 +52104,20 @@ function (_super) {
52104
52104
 
52105
52105
  var _a;
52106
52106
 
52107
- 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);
52107
+ 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);
52108
52108
 
52109
- CombineManage = project_combine_decorate([Object(flagwind_web_["component"])({
52110
- name: "ApiCombineManage",
52109
+ ProjectCombineManage = project_combine_decorate([Object(flagwind_web_["component"])({
52110
+ name: "ProjectCombineManage",
52111
52111
  template: __webpack_require__("ccf6"),
52112
52112
  components: {
52113
52113
  "u-type-tree": project_combine_tree,
52114
52114
  "u-data-model-doc": data_model_data_model_doc
52115
52115
  }
52116
- })], CombineManage);
52117
- return CombineManage;
52116
+ })], ProjectCombineManage);
52117
+ return ProjectCombineManage;
52118
52118
  }(flagwind_web_["View"]);
52119
52119
 
52120
- /* harmony default export */ var views_project_combine = (project_combine_CombineManage);
52120
+ /* harmony default export */ var views_project_combine = (project_combine_ProjectCombineManage);
52121
52121
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
52122
52122
  var es_array_includes = __webpack_require__("caad");
52123
52123
 
@@ -55630,12 +55630,12 @@ var combine_model_spreadArray = undefined && undefined.__spreadArray || function
55630
55630
 
55631
55631
 
55632
55632
 
55633
- var combine_model_ApiCombineModel =
55633
+ var combine_model_ProjectCombineModel =
55634
55634
  /** @class */
55635
55635
  function (_super) {
55636
- combine_model_extends(ApiCombineModel, _super);
55636
+ combine_model_extends(ProjectCombineModel, _super);
55637
55637
 
55638
- function ApiCombineModel() {
55638
+ function ProjectCombineModel() {
55639
55639
  var _this = _super !== null && _super.apply(this, arguments) || this;
55640
55640
 
55641
55641
  _this.model = {
@@ -55698,7 +55698,7 @@ function (_super) {
55698
55698
  return _this;
55699
55699
  }
55700
55700
 
55701
- Object.defineProperty(ApiCombineModel.prototype, "isEdit", {
55701
+ Object.defineProperty(ProjectCombineModel.prototype, "isEdit", {
55702
55702
  get: function get() {
55703
55703
  var _a;
55704
55704
 
@@ -55707,7 +55707,7 @@ function (_super) {
55707
55707
  enumerable: false,
55708
55708
  configurable: true
55709
55709
  });
55710
- Object.defineProperty(ApiCombineModel.prototype, "dataModelRelations", {
55710
+ Object.defineProperty(ProjectCombineModel.prototype, "dataModelRelations", {
55711
55711
  get: function get() {
55712
55712
  var _a, _b;
55713
55713
 
@@ -55718,7 +55718,7 @@ function (_super) {
55718
55718
  enumerable: false,
55719
55719
  configurable: true
55720
55720
  });
55721
- Object.defineProperty(ApiCombineModel.prototype, "apiProjectRelations", {
55721
+ Object.defineProperty(ProjectCombineModel.prototype, "apiProjectRelations", {
55722
55722
  get: function get() {
55723
55723
  var _a, _b;
55724
55724
 
@@ -55730,7 +55730,7 @@ function (_super) {
55730
55730
  configurable: true
55731
55731
  });
55732
55732
 
55733
- ApiCombineModel.prototype.onBack = function () {
55733
+ ProjectCombineModel.prototype.onBack = function () {
55734
55734
  this.$router.push({
55735
55735
  name: "combine" // query: { categoryId: this.categoryId }
55736
55736
 
@@ -55738,15 +55738,15 @@ function (_super) {
55738
55738
  this.$store.commit("tag/closeCurrent", this.$route);
55739
55739
  };
55740
55740
 
55741
- ApiCombineModel.prototype.mounted = function () {
55741
+ ProjectCombineModel.prototype.mounted = function () {
55742
55742
  this.init();
55743
55743
  };
55744
55744
 
55745
- ApiCombineModel.prototype.activated = function () {
55745
+ ProjectCombineModel.prototype.activated = function () {
55746
55746
  this.init();
55747
55747
  };
55748
55748
 
55749
- ApiCombineModel.prototype.init = function () {
55749
+ ProjectCombineModel.prototype.init = function () {
55750
55750
  var _a = this.$route.query || {},
55751
55751
  _b = _a.id,
55752
55752
  id = _b === void 0 ? "" : _b,
@@ -55761,7 +55761,7 @@ function (_super) {
55761
55761
  }
55762
55762
  };
55763
55763
 
55764
- ApiCombineModel.prototype.getById = function () {
55764
+ ProjectCombineModel.prototype.getById = function () {
55765
55765
  return combine_model_awaiter(this, void 0, void 0, function () {
55766
55766
  var res;
55767
55767
  return combine_model_generator(this, function (_a) {
@@ -55792,7 +55792,7 @@ function (_super) {
55792
55792
  });
55793
55793
  };
55794
55794
 
55795
- ApiCombineModel.prototype.onValidate = function () {
55795
+ ProjectCombineModel.prototype.onValidate = function () {
55796
55796
  var _this = this;
55797
55797
 
55798
55798
  return new Promise(function (resolve, reject) {
@@ -55807,13 +55807,13 @@ function (_super) {
55807
55807
  if (!((_b = r.name) === null || _b === void 0 ? void 0 : _b.length)) {
55808
55808
  _this.$message.error("请求参数名称不能为空!");
55809
55809
 
55810
- reject();
55810
+ return reject();
55811
55811
  }
55812
55812
 
55813
55813
  if (nameMap.has(r.name)) {
55814
55814
  _this.$message.error("请求参数有重名!");
55815
55815
 
55816
- reject();
55816
+ return reject();
55817
55817
  } else {
55818
55818
  nameMap.add(r.name);
55819
55819
  }
@@ -55823,115 +55823,119 @@ function (_super) {
55823
55823
  if (!((_c = _this.model.relations) === null || _c === void 0 ? void 0 : _c.length)) {
55824
55824
  _this.$message.error("合并列表不能为空!");
55825
55825
 
55826
- reject();
55826
+ return reject();
55827
55827
  } // 执行脚本验证
55828
55828
 
55829
55829
 
55830
55830
  if (!((_d = _this.model.content) === null || _d === void 0 ? void 0 : _d.length)) {
55831
55831
  _this.$message.error("执行脚本不能为空!");
55832
55832
 
55833
- reject();
55833
+ return reject();
55834
55834
  }
55835
55835
 
55836
55836
  var form = _this.$refs.form;
55837
55837
  form === null || form === void 0 ? void 0 : form.validate(function (valid) {
55838
- resolve(valid);
55838
+ return resolve(valid);
55839
55839
  });
55840
55840
  });
55841
55841
  };
55842
55842
 
55843
- ApiCombineModel.prototype.onSave = function (isBack) {
55844
- return combine_model_awaiter(this, void 0, void 0, function () {
55845
- var res, _a;
55843
+ ProjectCombineModel.prototype.onSave = function (isBack) {
55844
+ var _this = this;
55846
55845
 
55847
- return combine_model_generator(this, function (_b) {
55848
- switch (_b.label) {
55849
- case 0:
55850
- if (this.saveing) {
55851
- return [2
55852
- /*return*/
55853
- , Promise.reject()];
55854
- }
55846
+ return new Promise(function (resolve, reject) {
55847
+ return combine_model_awaiter(_this, void 0, void 0, function () {
55848
+ var res, _a;
55855
55849
 
55856
- this.saveing = true;
55857
- _b.label = 1;
55850
+ return combine_model_generator(this, function (_b) {
55851
+ switch (_b.label) {
55852
+ case 0:
55853
+ if (this.saveing) {
55854
+ return [2
55855
+ /*return*/
55856
+ , reject()];
55857
+ }
55858
55858
 
55859
- case 1:
55860
- _b.trys.push([1, 7, 8, 9]);
55859
+ this.saveing = true;
55860
+ _b.label = 1;
55861
55861
 
55862
- return [4
55863
- /*yield*/
55864
- , this.onValidate()];
55862
+ case 1:
55863
+ _b.trys.push([1, 7, 8, 9]);
55865
55864
 
55866
- case 2:
55867
- _b.sent();
55865
+ return [4
55866
+ /*yield*/
55867
+ , this.onValidate()];
55868
55868
 
55869
- this.$set(this.model, "categoryId", this.categoryId);
55870
- return [4
55871
- /*yield*/
55872
- , this.service.save(this.model)];
55869
+ case 2:
55870
+ _b.sent();
55873
55871
 
55874
- case 3:
55875
- res = _b.sent();
55876
- if (!!(res === null || res === void 0 ? void 0 : res.hasError)) return [3
55877
- /*break*/
55878
- , 6];
55879
- if (!res.result) return [3
55880
- /*break*/
55881
- , 5];
55882
- this.id = res.result;
55883
- return [4
55884
- /*yield*/
55885
- , this.getById()];
55872
+ this.$set(this.model, "categoryId", this.categoryId);
55873
+ return [4
55874
+ /*yield*/
55875
+ , this.service.save(this.model)];
55886
55876
 
55887
- case 4:
55888
- _b.sent();
55877
+ case 3:
55878
+ res = _b.sent();
55879
+ if (!!(res === null || res === void 0 ? void 0 : res.hasError)) return [3
55880
+ /*break*/
55881
+ , 6];
55882
+ if (!res.result) return [3
55883
+ /*break*/
55884
+ , 5];
55885
+ this.id = res.result;
55886
+ return [4
55887
+ /*yield*/
55888
+ , this.getById()];
55889
55889
 
55890
- _b.label = 5;
55890
+ case 4:
55891
+ _b.sent();
55891
55892
 
55892
- case 5:
55893
- if (isBack) {
55894
- this.$message.success("保存数据成功!");
55895
- this.onBack();
55896
- }
55893
+ _b.label = 5;
55897
55894
 
55898
- _b.label = 6;
55895
+ case 5:
55896
+ if (isBack) {
55897
+ this.$message.success("保存数据成功!");
55898
+ this.onBack();
55899
+ }
55899
55900
 
55900
- case 6:
55901
- return [3
55902
- /*break*/
55903
- , 9];
55901
+ _b.label = 6;
55904
55902
 
55905
- case 7:
55906
- _a = _b.sent();
55907
- return [3
55908
- /*break*/
55909
- , 9];
55903
+ case 6:
55904
+ return [2
55905
+ /*return*/
55906
+ , resolve(true)];
55910
55907
 
55911
- case 8:
55912
- this.saveing = false;
55913
- return [7
55914
- /*endfinally*/
55915
- ];
55908
+ case 7:
55909
+ _a = _b.sent();
55910
+ return [3
55911
+ /*break*/
55912
+ , 9];
55916
55913
 
55917
- case 9:
55918
- return [2
55919
- /*return*/
55920
- , Promise.resolve()];
55921
- }
55914
+ case 8:
55915
+ this.saveing = false;
55916
+ return [7
55917
+ /*endfinally*/
55918
+ ];
55919
+
55920
+ case 9:
55921
+ return [2
55922
+ /*return*/
55923
+ ];
55924
+ }
55925
+ });
55922
55926
  });
55923
55927
  });
55924
55928
  };
55925
55929
 
55926
- ApiCombineModel.prototype.onAddDataModel = function () {
55930
+ ProjectCombineModel.prototype.onAddDataModel = function () {
55927
55931
  this.dataModelShow = true;
55928
55932
  };
55929
55933
 
55930
- ApiCombineModel.prototype.onAddApiProject = function () {
55934
+ ProjectCombineModel.prototype.onAddApiProject = function () {
55931
55935
  this.apiProjectShow = true;
55932
55936
  };
55933
55937
 
55934
- ApiCombineModel.prototype.onRelationsSave = function (relationType, addData, delData) {
55938
+ ProjectCombineModel.prototype.onRelationsSave = function (relationType, addData, delData) {
55935
55939
  return combine_model_awaiter(this, void 0, void 0, function () {
55936
55940
  var delIds, addIds, addRelations, addReqParams, res, res;
55937
55941
  return combine_model_generator(this, function (_a) {
@@ -56028,7 +56032,7 @@ function (_super) {
56028
56032
  });
56029
56033
  };
56030
56034
 
56031
- ApiCombineModel.prototype.onRelationDelete = function (row) {
56035
+ ProjectCombineModel.prototype.onRelationDelete = function (row) {
56032
56036
  this.model.relations = this.model.relations.filter(function (r) {
56033
56037
  return r.typeId !== row.typeId;
56034
56038
  });
@@ -56037,7 +56041,7 @@ function (_super) {
56037
56041
  });
56038
56042
  };
56039
56043
 
56040
- ApiCombineModel.prototype.onDetail = function (row) {
56044
+ ProjectCombineModel.prototype.onDetail = function (row) {
56041
56045
  return combine_model_awaiter(this, void 0, void 0, function () {
56042
56046
  var res, res;
56043
56047
  return combine_model_generator(this, function (_a) {
@@ -56098,7 +56102,7 @@ function (_super) {
56098
56102
  });
56099
56103
  };
56100
56104
 
56101
- ApiCombineModel.prototype.onOpenTest = function () {
56105
+ ProjectCombineModel.prototype.onOpenTest = function () {
56102
56106
  return combine_model_awaiter(this, void 0, void 0, function () {
56103
56107
  var _a;
56104
56108
 
@@ -56134,7 +56138,7 @@ function (_super) {
56134
56138
  });
56135
56139
  };
56136
56140
 
56137
- ApiCombineModel.prototype.onTestRun = function (context) {
56141
+ ProjectCombineModel.prototype.onTestRun = function (context) {
56138
56142
  var _a, _b;
56139
56143
 
56140
56144
  return combine_model_awaiter(this, void 0, void 0, function () {
@@ -56167,14 +56171,14 @@ function (_super) {
56167
56171
 
56168
56172
  var _a, _b, _c;
56169
56173
 
56170
- 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);
56174
+ 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);
56171
56175
 
56172
- 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);
56176
+ 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);
56173
56177
 
56174
- 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);
56178
+ 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);
56175
56179
 
56176
- ApiCombineModel = combine_model_decorate([Object(flagwind_web_["component"])({
56177
- name: "ApiCombineModel",
56180
+ ProjectCombineModel = combine_model_decorate([Object(flagwind_web_["component"])({
56181
+ name: "ProjectCombineModel",
56178
56182
  template: __webpack_require__("d8e7"),
56179
56183
  components: {
56180
56184
  "u-base-editor": combine_model_base_editor,
@@ -56186,11 +56190,11 @@ function (_super) {
56186
56190
  "u-response-parameter-list": response_parameter_list,
56187
56191
  "u-test-run-modal": combine_model_test_run_modal
56188
56192
  }
56189
- })], ApiCombineModel);
56190
- return ApiCombineModel;
56193
+ })], ProjectCombineModel);
56194
+ return ProjectCombineModel;
56191
56195
  }(flagwind_web_["View"]);
56192
56196
 
56193
- /* harmony default export */ var project_combine_combine_model = (combine_model_ApiCombineModel);
56197
+ /* harmony default export */ var project_combine_combine_model = (combine_model_ProjectCombineModel);
56194
56198
  // EXTERNAL MODULE: ./src/views/project-list/add-project-modal/index.scss
56195
56199
  var add_project_modal = __webpack_require__("1aea");
56196
56200