@egova/egova-api 1.0.186 → 1.0.189

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
 
@@ -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\">\r\n <header>\r\n<!-- <i-input class=\"diy-input\" v-model=\"interfaceModel.info.url\">-->\r\n<!-- <i-select transfer slot=\"prepend\" class=\"diy-select\" v-model=\"interfaceModel.info.method\">-->\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>-->\r\n <i-select class=\"diy-select method-select\" v-model=\"interfaceModel.info.method\">\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-select class=\"diy-select env-select\" v-model=\"interfaceModel.info.envId\" clearable>\r\n <i-option v-for=\"item in paramList\" :key=\"item.id\" :value=\"item.id\">{{item.name + \":\" + item.value}}</i-option>\r\n </i-select>\r\n <i-input class=\"diy-input url-input\" v-model=\"interfaceModel.info.url\"></i-input>\r\n\r\n <i-button type=\"primary\" class=\"diy-btn-primary submit-btn\" @click=\"onRun\">发送</i-button>\r\n <i-button type=\"primary\" class=\"diy-btn-primary\" @click=\"onSave\" ghost>保存</i-button>\r\n <i-button type=\"primary\" class=\"diy-btn-primary his-btn\" @click=\"onVersion\" ghost>查看历史版本</i-button>\r\n <i class=\"export iconfont icon-xiazai\" title=\"导出\" type=\"md-download\" @click=\"onExport\"></i>\r\n <i-upload action=\"\" :before-upload=\"onImport\" :show-upload-list=\"false\">\r\n <i class=\"import iconfont icon-shangchuan\" title=\"导入\" type=\"md-cloud-upload\"></i>\r\n </i-upload>\r\n\r\n </header>\r\n <main :class=\"{'transverse': !lengthwise}\">\r\n <section class=\"request\">\r\n <div class=\"request-bar\">\r\n <div\r\n class=\"tag\"\r\n :class=\"{'active': currentRequestSettingType.name.indexOf(item.name) === 0}\"\r\n v-for=\"(item,index) in requertSettingTypeList\"\r\n :key=\"item.name\"\r\n @click=\"onClickRequertSettingTpye(item)\"\r\n >\r\n <span>{{item.title}}</span>\r\n </div>\r\n </div>\r\n <div class=\"request-content\">\r\n <component\r\n :is=\"currentRequestSettingType.name\"\r\n :lengthwise=\"lengthwise\"\r\n :interface-model=\"interfaceModel\"\r\n :response=\"response\"\r\n :key=\"interfaceModel.info.id + currentRequestSettingType.name\"\r\n :projectID=\"projectId\"\r\n :currentSecurityID=\"currentId\"\r\n @on-current-id=\"onCurrentId\"\r\n ></component>\r\n </div>\r\n </section>\r\n <response :key=\"interfaceModel.info.id + 'response'\" :lengthwise=\"lengthwise\" :response=\"response\"></response>\r\n </main>\r\n <i-spin fix v-show=\"loading\">\r\n <i class=\"spin-icon-load ivu-icon\"></i>\r\n </i-spin>\r\n</article>\r\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)];
@@ -60132,6 +60150,7 @@ function (_super) {
60132
60150
 
60133
60151
  if (!(res === null || res === void 0 ? void 0 : res.hasError)) {
60134
60152
  this.getVariableList();
60153
+ this.$emit("on-refresh");
60135
60154
  }
60136
60155
 
60137
60156
  return [3
@@ -60207,6 +60226,7 @@ function (_super) {
60207
60226
  if (res && !res.hasError) {
60208
60227
  this.$message.success("保存成功!");
60209
60228
  this.getVariableList();
60229
+ this.$emit("on-refresh");
60210
60230
  }
60211
60231
 
60212
60232
  return [2
@@ -60230,6 +60250,11 @@ function (_super) {
60230
60250
  default: ""
60231
60251
  }), environment_variable_modal_metadata("design:type", String)], EnvironmentVariableModal.prototype, "projectId", void 0);
60232
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
+
60233
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);
60234
60259
 
60235
60260
  environment_variable_modal_decorate([Object(flagwind_web_["watch"])("varList.length", {
@@ -63502,6 +63527,7 @@ var interface_settings_generator = undefined && undefined.__generator || functio
63502
63527
 
63503
63528
 
63504
63529
 
63530
+
63505
63531
  var interface_settings_InterfaceSettings =
63506
63532
  /** @class */
63507
63533
  function (_super) {
@@ -63513,6 +63539,7 @@ function (_super) {
63513
63539
  _this.response = new Response();
63514
63540
  _this.responseCache = new Map();
63515
63541
  _this.loading = false;
63542
+ _this.showEnvironmentModal = false;
63516
63543
  _this.currentId = "";
63517
63544
  _this.paramList = [];
63518
63545
  _this.typeList = [{
@@ -63763,6 +63790,11 @@ function (_super) {
63763
63790
  });
63764
63791
  };
63765
63792
 
63793
+ InterfaceSettings.prototype.onAddEnvParam = function () {
63794
+ this.$refs.addEnvParamSelect.visible = false;
63795
+ this.showEnvironmentModal = true;
63796
+ };
63797
+
63766
63798
  var _a, _b;
63767
63799
 
63768
63800
  interface_settings_decorate([autowired(project_detail_service), interface_settings_metadata("design:type", typeof (_a = typeof project_detail_service !== "undefined" && project_detail_service) === "function" ? _a : Object)], InterfaceSettings.prototype, "service", void 0);
@@ -63795,7 +63827,8 @@ function (_super) {
63795
63827
  "pre-execution": project_detail_pre_execution_setting,
63796
63828
  "after-execution-transfer": project_detail_after_execution_transfer,
63797
63829
  "after-execution-script": after_execution_script,
63798
- "v2security": project_detail_security_setting_v2
63830
+ "v2security": project_detail_security_setting_v2,
63831
+ "u-environment-modal": project_detail_environment_variable_modal
63799
63832
  }
63800
63833
  })], InterfaceSettings);
63801
63834
  return InterfaceSettings;