@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.
package/dist/index.umd.js CHANGED
@@ -21190,7 +21190,7 @@ exports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDes
21190
21190
  /***/ "07ab":
21191
21191
  /***/ (function(module, exports) {
21192
21192
 
21193
- 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"
21193
+ 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"
21194
21194
 
21195
21195
  /***/ }),
21196
21196
 
@@ -48838,7 +48838,7 @@ module.exports = uncurryThis([].slice);
48838
48838
  /***/ "f40e":
48839
48839
  /***/ (function(module, exports) {
48840
48840
 
48841
- 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"
48841
+ 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"
48842
48842
 
48843
48843
  /***/ }),
48844
48844
 
@@ -59813,6 +59813,7 @@ var lodash_debounce_default = /*#__PURE__*/__webpack_require__.n(lodash_debounce
59813
59813
 
59814
59814
 
59815
59815
 
59816
+
59816
59817
  var environment_variable_modal_extends = undefined && undefined.__extends || function () {
59817
59818
  var _extendStatics = function extendStatics(d, b) {
59818
59819
  _extendStatics = Object.setPrototypeOf || {
@@ -60013,6 +60014,8 @@ function (_super) {
60013
60014
  function EnvironmentVariableModal() {
60014
60015
  var _this = _super !== null && _super.apply(this, arguments) || this;
60015
60016
 
60017
+ _this.isAddOnce = false;
60018
+ _this.exitAddItem = false;
60016
60019
  _this.varList = [];
60017
60020
  _this.keyword = "";
60018
60021
  _this.currentItem = {};
@@ -60049,6 +60052,7 @@ function (_super) {
60049
60052
  return environment_variable_modal_awaiter(this, void 0, void 0, function () {
60050
60053
  return environment_variable_modal_generator(this, function (_a) {
60051
60054
  if (show) {
60055
+ this.isAddOnce = this.isAdd;
60052
60056
  this.getVariableList();
60053
60057
  }
60054
60058
 
@@ -60089,6 +60093,13 @@ function (_super) {
60089
60093
 
60090
60094
  if (!(res === null || res === void 0 ? void 0 : res.hasError)) {
60091
60095
  this.varList = res.result || [];
60096
+
60097
+ if (this.isAddOnce || this.exitAddItem) {
60098
+ this.onAddItem();
60099
+ this.isAddOnce = false;
60100
+ this.exitAddItem = false;
60101
+ }
60102
+
60092
60103
  this.varList.length && this.onSelectItem(this.varList[0]);
60093
60104
  }
60094
60105
 
@@ -60132,6 +60143,13 @@ function (_super) {
60132
60143
  if (!item.id) return [3
60133
60144
  /*break*/
60134
60145
  , 2];
60146
+
60147
+ if (this.varList.find(function (item) {
60148
+ return !item.id;
60149
+ })) {
60150
+ this.exitAddItem = true;
60151
+ }
60152
+
60135
60153
  return [4
60136
60154
  /*yield*/
60137
60155
  , this.service.deleteVariable(item.id)];
@@ -60141,6 +60159,7 @@ function (_super) {
60141
60159
 
60142
60160
  if (!(res === null || res === void 0 ? void 0 : res.hasError)) {
60143
60161
  this.getVariableList();
60162
+ this.$emit("on-refresh");
60144
60163
  }
60145
60164
 
60146
60165
  return [3
@@ -60216,6 +60235,7 @@ function (_super) {
60216
60235
  if (res && !res.hasError) {
60217
60236
  this.$message.success("保存成功!");
60218
60237
  this.getVariableList();
60238
+ this.$emit("on-refresh");
60219
60239
  }
60220
60240
 
60221
60241
  return [2
@@ -60239,6 +60259,11 @@ function (_super) {
60239
60259
  default: ""
60240
60260
  }), environment_variable_modal_metadata("design:type", String)], EnvironmentVariableModal.prototype, "projectId", void 0);
60241
60261
 
60262
+ environment_variable_modal_decorate([Object(flagwind_web_["config"])({
60263
+ type: Boolean,
60264
+ default: false
60265
+ }), environment_variable_modal_metadata("design:type", Boolean)], EnvironmentVariableModal.prototype, "isAdd", void 0);
60266
+
60242
60267
  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);
60243
60268
 
60244
60269
  environment_variable_modal_decorate([Object(flagwind_web_["watch"])("varList.length", {
@@ -63511,6 +63536,7 @@ var interface_settings_generator = undefined && undefined.__generator || functio
63511
63536
 
63512
63537
 
63513
63538
 
63539
+
63514
63540
  var interface_settings_InterfaceSettings =
63515
63541
  /** @class */
63516
63542
  function (_super) {
@@ -63522,6 +63548,7 @@ function (_super) {
63522
63548
  _this.response = new Response();
63523
63549
  _this.responseCache = new Map();
63524
63550
  _this.loading = false;
63551
+ _this.showEnvironmentModal = false;
63525
63552
  _this.currentId = "";
63526
63553
  _this.paramList = [];
63527
63554
  _this.typeList = [{
@@ -63772,6 +63799,11 @@ function (_super) {
63772
63799
  });
63773
63800
  };
63774
63801
 
63802
+ InterfaceSettings.prototype.onAddEnvParam = function () {
63803
+ this.$refs.addEnvParamSelect.visible = false;
63804
+ this.showEnvironmentModal = true;
63805
+ };
63806
+
63775
63807
  var _a, _b;
63776
63808
 
63777
63809
  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);
@@ -63804,7 +63836,8 @@ function (_super) {
63804
63836
  "pre-execution": project_detail_pre_execution_setting,
63805
63837
  "after-execution-transfer": project_detail_after_execution_transfer,
63806
63838
  "after-execution-script": after_execution_script,
63807
- "v2security": project_detail_security_setting_v2
63839
+ "v2security": project_detail_security_setting_v2,
63840
+ "u-environment-modal": project_detail_environment_variable_modal
63808
63841
  }
63809
63842
  })], InterfaceSettings);
63810
63843
  return InterfaceSettings;