@egova/egova-api 1.0.163 → 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.
@@ -22654,6 +22654,13 @@ module.exports = Object.hasOwn || function hasOwn(it, key) {
22654
22654
  };
22655
22655
 
22656
22656
 
22657
+ /***/ }),
22658
+
22659
+ /***/ "1a93":
22660
+ /***/ (function(module, exports, __webpack_require__) {
22661
+
22662
+ // extracted by mini-css-extract-plugin
22663
+
22657
22664
  /***/ }),
22658
22665
 
22659
22666
  /***/ "1aea":
@@ -26344,6 +26351,13 @@ module.exports = version;
26344
26351
 
26345
26352
  /***/ }),
26346
26353
 
26354
+ /***/ "2f53":
26355
+ /***/ (function(module, exports) {
26356
+
26357
+ module.exports = "<span class=\"wrap\">\n <i-poptip trigger=\"hover\" :content=\"tips\">\n<!-- <div class=\"diy-info-icon\">i</div>-->\n <i-icon type=\"ios-information-circle-outline\"></i-icon>\n </i-poptip>\n <span class=\"title\">{{labelTitle}}</span>\n <span v-if=\"labelColon\">:</span>\n</span>\n"
26358
+
26359
+ /***/ }),
26360
+
26347
26361
  /***/ "342f":
26348
26362
  /***/ (function(module, exports, __webpack_require__) {
26349
26363
 
@@ -26459,6 +26473,13 @@ module.exports = function (argument) {
26459
26473
  };
26460
26474
 
26461
26475
 
26476
+ /***/ }),
26477
+
26478
+ /***/ "3bf8":
26479
+ /***/ (function(module, exports) {
26480
+
26481
+ 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"
26482
+
26462
26483
  /***/ }),
26463
26484
 
26464
26485
  /***/ "3ca3":
@@ -26497,6 +26518,13 @@ defineIterator(String, 'String', function (iterated) {
26497
26518
  });
26498
26519
 
26499
26520
 
26521
+ /***/ }),
26522
+
26523
+ /***/ "3de4":
26524
+ /***/ (function(module, exports) {
26525
+
26526
+ 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"
26527
+
26500
26528
  /***/ }),
26501
26529
 
26502
26530
  /***/ "3f8c":
@@ -38476,6 +38504,13 @@ module.exports = !$assign || fails(function () {
38476
38504
  } : $assign;
38477
38505
 
38478
38506
 
38507
+ /***/ }),
38508
+
38509
+ /***/ "61ef":
38510
+ /***/ (function(module, exports, __webpack_require__) {
38511
+
38512
+ // extracted by mini-css-extract-plugin
38513
+
38479
38514
  /***/ }),
38480
38515
 
38481
38516
  /***/ "6255":
@@ -43508,6 +43543,13 @@ if (DESCRIPTORS && !FUNCTION_NAME_EXISTS) {
43508
43543
  }
43509
43544
 
43510
43545
 
43546
+ /***/ }),
43547
+
43548
+ /***/ "b156":
43549
+ /***/ (function(module, exports, __webpack_require__) {
43550
+
43551
+ // extracted by mini-css-extract-plugin
43552
+
43511
43553
  /***/ }),
43512
43554
 
43513
43555
  /***/ "b2d8":
@@ -47195,7 +47237,7 @@ module.exports = /ipad|iphone|ipod/i.test(userAgent) && global.Pebble !== undefi
47195
47237
  /***/ "d63e":
47196
47238
  /***/ (function(module, exports) {
47197
47239
 
47198
- module.exports = "<article class=\"project-detail\">\r\n <header>\r\n <div class=\"environment\">\r\n <p>{{projectName}}</p>\r\n <!-- <span>环境变量:</span> -->\r\n <!-- <i-select class=\"diy-select\"></i-select> -->\r\n </div>\r\n <div class=\"btns\">\r\n <!-- <i-button type=\"primary\" ghost class=\"diy-btn-primary\" @click=\"onOpenGlobalModal\"> <i class=\"api-icon icon-setting\"></i>全局参数设置</i-button> -->\r\n <!-- <i-button type=\"success\" ghost class=\"diy-btn-success\" @click=\"onOpenCurrentModal\"><i class=\"api-icon icon-view\"></i>查看当前变量</i-button> -->\r\n <i-button type=\"primary\" class=\"diy-btn-primary button-back\" ghost icon=\"md-return-left\" @click=\"onBack\">返回列表</i-button>\r\n <i-button v-show=\"active.id\" type=\"primary\" class=\"diy-btn-primary\" ghost @click=\"onToggleLayout\"><i class=\"api-icon icon-switch\"></i>切换布局</i-button>\r\n </div>\r\n </header>\r\n <!-- <main> -->\r\n <i-split v-model=\"split\" min=\"200px\" max=\"900px\">\r\n <u-tree slot=\"left\" @on-check-interface=\"onCheckInterface\" @on-edit-interface-success=\"onEditInterfaceSuccess\" :project-id=\"projectId\"></u-tree>\r\n <section slot=\"right\" class=\"interface-box\">\r\n <header class=\"interface-bar\">\r\n <swiper class=\"swiper\" :options=\"swiperOption\" @click-slide=\"onClickSlide\" @ready=\"onSwiperReadied\">\r\n <swiper-slide class=\"tag\" @click=\"onClickTag(item)\" :class=\"{'active': item.id === active.id}\" v-for=\"(item,index) in openInterfaceList\" :key=\"item.id\"\r\n ><span>{{item.name}}</span> <i-icon type=\"md-close\" @click.stop=\"onClose(index)\"></i-icon\r\n ></swiper-slide>\r\n </swiper>\r\n <!-- <div class=\"tag\" @click=\"onClickTag(item)\" :class=\"{'active': item.id === active.id}\" v-for=\"(item,index) in openInterfaceList\" :key=\"item.id\">\r\n <span>{{item.name}}</span>\r\n <i-icon type=\"md-close\" @click.stop=\"onClose(index)\"></i-icon>\r\n </div> -->\r\n </header>\r\n <u-settings :interface-model.sync=\"active\" :project-id=\"projectId\" v-if=\"active.id\" :lengthwise=\"lengthwise\"></u-settings>\r\n </section>\r\n </i-split>\r\n <i-spin fix v-show=\"loading\">\r\n <i class=\"spin-icon-load ivu-icon\"></i>\r\n </i-spin>\r\n <!-- </main> -->\r\n <u-global-modal :visiable.sync=\"showGlobalModal\">\r\n <footer slot=\"footer\">\r\n <i-button @click=\"showGlobalModal = false\">取消</i-button>\r\n <i-button type=\"primary\" class=\"diy-btn-primary\">确定</i-button>\r\n </footer>\r\n </u-global-modal>\r\n <u-current-modal :visiable.sync=\"showCurrentModal\"> </u-current-modal>\r\n</article>\r\n"
47240
+ module.exports = "<article class=\"project-detail\">\r\n <header>\r\n <div class=\"environment\">\r\n <p>{{projectName}}</p>\r\n <!-- <span>环境变量:</span> -->\r\n <!-- <i-select class=\"diy-select\"></i-select> -->\r\n </div>\r\n <div class=\"btns\">\r\n <!-- <i-button type=\"primary\" ghost class=\"diy-btn-primary\" @click=\"onOpenGlobalModal\"> <i class=\"api-icon icon-setting\"></i>全局参数设置</i-button> -->\r\n <!-- <i-button type=\"success\" ghost class=\"diy-btn-success\" @click=\"onOpenCurrentModal\"><i class=\"api-icon icon-view\"></i>查看当前变量</i-button> -->\r\n <i-button v-if=\"projectId && projectName\" type=\"primary\" class=\"diy-btn-primary security-btn\" ghost @click=\"onSecurity\"><i class=\"iconfont icon-xinzengzhibiao\"></i>授权认证</i-button>\r\n <i-button type=\"primary\" class=\"diy-btn-primary button-back\" ghost icon=\"md-return-left\" @click=\"onBack\">返回列表</i-button>\r\n <i-button v-show=\"active.id\" type=\"primary\" class=\"diy-btn-primary\" ghost @click=\"onToggleLayout\"><i class=\"api-icon icon-switch\"></i>切换布局</i-button>\r\n </div>\r\n </header>\r\n <!-- <main> -->\r\n <i-split v-model=\"split\" min=\"200px\" max=\"900px\">\r\n <u-tree slot=\"left\" @on-check-interface=\"onCheckInterface\" @on-edit-interface-success=\"onEditInterfaceSuccess\" :project-id=\"projectId\"></u-tree>\r\n <section slot=\"right\" class=\"interface-box\">\r\n <header class=\"interface-bar\">\r\n <swiper class=\"swiper\" :options=\"swiperOption\" @click-slide=\"onClickSlide\" @ready=\"onSwiperReadied\">\r\n <swiper-slide class=\"tag\" @click=\"onClickTag(item)\" :class=\"{'active': item.id === active.id}\" v-for=\"(item,index) in openInterfaceList\" :key=\"item.id\"\r\n ><span>{{item.name}}</span> <i-icon type=\"md-close\" @click.stop=\"onClose(index)\"></i-icon\r\n ></swiper-slide>\r\n </swiper>\r\n <!-- <div class=\"tag\" @click=\"onClickTag(item)\" :class=\"{'active': item.id === active.id}\" v-for=\"(item,index) in openInterfaceList\" :key=\"item.id\">\r\n <span>{{item.name}}</span>\r\n <i-icon type=\"md-close\" @click.stop=\"onClose(index)\"></i-icon>\r\n </div> -->\r\n </header>\r\n <u-settings :interface-model.sync=\"active\" :project-id=\"projectId\" v-if=\"active.id\" :lengthwise=\"lengthwise\"></u-settings>\r\n </section>\r\n </i-split>\r\n <i-spin fix v-show=\"loading\">\r\n <i class=\"spin-icon-load ivu-icon\"></i>\r\n </i-spin>\r\n <!-- </main> -->\r\n <u-global-modal :visiable.sync=\"showGlobalModal\">\r\n <footer slot=\"footer\">\r\n <i-button @click=\"showGlobalModal = false\">取消</i-button>\r\n <i-button type=\"primary\" class=\"diy-btn-primary\">确定</i-button>\r\n </footer>\r\n </u-global-modal>\r\n <u-current-modal :visiable.sync=\"showCurrentModal\"> </u-current-modal>\r\n <u-security-modal v-model=\"showSecurity\" :projectID=\"projectId\"></u-security-modal>\r\n</article>\r\n"
47199
47241
 
47200
47242
  /***/ }),
47201
47243
 
@@ -48564,7 +48606,7 @@ module.exports = uncurryThis([].slice);
48564
48606
  /***/ "f40e":
48565
48607
  /***/ (function(module, exports) {
48566
48608
 
48567
- 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-button type=\"primary\" class=\"diy-btn-primary\" @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 ></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"
48609
+ 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"
48568
48610
 
48569
48611
  /***/ }),
48570
48612
 
@@ -58222,6 +58264,7 @@ function () {
58222
58264
  this.content = "";
58223
58265
  this.location = "";
58224
58266
  this.locationKey = "";
58267
+ this.id = "";
58225
58268
  }
58226
58269
 
58227
58270
  return Authentication;
@@ -58432,6 +58475,26 @@ function (_super) {
58432
58475
  return this._get("/unity/api/project/".concat(id));
58433
58476
  };
58434
58477
 
58478
+ ApiService.prototype.getSecurityList = function (data) {
58479
+ return this._post("/unity/api/authentication/list", data);
58480
+ };
58481
+
58482
+ ApiService.prototype.deleteSecurityItem = function (id) {
58483
+ return this._delete("/unity/api/authentication/".concat(id));
58484
+ };
58485
+
58486
+ ApiService.prototype.addSecurityItem = function (data) {
58487
+ return this._post("/unity/api/authentication", data);
58488
+ };
58489
+
58490
+ ApiService.prototype.updateSecurityItem = function (data) {
58491
+ return this._put("/unity/api/authentication", data);
58492
+ };
58493
+
58494
+ ApiService.prototype.getEnvironmentParamList = function (data) {
58495
+ return this._post("/unity/api/environment-param/list", data);
58496
+ };
58497
+
58435
58498
  var _a, _b;
58436
58499
 
58437
58500
  project_detail_service_decorate([serviceHandler("query", {
@@ -58498,6 +58561,33 @@ function (_super) {
58498
58561
  title: "项目详情"
58499
58562
  }), project_detail_service_metadata("design:type", Function), project_detail_service_metadata("design:paramtypes", [String]), project_detail_service_metadata("design:returntype", void 0)], ApiService.prototype, "projectInfo", null);
58500
58563
 
58564
+ project_detail_service_decorate([serviceHandler("query", {
58565
+ title: "授权认证列表查询"
58566
+ }), project_detail_service_metadata("design:type", Function), project_detail_service_metadata("design:paramtypes", [Object]), project_detail_service_metadata("design:returntype", void 0)], ApiService.prototype, "getSecurityList", null);
58567
+
58568
+ project_detail_service_decorate([serviceHandler("save", {
58569
+ title: "删除授权认证",
58570
+ showTip: true,
58571
+ showErrorMsg: true
58572
+ }), project_detail_service_metadata("design:type", Function), project_detail_service_metadata("design:paramtypes", [String]), project_detail_service_metadata("design:returntype", void 0)], ApiService.prototype, "deleteSecurityItem", null);
58573
+
58574
+ project_detail_service_decorate([serviceHandler("save", {
58575
+ title: "新增授权认证",
58576
+ showTip: true,
58577
+ showErrorMsg: true
58578
+ }), project_detail_service_metadata("design:type", Function), project_detail_service_metadata("design:paramtypes", [Object]), project_detail_service_metadata("design:returntype", void 0)], ApiService.prototype, "addSecurityItem", null);
58579
+
58580
+ project_detail_service_decorate([serviceHandler("save", {
58581
+ title: "更新授权认证",
58582
+ showTip: true,
58583
+ showErrorMsg: true
58584
+ }), 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);
58585
+
58586
+ project_detail_service_decorate([serviceHandler("query", {
58587
+ title: "环境列表查询",
58588
+ showErrorMsg: true
58589
+ }), 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);
58590
+
58501
58591
  return ApiService;
58502
58592
  }(common_service);
58503
58593
 
@@ -61587,359 +61677,1462 @@ var security_setting_generator = undefined && undefined.__generator || function
61587
61677
 
61588
61678
 
61589
61679
 
61590
- var security_setting_SecuritySetting =
61591
- /** @class */
61592
- function (_super) {
61593
- security_setting_extends(SecuritySetting, _super);
61594
-
61595
- function SecuritySetting() {
61596
- var _this = _super !== null && _super.apply(this, arguments) || this;
61597
-
61598
- _this.securityTypeList = [];
61599
- _this.tokenLocationTypeList = [];
61600
- _this.grantTypeList = [];
61601
- _this.model = {};
61602
- return _this;
61603
- }
61604
-
61605
- SecuritySetting.prototype.mounted = function () {
61606
- var _a, _b;
61607
-
61608
- this.getSecurityTypeList();
61609
- this.getTokenLocationTypeList();
61610
- this.getGrantTypeList();
61611
- this.model = ((_a = this.interfaceModel.authentication) === null || _a === void 0 ? void 0 : _a.content) ? JSON.parse((_b = this.interfaceModel.authentication) === null || _b === void 0 ? void 0 : _b.content) : {};
61612
- };
61613
-
61614
- SecuritySetting.prototype.getSecurityTypeList = function () {
61615
- return security_setting_awaiter(this, void 0, void 0, function () {
61616
- var result;
61617
- return security_setting_generator(this, function (_a) {
61618
- switch (_a.label) {
61619
- case 0:
61620
- return [4
61621
- /*yield*/
61622
- , this.service.getEnumByType("authenticationType")];
61623
-
61624
- case 1:
61625
- result = _a.sent();
61626
- this.securityTypeList = (result === null || result === void 0 ? void 0 : result.result) || [];
61627
- return [2
61628
- /*return*/
61629
- ];
61630
- }
61631
- });
61632
- });
61633
- };
61634
-
61635
- SecuritySetting.prototype.getTokenLocationTypeList = function () {
61636
- return security_setting_awaiter(this, void 0, void 0, function () {
61637
- var result;
61638
- return security_setting_generator(this, function (_a) {
61639
- switch (_a.label) {
61640
- case 0:
61641
- return [4
61642
- /*yield*/
61643
- , this.service.getEnumByType("tokenLocationType")];
61644
-
61645
- case 1:
61646
- result = _a.sent();
61647
- this.tokenLocationTypeList = (result === null || result === void 0 ? void 0 : result.result) || [];
61648
- return [2
61649
- /*return*/
61650
- ];
61651
- }
61652
- });
61653
- });
61654
- };
61655
-
61656
- SecuritySetting.prototype.getGrantTypeList = function () {
61657
- return security_setting_awaiter(this, void 0, void 0, function () {
61658
- var result;
61659
- return security_setting_generator(this, function (_a) {
61660
- switch (_a.label) {
61661
- case 0:
61662
- return [4
61663
- /*yield*/
61664
- , this.service.getEnumByType("grantType")];
61665
-
61666
- case 1:
61667
- result = _a.sent();
61668
- this.grantTypeList = (result === null || result === void 0 ? void 0 : result.result) || [];
61669
- return [2
61670
- /*return*/
61671
- ];
61672
- }
61673
- });
61674
- });
61675
- };
61676
-
61677
- SecuritySetting.prototype.modelChange = function () {
61678
- this.interfaceModel.authentication = this.interfaceModel.authentication || new Authentication();
61679
- this.interfaceModel.authentication.content = JSON.stringify(this.model);
61680
- };
61681
-
61682
- SecuritySetting.prototype.onClear = function () {
61683
- this.model = {};
61684
- };
61685
-
61686
- var _a, _b;
61687
-
61688
- security_setting_decorate([Object(flagwind_web_["config"])({
61689
- default: function _default() {
61690
- return new InterfaceModel();
61691
- }
61692
- }), security_setting_metadata("design:type", typeof (_a = typeof InterfaceModel !== "undefined" && InterfaceModel) === "function" ? _a : Object)], SecuritySetting.prototype, "interfaceModel", void 0);
61693
-
61694
- security_setting_decorate([autowired(project_detail_service), security_setting_metadata("design:type", typeof (_b = typeof project_detail_service !== "undefined" && project_detail_service) === "function" ? _b : Object)], SecuritySetting.prototype, "service", void 0);
61695
-
61696
- security_setting_decorate([Object(flagwind_web_["watch"])("model", {
61697
- deep: true
61698
- }), security_setting_metadata("design:type", Function), security_setting_metadata("design:paramtypes", []), security_setting_metadata("design:returntype", void 0)], SecuritySetting.prototype, "modelChange", null);
61699
-
61700
- SecuritySetting = security_setting_decorate([Object(flagwind_web_["component"])({
61701
- template: __webpack_require__("b676"),
61702
- components: {
61703
- "u-tips-form-label": tips_form_label
61704
- }
61705
- })], SecuritySetting);
61706
- return SecuritySetting;
61707
- }(flagwind_web_["Component"]);
61708
-
61709
- /* harmony default export */ var project_detail_security_setting = (security_setting_SecuritySetting);
61710
- // EXTERNAL MODULE: ./src/views/project-detail/interface-settings/index.scss
61711
- var interface_settings = __webpack_require__("2a79");
61712
-
61713
- // CONCATENATED MODULE: ./src/views/project-detail/interface-settings/index.ts
61714
-
61715
-
61716
-
61717
-
61718
-
61719
-
61720
-
61721
-
61722
-
61723
-
61724
-
61725
-
61726
-
61727
-
61728
-
61729
-
61730
-
61731
-
61732
-
61733
-
61734
-
61735
-
61736
- var interface_settings_extends = undefined && undefined.__extends || function () {
61737
- var _extendStatics = function extendStatics(d, b) {
61738
- _extendStatics = Object.setPrototypeOf || {
61739
- __proto__: []
61740
- } instanceof Array && function (d, b) {
61741
- d.__proto__ = b;
61742
- } || function (d, b) {
61743
- for (var p in b) {
61744
- if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
61745
- }
61746
- };
61747
-
61748
- return _extendStatics(d, b);
61749
- };
61750
-
61751
- return function (d, b) {
61752
- if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
61753
-
61754
- _extendStatics(d, b);
61755
-
61756
- function __() {
61757
- this.constructor = d;
61758
- }
61759
-
61760
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
61761
- };
61762
- }();
61763
-
61764
- var interface_settings_assign = undefined && undefined.__assign || function () {
61765
- interface_settings_assign = Object.assign || function (t) {
61766
- for (var s, i = 1, n = arguments.length; i < n; i++) {
61767
- s = arguments[i];
61768
-
61769
- for (var p in s) {
61770
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
61771
- }
61772
- }
61773
-
61774
- return t;
61775
- };
61776
-
61777
- return interface_settings_assign.apply(this, arguments);
61778
- };
61779
-
61780
- var interface_settings_decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
61781
- var c = arguments.length,
61782
- r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
61783
- d;
61784
- if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
61785
- if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
61786
- }
61787
- return c > 3 && r && Object.defineProperty(target, key, r), r;
61788
- };
61789
-
61790
- var interface_settings_metadata = undefined && undefined.__metadata || function (k, v) {
61791
- if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
61792
- };
61793
-
61794
- var interface_settings_awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
61795
- function adopt(value) {
61796
- return value instanceof P ? value : new P(function (resolve) {
61797
- resolve(value);
61798
- });
61799
- }
61800
-
61801
- return new (P || (P = Promise))(function (resolve, reject) {
61802
- function fulfilled(value) {
61803
- try {
61804
- step(generator.next(value));
61805
- } catch (e) {
61806
- reject(e);
61807
- }
61808
- }
61809
-
61810
- function rejected(value) {
61811
- try {
61812
- step(generator["throw"](value));
61813
- } catch (e) {
61814
- reject(e);
61815
- }
61816
- }
61817
-
61818
- function step(result) {
61819
- result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
61820
- }
61821
-
61822
- step((generator = generator.apply(thisArg, _arguments || [])).next());
61823
- });
61824
- };
61825
-
61826
- var interface_settings_generator = undefined && undefined.__generator || function (thisArg, body) {
61827
- var _ = {
61828
- label: 0,
61829
- sent: function sent() {
61830
- if (t[0] & 1) throw t[1];
61831
- return t[1];
61832
- },
61833
- trys: [],
61834
- ops: []
61835
- },
61836
- f,
61837
- y,
61838
- t,
61839
- g;
61840
- return g = {
61841
- next: verb(0),
61842
- "throw": verb(1),
61843
- "return": verb(2)
61844
- }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
61845
- return this;
61846
- }), g;
61847
-
61848
- function verb(n) {
61849
- return function (v) {
61850
- return step([n, v]);
61851
- };
61852
- }
61853
-
61854
- function step(op) {
61855
- if (f) throw new TypeError("Generator is already executing.");
61856
-
61857
- while (_) {
61858
- try {
61859
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
61860
- if (y = 0, t) op = [op[0] & 2, t.value];
61861
-
61862
- switch (op[0]) {
61863
- case 0:
61864
- case 1:
61865
- t = op;
61866
- break;
61867
-
61868
- case 4:
61869
- _.label++;
61870
- return {
61871
- value: op[1],
61872
- done: false
61873
- };
61874
-
61875
- case 5:
61876
- _.label++;
61877
- y = op[1];
61878
- op = [0];
61879
- continue;
61880
-
61881
- case 7:
61882
- op = _.ops.pop();
61883
-
61884
- _.trys.pop();
61885
-
61886
- continue;
61887
-
61888
- default:
61889
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
61890
- _ = 0;
61891
- continue;
61892
- }
61893
-
61894
- if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
61895
- _.label = op[1];
61896
- break;
61897
- }
61898
-
61899
- if (op[0] === 6 && _.label < t[1]) {
61900
- _.label = t[1];
61901
- t = op;
61902
- break;
61903
- }
61904
-
61905
- if (t && _.label < t[2]) {
61906
- _.label = t[2];
61907
-
61908
- _.ops.push(op);
61909
-
61910
- break;
61911
- }
61912
-
61913
- if (t[2]) _.ops.pop();
61914
-
61915
- _.trys.pop();
61916
-
61917
- continue;
61918
- }
61919
-
61920
- op = body.call(thisArg, _);
61921
- } catch (e) {
61922
- op = [6, e];
61923
- y = 0;
61924
- } finally {
61925
- f = t = 0;
61926
- }
61927
- }
61928
-
61929
- if (op[0] & 5) throw op[1];
61930
- return {
61931
- value: op[0] ? op[1] : void 0,
61932
- done: true
61933
- };
61934
- }
61935
- };
61936
-
61937
-
61938
-
61939
-
61940
-
61941
-
61942
-
61680
+ var security_setting_SecuritySetting =
61681
+ /** @class */
61682
+ function (_super) {
61683
+ security_setting_extends(SecuritySetting, _super);
61684
+
61685
+ function SecuritySetting() {
61686
+ var _this = _super !== null && _super.apply(this, arguments) || this;
61687
+
61688
+ _this.securityTypeList = [];
61689
+ _this.tokenLocationTypeList = [];
61690
+ _this.grantTypeList = [];
61691
+ _this.model = {};
61692
+ return _this;
61693
+ }
61694
+
61695
+ SecuritySetting.prototype.mounted = function () {
61696
+ var _a, _b;
61697
+
61698
+ this.getSecurityTypeList();
61699
+ this.getTokenLocationTypeList();
61700
+ this.getGrantTypeList();
61701
+ this.model = ((_a = this.interfaceModel.authentication) === null || _a === void 0 ? void 0 : _a.content) ? JSON.parse((_b = this.interfaceModel.authentication) === null || _b === void 0 ? void 0 : _b.content) : {};
61702
+ };
61703
+
61704
+ SecuritySetting.prototype.getSecurityTypeList = function () {
61705
+ return security_setting_awaiter(this, void 0, void 0, function () {
61706
+ var result;
61707
+ return security_setting_generator(this, function (_a) {
61708
+ switch (_a.label) {
61709
+ case 0:
61710
+ return [4
61711
+ /*yield*/
61712
+ , this.service.getEnumByType("authenticationType")];
61713
+
61714
+ case 1:
61715
+ result = _a.sent();
61716
+ this.securityTypeList = (result === null || result === void 0 ? void 0 : result.result) || [];
61717
+ return [2
61718
+ /*return*/
61719
+ ];
61720
+ }
61721
+ });
61722
+ });
61723
+ };
61724
+
61725
+ SecuritySetting.prototype.getTokenLocationTypeList = function () {
61726
+ return security_setting_awaiter(this, void 0, void 0, function () {
61727
+ var result;
61728
+ return security_setting_generator(this, function (_a) {
61729
+ switch (_a.label) {
61730
+ case 0:
61731
+ return [4
61732
+ /*yield*/
61733
+ , this.service.getEnumByType("tokenLocationType")];
61734
+
61735
+ case 1:
61736
+ result = _a.sent();
61737
+ this.tokenLocationTypeList = (result === null || result === void 0 ? void 0 : result.result) || [];
61738
+ return [2
61739
+ /*return*/
61740
+ ];
61741
+ }
61742
+ });
61743
+ });
61744
+ };
61745
+
61746
+ SecuritySetting.prototype.getGrantTypeList = function () {
61747
+ return security_setting_awaiter(this, void 0, void 0, function () {
61748
+ var result;
61749
+ return security_setting_generator(this, function (_a) {
61750
+ switch (_a.label) {
61751
+ case 0:
61752
+ return [4
61753
+ /*yield*/
61754
+ , this.service.getEnumByType("grantType")];
61755
+
61756
+ case 1:
61757
+ result = _a.sent();
61758
+ this.grantTypeList = (result === null || result === void 0 ? void 0 : result.result) || [];
61759
+ return [2
61760
+ /*return*/
61761
+ ];
61762
+ }
61763
+ });
61764
+ });
61765
+ };
61766
+
61767
+ SecuritySetting.prototype.modelChange = function () {
61768
+ this.interfaceModel.authentication = this.interfaceModel.authentication || new Authentication();
61769
+ this.interfaceModel.authentication.content = JSON.stringify(this.model);
61770
+ };
61771
+
61772
+ SecuritySetting.prototype.onClear = function () {
61773
+ this.model = {};
61774
+ };
61775
+
61776
+ var _a, _b;
61777
+
61778
+ security_setting_decorate([Object(flagwind_web_["config"])({
61779
+ default: function _default() {
61780
+ return new InterfaceModel();
61781
+ }
61782
+ }), security_setting_metadata("design:type", typeof (_a = typeof InterfaceModel !== "undefined" && InterfaceModel) === "function" ? _a : Object)], SecuritySetting.prototype, "interfaceModel", void 0);
61783
+
61784
+ security_setting_decorate([autowired(project_detail_service), security_setting_metadata("design:type", typeof (_b = typeof project_detail_service !== "undefined" && project_detail_service) === "function" ? _b : Object)], SecuritySetting.prototype, "service", void 0);
61785
+
61786
+ security_setting_decorate([Object(flagwind_web_["watch"])("model", {
61787
+ deep: true
61788
+ }), security_setting_metadata("design:type", Function), security_setting_metadata("design:paramtypes", []), security_setting_metadata("design:returntype", void 0)], SecuritySetting.prototype, "modelChange", null);
61789
+
61790
+ SecuritySetting = security_setting_decorate([Object(flagwind_web_["component"])({
61791
+ template: __webpack_require__("b676"),
61792
+ components: {
61793
+ "u-tips-form-label": tips_form_label
61794
+ }
61795
+ })], SecuritySetting);
61796
+ return SecuritySetting;
61797
+ }(flagwind_web_["Component"]);
61798
+
61799
+ /* harmony default export */ var project_detail_security_setting = (security_setting_SecuritySetting);
61800
+ // EXTERNAL MODULE: ./src/views/project-detail/interface-settings/index.scss
61801
+ var interface_settings = __webpack_require__("2a79");
61802
+
61803
+ // EXTERNAL MODULE: ./src/views/project-detail/security-setting-v2/index.scss
61804
+ var security_setting_v2 = __webpack_require__("b156");
61805
+
61806
+ // EXTERNAL MODULE: ./src/views/project-detail/security-setting-v2/tips-form-label/index.scss
61807
+ var security_setting_v2_tips_form_label = __webpack_require__("61ef");
61808
+
61809
+ // CONCATENATED MODULE: ./src/views/project-detail/security-setting-v2/tips-form-label/index.ts
61810
+
61811
+
61812
+
61813
+
61814
+
61815
+
61816
+ var security_setting_v2_tips_form_label_extends = undefined && undefined.__extends || function () {
61817
+ var _extendStatics = function extendStatics(d, b) {
61818
+ _extendStatics = Object.setPrototypeOf || {
61819
+ __proto__: []
61820
+ } instanceof Array && function (d, b) {
61821
+ d.__proto__ = b;
61822
+ } || function (d, b) {
61823
+ for (var p in b) {
61824
+ if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
61825
+ }
61826
+ };
61827
+
61828
+ return _extendStatics(d, b);
61829
+ };
61830
+
61831
+ return function (d, b) {
61832
+ if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
61833
+
61834
+ _extendStatics(d, b);
61835
+
61836
+ function __() {
61837
+ this.constructor = d;
61838
+ }
61839
+
61840
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
61841
+ };
61842
+ }();
61843
+
61844
+ var security_setting_v2_tips_form_label_decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
61845
+ var c = arguments.length,
61846
+ r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
61847
+ d;
61848
+ if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
61849
+ if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
61850
+ }
61851
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
61852
+ };
61853
+
61854
+ var security_setting_v2_tips_form_label_metadata = undefined && undefined.__metadata || function (k, v) {
61855
+ if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
61856
+ };
61857
+
61858
+
61859
+
61860
+
61861
+ var security_setting_v2_tips_form_label_TipsFormLabel =
61862
+ /** @class */
61863
+ function (_super) {
61864
+ security_setting_v2_tips_form_label_extends(TipsFormLabel, _super);
61865
+
61866
+ function TipsFormLabel() {
61867
+ return _super !== null && _super.apply(this, arguments) || this;
61868
+ }
61869
+
61870
+ security_setting_v2_tips_form_label_decorate([Object(flagwind_web_["config"])({
61871
+ default: ""
61872
+ }), security_setting_v2_tips_form_label_metadata("design:type", String)], TipsFormLabel.prototype, "tips", void 0);
61873
+
61874
+ security_setting_v2_tips_form_label_decorate([Object(flagwind_web_["config"])({
61875
+ default: ""
61876
+ }), security_setting_v2_tips_form_label_metadata("design:type", String)], TipsFormLabel.prototype, "labelTitle", void 0);
61877
+
61878
+ security_setting_v2_tips_form_label_decorate([Object(flagwind_web_["config"])({
61879
+ type: Boolean,
61880
+ default: false
61881
+ }), security_setting_v2_tips_form_label_metadata("design:type", Boolean)], TipsFormLabel.prototype, "labelColon", void 0);
61882
+
61883
+ TipsFormLabel = security_setting_v2_tips_form_label_decorate([Object(flagwind_web_["component"])({
61884
+ template: __webpack_require__("2f53")
61885
+ })], TipsFormLabel);
61886
+ return TipsFormLabel;
61887
+ }(flagwind_web_["Component"]);
61888
+
61889
+ /* harmony default export */ var project_detail_security_setting_v2_tips_form_label = (security_setting_v2_tips_form_label_TipsFormLabel);
61890
+ // EXTERNAL MODULE: ./src/views/project-detail/security-modal/index.scss
61891
+ var security_modal = __webpack_require__("1a93");
61892
+
61893
+ // CONCATENATED MODULE: ./src/views/project-detail/security-modal/index.ts
61894
+
61895
+
61896
+
61897
+
61898
+
61899
+
61900
+
61901
+
61902
+
61903
+
61904
+
61905
+
61906
+
61907
+
61908
+
61909
+
61910
+
61911
+
61912
+
61913
+ var security_modal_extends = undefined && undefined.__extends || function () {
61914
+ var _extendStatics = function extendStatics(d, b) {
61915
+ _extendStatics = Object.setPrototypeOf || {
61916
+ __proto__: []
61917
+ } instanceof Array && function (d, b) {
61918
+ d.__proto__ = b;
61919
+ } || function (d, b) {
61920
+ for (var p in b) {
61921
+ if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
61922
+ }
61923
+ };
61924
+
61925
+ return _extendStatics(d, b);
61926
+ };
61927
+
61928
+ return function (d, b) {
61929
+ if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
61930
+
61931
+ _extendStatics(d, b);
61932
+
61933
+ function __() {
61934
+ this.constructor = d;
61935
+ }
61936
+
61937
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
61938
+ };
61939
+ }();
61940
+
61941
+ var security_modal_assign = undefined && undefined.__assign || function () {
61942
+ security_modal_assign = Object.assign || function (t) {
61943
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
61944
+ s = arguments[i];
61945
+
61946
+ for (var p in s) {
61947
+ if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
61948
+ }
61949
+ }
61950
+
61951
+ return t;
61952
+ };
61953
+
61954
+ return security_modal_assign.apply(this, arguments);
61955
+ };
61956
+
61957
+ var security_modal_decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
61958
+ var c = arguments.length,
61959
+ r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
61960
+ d;
61961
+ if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
61962
+ if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
61963
+ }
61964
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
61965
+ };
61966
+
61967
+ var security_modal_metadata = undefined && undefined.__metadata || function (k, v) {
61968
+ if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
61969
+ };
61970
+
61971
+ var security_modal_awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
61972
+ function adopt(value) {
61973
+ return value instanceof P ? value : new P(function (resolve) {
61974
+ resolve(value);
61975
+ });
61976
+ }
61977
+
61978
+ return new (P || (P = Promise))(function (resolve, reject) {
61979
+ function fulfilled(value) {
61980
+ try {
61981
+ step(generator.next(value));
61982
+ } catch (e) {
61983
+ reject(e);
61984
+ }
61985
+ }
61986
+
61987
+ function rejected(value) {
61988
+ try {
61989
+ step(generator["throw"](value));
61990
+ } catch (e) {
61991
+ reject(e);
61992
+ }
61993
+ }
61994
+
61995
+ function step(result) {
61996
+ result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
61997
+ }
61998
+
61999
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
62000
+ });
62001
+ };
62002
+
62003
+ var security_modal_generator = undefined && undefined.__generator || function (thisArg, body) {
62004
+ var _ = {
62005
+ label: 0,
62006
+ sent: function sent() {
62007
+ if (t[0] & 1) throw t[1];
62008
+ return t[1];
62009
+ },
62010
+ trys: [],
62011
+ ops: []
62012
+ },
62013
+ f,
62014
+ y,
62015
+ t,
62016
+ g;
62017
+ return g = {
62018
+ next: verb(0),
62019
+ "throw": verb(1),
62020
+ "return": verb(2)
62021
+ }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
62022
+ return this;
62023
+ }), g;
62024
+
62025
+ function verb(n) {
62026
+ return function (v) {
62027
+ return step([n, v]);
62028
+ };
62029
+ }
62030
+
62031
+ function step(op) {
62032
+ if (f) throw new TypeError("Generator is already executing.");
62033
+
62034
+ while (_) {
62035
+ try {
62036
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
62037
+ if (y = 0, t) op = [op[0] & 2, t.value];
62038
+
62039
+ switch (op[0]) {
62040
+ case 0:
62041
+ case 1:
62042
+ t = op;
62043
+ break;
62044
+
62045
+ case 4:
62046
+ _.label++;
62047
+ return {
62048
+ value: op[1],
62049
+ done: false
62050
+ };
62051
+
62052
+ case 5:
62053
+ _.label++;
62054
+ y = op[1];
62055
+ op = [0];
62056
+ continue;
62057
+
62058
+ case 7:
62059
+ op = _.ops.pop();
62060
+
62061
+ _.trys.pop();
62062
+
62063
+ continue;
62064
+
62065
+ default:
62066
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
62067
+ _ = 0;
62068
+ continue;
62069
+ }
62070
+
62071
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
62072
+ _.label = op[1];
62073
+ break;
62074
+ }
62075
+
62076
+ if (op[0] === 6 && _.label < t[1]) {
62077
+ _.label = t[1];
62078
+ t = op;
62079
+ break;
62080
+ }
62081
+
62082
+ if (t && _.label < t[2]) {
62083
+ _.label = t[2];
62084
+
62085
+ _.ops.push(op);
62086
+
62087
+ break;
62088
+ }
62089
+
62090
+ if (t[2]) _.ops.pop();
62091
+
62092
+ _.trys.pop();
62093
+
62094
+ continue;
62095
+ }
62096
+
62097
+ op = body.call(thisArg, _);
62098
+ } catch (e) {
62099
+ op = [6, e];
62100
+ y = 0;
62101
+ } finally {
62102
+ f = t = 0;
62103
+ }
62104
+ }
62105
+
62106
+ if (op[0] & 5) throw op[1];
62107
+ return {
62108
+ value: op[0] ? op[1] : void 0,
62109
+ done: true
62110
+ };
62111
+ }
62112
+ };
62113
+
62114
+
62115
+
62116
+
62117
+
62118
+
62119
+
62120
+
62121
+ var security_modal_SecurityModalComponent =
62122
+ /** @class */
62123
+ function (_super) {
62124
+ security_modal_extends(SecurityModalComponent, _super);
62125
+
62126
+ function SecurityModalComponent() {
62127
+ var _this = _super !== null && _super.apply(this, arguments) || this;
62128
+
62129
+ _this.securityList = [];
62130
+ _this.keyword = "";
62131
+ _this.currentSecurityItem = {};
62132
+ _this.securityTypeList = [];
62133
+ _this.grantTypeList = [];
62134
+ _this.tokenLocationTypeList = [];
62135
+ _this.isAddOnce = false;
62136
+ _this.exitAddItem = false;
62137
+ _this.onFilter = lodash_debounce_default()(function () {
62138
+ _this.getSecurityList();
62139
+ }, 300);
62140
+ return _this;
62141
+ }
62142
+
62143
+ Object.defineProperty(SecurityModalComponent.prototype, "show", {
62144
+ get: function get() {
62145
+ return this.value;
62146
+ },
62147
+ set: function set(value) {
62148
+ this.$emit("input", value);
62149
+ },
62150
+ enumerable: false,
62151
+ configurable: true
62152
+ });
62153
+
62154
+ SecurityModalComponent.prototype.onShowChange = function (show) {
62155
+ return security_modal_awaiter(this, void 0, void 0, function () {
62156
+ return security_modal_generator(this, function (_a) {
62157
+ if (show) {
62158
+ this.isAddOnce = this.isAdd;
62159
+ this.getSecurityTypeList();
62160
+ this.getSecurityList();
62161
+ this.getTokenLocationTypeList();
62162
+ this.getGrantTypeList();
62163
+ } else {
62164
+ this.keyword = "";
62165
+ this.currentSecurityItem = {};
62166
+ }
62167
+
62168
+ return [2
62169
+ /*return*/
62170
+ ];
62171
+ });
62172
+ });
62173
+ };
62174
+
62175
+ SecurityModalComponent.prototype.getSecurityTypeList = function () {
62176
+ return security_modal_awaiter(this, void 0, void 0, function () {
62177
+ var result, tempList;
62178
+ return security_modal_generator(this, function (_a) {
62179
+ switch (_a.label) {
62180
+ case 0:
62181
+ return [4
62182
+ /*yield*/
62183
+ , this.service.getEnumByType("authenticationType")];
62184
+
62185
+ case 1:
62186
+ result = _a.sent();
62187
+ tempList = (result === null || result === void 0 ? void 0 : result.result) || [];
62188
+ this.securityTypeList = tempList.filter(function (item) {
62189
+ return item.name !== "None";
62190
+ });
62191
+ return [2
62192
+ /*return*/
62193
+ ];
62194
+ }
62195
+ });
62196
+ });
62197
+ };
62198
+
62199
+ SecurityModalComponent.prototype.getTokenLocationTypeList = function () {
62200
+ return security_modal_awaiter(this, void 0, void 0, function () {
62201
+ var result;
62202
+ return security_modal_generator(this, function (_a) {
62203
+ switch (_a.label) {
62204
+ case 0:
62205
+ return [4
62206
+ /*yield*/
62207
+ , this.service.getEnumByType("tokenLocationType")];
62208
+
62209
+ case 1:
62210
+ result = _a.sent();
62211
+ this.tokenLocationTypeList = (result === null || result === void 0 ? void 0 : result.result) || [];
62212
+ return [2
62213
+ /*return*/
62214
+ ];
62215
+ }
62216
+ });
62217
+ });
62218
+ };
62219
+
62220
+ SecurityModalComponent.prototype.getGrantTypeList = function () {
62221
+ return security_modal_awaiter(this, void 0, void 0, function () {
62222
+ var result;
62223
+ return security_modal_generator(this, function (_a) {
62224
+ switch (_a.label) {
62225
+ case 0:
62226
+ return [4
62227
+ /*yield*/
62228
+ , this.service.getEnumByType("grantType")];
62229
+
62230
+ case 1:
62231
+ result = _a.sent();
62232
+ this.grantTypeList = (result === null || result === void 0 ? void 0 : result.result) || [];
62233
+ return [2
62234
+ /*return*/
62235
+ ];
62236
+ }
62237
+ });
62238
+ });
62239
+ };
62240
+
62241
+ SecurityModalComponent.prototype.getSecurityList = function () {
62242
+ return security_modal_awaiter(this, void 0, void 0, function () {
62243
+ var res, tempList;
62244
+ return security_modal_generator(this, function (_a) {
62245
+ switch (_a.label) {
62246
+ case 0:
62247
+ return [4
62248
+ /*yield*/
62249
+ , this.service.getSecurityList({
62250
+ name: this.keyword,
62251
+ projectId: this.projectID
62252
+ })];
62253
+
62254
+ case 1:
62255
+ res = _a.sent();
62256
+
62257
+ if (!(res === null || res === void 0 ? void 0 : res.hasError)) {
62258
+ tempList = res.result || [];
62259
+ this.securityList = tempList.map(function (item) {
62260
+ if (item.type !== "GROOVY_SCRIPT") {
62261
+ item.content = JSON.parse(item.content);
62262
+ } else {
62263
+ item.scriptContent = item.content;
62264
+ item.content = {};
62265
+ }
62266
+
62267
+ return item;
62268
+ });
62269
+
62270
+ if (this.isAddOnce || this.exitAddItem) {
62271
+ this.onAddItem();
62272
+ this.isAddOnce = false;
62273
+ this.exitAddItem = false;
62274
+ }
62275
+ }
62276
+
62277
+ return [2
62278
+ /*return*/
62279
+ ];
62280
+ }
62281
+ });
62282
+ });
62283
+ };
62284
+
62285
+ SecurityModalComponent.prototype.onSelectSecurityItem = function (item) {
62286
+ this.currentSecurityItem = item.$clone();
62287
+ };
62288
+
62289
+ SecurityModalComponent.prototype.onDelete = function (item) {
62290
+ return security_modal_awaiter(this, void 0, void 0, function () {
62291
+ var res;
62292
+ return security_modal_generator(this, function (_a) {
62293
+ switch (_a.label) {
62294
+ case 0:
62295
+ if (!item.id) return [3
62296
+ /*break*/
62297
+ , 2];
62298
+
62299
+ if (this.securityList.find(function (item) {
62300
+ return !item.id;
62301
+ })) {
62302
+ this.exitAddItem = true;
62303
+ }
62304
+
62305
+ return [4
62306
+ /*yield*/
62307
+ , this.service.deleteSecurityItem(item.id)];
62308
+
62309
+ case 1:
62310
+ res = _a.sent();
62311
+
62312
+ if (!(res === null || res === void 0 ? void 0 : res.hasError)) {
62313
+ this.getSecurityList();
62314
+ }
62315
+
62316
+ return [3
62317
+ /*break*/
62318
+ , 3];
62319
+
62320
+ case 2:
62321
+ this.securityList.shift();
62322
+ _a.label = 3;
62323
+
62324
+ case 3:
62325
+ this.currentSecurityItem = {};
62326
+ return [2
62327
+ /*return*/
62328
+ ];
62329
+ }
62330
+ });
62331
+ });
62332
+ };
62333
+
62334
+ SecurityModalComponent.prototype.onAddItem = function () {
62335
+ if (this.securityList.length > 0 && !this.securityList[0].id) {
62336
+ return;
62337
+ }
62338
+
62339
+ var item = {
62340
+ name: "",
62341
+ type: "GROOVY_SCRIPT",
62342
+ content: {},
62343
+ scriptContent: ""
62344
+ };
62345
+ this.securityList.unshift(item);
62346
+ this.currentSecurityItem = this.securityList[0].$clone();
62347
+ };
62348
+
62349
+ SecurityModalComponent.prototype.onCancel = function () {
62350
+ this.show = false;
62351
+ this.keyword = "";
62352
+ this.currentSecurityItem = {};
62353
+ };
62354
+
62355
+ SecurityModalComponent.prototype.onSave = function () {
62356
+ return security_modal_awaiter(this, void 0, void 0, function () {
62357
+ var data, res;
62358
+ return security_modal_generator(this, function (_a) {
62359
+ switch (_a.label) {
62360
+ case 0:
62361
+ data = {
62362
+ projectId: this.projectID,
62363
+ name: this.currentSecurityItem.name,
62364
+ type: this.currentSecurityItem.type
62365
+ };
62366
+
62367
+ if (this.currentSecurityItem.type === "GROOVY_SCRIPT") {
62368
+ data.location = null;
62369
+ data.locationKey = null;
62370
+ data.content = this.currentSecurityItem.scriptContent;
62371
+ } else {
62372
+ data.location = this.currentSecurityItem.location;
62373
+ data.locationKey = this.currentSecurityItem.locationKey;
62374
+ data.content = {};
62375
+
62376
+ if (this.currentSecurityItem.type === "Api_Key") {
62377
+ data.content.key = this.currentSecurityItem.content.key;
62378
+ } else if (this.currentSecurityItem.type === "Base_Auth") {
62379
+ data.content.username = this.currentSecurityItem.content.username;
62380
+ data.content.password = this.currentSecurityItem.content.password;
62381
+ } else if (this.currentSecurityItem.type === "OAuth2") {
62382
+ data = security_modal_assign(security_modal_assign({}, data), this.currentSecurityItem);
62383
+
62384
+ if (this.currentSecurityItem.content.grantType !== "password") {
62385
+ delete data.content.password;
62386
+ delete data.content.username;
62387
+ }
62388
+ }
62389
+
62390
+ data.content = JSON.stringify(data.content);
62391
+ }
62392
+
62393
+ if (!data.name) {
62394
+ return [2
62395
+ /*return*/
62396
+ , this.$message.warning("请填写授权名称!")];
62397
+ } else if (!data.type) {
62398
+ return [2
62399
+ /*return*/
62400
+ , this.$message.warning("请选择授权类型!")];
62401
+ }
62402
+
62403
+ res = null;
62404
+ if (!this.currentSecurityItem.id) return [3
62405
+ /*break*/
62406
+ , 2];
62407
+ data.id = this.currentSecurityItem.id;
62408
+ return [4
62409
+ /*yield*/
62410
+ , this.service.updateSecurityItem(data)];
62411
+
62412
+ case 1:
62413
+ res = _a.sent();
62414
+ return [3
62415
+ /*break*/
62416
+ , 4];
62417
+
62418
+ case 2:
62419
+ return [4
62420
+ /*yield*/
62421
+ , this.service.addSecurityItem(data)];
62422
+
62423
+ case 3:
62424
+ res = _a.sent();
62425
+ _a.label = 4;
62426
+
62427
+ case 4:
62428
+ if (!(res === null || res === void 0 ? void 0 : res.hasError)) {
62429
+ this.getSecurityList();
62430
+ this.$publish("api://security-list-refresh");
62431
+ }
62432
+
62433
+ return [2
62434
+ /*return*/
62435
+ ];
62436
+ }
62437
+ });
62438
+ });
62439
+ };
62440
+
62441
+ var _a;
62442
+
62443
+ security_modal_decorate([autowired(project_detail_service), security_modal_metadata("design:type", typeof (_a = typeof project_detail_service !== "undefined" && project_detail_service) === "function" ? _a : Object)], SecurityModalComponent.prototype, "service", void 0);
62444
+
62445
+ security_modal_decorate([Object(flagwind_web_["config"])({
62446
+ type: Boolean,
62447
+ default: true
62448
+ }), security_modal_metadata("design:type", Boolean)], SecurityModalComponent.prototype, "value", void 0);
62449
+
62450
+ security_modal_decorate([Object(flagwind_web_["config"])({
62451
+ type: String,
62452
+ default: ""
62453
+ }), security_modal_metadata("design:type", String)], SecurityModalComponent.prototype, "projectID", void 0);
62454
+
62455
+ security_modal_decorate([Object(flagwind_web_["config"])({
62456
+ type: Boolean,
62457
+ default: false
62458
+ }), security_modal_metadata("design:type", Boolean)], SecurityModalComponent.prototype, "isAdd", void 0);
62459
+
62460
+ security_modal_decorate([Object(flagwind_web_["watch"])("show"), security_modal_metadata("design:type", Function), security_modal_metadata("design:paramtypes", [Boolean]), security_modal_metadata("design:returntype", Promise)], SecurityModalComponent.prototype, "onShowChange", null);
62461
+
62462
+ SecurityModalComponent = security_modal_decorate([Object(flagwind_web_["component"])({
62463
+ template: __webpack_require__("3bf8"),
62464
+ components: {
62465
+ "u-tips-form-label": project_detail_security_setting_v2_tips_form_label
62466
+ }
62467
+ })], SecurityModalComponent);
62468
+ return SecurityModalComponent;
62469
+ }(flagwind_web_["Component"]);
62470
+
62471
+ /* harmony default export */ var project_detail_security_modal = (security_modal_SecurityModalComponent);
62472
+ // CONCATENATED MODULE: ./src/views/project-detail/security-setting-v2/index.ts
62473
+
62474
+
62475
+
62476
+
62477
+
62478
+
62479
+
62480
+
62481
+
62482
+
62483
+
62484
+
62485
+
62486
+
62487
+
62488
+
62489
+
62490
+ var security_setting_v2_extends = undefined && undefined.__extends || function () {
62491
+ var _extendStatics = function extendStatics(d, b) {
62492
+ _extendStatics = Object.setPrototypeOf || {
62493
+ __proto__: []
62494
+ } instanceof Array && function (d, b) {
62495
+ d.__proto__ = b;
62496
+ } || function (d, b) {
62497
+ for (var p in b) {
62498
+ if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
62499
+ }
62500
+ };
62501
+
62502
+ return _extendStatics(d, b);
62503
+ };
62504
+
62505
+ return function (d, b) {
62506
+ if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
62507
+
62508
+ _extendStatics(d, b);
62509
+
62510
+ function __() {
62511
+ this.constructor = d;
62512
+ }
62513
+
62514
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
62515
+ };
62516
+ }();
62517
+
62518
+ var security_setting_v2_decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
62519
+ var c = arguments.length,
62520
+ r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
62521
+ d;
62522
+ if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
62523
+ if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
62524
+ }
62525
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
62526
+ };
62527
+
62528
+ var security_setting_v2_metadata = undefined && undefined.__metadata || function (k, v) {
62529
+ if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
62530
+ };
62531
+
62532
+ var security_setting_v2_awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
62533
+ function adopt(value) {
62534
+ return value instanceof P ? value : new P(function (resolve) {
62535
+ resolve(value);
62536
+ });
62537
+ }
62538
+
62539
+ return new (P || (P = Promise))(function (resolve, reject) {
62540
+ function fulfilled(value) {
62541
+ try {
62542
+ step(generator.next(value));
62543
+ } catch (e) {
62544
+ reject(e);
62545
+ }
62546
+ }
62547
+
62548
+ function rejected(value) {
62549
+ try {
62550
+ step(generator["throw"](value));
62551
+ } catch (e) {
62552
+ reject(e);
62553
+ }
62554
+ }
62555
+
62556
+ function step(result) {
62557
+ result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
62558
+ }
62559
+
62560
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
62561
+ });
62562
+ };
62563
+
62564
+ var security_setting_v2_generator = undefined && undefined.__generator || function (thisArg, body) {
62565
+ var _ = {
62566
+ label: 0,
62567
+ sent: function sent() {
62568
+ if (t[0] & 1) throw t[1];
62569
+ return t[1];
62570
+ },
62571
+ trys: [],
62572
+ ops: []
62573
+ },
62574
+ f,
62575
+ y,
62576
+ t,
62577
+ g;
62578
+ return g = {
62579
+ next: verb(0),
62580
+ "throw": verb(1),
62581
+ "return": verb(2)
62582
+ }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
62583
+ return this;
62584
+ }), g;
62585
+
62586
+ function verb(n) {
62587
+ return function (v) {
62588
+ return step([n, v]);
62589
+ };
62590
+ }
62591
+
62592
+ function step(op) {
62593
+ if (f) throw new TypeError("Generator is already executing.");
62594
+
62595
+ while (_) {
62596
+ try {
62597
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
62598
+ if (y = 0, t) op = [op[0] & 2, t.value];
62599
+
62600
+ switch (op[0]) {
62601
+ case 0:
62602
+ case 1:
62603
+ t = op;
62604
+ break;
62605
+
62606
+ case 4:
62607
+ _.label++;
62608
+ return {
62609
+ value: op[1],
62610
+ done: false
62611
+ };
62612
+
62613
+ case 5:
62614
+ _.label++;
62615
+ y = op[1];
62616
+ op = [0];
62617
+ continue;
62618
+
62619
+ case 7:
62620
+ op = _.ops.pop();
62621
+
62622
+ _.trys.pop();
62623
+
62624
+ continue;
62625
+
62626
+ default:
62627
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
62628
+ _ = 0;
62629
+ continue;
62630
+ }
62631
+
62632
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
62633
+ _.label = op[1];
62634
+ break;
62635
+ }
62636
+
62637
+ if (op[0] === 6 && _.label < t[1]) {
62638
+ _.label = t[1];
62639
+ t = op;
62640
+ break;
62641
+ }
62642
+
62643
+ if (t && _.label < t[2]) {
62644
+ _.label = t[2];
62645
+
62646
+ _.ops.push(op);
62647
+
62648
+ break;
62649
+ }
62650
+
62651
+ if (t[2]) _.ops.pop();
62652
+
62653
+ _.trys.pop();
62654
+
62655
+ continue;
62656
+ }
62657
+
62658
+ op = body.call(thisArg, _);
62659
+ } catch (e) {
62660
+ op = [6, e];
62661
+ y = 0;
62662
+ } finally {
62663
+ f = t = 0;
62664
+ }
62665
+ }
62666
+
62667
+ if (op[0] & 5) throw op[1];
62668
+ return {
62669
+ value: op[0] ? op[1] : void 0,
62670
+ done: true
62671
+ };
62672
+ }
62673
+ };
62674
+
62675
+
62676
+
62677
+
62678
+
62679
+
62680
+
62681
+
62682
+
62683
+ var security_setting_v2_SecuritySettingV2 =
62684
+ /** @class */
62685
+ function (_super) {
62686
+ security_setting_v2_extends(SecuritySettingV2, _super);
62687
+
62688
+ function SecuritySettingV2() {
62689
+ var _this = _super !== null && _super.apply(this, arguments) || this;
62690
+
62691
+ _this.securityList = [];
62692
+ _this.currentSecurityItem = {};
62693
+ _this.currentSecurityItemId = "";
62694
+ _this.showSecurity = false;
62695
+ _this.isAdd = true;
62696
+ _this.grantTypeList = [];
62697
+ return _this;
62698
+ }
62699
+
62700
+ SecuritySettingV2.prototype.mounted = function () {
62701
+ var _a;
62702
+
62703
+ return security_setting_v2_awaiter(this, void 0, void 0, function () {
62704
+ var _this = this;
62705
+
62706
+ return security_setting_v2_generator(this, function (_b) {
62707
+ switch (_b.label) {
62708
+ case 0:
62709
+ this.getGrantTypeList();
62710
+ return [4
62711
+ /*yield*/
62712
+ , this.getSecurityList()];
62713
+
62714
+ case 1:
62715
+ _b.sent();
62716
+
62717
+ if (this.currentSecurityID) {
62718
+ this.currentSecurityItemId = this.currentSecurityID;
62719
+ } else if ((_a = this.interfaceModel.authentication) === null || _a === void 0 ? void 0 : _a.id) {
62720
+ this.currentSecurityItemId = this.interfaceModel.authentication.id;
62721
+ }
62722
+
62723
+ this.currentSecurityItem = this.securityList.find(function (item) {
62724
+ return item.id === _this.currentSecurityItemId;
62725
+ }) || {};
62726
+ return [2
62727
+ /*return*/
62728
+ ];
62729
+ }
62730
+ });
62731
+ });
62732
+ };
62733
+
62734
+ SecuritySettingV2.prototype.getGrantTypeList = function () {
62735
+ return security_setting_v2_awaiter(this, void 0, void 0, function () {
62736
+ var result;
62737
+
62738
+ var _this = this;
62739
+
62740
+ return security_setting_v2_generator(this, function (_a) {
62741
+ switch (_a.label) {
62742
+ case 0:
62743
+ return [4
62744
+ /*yield*/
62745
+ , this.service.getEnumByType("grantType")];
62746
+
62747
+ case 1:
62748
+ result = _a.sent();
62749
+ this.grantTypeList = (result === null || result === void 0 ? void 0 : result.result) || [];
62750
+ this.$subscribe("api://security-list-refresh", function () {
62751
+ return security_setting_v2_awaiter(_this, void 0, void 0, function () {
62752
+ var _this = this;
62753
+
62754
+ var _a;
62755
+
62756
+ return security_setting_v2_generator(this, function (_b) {
62757
+ switch (_b.label) {
62758
+ case 0:
62759
+ return [4
62760
+ /*yield*/
62761
+ , this.getSecurityList()];
62762
+
62763
+ case 1:
62764
+ _b.sent();
62765
+
62766
+ if (this.currentSecurityID) {
62767
+ this.currentSecurityItemId = this.currentSecurityID;
62768
+ } else if ((_a = this.interfaceModel.authentication) === null || _a === void 0 ? void 0 : _a.id) {
62769
+ this.currentSecurityItemId = this.interfaceModel.authentication.id;
62770
+ }
62771
+
62772
+ this.currentSecurityItem = this.securityList.find(function (item) {
62773
+ return item.id === _this.currentSecurityItemId;
62774
+ }) || {};
62775
+ this.onChangeSecurityItem(this.currentSecurityItemId);
62776
+ return [2
62777
+ /*return*/
62778
+ ];
62779
+ }
62780
+ });
62781
+ });
62782
+ });
62783
+ return [2
62784
+ /*return*/
62785
+ ];
62786
+ }
62787
+ });
62788
+ });
62789
+ };
62790
+
62791
+ SecuritySettingV2.prototype.findGrantTypeText = function (name) {
62792
+ var res = this.grantTypeList.find(function (item) {
62793
+ return item.name === name;
62794
+ });
62795
+ return res ? res.text : "";
62796
+ };
62797
+
62798
+ SecuritySettingV2.prototype.getSecurityList = function () {
62799
+ return security_setting_v2_awaiter(this, void 0, void 0, function () {
62800
+ var res, tempList;
62801
+ return security_setting_v2_generator(this, function (_a) {
62802
+ switch (_a.label) {
62803
+ case 0:
62804
+ return [4
62805
+ /*yield*/
62806
+ , this.service.getSecurityList({
62807
+ projectId: this.projectID
62808
+ })];
62809
+
62810
+ case 1:
62811
+ res = _a.sent();
62812
+
62813
+ if (!(res === null || res === void 0 ? void 0 : res.hasError)) {
62814
+ tempList = res.result || [];
62815
+ this.securityList = tempList.map(function (item) {
62816
+ if (item.type !== "GROOVY_SCRIPT") {
62817
+ item.content = JSON.parse(item.content);
62818
+ } else {
62819
+ item.scriptContent = item.content;
62820
+ item.content = {};
62821
+ }
62822
+
62823
+ return item;
62824
+ });
62825
+ }
62826
+
62827
+ return [2
62828
+ /*return*/
62829
+ ];
62830
+ }
62831
+ });
62832
+ });
62833
+ };
62834
+
62835
+ SecuritySettingV2.prototype.onChangeSecurityItem = function (id) {
62836
+ this.$emit("on-current-id", id);
62837
+
62838
+ if (id) {
62839
+ this.currentSecurityItem = this.securityList.find(function (item) {
62840
+ return item.id === id;
62841
+ });
62842
+ this.interfaceModel.authentication = this.interfaceModel.authentication || new Authentication();
62843
+ this.interfaceModel.authentication.type = this.currentSecurityItem.type;
62844
+ this.interfaceModel.authentication.location = this.currentSecurityItem.location;
62845
+ this.interfaceModel.authentication.locationKey = this.currentSecurityItem.locationKey;
62846
+
62847
+ if (this.currentSecurityItem.type === "GROOVY_SCRIPT") {
62848
+ this.interfaceModel.authentication.content = this.currentSecurityItem.scriptContent;
62849
+ } else {
62850
+ this.interfaceModel.authentication.content = JSON.stringify(this.currentSecurityItem.content);
62851
+ }
62852
+ } else {
62853
+ this.interfaceModel.authentication = {
62854
+ type: "",
62855
+ location: "",
62856
+ locationKey: "",
62857
+ content: "",
62858
+ id: ""
62859
+ };
62860
+ }
62861
+
62862
+ this.interfaceModel.info.authId = this.currentSecurityItem.id;
62863
+ };
62864
+
62865
+ SecuritySettingV2.prototype.onAddSecurityItem = function () {
62866
+ this.$refs.addSecuritySelect.visible = false;
62867
+ this.showSecurity = true;
62868
+ };
62869
+
62870
+ SecuritySettingV2.prototype.onClear = function () {
62871
+ this.currentSecurityItem = {};
62872
+ };
62873
+
62874
+ var _a, _b;
62875
+
62876
+ 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);
62877
+
62878
+ security_setting_v2_decorate([Object(flagwind_web_["config"])({
62879
+ default: function _default() {
62880
+ return new InterfaceModel();
62881
+ }
62882
+ }), security_setting_v2_metadata("design:type", typeof (_b = typeof InterfaceModel !== "undefined" && InterfaceModel) === "function" ? _b : Object)], SecuritySettingV2.prototype, "interfaceModel", void 0);
62883
+
62884
+ security_setting_v2_decorate([Object(flagwind_web_["config"])({
62885
+ type: String,
62886
+ default: ""
62887
+ }), security_setting_v2_metadata("design:type", String)], SecuritySettingV2.prototype, "projectID", void 0);
62888
+
62889
+ security_setting_v2_decorate([Object(flagwind_web_["config"])({
62890
+ type: String,
62891
+ default: ""
62892
+ }), security_setting_v2_metadata("design:type", String)], SecuritySettingV2.prototype, "currentSecurityID", void 0);
62893
+
62894
+ SecuritySettingV2 = security_setting_v2_decorate([Object(flagwind_web_["component"])({
62895
+ template: __webpack_require__("3de4"),
62896
+ components: {
62897
+ "u-tips-form-label": project_detail_security_setting_v2_tips_form_label,
62898
+ "u-security-modal": project_detail_security_modal
62899
+ }
62900
+ })], SecuritySettingV2);
62901
+ return SecuritySettingV2;
62902
+ }(flagwind_web_["Component"]);
62903
+
62904
+ /* harmony default export */ var project_detail_security_setting_v2 = (security_setting_v2_SecuritySettingV2);
62905
+ // CONCATENATED MODULE: ./src/views/project-detail/interface-settings/index.ts
62906
+
62907
+
62908
+
62909
+
62910
+
62911
+
62912
+
62913
+
62914
+
62915
+
62916
+
62917
+
62918
+
62919
+
62920
+
62921
+
62922
+
62923
+
62924
+
62925
+
62926
+
62927
+
62928
+ var interface_settings_extends = undefined && undefined.__extends || function () {
62929
+ var _extendStatics = function extendStatics(d, b) {
62930
+ _extendStatics = Object.setPrototypeOf || {
62931
+ __proto__: []
62932
+ } instanceof Array && function (d, b) {
62933
+ d.__proto__ = b;
62934
+ } || function (d, b) {
62935
+ for (var p in b) {
62936
+ if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
62937
+ }
62938
+ };
62939
+
62940
+ return _extendStatics(d, b);
62941
+ };
62942
+
62943
+ return function (d, b) {
62944
+ if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
62945
+
62946
+ _extendStatics(d, b);
62947
+
62948
+ function __() {
62949
+ this.constructor = d;
62950
+ }
62951
+
62952
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
62953
+ };
62954
+ }();
62955
+
62956
+ var interface_settings_assign = undefined && undefined.__assign || function () {
62957
+ interface_settings_assign = Object.assign || function (t) {
62958
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
62959
+ s = arguments[i];
62960
+
62961
+ for (var p in s) {
62962
+ if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
62963
+ }
62964
+ }
62965
+
62966
+ return t;
62967
+ };
62968
+
62969
+ return interface_settings_assign.apply(this, arguments);
62970
+ };
62971
+
62972
+ var interface_settings_decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
62973
+ var c = arguments.length,
62974
+ r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
62975
+ d;
62976
+ if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
62977
+ if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
62978
+ }
62979
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
62980
+ };
62981
+
62982
+ var interface_settings_metadata = undefined && undefined.__metadata || function (k, v) {
62983
+ if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
62984
+ };
62985
+
62986
+ var interface_settings_awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
62987
+ function adopt(value) {
62988
+ return value instanceof P ? value : new P(function (resolve) {
62989
+ resolve(value);
62990
+ });
62991
+ }
62992
+
62993
+ return new (P || (P = Promise))(function (resolve, reject) {
62994
+ function fulfilled(value) {
62995
+ try {
62996
+ step(generator.next(value));
62997
+ } catch (e) {
62998
+ reject(e);
62999
+ }
63000
+ }
63001
+
63002
+ function rejected(value) {
63003
+ try {
63004
+ step(generator["throw"](value));
63005
+ } catch (e) {
63006
+ reject(e);
63007
+ }
63008
+ }
63009
+
63010
+ function step(result) {
63011
+ result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
63012
+ }
63013
+
63014
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
63015
+ });
63016
+ };
63017
+
63018
+ var interface_settings_generator = undefined && undefined.__generator || function (thisArg, body) {
63019
+ var _ = {
63020
+ label: 0,
63021
+ sent: function sent() {
63022
+ if (t[0] & 1) throw t[1];
63023
+ return t[1];
63024
+ },
63025
+ trys: [],
63026
+ ops: []
63027
+ },
63028
+ f,
63029
+ y,
63030
+ t,
63031
+ g;
63032
+ return g = {
63033
+ next: verb(0),
63034
+ "throw": verb(1),
63035
+ "return": verb(2)
63036
+ }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
63037
+ return this;
63038
+ }), g;
63039
+
63040
+ function verb(n) {
63041
+ return function (v) {
63042
+ return step([n, v]);
63043
+ };
63044
+ }
63045
+
63046
+ function step(op) {
63047
+ if (f) throw new TypeError("Generator is already executing.");
63048
+
63049
+ while (_) {
63050
+ try {
63051
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
63052
+ if (y = 0, t) op = [op[0] & 2, t.value];
63053
+
63054
+ switch (op[0]) {
63055
+ case 0:
63056
+ case 1:
63057
+ t = op;
63058
+ break;
63059
+
63060
+ case 4:
63061
+ _.label++;
63062
+ return {
63063
+ value: op[1],
63064
+ done: false
63065
+ };
63066
+
63067
+ case 5:
63068
+ _.label++;
63069
+ y = op[1];
63070
+ op = [0];
63071
+ continue;
63072
+
63073
+ case 7:
63074
+ op = _.ops.pop();
63075
+
63076
+ _.trys.pop();
63077
+
63078
+ continue;
63079
+
63080
+ default:
63081
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
63082
+ _ = 0;
63083
+ continue;
63084
+ }
63085
+
63086
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
63087
+ _.label = op[1];
63088
+ break;
63089
+ }
63090
+
63091
+ if (op[0] === 6 && _.label < t[1]) {
63092
+ _.label = t[1];
63093
+ t = op;
63094
+ break;
63095
+ }
63096
+
63097
+ if (t && _.label < t[2]) {
63098
+ _.label = t[2];
63099
+
63100
+ _.ops.push(op);
63101
+
63102
+ break;
63103
+ }
63104
+
63105
+ if (t[2]) _.ops.pop();
63106
+
63107
+ _.trys.pop();
63108
+
63109
+ continue;
63110
+ }
63111
+
63112
+ op = body.call(thisArg, _);
63113
+ } catch (e) {
63114
+ op = [6, e];
63115
+ y = 0;
63116
+ } finally {
63117
+ f = t = 0;
63118
+ }
63119
+ }
63120
+
63121
+ if (op[0] & 5) throw op[1];
63122
+ return {
63123
+ value: op[0] ? op[1] : void 0,
63124
+ done: true
63125
+ };
63126
+ }
63127
+ };
63128
+
63129
+
63130
+
63131
+
63132
+
63133
+
63134
+
63135
+
61943
63136
 
61944
63137
 
61945
63138
 
@@ -61958,6 +63151,8 @@ function (_super) {
61958
63151
  _this.response = new Response();
61959
63152
  _this.responseCache = new Map();
61960
63153
  _this.loading = false;
63154
+ _this.currentId = "";
63155
+ _this.paramList = [];
61961
63156
  _this.typeList = [{
61962
63157
  value: "GET",
61963
63158
  text: "GET"
@@ -61977,9 +63172,13 @@ function (_super) {
61977
63172
  }, {
61978
63173
  title: "Headers",
61979
63174
  name: "headers"
61980
- }, {
63175
+ }, // {
63176
+ // title: "授权管理",
63177
+ // name: "security"
63178
+ // },
63179
+ {
61981
63180
  title: "授权管理",
61982
- name: "security"
63181
+ name: "v2security"
61983
63182
  }, {
61984
63183
  title: "前置脚本",
61985
63184
  name: "pre-execution"
@@ -61994,6 +63193,10 @@ function (_super) {
61994
63193
  return _this;
61995
63194
  }
61996
63195
 
63196
+ InterfaceSettings.prototype.mounted = function () {
63197
+ this.getEnvironmentParamList();
63198
+ };
63199
+
61997
63200
  InterfaceSettings.prototype.onClickRequertSettingTpye = function (item) {
61998
63201
  this.currentRequestSettingType = item;
61999
63202
  };
@@ -62157,6 +63360,37 @@ function (_super) {
62157
63360
  });
62158
63361
  };
62159
63362
 
63363
+ InterfaceSettings.prototype.onCurrentId = function (id) {
63364
+ this.currentId = id;
63365
+ };
63366
+
63367
+ InterfaceSettings.prototype.getEnvironmentParamList = function () {
63368
+ return interface_settings_awaiter(this, void 0, void 0, function () {
63369
+ var res;
63370
+ return interface_settings_generator(this, function (_a) {
63371
+ switch (_a.label) {
63372
+ case 0:
63373
+ return [4
63374
+ /*yield*/
63375
+ , this.service.getEnvironmentParamList({
63376
+ projectId: this.projectId
63377
+ })];
63378
+
63379
+ case 1:
63380
+ res = _a.sent();
63381
+
63382
+ if (!(res === null || res === void 0 ? void 0 : res.hasError)) {
63383
+ this.paramList = res.result;
63384
+ }
63385
+
63386
+ return [2
63387
+ /*return*/
63388
+ ];
63389
+ }
63390
+ });
63391
+ });
63392
+ };
63393
+
62160
63394
  var _a, _b;
62161
63395
 
62162
63396
  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);
@@ -62188,7 +63422,8 @@ function (_super) {
62188
63422
  security: project_detail_security_setting,
62189
63423
  "pre-execution": project_detail_pre_execution_setting,
62190
63424
  "after-execution-transfer": project_detail_after_execution_transfer,
62191
- "after-execution-script": after_execution_script
63425
+ "after-execution-script": after_execution_script,
63426
+ "v2security": project_detail_security_setting_v2
62192
63427
  }
62193
63428
  })], InterfaceSettings);
62194
63429
  return InterfaceSettings;
@@ -63311,6 +64546,7 @@ var project_detail_generator = undefined && undefined.__generator || function (t
63311
64546
 
63312
64547
 
63313
64548
 
64549
+
63314
64550
  var project_detail_ProjectDetail =
63315
64551
  /** @class */
63316
64552
  function (_super) {
@@ -63324,6 +64560,7 @@ function (_super) {
63324
64560
  _this.lengthwise = true;
63325
64561
  _this.showGlobalModal = false;
63326
64562
  _this.showCurrentModal = false;
64563
+ _this.showSecurity = false;
63327
64564
  _this.projectId = "";
63328
64565
  _this.projectName = "";
63329
64566
  _this.split = "340px";
@@ -63497,6 +64734,10 @@ function (_super) {
63497
64734
  this.lengthwise = !this.lengthwise;
63498
64735
  };
63499
64736
 
64737
+ ProjectDetail.prototype.onSecurity = function () {
64738
+ this.showSecurity = true;
64739
+ };
64740
+
63500
64741
  ProjectDetail.prototype.onOpenGlobalModal = function () {
63501
64742
  this.showGlobalModal = true;
63502
64743
  };
@@ -63554,7 +64795,8 @@ function (_super) {
63554
64795
  "u-global-modal": project_detail_global_variable_modal,
63555
64796
  "u-current-modal": project_detail_current_variable_modal,
63556
64797
  Swiper: vue_awesome_swiper["Swiper"],
63557
- SwiperSlide: vue_awesome_swiper["SwiperSlide"]
64798
+ SwiperSlide: vue_awesome_swiper["SwiperSlide"],
64799
+ "u-security-modal": project_detail_security_modal
63558
64800
  },
63559
64801
  directives: {
63560
64802
  swiper: vue_awesome_swiper["directive"]