@egova/egova-api 1.0.165 → 1.0.166
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.common.js +116 -14
- package/dist/index.css +1 -1
- package/dist/index.umd.js +116 -14
- package/dist/index.umd.min.js +2 -2
- package/dist/types/src/views/project-detail/interface-settings/index.d.ts +3 -0
- package/dist/types/src/views/project-detail/security-setting-v2/index.d.ts +1 -0
- package/dist/types/src/views/project-detail/service.d.ts +1 -0
- package/package.json +2 -2
package/dist/index.umd.js
CHANGED
|
@@ -26487,7 +26487,7 @@ module.exports = function (argument) {
|
|
|
26487
26487
|
/***/ "3bf8":
|
|
26488
26488
|
/***/ (function(module, exports) {
|
|
26489
26489
|
|
|
26490
|
-
module.exports = "<i-modal draggable sticky reset-drag-position :mask-closable=\"false\" v-model=\"show\" width=\"1000\" class=\"u-security-modal diy-modal\" transfer>\n <header slot=\"header\">授权认证</header>\n <main class=\"security-content\">\n <div class=\"left\">\n <div class=\"left-title\">\n <div class=\"left-title-text\">授权列表</div>\n <i class=\"api-icon icon-add\" @click=\"onAddItem\"></i>\n </div>\n <div class=\"left-content\">\n <i-input class=\"diy-input search-input\" v-model=\"keyword\" placeholder=\"输入关键字查询\" @on-change=\"onFilter\">\n <template #prefix>\n <i-icon type=\"ios-search\"/>\n </template>\n </i-input>\n <div class=\"security-list\">\n <div class=\"security-list-item\"\n :class=\"currentSecurityItem.id === item.id ? 'security-list-item-active' : ''\"\n v-for=\"(item,index) in securityList\"\n :key=\"item.id || index\"\n @click=\"onSelectSecurityItem(item)\"\n >\n <div class=\"security-list-item-name\">\n <i class=\"iconfont icon-shouquan1\"></i>\n <div class=\"security-list-item-text\">{{ item.name || \"新授权\" }}</div>\n </div>\n <i-poptip confirm title=\"确认删除这条数据吗?\" transfer placement=\"top-end\" @on-ok=\"onDelete(item)\">\n <i class=\"iconfont icon-delete\"></i>\n </i-poptip>\n<!-- <i class=\"iconfont icon-delete\" @click.stop=\"onDelete(item)\"></i>-->\n </div>\n </div>\n </div>\n </div>\n <div class=\"right\">\n <div class=\"right-title\">授权内容</div>\n <div class=\"right-content\">\n <i-form class=\"security-content-form\"label-colon :
|
|
26490
|
+
module.exports = "<i-modal draggable sticky reset-drag-position :mask-closable=\"false\" v-model=\"show\" width=\"1000\" class=\"u-security-modal diy-modal\" transfer>\r\n <header slot=\"header\">授权认证</header>\r\n <main class=\"security-content\">\r\n <div class=\"left\">\r\n <div class=\"left-title\">\r\n <div class=\"left-title-text\">授权列表</div>\r\n <i class=\"api-icon icon-add\" @click=\"onAddItem\"></i>\r\n </div>\r\n <div class=\"left-content\">\r\n <i-input class=\"diy-input search-input\" v-model=\"keyword\" placeholder=\"输入关键字查询\" @on-change=\"onFilter\">\r\n <template #prefix>\r\n <i-icon type=\"ios-search\"/>\r\n </template>\r\n </i-input>\r\n <div class=\"security-list\">\r\n <div class=\"security-list-item\"\r\n :class=\"currentSecurityItem.id === item.id ? 'security-list-item-active' : ''\"\r\n v-for=\"(item,index) in securityList\"\r\n :key=\"item.id || index\"\r\n @click=\"onSelectSecurityItem(item)\"\r\n >\r\n <div class=\"security-list-item-name\">\r\n <i class=\"iconfont icon-shouquan1\"></i>\r\n <div class=\"security-list-item-text\">{{ item.name || \"新授权\" }}</div>\r\n </div>\r\n <i-poptip confirm title=\"确认删除这条数据吗?\" transfer placement=\"top-end\" @on-ok=\"onDelete(item)\">\r\n <i class=\"iconfont icon-delete\"></i>\r\n </i-poptip>\r\n<!-- <i class=\"iconfont icon-delete\" @click.stop=\"onDelete(item)\"></i>-->\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"right\">\r\n <div class=\"right-title\">授权内容</div>\r\n <div class=\"right-content\">\r\n <i-form class=\"security-content-form\"label-colon :model=\"currentSecurityItem\">\r\n <template v-if=\"currentSecurityItem.type\">\r\n <i-form-item class=\"security-content-form-item\" :class=\"currentSecurityItem.type === 'OAuth2' ? 'oauth2-form-item' : ''\" label=\"授权名称\">\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.name\"></i-input>\r\n </i-form-item>\r\n <i-form-item class=\"security-content-form-item\" :class=\"currentSecurityItem.type === 'OAuth2' ? 'oauth2-form-item' : ''\" label=\"授权类型\">\r\n <i-select class=\"diy-select\" v-model=\"currentSecurityItem.type\">\r\n <i-option v-for=\"(item,index) in securityTypeList\" :value=\"item.name\" :key=\"index\">{{ item.text }}</i-option>\r\n </i-select>\r\n </i-form-item>\r\n </template>\r\n <template v-if=\"currentSecurityItem.type && currentSecurityItem.type !== 'GROOVY_SCRIPT'\">\r\n <i-form-item class=\"security-content-form-item\" :class=\"currentSecurityItem.type === 'OAuth2' ? 'oauth2-form-item' : ''\" label=\"存储位置\">\r\n <i-select class=\"diy-select\" v-model=\"currentSecurityItem.location\">\r\n <i-option v-for=\"(item,index) in tokenLocationTypeList\" :value=\"item.name\" :key=\"item.name\">{{ item.text }}</i-option>\r\n </i-select>\r\n </i-form-item>\r\n <i-form-item class=\"security-content-form-item\" :class=\"currentSecurityItem.type === 'OAuth2' ? 'oauth2-form-item' : ''\" label=\"存储键值\">\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.locationKey\"></i-input>\r\n </i-form-item>\r\n </template>\r\n <template v-if=\"currentSecurityItem.type === 'Api_Key'\">\r\n <i-form-item class=\"security-content-form-item\" label=\"key\">\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.key\"></i-input>\r\n </i-form-item>\r\n </template>\r\n <template v-if=\"currentSecurityItem.type === 'Base_Auth'\">\r\n <i-form-item class=\"security-content-form-item\" label=\"username\">\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.username\"></i-input>\r\n </i-form-item>\r\n <i-form-item class=\"security-content-form-item\" label=\"password\">\r\n <i-input class=\"diy-password-input diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.password\" type=\"password\" password></i-input>\r\n </i-form-item>\r\n </template>\r\n <template v-if=\"currentSecurityItem.type === 'OAuth2'\">\r\n <i-form-item class=\"security-content-form-item oauth2-form-item\">\r\n <u-tips-form-label slot=\"label\" :labelTitle=\"'Header Prefix'\" tips=\"token前缀 例如 Bearer\" label-colon></u-tips-form-label>\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.headerPrefix\"></i-input>\r\n </i-form-item>\r\n <i-form-item class=\"security-content-form-item oauth2-form-item\">\r\n <u-tips-form-label slot=\"label\" :labelTitle=\"'Grant Type'\" tips=\"认证类型\" label-colon></u-tips-form-label>\r\n <i-select v-model=\"currentSecurityItem.content.grantType\" class=\"diy-select\">\r\n <i-option v-for=\"item in grantTypeList\" :key=\"item.name\" :value=\"item.name\"> {{item.text}} </i-option>\r\n </i-select>\r\n </i-form-item>\r\n <i-form-item class=\"security-content-form-item oauth2-form-item\">\r\n <u-tips-form-label slot=\"label\" :labelTitle=\"'Access Token Url'\" tips=\"获取token的httpUrl\" label-colon></u-tips-form-label>\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.tokenUrl\"></i-input>\r\n </i-form-item>\r\n <i-form-item class=\"security-content-form-item oauth2-form-item\">\r\n <u-tips-form-label slot=\"label\" :labelTitle=\"'TokenPath'\" tips=\"获取响应结果的token路径\" label-colon></u-tips-form-label>\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.tokenPath\"></i-input>\r\n </i-form-item>\r\n <i-form-item class=\"security-content-form-item oauth2-form-item\" label=\"Client ID\">\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.clientId\"></i-input>\r\n </i-form-item>\r\n <i-form-item class=\"security-content-form-item oauth2-form-item\" label=\"Client Secret\">\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.clientSecret\"></i-input>\r\n </i-form-item>\r\n <template v-if=\"currentSecurityItem.content.grantType === 'password'\">\r\n <i-form-item class=\"security-content-form-item oauth2-form-item\" label=\"username\">\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.username\"></i-input>\r\n </i-form-item>\r\n <i-form-item class=\"security-content-form-item oauth2-form-item\" label=\"password\">\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.password\" type=\"password\" password></i-input>\r\n </i-form-item>\r\n </template>\r\n <i-form-item class=\"security-content-form-item oauth2-form-item\">\r\n <u-tips-form-label slot=\"label\" :labelTitle=\"'Scope'\" tips=\"访问请求的范围,它可能有多个空格分隔的值\" label-colon></u-tips-form-label>\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.scope\"></i-input>\r\n </i-form-item>\r\n </template>\r\n <template v-if=\"currentSecurityItem.type === 'GROOVY_SCRIPT'\">\r\n <i-form-item class=\"security-content-form-item script-area-item\" label=\"授权脚本\">\r\n <i-input class=\"diy-input script-area\" type=\"textarea\" placeholder=\"请输入\" v-model=\"currentSecurityItem.scriptContent\"></i-input>\r\n </i-form-item>\r\n </template>\r\n </i-form>\r\n </div>\r\n </div>\r\n </main>\r\n\r\n <footer slot=\"footer\">\r\n <template>\r\n <i-button class=\"diy-btn-default\" @click=\"onCancel\">取消</i-button>\r\n <i-button type=\"primary\" class=\"diy-btn-primary\" @click=\"onSave\">保存</i-button>\r\n </template>\r\n </footer>\r\n</i-modal>\r\n"
|
|
26491
26491
|
|
|
26492
26492
|
/***/ }),
|
|
26493
26493
|
|
|
@@ -26532,7 +26532,7 @@ defineIterator(String, 'String', function (iterated) {
|
|
|
26532
26532
|
/***/ "3de4":
|
|
26533
26533
|
/***/ (function(module, exports) {
|
|
26534
26534
|
|
|
26535
|
-
module.exports = "<article class=\"security-setting-v2\">\n <div class=\"left\">\n <i-form class=\"type-form diy-form\" label-colon>\n <i-form-item label=\"选择授权\">\
|
|
26535
|
+
module.exports = "<article class=\"security-setting-v2\">\r\n <div class=\"left\">\r\n <i-form class=\"type-form diy-form\" label-colon>\r\n <i-form-item label=\"选择授权\">\r\n <i-select ref=\"addSecuritySelect\" class=\"diy-select add-security-select\" v-model=\"currentSecurityItemId\" @on-change=\"onChangeSecurityItem($event)\" @on-clear=\"onClear\" clearable>\r\n <i-option v-for=\"item in securityList\" :key=\"item.id\" :value=\"item.id\">{{ item.name }}</i-option>\r\n <i-option class=\"add-security-item\" value=\"''\">\r\n <div class=\"add-security-item-content\" @click.stop=\"onAddSecurityItem\">\r\n <i class=\"api-icon icon-add\"></i>\r\n <span>新建授权</span>\r\n </div>\r\n </i-option>\r\n </i-select>\r\n </i-form-item>\r\n <i-form-item label=\"授权类型\">\r\n <span class=\"security-type\">{{ currentSecurityItem._type?.text ? currentSecurityItem._type.text : \"暂无\" }}</span>\r\n </i-form-item>\r\n </i-form>\r\n </div>\r\n <div class=\"right\">\r\n <div class=\"right-title\">授权详情</div>\r\n <div class=\"right-content\">\r\n <div class=\"no-data\" v-if=\"!currentSecurityItem.type\">\r\n <div class=\"no-data-bg\"></div>\r\n <div class=\"no-data-text\">请在左侧下拉框中选择已建立授权</div>\r\n </div>\r\n <div class=\"script\" v-if=\"currentSecurityItem.type === 'GROOVY_SCRIPT'\">\r\n <i-input class=\"diy-input script-area\" type=\"textarea\" v-model=\"currentSecurityItem.scriptContent\" :readonly=\"true\"></i-input>\r\n </div>\r\n <div class=\"api-key\" v-if=\"currentSecurityItem.type === 'Api_Key'\">\r\n <i-form class=\"oauth-2-form diy-form\" label-colon>\r\n <i-form-item label=\"存储位置\">\r\n <span class=\"form-item-text\">{{ currentSecurityItem._location?.text ? currentSecurityItem._location.text : \"\"}}</span>\r\n </i-form-item>\r\n <i-form-item label=\"存储键值\">\r\n <span class=\"form-item-text\">{{ currentSecurityItem.locationKey }}</span>\r\n </i-form-item>\r\n <i-form-item label=\"key\">\r\n <span class=\"form-item-text\">{{ currentSecurityItem.content.key }}</span>\r\n </i-form-item>\r\n </i-form>\r\n </div>\r\n <div class=\"base-auth\" v-if=\"currentSecurityItem.type === 'Base_Auth'\">\r\n <i-form class=\"oauth-2-form diy-form\" label-colon>\r\n <i-form-item label=\"存储位置\">\r\n <span class=\"form-item-text\">{{ currentSecurityItem._location?.text ? currentSecurityItem._location.text : \"\" }}</span>\r\n </i-form-item>\r\n <i-form-item label=\"存储键值\">\r\n <span class=\"form-item-text\">{{ currentSecurityItem.locationKey }}</span>\r\n </i-form-item>\r\n <i-form-item label=\"username\">\r\n <span class=\"form-item-text\">{{ currentSecurityItem.content.username }}</span>\r\n </i-form-item>\r\n <i-form-item label=\"password\">\r\n <!-- <span class=\"form-item-text\">{{ \"·\" }}</span>-->\r\n <!-- <i-input class=\"diy-input\" v-model=\"model.password\" type=\"password\" password placeholder=\"请输入\"> </i-input>-->\r\n <i-input class=\"diy-password-input diy-input\" :value=\"currentSecurityItem.content.password\" type=\"password\"></i-input>\r\n </i-form-item>\r\n </i-form>\r\n </div>\r\n <div class=\"oauth-2\" v-if=\"currentSecurityItem.type === 'OAuth2'\">\r\n <i-form class=\"oauth-2-form diy-form\" label-colon>\r\n <i-form-item label=\"存储位置\">\r\n <span class=\"form-item-text\">{{ currentSecurityItem._location?.text ? currentSecurityItem._location.text : \"\" }}</span>\r\n </i-form-item>\r\n <i-form-item label=\"存储键值\">\r\n <span class=\"form-item-text\">{{ currentSecurityItem.locationKey }}</span>\r\n </i-form-item>\r\n <i-form-item>\r\n <u-tips-form-label slot=\"label\" :labelTitle=\"'Header Prefix'\" tips=\"token前缀 例如 Bearer\" label-colon></u-tips-form-label>\r\n <span class=\"form-item-text\">{{ currentSecurityItem.content.headerPrefix }}</span>\r\n </i-form-item>\r\n <i-form-item>\r\n <u-tips-form-label slot=\"label\" :labelTitle=\"'Grant Type'\" tips=\"认证类型\" label-colon></u-tips-form-label>\r\n <span class=\"form-item-text\">{{ findGrantTypeText(currentSecurityItem.content.grantType) }}</span>\r\n </i-form-item>\r\n <i-form-item>\r\n <u-tips-form-label slot=\"label\" :labelTitle=\"'Access Token Url'\" tips=\"获取token的httpUrl\" label-colon></u-tips-form-label>\r\n <span class=\"form-item-text\">{{ currentSecurityItem.content.tokenUrl }}</span>\r\n </i-form-item>\r\n <i-form-item>\r\n <u-tips-form-label slot=\"label\" :labelTitle=\"'TokenPath'\" tips=\"获取响应结果的token路径\" label-colon></u-tips-form-label>\r\n <span class=\"form-item-text\">{{ currentSecurityItem.content.tokenPath }}</span>\r\n </i-form-item>\r\n <i-form-item label=\"Client ID\">\r\n <span class=\"form-item-text\">{{ currentSecurityItem.content.clientId }}</span>\r\n </i-form-item>\r\n <i-form-item label=\"Client Secret\">\r\n <span class=\"form-item-text\">{{ currentSecurityItem.content.clientSecret }}</span>\r\n </i-form-item>\r\n <template v-if=\"currentSecurityItem.content.grantType === 'password'\">\r\n <i-form-item class=\"security-content-form-item\" label=\"username\">\r\n <span class=\"form-item-text\">{{ currentSecurityItem.content.username }}</span>\r\n </i-form-item>\r\n <i-form-item class=\"security-content-form-item\" label=\"password\">\r\n <i-input class=\"diy-password-input diy-input\" :value=\"currentSecurityItem.content.password\" type=\"password\"></i-input>\r\n </i-form-item>\r\n </template>\r\n <i-form-item label=\"Scope\">\r\n <u-tips-form-label slot=\"label\" :labelTitle=\"'Scope'\" tips=\"访问请求的范围,它可能有多个空格分隔的值\" label-colon></u-tips-form-label>\r\n <span class=\"form-item-text\">{{ currentSecurityItem.content.scope }}</span>\r\n </i-form-item>\r\n </i-form>\r\n </div>\r\n </div>\r\n </div>\r\n <u-security-modal v-model=\"showSecurity\" :projectID=\"projectID\" :isAdd=\"isAdd\"></u-security-modal>\r\n</article>\r\n"
|
|
26536
26536
|
|
|
26537
26537
|
/***/ }),
|
|
26538
26538
|
|
|
@@ -48615,7 +48615,7 @@ module.exports = uncurryThis([].slice);
|
|
|
48615
48615
|
/***/ "f40e":
|
|
48616
48616
|
/***/ (function(module, exports) {
|
|
48617
48617
|
|
|
48618
|
-
module.exports = "<article class=\"interface-settings\">\r\n <header>\r\n <i-input class=\"diy-input\" v-model=\"interfaceModel.info.url\"
|
|
48618
|
+
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\">\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\" @click=\"onVersion\" ghost>查看历史版本</i-button>\r\n <i-icon class=\"export\" title=\"导出\" type=\"md-download\" @click=\"onExport\" />\r\n <i-upload action=\"\" :before-upload=\"onImport\" :show-upload-list=\"false\">\r\n <i-icon class=\"import\" title=\"导入\" type=\"md-cloud-upload\" />\r\n </i-upload>\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"
|
|
48619
48619
|
|
|
48620
48620
|
/***/ }),
|
|
48621
48621
|
|
|
@@ -58500,6 +58500,10 @@ function (_super) {
|
|
|
58500
58500
|
return this._put("/unity/api/authentication", data);
|
|
58501
58501
|
};
|
|
58502
58502
|
|
|
58503
|
+
ApiService.prototype.getEnvironmentParamList = function (data) {
|
|
58504
|
+
return this._post("/unity/api/environment-param/list", data);
|
|
58505
|
+
};
|
|
58506
|
+
|
|
58503
58507
|
var _a, _b;
|
|
58504
58508
|
|
|
58505
58509
|
project_detail_service_decorate([serviceHandler("query", {
|
|
@@ -58588,6 +58592,11 @@ function (_super) {
|
|
|
58588
58592
|
showErrorMsg: true
|
|
58589
58593
|
}), project_detail_service_metadata("design:type", Function), project_detail_service_metadata("design:paramtypes", [Object]), project_detail_service_metadata("design:returntype", void 0)], ApiService.prototype, "updateSecurityItem", null);
|
|
58590
58594
|
|
|
58595
|
+
project_detail_service_decorate([serviceHandler("query", {
|
|
58596
|
+
title: "环境列表查询",
|
|
58597
|
+
showErrorMsg: true
|
|
58598
|
+
}), project_detail_service_metadata("design:type", Function), project_detail_service_metadata("design:paramtypes", [Object]), project_detail_service_metadata("design:returntype", void 0)], ApiService.prototype, "getEnvironmentParamList", null);
|
|
58599
|
+
|
|
58591
58600
|
return ApiService;
|
|
58592
58601
|
}(common_service);
|
|
58593
58602
|
|
|
@@ -62390,6 +62399,16 @@ function (_super) {
|
|
|
62390
62399
|
data.content = JSON.stringify(data.content);
|
|
62391
62400
|
}
|
|
62392
62401
|
|
|
62402
|
+
if (!data.name) {
|
|
62403
|
+
return [2
|
|
62404
|
+
/*return*/
|
|
62405
|
+
, this.$message.warning("请填写授权名称!")];
|
|
62406
|
+
} else if (!data.type) {
|
|
62407
|
+
return [2
|
|
62408
|
+
/*return*/
|
|
62409
|
+
, this.$message.warning("请选择授权类型!")];
|
|
62410
|
+
}
|
|
62411
|
+
|
|
62393
62412
|
res = null;
|
|
62394
62413
|
if (!this.currentSecurityItem.id) return [3
|
|
62395
62414
|
/*break*/
|
|
@@ -62417,7 +62436,7 @@ function (_super) {
|
|
|
62417
62436
|
case 4:
|
|
62418
62437
|
if (!(res === null || res === void 0 ? void 0 : res.hasError)) {
|
|
62419
62438
|
this.getSecurityList();
|
|
62420
|
-
this.$
|
|
62439
|
+
this.$publish("api://security-list-refresh");
|
|
62421
62440
|
}
|
|
62422
62441
|
|
|
62423
62442
|
return [2
|
|
@@ -62724,6 +62743,9 @@ function (_super) {
|
|
|
62724
62743
|
SecuritySettingV2.prototype.getGrantTypeList = function () {
|
|
62725
62744
|
return security_setting_v2_awaiter(this, void 0, void 0, function () {
|
|
62726
62745
|
var result;
|
|
62746
|
+
|
|
62747
|
+
var _this = this;
|
|
62748
|
+
|
|
62727
62749
|
return security_setting_v2_generator(this, function (_a) {
|
|
62728
62750
|
switch (_a.label) {
|
|
62729
62751
|
case 0:
|
|
@@ -62734,6 +62756,39 @@ function (_super) {
|
|
|
62734
62756
|
case 1:
|
|
62735
62757
|
result = _a.sent();
|
|
62736
62758
|
this.grantTypeList = (result === null || result === void 0 ? void 0 : result.result) || [];
|
|
62759
|
+
this.$subscribe("api://security-list-refresh", function () {
|
|
62760
|
+
return security_setting_v2_awaiter(_this, void 0, void 0, function () {
|
|
62761
|
+
var _this = this;
|
|
62762
|
+
|
|
62763
|
+
var _a;
|
|
62764
|
+
|
|
62765
|
+
return security_setting_v2_generator(this, function (_b) {
|
|
62766
|
+
switch (_b.label) {
|
|
62767
|
+
case 0:
|
|
62768
|
+
return [4
|
|
62769
|
+
/*yield*/
|
|
62770
|
+
, this.getSecurityList()];
|
|
62771
|
+
|
|
62772
|
+
case 1:
|
|
62773
|
+
_b.sent();
|
|
62774
|
+
|
|
62775
|
+
if (this.currentSecurityID) {
|
|
62776
|
+
this.currentSecurityItemId = this.currentSecurityID;
|
|
62777
|
+
} else if ((_a = this.interfaceModel.authentication) === null || _a === void 0 ? void 0 : _a.id) {
|
|
62778
|
+
this.currentSecurityItemId = this.interfaceModel.authentication.id;
|
|
62779
|
+
}
|
|
62780
|
+
|
|
62781
|
+
this.currentSecurityItem = this.securityList.find(function (item) {
|
|
62782
|
+
return item.id === _this.currentSecurityItemId;
|
|
62783
|
+
}) || {};
|
|
62784
|
+
this.onChangeSecurityItem(this.currentSecurityItemId);
|
|
62785
|
+
return [2
|
|
62786
|
+
/*return*/
|
|
62787
|
+
];
|
|
62788
|
+
}
|
|
62789
|
+
});
|
|
62790
|
+
});
|
|
62791
|
+
});
|
|
62737
62792
|
return [2
|
|
62738
62793
|
/*return*/
|
|
62739
62794
|
];
|
|
@@ -62788,18 +62843,29 @@ function (_super) {
|
|
|
62788
62843
|
|
|
62789
62844
|
SecuritySettingV2.prototype.onChangeSecurityItem = function (id) {
|
|
62790
62845
|
this.$emit("on-current-id", id);
|
|
62791
|
-
this.currentSecurityItem = this.securityList.find(function (item) {
|
|
62792
|
-
return item.id === id;
|
|
62793
|
-
});
|
|
62794
|
-
this.interfaceModel.authentication = this.interfaceModel.authentication || new Authentication();
|
|
62795
|
-
this.interfaceModel.authentication.type = this.currentSecurityItem.type;
|
|
62796
|
-
this.interfaceModel.authentication.location = this.currentSecurityItem.location;
|
|
62797
|
-
this.interfaceModel.authentication.locationKey = this.currentSecurityItem.locationKey;
|
|
62798
62846
|
|
|
62799
|
-
if (
|
|
62800
|
-
this.
|
|
62847
|
+
if (id) {
|
|
62848
|
+
this.currentSecurityItem = this.securityList.find(function (item) {
|
|
62849
|
+
return item.id === id;
|
|
62850
|
+
});
|
|
62851
|
+
this.interfaceModel.authentication = this.interfaceModel.authentication || new Authentication();
|
|
62852
|
+
this.interfaceModel.authentication.type = this.currentSecurityItem.type;
|
|
62853
|
+
this.interfaceModel.authentication.location = this.currentSecurityItem.location;
|
|
62854
|
+
this.interfaceModel.authentication.locationKey = this.currentSecurityItem.locationKey;
|
|
62855
|
+
|
|
62856
|
+
if (this.currentSecurityItem.type === "GROOVY_SCRIPT") {
|
|
62857
|
+
this.interfaceModel.authentication.content = this.currentSecurityItem.scriptContent;
|
|
62858
|
+
} else {
|
|
62859
|
+
this.interfaceModel.authentication.content = JSON.stringify(this.currentSecurityItem.content);
|
|
62860
|
+
}
|
|
62801
62861
|
} else {
|
|
62802
|
-
this.interfaceModel.authentication
|
|
62862
|
+
this.interfaceModel.authentication = {
|
|
62863
|
+
type: "",
|
|
62864
|
+
location: "",
|
|
62865
|
+
locationKey: "",
|
|
62866
|
+
content: "",
|
|
62867
|
+
id: ""
|
|
62868
|
+
};
|
|
62803
62869
|
}
|
|
62804
62870
|
|
|
62805
62871
|
this.interfaceModel.info.authId = this.currentSecurityItem.id;
|
|
@@ -62810,6 +62876,10 @@ function (_super) {
|
|
|
62810
62876
|
this.showSecurity = true;
|
|
62811
62877
|
};
|
|
62812
62878
|
|
|
62879
|
+
SecuritySettingV2.prototype.onClear = function () {
|
|
62880
|
+
this.currentSecurityItem = {};
|
|
62881
|
+
};
|
|
62882
|
+
|
|
62813
62883
|
var _a, _b;
|
|
62814
62884
|
|
|
62815
62885
|
security_setting_v2_decorate([autowired(project_detail_service), security_setting_v2_metadata("design:type", typeof (_a = typeof project_detail_service !== "undefined" && project_detail_service) === "function" ? _a : Object)], SecuritySettingV2.prototype, "service", void 0);
|
|
@@ -63091,6 +63161,7 @@ function (_super) {
|
|
|
63091
63161
|
_this.responseCache = new Map();
|
|
63092
63162
|
_this.loading = false;
|
|
63093
63163
|
_this.currentId = "";
|
|
63164
|
+
_this.paramList = [];
|
|
63094
63165
|
_this.typeList = [{
|
|
63095
63166
|
value: "GET",
|
|
63096
63167
|
text: "GET"
|
|
@@ -63131,6 +63202,10 @@ function (_super) {
|
|
|
63131
63202
|
return _this;
|
|
63132
63203
|
}
|
|
63133
63204
|
|
|
63205
|
+
InterfaceSettings.prototype.mounted = function () {
|
|
63206
|
+
this.getEnvironmentParamList();
|
|
63207
|
+
};
|
|
63208
|
+
|
|
63134
63209
|
InterfaceSettings.prototype.onClickRequertSettingTpye = function (item) {
|
|
63135
63210
|
this.currentRequestSettingType = item;
|
|
63136
63211
|
};
|
|
@@ -63298,6 +63373,33 @@ function (_super) {
|
|
|
63298
63373
|
this.currentId = id;
|
|
63299
63374
|
};
|
|
63300
63375
|
|
|
63376
|
+
InterfaceSettings.prototype.getEnvironmentParamList = function () {
|
|
63377
|
+
return interface_settings_awaiter(this, void 0, void 0, function () {
|
|
63378
|
+
var res;
|
|
63379
|
+
return interface_settings_generator(this, function (_a) {
|
|
63380
|
+
switch (_a.label) {
|
|
63381
|
+
case 0:
|
|
63382
|
+
return [4
|
|
63383
|
+
/*yield*/
|
|
63384
|
+
, this.service.getEnvironmentParamList({
|
|
63385
|
+
projectId: this.projectId
|
|
63386
|
+
})];
|
|
63387
|
+
|
|
63388
|
+
case 1:
|
|
63389
|
+
res = _a.sent();
|
|
63390
|
+
|
|
63391
|
+
if (!(res === null || res === void 0 ? void 0 : res.hasError)) {
|
|
63392
|
+
this.paramList = res.result;
|
|
63393
|
+
}
|
|
63394
|
+
|
|
63395
|
+
return [2
|
|
63396
|
+
/*return*/
|
|
63397
|
+
];
|
|
63398
|
+
}
|
|
63399
|
+
});
|
|
63400
|
+
});
|
|
63401
|
+
};
|
|
63402
|
+
|
|
63301
63403
|
var _a, _b;
|
|
63302
63404
|
|
|
63303
63405
|
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);
|