@egova/egova-api 1.0.161 → 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.
@@ -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>\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"
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\">\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"
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":
@@ -46969,7 +47011,7 @@ $({ target: 'Object', stat: true, forced: Object.assign !== assign }, {
46969
47011
  /***/ "ccf6":
46970
47012
  /***/ (function(module, exports) {
46971
47013
 
46972
- module.exports = "<!DOCTYPE html>\r\n<article class=\"v-api-combine-wrapper\">\r\n <i-split v-model=\"split\" min=\"200px\" max=\"1100px\">\r\n <!-- 左侧内容 -->\r\n <section slot=\"left\" class=\"left-split-pane\">\r\n <u-type-tree :initSelectItem=\"initNode\" @on-import-success=\"onQuery\" @on-select=\"onNodeSelect\" @on-tree-data=\"onTreeData\"> </u-type-tree>\r\n </section>\r\n <!-- 分割线 -->\r\n <section class=\"trigger\" slot=\"trigger\"></section>\r\n <!-- 右侧内容 -->\r\n <section slot=\"right\" class=\"right-split-pane\">\r\n <section class=\"search-wrapper\">\r\n <i-form class=\"diy-search-form\" ref=\"searchForm\" :model=\"formData\" label-position=\"left\" label-colon>\r\n <i-form-item label=\"名称\" prop=\"name\">\r\n <i-input class=\"diy-input\" v-model=\"formData.name\"></i-input>\r\n </i-form-item>\r\n <i-form-item label=\"编码\" prop=\"code\">\r\n <i-input class=\"diy-input\" v-model=\"formData.code\"></i-input>\r\n </i-form-item>\r\n </i-form>\r\n <div class=\"btns\">\r\n <i-button class=\"diy-btn-primary\" type=\"primary\" @click=\"onQuery\">查询</i-button>\r\n <i-button class=\"diy-btn-default\" @click=\"onReset\">重置</i-button>\r\n </div>\r\n </section>\r\n <section class=\"actions-wrapper\">\r\n <div class=\"action-item action-text\" @click=\"onAdd()\" :class=\"currentNode.id === 'virtual_root_directory' ? 'icon-button-disabled' : ''\">\r\n <i class=\"iconfont icon-add\"></i>\r\n <div>新增</div>\r\n </div>\r\n <div class=\"action-item action-text\" :class=\"selection.length ? '' : 'icon-button-disabled'\" @click=\"onBatchDelete\">\r\n <i class=\"iconfont icon-delete\"></i>\r\n <span>批量删除</span>\r\n </div>\r\n </section>\r\n <section class=\"main-wrapper\">\r\n <i-table class=\"diy-table\" :columns=\"columns\" :data=\"list\" @on-selection-change=\"onSelectChange\">\r\n <template slot=\"status\" slot-scope=\"{row,index}\">\r\n <i-switch class=\"diy-switch\" :value=\"row.status==='PUBLISHED'\" @on-change=\"onStatusChange($event, row, index)\"></i-switch>\r\n <span>{{row.status===\"PUBLISHED\" ? \"已发布\" : \"未发布\"}}</span>\r\n </template>\r\n <template slot=\"doc\" slot-scope=\"{row}\">\r\n <a @click=\"onOpenDoc(row)\">查看</a>\r\n </template>\r\n <template #operates=\"{row,index}\">\r\n <div class=\"row-actions\">\r\n <i @click.stop=\"onDetail(row)\" title=\"查看\" class=\"iconfont icon-detail\"></i>\r\n <i @click.stop=\"onCopy(row)\" title=\"复制\" class=\"iconfont icon-fuzhi\"> </i>\r\n <template v-if=\"row.status!=='PUBLISHED'\">\r\n <i @click.stop=\"onEdit(row)\" title=\"编辑\" class=\"iconfont icon-edit\"></i>\r\n <i-poptip confirm transfer title=\"确认要删除这条数据吗?\" @on-ok=\"onDelete(row)\">\r\n <i title=\"删除\" class=\"iconfont icon-delete\"></i>\r\n </i-poptip>\r\n </template>\r\n </div>\r\n </template>\r\n </i-table>\r\n <i-page\r\n class=\"diy-page\"\r\n show-total\r\n show-sizer\r\n show-elevator\r\n :total=\"paging.totalCount\"\r\n :current=\"paging.pageIndex\"\r\n :page-size=\"paging.pageSize\"\r\n @on-change=\"onPageIndexChange\"\r\n @on-page-size-change=\"onPageSizeChange\"\r\n ></i-page>\r\n </section>\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 <u-data-model-doc v-model=\"docShow\" :doc=\"doc\"></u-data-model-doc>\r\n <i-modal draggable sticky reset-drag-position v-model=\"showCopyModal\" class=\"diy-modal combine-copy-modal\" :mask-closable=\"false\" title=\"复制接口\">\r\n <i-form :label-width=\"100\" class=\"diy-form\" v-model=\"copyData\" label-colon>\r\n <i-form-item label=\"接口名称\" required>\r\n <i-input class=\"diy-input\" v-model=\"copyData.name\"></i-input>\r\n </i-form-item>\r\n <i-form-item label=\"接口编码\" required>\r\n <i-input class=\"diy-input\" v-model=\"copyData.code\"></i-input>\r\n </i-form-item>\r\n <i-form-item label=\"选择分组\" required>\r\n <u-tree-selector :treeData=\"treeData\" leaf-name=\"copy\" :canChooseFolder=\"true\" v-model=\"categoryData.id\" @on-select=\"selectCategory\"> </u-tree-selector>\r\n </i-form-item>\r\n </i-form>\r\n <footer slot=\"footer\">\r\n <i-button class=\"diy-btn-primary\" type=\"primary\" @click=\"onCopyConfirm\">确定</i-button>\r\n <i-button class=\"diy-btn-default\" @click=\"onCopyCancel\">取消</i-button>\r\n </footer>\r\n </i-modal>\r\n</article>\r\n"
47014
+ module.exports = "<!DOCTYPE html>\r\n<article class=\"v-api-combine-wrapper\">\r\n <i-split v-model=\"split\" min=\"200px\" max=\"1100px\">\r\n <!-- 左侧内容 -->\r\n <section slot=\"left\" class=\"left-split-pane\">\r\n <u-type-tree :taskCategoryID=\"taskCategoryID\" :initSelectItem=\"initNode\" @on-import-success=\"onQuery\" @on-select=\"onNodeSelect\" @on-tree-data=\"onTreeData\"> </u-type-tree>\r\n </section>\r\n <!-- 分割线 -->\r\n <section class=\"trigger\" slot=\"trigger\"></section>\r\n <!-- 右侧内容 -->\r\n <section slot=\"right\" class=\"right-split-pane\">\r\n <section class=\"search-wrapper\">\r\n <i-form class=\"diy-search-form\" ref=\"searchForm\" :model=\"formData\" label-position=\"left\" label-colon>\r\n <i-form-item label=\"名称\" prop=\"name\">\r\n <i-input class=\"diy-input\" v-model=\"formData.name\"></i-input>\r\n </i-form-item>\r\n <i-form-item label=\"编码\" prop=\"code\">\r\n <i-input class=\"diy-input\" v-model=\"formData.code\"></i-input>\r\n </i-form-item>\r\n </i-form>\r\n <div class=\"btns\">\r\n <i-button class=\"diy-btn-primary\" type=\"primary\" @click=\"onQuery\">查询</i-button>\r\n <i-button class=\"diy-btn-default\" @click=\"onReset\">重置</i-button>\r\n </div>\r\n </section>\r\n <section class=\"actions-wrapper\">\r\n <div class=\"action-item action-text\" @click=\"onAdd()\" :class=\"currentNode.id === 'virtual_root_directory' ? 'icon-button-disabled' : ''\">\r\n <i class=\"iconfont icon-add\"></i>\r\n <div>新增</div>\r\n </div>\r\n <div class=\"action-item action-text\" :class=\"selection.length ? '' : 'icon-button-disabled'\" @click=\"onBatchDelete\">\r\n <i class=\"iconfont icon-delete\"></i>\r\n <span>批量删除</span>\r\n </div>\r\n </section>\r\n <section class=\"main-wrapper\">\r\n <i-table class=\"diy-table\" :columns=\"columns\" :data=\"list\" @on-selection-change=\"onSelectChange\" @on-row-click=\"onRowClick\">\r\n <template slot=\"status\" slot-scope=\"{row,index}\">\r\n <i-switch class=\"diy-switch\" :value=\"row.status==='PUBLISHED'\" @on-change=\"onStatusChange($event, row, index)\"></i-switch>\r\n <span>{{row.status===\"PUBLISHED\" ? \"已发布\" : \"未发布\"}}</span>\r\n </template>\r\n <template slot=\"doc\" slot-scope=\"{row}\">\r\n <a @click=\"onOpenDoc(row)\">查看</a>\r\n </template>\r\n <template #operates=\"{row,index}\">\r\n <div class=\"row-actions\">\r\n <i @click.stop=\"onDetail(row)\" title=\"查看\" class=\"iconfont icon-detail\"></i>\r\n <i @click.stop=\"onCopy(row)\" title=\"复制\" class=\"iconfont icon-fuzhi\"> </i>\r\n <template v-if=\"row.status!=='PUBLISHED'\">\r\n <i @click.stop=\"onEdit(row)\" title=\"编辑\" class=\"iconfont icon-edit\"></i>\r\n <i-poptip confirm transfer title=\"确认要删除这条数据吗?\" @on-ok=\"onDelete(row)\">\r\n <i title=\"删除\" class=\"iconfont icon-delete\"></i>\r\n </i-poptip>\r\n </template>\r\n </div>\r\n </template>\r\n </i-table>\r\n <i-page\r\n class=\"diy-page\"\r\n show-total\r\n show-sizer\r\n show-elevator\r\n :total=\"paging.totalCount\"\r\n :current=\"paging.pageIndex\"\r\n :page-size=\"paging.pageSize\"\r\n @on-change=\"onPageIndexChange\"\r\n @on-page-size-change=\"onPageSizeChange\"\r\n ></i-page>\r\n </section>\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 <u-data-model-doc v-model=\"docShow\" :doc=\"doc\"></u-data-model-doc>\r\n <i-modal draggable sticky reset-drag-position v-model=\"showCopyModal\" class=\"diy-modal combine-copy-modal\" :mask-closable=\"false\" title=\"复制接口\">\r\n <i-form :label-width=\"100\" class=\"diy-form\" v-model=\"copyData\" label-colon>\r\n <i-form-item label=\"接口名称\" required>\r\n <i-input class=\"diy-input\" v-model=\"copyData.name\"></i-input>\r\n </i-form-item>\r\n <i-form-item label=\"接口编码\" required>\r\n <i-input class=\"diy-input\" v-model=\"copyData.code\"></i-input>\r\n </i-form-item>\r\n <i-form-item label=\"选择分组\" required>\r\n <u-tree-selector :treeData=\"treeData\" leaf-name=\"copy\" :canChooseFolder=\"true\" v-model=\"categoryData.id\" @on-select=\"selectCategory\"> </u-tree-selector>\r\n </i-form-item>\r\n </i-form>\r\n <footer slot=\"footer\">\r\n <i-button class=\"diy-btn-primary\" type=\"primary\" @click=\"onCopyConfirm\">确定</i-button>\r\n <i-button class=\"diy-btn-default\" @click=\"onCopyCancel\">取消</i-button>\r\n </footer>\r\n </i-modal>\r\n</article>\r\n"
46973
47015
 
46974
47016
  /***/ }),
46975
47017
 
@@ -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-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"
48568
48610
 
48569
48611
  /***/ }),
48570
48612
 
@@ -49235,6 +49277,35 @@ function () {
49235
49277
  }
49236
49278
 
49237
49279
  return "";
49280
+ }; // 查找当前目录节点的所有父节点id数据
49281
+
49282
+
49283
+ TreeDataUtil.treeNodeFatherArray = function (treeList, id) {
49284
+ if (treeList === void 0) {
49285
+ treeList = [];
49286
+ }
49287
+
49288
+ var arr = [];
49289
+
49290
+ for (var _i = 0, treeList_2 = treeList; _i < treeList_2.length; _i++) {
49291
+ var node = treeList_2[_i];
49292
+
49293
+ if (node.id === id) {
49294
+ arr.push(node);
49295
+ return arr;
49296
+ }
49297
+
49298
+ if (node.children && node.children.length) {
49299
+ arr = TreeDataUtil.treeNodeFatherArray(node.children, id);
49300
+
49301
+ if (arr.length > 0) {
49302
+ arr.unshift(node);
49303
+ return arr;
49304
+ }
49305
+ }
49306
+ }
49307
+
49308
+ return [];
49238
49309
  };
49239
49310
 
49240
49311
  return TreeDataUtil;
@@ -51687,6 +51758,7 @@ var tree_generator = undefined && undefined.__generator || function (thisArg, bo
51687
51758
 
51688
51759
 
51689
51760
 
51761
+
51690
51762
  var tree_Tree =
51691
51763
  /** @class */
51692
51764
  function (_super) {
@@ -51710,21 +51782,21 @@ function (_super) {
51710
51782
  _this.columns = [{
51711
51783
  type: "index",
51712
51784
  title: "序号",
51713
- align: "center",
51785
+ align: "left",
51714
51786
  width: 80
51715
51787
  }, {
51716
51788
  title: "名称",
51717
- align: "center",
51789
+ align: "left",
51718
51790
  key: "name",
51719
51791
  tooltip: true
51720
51792
  }, {
51721
51793
  title: "编码",
51722
- align: "center",
51794
+ align: "left",
51723
51795
  key: "code",
51724
51796
  tooltip: true
51725
51797
  }, {
51726
51798
  title: "说明",
51727
- align: "center",
51799
+ align: "left",
51728
51800
  key: "remark",
51729
51801
  tooltip: true
51730
51802
  }];
@@ -51975,9 +52047,13 @@ function (_super) {
51975
52047
  }
51976
52048
  };
51977
52049
 
51978
- Tree.prototype.onSelect = function (data) {
52050
+ Tree.prototype.onSelect = function (data, isQuery) {
52051
+ if (isQuery === void 0) {
52052
+ isQuery = true;
52053
+ }
52054
+
51979
52055
  this.selectItem = data;
51980
- this.$emit("on-select", this.selectItem);
52056
+ this.$emit("on-select", this.selectItem, isQuery);
51981
52057
  };
51982
52058
 
51983
52059
  Tree.prototype.initSelectItemChange = function () {
@@ -51988,6 +52064,37 @@ function (_super) {
51988
52064
  }
51989
52065
  };
51990
52066
 
52067
+ Tree.prototype.watchTaskID = function (nv) {
52068
+ if (nv) {
52069
+ var arr = TreeDataUtil.treeNodeFatherArray(this.data, nv);
52070
+
52071
+ if (arr.length > 0) {
52072
+ for (var i = 0; i < arr.length; i++) {
52073
+ if (i === arr.length - 1) {
52074
+ this.onSelect(arr[i], false);
52075
+ } else {
52076
+ arr[i].expand = true;
52077
+ this.onToggleExpand(arr[i]);
52078
+ }
52079
+ }
52080
+ }
52081
+
52082
+ this.$nextTick(function () {
52083
+ clearTimeout();
52084
+ var element = document.getElementsByClassName("ivu-tree-title-selected");
52085
+
52086
+ if (element.length) {
52087
+ setTimeout(function () {
52088
+ element[0].scrollIntoView({
52089
+ behavior: "smooth",
52090
+ block: "center"
52091
+ });
52092
+ }, 200);
52093
+ }
52094
+ });
52095
+ }
52096
+ };
52097
+
51991
52098
  Tree.prototype.onAddTreeNode = function () {
51992
52099
  this.tempNode = {
51993
52100
  name: "",
@@ -52167,10 +52274,18 @@ function (_super) {
52167
52274
 
52168
52275
  tree_decorate([autowired(tree_service), tree_metadata("design:type", typeof (_a = typeof tree_service !== "undefined" && tree_service) === "function" ? _a : Object)], Tree.prototype, "service", void 0);
52169
52276
 
52277
+ tree_decorate([Object(flagwind_web_["config"])({
52278
+ default: ""
52279
+ }), tree_metadata("design:type", String)], Tree.prototype, "taskCategoryID", void 0);
52280
+
52170
52281
  tree_decorate([Object(flagwind_web_["watch"])("initSelectItem", {
52171
52282
  immediate: true
52172
52283
  }), tree_metadata("design:type", Function), tree_metadata("design:paramtypes", []), tree_metadata("design:returntype", void 0)], Tree.prototype, "initSelectItemChange", null);
52173
52284
 
52285
+ tree_decorate([Object(flagwind_web_["watch"])("taskCategoryID", {
52286
+ immediate: false
52287
+ }), tree_metadata("design:type", Function), tree_metadata("design:paramtypes", [String]), tree_metadata("design:returntype", void 0)], Tree.prototype, "watchTaskID", null);
52288
+
52174
52289
  Tree = tree_decorate([Object(flagwind_web_["component"])({
52175
52290
  template: __webpack_require__("46d3"),
52176
52291
  components: {
@@ -52566,39 +52681,39 @@ function (_super) {
52566
52681
  }, {
52567
52682
  title: "名称",
52568
52683
  key: "name",
52569
- align: "center",
52684
+ align: "left",
52570
52685
  class: "STRING",
52571
52686
  ellipsis: true,
52572
52687
  tooltip: true
52573
52688
  }, {
52574
52689
  title: "编码",
52575
52690
  key: "code",
52576
- align: "center",
52691
+ align: "left",
52577
52692
  class: "STRING",
52578
52693
  ellipsis: true,
52579
52694
  tooltip: true
52580
52695
  }, {
52581
52696
  title: "描述",
52582
52697
  key: "description",
52583
- align: "center",
52698
+ align: "left",
52584
52699
  class: "STRING",
52585
52700
  ellipsis: true,
52586
52701
  tooltip: true
52587
52702
  }, {
52588
52703
  title: "发布状态",
52589
- align: "center",
52704
+ align: "left",
52590
52705
  slot: "status",
52591
52706
  width: 135
52592
52707
  }, {
52593
52708
  title: "接口文档",
52594
- align: "center",
52709
+ align: "left",
52595
52710
  slot: "doc",
52596
52711
  width: 100
52597
52712
  }, {
52598
52713
  title: "操作",
52599
- align: "center",
52714
+ align: "left",
52600
52715
  slot: "operates",
52601
- width: 100
52716
+ width: 150
52602
52717
  }];
52603
52718
  _this.paging = {
52604
52719
  pageIndex: 1,
@@ -52613,6 +52728,7 @@ function (_super) {
52613
52728
  name: undefined,
52614
52729
  code: undefined
52615
52730
  };
52731
+ _this.taskCategoryID = "";
52616
52732
  return _this;
52617
52733
  }
52618
52734
 
@@ -52634,9 +52750,12 @@ function (_super) {
52634
52750
  }
52635
52751
  };
52636
52752
 
52637
- ProjectCombineManage.prototype.onNodeSelect = function (node) {
52638
- this.currentNode = node;
52639
- this.onQuery();
52753
+ ProjectCombineManage.prototype.onNodeSelect = function (node, isQuery) {
52754
+ if (isQuery) {
52755
+ this.taskCategoryID = "";
52756
+ this.currentNode = node;
52757
+ this.onQuery();
52758
+ }
52640
52759
  };
52641
52760
 
52642
52761
  ProjectCombineManage.prototype.onReset = function () {
@@ -52985,6 +53104,12 @@ function (_super) {
52985
53104
  }
52986
53105
  };
52987
53106
 
53107
+ ProjectCombineManage.prototype.onRowClick = function (row, index) {
53108
+ if (this.currentNode.id === "virtual_root_directory") {
53109
+ this.taskCategoryID = row.categoryId;
53110
+ }
53111
+ };
53112
+
52988
53113
  var _a;
52989
53114
 
52990
53115
  project_combine_decorate([autowired(project_combine_service), project_combine_metadata("design:type", typeof (_a = typeof project_combine_service !== "undefined" && project_combine_service) === "function" ? _a : Object)], ProjectCombineManage.prototype, "service", void 0);
@@ -53552,31 +53677,31 @@ function (_super) {
53552
53677
  width: 60
53553
53678
  }, {
53554
53679
  title: "名称",
53555
- align: "center",
53680
+ align: "left",
53556
53681
  key: "name"
53557
53682
  }, {
53558
53683
  title: "编码",
53559
- align: "center",
53684
+ align: "left",
53560
53685
  key: "code"
53561
53686
  }, {
53562
53687
  title: "数据源",
53563
- align: "center",
53688
+ align: "left",
53564
53689
  key: "sourceName"
53565
53690
  }, {
53566
53691
  title: "是否开启缓存",
53567
- align: "center",
53692
+ align: "left",
53568
53693
  slot: "enableCache"
53569
53694
  }, {
53570
53695
  title: "过期时间(s)",
53571
- align: "center",
53696
+ align: "left",
53572
53697
  key: "expireSeconds"
53573
53698
  }, {
53574
53699
  title: "描述",
53575
- align: "center",
53700
+ align: "left",
53576
53701
  key: "description"
53577
53702
  }, {
53578
53703
  title: "接口文档",
53579
- align: "center",
53704
+ align: "left",
53580
53705
  slot: "doc",
53581
53706
  width: 100
53582
53707
  }]; // 查看文档
@@ -53959,21 +54084,21 @@ function (_super) {
53959
54084
 
53960
54085
  _this.columns = [{
53961
54086
  title: "编码",
53962
- align: "center",
54087
+ align: "left",
53963
54088
  key: "code",
53964
54089
  class: "STRING",
53965
54090
  ellipsis: true,
53966
54091
  tooltip: true
53967
54092
  }, {
53968
54093
  title: "名称",
53969
- align: "center",
54094
+ align: "left",
53970
54095
  key: "name",
53971
54096
  class: "STRING",
53972
54097
  ellipsis: true,
53973
54098
  tooltip: true
53974
54099
  }, {
53975
54100
  title: "描述",
53976
- align: "center",
54101
+ align: "left",
53977
54102
  key: "description",
53978
54103
  class: "STRING",
53979
54104
  ellipsis: true,
@@ -53982,7 +54107,7 @@ function (_super) {
53982
54107
  title: "操作",
53983
54108
  key: "operates",
53984
54109
  slot: "operates",
53985
- align: "center",
54110
+ align: "left",
53986
54111
  width: 80
53987
54112
  }];
53988
54113
  return _this;
@@ -55023,7 +55148,7 @@ function (_super) {
55023
55148
  width: 60
55024
55149
  }, {
55025
55150
  title: "名称",
55026
- align: "center",
55151
+ align: "left",
55027
55152
  key: "name",
55028
55153
  class: "STRING",
55029
55154
  ellipsis: true,
@@ -55031,14 +55156,14 @@ function (_super) {
55031
55156
  width: 300
55032
55157
  }, {
55033
55158
  title: "地址",
55034
- align: "center",
55159
+ align: "left",
55035
55160
  key: "url",
55036
55161
  class: "STRING",
55037
55162
  ellipsis: true,
55038
55163
  tooltip: true
55039
55164
  }, {
55040
55165
  title: "查看详情",
55041
- align: "center",
55166
+ align: "left",
55042
55167
  slot: "detail",
55043
55168
  width: 100
55044
55169
  }]; // 查看文档
@@ -55421,7 +55546,7 @@ function (_super) {
55421
55546
 
55422
55547
  _this.columns = [{
55423
55548
  title: "名称",
55424
- align: "center",
55549
+ align: "left",
55425
55550
  key: "name",
55426
55551
  class: "STRING",
55427
55552
  ellipsis: true,
@@ -55429,7 +55554,7 @@ function (_super) {
55429
55554
  width: 300
55430
55555
  }, {
55431
55556
  title: "地址",
55432
- align: "center",
55557
+ align: "left",
55433
55558
  key: "url",
55434
55559
  class: "STRING",
55435
55560
  ellipsis: true,
@@ -55438,7 +55563,7 @@ function (_super) {
55438
55563
  title: "操作",
55439
55564
  key: "operates",
55440
55565
  slot: "operates",
55441
- align: "center",
55566
+ align: "left",
55442
55567
  width: 80
55443
55568
  }];
55444
55569
  return _this;
@@ -55926,14 +56051,14 @@ function (_super) {
55926
56051
  width: 60
55927
56052
  }, {
55928
56053
  title: "参数名",
55929
- align: "center",
56054
+ align: "left",
55930
56055
  slot: "name",
55931
56056
  class: "STRING",
55932
56057
  ellipsis: true,
55933
56058
  tooltip: true
55934
56059
  }, {
55935
56060
  title: "类型",
55936
- align: "center",
56061
+ align: "left",
55937
56062
  slot: "type",
55938
56063
  width: 130,
55939
56064
  class: "STRING",
@@ -55941,26 +56066,26 @@ function (_super) {
55941
56066
  tooltip: true
55942
56067
  }, {
55943
56068
  title: "是否必传",
55944
- align: "center",
56069
+ align: "left",
55945
56070
  slot: "required",
55946
56071
  width: 120
55947
56072
  }, {
55948
56073
  title: "默认值",
55949
- align: "center",
56074
+ align: "left",
55950
56075
  slot: "defaultValue",
55951
56076
  class: "STRING",
55952
56077
  ellipsis: true,
55953
56078
  tooltip: true
55954
56079
  }, {
55955
56080
  title: "描述",
55956
- align: "center",
56081
+ align: "left",
55957
56082
  slot: "description",
55958
56083
  class: "STRING",
55959
56084
  ellipsis: true,
55960
56085
  tooltip: true
55961
56086
  }, {
55962
56087
  title: "操作",
55963
- align: "center",
56088
+ align: "left",
55964
56089
  slot: "actions"
55965
56090
  }];
55966
56091
  _this.typeList = [];
@@ -56145,21 +56270,21 @@ function (_super) {
56145
56270
  width: 60
56146
56271
  }, {
56147
56272
  title: "参数名",
56148
- align: "center",
56273
+ align: "left",
56149
56274
  slot: "name",
56150
56275
  class: "STRING",
56151
56276
  ellipsis: true,
56152
56277
  tooltip: true
56153
56278
  }, {
56154
56279
  title: "类型",
56155
- align: "center",
56280
+ align: "left",
56156
56281
  slot: "type",
56157
56282
  class: "STRING",
56158
56283
  ellipsis: true,
56159
56284
  tooltip: true
56160
56285
  }, {
56161
56286
  title: "操作",
56162
- align: "center",
56287
+ align: "left",
56163
56288
  slot: "actions"
56164
56289
  }];
56165
56290
  return _this;
@@ -56638,20 +56763,20 @@ function (_super) {
56638
56763
  };
56639
56764
  _this.relationColumns = [{
56640
56765
  title: "类型",
56641
- align: "center",
56766
+ align: "left",
56642
56767
  key: "type",
56643
56768
  slot: "type",
56644
56769
  width: 280
56645
56770
  }, {
56646
56771
  title: "名称",
56647
- align: "center",
56772
+ align: "left",
56648
56773
  key: "name",
56649
56774
  class: "STRING",
56650
56775
  ellipsis: true,
56651
56776
  tooltip: true
56652
56777
  }, {
56653
56778
  title: "编码或地址",
56654
- align: "center",
56779
+ align: "left",
56655
56780
  key: "typeCode",
56656
56781
  class: "STRING",
56657
56782
  ellipsis: true,
@@ -56660,7 +56785,7 @@ function (_super) {
56660
56785
  title: "操作",
56661
56786
  key: "operates",
56662
56787
  slot: "operates",
56663
- align: "center",
56788
+ align: "left",
56664
56789
  width: 100
56665
56790
  }];
56666
56791
  _this.testShow = false;
@@ -58139,6 +58264,7 @@ function () {
58139
58264
  this.content = "";
58140
58265
  this.location = "";
58141
58266
  this.locationKey = "";
58267
+ this.id = "";
58142
58268
  }
58143
58269
 
58144
58270
  return Authentication;
@@ -58349,6 +58475,22 @@ function (_super) {
58349
58475
  return this._get("/unity/api/project/".concat(id));
58350
58476
  };
58351
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
+
58352
58494
  var _a, _b;
58353
58495
 
58354
58496
  project_detail_service_decorate([serviceHandler("query", {
@@ -58415,6 +58557,28 @@ function (_super) {
58415
58557
  title: "项目详情"
58416
58558
  }), 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);
58417
58559
 
58560
+ project_detail_service_decorate([serviceHandler("query", {
58561
+ title: "授权认证列表查询"
58562
+ }), 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);
58563
+
58564
+ project_detail_service_decorate([serviceHandler("save", {
58565
+ title: "删除授权认证",
58566
+ showTip: true,
58567
+ showErrorMsg: true
58568
+ }), 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);
58569
+
58570
+ project_detail_service_decorate([serviceHandler("save", {
58571
+ title: "新增授权认证",
58572
+ showTip: true,
58573
+ showErrorMsg: true
58574
+ }), 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);
58575
+
58576
+ project_detail_service_decorate([serviceHandler("save", {
58577
+ title: "更新授权认证",
58578
+ showTip: true,
58579
+ showErrorMsg: true
58580
+ }), 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);
58581
+
58418
58582
  return ApiService;
58419
58583
  }(common_service);
58420
58584
 
@@ -60456,7 +60620,7 @@ function (_super) {
60456
60620
  }, {
60457
60621
  title: "操作",
60458
60622
  width: 80,
60459
- align: "center",
60623
+ align: "left",
60460
60624
  slot: "action"
60461
60625
  }];
60462
60626
  _this.valueTypeList = [];
@@ -61627,30 +61791,117 @@ function (_super) {
61627
61791
  // EXTERNAL MODULE: ./src/views/project-detail/interface-settings/index.scss
61628
61792
  var interface_settings = __webpack_require__("2a79");
61629
61793
 
61630
- // CONCATENATED MODULE: ./src/views/project-detail/interface-settings/index.ts
61794
+ // EXTERNAL MODULE: ./src/views/project-detail/security-setting-v2/index.scss
61795
+ var security_setting_v2 = __webpack_require__("b156");
61631
61796
 
61797
+ // EXTERNAL MODULE: ./src/views/project-detail/security-setting-v2/tips-form-label/index.scss
61798
+ var security_setting_v2_tips_form_label = __webpack_require__("61ef");
61632
61799
 
61800
+ // CONCATENATED MODULE: ./src/views/project-detail/security-setting-v2/tips-form-label/index.ts
61633
61801
 
61634
61802
 
61635
61803
 
61636
61804
 
61637
61805
 
61638
61806
 
61807
+ var security_setting_v2_tips_form_label_extends = undefined && undefined.__extends || function () {
61808
+ var _extendStatics = function extendStatics(d, b) {
61809
+ _extendStatics = Object.setPrototypeOf || {
61810
+ __proto__: []
61811
+ } instanceof Array && function (d, b) {
61812
+ d.__proto__ = b;
61813
+ } || function (d, b) {
61814
+ for (var p in b) {
61815
+ if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
61816
+ }
61817
+ };
61818
+
61819
+ return _extendStatics(d, b);
61820
+ };
61639
61821
 
61822
+ return function (d, b) {
61823
+ if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
61640
61824
 
61825
+ _extendStatics(d, b);
61641
61826
 
61827
+ function __() {
61828
+ this.constructor = d;
61829
+ }
61642
61830
 
61831
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
61832
+ };
61833
+ }();
61643
61834
 
61835
+ var security_setting_v2_tips_form_label_decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
61836
+ var c = arguments.length,
61837
+ r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
61838
+ d;
61839
+ 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--) {
61840
+ if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
61841
+ }
61842
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
61843
+ };
61644
61844
 
61845
+ var security_setting_v2_tips_form_label_metadata = undefined && undefined.__metadata || function (k, v) {
61846
+ if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
61847
+ };
61645
61848
 
61646
61849
 
61647
61850
 
61648
61851
 
61852
+ var security_setting_v2_tips_form_label_TipsFormLabel =
61853
+ /** @class */
61854
+ function (_super) {
61855
+ security_setting_v2_tips_form_label_extends(TipsFormLabel, _super);
61649
61856
 
61857
+ function TipsFormLabel() {
61858
+ return _super !== null && _super.apply(this, arguments) || this;
61859
+ }
61650
61860
 
61861
+ security_setting_v2_tips_form_label_decorate([Object(flagwind_web_["config"])({
61862
+ default: ""
61863
+ }), security_setting_v2_tips_form_label_metadata("design:type", String)], TipsFormLabel.prototype, "tips", void 0);
61651
61864
 
61865
+ security_setting_v2_tips_form_label_decorate([Object(flagwind_web_["config"])({
61866
+ default: ""
61867
+ }), security_setting_v2_tips_form_label_metadata("design:type", String)], TipsFormLabel.prototype, "labelTitle", void 0);
61652
61868
 
61653
- var interface_settings_extends = undefined && undefined.__extends || function () {
61869
+ security_setting_v2_tips_form_label_decorate([Object(flagwind_web_["config"])({
61870
+ type: Boolean,
61871
+ default: false
61872
+ }), security_setting_v2_tips_form_label_metadata("design:type", Boolean)], TipsFormLabel.prototype, "labelColon", void 0);
61873
+
61874
+ TipsFormLabel = security_setting_v2_tips_form_label_decorate([Object(flagwind_web_["component"])({
61875
+ template: __webpack_require__("2f53")
61876
+ })], TipsFormLabel);
61877
+ return TipsFormLabel;
61878
+ }(flagwind_web_["Component"]);
61879
+
61880
+ /* harmony default export */ var project_detail_security_setting_v2_tips_form_label = (security_setting_v2_tips_form_label_TipsFormLabel);
61881
+ // EXTERNAL MODULE: ./src/views/project-detail/security-modal/index.scss
61882
+ var security_modal = __webpack_require__("1a93");
61883
+
61884
+ // CONCATENATED MODULE: ./src/views/project-detail/security-modal/index.ts
61885
+
61886
+
61887
+
61888
+
61889
+
61890
+
61891
+
61892
+
61893
+
61894
+
61895
+
61896
+
61897
+
61898
+
61899
+
61900
+
61901
+
61902
+
61903
+
61904
+ var security_modal_extends = undefined && undefined.__extends || function () {
61654
61905
  var _extendStatics = function extendStatics(d, b) {
61655
61906
  _extendStatics = Object.setPrototypeOf || {
61656
61907
  __proto__: []
@@ -61678,8 +61929,8 @@ var interface_settings_extends = undefined && undefined.__extends || function ()
61678
61929
  };
61679
61930
  }();
61680
61931
 
61681
- var interface_settings_assign = undefined && undefined.__assign || function () {
61682
- interface_settings_assign = Object.assign || function (t) {
61932
+ var security_modal_assign = undefined && undefined.__assign || function () {
61933
+ security_modal_assign = Object.assign || function (t) {
61683
61934
  for (var s, i = 1, n = arguments.length; i < n; i++) {
61684
61935
  s = arguments[i];
61685
61936
 
@@ -61691,10 +61942,10 @@ var interface_settings_assign = undefined && undefined.__assign || function () {
61691
61942
  return t;
61692
61943
  };
61693
61944
 
61694
- return interface_settings_assign.apply(this, arguments);
61945
+ return security_modal_assign.apply(this, arguments);
61695
61946
  };
61696
61947
 
61697
- var interface_settings_decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
61948
+ var security_modal_decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
61698
61949
  var c = arguments.length,
61699
61950
  r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
61700
61951
  d;
@@ -61704,11 +61955,962 @@ var interface_settings_decorate = undefined && undefined.__decorate || function
61704
61955
  return c > 3 && r && Object.defineProperty(target, key, r), r;
61705
61956
  };
61706
61957
 
61707
- var interface_settings_metadata = undefined && undefined.__metadata || function (k, v) {
61958
+ var security_modal_metadata = undefined && undefined.__metadata || function (k, v) {
61708
61959
  if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
61709
61960
  };
61710
61961
 
61711
- var interface_settings_awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
61962
+ var security_modal_awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
61963
+ function adopt(value) {
61964
+ return value instanceof P ? value : new P(function (resolve) {
61965
+ resolve(value);
61966
+ });
61967
+ }
61968
+
61969
+ return new (P || (P = Promise))(function (resolve, reject) {
61970
+ function fulfilled(value) {
61971
+ try {
61972
+ step(generator.next(value));
61973
+ } catch (e) {
61974
+ reject(e);
61975
+ }
61976
+ }
61977
+
61978
+ function rejected(value) {
61979
+ try {
61980
+ step(generator["throw"](value));
61981
+ } catch (e) {
61982
+ reject(e);
61983
+ }
61984
+ }
61985
+
61986
+ function step(result) {
61987
+ result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
61988
+ }
61989
+
61990
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
61991
+ });
61992
+ };
61993
+
61994
+ var security_modal_generator = undefined && undefined.__generator || function (thisArg, body) {
61995
+ var _ = {
61996
+ label: 0,
61997
+ sent: function sent() {
61998
+ if (t[0] & 1) throw t[1];
61999
+ return t[1];
62000
+ },
62001
+ trys: [],
62002
+ ops: []
62003
+ },
62004
+ f,
62005
+ y,
62006
+ t,
62007
+ g;
62008
+ return g = {
62009
+ next: verb(0),
62010
+ "throw": verb(1),
62011
+ "return": verb(2)
62012
+ }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
62013
+ return this;
62014
+ }), g;
62015
+
62016
+ function verb(n) {
62017
+ return function (v) {
62018
+ return step([n, v]);
62019
+ };
62020
+ }
62021
+
62022
+ function step(op) {
62023
+ if (f) throw new TypeError("Generator is already executing.");
62024
+
62025
+ while (_) {
62026
+ try {
62027
+ 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;
62028
+ if (y = 0, t) op = [op[0] & 2, t.value];
62029
+
62030
+ switch (op[0]) {
62031
+ case 0:
62032
+ case 1:
62033
+ t = op;
62034
+ break;
62035
+
62036
+ case 4:
62037
+ _.label++;
62038
+ return {
62039
+ value: op[1],
62040
+ done: false
62041
+ };
62042
+
62043
+ case 5:
62044
+ _.label++;
62045
+ y = op[1];
62046
+ op = [0];
62047
+ continue;
62048
+
62049
+ case 7:
62050
+ op = _.ops.pop();
62051
+
62052
+ _.trys.pop();
62053
+
62054
+ continue;
62055
+
62056
+ default:
62057
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
62058
+ _ = 0;
62059
+ continue;
62060
+ }
62061
+
62062
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
62063
+ _.label = op[1];
62064
+ break;
62065
+ }
62066
+
62067
+ if (op[0] === 6 && _.label < t[1]) {
62068
+ _.label = t[1];
62069
+ t = op;
62070
+ break;
62071
+ }
62072
+
62073
+ if (t && _.label < t[2]) {
62074
+ _.label = t[2];
62075
+
62076
+ _.ops.push(op);
62077
+
62078
+ break;
62079
+ }
62080
+
62081
+ if (t[2]) _.ops.pop();
62082
+
62083
+ _.trys.pop();
62084
+
62085
+ continue;
62086
+ }
62087
+
62088
+ op = body.call(thisArg, _);
62089
+ } catch (e) {
62090
+ op = [6, e];
62091
+ y = 0;
62092
+ } finally {
62093
+ f = t = 0;
62094
+ }
62095
+ }
62096
+
62097
+ if (op[0] & 5) throw op[1];
62098
+ return {
62099
+ value: op[0] ? op[1] : void 0,
62100
+ done: true
62101
+ };
62102
+ }
62103
+ };
62104
+
62105
+
62106
+
62107
+
62108
+
62109
+
62110
+
62111
+
62112
+ var security_modal_SecurityModalComponent =
62113
+ /** @class */
62114
+ function (_super) {
62115
+ security_modal_extends(SecurityModalComponent, _super);
62116
+
62117
+ function SecurityModalComponent() {
62118
+ var _this = _super !== null && _super.apply(this, arguments) || this;
62119
+
62120
+ _this.securityList = [];
62121
+ _this.keyword = "";
62122
+ _this.currentSecurityItem = {};
62123
+ _this.securityTypeList = [];
62124
+ _this.grantTypeList = [];
62125
+ _this.tokenLocationTypeList = [];
62126
+ _this.isAddOnce = false;
62127
+ _this.exitAddItem = false;
62128
+ _this.onFilter = lodash_debounce_default()(function () {
62129
+ _this.getSecurityList();
62130
+ }, 300);
62131
+ return _this;
62132
+ }
62133
+
62134
+ Object.defineProperty(SecurityModalComponent.prototype, "show", {
62135
+ get: function get() {
62136
+ return this.value;
62137
+ },
62138
+ set: function set(value) {
62139
+ this.$emit("input", value);
62140
+ },
62141
+ enumerable: false,
62142
+ configurable: true
62143
+ });
62144
+
62145
+ SecurityModalComponent.prototype.onShowChange = function (show) {
62146
+ return security_modal_awaiter(this, void 0, void 0, function () {
62147
+ return security_modal_generator(this, function (_a) {
62148
+ if (show) {
62149
+ this.isAddOnce = this.isAdd;
62150
+ this.getSecurityTypeList();
62151
+ this.getSecurityList();
62152
+ this.getTokenLocationTypeList();
62153
+ this.getGrantTypeList(); // this.debounceSearch = debounce(this.getSecurityList(this.keyword), 200);
62154
+ }
62155
+
62156
+ return [2
62157
+ /*return*/
62158
+ ];
62159
+ });
62160
+ });
62161
+ };
62162
+
62163
+ SecurityModalComponent.prototype.getSecurityTypeList = function () {
62164
+ return security_modal_awaiter(this, void 0, void 0, function () {
62165
+ var result, tempList;
62166
+ return security_modal_generator(this, function (_a) {
62167
+ switch (_a.label) {
62168
+ case 0:
62169
+ return [4
62170
+ /*yield*/
62171
+ , this.service.getEnumByType("authenticationType")];
62172
+
62173
+ case 1:
62174
+ result = _a.sent();
62175
+ tempList = (result === null || result === void 0 ? void 0 : result.result) || [];
62176
+ this.securityTypeList = tempList.filter(function (item) {
62177
+ return item.name !== "None";
62178
+ });
62179
+ return [2
62180
+ /*return*/
62181
+ ];
62182
+ }
62183
+ });
62184
+ });
62185
+ };
62186
+
62187
+ SecurityModalComponent.prototype.getTokenLocationTypeList = function () {
62188
+ return security_modal_awaiter(this, void 0, void 0, function () {
62189
+ var result;
62190
+ return security_modal_generator(this, function (_a) {
62191
+ switch (_a.label) {
62192
+ case 0:
62193
+ return [4
62194
+ /*yield*/
62195
+ , this.service.getEnumByType("tokenLocationType")];
62196
+
62197
+ case 1:
62198
+ result = _a.sent();
62199
+ this.tokenLocationTypeList = (result === null || result === void 0 ? void 0 : result.result) || [];
62200
+ return [2
62201
+ /*return*/
62202
+ ];
62203
+ }
62204
+ });
62205
+ });
62206
+ };
62207
+
62208
+ SecurityModalComponent.prototype.getGrantTypeList = function () {
62209
+ return security_modal_awaiter(this, void 0, void 0, function () {
62210
+ var result;
62211
+ return security_modal_generator(this, function (_a) {
62212
+ switch (_a.label) {
62213
+ case 0:
62214
+ return [4
62215
+ /*yield*/
62216
+ , this.service.getEnumByType("grantType")];
62217
+
62218
+ case 1:
62219
+ result = _a.sent();
62220
+ this.grantTypeList = (result === null || result === void 0 ? void 0 : result.result) || [];
62221
+ return [2
62222
+ /*return*/
62223
+ ];
62224
+ }
62225
+ });
62226
+ });
62227
+ };
62228
+
62229
+ SecurityModalComponent.prototype.getSecurityList = function () {
62230
+ return security_modal_awaiter(this, void 0, void 0, function () {
62231
+ var res, tempList;
62232
+ return security_modal_generator(this, function (_a) {
62233
+ switch (_a.label) {
62234
+ case 0:
62235
+ return [4
62236
+ /*yield*/
62237
+ , this.service.getSecurityList({
62238
+ name: this.keyword,
62239
+ projectId: this.projectID
62240
+ })];
62241
+
62242
+ case 1:
62243
+ res = _a.sent();
62244
+
62245
+ if (!(res === null || res === void 0 ? void 0 : res.hasError)) {
62246
+ tempList = res.result || [];
62247
+ this.securityList = tempList.map(function (item) {
62248
+ if (item.type !== "GROOVY_SCRIPT") {
62249
+ item.content = JSON.parse(item.content);
62250
+ } else {
62251
+ item.scriptContent = item.content;
62252
+ item.content = {};
62253
+ }
62254
+
62255
+ return item;
62256
+ });
62257
+
62258
+ if (this.isAddOnce || this.exitAddItem) {
62259
+ this.onAddItem();
62260
+ this.isAddOnce = false;
62261
+ this.exitAddItem = false;
62262
+ }
62263
+ }
62264
+
62265
+ return [2
62266
+ /*return*/
62267
+ ];
62268
+ }
62269
+ });
62270
+ });
62271
+ };
62272
+
62273
+ SecurityModalComponent.prototype.onSelectSecurityItem = function (item) {
62274
+ this.currentSecurityItem = item.$clone();
62275
+ };
62276
+
62277
+ SecurityModalComponent.prototype.onDelete = function (item) {
62278
+ return security_modal_awaiter(this, void 0, void 0, function () {
62279
+ var res;
62280
+ return security_modal_generator(this, function (_a) {
62281
+ switch (_a.label) {
62282
+ case 0:
62283
+ if (!item.id) return [3
62284
+ /*break*/
62285
+ , 2];
62286
+
62287
+ if (this.securityList.find(function (item) {
62288
+ return !item.id;
62289
+ })) {
62290
+ this.exitAddItem = true;
62291
+ }
62292
+
62293
+ return [4
62294
+ /*yield*/
62295
+ , this.service.deleteSecurityItem(item.id)];
62296
+
62297
+ case 1:
62298
+ res = _a.sent();
62299
+
62300
+ if (!(res === null || res === void 0 ? void 0 : res.hasError)) {
62301
+ this.getSecurityList();
62302
+ }
62303
+
62304
+ return [3
62305
+ /*break*/
62306
+ , 3];
62307
+
62308
+ case 2:
62309
+ this.securityList.shift();
62310
+ _a.label = 3;
62311
+
62312
+ case 3:
62313
+ this.currentSecurityItem = {};
62314
+ return [2
62315
+ /*return*/
62316
+ ];
62317
+ }
62318
+ });
62319
+ });
62320
+ };
62321
+
62322
+ SecurityModalComponent.prototype.onAddItem = function () {
62323
+ if (this.securityList.length > 0 && !this.securityList[0].id) {
62324
+ return;
62325
+ }
62326
+
62327
+ var item = {
62328
+ name: "",
62329
+ type: "GROOVY_SCRIPT",
62330
+ content: {},
62331
+ scriptContent: ""
62332
+ };
62333
+ this.securityList.unshift(item);
62334
+ this.currentSecurityItem = this.securityList[0].$clone();
62335
+ };
62336
+
62337
+ SecurityModalComponent.prototype.onCancel = function () {
62338
+ this.show = false;
62339
+ this.keyword = "";
62340
+ this.currentSecurityItem = {};
62341
+ };
62342
+
62343
+ SecurityModalComponent.prototype.onSave = function () {
62344
+ return security_modal_awaiter(this, void 0, void 0, function () {
62345
+ var data, res;
62346
+ return security_modal_generator(this, function (_a) {
62347
+ switch (_a.label) {
62348
+ case 0:
62349
+ data = {
62350
+ projectId: this.projectID,
62351
+ name: this.currentSecurityItem.name,
62352
+ type: this.currentSecurityItem.type
62353
+ };
62354
+
62355
+ if (this.currentSecurityItem.type === "GROOVY_SCRIPT") {
62356
+ data.location = null;
62357
+ data.locationKey = null;
62358
+ data.content = this.currentSecurityItem.scriptContent;
62359
+ } else {
62360
+ data.location = this.currentSecurityItem.location;
62361
+ data.locationKey = this.currentSecurityItem.locationKey;
62362
+ data.content = {};
62363
+
62364
+ if (this.currentSecurityItem.type === "Api_Key") {
62365
+ data.content.key = this.currentSecurityItem.content.key;
62366
+ } else if (this.currentSecurityItem.type === "Base_Auth") {
62367
+ data.content.username = this.currentSecurityItem.content.username;
62368
+ data.content.password = this.currentSecurityItem.content.password;
62369
+ } else if (this.currentSecurityItem.type === "OAuth2") {
62370
+ data = security_modal_assign(security_modal_assign({}, data), this.currentSecurityItem);
62371
+
62372
+ if (this.currentSecurityItem.content.grantType !== "password") {
62373
+ delete data.content.password;
62374
+ delete data.content.username;
62375
+ }
62376
+ }
62377
+
62378
+ data.content = JSON.stringify(data.content);
62379
+ }
62380
+
62381
+ res = null;
62382
+ if (!this.currentSecurityItem.id) return [3
62383
+ /*break*/
62384
+ , 2];
62385
+ data.id = this.currentSecurityItem.id;
62386
+ return [4
62387
+ /*yield*/
62388
+ , this.service.updateSecurityItem(data)];
62389
+
62390
+ case 1:
62391
+ res = _a.sent();
62392
+ return [3
62393
+ /*break*/
62394
+ , 4];
62395
+
62396
+ case 2:
62397
+ return [4
62398
+ /*yield*/
62399
+ , this.service.addSecurityItem(data)];
62400
+
62401
+ case 3:
62402
+ res = _a.sent();
62403
+ _a.label = 4;
62404
+
62405
+ case 4:
62406
+ if (!(res === null || res === void 0 ? void 0 : res.hasError)) {
62407
+ this.getSecurityList();
62408
+ this.$emit("on-fresh");
62409
+ }
62410
+
62411
+ return [2
62412
+ /*return*/
62413
+ ];
62414
+ }
62415
+ });
62416
+ });
62417
+ };
62418
+
62419
+ var _a;
62420
+
62421
+ 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);
62422
+
62423
+ security_modal_decorate([Object(flagwind_web_["config"])({
62424
+ type: Boolean,
62425
+ default: true
62426
+ }), security_modal_metadata("design:type", Boolean)], SecurityModalComponent.prototype, "value", void 0);
62427
+
62428
+ security_modal_decorate([Object(flagwind_web_["config"])({
62429
+ type: String,
62430
+ default: ""
62431
+ }), security_modal_metadata("design:type", String)], SecurityModalComponent.prototype, "projectID", void 0);
62432
+
62433
+ security_modal_decorate([Object(flagwind_web_["config"])({
62434
+ type: Boolean,
62435
+ default: false
62436
+ }), security_modal_metadata("design:type", Boolean)], SecurityModalComponent.prototype, "isAdd", void 0);
62437
+
62438
+ 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);
62439
+
62440
+ SecurityModalComponent = security_modal_decorate([Object(flagwind_web_["component"])({
62441
+ template: __webpack_require__("3bf8"),
62442
+ components: {
62443
+ "u-tips-form-label": project_detail_security_setting_v2_tips_form_label
62444
+ }
62445
+ })], SecurityModalComponent);
62446
+ return SecurityModalComponent;
62447
+ }(flagwind_web_["Component"]);
62448
+
62449
+ /* harmony default export */ var project_detail_security_modal = (security_modal_SecurityModalComponent);
62450
+ // CONCATENATED MODULE: ./src/views/project-detail/security-setting-v2/index.ts
62451
+
62452
+
62453
+
62454
+
62455
+
62456
+
62457
+
62458
+
62459
+
62460
+
62461
+
62462
+
62463
+
62464
+
62465
+
62466
+
62467
+
62468
+ var security_setting_v2_extends = undefined && undefined.__extends || function () {
62469
+ var _extendStatics = function extendStatics(d, b) {
62470
+ _extendStatics = Object.setPrototypeOf || {
62471
+ __proto__: []
62472
+ } instanceof Array && function (d, b) {
62473
+ d.__proto__ = b;
62474
+ } || function (d, b) {
62475
+ for (var p in b) {
62476
+ if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
62477
+ }
62478
+ };
62479
+
62480
+ return _extendStatics(d, b);
62481
+ };
62482
+
62483
+ return function (d, b) {
62484
+ if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
62485
+
62486
+ _extendStatics(d, b);
62487
+
62488
+ function __() {
62489
+ this.constructor = d;
62490
+ }
62491
+
62492
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
62493
+ };
62494
+ }();
62495
+
62496
+ var security_setting_v2_decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
62497
+ var c = arguments.length,
62498
+ r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
62499
+ d;
62500
+ 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--) {
62501
+ if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
62502
+ }
62503
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
62504
+ };
62505
+
62506
+ var security_setting_v2_metadata = undefined && undefined.__metadata || function (k, v) {
62507
+ if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
62508
+ };
62509
+
62510
+ var security_setting_v2_awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
62511
+ function adopt(value) {
62512
+ return value instanceof P ? value : new P(function (resolve) {
62513
+ resolve(value);
62514
+ });
62515
+ }
62516
+
62517
+ return new (P || (P = Promise))(function (resolve, reject) {
62518
+ function fulfilled(value) {
62519
+ try {
62520
+ step(generator.next(value));
62521
+ } catch (e) {
62522
+ reject(e);
62523
+ }
62524
+ }
62525
+
62526
+ function rejected(value) {
62527
+ try {
62528
+ step(generator["throw"](value));
62529
+ } catch (e) {
62530
+ reject(e);
62531
+ }
62532
+ }
62533
+
62534
+ function step(result) {
62535
+ result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
62536
+ }
62537
+
62538
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
62539
+ });
62540
+ };
62541
+
62542
+ var security_setting_v2_generator = undefined && undefined.__generator || function (thisArg, body) {
62543
+ var _ = {
62544
+ label: 0,
62545
+ sent: function sent() {
62546
+ if (t[0] & 1) throw t[1];
62547
+ return t[1];
62548
+ },
62549
+ trys: [],
62550
+ ops: []
62551
+ },
62552
+ f,
62553
+ y,
62554
+ t,
62555
+ g;
62556
+ return g = {
62557
+ next: verb(0),
62558
+ "throw": verb(1),
62559
+ "return": verb(2)
62560
+ }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
62561
+ return this;
62562
+ }), g;
62563
+
62564
+ function verb(n) {
62565
+ return function (v) {
62566
+ return step([n, v]);
62567
+ };
62568
+ }
62569
+
62570
+ function step(op) {
62571
+ if (f) throw new TypeError("Generator is already executing.");
62572
+
62573
+ while (_) {
62574
+ try {
62575
+ 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;
62576
+ if (y = 0, t) op = [op[0] & 2, t.value];
62577
+
62578
+ switch (op[0]) {
62579
+ case 0:
62580
+ case 1:
62581
+ t = op;
62582
+ break;
62583
+
62584
+ case 4:
62585
+ _.label++;
62586
+ return {
62587
+ value: op[1],
62588
+ done: false
62589
+ };
62590
+
62591
+ case 5:
62592
+ _.label++;
62593
+ y = op[1];
62594
+ op = [0];
62595
+ continue;
62596
+
62597
+ case 7:
62598
+ op = _.ops.pop();
62599
+
62600
+ _.trys.pop();
62601
+
62602
+ continue;
62603
+
62604
+ default:
62605
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
62606
+ _ = 0;
62607
+ continue;
62608
+ }
62609
+
62610
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
62611
+ _.label = op[1];
62612
+ break;
62613
+ }
62614
+
62615
+ if (op[0] === 6 && _.label < t[1]) {
62616
+ _.label = t[1];
62617
+ t = op;
62618
+ break;
62619
+ }
62620
+
62621
+ if (t && _.label < t[2]) {
62622
+ _.label = t[2];
62623
+
62624
+ _.ops.push(op);
62625
+
62626
+ break;
62627
+ }
62628
+
62629
+ if (t[2]) _.ops.pop();
62630
+
62631
+ _.trys.pop();
62632
+
62633
+ continue;
62634
+ }
62635
+
62636
+ op = body.call(thisArg, _);
62637
+ } catch (e) {
62638
+ op = [6, e];
62639
+ y = 0;
62640
+ } finally {
62641
+ f = t = 0;
62642
+ }
62643
+ }
62644
+
62645
+ if (op[0] & 5) throw op[1];
62646
+ return {
62647
+ value: op[0] ? op[1] : void 0,
62648
+ done: true
62649
+ };
62650
+ }
62651
+ };
62652
+
62653
+
62654
+
62655
+
62656
+
62657
+
62658
+
62659
+
62660
+
62661
+ var security_setting_v2_SecuritySettingV2 =
62662
+ /** @class */
62663
+ function (_super) {
62664
+ security_setting_v2_extends(SecuritySettingV2, _super);
62665
+
62666
+ function SecuritySettingV2() {
62667
+ var _this = _super !== null && _super.apply(this, arguments) || this;
62668
+
62669
+ _this.securityList = [];
62670
+ _this.currentSecurityItem = {};
62671
+ _this.currentSecurityItemId = "";
62672
+ _this.showSecurity = false;
62673
+ _this.isAdd = true;
62674
+ _this.grantTypeList = [];
62675
+ return _this;
62676
+ }
62677
+
62678
+ SecuritySettingV2.prototype.mounted = function () {
62679
+ var _a;
62680
+
62681
+ return security_setting_v2_awaiter(this, void 0, void 0, function () {
62682
+ var _this = this;
62683
+
62684
+ return security_setting_v2_generator(this, function (_b) {
62685
+ switch (_b.label) {
62686
+ case 0:
62687
+ this.getGrantTypeList();
62688
+ return [4
62689
+ /*yield*/
62690
+ , this.getSecurityList()];
62691
+
62692
+ case 1:
62693
+ _b.sent();
62694
+
62695
+ if (this.currentSecurityID) {
62696
+ this.currentSecurityItemId = this.currentSecurityID;
62697
+ } else if ((_a = this.interfaceModel.authentication) === null || _a === void 0 ? void 0 : _a.id) {
62698
+ this.currentSecurityItemId = this.interfaceModel.authentication.id;
62699
+ }
62700
+
62701
+ this.currentSecurityItem = this.securityList.find(function (item) {
62702
+ return item.id === _this.currentSecurityItemId;
62703
+ }) || {};
62704
+ return [2
62705
+ /*return*/
62706
+ ];
62707
+ }
62708
+ });
62709
+ });
62710
+ };
62711
+
62712
+ SecuritySettingV2.prototype.getGrantTypeList = function () {
62713
+ return security_setting_v2_awaiter(this, void 0, void 0, function () {
62714
+ var result;
62715
+ return security_setting_v2_generator(this, function (_a) {
62716
+ switch (_a.label) {
62717
+ case 0:
62718
+ return [4
62719
+ /*yield*/
62720
+ , this.service.getEnumByType("grantType")];
62721
+
62722
+ case 1:
62723
+ result = _a.sent();
62724
+ this.grantTypeList = (result === null || result === void 0 ? void 0 : result.result) || [];
62725
+ return [2
62726
+ /*return*/
62727
+ ];
62728
+ }
62729
+ });
62730
+ });
62731
+ };
62732
+
62733
+ SecuritySettingV2.prototype.findGrantTypeText = function (name) {
62734
+ var res = this.grantTypeList.find(function (item) {
62735
+ return item.name === name;
62736
+ });
62737
+ return res ? res.text : "";
62738
+ };
62739
+
62740
+ SecuritySettingV2.prototype.getSecurityList = function () {
62741
+ return security_setting_v2_awaiter(this, void 0, void 0, function () {
62742
+ var res, tempList;
62743
+ return security_setting_v2_generator(this, function (_a) {
62744
+ switch (_a.label) {
62745
+ case 0:
62746
+ return [4
62747
+ /*yield*/
62748
+ , this.service.getSecurityList({
62749
+ projectId: this.projectID
62750
+ })];
62751
+
62752
+ case 1:
62753
+ res = _a.sent();
62754
+
62755
+ if (!(res === null || res === void 0 ? void 0 : res.hasError)) {
62756
+ tempList = res.result || [];
62757
+ this.securityList = tempList.map(function (item) {
62758
+ if (item.type !== "GROOVY_SCRIPT") {
62759
+ item.content = JSON.parse(item.content);
62760
+ } else {
62761
+ item.scriptContent = item.content;
62762
+ item.content = {};
62763
+ }
62764
+
62765
+ return item;
62766
+ });
62767
+ }
62768
+
62769
+ return [2
62770
+ /*return*/
62771
+ ];
62772
+ }
62773
+ });
62774
+ });
62775
+ };
62776
+
62777
+ SecuritySettingV2.prototype.onChangeSecurityItem = function (id) {
62778
+ this.$emit("on-current-id", id);
62779
+ this.currentSecurityItem = this.securityList.find(function (item) {
62780
+ return item.id === id;
62781
+ });
62782
+ this.interfaceModel.authentication = this.interfaceModel.authentication || new Authentication();
62783
+ this.interfaceModel.authentication.type = this.currentSecurityItem.type;
62784
+ this.interfaceModel.authentication.location = this.currentSecurityItem.location;
62785
+ this.interfaceModel.authentication.locationKey = this.currentSecurityItem.locationKey;
62786
+
62787
+ if (this.currentSecurityItem.type === "GROOVY_SCRIPT") {
62788
+ this.interfaceModel.authentication.content = this.currentSecurityItem.scriptContent;
62789
+ } else {
62790
+ this.interfaceModel.authentication.content = JSON.stringify(this.currentSecurityItem.content);
62791
+ }
62792
+
62793
+ this.interfaceModel.info.authId = this.currentSecurityItem.id;
62794
+ };
62795
+
62796
+ SecuritySettingV2.prototype.onAddSecurityItem = function () {
62797
+ this.$refs.addSecuritySelect.visible = false;
62798
+ this.showSecurity = true;
62799
+ };
62800
+
62801
+ var _a, _b;
62802
+
62803
+ 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);
62804
+
62805
+ security_setting_v2_decorate([Object(flagwind_web_["config"])({
62806
+ default: function _default() {
62807
+ return new InterfaceModel();
62808
+ }
62809
+ }), security_setting_v2_metadata("design:type", typeof (_b = typeof InterfaceModel !== "undefined" && InterfaceModel) === "function" ? _b : Object)], SecuritySettingV2.prototype, "interfaceModel", void 0);
62810
+
62811
+ security_setting_v2_decorate([Object(flagwind_web_["config"])({
62812
+ type: String,
62813
+ default: ""
62814
+ }), security_setting_v2_metadata("design:type", String)], SecuritySettingV2.prototype, "projectID", void 0);
62815
+
62816
+ security_setting_v2_decorate([Object(flagwind_web_["config"])({
62817
+ type: String,
62818
+ default: ""
62819
+ }), security_setting_v2_metadata("design:type", String)], SecuritySettingV2.prototype, "currentSecurityID", void 0);
62820
+
62821
+ SecuritySettingV2 = security_setting_v2_decorate([Object(flagwind_web_["component"])({
62822
+ template: __webpack_require__("3de4"),
62823
+ components: {
62824
+ "u-tips-form-label": project_detail_security_setting_v2_tips_form_label,
62825
+ "u-security-modal": project_detail_security_modal
62826
+ }
62827
+ })], SecuritySettingV2);
62828
+ return SecuritySettingV2;
62829
+ }(flagwind_web_["Component"]);
62830
+
62831
+ /* harmony default export */ var project_detail_security_setting_v2 = (security_setting_v2_SecuritySettingV2);
62832
+ // CONCATENATED MODULE: ./src/views/project-detail/interface-settings/index.ts
62833
+
62834
+
62835
+
62836
+
62837
+
62838
+
62839
+
62840
+
62841
+
62842
+
62843
+
62844
+
62845
+
62846
+
62847
+
62848
+
62849
+
62850
+
62851
+
62852
+
62853
+
62854
+
62855
+ var interface_settings_extends = undefined && undefined.__extends || function () {
62856
+ var _extendStatics = function extendStatics(d, b) {
62857
+ _extendStatics = Object.setPrototypeOf || {
62858
+ __proto__: []
62859
+ } instanceof Array && function (d, b) {
62860
+ d.__proto__ = b;
62861
+ } || function (d, b) {
62862
+ for (var p in b) {
62863
+ if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
62864
+ }
62865
+ };
62866
+
62867
+ return _extendStatics(d, b);
62868
+ };
62869
+
62870
+ return function (d, b) {
62871
+ if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
62872
+
62873
+ _extendStatics(d, b);
62874
+
62875
+ function __() {
62876
+ this.constructor = d;
62877
+ }
62878
+
62879
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
62880
+ };
62881
+ }();
62882
+
62883
+ var interface_settings_assign = undefined && undefined.__assign || function () {
62884
+ interface_settings_assign = Object.assign || function (t) {
62885
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
62886
+ s = arguments[i];
62887
+
62888
+ for (var p in s) {
62889
+ if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
62890
+ }
62891
+ }
62892
+
62893
+ return t;
62894
+ };
62895
+
62896
+ return interface_settings_assign.apply(this, arguments);
62897
+ };
62898
+
62899
+ var interface_settings_decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
62900
+ var c = arguments.length,
62901
+ r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
62902
+ d;
62903
+ 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--) {
62904
+ if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
62905
+ }
62906
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
62907
+ };
62908
+
62909
+ var interface_settings_metadata = undefined && undefined.__metadata || function (k, v) {
62910
+ if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
62911
+ };
62912
+
62913
+ var interface_settings_awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
61712
62914
  function adopt(value) {
61713
62915
  return value instanceof P ? value : new P(function (resolve) {
61714
62916
  resolve(value);
@@ -61864,6 +63066,7 @@ var interface_settings_generator = undefined && undefined.__generator || functio
61864
63066
 
61865
63067
 
61866
63068
 
63069
+
61867
63070
  var interface_settings_InterfaceSettings =
61868
63071
  /** @class */
61869
63072
  function (_super) {
@@ -61875,6 +63078,7 @@ function (_super) {
61875
63078
  _this.response = new Response();
61876
63079
  _this.responseCache = new Map();
61877
63080
  _this.loading = false;
63081
+ _this.currentId = "";
61878
63082
  _this.typeList = [{
61879
63083
  value: "GET",
61880
63084
  text: "GET"
@@ -61894,9 +63098,13 @@ function (_super) {
61894
63098
  }, {
61895
63099
  title: "Headers",
61896
63100
  name: "headers"
61897
- }, {
63101
+ }, // {
63102
+ // title: "授权管理",
63103
+ // name: "security"
63104
+ // },
63105
+ {
61898
63106
  title: "授权管理",
61899
- name: "security"
63107
+ name: "v2security"
61900
63108
  }, {
61901
63109
  title: "前置脚本",
61902
63110
  name: "pre-execution"
@@ -62074,6 +63282,10 @@ function (_super) {
62074
63282
  });
62075
63283
  };
62076
63284
 
63285
+ InterfaceSettings.prototype.onCurrentId = function (id) {
63286
+ this.currentId = id;
63287
+ };
63288
+
62077
63289
  var _a, _b;
62078
63290
 
62079
63291
  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);
@@ -62105,7 +63317,8 @@ function (_super) {
62105
63317
  security: project_detail_security_setting,
62106
63318
  "pre-execution": project_detail_pre_execution_setting,
62107
63319
  "after-execution-transfer": project_detail_after_execution_transfer,
62108
- "after-execution-script": after_execution_script
63320
+ "after-execution-script": after_execution_script,
63321
+ "v2security": project_detail_security_setting_v2
62109
63322
  }
62110
63323
  })], InterfaceSettings);
62111
63324
  return InterfaceSettings;
@@ -63228,6 +64441,7 @@ var project_detail_generator = undefined && undefined.__generator || function (t
63228
64441
 
63229
64442
 
63230
64443
 
64444
+
63231
64445
  var project_detail_ProjectDetail =
63232
64446
  /** @class */
63233
64447
  function (_super) {
@@ -63241,6 +64455,7 @@ function (_super) {
63241
64455
  _this.lengthwise = true;
63242
64456
  _this.showGlobalModal = false;
63243
64457
  _this.showCurrentModal = false;
64458
+ _this.showSecurity = false;
63244
64459
  _this.projectId = "";
63245
64460
  _this.projectName = "";
63246
64461
  _this.split = "340px";
@@ -63414,6 +64629,10 @@ function (_super) {
63414
64629
  this.lengthwise = !this.lengthwise;
63415
64630
  };
63416
64631
 
64632
+ ProjectDetail.prototype.onSecurity = function () {
64633
+ this.showSecurity = true;
64634
+ };
64635
+
63417
64636
  ProjectDetail.prototype.onOpenGlobalModal = function () {
63418
64637
  this.showGlobalModal = true;
63419
64638
  };
@@ -63471,7 +64690,8 @@ function (_super) {
63471
64690
  "u-global-modal": project_detail_global_variable_modal,
63472
64691
  "u-current-modal": project_detail_current_variable_modal,
63473
64692
  Swiper: vue_awesome_swiper["Swiper"],
63474
- SwiperSlide: vue_awesome_swiper["SwiperSlide"]
64693
+ SwiperSlide: vue_awesome_swiper["SwiperSlide"],
64694
+ "u-security-modal": project_detail_security_modal
63475
64695
  },
63476
64696
  directives: {
63477
64697
  swiper: vue_awesome_swiper["directive"]