@egova/egova-api 1.0.163 → 1.0.164

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -22663,6 +22663,13 @@ module.exports = Object.hasOwn || function hasOwn(it, key) {
22663
22663
  };
22664
22664
 
22665
22665
 
22666
+ /***/ }),
22667
+
22668
+ /***/ "1a93":
22669
+ /***/ (function(module, exports, __webpack_require__) {
22670
+
22671
+ // extracted by mini-css-extract-plugin
22672
+
22666
22673
  /***/ }),
22667
22674
 
22668
22675
  /***/ "1aea":
@@ -26353,6 +26360,13 @@ module.exports = version;
26353
26360
 
26354
26361
  /***/ }),
26355
26362
 
26363
+ /***/ "2f53":
26364
+ /***/ (function(module, exports) {
26365
+
26366
+ 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"
26367
+
26368
+ /***/ }),
26369
+
26356
26370
  /***/ "342f":
26357
26371
  /***/ (function(module, exports, __webpack_require__) {
26358
26372
 
@@ -26468,6 +26482,13 @@ module.exports = function (argument) {
26468
26482
  };
26469
26483
 
26470
26484
 
26485
+ /***/ }),
26486
+
26487
+ /***/ "3bf8":
26488
+ /***/ (function(module, exports) {
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 :label-width=\"170\" :model=\"currentSecurityItem\">\n <template v-if=\"currentSecurityItem.type\">\n <i-form-item class=\"security-content-form-item\" label=\"授权名称\">\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.name\"></i-input>\n </i-form-item>\n <i-form-item class=\"security-content-form-item\" label=\"授权类型\">\n <i-select class=\"diy-select\" v-model=\"currentSecurityItem.type\">\n <i-option v-for=\"(item,index) in securityTypeList\" :value=\"item.name\" :key=\"index\">{{ item.text }}</i-option>\n </i-select>\n </i-form-item>\n </template>\n <template v-if=\"currentSecurityItem.type && currentSecurityItem.type !== 'GROOVY_SCRIPT'\">\n <i-form-item class=\"security-content-form-item\" label=\"存储位置\">\n <i-select class=\"diy-select\" v-model=\"currentSecurityItem.location\">\n <i-option v-for=\"(item,index) in tokenLocationTypeList\" :value=\"item.name\" :key=\"item.name\">{{ item.text }}</i-option>\n </i-select>\n </i-form-item>\n <i-form-item class=\"security-content-form-item\" label=\"存储键值\">\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.locationKey\"></i-input>\n </i-form-item>\n </template>\n <template v-if=\"currentSecurityItem.type === 'Api_Key'\">\n <i-form-item class=\"security-content-form-item\" label=\"key\">\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.key\"></i-input>\n </i-form-item>\n </template>\n <template v-if=\"currentSecurityItem.type === 'Base_Auth'\">\n <i-form-item class=\"security-content-form-item\" label=\"username\">\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.username\"></i-input>\n </i-form-item>\n <i-form-item class=\"security-content-form-item\" label=\"password\">\n <i-input class=\"diy-password-input diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.password\" type=\"password\" password></i-input>\n </i-form-item>\n </template>\n <template v-if=\"currentSecurityItem.type === 'OAuth2'\">\n <i-form-item class=\"security-content-form-item\">\n <u-tips-form-label slot=\"label\" :labelTitle=\"'Header Prefix'\" tips=\"token前缀 例如 Bearer\" label-colon></u-tips-form-label>\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.headerPrefix\"></i-input>\n </i-form-item>\n <i-form-item class=\"security-content-form-item\">\n <u-tips-form-label slot=\"label\" :labelTitle=\"'Grant Type'\" tips=\"认证类型\" label-colon></u-tips-form-label>\n <i-select v-model=\"currentSecurityItem.content.grantType\" class=\"diy-select\">\n <i-option v-for=\"item in grantTypeList\" :key=\"item.name\" :value=\"item.name\"> {{item.text}} </i-option>\n </i-select>\n </i-form-item>\n <i-form-item class=\"security-content-form-item\">\n <u-tips-form-label slot=\"label\" :labelTitle=\"'Access Token Url'\" tips=\"获取token的httpUrl\" label-colon></u-tips-form-label>\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.tokenUrl\"></i-input>\n </i-form-item>\n <i-form-item class=\"security-content-form-item\">\n <u-tips-form-label slot=\"label\" :labelTitle=\"'TokenPath'\" tips=\"获取响应结果的token路径\" label-colon></u-tips-form-label>\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.tokenPath\"></i-input>\n </i-form-item>\n <i-form-item class=\"security-content-form-item\" label=\"Client ID\">\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.clientId\"></i-input>\n </i-form-item>\n <i-form-item class=\"security-content-form-item\" label=\"Client Secret\">\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.clientSecret\"></i-input>\n </i-form-item>\n <template v-if=\"currentSecurityItem.content.grantType === 'password'\">\n <i-form-item class=\"security-content-form-item\" label=\"username\">\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.username\"></i-input>\n </i-form-item>\n <i-form-item class=\"security-content-form-item\" label=\"password\">\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.password\" type=\"password\" password></i-input>\n </i-form-item>\n </template>\n <i-form-item class=\"security-content-form-item\">\n <u-tips-form-label slot=\"label\" :labelTitle=\"'Scope'\" tips=\"访问请求的范围,它可能有多个空格分隔的值\" label-colon></u-tips-form-label>\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.scope\"></i-input>\n </i-form-item>\n </template>\n <template v-if=\"currentSecurityItem.type === 'GROOVY_SCRIPT'\">\n <i-form-item class=\"security-content-form-item script-area-item\" label=\"授权脚本\">\n <i-input class=\"diy-input script-area\" type=\"textarea\" placeholder=\"请输入\" v-model=\"currentSecurityItem.scriptContent\"></i-input>\n </i-form-item>\n </template>\n </i-form>\n </div>\n </div>\n </main>\n\n <footer slot=\"footer\">\n <template>\n <i-button class=\"diy-btn-default\" @click=\"onCancel\">取消</i-button>\n <i-button type=\"primary\" class=\"diy-btn-primary\" @click=\"onSave\">保存</i-button>\n </template>\n </footer>\n</i-modal>\n"
26491
+
26471
26492
  /***/ }),
26472
26493
 
26473
26494
  /***/ "3ca3":
@@ -26506,6 +26527,13 @@ defineIterator(String, 'String', function (iterated) {
26506
26527
  });
26507
26528
 
26508
26529
 
26530
+ /***/ }),
26531
+
26532
+ /***/ "3de4":
26533
+ /***/ (function(module, exports) {
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=\"选择授权\">\n <!-- <i-select v-model=\"interfaceModel.authentication && interfaceModel.authentication.type\" class=\"diy-select\">-->\n <!-- <i-option v-for=\"item in securityTypeList\" :key=\"item.name\" :value=\"item.name\">{{item.text}} </i-option>-->\n <!-- </i-select>-->\n <i-select ref=\"addSecuritySelect\" class=\"diy-select add-security-select\" v-model=\"currentSecurityItemId\" @on-change=\"onChangeSecurityItem($event)\">\n <i-option v-for=\"item in securityList\" :key=\"item.id\" :value=\"item.id\">{{ item.name }}</i-option>\n <i-option class=\"add-security-item\" value=\"''\">\n <div class=\"add-security-item-content\" @click.stop=\"onAddSecurityItem\">\n <i class=\"api-icon icon-add\"></i>\n <span>新建授权</span>\n </div>\n<!-- <div class=\"add-security-item-content\">-->\n<!-- <i class=\"api-icon icon-add\"></i>-->\n<!-- <span>新建授权</span>-->\n<!-- </div>-->\n </i-option>\n </i-select>\n </i-form-item>\n <i-form-item label=\"授权类型\">\n <span class=\"security-type\">{{ currentSecurityItem._type?.text ? currentSecurityItem._type.text : \"暂无\" }}</span>\n </i-form-item>\n </i-form>\n </div>\n <div class=\"right\">\n <div class=\"right-title\">授权详情</div>\n <div class=\"right-content\">\n <div class=\"no-data\" v-if=\"!currentSecurityItem.type\">\n <div class=\"no-data-bg\"></div>\n <div class=\"no-data-text\">请在左侧下拉框中选择已建立授权</div>\n </div>\n <div class=\"script\" v-if=\"currentSecurityItem.type === 'GROOVY_SCRIPT'\">\n <div class=\"script-content\">{{ currentSecurityItem.scriptContent }}</div>\n </div>\n <div class=\"api-key\" v-if=\"currentSecurityItem.type === 'Api_Key'\">\n <i-form class=\"oauth-2-form diy-form\" label-colon>\n <i-form-item label=\"存储位置\">\n <span class=\"form-item-text\">{{ currentSecurityItem._location?.text ? currentSecurityItem._location.text : \"\"}}</span>\n </i-form-item>\n <i-form-item label=\"存储键值\">\n <span class=\"form-item-text\">{{ currentSecurityItem.locationKey }}</span>\n </i-form-item>\n <i-form-item label=\"key\">\n <span class=\"form-item-text\">{{ currentSecurityItem.content.key }}</span>\n </i-form-item>\n </i-form>\n </div>\n <div class=\"base-auth\" v-if=\"currentSecurityItem.type === 'Base_Auth'\">\n <i-form class=\"oauth-2-form diy-form\" label-colon>\n <i-form-item label=\"存储位置\">\n <span class=\"form-item-text\">{{ currentSecurityItem._location?.text ? currentSecurityItem._location.text : \"\" }}</span>\n </i-form-item>\n <i-form-item label=\"存储键值\">\n <span class=\"form-item-text\">{{ currentSecurityItem.locationKey }}</span>\n </i-form-item>\n <i-form-item label=\"username\">\n <span class=\"form-item-text\">{{ currentSecurityItem.content.username }}</span>\n </i-form-item>\n <i-form-item label=\"password\">\n <!-- <span class=\"form-item-text\">{{ \"·\" }}</span>-->\n <!-- <i-input class=\"diy-input\" v-model=\"model.password\" type=\"password\" password placeholder=\"请输入\"> </i-input>-->\n <i-input class=\"diy-password-input diy-input\" :value=\"currentSecurityItem.content.password\" type=\"password\"></i-input>\n </i-form-item>\n </i-form>\n </div>\n <div class=\"oauth-2\" v-if=\"currentSecurityItem.type === 'OAuth2'\">\n <i-form class=\"oauth-2-form diy-form\" label-colon>\n <i-form-item label=\"存储位置\">\n <span class=\"form-item-text\">{{ currentSecurityItem._location?.text ? currentSecurityItem._location.text : \"\" }}</span>\n </i-form-item>\n <i-form-item label=\"存储键值\">\n <span class=\"form-item-text\">{{ currentSecurityItem.locationKey }}</span>\n </i-form-item>\n <i-form-item>\n <u-tips-form-label slot=\"label\" :labelTitle=\"'Header Prefix'\" tips=\"token前缀 例如 Bearer\" label-colon></u-tips-form-label>\n <span class=\"form-item-text\">{{ currentSecurityItem.content.headerPrefix }}</span>\n </i-form-item>\n <i-form-item>\n <u-tips-form-label slot=\"label\" :labelTitle=\"'Grant Type'\" tips=\"认证类型\" label-colon></u-tips-form-label>\n <span class=\"form-item-text\">{{ findGrantTypeText(currentSecurityItem.content.grantType) }}</span>\n </i-form-item>\n <i-form-item>\n <u-tips-form-label slot=\"label\" :labelTitle=\"'Access Token Url'\" tips=\"获取token的httpUrl\" label-colon></u-tips-form-label>\n <span class=\"form-item-text\">{{ currentSecurityItem.content.tokenUrl }}</span>\n </i-form-item>\n <i-form-item>\n <u-tips-form-label slot=\"label\" :labelTitle=\"'TokenPath'\" tips=\"获取响应结果的token路径\" label-colon></u-tips-form-label>\n <span class=\"form-item-text\">{{ currentSecurityItem.content.tokenPath }}</span>\n </i-form-item>\n <i-form-item label=\"Client ID\">\n <span class=\"form-item-text\">{{ currentSecurityItem.content.clientId }}</span>\n </i-form-item>\n <i-form-item label=\"Client Secret\">\n <span class=\"form-item-text\">{{ currentSecurityItem.content.clientSecret }}</span>\n </i-form-item>\n <template v-if=\"currentSecurityItem.content.grantType === 'password'\">\n <i-form-item class=\"security-content-form-item\" label=\"username\">\n <span class=\"form-item-text\">{{ currentSecurityItem.content.username }}</span>\n </i-form-item>\n <i-form-item class=\"security-content-form-item\" label=\"password\">\n <i-input class=\"diy-password-input diy-input\" :value=\"currentSecurityItem.content.password\" type=\"password\"></i-input>\n </i-form-item>\n </template>\n <i-form-item label=\"Scope\">\n <u-tips-form-label slot=\"label\" :labelTitle=\"'Scope'\" tips=\"访问请求的范围,它可能有多个空格分隔的值\" label-colon></u-tips-form-label>\n <span class=\"form-item-text\">{{ currentSecurityItem.content.scope }}</span>\n </i-form-item>\n </i-form>\n </div>\n </div>\n </div>\n <u-security-modal v-model=\"showSecurity\" :projectID=\"projectID\" :isAdd=\"isAdd\" @on-fresh=\"getSecurityList\"></u-security-modal>\n</article>\n"
26536
+
26509
26537
  /***/ }),
26510
26538
 
26511
26539
  /***/ "3f8c":
@@ -38485,6 +38513,13 @@ module.exports = !$assign || fails(function () {
38485
38513
  } : $assign;
38486
38514
 
38487
38515
 
38516
+ /***/ }),
38517
+
38518
+ /***/ "61ef":
38519
+ /***/ (function(module, exports, __webpack_require__) {
38520
+
38521
+ // extracted by mini-css-extract-plugin
38522
+
38488
38523
  /***/ }),
38489
38524
 
38490
38525
  /***/ "6255":
@@ -43517,6 +43552,13 @@ if (DESCRIPTORS && !FUNCTION_NAME_EXISTS) {
43517
43552
  }
43518
43553
 
43519
43554
 
43555
+ /***/ }),
43556
+
43557
+ /***/ "b156":
43558
+ /***/ (function(module, exports, __webpack_require__) {
43559
+
43560
+ // extracted by mini-css-extract-plugin
43561
+
43520
43562
  /***/ }),
43521
43563
 
43522
43564
  /***/ "b2d8":
@@ -47204,7 +47246,7 @@ module.exports = /ipad|iphone|ipod/i.test(userAgent) && global.Pebble !== undefi
47204
47246
  /***/ "d63e":
47205
47247
  /***/ (function(module, exports) {
47206
47248
 
47207
- 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"
47249
+ 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"
47208
47250
 
47209
47251
  /***/ }),
47210
47252
 
@@ -48573,7 +48615,7 @@ module.exports = uncurryThis([].slice);
48573
48615
  /***/ "f40e":
48574
48616
  /***/ (function(module, exports) {
48575
48617
 
48576
- 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"
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-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 :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"
48577
48619
 
48578
48620
  /***/ }),
48579
48621
 
@@ -58231,6 +58273,7 @@ function () {
58231
58273
  this.content = "";
58232
58274
  this.location = "";
58233
58275
  this.locationKey = "";
58276
+ this.id = "";
58234
58277
  }
58235
58278
 
58236
58279
  return Authentication;
@@ -58441,6 +58484,22 @@ function (_super) {
58441
58484
  return this._get("/unity/api/project/".concat(id));
58442
58485
  };
58443
58486
 
58487
+ ApiService.prototype.getSecurityList = function (data) {
58488
+ return this._post("/unity/api/authentication/list", data);
58489
+ };
58490
+
58491
+ ApiService.prototype.deleteSecurityItem = function (id) {
58492
+ return this._delete("/unity/api/authentication/".concat(id));
58493
+ };
58494
+
58495
+ ApiService.prototype.addSecurityItem = function (data) {
58496
+ return this._post("/unity/api/authentication", data);
58497
+ };
58498
+
58499
+ ApiService.prototype.updateSecurityItem = function (data) {
58500
+ return this._put("/unity/api/authentication", data);
58501
+ };
58502
+
58444
58503
  var _a, _b;
58445
58504
 
58446
58505
  project_detail_service_decorate([serviceHandler("query", {
@@ -58507,6 +58566,28 @@ function (_super) {
58507
58566
  title: "项目详情"
58508
58567
  }), 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);
58509
58568
 
58569
+ project_detail_service_decorate([serviceHandler("query", {
58570
+ title: "授权认证列表查询"
58571
+ }), 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);
58572
+
58573
+ project_detail_service_decorate([serviceHandler("save", {
58574
+ title: "删除授权认证",
58575
+ showTip: true,
58576
+ showErrorMsg: true
58577
+ }), 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);
58578
+
58579
+ project_detail_service_decorate([serviceHandler("save", {
58580
+ title: "新增授权认证",
58581
+ showTip: true,
58582
+ showErrorMsg: true
58583
+ }), 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);
58584
+
58585
+ project_detail_service_decorate([serviceHandler("save", {
58586
+ title: "更新授权认证",
58587
+ showTip: true,
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, "updateSecurityItem", null);
58590
+
58510
58591
  return ApiService;
58511
58592
  }(common_service);
58512
58593
 
@@ -61596,359 +61677,1398 @@ var security_setting_generator = undefined && undefined.__generator || function
61596
61677
 
61597
61678
 
61598
61679
 
61599
- var security_setting_SecuritySetting =
61600
- /** @class */
61601
- function (_super) {
61602
- security_setting_extends(SecuritySetting, _super);
61603
-
61604
- function SecuritySetting() {
61605
- var _this = _super !== null && _super.apply(this, arguments) || this;
61606
-
61607
- _this.securityTypeList = [];
61608
- _this.tokenLocationTypeList = [];
61609
- _this.grantTypeList = [];
61610
- _this.model = {};
61611
- return _this;
61612
- }
61613
-
61614
- SecuritySetting.prototype.mounted = function () {
61615
- var _a, _b;
61616
-
61617
- this.getSecurityTypeList();
61618
- this.getTokenLocationTypeList();
61619
- this.getGrantTypeList();
61620
- 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) : {};
61621
- };
61622
-
61623
- SecuritySetting.prototype.getSecurityTypeList = function () {
61624
- return security_setting_awaiter(this, void 0, void 0, function () {
61625
- var result;
61626
- return security_setting_generator(this, function (_a) {
61627
- switch (_a.label) {
61628
- case 0:
61629
- return [4
61630
- /*yield*/
61631
- , this.service.getEnumByType("authenticationType")];
61632
-
61633
- case 1:
61634
- result = _a.sent();
61635
- this.securityTypeList = (result === null || result === void 0 ? void 0 : result.result) || [];
61636
- return [2
61637
- /*return*/
61638
- ];
61639
- }
61640
- });
61641
- });
61642
- };
61643
-
61644
- SecuritySetting.prototype.getTokenLocationTypeList = function () {
61645
- return security_setting_awaiter(this, void 0, void 0, function () {
61646
- var result;
61647
- return security_setting_generator(this, function (_a) {
61648
- switch (_a.label) {
61649
- case 0:
61650
- return [4
61651
- /*yield*/
61652
- , this.service.getEnumByType("tokenLocationType")];
61653
-
61654
- case 1:
61655
- result = _a.sent();
61656
- this.tokenLocationTypeList = (result === null || result === void 0 ? void 0 : result.result) || [];
61657
- return [2
61658
- /*return*/
61659
- ];
61660
- }
61661
- });
61662
- });
61663
- };
61664
-
61665
- SecuritySetting.prototype.getGrantTypeList = function () {
61666
- return security_setting_awaiter(this, void 0, void 0, function () {
61667
- var result;
61668
- return security_setting_generator(this, function (_a) {
61669
- switch (_a.label) {
61670
- case 0:
61671
- return [4
61672
- /*yield*/
61673
- , this.service.getEnumByType("grantType")];
61674
-
61675
- case 1:
61676
- result = _a.sent();
61677
- this.grantTypeList = (result === null || result === void 0 ? void 0 : result.result) || [];
61678
- return [2
61679
- /*return*/
61680
- ];
61681
- }
61682
- });
61683
- });
61684
- };
61685
-
61686
- SecuritySetting.prototype.modelChange = function () {
61687
- this.interfaceModel.authentication = this.interfaceModel.authentication || new Authentication();
61688
- this.interfaceModel.authentication.content = JSON.stringify(this.model);
61689
- };
61690
-
61691
- SecuritySetting.prototype.onClear = function () {
61692
- this.model = {};
61693
- };
61694
-
61695
- var _a, _b;
61696
-
61697
- security_setting_decorate([Object(flagwind_web_["config"])({
61698
- default: function _default() {
61699
- return new InterfaceModel();
61700
- }
61701
- }), security_setting_metadata("design:type", typeof (_a = typeof InterfaceModel !== "undefined" && InterfaceModel) === "function" ? _a : Object)], SecuritySetting.prototype, "interfaceModel", void 0);
61702
-
61703
- 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);
61704
-
61705
- security_setting_decorate([Object(flagwind_web_["watch"])("model", {
61706
- deep: true
61707
- }), security_setting_metadata("design:type", Function), security_setting_metadata("design:paramtypes", []), security_setting_metadata("design:returntype", void 0)], SecuritySetting.prototype, "modelChange", null);
61708
-
61709
- SecuritySetting = security_setting_decorate([Object(flagwind_web_["component"])({
61710
- template: __webpack_require__("b676"),
61711
- components: {
61712
- "u-tips-form-label": tips_form_label
61713
- }
61714
- })], SecuritySetting);
61715
- return SecuritySetting;
61716
- }(flagwind_web_["Component"]);
61717
-
61718
- /* harmony default export */ var project_detail_security_setting = (security_setting_SecuritySetting);
61719
- // EXTERNAL MODULE: ./src/views/project-detail/interface-settings/index.scss
61720
- var interface_settings = __webpack_require__("2a79");
61721
-
61722
- // CONCATENATED MODULE: ./src/views/project-detail/interface-settings/index.ts
61723
-
61724
-
61725
-
61726
-
61727
-
61728
-
61729
-
61730
-
61731
-
61732
-
61733
-
61734
-
61735
-
61736
-
61737
-
61738
-
61739
-
61740
-
61741
-
61742
-
61743
-
61744
-
61745
- var interface_settings_extends = undefined && undefined.__extends || function () {
61746
- var _extendStatics = function extendStatics(d, b) {
61747
- _extendStatics = Object.setPrototypeOf || {
61748
- __proto__: []
61749
- } instanceof Array && function (d, b) {
61750
- d.__proto__ = b;
61751
- } || function (d, b) {
61752
- for (var p in b) {
61753
- if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
61754
- }
61755
- };
61756
-
61757
- return _extendStatics(d, b);
61758
- };
61759
-
61760
- return function (d, b) {
61761
- if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
61762
-
61763
- _extendStatics(d, b);
61764
-
61765
- function __() {
61766
- this.constructor = d;
61767
- }
61768
-
61769
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
61770
- };
61771
- }();
61772
-
61773
- var interface_settings_assign = undefined && undefined.__assign || function () {
61774
- interface_settings_assign = Object.assign || function (t) {
61775
- for (var s, i = 1, n = arguments.length; i < n; i++) {
61776
- s = arguments[i];
61777
-
61778
- for (var p in s) {
61779
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
61780
- }
61781
- }
61782
-
61783
- return t;
61784
- };
61785
-
61786
- return interface_settings_assign.apply(this, arguments);
61787
- };
61788
-
61789
- var interface_settings_decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
61790
- var c = arguments.length,
61791
- r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
61792
- d;
61793
- 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--) {
61794
- if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
61795
- }
61796
- return c > 3 && r && Object.defineProperty(target, key, r), r;
61797
- };
61798
-
61799
- var interface_settings_metadata = undefined && undefined.__metadata || function (k, v) {
61800
- if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
61801
- };
61802
-
61803
- var interface_settings_awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
61804
- function adopt(value) {
61805
- return value instanceof P ? value : new P(function (resolve) {
61806
- resolve(value);
61807
- });
61808
- }
61809
-
61810
- return new (P || (P = Promise))(function (resolve, reject) {
61811
- function fulfilled(value) {
61812
- try {
61813
- step(generator.next(value));
61814
- } catch (e) {
61815
- reject(e);
61816
- }
61817
- }
61818
-
61819
- function rejected(value) {
61820
- try {
61821
- step(generator["throw"](value));
61822
- } catch (e) {
61823
- reject(e);
61824
- }
61825
- }
61826
-
61827
- function step(result) {
61828
- result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
61829
- }
61830
-
61831
- step((generator = generator.apply(thisArg, _arguments || [])).next());
61832
- });
61833
- };
61834
-
61835
- var interface_settings_generator = undefined && undefined.__generator || function (thisArg, body) {
61836
- var _ = {
61837
- label: 0,
61838
- sent: function sent() {
61839
- if (t[0] & 1) throw t[1];
61840
- return t[1];
61841
- },
61842
- trys: [],
61843
- ops: []
61844
- },
61845
- f,
61846
- y,
61847
- t,
61848
- g;
61849
- return g = {
61850
- next: verb(0),
61851
- "throw": verb(1),
61852
- "return": verb(2)
61853
- }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
61854
- return this;
61855
- }), g;
61856
-
61857
- function verb(n) {
61858
- return function (v) {
61859
- return step([n, v]);
61860
- };
61861
- }
61862
-
61863
- function step(op) {
61864
- if (f) throw new TypeError("Generator is already executing.");
61865
-
61866
- while (_) {
61867
- try {
61868
- 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;
61869
- if (y = 0, t) op = [op[0] & 2, t.value];
61870
-
61871
- switch (op[0]) {
61872
- case 0:
61873
- case 1:
61874
- t = op;
61875
- break;
61876
-
61877
- case 4:
61878
- _.label++;
61879
- return {
61880
- value: op[1],
61881
- done: false
61882
- };
61883
-
61884
- case 5:
61885
- _.label++;
61886
- y = op[1];
61887
- op = [0];
61888
- continue;
61889
-
61890
- case 7:
61891
- op = _.ops.pop();
61892
-
61893
- _.trys.pop();
61894
-
61895
- continue;
61896
-
61897
- default:
61898
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
61899
- _ = 0;
61900
- continue;
61901
- }
61902
-
61903
- if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
61904
- _.label = op[1];
61905
- break;
61906
- }
61907
-
61908
- if (op[0] === 6 && _.label < t[1]) {
61909
- _.label = t[1];
61910
- t = op;
61911
- break;
61912
- }
61913
-
61914
- if (t && _.label < t[2]) {
61915
- _.label = t[2];
61916
-
61917
- _.ops.push(op);
61918
-
61919
- break;
61920
- }
61921
-
61922
- if (t[2]) _.ops.pop();
61923
-
61924
- _.trys.pop();
61925
-
61926
- continue;
61927
- }
61928
-
61929
- op = body.call(thisArg, _);
61930
- } catch (e) {
61931
- op = [6, e];
61932
- y = 0;
61933
- } finally {
61934
- f = t = 0;
61935
- }
61936
- }
61937
-
61938
- if (op[0] & 5) throw op[1];
61939
- return {
61940
- value: op[0] ? op[1] : void 0,
61941
- done: true
61942
- };
61943
- }
61944
- };
61945
-
61946
-
61947
-
61948
-
61949
-
61950
-
61951
-
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(); // this.debounceSearch = debounce(this.getSecurityList(this.keyword), 200);
62163
+ }
62164
+
62165
+ return [2
62166
+ /*return*/
62167
+ ];
62168
+ });
62169
+ });
62170
+ };
62171
+
62172
+ SecurityModalComponent.prototype.getSecurityTypeList = function () {
62173
+ return security_modal_awaiter(this, void 0, void 0, function () {
62174
+ var result, tempList;
62175
+ return security_modal_generator(this, function (_a) {
62176
+ switch (_a.label) {
62177
+ case 0:
62178
+ return [4
62179
+ /*yield*/
62180
+ , this.service.getEnumByType("authenticationType")];
62181
+
62182
+ case 1:
62183
+ result = _a.sent();
62184
+ tempList = (result === null || result === void 0 ? void 0 : result.result) || [];
62185
+ this.securityTypeList = tempList.filter(function (item) {
62186
+ return item.name !== "None";
62187
+ });
62188
+ return [2
62189
+ /*return*/
62190
+ ];
62191
+ }
62192
+ });
62193
+ });
62194
+ };
62195
+
62196
+ SecurityModalComponent.prototype.getTokenLocationTypeList = function () {
62197
+ return security_modal_awaiter(this, void 0, void 0, function () {
62198
+ var result;
62199
+ return security_modal_generator(this, function (_a) {
62200
+ switch (_a.label) {
62201
+ case 0:
62202
+ return [4
62203
+ /*yield*/
62204
+ , this.service.getEnumByType("tokenLocationType")];
62205
+
62206
+ case 1:
62207
+ result = _a.sent();
62208
+ this.tokenLocationTypeList = (result === null || result === void 0 ? void 0 : result.result) || [];
62209
+ return [2
62210
+ /*return*/
62211
+ ];
62212
+ }
62213
+ });
62214
+ });
62215
+ };
62216
+
62217
+ SecurityModalComponent.prototype.getGrantTypeList = function () {
62218
+ return security_modal_awaiter(this, void 0, void 0, function () {
62219
+ var result;
62220
+ return security_modal_generator(this, function (_a) {
62221
+ switch (_a.label) {
62222
+ case 0:
62223
+ return [4
62224
+ /*yield*/
62225
+ , this.service.getEnumByType("grantType")];
62226
+
62227
+ case 1:
62228
+ result = _a.sent();
62229
+ this.grantTypeList = (result === null || result === void 0 ? void 0 : result.result) || [];
62230
+ return [2
62231
+ /*return*/
62232
+ ];
62233
+ }
62234
+ });
62235
+ });
62236
+ };
62237
+
62238
+ SecurityModalComponent.prototype.getSecurityList = function () {
62239
+ return security_modal_awaiter(this, void 0, void 0, function () {
62240
+ var res, tempList;
62241
+ return security_modal_generator(this, function (_a) {
62242
+ switch (_a.label) {
62243
+ case 0:
62244
+ return [4
62245
+ /*yield*/
62246
+ , this.service.getSecurityList({
62247
+ name: this.keyword,
62248
+ projectId: this.projectID
62249
+ })];
62250
+
62251
+ case 1:
62252
+ res = _a.sent();
62253
+
62254
+ if (!(res === null || res === void 0 ? void 0 : res.hasError)) {
62255
+ tempList = res.result || [];
62256
+ this.securityList = tempList.map(function (item) {
62257
+ if (item.type !== "GROOVY_SCRIPT") {
62258
+ item.content = JSON.parse(item.content);
62259
+ } else {
62260
+ item.scriptContent = item.content;
62261
+ item.content = {};
62262
+ }
62263
+
62264
+ return item;
62265
+ });
62266
+
62267
+ if (this.isAddOnce || this.exitAddItem) {
62268
+ this.onAddItem();
62269
+ this.isAddOnce = false;
62270
+ this.exitAddItem = false;
62271
+ }
62272
+ }
62273
+
62274
+ return [2
62275
+ /*return*/
62276
+ ];
62277
+ }
62278
+ });
62279
+ });
62280
+ };
62281
+
62282
+ SecurityModalComponent.prototype.onSelectSecurityItem = function (item) {
62283
+ this.currentSecurityItem = item.$clone();
62284
+ };
62285
+
62286
+ SecurityModalComponent.prototype.onDelete = function (item) {
62287
+ return security_modal_awaiter(this, void 0, void 0, function () {
62288
+ var res;
62289
+ return security_modal_generator(this, function (_a) {
62290
+ switch (_a.label) {
62291
+ case 0:
62292
+ if (!item.id) return [3
62293
+ /*break*/
62294
+ , 2];
62295
+
62296
+ if (this.securityList.find(function (item) {
62297
+ return !item.id;
62298
+ })) {
62299
+ this.exitAddItem = true;
62300
+ }
62301
+
62302
+ return [4
62303
+ /*yield*/
62304
+ , this.service.deleteSecurityItem(item.id)];
62305
+
62306
+ case 1:
62307
+ res = _a.sent();
62308
+
62309
+ if (!(res === null || res === void 0 ? void 0 : res.hasError)) {
62310
+ this.getSecurityList();
62311
+ }
62312
+
62313
+ return [3
62314
+ /*break*/
62315
+ , 3];
62316
+
62317
+ case 2:
62318
+ this.securityList.shift();
62319
+ _a.label = 3;
62320
+
62321
+ case 3:
62322
+ this.currentSecurityItem = {};
62323
+ return [2
62324
+ /*return*/
62325
+ ];
62326
+ }
62327
+ });
62328
+ });
62329
+ };
62330
+
62331
+ SecurityModalComponent.prototype.onAddItem = function () {
62332
+ if (this.securityList.length > 0 && !this.securityList[0].id) {
62333
+ return;
62334
+ }
62335
+
62336
+ var item = {
62337
+ name: "",
62338
+ type: "GROOVY_SCRIPT",
62339
+ content: {},
62340
+ scriptContent: ""
62341
+ };
62342
+ this.securityList.unshift(item);
62343
+ this.currentSecurityItem = this.securityList[0].$clone();
62344
+ };
62345
+
62346
+ SecurityModalComponent.prototype.onCancel = function () {
62347
+ this.show = false;
62348
+ this.keyword = "";
62349
+ this.currentSecurityItem = {};
62350
+ };
62351
+
62352
+ SecurityModalComponent.prototype.onSave = function () {
62353
+ return security_modal_awaiter(this, void 0, void 0, function () {
62354
+ var data, res;
62355
+ return security_modal_generator(this, function (_a) {
62356
+ switch (_a.label) {
62357
+ case 0:
62358
+ data = {
62359
+ projectId: this.projectID,
62360
+ name: this.currentSecurityItem.name,
62361
+ type: this.currentSecurityItem.type
62362
+ };
62363
+
62364
+ if (this.currentSecurityItem.type === "GROOVY_SCRIPT") {
62365
+ data.location = null;
62366
+ data.locationKey = null;
62367
+ data.content = this.currentSecurityItem.scriptContent;
62368
+ } else {
62369
+ data.location = this.currentSecurityItem.location;
62370
+ data.locationKey = this.currentSecurityItem.locationKey;
62371
+ data.content = {};
62372
+
62373
+ if (this.currentSecurityItem.type === "Api_Key") {
62374
+ data.content.key = this.currentSecurityItem.content.key;
62375
+ } else if (this.currentSecurityItem.type === "Base_Auth") {
62376
+ data.content.username = this.currentSecurityItem.content.username;
62377
+ data.content.password = this.currentSecurityItem.content.password;
62378
+ } else if (this.currentSecurityItem.type === "OAuth2") {
62379
+ data = security_modal_assign(security_modal_assign({}, data), this.currentSecurityItem);
62380
+
62381
+ if (this.currentSecurityItem.content.grantType !== "password") {
62382
+ delete data.content.password;
62383
+ delete data.content.username;
62384
+ }
62385
+ }
62386
+
62387
+ data.content = JSON.stringify(data.content);
62388
+ }
62389
+
62390
+ res = null;
62391
+ if (!this.currentSecurityItem.id) return [3
62392
+ /*break*/
62393
+ , 2];
62394
+ data.id = this.currentSecurityItem.id;
62395
+ return [4
62396
+ /*yield*/
62397
+ , this.service.updateSecurityItem(data)];
62398
+
62399
+ case 1:
62400
+ res = _a.sent();
62401
+ return [3
62402
+ /*break*/
62403
+ , 4];
62404
+
62405
+ case 2:
62406
+ return [4
62407
+ /*yield*/
62408
+ , this.service.addSecurityItem(data)];
62409
+
62410
+ case 3:
62411
+ res = _a.sent();
62412
+ _a.label = 4;
62413
+
62414
+ case 4:
62415
+ if (!(res === null || res === void 0 ? void 0 : res.hasError)) {
62416
+ this.getSecurityList();
62417
+ this.$emit("on-fresh");
62418
+ }
62419
+
62420
+ return [2
62421
+ /*return*/
62422
+ ];
62423
+ }
62424
+ });
62425
+ });
62426
+ };
62427
+
62428
+ var _a;
62429
+
62430
+ 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);
62431
+
62432
+ security_modal_decorate([Object(flagwind_web_["config"])({
62433
+ type: Boolean,
62434
+ default: true
62435
+ }), security_modal_metadata("design:type", Boolean)], SecurityModalComponent.prototype, "value", void 0);
62436
+
62437
+ security_modal_decorate([Object(flagwind_web_["config"])({
62438
+ type: String,
62439
+ default: ""
62440
+ }), security_modal_metadata("design:type", String)], SecurityModalComponent.prototype, "projectID", void 0);
62441
+
62442
+ security_modal_decorate([Object(flagwind_web_["config"])({
62443
+ type: Boolean,
62444
+ default: false
62445
+ }), security_modal_metadata("design:type", Boolean)], SecurityModalComponent.prototype, "isAdd", void 0);
62446
+
62447
+ 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);
62448
+
62449
+ SecurityModalComponent = security_modal_decorate([Object(flagwind_web_["component"])({
62450
+ template: __webpack_require__("3bf8"),
62451
+ components: {
62452
+ "u-tips-form-label": project_detail_security_setting_v2_tips_form_label
62453
+ }
62454
+ })], SecurityModalComponent);
62455
+ return SecurityModalComponent;
62456
+ }(flagwind_web_["Component"]);
62457
+
62458
+ /* harmony default export */ var project_detail_security_modal = (security_modal_SecurityModalComponent);
62459
+ // CONCATENATED MODULE: ./src/views/project-detail/security-setting-v2/index.ts
62460
+
62461
+
62462
+
62463
+
62464
+
62465
+
62466
+
62467
+
62468
+
62469
+
62470
+
62471
+
62472
+
62473
+
62474
+
62475
+
62476
+
62477
+ var security_setting_v2_extends = undefined && undefined.__extends || function () {
62478
+ var _extendStatics = function extendStatics(d, b) {
62479
+ _extendStatics = Object.setPrototypeOf || {
62480
+ __proto__: []
62481
+ } instanceof Array && function (d, b) {
62482
+ d.__proto__ = b;
62483
+ } || function (d, b) {
62484
+ for (var p in b) {
62485
+ if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
62486
+ }
62487
+ };
62488
+
62489
+ return _extendStatics(d, b);
62490
+ };
62491
+
62492
+ return function (d, b) {
62493
+ if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
62494
+
62495
+ _extendStatics(d, b);
62496
+
62497
+ function __() {
62498
+ this.constructor = d;
62499
+ }
62500
+
62501
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
62502
+ };
62503
+ }();
62504
+
62505
+ var security_setting_v2_decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
62506
+ var c = arguments.length,
62507
+ r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
62508
+ d;
62509
+ 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--) {
62510
+ if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
62511
+ }
62512
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
62513
+ };
62514
+
62515
+ var security_setting_v2_metadata = undefined && undefined.__metadata || function (k, v) {
62516
+ if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
62517
+ };
62518
+
62519
+ var security_setting_v2_awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
62520
+ function adopt(value) {
62521
+ return value instanceof P ? value : new P(function (resolve) {
62522
+ resolve(value);
62523
+ });
62524
+ }
62525
+
62526
+ return new (P || (P = Promise))(function (resolve, reject) {
62527
+ function fulfilled(value) {
62528
+ try {
62529
+ step(generator.next(value));
62530
+ } catch (e) {
62531
+ reject(e);
62532
+ }
62533
+ }
62534
+
62535
+ function rejected(value) {
62536
+ try {
62537
+ step(generator["throw"](value));
62538
+ } catch (e) {
62539
+ reject(e);
62540
+ }
62541
+ }
62542
+
62543
+ function step(result) {
62544
+ result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
62545
+ }
62546
+
62547
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
62548
+ });
62549
+ };
62550
+
62551
+ var security_setting_v2_generator = undefined && undefined.__generator || function (thisArg, body) {
62552
+ var _ = {
62553
+ label: 0,
62554
+ sent: function sent() {
62555
+ if (t[0] & 1) throw t[1];
62556
+ return t[1];
62557
+ },
62558
+ trys: [],
62559
+ ops: []
62560
+ },
62561
+ f,
62562
+ y,
62563
+ t,
62564
+ g;
62565
+ return g = {
62566
+ next: verb(0),
62567
+ "throw": verb(1),
62568
+ "return": verb(2)
62569
+ }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
62570
+ return this;
62571
+ }), g;
62572
+
62573
+ function verb(n) {
62574
+ return function (v) {
62575
+ return step([n, v]);
62576
+ };
62577
+ }
62578
+
62579
+ function step(op) {
62580
+ if (f) throw new TypeError("Generator is already executing.");
62581
+
62582
+ while (_) {
62583
+ try {
62584
+ 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;
62585
+ if (y = 0, t) op = [op[0] & 2, t.value];
62586
+
62587
+ switch (op[0]) {
62588
+ case 0:
62589
+ case 1:
62590
+ t = op;
62591
+ break;
62592
+
62593
+ case 4:
62594
+ _.label++;
62595
+ return {
62596
+ value: op[1],
62597
+ done: false
62598
+ };
62599
+
62600
+ case 5:
62601
+ _.label++;
62602
+ y = op[1];
62603
+ op = [0];
62604
+ continue;
62605
+
62606
+ case 7:
62607
+ op = _.ops.pop();
62608
+
62609
+ _.trys.pop();
62610
+
62611
+ continue;
62612
+
62613
+ default:
62614
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
62615
+ _ = 0;
62616
+ continue;
62617
+ }
62618
+
62619
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
62620
+ _.label = op[1];
62621
+ break;
62622
+ }
62623
+
62624
+ if (op[0] === 6 && _.label < t[1]) {
62625
+ _.label = t[1];
62626
+ t = op;
62627
+ break;
62628
+ }
62629
+
62630
+ if (t && _.label < t[2]) {
62631
+ _.label = t[2];
62632
+
62633
+ _.ops.push(op);
62634
+
62635
+ break;
62636
+ }
62637
+
62638
+ if (t[2]) _.ops.pop();
62639
+
62640
+ _.trys.pop();
62641
+
62642
+ continue;
62643
+ }
62644
+
62645
+ op = body.call(thisArg, _);
62646
+ } catch (e) {
62647
+ op = [6, e];
62648
+ y = 0;
62649
+ } finally {
62650
+ f = t = 0;
62651
+ }
62652
+ }
62653
+
62654
+ if (op[0] & 5) throw op[1];
62655
+ return {
62656
+ value: op[0] ? op[1] : void 0,
62657
+ done: true
62658
+ };
62659
+ }
62660
+ };
62661
+
62662
+
62663
+
62664
+
62665
+
62666
+
62667
+
62668
+
62669
+
62670
+ var security_setting_v2_SecuritySettingV2 =
62671
+ /** @class */
62672
+ function (_super) {
62673
+ security_setting_v2_extends(SecuritySettingV2, _super);
62674
+
62675
+ function SecuritySettingV2() {
62676
+ var _this = _super !== null && _super.apply(this, arguments) || this;
62677
+
62678
+ _this.securityList = [];
62679
+ _this.currentSecurityItem = {};
62680
+ _this.currentSecurityItemId = "";
62681
+ _this.showSecurity = false;
62682
+ _this.isAdd = true;
62683
+ _this.grantTypeList = [];
62684
+ return _this;
62685
+ }
62686
+
62687
+ SecuritySettingV2.prototype.mounted = function () {
62688
+ var _a;
62689
+
62690
+ return security_setting_v2_awaiter(this, void 0, void 0, function () {
62691
+ var _this = this;
62692
+
62693
+ return security_setting_v2_generator(this, function (_b) {
62694
+ switch (_b.label) {
62695
+ case 0:
62696
+ this.getGrantTypeList();
62697
+ return [4
62698
+ /*yield*/
62699
+ , this.getSecurityList()];
62700
+
62701
+ case 1:
62702
+ _b.sent();
62703
+
62704
+ if (this.currentSecurityID) {
62705
+ this.currentSecurityItemId = this.currentSecurityID;
62706
+ } else if ((_a = this.interfaceModel.authentication) === null || _a === void 0 ? void 0 : _a.id) {
62707
+ this.currentSecurityItemId = this.interfaceModel.authentication.id;
62708
+ }
62709
+
62710
+ this.currentSecurityItem = this.securityList.find(function (item) {
62711
+ return item.id === _this.currentSecurityItemId;
62712
+ }) || {};
62713
+ return [2
62714
+ /*return*/
62715
+ ];
62716
+ }
62717
+ });
62718
+ });
62719
+ };
62720
+
62721
+ SecuritySettingV2.prototype.getGrantTypeList = function () {
62722
+ return security_setting_v2_awaiter(this, void 0, void 0, function () {
62723
+ var result;
62724
+ return security_setting_v2_generator(this, function (_a) {
62725
+ switch (_a.label) {
62726
+ case 0:
62727
+ return [4
62728
+ /*yield*/
62729
+ , this.service.getEnumByType("grantType")];
62730
+
62731
+ case 1:
62732
+ result = _a.sent();
62733
+ this.grantTypeList = (result === null || result === void 0 ? void 0 : result.result) || [];
62734
+ return [2
62735
+ /*return*/
62736
+ ];
62737
+ }
62738
+ });
62739
+ });
62740
+ };
62741
+
62742
+ SecuritySettingV2.prototype.findGrantTypeText = function (name) {
62743
+ var res = this.grantTypeList.find(function (item) {
62744
+ return item.name === name;
62745
+ });
62746
+ return res ? res.text : "";
62747
+ };
62748
+
62749
+ SecuritySettingV2.prototype.getSecurityList = function () {
62750
+ return security_setting_v2_awaiter(this, void 0, void 0, function () {
62751
+ var res, tempList;
62752
+ return security_setting_v2_generator(this, function (_a) {
62753
+ switch (_a.label) {
62754
+ case 0:
62755
+ return [4
62756
+ /*yield*/
62757
+ , this.service.getSecurityList({
62758
+ projectId: this.projectID
62759
+ })];
62760
+
62761
+ case 1:
62762
+ res = _a.sent();
62763
+
62764
+ if (!(res === null || res === void 0 ? void 0 : res.hasError)) {
62765
+ tempList = res.result || [];
62766
+ this.securityList = tempList.map(function (item) {
62767
+ if (item.type !== "GROOVY_SCRIPT") {
62768
+ item.content = JSON.parse(item.content);
62769
+ } else {
62770
+ item.scriptContent = item.content;
62771
+ item.content = {};
62772
+ }
62773
+
62774
+ return item;
62775
+ });
62776
+ }
62777
+
62778
+ return [2
62779
+ /*return*/
62780
+ ];
62781
+ }
62782
+ });
62783
+ });
62784
+ };
62785
+
62786
+ SecuritySettingV2.prototype.onChangeSecurityItem = function (id) {
62787
+ this.$emit("on-current-id", id);
62788
+ this.currentSecurityItem = this.securityList.find(function (item) {
62789
+ return item.id === id;
62790
+ });
62791
+ this.interfaceModel.authentication = this.interfaceModel.authentication || new Authentication();
62792
+ this.interfaceModel.authentication.type = this.currentSecurityItem.type;
62793
+ this.interfaceModel.authentication.location = this.currentSecurityItem.location;
62794
+ this.interfaceModel.authentication.locationKey = this.currentSecurityItem.locationKey;
62795
+
62796
+ if (this.currentSecurityItem.type === "GROOVY_SCRIPT") {
62797
+ this.interfaceModel.authentication.content = this.currentSecurityItem.scriptContent;
62798
+ } else {
62799
+ this.interfaceModel.authentication.content = JSON.stringify(this.currentSecurityItem.content);
62800
+ }
62801
+
62802
+ this.interfaceModel.info.authId = this.currentSecurityItem.id;
62803
+ };
62804
+
62805
+ SecuritySettingV2.prototype.onAddSecurityItem = function () {
62806
+ this.$refs.addSecuritySelect.visible = false;
62807
+ this.showSecurity = true;
62808
+ };
62809
+
62810
+ var _a, _b;
62811
+
62812
+ 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);
62813
+
62814
+ security_setting_v2_decorate([Object(flagwind_web_["config"])({
62815
+ default: function _default() {
62816
+ return new InterfaceModel();
62817
+ }
62818
+ }), security_setting_v2_metadata("design:type", typeof (_b = typeof InterfaceModel !== "undefined" && InterfaceModel) === "function" ? _b : Object)], SecuritySettingV2.prototype, "interfaceModel", void 0);
62819
+
62820
+ security_setting_v2_decorate([Object(flagwind_web_["config"])({
62821
+ type: String,
62822
+ default: ""
62823
+ }), security_setting_v2_metadata("design:type", String)], SecuritySettingV2.prototype, "projectID", void 0);
62824
+
62825
+ security_setting_v2_decorate([Object(flagwind_web_["config"])({
62826
+ type: String,
62827
+ default: ""
62828
+ }), security_setting_v2_metadata("design:type", String)], SecuritySettingV2.prototype, "currentSecurityID", void 0);
62829
+
62830
+ SecuritySettingV2 = security_setting_v2_decorate([Object(flagwind_web_["component"])({
62831
+ template: __webpack_require__("3de4"),
62832
+ components: {
62833
+ "u-tips-form-label": project_detail_security_setting_v2_tips_form_label,
62834
+ "u-security-modal": project_detail_security_modal
62835
+ }
62836
+ })], SecuritySettingV2);
62837
+ return SecuritySettingV2;
62838
+ }(flagwind_web_["Component"]);
62839
+
62840
+ /* harmony default export */ var project_detail_security_setting_v2 = (security_setting_v2_SecuritySettingV2);
62841
+ // CONCATENATED MODULE: ./src/views/project-detail/interface-settings/index.ts
62842
+
62843
+
62844
+
62845
+
62846
+
62847
+
62848
+
62849
+
62850
+
62851
+
62852
+
62853
+
62854
+
62855
+
62856
+
62857
+
62858
+
62859
+
62860
+
62861
+
62862
+
62863
+
62864
+ var interface_settings_extends = undefined && undefined.__extends || function () {
62865
+ var _extendStatics = function extendStatics(d, b) {
62866
+ _extendStatics = Object.setPrototypeOf || {
62867
+ __proto__: []
62868
+ } instanceof Array && function (d, b) {
62869
+ d.__proto__ = b;
62870
+ } || function (d, b) {
62871
+ for (var p in b) {
62872
+ if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
62873
+ }
62874
+ };
62875
+
62876
+ return _extendStatics(d, b);
62877
+ };
62878
+
62879
+ return function (d, b) {
62880
+ if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
62881
+
62882
+ _extendStatics(d, b);
62883
+
62884
+ function __() {
62885
+ this.constructor = d;
62886
+ }
62887
+
62888
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
62889
+ };
62890
+ }();
62891
+
62892
+ var interface_settings_assign = undefined && undefined.__assign || function () {
62893
+ interface_settings_assign = Object.assign || function (t) {
62894
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
62895
+ s = arguments[i];
62896
+
62897
+ for (var p in s) {
62898
+ if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
62899
+ }
62900
+ }
62901
+
62902
+ return t;
62903
+ };
62904
+
62905
+ return interface_settings_assign.apply(this, arguments);
62906
+ };
62907
+
62908
+ var interface_settings_decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
62909
+ var c = arguments.length,
62910
+ r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
62911
+ d;
62912
+ 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--) {
62913
+ if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
62914
+ }
62915
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
62916
+ };
62917
+
62918
+ var interface_settings_metadata = undefined && undefined.__metadata || function (k, v) {
62919
+ if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
62920
+ };
62921
+
62922
+ var interface_settings_awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
62923
+ function adopt(value) {
62924
+ return value instanceof P ? value : new P(function (resolve) {
62925
+ resolve(value);
62926
+ });
62927
+ }
62928
+
62929
+ return new (P || (P = Promise))(function (resolve, reject) {
62930
+ function fulfilled(value) {
62931
+ try {
62932
+ step(generator.next(value));
62933
+ } catch (e) {
62934
+ reject(e);
62935
+ }
62936
+ }
62937
+
62938
+ function rejected(value) {
62939
+ try {
62940
+ step(generator["throw"](value));
62941
+ } catch (e) {
62942
+ reject(e);
62943
+ }
62944
+ }
62945
+
62946
+ function step(result) {
62947
+ result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
62948
+ }
62949
+
62950
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
62951
+ });
62952
+ };
62953
+
62954
+ var interface_settings_generator = undefined && undefined.__generator || function (thisArg, body) {
62955
+ var _ = {
62956
+ label: 0,
62957
+ sent: function sent() {
62958
+ if (t[0] & 1) throw t[1];
62959
+ return t[1];
62960
+ },
62961
+ trys: [],
62962
+ ops: []
62963
+ },
62964
+ f,
62965
+ y,
62966
+ t,
62967
+ g;
62968
+ return g = {
62969
+ next: verb(0),
62970
+ "throw": verb(1),
62971
+ "return": verb(2)
62972
+ }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
62973
+ return this;
62974
+ }), g;
62975
+
62976
+ function verb(n) {
62977
+ return function (v) {
62978
+ return step([n, v]);
62979
+ };
62980
+ }
62981
+
62982
+ function step(op) {
62983
+ if (f) throw new TypeError("Generator is already executing.");
62984
+
62985
+ while (_) {
62986
+ try {
62987
+ 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;
62988
+ if (y = 0, t) op = [op[0] & 2, t.value];
62989
+
62990
+ switch (op[0]) {
62991
+ case 0:
62992
+ case 1:
62993
+ t = op;
62994
+ break;
62995
+
62996
+ case 4:
62997
+ _.label++;
62998
+ return {
62999
+ value: op[1],
63000
+ done: false
63001
+ };
63002
+
63003
+ case 5:
63004
+ _.label++;
63005
+ y = op[1];
63006
+ op = [0];
63007
+ continue;
63008
+
63009
+ case 7:
63010
+ op = _.ops.pop();
63011
+
63012
+ _.trys.pop();
63013
+
63014
+ continue;
63015
+
63016
+ default:
63017
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
63018
+ _ = 0;
63019
+ continue;
63020
+ }
63021
+
63022
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
63023
+ _.label = op[1];
63024
+ break;
63025
+ }
63026
+
63027
+ if (op[0] === 6 && _.label < t[1]) {
63028
+ _.label = t[1];
63029
+ t = op;
63030
+ break;
63031
+ }
63032
+
63033
+ if (t && _.label < t[2]) {
63034
+ _.label = t[2];
63035
+
63036
+ _.ops.push(op);
63037
+
63038
+ break;
63039
+ }
63040
+
63041
+ if (t[2]) _.ops.pop();
63042
+
63043
+ _.trys.pop();
63044
+
63045
+ continue;
63046
+ }
63047
+
63048
+ op = body.call(thisArg, _);
63049
+ } catch (e) {
63050
+ op = [6, e];
63051
+ y = 0;
63052
+ } finally {
63053
+ f = t = 0;
63054
+ }
63055
+ }
63056
+
63057
+ if (op[0] & 5) throw op[1];
63058
+ return {
63059
+ value: op[0] ? op[1] : void 0,
63060
+ done: true
63061
+ };
63062
+ }
63063
+ };
63064
+
63065
+
63066
+
63067
+
63068
+
63069
+
63070
+
63071
+
61952
63072
 
61953
63073
 
61954
63074
 
@@ -61967,6 +63087,7 @@ function (_super) {
61967
63087
  _this.response = new Response();
61968
63088
  _this.responseCache = new Map();
61969
63089
  _this.loading = false;
63090
+ _this.currentId = "";
61970
63091
  _this.typeList = [{
61971
63092
  value: "GET",
61972
63093
  text: "GET"
@@ -61986,9 +63107,13 @@ function (_super) {
61986
63107
  }, {
61987
63108
  title: "Headers",
61988
63109
  name: "headers"
61989
- }, {
63110
+ }, // {
63111
+ // title: "授权管理",
63112
+ // name: "security"
63113
+ // },
63114
+ {
61990
63115
  title: "授权管理",
61991
- name: "security"
63116
+ name: "v2security"
61992
63117
  }, {
61993
63118
  title: "前置脚本",
61994
63119
  name: "pre-execution"
@@ -62166,6 +63291,10 @@ function (_super) {
62166
63291
  });
62167
63292
  };
62168
63293
 
63294
+ InterfaceSettings.prototype.onCurrentId = function (id) {
63295
+ this.currentId = id;
63296
+ };
63297
+
62169
63298
  var _a, _b;
62170
63299
 
62171
63300
  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);
@@ -62197,7 +63326,8 @@ function (_super) {
62197
63326
  security: project_detail_security_setting,
62198
63327
  "pre-execution": project_detail_pre_execution_setting,
62199
63328
  "after-execution-transfer": project_detail_after_execution_transfer,
62200
- "after-execution-script": after_execution_script
63329
+ "after-execution-script": after_execution_script,
63330
+ "v2security": project_detail_security_setting_v2
62201
63331
  }
62202
63332
  })], InterfaceSettings);
62203
63333
  return InterfaceSettings;
@@ -63320,6 +64450,7 @@ var project_detail_generator = undefined && undefined.__generator || function (t
63320
64450
 
63321
64451
 
63322
64452
 
64453
+
63323
64454
  var project_detail_ProjectDetail =
63324
64455
  /** @class */
63325
64456
  function (_super) {
@@ -63333,6 +64464,7 @@ function (_super) {
63333
64464
  _this.lengthwise = true;
63334
64465
  _this.showGlobalModal = false;
63335
64466
  _this.showCurrentModal = false;
64467
+ _this.showSecurity = false;
63336
64468
  _this.projectId = "";
63337
64469
  _this.projectName = "";
63338
64470
  _this.split = "340px";
@@ -63506,6 +64638,10 @@ function (_super) {
63506
64638
  this.lengthwise = !this.lengthwise;
63507
64639
  };
63508
64640
 
64641
+ ProjectDetail.prototype.onSecurity = function () {
64642
+ this.showSecurity = true;
64643
+ };
64644
+
63509
64645
  ProjectDetail.prototype.onOpenGlobalModal = function () {
63510
64646
  this.showGlobalModal = true;
63511
64647
  };
@@ -63563,7 +64699,8 @@ function (_super) {
63563
64699
  "u-global-modal": project_detail_global_variable_modal,
63564
64700
  "u-current-modal": project_detail_current_variable_modal,
63565
64701
  Swiper: vue_awesome_swiper["Swiper"],
63566
- SwiperSlide: vue_awesome_swiper["SwiperSlide"]
64702
+ SwiperSlide: vue_awesome_swiper["SwiperSlide"],
64703
+ "u-security-modal": project_detail_security_modal
63567
64704
  },
63568
64705
  directives: {
63569
64706
  swiper: vue_awesome_swiper["directive"]