@egova/egova-api 1.0.188 → 1.0.191

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.
@@ -21181,7 +21181,7 @@ exports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDes
21181
21181
  /***/ "07ab":
21182
21182
  /***/ (function(module, exports) {
21183
21183
 
21184
- module.exports = "<div class=\"u-tree-node\" @click=\"onClickNode\">\n<!-- <i class=\"iconfont\" :class=\"data.expand? 'icon-expand': 'icon-unexpand'\"></i>-->\n <i class=\"iconfont icon-bumenkaohe\"></i>\n <div class=\"name\">{{data.name}}</div>\n <i-dropdown @on-click=\"onClick\" transfer transfer-class-name=\"node-oprate\" v-if=\"data.id !== 'virtual_root_directory'\">\n <i-icon type=\"ios-more\" />\n <i-dropdown-menu slot=\"list\">\n <i-dropdown-item v-for=\"item in actions\" :key=\"item.name\" :name=\"item.name\">\n <template v-if=\"item.name === 'import'\">\n <i-upload\n class=\"action-item\"\n :action=\"uploadAction\"\n :data=\"uploadParams\"\n accept=\".json\"\n :headers=\"headers\"\n :show-upload-list=\"false\"\n :format=\"['json']\"\n :on-success=\"onSuccess\"\n :before-upload=\"onBeforeUpload\"\n :on-format-error=\"onFormatError\"\n >\n <i title=\"导入\" class=\"iconfont icon-import\"></i>{{item.text}}\n </i-upload>\n </template>\n <template v-else> <i class=\"iconfont\" :class=\"'icon-' + (item.icon || item.name)\"></i>{{item.text}} </template>\n </i-dropdown-item>\n </i-dropdown-menu>\n </i-dropdown>\n</div>\n"
21184
+ module.exports = "<div class=\"u-tree-node\" @click=\"onClickNode\">\n<!-- <i class=\"iconfont\" :class=\"data.expand? 'icon-expand': 'icon-unexpand'\"></i>-->\n <i class=\"iconfont icon-mulushu\"></i>\n <div class=\"name\">{{data.name}}</div>\n <i-dropdown @on-click=\"onClick\" transfer transfer-class-name=\"node-oprate\" v-if=\"data.id !== 'virtual_root_directory'\">\n <i-icon type=\"ios-more\" />\n <i-dropdown-menu slot=\"list\">\n <i-dropdown-item v-for=\"item in actions\" :key=\"item.name\" :name=\"item.name\">\n <template v-if=\"item.name === 'import'\">\n <i-upload\n class=\"action-item\"\n :action=\"uploadAction\"\n :data=\"uploadParams\"\n accept=\".json\"\n :headers=\"headers\"\n :show-upload-list=\"false\"\n :format=\"['json']\"\n :on-success=\"onSuccess\"\n :before-upload=\"onBeforeUpload\"\n :on-format-error=\"onFormatError\"\n >\n <i title=\"导入\" class=\"iconfont icon-import\"></i>{{item.text}}\n </i-upload>\n </template>\n <template v-else> <i class=\"iconfont\" :class=\"'icon-' + (item.icon || item.name)\"></i>{{item.text}} </template>\n </i-dropdown-item>\n </i-dropdown-menu>\n </i-dropdown>\n</div>\n"
21185
21185
 
21186
21186
  /***/ }),
21187
21187
 
@@ -41925,7 +41925,7 @@ module.exports = function (S, index, unicode) {
41925
41925
  /***/ "8ab8":
41926
41926
  /***/ (function(module, exports) {
41927
41927
 
41928
- module.exports = "<article class=\"pre-execution-setting\">\r\n <section class=\"script\">\r\n <u-editor\r\n @inited=\"onEditorInited\"\r\n :value.sync=\"script\"\r\n lang=\"groovy\"\r\n ></u-editor>\r\n </section>\r\n <section class=\"quick-input\">\r\n <div class=\"info\">\r\n <p>{{scriptData.description}}</p>\r\n <!-- <ul>\r\n <li>request: 请求</li>\r\n </ul> -->\r\n </div>\r\n <div class=\"quick-list\">\r\n <div v-for=\"type in scriptData.group\" class=\"quick-type\">\r\n <p>{{type.name}}</p>\r\n <div\r\n v-for=\"item in type.list\"\r\n :key=\"item.name\"\r\n class=\"quick-item\"\r\n @click=\"onClickItem(item)\"\r\n >\r\n <i class=\"api-icon icon-item\"></i> {{item.name}}\r\n </div>\r\n </div>\r\n </div>\r\n </section>\r\n</article>\r\n"
41928
+ module.exports = "<article class=\"pre-execution-setting\">\n <section class=\"script\">\n <u-editor\n @inited=\"onEditorInited\"\n :value.sync=\"script\"\n lang=\"groovy\"\n ></u-editor>\n </section>\n <section class=\"quick-input\">\n <div class=\"info\">\n <p>{{scriptData.description}}</p>\n <!-- <ul>\n <li>request: 请求</li>\n </ul> -->\n </div>\n <i-input class=\"diy-input\" v-model=\"keyword\" @on-change=\"onFilter\" placeholder=\"输入关键字查询\">\n <i class=\"iconfont icon-chaxun\" slot=\"prefix\"></i>\n </i-input>\n <div class=\"quick-list\">\n <div v-for=\"(type, index) in tempScriptData.group\" class=\"quick-type\">\n <div class=\"quick-type-name\" @click=\"onQuickGroupClick(index)\">\n <i-icon type=\"md-arrow-dropright\" :class=\"type.expand ? 'expand' : ''\"/>\n <p>{{type.name}}</p>\n </div>\n <div\n v-show=\"type.expand\"\n v-for=\"item in type.list\"\n :key=\"item.name\"\n class=\"quick-item\"\n @click=\"onClickItem(item)\"\n >\n <i class=\"api-icon icon-item\"></i> {{item.name}}\n </div>\n </div>\n </div>\n </section>\n</article>\n"
41929
41929
 
41930
41930
  /***/ }),
41931
41931
 
@@ -48829,7 +48829,7 @@ module.exports = uncurryThis([].slice);
48829
48829
  /***/ "f40e":
48830
48830
  /***/ (function(module, exports) {
48831
48831
 
48832
- module.exports = "<article class=\"interface-settings\">\n <header>\n<!-- <i-input class=\"diy-input\" v-model=\"interfaceModel.info.url\">-->\n<!-- <i-select transfer slot=\"prepend\" class=\"diy-select\" v-model=\"interfaceModel.info.method\">-->\n<!-- <i-option v-for=\"item in typeList\" :key=\"item.value\" :value=\"item.value\">{{item.text}}</i-option>-->\n<!-- </i-select>-->\n<!-- </i-input>-->\n <i-select class=\"diy-select method-select\" v-model=\"interfaceModel.info.method\">\n <i-option v-for=\"item in typeList\" :key=\"item.value\" :value=\"item.value\">{{item.text}}</i-option>\n </i-select>\n <i-select ref=\"addEnvParamSelect\" class=\"diy-select env-select\" v-model=\"interfaceModel.info.envId\" placeholder=\"请选择环境变量\" clearable>\n <i-option v-for=\"item in paramList\" :key=\"item.id\" :value=\"item.id\">{{item.name + \":\" + item.value}}</i-option>\n <i-option class=\"add-security-item\" value=\"''\">\n <div class=\"add-security-item-content\" @click.stop=\"onAddEnvParam\">\n <i class=\"api-icon icon-add\"></i>\n <span>新增环境变量</span>\n </div>\n </i-option>\n </i-select>\n <i-input class=\"diy-input url-input\" v-model=\"interfaceModel.info.url\"></i-input>\n\n <i-button type=\"primary\" class=\"diy-btn-primary submit-btn\" @click=\"onRun\">发送</i-button>\n <i-button type=\"primary\" class=\"diy-btn-primary\" @click=\"onSave\" ghost>保存</i-button>\n <i-button type=\"primary\" class=\"diy-btn-primary his-btn\" @click=\"onVersion\" ghost>查看历史版本</i-button>\n <i class=\"export iconfont icon-xiazai\" title=\"导出\" type=\"md-download\" @click=\"onExport\"></i>\n <i-upload action=\"\" :before-upload=\"onImport\" :show-upload-list=\"false\">\n <i class=\"import iconfont icon-shangchuan\" title=\"导入\" type=\"md-cloud-upload\"></i>\n </i-upload>\n\n </header>\n <main :class=\"{'transverse': !lengthwise}\">\n <section class=\"request\">\n <div class=\"request-bar\">\n <div\n class=\"tag\"\n :class=\"{'active': currentRequestSettingType.name.indexOf(item.name) === 0}\"\n v-for=\"(item,index) in requertSettingTypeList\"\n :key=\"item.name\"\n @click=\"onClickRequertSettingTpye(item)\"\n >\n <span>{{item.title}}</span>\n </div>\n </div>\n <div class=\"request-content\">\n <component\n :is=\"currentRequestSettingType.name\"\n :lengthwise=\"lengthwise\"\n :interface-model=\"interfaceModel\"\n :response=\"response\"\n :key=\"interfaceModel.info.id + currentRequestSettingType.name\"\n :projectID=\"projectId\"\n :currentSecurityID=\"currentId\"\n @on-current-id=\"onCurrentId\"\n ></component>\n </div>\n </section>\n <response :key=\"interfaceModel.info.id + 'response'\" :lengthwise=\"lengthwise\" :response=\"response\"></response>\n </main>\n <i-spin fix v-show=\"loading\">\n <i class=\"spin-icon-load ivu-icon\"></i>\n </i-spin>\n <u-environment-modal :visiable.sync=\"showEnvironmentModal\" :projectId=\"projectId\" @on-refresh=\"getEnvironmentParamList\"></u-environment-modal>\n</article>\n"
48832
+ module.exports = "<article class=\"interface-settings\">\n <header>\n<!-- <i-input class=\"diy-input\" v-model=\"interfaceModel.info.url\">-->\n<!-- <i-select transfer slot=\"prepend\" class=\"diy-select\" v-model=\"interfaceModel.info.method\">-->\n<!-- <i-option v-for=\"item in typeList\" :key=\"item.value\" :value=\"item.value\">{{item.text}}</i-option>-->\n<!-- </i-select>-->\n<!-- </i-input>-->\n <i-select class=\"diy-select method-select\" v-model=\"interfaceModel.info.method\">\n <i-option v-for=\"item in typeList\" :key=\"item.value\" :value=\"item.value\">{{item.text}}</i-option>\n </i-select>\n <i-select ref=\"addEnvParamSelect\" class=\"diy-select env-select\" v-model=\"interfaceModel.info.envId\" placeholder=\"请选择环境变量\" clearable>\n <i-option v-for=\"item in paramList\" :key=\"item.id\" :value=\"item.id\">{{item.name + \":\" + item.value}}</i-option>\n <i-option class=\"add-security-item\" value=\"''\">\n <div class=\"add-security-item-content\" @click.stop=\"onAddEnvParam\">\n <i class=\"api-icon icon-add\"></i>\n <span>新增环境变量</span>\n </div>\n </i-option>\n </i-select>\n <i-input class=\"diy-input url-input\" v-model=\"interfaceModel.info.url\"></i-input>\n\n <i-button type=\"primary\" class=\"diy-btn-primary submit-btn\" @click=\"onRun\">发送</i-button>\n <i-button type=\"primary\" class=\"diy-btn-primary\" @click=\"onSave\" ghost>保存</i-button>\n <i-button type=\"primary\" class=\"diy-btn-primary his-btn\" @click=\"onVersion\" ghost>查看历史版本</i-button>\n <i class=\"export iconfont icon-xiazai\" title=\"导出\" type=\"md-download\" @click=\"onExport\"></i>\n <i-upload action=\"\" :before-upload=\"onImport\" :show-upload-list=\"false\">\n <i class=\"import iconfont icon-shangchuan\" title=\"导入\" type=\"md-cloud-upload\"></i>\n </i-upload>\n\n </header>\n <main :class=\"{'transverse': !lengthwise}\">\n <section class=\"request\">\n <div class=\"request-bar\">\n <div\n class=\"tag\"\n :class=\"{'active': currentRequestSettingType.name.indexOf(item.name) === 0}\"\n v-for=\"(item,index) in requertSettingTypeList\"\n :key=\"item.name\"\n @click=\"onClickRequertSettingTpye(item)\"\n >\n <span>{{item.title}}</span>\n </div>\n </div>\n <div class=\"request-content\">\n <component\n :is=\"currentRequestSettingType.name\"\n :lengthwise=\"lengthwise\"\n :interface-model=\"interfaceModel\"\n :response=\"response\"\n :key=\"interfaceModel.info.id + currentRequestSettingType.name\"\n :projectID=\"projectId\"\n :currentSecurityID=\"currentId\"\n @on-current-id=\"onCurrentId\"\n ></component>\n </div>\n </section>\n <response :key=\"interfaceModel.info.id + 'response'\" :lengthwise=\"lengthwise\" :response=\"response\"></response>\n </main>\n <i-spin fix v-show=\"loading\">\n <i class=\"spin-icon-load ivu-icon\"></i>\n </i-spin>\n <u-environment-modal :visiable.sync=\"showEnvironmentModal\" :projectId=\"projectId\" @on-refresh=\"getEnvironmentParamList\" :isAdd=\"true\"></u-environment-modal>\n</article>\n"
48833
48833
 
48834
48834
  /***/ }),
48835
48835
 
@@ -59804,6 +59804,7 @@ var lodash_debounce_default = /*#__PURE__*/__webpack_require__.n(lodash_debounce
59804
59804
 
59805
59805
 
59806
59806
 
59807
+
59807
59808
  var environment_variable_modal_extends = undefined && undefined.__extends || function () {
59808
59809
  var _extendStatics = function extendStatics(d, b) {
59809
59810
  _extendStatics = Object.setPrototypeOf || {
@@ -60004,6 +60005,8 @@ function (_super) {
60004
60005
  function EnvironmentVariableModal() {
60005
60006
  var _this = _super !== null && _super.apply(this, arguments) || this;
60006
60007
 
60008
+ _this.isAddOnce = false;
60009
+ _this.exitAddItem = false;
60007
60010
  _this.varList = [];
60008
60011
  _this.keyword = "";
60009
60012
  _this.currentItem = {};
@@ -60040,6 +60043,7 @@ function (_super) {
60040
60043
  return environment_variable_modal_awaiter(this, void 0, void 0, function () {
60041
60044
  return environment_variable_modal_generator(this, function (_a) {
60042
60045
  if (show) {
60046
+ this.isAddOnce = this.isAdd;
60043
60047
  this.getVariableList();
60044
60048
  }
60045
60049
 
@@ -60080,6 +60084,13 @@ function (_super) {
60080
60084
 
60081
60085
  if (!(res === null || res === void 0 ? void 0 : res.hasError)) {
60082
60086
  this.varList = res.result || [];
60087
+
60088
+ if (this.isAddOnce || this.exitAddItem) {
60089
+ this.onAddItem();
60090
+ this.isAddOnce = false;
60091
+ this.exitAddItem = false;
60092
+ }
60093
+
60083
60094
  this.varList.length && this.onSelectItem(this.varList[0]);
60084
60095
  }
60085
60096
 
@@ -60123,6 +60134,13 @@ function (_super) {
60123
60134
  if (!item.id) return [3
60124
60135
  /*break*/
60125
60136
  , 2];
60137
+
60138
+ if (this.varList.find(function (item) {
60139
+ return !item.id;
60140
+ })) {
60141
+ this.exitAddItem = true;
60142
+ }
60143
+
60126
60144
  return [4
60127
60145
  /*yield*/
60128
60146
  , this.service.deleteVariable(item.id)];
@@ -60232,6 +60250,11 @@ function (_super) {
60232
60250
  default: ""
60233
60251
  }), environment_variable_modal_metadata("design:type", String)], EnvironmentVariableModal.prototype, "projectId", void 0);
60234
60252
 
60253
+ environment_variable_modal_decorate([Object(flagwind_web_["config"])({
60254
+ type: Boolean,
60255
+ default: false
60256
+ }), environment_variable_modal_metadata("design:type", Boolean)], EnvironmentVariableModal.prototype, "isAdd", void 0);
60257
+
60235
60258
  environment_variable_modal_decorate([Object(flagwind_web_["watch"])("value"), environment_variable_modal_metadata("design:type", Function), environment_variable_modal_metadata("design:paramtypes", [Boolean]), environment_variable_modal_metadata("design:returntype", Promise)], EnvironmentVariableModal.prototype, "onShowChange", null);
60236
60259
 
60237
60260
  environment_variable_modal_decorate([Object(flagwind_web_["watch"])("varList.length", {
@@ -60348,6 +60371,11 @@ var pre_execution_setting = __webpack_require__("d928");
60348
60371
 
60349
60372
 
60350
60373
 
60374
+
60375
+
60376
+
60377
+
60378
+
60351
60379
  var pre_execution_setting_extends = undefined && undefined.__extends || function () {
60352
60380
  var _extendStatics = function extendStatics(d, b) {
60353
60381
  _extendStatics = Object.setPrototypeOf || {
@@ -60376,6 +60404,22 @@ var pre_execution_setting_extends = undefined && undefined.__extends || function
60376
60404
  };
60377
60405
  }();
60378
60406
 
60407
+ var pre_execution_setting_assign = undefined && undefined.__assign || function () {
60408
+ pre_execution_setting_assign = Object.assign || function (t) {
60409
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
60410
+ s = arguments[i];
60411
+
60412
+ for (var p in s) {
60413
+ if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
60414
+ }
60415
+ }
60416
+
60417
+ return t;
60418
+ };
60419
+
60420
+ return pre_execution_setting_assign.apply(this, arguments);
60421
+ };
60422
+
60379
60423
  var pre_execution_setting_decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
60380
60424
  var c = arguments.length,
60381
60425
  r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
@@ -60541,6 +60585,7 @@ var pre_execution_setting_generator = undefined && undefined.__generator || func
60541
60585
 
60542
60586
 
60543
60587
 
60588
+
60544
60589
  var pre_execution_setting_PreExecutionSetting =
60545
60590
  /** @class */
60546
60591
  function (_super) {
@@ -60550,8 +60595,13 @@ function (_super) {
60550
60595
  var _this = _super !== null && _super.apply(this, arguments) || this;
60551
60596
 
60552
60597
  _this.scriptData = {};
60598
+ _this.tempScriptData = {};
60553
60599
  _this.model = new PreScript();
60554
60600
  _this.key = "preScripts";
60601
+ _this.keyword = "";
60602
+ _this.onFilter = lodash_debounce_default()(function () {
60603
+ _this.filterTypeList();
60604
+ }, 300);
60555
60605
  return _this;
60556
60606
  }
60557
60607
 
@@ -60560,18 +60610,26 @@ function (_super) {
60560
60610
  };
60561
60611
 
60562
60612
  PreExecutionSetting.prototype.getScript = function () {
60613
+ var _a;
60614
+
60563
60615
  return pre_execution_setting_awaiter(this, void 0, void 0, function () {
60564
60616
  var result;
60565
- return pre_execution_setting_generator(this, function (_a) {
60566
- switch (_a.label) {
60617
+ return pre_execution_setting_generator(this, function (_b) {
60618
+ switch (_b.label) {
60567
60619
  case 0:
60568
60620
  return [4
60569
60621
  /*yield*/
60570
60622
  , this.service.preScript()];
60571
60623
 
60572
60624
  case 1:
60573
- result = _a.sent();
60625
+ result = _b.sent();
60574
60626
  this.scriptData = result || {};
60627
+ this.scriptData.group = (_a = this.scriptData.group) === null || _a === void 0 ? void 0 : _a.map(function (item) {
60628
+ return pre_execution_setting_assign(pre_execution_setting_assign({}, item), {
60629
+ expand: true
60630
+ });
60631
+ });
60632
+ this.tempScriptData = this.scriptData.$clone();
60575
60633
  return [2
60576
60634
  /*return*/
60577
60635
  ];
@@ -60600,6 +60658,40 @@ function (_super) {
60600
60658
  configurable: true
60601
60659
  });
60602
60660
 
60661
+ PreExecutionSetting.prototype.filterTypeList = function () {
60662
+ var _this = this;
60663
+
60664
+ if (this.keyword) {
60665
+ var tempGroup = this.scriptData.group.map(function (item) {
60666
+ return pre_execution_setting_assign(pre_execution_setting_assign({}, item), {
60667
+ list: item.list.filter(function (listItem) {
60668
+ return listItem.name.indexOf(_this.keyword) !== -1;
60669
+ })
60670
+ });
60671
+ });
60672
+ this.tempScriptData.group = tempGroup.filter(function (item) {
60673
+ return item.list.length;
60674
+ });
60675
+ } else {
60676
+ this.tempScriptData = this.scriptData.$clone();
60677
+ }
60678
+ };
60679
+
60680
+ PreExecutionSetting.prototype.onQuickGroupClick = function (type) {
60681
+ var _a, _b;
60682
+
60683
+ (_a = this.scriptData.group) === null || _a === void 0 ? void 0 : _a.forEach(function (item) {
60684
+ if (type.name === item.name) {
60685
+ item.expand = !item.expand;
60686
+ }
60687
+ });
60688
+ (_b = this.tempScriptData.group) === null || _b === void 0 ? void 0 : _b.forEach(function (item) {
60689
+ if (type.name === item.name) {
60690
+ item.expand = !item.expand;
60691
+ }
60692
+ });
60693
+ };
60694
+
60603
60695
  var _a, _b;
60604
60696
 
60605
60697
  pre_execution_setting_decorate([Object(flagwind_web_["config"])({
@@ -60634,6 +60726,8 @@ function (_super) {
60634
60726
 
60635
60727
 
60636
60728
 
60729
+
60730
+
60637
60731
  var after_execution_script_extends = undefined && undefined.__extends || function () {
60638
60732
  var _extendStatics = function extendStatics(d, b) {
60639
60733
  _extendStatics = Object.setPrototypeOf || {
@@ -60662,6 +60756,22 @@ var after_execution_script_extends = undefined && undefined.__extends || functio
60662
60756
  };
60663
60757
  }();
60664
60758
 
60759
+ var after_execution_script_assign = undefined && undefined.__assign || function () {
60760
+ after_execution_script_assign = Object.assign || function (t) {
60761
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
60762
+ s = arguments[i];
60763
+
60764
+ for (var p in s) {
60765
+ if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
60766
+ }
60767
+ }
60768
+
60769
+ return t;
60770
+ };
60771
+
60772
+ return after_execution_script_assign.apply(this, arguments);
60773
+ };
60774
+
60665
60775
  var after_execution_script_decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
60666
60776
  var c = arguments.length,
60667
60777
  r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
@@ -60833,18 +60943,26 @@ function (_super) {
60833
60943
  }
60834
60944
 
60835
60945
  AfterExecutionScript.prototype.getScript = function () {
60946
+ var _a;
60947
+
60836
60948
  return after_execution_script_awaiter(this, void 0, void 0, function () {
60837
60949
  var result;
60838
- return after_execution_script_generator(this, function (_a) {
60839
- switch (_a.label) {
60950
+ return after_execution_script_generator(this, function (_b) {
60951
+ switch (_b.label) {
60840
60952
  case 0:
60841
60953
  return [4
60842
60954
  /*yield*/
60843
60955
  , this.service.postScript()];
60844
60956
 
60845
60957
  case 1:
60846
- result = _a.sent();
60958
+ result = _b.sent();
60847
60959
  this.scriptData = result || {};
60960
+ this.scriptData.group = (_a = this.scriptData.group) === null || _a === void 0 ? void 0 : _a.map(function (item) {
60961
+ return after_execution_script_assign(after_execution_script_assign({}, item), {
60962
+ expand: true
60963
+ });
60964
+ });
60965
+ this.tempScriptData = this.scriptData.$clone();
60848
60966
  return [2
60849
60967
  /*return*/
60850
60968
  ];