@egova/egova-api 1.0.214 → 1.0.217

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.
@@ -22670,7 +22670,7 @@ module.exports = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {
22670
22670
  /***/ "193e":
22671
22671
  /***/ (function(module, exports) {
22672
22672
 
22673
- module.exports = "<article class=\"project-tree\">\r\n <header>\r\n <div class=\"tree-api\">\r\n <div class=\"title-g\">API列表</div>\r\n <div class=\"add\" @click=\"onAddGroup\">\r\n <i class=\"iconfont icon-xinjianwenjianjia\"></i>\r\n </div>\r\n </div>\r\n <div class=\"tree-search\">\r\n <i-select class=\"diy-select\" transfer v-model=\"type\" @on-change=\"onFilter\">\r\n <i-option v-for=\"item in typeList\" :key=\"item.value\" :value=\"item.value\">{{item.text}}</i-option>\r\n </i-select>\r\n <i-input class=\"diy-input\" v-model=\"keyword\" @on-search=\"onFilter\" placeholder=\"输入关键字查询\">\r\n <i class=\"iconfont icon-chaxun\" slot=\"prefix\"></i>\r\n </i-input>\r\n </div>\r\n </header>\r\n <i-tree :data=\"renderData\" :render=\"renderContent\"></i-tree>\r\n <i-modal\r\n draggable\r\n sticky\r\n reset-drag-position\r\n v-model=\"showGroupModal\"\r\n class=\"diy-modal\"\r\n :mask-closable=\"false\"\r\n transfer\r\n :title=\"group.id ? '修改分组': '添加分组'\"\r\n >\r\n <i-form :label-width=\"100\" class=\"diy-form\" label-colon>\r\n <i-form-item label=\"分组名称\">\r\n <i-input class=\"diy-input\" v-model=\"group.name\"></i-input>\r\n </i-form-item>\r\n <i-form-item label=\"分组位置\">\r\n <u-group-select :data=\"groupTree\" :current=\"parent\" @on-select=\"onSelectParent\"></u-group-select>\r\n </i-form-item>\r\n </i-form>\r\n <footer slot=\"footer\">\r\n <i-button class=\"diy-btn-primary\" type=\"primary\" @click.stop=\"onSaveGroup\">确定</i-button>\r\n <i-button class=\"diy-btn-default\" @click.stop=\"onGourpCancel\">取消</i-button>\r\n </footer>\r\n </i-modal>\r\n <i-modal draggable sticky reset-drag-position v-model=\"showInterfaceModal\" class=\"diy-modal\" :mask-closable=\"false\" :title=\"interfaceModel.id ? '修改接口': '添加接口'\">\r\n <i-form :label-width=\"100\" class=\"diy-form\" label-colon>\r\n <i-form-item label=\"接口名称\">\r\n <i-input class=\"diy-input\" v-model=\"interfaceModel.name\"></i-input>\r\n </i-form-item>\r\n <i-form-item label=\"接口位置\">\r\n <u-group-select :data=\"groupTree\" :current=\"parent\" @on-select=\"onSelectParent\"></u-group-select>\r\n </i-form-item>\r\n <i-form-item label=\"接口类型\">\r\n <i-select v-model=\"interfaceModel.method\" class=\"diy-select\" transfer>\r\n <i-option v-for=\"item in typeList\" v-if=\"item.value\" :key=\"item.value\" :value=\"item.value\">{{item.text}}</i-option>\r\n </i-select>\r\n </i-form-item>\r\n </i-form>\r\n <footer slot=\"footer\">\r\n <i-button class=\"diy-btn-primary\" type=\"primary\" @click=\"onSaveInterface\">确定</i-button>\r\n <i-button class=\"diy-btn-default\" @click=\"onInterfaceCancel\">取消</i-button>\r\n </footer>\r\n </i-modal>\r\n <i-modal draggable sticky reset-drag-position v-model=\"showCopyModal\" class=\"diy-modal\" :mask-closable=\"false\" title=\"复制接口\">\r\n <i-form :label-width=\"100\" class=\"diy-form\" label-colon>\r\n <i-form-item label=\"接口名称\" required>\r\n <i-input class=\"diy-input\" v-model=\"copyName\"></i-input>\r\n </i-form-item>\r\n <i-form-item label=\"选择分组\" required>\r\n <u-group-select :isSelector=\"true\" :data=\"groupTree\" :current=\"parent\" @on-select=\"onSelectParent\"></u-group-select>\r\n </i-form-item>\r\n </i-form>\r\n <footer slot=\"footer\">\r\n <i-button class=\"diy-btn-primary\" type=\"primary\" @click=\"onCopy\">确定</i-button>\r\n <i-button class=\"diy-btn-default\" @click=\"onCopyCancel\">取消</i-button>\r\n </footer>\r\n </i-modal>\r\n <u-batch-modal :visiable.sync=\"showBatchModal\" :data=\"categoryApiList\" :projectId=\"projectId\" @on-success=\"onBatchSuccess\"></u-batch-modal>\r\n</article>\r\n"
22673
+ module.exports = "<article class=\"project-tree\">\n <header>\n <div class=\"tree-api\">\n <div class=\"title-g\">API列表</div>\n <div class=\"add\" @click=\"onAddGroup\">\n <i class=\"iconfont icon-xinjianwenjianjia\"></i>\n </div>\n </div>\n <div class=\"tree-search\">\n <i-select class=\"diy-select\" transfer v-model=\"type\" @on-change=\"onFilter\">\n <i-option v-for=\"item in typeList\" :key=\"item.value\" :value=\"item.value\">{{item.text}}</i-option>\n </i-select>\n <i-input class=\"diy-input\" v-model=\"keyword\" @on-search=\"onFilter\" placeholder=\"输入关键字查询\">\n <i class=\"iconfont icon-chaxun\" slot=\"prefix\"></i>\n </i-input>\n </div>\n </header>\n <i-tree :data=\"renderData\" :render=\"renderContent\"></i-tree>\n <i-modal\n draggable\n sticky\n reset-drag-position\n v-model=\"showGroupModal\"\n class=\"diy-modal\"\n :mask-closable=\"false\"\n transfer\n :title=\"group.id ? '修改分组': '添加分组'\"\n >\n <i-form :label-width=\"100\" class=\"diy-form\" label-colon>\n <i-form-item label=\"分组名称\">\n <i-input class=\"diy-input\" v-model=\"group.name\"></i-input>\n </i-form-item>\n <i-form-item label=\"分组位置\">\n <u-group-select :data=\"groupTree\" :current=\"parent\" @on-select=\"onSelectParent\"></u-group-select>\n </i-form-item>\n </i-form>\n <footer slot=\"footer\">\n <i-button class=\"diy-btn-primary\" type=\"primary\" @click.stop=\"onSaveGroup\">确定</i-button>\n <i-button class=\"diy-btn-default\" @click.stop=\"onGourpCancel\">取消</i-button>\n </footer>\n </i-modal>\n <i-modal draggable sticky reset-drag-position v-model=\"showInterfaceModal\" class=\"diy-modal\" :mask-closable=\"false\" :title=\"interfaceModel.id ? '修改接口': '添加接口'\">\n <i-form :label-width=\"100\" class=\"diy-form\" label-colon>\n <i-form-item label=\"接口名称\" required>\n <i-input class=\"diy-input\" v-model=\"interfaceModel.name\"></i-input>\n </i-form-item>\n <i-form-item label=\"接口位置\" required>\n <u-group-select :data=\"groupTree\" :current=\"parent\" @on-select=\"onSelectParent\"></u-group-select>\n </i-form-item>\n <i-form-item label=\"接口类型\" required>\n <i-select v-model=\"interfaceModel.method\" class=\"diy-select\" transfer>\n <i-option v-for=\"item in typeList\" v-if=\"item.value\" :key=\"item.value\" :value=\"item.value\">{{item.text}}</i-option>\n </i-select>\n </i-form-item>\n </i-form>\n <footer slot=\"footer\">\n <i-button class=\"diy-btn-primary\" type=\"primary\" @click=\"onSaveInterface\">确定</i-button>\n <i-button class=\"diy-btn-default\" @click=\"onInterfaceCancel\">取消</i-button>\n </footer>\n </i-modal>\n <i-modal draggable sticky reset-drag-position v-model=\"showCopyModal\" class=\"diy-modal\" :mask-closable=\"false\" title=\"复制接口\">\n <i-form :label-width=\"100\" class=\"diy-form\" label-colon>\n <i-form-item label=\"接口名称\" required>\n <i-input class=\"diy-input\" v-model=\"copyName\"></i-input>\n </i-form-item>\n <i-form-item label=\"选择分组\" required>\n <u-group-select :isSelector=\"true\" :data=\"groupTree\" :current=\"parent\" @on-select=\"onSelectParent\"></u-group-select>\n </i-form-item>\n </i-form>\n <footer slot=\"footer\">\n <i-button class=\"diy-btn-primary\" type=\"primary\" @click=\"onCopy\">确定</i-button>\n <i-button class=\"diy-btn-default\" @click=\"onCopyCancel\">取消</i-button>\n </footer>\n </i-modal>\n <u-batch-modal :visiable.sync=\"showBatchModal\" :data=\"categoryApiList\" :projectId=\"projectId\" @on-success=\"onBatchSuccess\"></u-batch-modal>\n</article>\n"
22674
22674
 
22675
22675
  /***/ }),
22676
22676
 
@@ -60039,6 +60039,7 @@ var lodash_debounce_default = /*#__PURE__*/__webpack_require__.n(lodash_debounce
60039
60039
 
60040
60040
 
60041
60041
 
60042
+
60042
60043
  var environment_variable_modal_extends = undefined && undefined.__extends || function () {
60043
60044
  var _extendStatics = function extendStatics(d, b) {
60044
60045
  _extendStatics = Object.setPrototypeOf || {
@@ -60302,7 +60303,10 @@ function (_super) {
60302
60303
 
60303
60304
  EnvironmentVariableModal.prototype.getVariableList = function () {
60304
60305
  return environment_variable_modal_awaiter(this, void 0, void 0, function () {
60305
- var res;
60306
+ var res, arr;
60307
+
60308
+ var _this = this;
60309
+
60306
60310
  return environment_variable_modal_generator(this, function (_a) {
60307
60311
  switch (_a.label) {
60308
60312
  case 0:
@@ -60325,7 +60329,14 @@ function (_super) {
60325
60329
  this.exitAddItem = false;
60326
60330
  }
60327
60331
 
60328
- this.varList.length && this.onSelectItem(this.varList[0]);
60332
+ if (this.currentItem && this.currentItem.id) {
60333
+ arr = this.varList.filter(function (item) {
60334
+ return item.id === _this.currentItem.id;
60335
+ });
60336
+ this.onSelectItem(arr[0] || this.varList[0]);
60337
+ } else {
60338
+ this.varList.length && this.onSelectItem(this.varList[0]);
60339
+ }
60329
60340
  }
60330
60341
 
60331
60342
  return [2
@@ -60448,6 +60459,7 @@ function (_super) {
60448
60459
 
60449
60460
  if ((_a = this.currentItem) === null || _a === void 0 ? void 0 : _a.id) {
60450
60461
  data.id = (_b = this.currentItem) === null || _b === void 0 ? void 0 : _b.id;
60462
+ data.createTime = this.currentItem.createTime;
60451
60463
  }
60452
60464
 
60453
60465
  return [4
@@ -63182,7 +63194,10 @@ function (_super) {
63182
63194
 
63183
63195
  SecurityModalComponent.prototype.getSecurityList = function () {
63184
63196
  return security_modal_awaiter(this, void 0, void 0, function () {
63185
- var res, tempList;
63197
+ var res, tempList, arr;
63198
+
63199
+ var _this = this;
63200
+
63186
63201
  return security_modal_generator(this, function (_a) {
63187
63202
  switch (_a.label) {
63188
63203
  case 0:
@@ -63215,7 +63230,14 @@ function (_super) {
63215
63230
  this.exitAddItem = false;
63216
63231
  }
63217
63232
 
63218
- this.securityList.length && this.onSelectSecurityItem(this.securityList[0]);
63233
+ if (this.currentSecurityItem && this.currentSecurityItem.id) {
63234
+ arr = this.securityList.filter(function (item) {
63235
+ return item.id === _this.currentSecurityItem.id;
63236
+ });
63237
+ this.onSelectSecurityItem(arr[0] || this.securityList[0]);
63238
+ } else {
63239
+ this.securityList.length && this.onSelectSecurityItem(this.securityList[0]);
63240
+ }
63219
63241
  }
63220
63242
 
63221
63243
  return [2
@@ -63350,6 +63372,7 @@ function (_super) {
63350
63372
  /*break*/
63351
63373
  , 2];
63352
63374
  data.id = this.currentSecurityItem.id;
63375
+ data.createTime = this.currentSecurityItem.createTime;
63353
63376
  return [4
63354
63377
  /*yield*/
63355
63378
  , this.service.updateSecurityItem(data)];
@@ -65703,6 +65726,20 @@ function (_super) {
65703
65726
  this.interfaceModel.categoryId = this.parent.id;
65704
65727
  this.interfaceModel.projectId = this.projectId;
65705
65728
 
65729
+ if (!this.interfaceModel.name) {
65730
+ this.$message.error("接口名称不能为空");
65731
+ return [2
65732
+ /*return*/
65733
+ ];
65734
+ }
65735
+
65736
+ if (!this.interfaceModel.categoryId) {
65737
+ this.$message.error("接口位置不能为空");
65738
+ return [2
65739
+ /*return*/
65740
+ ];
65741
+ }
65742
+
65706
65743
  if (this.interfaceModel.name && this.interfaceModel.name.length > 50) {
65707
65744
  this.$message.error("接口名称长度不能超过50");
65708
65745
  this.showInterfaceModal = true;
@@ -66437,7 +66474,7 @@ function (_super) {
66437
66474
  };
66438
66475
 
66439
66476
  ProjectDetail.prototype.onEnvironmentRefresh = function () {
66440
- this.$refs["interface-settings"].getEnvironmentParamList();
66477
+ this.$refs["interface-settings"] && this.$refs["interface-settings"].getEnvironmentParamList();
66441
66478
  };
66442
66479
 
66443
66480
  var _a;
package/dist/index.umd.js CHANGED
@@ -22679,7 +22679,7 @@ module.exports = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {
22679
22679
  /***/ "193e":
22680
22680
  /***/ (function(module, exports) {
22681
22681
 
22682
- module.exports = "<article class=\"project-tree\">\r\n <header>\r\n <div class=\"tree-api\">\r\n <div class=\"title-g\">API列表</div>\r\n <div class=\"add\" @click=\"onAddGroup\">\r\n <i class=\"iconfont icon-xinjianwenjianjia\"></i>\r\n </div>\r\n </div>\r\n <div class=\"tree-search\">\r\n <i-select class=\"diy-select\" transfer v-model=\"type\" @on-change=\"onFilter\">\r\n <i-option v-for=\"item in typeList\" :key=\"item.value\" :value=\"item.value\">{{item.text}}</i-option>\r\n </i-select>\r\n <i-input class=\"diy-input\" v-model=\"keyword\" @on-search=\"onFilter\" placeholder=\"输入关键字查询\">\r\n <i class=\"iconfont icon-chaxun\" slot=\"prefix\"></i>\r\n </i-input>\r\n </div>\r\n </header>\r\n <i-tree :data=\"renderData\" :render=\"renderContent\"></i-tree>\r\n <i-modal\r\n draggable\r\n sticky\r\n reset-drag-position\r\n v-model=\"showGroupModal\"\r\n class=\"diy-modal\"\r\n :mask-closable=\"false\"\r\n transfer\r\n :title=\"group.id ? '修改分组': '添加分组'\"\r\n >\r\n <i-form :label-width=\"100\" class=\"diy-form\" label-colon>\r\n <i-form-item label=\"分组名称\">\r\n <i-input class=\"diy-input\" v-model=\"group.name\"></i-input>\r\n </i-form-item>\r\n <i-form-item label=\"分组位置\">\r\n <u-group-select :data=\"groupTree\" :current=\"parent\" @on-select=\"onSelectParent\"></u-group-select>\r\n </i-form-item>\r\n </i-form>\r\n <footer slot=\"footer\">\r\n <i-button class=\"diy-btn-primary\" type=\"primary\" @click.stop=\"onSaveGroup\">确定</i-button>\r\n <i-button class=\"diy-btn-default\" @click.stop=\"onGourpCancel\">取消</i-button>\r\n </footer>\r\n </i-modal>\r\n <i-modal draggable sticky reset-drag-position v-model=\"showInterfaceModal\" class=\"diy-modal\" :mask-closable=\"false\" :title=\"interfaceModel.id ? '修改接口': '添加接口'\">\r\n <i-form :label-width=\"100\" class=\"diy-form\" label-colon>\r\n <i-form-item label=\"接口名称\">\r\n <i-input class=\"diy-input\" v-model=\"interfaceModel.name\"></i-input>\r\n </i-form-item>\r\n <i-form-item label=\"接口位置\">\r\n <u-group-select :data=\"groupTree\" :current=\"parent\" @on-select=\"onSelectParent\"></u-group-select>\r\n </i-form-item>\r\n <i-form-item label=\"接口类型\">\r\n <i-select v-model=\"interfaceModel.method\" class=\"diy-select\" transfer>\r\n <i-option v-for=\"item in typeList\" v-if=\"item.value\" :key=\"item.value\" :value=\"item.value\">{{item.text}}</i-option>\r\n </i-select>\r\n </i-form-item>\r\n </i-form>\r\n <footer slot=\"footer\">\r\n <i-button class=\"diy-btn-primary\" type=\"primary\" @click=\"onSaveInterface\">确定</i-button>\r\n <i-button class=\"diy-btn-default\" @click=\"onInterfaceCancel\">取消</i-button>\r\n </footer>\r\n </i-modal>\r\n <i-modal draggable sticky reset-drag-position v-model=\"showCopyModal\" class=\"diy-modal\" :mask-closable=\"false\" title=\"复制接口\">\r\n <i-form :label-width=\"100\" class=\"diy-form\" label-colon>\r\n <i-form-item label=\"接口名称\" required>\r\n <i-input class=\"diy-input\" v-model=\"copyName\"></i-input>\r\n </i-form-item>\r\n <i-form-item label=\"选择分组\" required>\r\n <u-group-select :isSelector=\"true\" :data=\"groupTree\" :current=\"parent\" @on-select=\"onSelectParent\"></u-group-select>\r\n </i-form-item>\r\n </i-form>\r\n <footer slot=\"footer\">\r\n <i-button class=\"diy-btn-primary\" type=\"primary\" @click=\"onCopy\">确定</i-button>\r\n <i-button class=\"diy-btn-default\" @click=\"onCopyCancel\">取消</i-button>\r\n </footer>\r\n </i-modal>\r\n <u-batch-modal :visiable.sync=\"showBatchModal\" :data=\"categoryApiList\" :projectId=\"projectId\" @on-success=\"onBatchSuccess\"></u-batch-modal>\r\n</article>\r\n"
22682
+ module.exports = "<article class=\"project-tree\">\n <header>\n <div class=\"tree-api\">\n <div class=\"title-g\">API列表</div>\n <div class=\"add\" @click=\"onAddGroup\">\n <i class=\"iconfont icon-xinjianwenjianjia\"></i>\n </div>\n </div>\n <div class=\"tree-search\">\n <i-select class=\"diy-select\" transfer v-model=\"type\" @on-change=\"onFilter\">\n <i-option v-for=\"item in typeList\" :key=\"item.value\" :value=\"item.value\">{{item.text}}</i-option>\n </i-select>\n <i-input class=\"diy-input\" v-model=\"keyword\" @on-search=\"onFilter\" placeholder=\"输入关键字查询\">\n <i class=\"iconfont icon-chaxun\" slot=\"prefix\"></i>\n </i-input>\n </div>\n </header>\n <i-tree :data=\"renderData\" :render=\"renderContent\"></i-tree>\n <i-modal\n draggable\n sticky\n reset-drag-position\n v-model=\"showGroupModal\"\n class=\"diy-modal\"\n :mask-closable=\"false\"\n transfer\n :title=\"group.id ? '修改分组': '添加分组'\"\n >\n <i-form :label-width=\"100\" class=\"diy-form\" label-colon>\n <i-form-item label=\"分组名称\">\n <i-input class=\"diy-input\" v-model=\"group.name\"></i-input>\n </i-form-item>\n <i-form-item label=\"分组位置\">\n <u-group-select :data=\"groupTree\" :current=\"parent\" @on-select=\"onSelectParent\"></u-group-select>\n </i-form-item>\n </i-form>\n <footer slot=\"footer\">\n <i-button class=\"diy-btn-primary\" type=\"primary\" @click.stop=\"onSaveGroup\">确定</i-button>\n <i-button class=\"diy-btn-default\" @click.stop=\"onGourpCancel\">取消</i-button>\n </footer>\n </i-modal>\n <i-modal draggable sticky reset-drag-position v-model=\"showInterfaceModal\" class=\"diy-modal\" :mask-closable=\"false\" :title=\"interfaceModel.id ? '修改接口': '添加接口'\">\n <i-form :label-width=\"100\" class=\"diy-form\" label-colon>\n <i-form-item label=\"接口名称\" required>\n <i-input class=\"diy-input\" v-model=\"interfaceModel.name\"></i-input>\n </i-form-item>\n <i-form-item label=\"接口位置\" required>\n <u-group-select :data=\"groupTree\" :current=\"parent\" @on-select=\"onSelectParent\"></u-group-select>\n </i-form-item>\n <i-form-item label=\"接口类型\" required>\n <i-select v-model=\"interfaceModel.method\" class=\"diy-select\" transfer>\n <i-option v-for=\"item in typeList\" v-if=\"item.value\" :key=\"item.value\" :value=\"item.value\">{{item.text}}</i-option>\n </i-select>\n </i-form-item>\n </i-form>\n <footer slot=\"footer\">\n <i-button class=\"diy-btn-primary\" type=\"primary\" @click=\"onSaveInterface\">确定</i-button>\n <i-button class=\"diy-btn-default\" @click=\"onInterfaceCancel\">取消</i-button>\n </footer>\n </i-modal>\n <i-modal draggable sticky reset-drag-position v-model=\"showCopyModal\" class=\"diy-modal\" :mask-closable=\"false\" title=\"复制接口\">\n <i-form :label-width=\"100\" class=\"diy-form\" label-colon>\n <i-form-item label=\"接口名称\" required>\n <i-input class=\"diy-input\" v-model=\"copyName\"></i-input>\n </i-form-item>\n <i-form-item label=\"选择分组\" required>\n <u-group-select :isSelector=\"true\" :data=\"groupTree\" :current=\"parent\" @on-select=\"onSelectParent\"></u-group-select>\n </i-form-item>\n </i-form>\n <footer slot=\"footer\">\n <i-button class=\"diy-btn-primary\" type=\"primary\" @click=\"onCopy\">确定</i-button>\n <i-button class=\"diy-btn-default\" @click=\"onCopyCancel\">取消</i-button>\n </footer>\n </i-modal>\n <u-batch-modal :visiable.sync=\"showBatchModal\" :data=\"categoryApiList\" :projectId=\"projectId\" @on-success=\"onBatchSuccess\"></u-batch-modal>\n</article>\n"
22683
22683
 
22684
22684
  /***/ }),
22685
22685
 
@@ -60048,6 +60048,7 @@ var lodash_debounce_default = /*#__PURE__*/__webpack_require__.n(lodash_debounce
60048
60048
 
60049
60049
 
60050
60050
 
60051
+
60051
60052
  var environment_variable_modal_extends = undefined && undefined.__extends || function () {
60052
60053
  var _extendStatics = function extendStatics(d, b) {
60053
60054
  _extendStatics = Object.setPrototypeOf || {
@@ -60311,7 +60312,10 @@ function (_super) {
60311
60312
 
60312
60313
  EnvironmentVariableModal.prototype.getVariableList = function () {
60313
60314
  return environment_variable_modal_awaiter(this, void 0, void 0, function () {
60314
- var res;
60315
+ var res, arr;
60316
+
60317
+ var _this = this;
60318
+
60315
60319
  return environment_variable_modal_generator(this, function (_a) {
60316
60320
  switch (_a.label) {
60317
60321
  case 0:
@@ -60334,7 +60338,14 @@ function (_super) {
60334
60338
  this.exitAddItem = false;
60335
60339
  }
60336
60340
 
60337
- this.varList.length && this.onSelectItem(this.varList[0]);
60341
+ if (this.currentItem && this.currentItem.id) {
60342
+ arr = this.varList.filter(function (item) {
60343
+ return item.id === _this.currentItem.id;
60344
+ });
60345
+ this.onSelectItem(arr[0] || this.varList[0]);
60346
+ } else {
60347
+ this.varList.length && this.onSelectItem(this.varList[0]);
60348
+ }
60338
60349
  }
60339
60350
 
60340
60351
  return [2
@@ -60457,6 +60468,7 @@ function (_super) {
60457
60468
 
60458
60469
  if ((_a = this.currentItem) === null || _a === void 0 ? void 0 : _a.id) {
60459
60470
  data.id = (_b = this.currentItem) === null || _b === void 0 ? void 0 : _b.id;
60471
+ data.createTime = this.currentItem.createTime;
60460
60472
  }
60461
60473
 
60462
60474
  return [4
@@ -63191,7 +63203,10 @@ function (_super) {
63191
63203
 
63192
63204
  SecurityModalComponent.prototype.getSecurityList = function () {
63193
63205
  return security_modal_awaiter(this, void 0, void 0, function () {
63194
- var res, tempList;
63206
+ var res, tempList, arr;
63207
+
63208
+ var _this = this;
63209
+
63195
63210
  return security_modal_generator(this, function (_a) {
63196
63211
  switch (_a.label) {
63197
63212
  case 0:
@@ -63224,7 +63239,14 @@ function (_super) {
63224
63239
  this.exitAddItem = false;
63225
63240
  }
63226
63241
 
63227
- this.securityList.length && this.onSelectSecurityItem(this.securityList[0]);
63242
+ if (this.currentSecurityItem && this.currentSecurityItem.id) {
63243
+ arr = this.securityList.filter(function (item) {
63244
+ return item.id === _this.currentSecurityItem.id;
63245
+ });
63246
+ this.onSelectSecurityItem(arr[0] || this.securityList[0]);
63247
+ } else {
63248
+ this.securityList.length && this.onSelectSecurityItem(this.securityList[0]);
63249
+ }
63228
63250
  }
63229
63251
 
63230
63252
  return [2
@@ -63359,6 +63381,7 @@ function (_super) {
63359
63381
  /*break*/
63360
63382
  , 2];
63361
63383
  data.id = this.currentSecurityItem.id;
63384
+ data.createTime = this.currentSecurityItem.createTime;
63362
63385
  return [4
63363
63386
  /*yield*/
63364
63387
  , this.service.updateSecurityItem(data)];
@@ -65712,6 +65735,20 @@ function (_super) {
65712
65735
  this.interfaceModel.categoryId = this.parent.id;
65713
65736
  this.interfaceModel.projectId = this.projectId;
65714
65737
 
65738
+ if (!this.interfaceModel.name) {
65739
+ this.$message.error("接口名称不能为空");
65740
+ return [2
65741
+ /*return*/
65742
+ ];
65743
+ }
65744
+
65745
+ if (!this.interfaceModel.categoryId) {
65746
+ this.$message.error("接口位置不能为空");
65747
+ return [2
65748
+ /*return*/
65749
+ ];
65750
+ }
65751
+
65715
65752
  if (this.interfaceModel.name && this.interfaceModel.name.length > 50) {
65716
65753
  this.$message.error("接口名称长度不能超过50");
65717
65754
  this.showInterfaceModal = true;
@@ -66446,7 +66483,7 @@ function (_super) {
66446
66483
  };
66447
66484
 
66448
66485
  ProjectDetail.prototype.onEnvironmentRefresh = function () {
66449
- this.$refs["interface-settings"].getEnvironmentParamList();
66486
+ this.$refs["interface-settings"] && this.$refs["interface-settings"].getEnvironmentParamList();
66450
66487
  };
66451
66488
 
66452
66489
  var _a;