@egova/egova-api 1.0.187 → 1.0.190

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 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,10 @@ var pre_execution_setting = __webpack_require__("d928");
60348
60371
 
60349
60372
 
60350
60373
 
60374
+
60375
+
60376
+
60377
+
60351
60378
  var pre_execution_setting_extends = undefined && undefined.__extends || function () {
60352
60379
  var _extendStatics = function extendStatics(d, b) {
60353
60380
  _extendStatics = Object.setPrototypeOf || {
@@ -60376,6 +60403,22 @@ var pre_execution_setting_extends = undefined && undefined.__extends || function
60376
60403
  };
60377
60404
  }();
60378
60405
 
60406
+ var pre_execution_setting_assign = undefined && undefined.__assign || function () {
60407
+ pre_execution_setting_assign = Object.assign || function (t) {
60408
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
60409
+ s = arguments[i];
60410
+
60411
+ for (var p in s) {
60412
+ if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
60413
+ }
60414
+ }
60415
+
60416
+ return t;
60417
+ };
60418
+
60419
+ return pre_execution_setting_assign.apply(this, arguments);
60420
+ };
60421
+
60379
60422
  var pre_execution_setting_decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
60380
60423
  var c = arguments.length,
60381
60424
  r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
@@ -60541,6 +60584,7 @@ var pre_execution_setting_generator = undefined && undefined.__generator || func
60541
60584
 
60542
60585
 
60543
60586
 
60587
+
60544
60588
  var pre_execution_setting_PreExecutionSetting =
60545
60589
  /** @class */
60546
60590
  function (_super) {
@@ -60550,8 +60594,13 @@ function (_super) {
60550
60594
  var _this = _super !== null && _super.apply(this, arguments) || this;
60551
60595
 
60552
60596
  _this.scriptData = {};
60597
+ _this.tempScriptData = {};
60553
60598
  _this.model = new PreScript();
60554
60599
  _this.key = "preScripts";
60600
+ _this.keyword = "";
60601
+ _this.onFilter = lodash_debounce_default()(function () {
60602
+ _this.filterTypeList();
60603
+ }, 300);
60555
60604
  return _this;
60556
60605
  }
60557
60606
 
@@ -60560,18 +60609,26 @@ function (_super) {
60560
60609
  };
60561
60610
 
60562
60611
  PreExecutionSetting.prototype.getScript = function () {
60612
+ var _a;
60613
+
60563
60614
  return pre_execution_setting_awaiter(this, void 0, void 0, function () {
60564
60615
  var result;
60565
- return pre_execution_setting_generator(this, function (_a) {
60566
- switch (_a.label) {
60616
+ return pre_execution_setting_generator(this, function (_b) {
60617
+ switch (_b.label) {
60567
60618
  case 0:
60568
60619
  return [4
60569
60620
  /*yield*/
60570
60621
  , this.service.preScript()];
60571
60622
 
60572
60623
  case 1:
60573
- result = _a.sent();
60624
+ result = _b.sent();
60574
60625
  this.scriptData = result || {};
60626
+ this.scriptData.group = (_a = this.scriptData.group) === null || _a === void 0 ? void 0 : _a.map(function (item) {
60627
+ return pre_execution_setting_assign(pre_execution_setting_assign({}, item), {
60628
+ expand: true
60629
+ });
60630
+ });
60631
+ this.tempScriptData = this.scriptData.$clone();
60575
60632
  return [2
60576
60633
  /*return*/
60577
60634
  ];
@@ -60600,6 +60657,26 @@ function (_super) {
60600
60657
  configurable: true
60601
60658
  });
60602
60659
 
60660
+ PreExecutionSetting.prototype.filterTypeList = function () {
60661
+ var _this = this;
60662
+
60663
+ var tempGroup = this.scriptData.group.map(function (item) {
60664
+ return pre_execution_setting_assign(pre_execution_setting_assign({}, item), {
60665
+ list: item.list.filter(function (listItem) {
60666
+ return listItem.name.indexOf(_this.keyword) !== -1;
60667
+ })
60668
+ });
60669
+ });
60670
+ this.tempScriptData.group = tempGroup.filter(function (item) {
60671
+ return item.list.length;
60672
+ });
60673
+ };
60674
+
60675
+ PreExecutionSetting.prototype.onQuickGroupClick = function (index) {
60676
+ this.scriptData.group[index].expand = !this.scriptData.group[index].expand;
60677
+ this.tempScriptData.group[index].expand = !this.tempScriptData.group[index].expand;
60678
+ };
60679
+
60603
60680
  var _a, _b;
60604
60681
 
60605
60682
  pre_execution_setting_decorate([Object(flagwind_web_["config"])({
@@ -60634,6 +60711,8 @@ function (_super) {
60634
60711
 
60635
60712
 
60636
60713
 
60714
+
60715
+
60637
60716
  var after_execution_script_extends = undefined && undefined.__extends || function () {
60638
60717
  var _extendStatics = function extendStatics(d, b) {
60639
60718
  _extendStatics = Object.setPrototypeOf || {
@@ -60662,6 +60741,22 @@ var after_execution_script_extends = undefined && undefined.__extends || functio
60662
60741
  };
60663
60742
  }();
60664
60743
 
60744
+ var after_execution_script_assign = undefined && undefined.__assign || function () {
60745
+ after_execution_script_assign = Object.assign || function (t) {
60746
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
60747
+ s = arguments[i];
60748
+
60749
+ for (var p in s) {
60750
+ if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
60751
+ }
60752
+ }
60753
+
60754
+ return t;
60755
+ };
60756
+
60757
+ return after_execution_script_assign.apply(this, arguments);
60758
+ };
60759
+
60665
60760
  var after_execution_script_decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
60666
60761
  var c = arguments.length,
60667
60762
  r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
@@ -60833,18 +60928,26 @@ function (_super) {
60833
60928
  }
60834
60929
 
60835
60930
  AfterExecutionScript.prototype.getScript = function () {
60931
+ var _a;
60932
+
60836
60933
  return after_execution_script_awaiter(this, void 0, void 0, function () {
60837
60934
  var result;
60838
- return after_execution_script_generator(this, function (_a) {
60839
- switch (_a.label) {
60935
+ return after_execution_script_generator(this, function (_b) {
60936
+ switch (_b.label) {
60840
60937
  case 0:
60841
60938
  return [4
60842
60939
  /*yield*/
60843
60940
  , this.service.postScript()];
60844
60941
 
60845
60942
  case 1:
60846
- result = _a.sent();
60943
+ result = _b.sent();
60847
60944
  this.scriptData = result || {};
60945
+ this.scriptData.group = (_a = this.scriptData.group) === null || _a === void 0 ? void 0 : _a.map(function (item) {
60946
+ return after_execution_script_assign(after_execution_script_assign({}, item), {
60947
+ expand: true
60948
+ });
60949
+ });
60950
+ this.tempScriptData = this.scriptData.$clone();
60848
60951
  return [2
60849
60952
  /*return*/
60850
60953
  ];