@egova/egova-api 1.0.168 → 1.0.171

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.
@@ -21251,6 +21251,57 @@ module.exports = function (originalArray) {
21251
21251
  };
21252
21252
 
21253
21253
 
21254
+ /***/ }),
21255
+
21256
+ /***/ "0cb2":
21257
+ /***/ (function(module, exports, __webpack_require__) {
21258
+
21259
+ var uncurryThis = __webpack_require__("e330");
21260
+ var toObject = __webpack_require__("7b0b");
21261
+
21262
+ var floor = Math.floor;
21263
+ var charAt = uncurryThis(''.charAt);
21264
+ var replace = uncurryThis(''.replace);
21265
+ var stringSlice = uncurryThis(''.slice);
21266
+ var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
21267
+ var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
21268
+
21269
+ // `GetSubstitution` abstract operation
21270
+ // https://tc39.es/ecma262/#sec-getsubstitution
21271
+ module.exports = function (matched, str, position, captures, namedCaptures, replacement) {
21272
+ var tailPos = position + matched.length;
21273
+ var m = captures.length;
21274
+ var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
21275
+ if (namedCaptures !== undefined) {
21276
+ namedCaptures = toObject(namedCaptures);
21277
+ symbols = SUBSTITUTION_SYMBOLS;
21278
+ }
21279
+ return replace(replacement, symbols, function (match, ch) {
21280
+ var capture;
21281
+ switch (charAt(ch, 0)) {
21282
+ case '$': return '$';
21283
+ case '&': return matched;
21284
+ case '`': return stringSlice(str, 0, position);
21285
+ case "'": return stringSlice(str, tailPos);
21286
+ case '<':
21287
+ capture = namedCaptures[stringSlice(ch, 1, -1)];
21288
+ break;
21289
+ default: // \d\d?
21290
+ var n = +ch;
21291
+ if (n === 0) return match;
21292
+ if (n > m) {
21293
+ var f = floor(n / 10);
21294
+ if (f === 0) return match;
21295
+ if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);
21296
+ return match;
21297
+ }
21298
+ capture = captures[n - 1];
21299
+ }
21300
+ return capture === undefined ? '' : capture;
21301
+ });
21302
+ };
21303
+
21304
+
21254
21305
  /***/ }),
21255
21306
 
21256
21307
  /***/ "0cfb":
@@ -22619,7 +22670,7 @@ module.exports = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {
22619
22670
  /***/ "193e":
22620
22671
  /***/ (function(module, exports) {
22621
22672
 
22622
- module.exports = "<article class=\"project-tree\">\r\n <header>\r\n <i-input class=\"diy-input\" search v-model=\"keyword\" @on-search=\"onFilter\" placeholder=\"输入关键字搜索\">\r\n <i-select transfer slot=\"prepend\" v-model=\"type\" @on-change=\"onFilter\" class=\"diy-select\">\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 <div class=\"add\" @click=\"onAddGroup\">\r\n <i class=\"api-icon icon-add\"></i>\r\n <span>新建分组</span>\r\n </div>\r\n </header>\r\n <i-tree :data=\"renderData\" :render=\"renderContent\"></i-tree>\r\n <i-modal\r\n draggable\r\n sticky\r\n reset-drag-position\r\n v-model=\"showGroupModal\"\r\n class=\"diy-modal\"\r\n :mask-closable=\"false\"\r\n transfer\r\n :title=\"group.id ? '修改分组': '添加分组'\"\r\n >\r\n <i-form :label-width=\"100\" class=\"diy-form\" label-colon>\r\n <i-form-item label=\"分组名称\">\r\n <i-input class=\"diy-input\" v-model=\"group.name\"></i-input>\r\n </i-form-item>\r\n <i-form-item label=\"分组位置\">\r\n <u-group-select :data=\"groupTree\" :current=\"parent\" @on-select=\"onSelectParent\"></u-group-select>\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.stop=\"onSaveGroup\">确定</i-button>\r\n <i-button class=\"diy-btn-default\" @click.stop=\"onGourpCancel\">取消</i-button>\r\n </footer>\r\n </i-modal>\r\n <i-modal draggable sticky reset-drag-position v-model=\"showInterfaceModal\" class=\"diy-modal\" :mask-closable=\"false\" :title=\"interfaceModel.id ? '修改接口': '添加接口'\">\r\n <i-form :label-width=\"100\" class=\"diy-form\" label-colon>\r\n <i-form-item label=\"接口名称\">\r\n <i-input class=\"diy-input\" v-model=\"interfaceModel.name\"></i-input>\r\n </i-form-item>\r\n <i-form-item label=\"接口位置\">\r\n <u-group-select :data=\"groupTree\" :current=\"parent\" @on-select=\"onSelectParent\"></u-group-select>\r\n </i-form-item>\r\n <i-form-item label=\"接口类型\">\r\n <i-select v-model=\"interfaceModel.method\" class=\"diy-select\" transfer>\r\n <i-option v-for=\"item in typeList\" v-if=\"item.value\" :key=\"item.value\" :value=\"item.value\">{{item.text}}</i-option>\r\n </i-select>\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=\"onSaveInterface\">确定</i-button>\r\n <i-button class=\"diy-btn-default\" @click=\"onInterfaceCancel\">取消</i-button>\r\n </footer>\r\n </i-modal>\r\n <i-modal draggable sticky reset-drag-position v-model=\"showCopyModal\" class=\"diy-modal\" :mask-closable=\"false\" title=\"复制接口\">\r\n <i-form :label-width=\"100\" class=\"diy-form\" label-colon>\r\n <i-form-item label=\"接口名称\" required>\r\n <i-input class=\"diy-input\" v-model=\"copyName\"></i-input>\r\n </i-form-item>\r\n <i-form-item label=\"选择分组\" required>\r\n <u-group-select :isSelector=\"true\" :data=\"groupTree\" :current=\"parent\" @on-select=\"onSelectParent\"></u-group-select>\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=\"onCopy\">确定</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"
22673
+ module.exports = "<article class=\"project-tree\">\r\n <header>\r\n <div class=\"tree-api\">\r\n <div class=\"title-g\">API列表</div>\r\n <div class=\"add\" @click=\"onAddGroup\">\r\n <i class=\"iconfont icon-xinjianwenjianjia\"></i>\r\n </div>\r\n </div>\r\n <i-input class=\"diy-input\"search v-model=\"keyword\" @on-search=\"onFilter\" placeholder=\"输入关键字搜索\">\r\n <i-select class=\"diy-select\" transfer slot=\"prepend\" v-model=\"type\" @on-change=\"onFilter\">\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 </header>\r\n <i-tree :data=\"renderData\" :render=\"renderContent\"></i-tree>\r\n <i-modal\r\n draggable\r\n sticky\r\n reset-drag-position\r\n v-model=\"showGroupModal\"\r\n class=\"diy-modal\"\r\n :mask-closable=\"false\"\r\n transfer\r\n :title=\"group.id ? '修改分组': '添加分组'\"\r\n >\r\n <i-form :label-width=\"100\" class=\"diy-form\" label-colon>\r\n <i-form-item label=\"分组名称\">\r\n <i-input class=\"diy-input\" v-model=\"group.name\"></i-input>\r\n </i-form-item>\r\n <i-form-item label=\"分组位置\">\r\n <u-group-select :data=\"groupTree\" :current=\"parent\" @on-select=\"onSelectParent\"></u-group-select>\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.stop=\"onSaveGroup\">确定</i-button>\r\n <i-button class=\"diy-btn-default\" @click.stop=\"onGourpCancel\">取消</i-button>\r\n </footer>\r\n </i-modal>\r\n <i-modal draggable sticky reset-drag-position v-model=\"showInterfaceModal\" class=\"diy-modal\" :mask-closable=\"false\" :title=\"interfaceModel.id ? '修改接口': '添加接口'\">\r\n <i-form :label-width=\"100\" class=\"diy-form\" label-colon>\r\n <i-form-item label=\"接口名称\">\r\n <i-input class=\"diy-input\" v-model=\"interfaceModel.name\"></i-input>\r\n </i-form-item>\r\n <i-form-item label=\"接口位置\">\r\n <u-group-select :data=\"groupTree\" :current=\"parent\" @on-select=\"onSelectParent\"></u-group-select>\r\n </i-form-item>\r\n <i-form-item label=\"接口类型\">\r\n <i-select v-model=\"interfaceModel.method\" class=\"diy-select\" transfer>\r\n <i-option v-for=\"item in typeList\" v-if=\"item.value\" :key=\"item.value\" :value=\"item.value\">{{item.text}}</i-option>\r\n </i-select>\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=\"onSaveInterface\">确定</i-button>\r\n <i-button class=\"diy-btn-default\" @click=\"onInterfaceCancel\">取消</i-button>\r\n </footer>\r\n </i-modal>\r\n <i-modal draggable sticky reset-drag-position v-model=\"showCopyModal\" class=\"diy-modal\" :mask-closable=\"false\" title=\"复制接口\">\r\n <i-form :label-width=\"100\" class=\"diy-form\" label-colon>\r\n <i-form-item label=\"接口名称\" required>\r\n <i-input class=\"diy-input\" v-model=\"copyName\"></i-input>\r\n </i-form-item>\r\n <i-form-item label=\"选择分组\" required>\r\n <u-group-select :isSelector=\"true\" :data=\"groupTree\" :current=\"parent\" @on-select=\"onSelectParent\"></u-group-select>\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=\"onCopy\">确定</i-button>\r\n <i-button class=\"diy-btn-default\" @click=\"onCopyCancel\">取消</i-button>\r\n </footer>\r\n </i-modal>\r\n <u-batch-modal :visiable.sync=\"showBatchModal\" :data=\"categoryApiList\" :projectId=\"projectId\" @on-success=\"onBatchSuccess\"></u-batch-modal>\r\n</article>\r\n"
22623
22674
 
22624
22675
  /***/ }),
22625
22676
 
@@ -26354,7 +26405,7 @@ module.exports = version;
26354
26405
  /***/ "2f53":
26355
26406
  /***/ (function(module, exports) {
26356
26407
 
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"
26408
+ module.exports = "<span class=\"wrap\">\r\n <i-poptip trigger=\"hover\" :content=\"tips\">\r\n<!-- <div class=\"diy-info-icon\">i</div>-->\r\n <i-icon type=\"ios-information-circle-outline\"></i-icon>\r\n </i-poptip>\r\n <span class=\"title\">{{labelTitle}}</span>\r\n <span v-if=\"labelColon\">:</span>\r\n</span>\r\n"
26358
26409
 
26359
26410
  /***/ }),
26360
26411
 
@@ -26478,7 +26529,7 @@ module.exports = function (argument) {
26478
26529
  /***/ "3bf8":
26479
26530
  /***/ (function(module, exports) {
26480
26531
 
26481
- module.exports = "<i-modal draggable sticky reset-drag-position :mask-closable=\"false\" v-model=\"show\" width=\"1000\" class=\"u-security-modal diy-modal\" transfer>\r\n <header slot=\"header\">授权认证</header>\r\n <main class=\"security-content\">\r\n <div class=\"left\">\r\n <div class=\"left-title\">\r\n <div class=\"left-title-text\">授权列表</div>\r\n <i class=\"api-icon icon-add\" @click=\"onAddItem\"></i>\r\n </div>\r\n <div class=\"left-content\">\r\n <i-input class=\"diy-input search-input\" v-model=\"keyword\" placeholder=\"输入关键字查询\" @on-change=\"onFilter\">\r\n <template #prefix>\r\n <i-icon type=\"ios-search\"/>\r\n </template>\r\n </i-input>\r\n <div class=\"security-list\">\r\n <div class=\"security-list-item\"\r\n :class=\"currentSecurityItem.id === item.id ? 'security-list-item-active' : ''\"\r\n v-for=\"(item,index) in securityList\"\r\n :key=\"item.id || index\"\r\n @click=\"onSelectSecurityItem(item)\"\r\n >\r\n <div class=\"security-list-item-name\">\r\n <i class=\"iconfont icon-shouquan1\"></i>\r\n <div class=\"security-list-item-text\">{{ item.name || \"新授权\" }}</div>\r\n </div>\r\n <i-poptip confirm title=\"确认删除这条数据吗?\" transfer placement=\"top-end\" @on-ok=\"onDelete(item)\">\r\n <i class=\"iconfont icon-delete\"></i>\r\n </i-poptip>\r\n<!-- <i class=\"iconfont icon-delete\" @click.stop=\"onDelete(item)\"></i>-->\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"right\">\r\n <div class=\"right-title\">授权内容</div>\r\n <div class=\"right-content\">\r\n <i-form class=\"security-content-form\"label-colon :model=\"currentSecurityItem\">\r\n <template v-if=\"currentSecurityItem.type\">\r\n <i-form-item class=\"security-content-form-item\" :class=\"currentSecurityItem.type === 'OAuth2' ? 'oauth2-form-item' : ''\" label=\"授权名称\">\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.name\"></i-input>\r\n </i-form-item>\r\n <i-form-item class=\"security-content-form-item\" :class=\"currentSecurityItem.type === 'OAuth2' ? 'oauth2-form-item' : ''\" label=\"授权类型\">\r\n <i-select class=\"diy-select\" v-model=\"currentSecurityItem.type\">\r\n <i-option v-for=\"(item,index) in securityTypeList\" :value=\"item.name\" :key=\"index\">{{ item.text }}</i-option>\r\n </i-select>\r\n </i-form-item>\r\n </template>\r\n <template v-if=\"currentSecurityItem.type && currentSecurityItem.type !== 'GROOVY_SCRIPT'\">\r\n <i-form-item class=\"security-content-form-item\" :class=\"currentSecurityItem.type === 'OAuth2' ? 'oauth2-form-item' : ''\" label=\"存储位置\">\r\n <i-select class=\"diy-select\" v-model=\"currentSecurityItem.location\">\r\n <i-option v-for=\"(item,index) in tokenLocationTypeList\" :value=\"item.name\" :key=\"item.name\">{{ item.text }}</i-option>\r\n </i-select>\r\n </i-form-item>\r\n <i-form-item class=\"security-content-form-item\" :class=\"currentSecurityItem.type === 'OAuth2' ? 'oauth2-form-item' : ''\" label=\"存储键值\">\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.locationKey\"></i-input>\r\n </i-form-item>\r\n </template>\r\n <template v-if=\"currentSecurityItem.type === 'Api_Key'\">\r\n <i-form-item class=\"security-content-form-item\" label=\"key\">\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.key\"></i-input>\r\n </i-form-item>\r\n </template>\r\n <template v-if=\"currentSecurityItem.type === 'Base_Auth'\">\r\n <i-form-item class=\"security-content-form-item\" label=\"username\">\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.username\"></i-input>\r\n </i-form-item>\r\n <i-form-item class=\"security-content-form-item\" label=\"password\">\r\n <i-input class=\"diy-password-input diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.password\" type=\"password\" password></i-input>\r\n </i-form-item>\r\n </template>\r\n <template v-if=\"currentSecurityItem.type === 'OAuth2'\">\r\n <i-form-item class=\"security-content-form-item oauth2-form-item\">\r\n <u-tips-form-label slot=\"label\" :labelTitle=\"'Header Prefix'\" tips=\"token前缀 例如 Bearer\" label-colon></u-tips-form-label>\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.headerPrefix\"></i-input>\r\n </i-form-item>\r\n <i-form-item class=\"security-content-form-item oauth2-form-item\">\r\n <u-tips-form-label slot=\"label\" :labelTitle=\"'Grant Type'\" tips=\"认证类型\" label-colon></u-tips-form-label>\r\n <i-select v-model=\"currentSecurityItem.content.grantType\" class=\"diy-select\">\r\n <i-option v-for=\"item in grantTypeList\" :key=\"item.name\" :value=\"item.name\"> {{item.text}} </i-option>\r\n </i-select>\r\n </i-form-item>\r\n <i-form-item class=\"security-content-form-item oauth2-form-item\">\r\n <u-tips-form-label slot=\"label\" :labelTitle=\"'Access Token Url'\" tips=\"获取token的httpUrl\" label-colon></u-tips-form-label>\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.tokenUrl\"></i-input>\r\n </i-form-item>\r\n <i-form-item class=\"security-content-form-item oauth2-form-item\">\r\n <u-tips-form-label slot=\"label\" :labelTitle=\"'TokenPath'\" tips=\"获取响应结果的token路径\" label-colon></u-tips-form-label>\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.tokenPath\"></i-input>\r\n </i-form-item>\r\n <i-form-item class=\"security-content-form-item oauth2-form-item\" label=\"Client ID\">\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.clientId\"></i-input>\r\n </i-form-item>\r\n <i-form-item class=\"security-content-form-item oauth2-form-item\" label=\"Client Secret\">\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.clientSecret\"></i-input>\r\n </i-form-item>\r\n <template v-if=\"currentSecurityItem.content.grantType === 'password'\">\r\n <i-form-item class=\"security-content-form-item oauth2-form-item\" label=\"username\">\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.username\"></i-input>\r\n </i-form-item>\r\n <i-form-item class=\"security-content-form-item oauth2-form-item\" label=\"password\">\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.password\" type=\"password\" password></i-input>\r\n </i-form-item>\r\n </template>\r\n <i-form-item class=\"security-content-form-item oauth2-form-item\">\r\n <u-tips-form-label slot=\"label\" :labelTitle=\"'Scope'\" tips=\"访问请求的范围,它可能有多个空格分隔的值\" label-colon></u-tips-form-label>\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.scope\"></i-input>\r\n </i-form-item>\r\n </template>\r\n <template v-if=\"currentSecurityItem.type === 'GROOVY_SCRIPT'\">\r\n <i-form-item class=\"security-content-form-item script-area-item\" label=\"授权脚本\">\r\n <i-input class=\"diy-input script-area\" type=\"textarea\" placeholder=\"请输入\" v-model=\"currentSecurityItem.scriptContent\"></i-input>\r\n </i-form-item>\r\n </template>\r\n </i-form>\r\n </div>\r\n </div>\r\n </main>\r\n\r\n <footer slot=\"footer\">\r\n <template>\r\n <i-button class=\"diy-btn-default\" @click=\"onCancel\">取消</i-button>\r\n <i-button type=\"primary\" class=\"diy-btn-primary\" @click=\"onSave\">保存</i-button>\r\n </template>\r\n </footer>\r\n</i-modal>\r\n"
26532
+ module.exports = "<i-modal draggable sticky reset-drag-position :mask-closable=\"false\" v-model=\"show\" width=\"1000\" class=\"u-security-modal diy-modal\" transfer>\r\n <header slot=\"header\">授权认证</header>\r\n <main class=\"security-content\">\r\n <div class=\"left\">\r\n <div class=\"left-title\">\r\n <div class=\"left-title-text\">授权列表</div>\r\n <i class=\"api-icon icon-add\" @click=\"onAddItem\"></i>\r\n </div>\r\n <div class=\"left-content\">\r\n <i-input class=\"diy-input search-input\" v-model=\"keyword\" placeholder=\"输入关键字查询\" @on-change=\"onFilter\">\r\n <template #prefix>\r\n <i-icon type=\"ios-search\"/>\r\n </template>\r\n </i-input>\r\n <div class=\"security-list\">\r\n <div class=\"security-list-item\"\r\n :class=\"currentSecurityItem.id === item.id ? 'security-list-item-active' : ''\"\r\n v-for=\"(item,index) in securityList\"\r\n :key=\"item.id || index\"\r\n @click=\"onSelectSecurityItem(item)\"\r\n >\r\n <div class=\"security-list-item-name\">\r\n <i class=\"iconfont icon-shouquan1\"></i>\r\n <div class=\"security-list-item-text\" :class=\"currentSecurityItem.id === item.id ? 'security-list-item-text-active' : ''\">{{ item.name || \"新授权\" }}</div>\r\n </div>\r\n <i-poptip confirm title=\"确认删除这条数据吗?\" transfer placement=\"top-end\" @on-ok=\"onDelete(item)\">\r\n <i class=\"iconfont icon-delete\"></i>\r\n </i-poptip>\r\n<!-- <i class=\"iconfont icon-delete\" @click.stop=\"onDelete(item)\"></i>-->\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"right\">\r\n <div class=\"right-title\">授权内容</div>\r\n <div class=\"right-content\">\r\n <i-form class=\"security-content-form\"label-colon :model=\"currentSecurityItem\">\r\n <template v-if=\"currentSecurityItem.type\">\r\n <i-form-item class=\"security-content-form-item\" :class=\"currentSecurityItem.type === 'OAuth2' ? 'oauth2-form-item' : ''\" label=\"授权名称\" required>\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.name\"></i-input>\r\n </i-form-item>\r\n <i-form-item class=\"security-content-form-item\" :class=\"currentSecurityItem.type === 'OAuth2' ? 'oauth2-form-item' : ''\" label=\"授权类型\" required>\r\n <i-select class=\"diy-select\" v-model=\"currentSecurityItem.type\">\r\n <i-option v-for=\"(item,index) in securityTypeList\" :value=\"item.name\" :key=\"index\">{{ item.text }}</i-option>\r\n </i-select>\r\n </i-form-item>\r\n </template>\r\n <template v-if=\"currentSecurityItem.type && currentSecurityItem.type !== 'GROOVY_SCRIPT'\">\r\n <i-form-item class=\"security-content-form-item\" :class=\"currentSecurityItem.type === 'OAuth2' ? 'oauth2-form-item' : ''\" label=\"存储位置\">\r\n <i-select class=\"diy-select\" v-model=\"currentSecurityItem.location\">\r\n <i-option v-for=\"(item,index) in tokenLocationTypeList\" :value=\"item.name\" :key=\"item.name\">{{ item.text }}</i-option>\r\n </i-select>\r\n </i-form-item>\r\n <i-form-item class=\"security-content-form-item\" :class=\"currentSecurityItem.type === 'OAuth2' ? 'oauth2-form-item' : ''\" label=\"存储键值\">\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.locationKey\"></i-input>\r\n </i-form-item>\r\n </template>\r\n <template v-if=\"currentSecurityItem.type === 'Api_Key'\">\r\n <i-form-item class=\"security-content-form-item\" label=\"key\">\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.key\"></i-input>\r\n </i-form-item>\r\n </template>\r\n <template v-if=\"currentSecurityItem.type === 'Base_Auth'\">\r\n <i-form-item class=\"security-content-form-item\" label=\"username\">\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.username\"></i-input>\r\n </i-form-item>\r\n <i-form-item class=\"security-content-form-item\" label=\"password\">\r\n <i-input class=\"diy-password-input diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.password\" type=\"password\" password></i-input>\r\n </i-form-item>\r\n </template>\r\n <template v-if=\"currentSecurityItem.type === 'OAuth2'\">\r\n <i-form-item class=\"security-content-form-item oauth2-form-item\">\r\n <u-tips-form-label slot=\"label\" :labelTitle=\"'Header Prefix'\" tips=\"token前缀 例如 Bearer\" label-colon></u-tips-form-label>\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.headerPrefix\"></i-input>\r\n </i-form-item>\r\n <i-form-item class=\"security-content-form-item oauth2-form-item grant-type-item\">\r\n <u-tips-form-label slot=\"label\" :labelTitle=\"'Grant Type'\" tips=\"认证类型\" label-colon></u-tips-form-label>\r\n <i-select v-model=\"currentSecurityItem.content.grantType\" class=\"diy-select\">\r\n <i-option v-for=\"item in grantTypeList\" :key=\"item.name\" :value=\"item.name\"> {{item.text}} </i-option>\r\n </i-select>\r\n </i-form-item>\r\n <i-form-item class=\"security-content-form-item oauth2-form-item\">\r\n <u-tips-form-label slot=\"label\" :labelTitle=\"'Access Token Url'\" tips=\"获取token的httpurl\" label-colon></u-tips-form-label>\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.tokenUrl\"></i-input>\r\n </i-form-item>\r\n <i-form-item class=\"security-content-form-item oauth2-form-item\">\r\n <u-tips-form-label slot=\"label\" :labelTitle=\"'TokenPath'\" tips=\"获取响应结果的token路径\" label-colon></u-tips-form-label>\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.tokenPath\"></i-input>\r\n </i-form-item>\r\n <i-form-item class=\"security-content-form-item oauth2-form-item\" label=\"Client ID\">\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.clientId\"></i-input>\r\n </i-form-item>\r\n <i-form-item class=\"security-content-form-item oauth2-form-item\" label=\"Client Secret\">\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.clientSecret\"></i-input>\r\n </i-form-item>\r\n <template v-if=\"currentSecurityItem.content.grantType === 'password'\">\r\n <i-form-item class=\"security-content-form-item oauth2-form-item\" label=\"username\">\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.username\"></i-input>\r\n </i-form-item>\r\n <i-form-item class=\"security-content-form-item oauth2-form-item\" label=\"password\">\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.password\" type=\"password\" password></i-input>\r\n </i-form-item>\r\n </template>\r\n <i-form-item class=\"security-content-form-item oauth2-form-item\">\r\n <u-tips-form-label slot=\"label\" :labelTitle=\"'Scope'\" tips=\"访问请求的范围,它可能有多个空格分隔的值\" label-colon></u-tips-form-label>\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.scope\"></i-input>\r\n </i-form-item>\r\n </template>\r\n <template v-if=\"currentSecurityItem.type === 'GROOVY_SCRIPT'\">\r\n <i-form-item class=\"security-content-form-item script-area-item\" label=\"授权脚本\">\r\n <i-input class=\"diy-input script-area\" type=\"textarea\" placeholder=\"请输入\" v-model=\"currentSecurityItem.scriptContent\"></i-input>\r\n </i-form-item>\r\n </template>\r\n </i-form>\r\n </div>\r\n </div>\r\n </main>\r\n\r\n <footer slot=\"footer\">\r\n <template>\r\n <i-button class=\"diy-btn-default\" @click=\"onCancel\">取消</i-button>\r\n <i-button type=\"primary\" class=\"diy-btn-primary\" @click=\"onSave\">保存</i-button>\r\n </template>\r\n </footer>\r\n</i-modal>\r\n"
26482
26533
 
26483
26534
  /***/ }),
26484
26535
 
@@ -26523,7 +26574,7 @@ defineIterator(String, 'String', function (iterated) {
26523
26574
  /***/ "3de4":
26524
26575
  /***/ (function(module, exports) {
26525
26576
 
26526
- module.exports = "<article class=\"security-setting-v2\">\r\n <div class=\"left\">\r\n <i-form class=\"type-form diy-form\" label-colon>\r\n <i-form-item label=\"选择授权\">\r\n <i-select ref=\"addSecuritySelect\" class=\"diy-select add-security-select\" v-model=\"currentSecurityItemId\" @on-change=\"onChangeSecurityItem($event)\" @on-clear=\"onClear\" clearable>\r\n <i-option v-for=\"item in securityList\" :key=\"item.id\" :value=\"item.id\">{{ item.name }}</i-option>\r\n <i-option class=\"add-security-item\" value=\"''\">\r\n <div class=\"add-security-item-content\" @click.stop=\"onAddSecurityItem\">\r\n <i class=\"api-icon icon-add\"></i>\r\n <span>新建授权</span>\r\n </div>\r\n </i-option>\r\n </i-select>\r\n </i-form-item>\r\n <i-form-item label=\"授权类型\">\r\n <span class=\"security-type\">{{ currentSecurityItem._type?.text ? currentSecurityItem._type.text : \"暂无\" }}</span>\r\n </i-form-item>\r\n </i-form>\r\n </div>\r\n <div class=\"right\">\r\n <div class=\"right-title\">授权详情</div>\r\n <div class=\"right-content\">\r\n <div class=\"no-data\" v-if=\"!currentSecurityItem.type\">\r\n <div class=\"no-data-bg\"></div>\r\n <div class=\"no-data-text\">请在左侧下拉框中选择已建立授权</div>\r\n </div>\r\n <div class=\"script\" v-if=\"currentSecurityItem.type === 'GROOVY_SCRIPT'\">\r\n <i-input class=\"diy-input script-area\" type=\"textarea\" v-model=\"currentSecurityItem.scriptContent\" :readonly=\"true\"></i-input>\r\n </div>\r\n <div class=\"api-key\" v-if=\"currentSecurityItem.type === 'Api_Key'\">\r\n <i-form class=\"oauth-2-form diy-form\" label-colon>\r\n <i-form-item label=\"存储位置\">\r\n <span class=\"form-item-text\">{{ currentSecurityItem._location?.text ? currentSecurityItem._location.text : \"\"}}</span>\r\n </i-form-item>\r\n <i-form-item label=\"存储键值\">\r\n <span class=\"form-item-text\">{{ currentSecurityItem.locationKey }}</span>\r\n </i-form-item>\r\n <i-form-item label=\"key\">\r\n <span class=\"form-item-text\">{{ currentSecurityItem.content.key }}</span>\r\n </i-form-item>\r\n </i-form>\r\n </div>\r\n <div class=\"base-auth\" v-if=\"currentSecurityItem.type === 'Base_Auth'\">\r\n <i-form class=\"oauth-2-form diy-form\" label-colon>\r\n <i-form-item label=\"存储位置\">\r\n <span class=\"form-item-text\">{{ currentSecurityItem._location?.text ? currentSecurityItem._location.text : \"\" }}</span>\r\n </i-form-item>\r\n <i-form-item label=\"存储键值\">\r\n <span class=\"form-item-text\">{{ currentSecurityItem.locationKey }}</span>\r\n </i-form-item>\r\n <i-form-item label=\"username\">\r\n <span class=\"form-item-text\">{{ currentSecurityItem.content.username }}</span>\r\n </i-form-item>\r\n <i-form-item label=\"password\">\r\n <!-- <span class=\"form-item-text\">{{ \"·\" }}</span>-->\r\n <!-- <i-input class=\"diy-input\" v-model=\"model.password\" type=\"password\" password placeholder=\"请输入\"> </i-input>-->\r\n <i-input class=\"diy-password-input diy-input\" :value=\"currentSecurityItem.content.password\" type=\"password\"></i-input>\r\n </i-form-item>\r\n </i-form>\r\n </div>\r\n <div class=\"oauth-2\" v-if=\"currentSecurityItem.type === 'OAuth2'\">\r\n <i-form class=\"oauth-2-form diy-form\" label-colon>\r\n <i-form-item label=\"存储位置\">\r\n <span class=\"form-item-text\">{{ currentSecurityItem._location?.text ? currentSecurityItem._location.text : \"\" }}</span>\r\n </i-form-item>\r\n <i-form-item label=\"存储键值\">\r\n <span class=\"form-item-text\">{{ currentSecurityItem.locationKey }}</span>\r\n </i-form-item>\r\n <i-form-item>\r\n <u-tips-form-label slot=\"label\" :labelTitle=\"'Header Prefix'\" tips=\"token前缀 例如 Bearer\" label-colon></u-tips-form-label>\r\n <span class=\"form-item-text\">{{ currentSecurityItem.content.headerPrefix }}</span>\r\n </i-form-item>\r\n <i-form-item>\r\n <u-tips-form-label slot=\"label\" :labelTitle=\"'Grant Type'\" tips=\"认证类型\" label-colon></u-tips-form-label>\r\n <span class=\"form-item-text\">{{ findGrantTypeText(currentSecurityItem.content.grantType) }}</span>\r\n </i-form-item>\r\n <i-form-item>\r\n <u-tips-form-label slot=\"label\" :labelTitle=\"'Access Token Url'\" tips=\"获取token的httpUrl\" label-colon></u-tips-form-label>\r\n <span class=\"form-item-text\">{{ currentSecurityItem.content.tokenUrl }}</span>\r\n </i-form-item>\r\n <i-form-item>\r\n <u-tips-form-label slot=\"label\" :labelTitle=\"'TokenPath'\" tips=\"获取响应结果的token路径\" label-colon></u-tips-form-label>\r\n <span class=\"form-item-text\">{{ currentSecurityItem.content.tokenPath }}</span>\r\n </i-form-item>\r\n <i-form-item label=\"Client ID\">\r\n <span class=\"form-item-text\">{{ currentSecurityItem.content.clientId }}</span>\r\n </i-form-item>\r\n <i-form-item label=\"Client Secret\">\r\n <span class=\"form-item-text\">{{ currentSecurityItem.content.clientSecret }}</span>\r\n </i-form-item>\r\n <template v-if=\"currentSecurityItem.content.grantType === 'password'\">\r\n <i-form-item class=\"security-content-form-item\" label=\"username\">\r\n <span class=\"form-item-text\">{{ currentSecurityItem.content.username }}</span>\r\n </i-form-item>\r\n <i-form-item class=\"security-content-form-item\" label=\"password\">\r\n <i-input class=\"diy-password-input diy-input\" :value=\"currentSecurityItem.content.password\" type=\"password\"></i-input>\r\n </i-form-item>\r\n </template>\r\n <i-form-item label=\"Scope\">\r\n <u-tips-form-label slot=\"label\" :labelTitle=\"'Scope'\" tips=\"访问请求的范围,它可能有多个空格分隔的值\" label-colon></u-tips-form-label>\r\n <span class=\"form-item-text\">{{ currentSecurityItem.content.scope }}</span>\r\n </i-form-item>\r\n </i-form>\r\n </div>\r\n </div>\r\n </div>\r\n <u-security-modal v-model=\"showSecurity\" :projectID=\"projectID\" :isAdd=\"isAdd\"></u-security-modal>\r\n</article>\r\n"
26577
+ module.exports = "<article class=\"security-setting-v2\">\r\n <div class=\"left\">\r\n <i-form class=\"type-form diy-form\" label-colon>\r\n <i-form-item label=\"选择授权\">\r\n <i-select ref=\"addSecuritySelect\" class=\"diy-select add-security-select\" v-model=\"currentSecurityItemId\" @on-change=\"onChangeSecurityItem($event)\" @on-clear=\"onClear\" clearable>\r\n <i-option v-for=\"item in securityList\" :key=\"item.id\" :value=\"item.id\">{{ item.name }}</i-option>\r\n <i-option class=\"add-security-item\" value=\"''\">\r\n <div class=\"add-security-item-content\" @click.stop=\"onAddSecurityItem\">\r\n <i class=\"api-icon icon-add\"></i>\r\n <span>新建授权</span>\r\n </div>\r\n </i-option>\r\n </i-select>\r\n </i-form-item>\r\n <i-form-item label=\"授权类型\">\r\n <span class=\"security-type\">{{ currentSecurityItem._type?.text ? currentSecurityItem._type.text : \"暂无\" }}</span>\r\n </i-form-item>\r\n </i-form>\r\n </div>\r\n <div class=\"right\">\r\n <div class=\"right-title\">授权详情</div>\r\n <div class=\"right-content\">\r\n <div class=\"no-data\" v-if=\"!currentSecurityItem.type\">\r\n <div class=\"no-data-bg\"></div>\r\n <div class=\"no-data-text\">请在左侧下拉框中选择已建立授权</div>\r\n </div>\r\n <div class=\"script\" v-if=\"currentSecurityItem.type === 'GROOVY_SCRIPT'\">\r\n <i-input class=\"diy-input script-area\" type=\"textarea\" v-model=\"currentSecurityItem.scriptContent\" :readonly=\"true\"></i-input>\r\n </div>\r\n <div class=\"api-key\" v-if=\"currentSecurityItem.type === 'Api_Key'\">\r\n <i-form class=\"oauth-2-form diy-form\" label-colon>\r\n <i-form-item label=\"存储位置\">\r\n <span class=\"form-item-text\">{{ currentSecurityItem._location?.text ? currentSecurityItem._location.text : \"\"}}</span>\r\n </i-form-item>\r\n <i-form-item label=\"存储键值\">\r\n <span class=\"form-item-text\">{{ currentSecurityItem.locationKey }}</span>\r\n </i-form-item>\r\n <i-form-item label=\"key\">\r\n <span class=\"form-item-text\">{{ currentSecurityItem.content.key }}</span>\r\n </i-form-item>\r\n </i-form>\r\n </div>\r\n <div class=\"base-auth\" v-if=\"currentSecurityItem.type === 'Base_Auth'\">\r\n <i-form class=\"oauth-2-form diy-form\" label-colon>\r\n <i-form-item label=\"存储位置\">\r\n <span class=\"form-item-text\">{{ currentSecurityItem._location?.text ? currentSecurityItem._location.text : \"\" }}</span>\r\n </i-form-item>\r\n <i-form-item label=\"存储键值\">\r\n <span class=\"form-item-text\">{{ currentSecurityItem.locationKey }}</span>\r\n </i-form-item>\r\n <i-form-item label=\"username\">\r\n <span class=\"form-item-text\">{{ currentSecurityItem.content.username }}</span>\r\n </i-form-item>\r\n <i-form-item label=\"password\">\r\n <!-- <span class=\"form-item-text\">{{ \"·\" }}</span>-->\r\n <!-- <i-input class=\"diy-input\" v-model=\"model.password\" type=\"password\" password placeholder=\"请输入\"> </i-input>-->\r\n <i-input class=\"diy-password-input diy-input\" :value=\"currentSecurityItem.content.password\" type=\"password\"></i-input>\r\n </i-form-item>\r\n </i-form>\r\n </div>\r\n <div class=\"oauth-2\" v-if=\"currentSecurityItem.type === 'OAuth2'\">\r\n <i-form class=\"oauth-2-form diy-form\" label-colon>\r\n <i-form-item label=\"存储位置\">\r\n <span class=\"form-item-text\">{{ currentSecurityItem._location?.text ? currentSecurityItem._location.text : \"\" }}</span>\r\n </i-form-item>\r\n <i-form-item label=\"存储键值\">\r\n <span class=\"form-item-text\">{{ currentSecurityItem.locationKey }}</span>\r\n </i-form-item>\r\n <i-form-item>\r\n <u-tips-form-label slot=\"label\" :labelTitle=\"'Header Prefix'\" tips=\"token前缀 例如 Bearer\" label-colon></u-tips-form-label>\r\n <span class=\"form-item-text\">{{ currentSecurityItem.content.headerPrefix }}</span>\r\n </i-form-item>\r\n <i-form-item class=\"grant-type-item\">\r\n <u-tips-form-label slot=\"label\" :labelTitle=\"'Grant Type'\" tips=\"认证类型\" label-colon></u-tips-form-label>\r\n <span class=\"form-item-text\">{{ findGrantTypeText(currentSecurityItem.content.grantType) }}</span>\r\n </i-form-item>\r\n <i-form-item>\r\n <u-tips-form-label slot=\"label\" :labelTitle=\"'Access Token Url'\" tips=\"获取token的httpUrl\" label-colon></u-tips-form-label>\r\n <span class=\"form-item-text\">{{ currentSecurityItem.content.tokenUrl }}</span>\r\n </i-form-item>\r\n <i-form-item>\r\n <u-tips-form-label slot=\"label\" :labelTitle=\"'TokenPath'\" tips=\"获取响应结果的token路径\" label-colon></u-tips-form-label>\r\n <span class=\"form-item-text\">{{ currentSecurityItem.content.tokenPath }}</span>\r\n </i-form-item>\r\n <i-form-item label=\"Client ID\">\r\n <span class=\"form-item-text\">{{ currentSecurityItem.content.clientId }}</span>\r\n </i-form-item>\r\n <i-form-item label=\"Client Secret\">\r\n <span class=\"form-item-text\">{{ currentSecurityItem.content.clientSecret }}</span>\r\n </i-form-item>\r\n <template v-if=\"currentSecurityItem.content.grantType === 'password'\">\r\n <i-form-item class=\"security-content-form-item\" label=\"username\">\r\n <span class=\"form-item-text\">{{ currentSecurityItem.content.username }}</span>\r\n </i-form-item>\r\n <i-form-item class=\"security-content-form-item\" label=\"password\">\r\n <i-input class=\"diy-password-input diy-input\" :value=\"currentSecurityItem.content.password\" type=\"password\"></i-input>\r\n </i-form-item>\r\n </template>\r\n <i-form-item label=\"Scope\">\r\n <u-tips-form-label slot=\"label\" :labelTitle=\"'Scope'\" tips=\"访问请求的范围,它可能有多个空格分隔的值\" label-colon></u-tips-form-label>\r\n <span class=\"form-item-text\">{{ currentSecurityItem.content.scope }}</span>\r\n </i-form-item>\r\n </i-form>\r\n </div>\r\n </div>\r\n </div>\r\n <u-security-modal v-model=\"showSecurity\" :projectID=\"projectID\" :isAdd=\"isAdd\"></u-security-modal>\r\n</article>\r\n"
26527
26578
 
26528
26579
  /***/ }),
26529
26580
 
@@ -26720,7 +26771,7 @@ fixRegExpWellKnownSymbolLogic('match', function (MATCH, nativeMatch, maybeCallNa
26720
26771
  /***/ "46d3":
26721
26772
  /***/ (function(module, exports) {
26722
26773
 
26723
- module.exports = "<article class=\"u-common-tree u-type-tree\">\n <slot name=\"header\">\n <header slot=\"header\" class=\"tree-header\">\n <span>合并模型列表</span>\n <i-upload\n class=\"action-item\"\n :action=\"uploadAction\"\n accept=\".json\"\n :headers=\"headers\"\n :show-upload-list=\"false\"\n :format=\"['json']\"\n :on-success=\"onSuccess\"\n :before-upload=\"onBeforeUpload\"\n :on-format-error=\"onFormatError\"\n >\n <i title=\"导入\" class=\"iconfont icon-import\"></i>\n </i-upload>\n <i\n @click=\"onModelExport(null)\"\n :class=\"{'disabled': !data.length}\"\n class=\"iconfont icon-export\"\n title=\"导出\"\n ></i>\n <i @click.stop=\"onAddTreeNode\" title=\"新增合并模型\" class=\"iconfont icon-add-folder\"></i>\n </header>\n </slot>\n <section class=\"content\">\n <i-input class=\"search-input diy-input\" suffix=\"ios-search\" :placeholder=\"placeholder\" @on-change=\"onFilter\" v-model=\"keyword\" />\n <i-tree :data=\"renderData\" :render=\"renderContent\" @on-toggle-expand=\"onToggleExpand\"></i-tree>\n </section>\n <u-add-node :data=\"tempNode\" :categories=\"data\" v-model=\"showAddTreeNodeModal\" @on-refresh=\"queryTreeData\"></u-add-node>\n\n <i-modal draggable sticky reset-drag-position v-model=\"showImportModal\" class=\"diy-modal duplicate-import-modal\" width=\"800\" :mask-closable=\"false\" title=\"导入已合并接口\">\n <div class=\"import-title\">上传成功</div>\n <div class=\"import-label\">{{ `上传共${importResult.total}条合并接口数据,其中${importResult.total - importResult.duplicateNum}条可成功导入。` }}</div>\n <div class=\"import-label\">{{ `发现以下${importResult.duplicateNum}条接口数据存在编码重复(编码已存在),将不会被导入。` }}</div>\n <i-table class=\"diy-table import-modal-table\" :columns=\"columns\" :data=\"importResult.items\">\n </i-table>\n <footer slot=\"footer\">\n <i-button class=\"diy-btn-primary\" type=\"primary\" @click=\"onImportConfirm\">确定</i-button>\n <i-button class=\"diy-btn-default\" @click=\"onImportCancel\">取消</i-button>\n </footer>\n </i-modal>\n</article>\n"
26774
+ module.exports = "<article class=\"u-common-tree u-type-tree\">\r\n <slot name=\"header\">\r\n <header slot=\"header\" class=\"tree-header\">\r\n <span>合并模型列表</span>\r\n <i-upload\r\n class=\"action-item\"\r\n :action=\"uploadAction\"\r\n accept=\".json\"\r\n :headers=\"headers\"\r\n :show-upload-list=\"false\"\r\n :format=\"['json']\"\r\n :on-success=\"onSuccess\"\r\n :before-upload=\"onBeforeUpload\"\r\n :on-format-error=\"onFormatError\"\r\n >\r\n <i title=\"导入\" class=\"iconfont icon-import\"></i>\r\n </i-upload>\r\n <i\r\n @click=\"onModelExport(null)\"\r\n :class=\"{'disabled': !data.length}\"\r\n class=\"iconfont icon-export\"\r\n title=\"导出\"\r\n ></i>\r\n <i @click.stop=\"onAddTreeNode\" title=\"新增合并模型\" class=\"iconfont icon-add-folder\"></i>\r\n </header>\r\n </slot>\r\n <section class=\"content\">\r\n <i-input class=\"search-input diy-input\" suffix=\"ios-search\" :placeholder=\"placeholder\" @on-change=\"onFilter\" v-model=\"keyword\" />\r\n <i-tree :data=\"renderData\" :render=\"renderContent\" @on-toggle-expand=\"onToggleExpand\"></i-tree>\r\n </section>\r\n <u-add-node :data=\"tempNode\" :categories=\"data\" v-model=\"showAddTreeNodeModal\" @on-refresh=\"queryTreeData\"></u-add-node>\r\n\r\n <i-modal draggable sticky reset-drag-position v-model=\"showImportModal\" class=\"diy-modal duplicate-import-modal\" width=\"800\" :mask-closable=\"false\" title=\"导入已合并接口\">\r\n <div class=\"import-title\">上传成功</div>\r\n <div class=\"import-label\">{{ `上传共${importResult.total}条合并接口数据,其中${importResult.total - importResult.duplicateNum}条可成功导入。` }}</div>\r\n <div class=\"import-label\">{{ `发现以下${importResult.duplicateNum}条接口数据存在编码重复(编码已存在),将不会被导入。` }}</div>\r\n <i-table class=\"diy-table import-modal-table\" :columns=\"columns\" :data=\"importResult.items\">\r\n </i-table>\r\n <footer slot=\"footer\">\r\n <i-button class=\"diy-btn-primary\" type=\"primary\" @click=\"onImportConfirm\">确定</i-button>\r\n <i-button class=\"diy-btn-default\" @click=\"onImportCancel\">取消</i-button>\r\n </footer>\r\n </i-modal>\r\n</article>\r\n"
26724
26775
 
26725
26776
  /***/ }),
26726
26777
 
@@ -37999,6 +38050,150 @@ var webkit = userAgent.match(/AppleWebKit\/(\d+)\./);
37999
38050
  module.exports = !!webkit && +webkit[1];
38000
38051
 
38001
38052
 
38053
+ /***/ }),
38054
+
38055
+ /***/ "5319":
38056
+ /***/ (function(module, exports, __webpack_require__) {
38057
+
38058
+ "use strict";
38059
+
38060
+ var apply = __webpack_require__("2ba4");
38061
+ var call = __webpack_require__("c65b");
38062
+ var uncurryThis = __webpack_require__("e330");
38063
+ var fixRegExpWellKnownSymbolLogic = __webpack_require__("d784");
38064
+ var fails = __webpack_require__("d039");
38065
+ var anObject = __webpack_require__("825a");
38066
+ var isCallable = __webpack_require__("1626");
38067
+ var toIntegerOrInfinity = __webpack_require__("5926");
38068
+ var toLength = __webpack_require__("50c4");
38069
+ var toString = __webpack_require__("577e");
38070
+ var requireObjectCoercible = __webpack_require__("1d80");
38071
+ var advanceStringIndex = __webpack_require__("8aa5");
38072
+ var getMethod = __webpack_require__("dc4a");
38073
+ var getSubstitution = __webpack_require__("0cb2");
38074
+ var regExpExec = __webpack_require__("14c3");
38075
+ var wellKnownSymbol = __webpack_require__("b622");
38076
+
38077
+ var REPLACE = wellKnownSymbol('replace');
38078
+ var max = Math.max;
38079
+ var min = Math.min;
38080
+ var concat = uncurryThis([].concat);
38081
+ var push = uncurryThis([].push);
38082
+ var stringIndexOf = uncurryThis(''.indexOf);
38083
+ var stringSlice = uncurryThis(''.slice);
38084
+
38085
+ var maybeToString = function (it) {
38086
+ return it === undefined ? it : String(it);
38087
+ };
38088
+
38089
+ // IE <= 11 replaces $0 with the whole match, as if it was $&
38090
+ // https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
38091
+ var REPLACE_KEEPS_$0 = (function () {
38092
+ // eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
38093
+ return 'a'.replace(/./, '$0') === '$0';
38094
+ })();
38095
+
38096
+ // Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
38097
+ var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
38098
+ if (/./[REPLACE]) {
38099
+ return /./[REPLACE]('a', '$0') === '';
38100
+ }
38101
+ return false;
38102
+ })();
38103
+
38104
+ var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
38105
+ var re = /./;
38106
+ re.exec = function () {
38107
+ var result = [];
38108
+ result.groups = { a: '7' };
38109
+ return result;
38110
+ };
38111
+ // eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive
38112
+ return ''.replace(re, '$<a>') !== '7';
38113
+ });
38114
+
38115
+ // @@replace logic
38116
+ fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) {
38117
+ var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
38118
+
38119
+ return [
38120
+ // `String.prototype.replace` method
38121
+ // https://tc39.es/ecma262/#sec-string.prototype.replace
38122
+ function replace(searchValue, replaceValue) {
38123
+ var O = requireObjectCoercible(this);
38124
+ var replacer = searchValue == undefined ? undefined : getMethod(searchValue, REPLACE);
38125
+ return replacer
38126
+ ? call(replacer, searchValue, O, replaceValue)
38127
+ : call(nativeReplace, toString(O), searchValue, replaceValue);
38128
+ },
38129
+ // `RegExp.prototype[@@replace]` method
38130
+ // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
38131
+ function (string, replaceValue) {
38132
+ var rx = anObject(this);
38133
+ var S = toString(string);
38134
+
38135
+ if (
38136
+ typeof replaceValue == 'string' &&
38137
+ stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&
38138
+ stringIndexOf(replaceValue, '$<') === -1
38139
+ ) {
38140
+ var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
38141
+ if (res.done) return res.value;
38142
+ }
38143
+
38144
+ var functionalReplace = isCallable(replaceValue);
38145
+ if (!functionalReplace) replaceValue = toString(replaceValue);
38146
+
38147
+ var global = rx.global;
38148
+ if (global) {
38149
+ var fullUnicode = rx.unicode;
38150
+ rx.lastIndex = 0;
38151
+ }
38152
+ var results = [];
38153
+ while (true) {
38154
+ var result = regExpExec(rx, S);
38155
+ if (result === null) break;
38156
+
38157
+ push(results, result);
38158
+ if (!global) break;
38159
+
38160
+ var matchStr = toString(result[0]);
38161
+ if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
38162
+ }
38163
+
38164
+ var accumulatedResult = '';
38165
+ var nextSourcePosition = 0;
38166
+ for (var i = 0; i < results.length; i++) {
38167
+ result = results[i];
38168
+
38169
+ var matched = toString(result[0]);
38170
+ var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);
38171
+ var captures = [];
38172
+ // NOTE: This is equivalent to
38173
+ // captures = result.slice(1).map(maybeToString)
38174
+ // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
38175
+ // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
38176
+ // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
38177
+ for (var j = 1; j < result.length; j++) push(captures, maybeToString(result[j]));
38178
+ var namedCaptures = result.groups;
38179
+ if (functionalReplace) {
38180
+ var replacerArgs = concat([matched], captures, position, S);
38181
+ if (namedCaptures !== undefined) push(replacerArgs, namedCaptures);
38182
+ var replacement = toString(apply(replaceValue, undefined, replacerArgs));
38183
+ } else {
38184
+ replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
38185
+ }
38186
+ if (position >= nextSourcePosition) {
38187
+ accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement;
38188
+ nextSourcePosition = position + matched.length;
38189
+ }
38190
+ }
38191
+ return accumulatedResult + stringSlice(S, nextSourcePosition);
38192
+ }
38193
+ ];
38194
+ }, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
38195
+
38196
+
38002
38197
  /***/ }),
38003
38198
 
38004
38199
  /***/ "554d":
@@ -40602,6 +40797,13 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
40602
40797
  }));
40603
40798
 
40604
40799
 
40800
+ /***/ }),
40801
+
40802
+ /***/ "88af":
40803
+ /***/ (function(module, exports) {
40804
+
40805
+ module.exports = "<i-modal draggable sticky reset-drag-position :mask-closable=\"false\" v-model=\"value\" width=\"800\" class=\"u-variable-modal diy-modal\" transfer>\r\n <header slot=\"header\">批量修改环境变量与授权</header>\r\n <main class=\"variable-content\">\r\n <div class=\"left\">\r\n <div class=\"left-title\">\r\n <div class=\"left-title-text\">选择API</div>\r\n </div>\r\n <div class=\"left-content\">\r\n <i-input class=\"diy-input search-input\" v-model=\"keyword\" placeholder=\"输入关键字查询\" @on-change=\"onFilter\">\r\n <template #prefix>\r\n <i-icon type=\"ios-search\"/>\r\n </template>\r\n </i-input>\r\n <div class=\"security-list\">\r\n <i-checkbox class=\"security-list-item-checkbox\" v-model=\"allSelect\" @on-change=\"onAllSelect\">全选</i-checkbox>\r\n <div class=\"security-list-item\"\r\n v-for=\"(item,index) in apiList\"\r\n :key=\"item.id || index\"\r\n >\r\n <div class=\"security-list-item-name\">\r\n <i-checkbox v-model=\"item.selected\" @on-change=\"onSelect($event,item)\"></i-checkbox>\r\n <i class=\"iconfont icon-API\"></i>\r\n <div class=\"security-list-item-text\" :title=\"item.name\">{{ item.name }}</div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"right\">\r\n <div class=\"right-title\">环境与授权</div>\r\n <div class=\"right-content\">\r\n <i-form ref=\"batch-api-form\" class=\"variable-content-form\" label-colon label-position=\"left\" v-if=\"isEmpty\" :rules=\"rules\" :label-width=\"100\" :model=\"formData\">\r\n <i-form-item class=\"content-form-item\" label=\"选择属性\">\r\n <i-select class=\"diy-select\" placeholder=\"请输入\" clearable v-model=\"type\">\r\n <i-option value=\"env\">环境变量</i-option>\r\n <i-option value=\"auth\">授权设置</i-option>\r\n <i-option value=\"both\">环境变量和授权设置</i-option>\r\n </i-select>\r\n </i-form-item>\r\n <i-form-item class=\"content-form-item\" v-if=\"type !== 'auth'\" label=\"环境变量\" prop=\"envId\">\r\n <i-select class=\"diy-select diy-batch-select\" placeholder=\"请选择\" clearable v-model=\"formData.envId\">\r\n <i-option value=\"empty\">清空所有已设置环境变量</i-option>\r\n <i-option v-for=\"item in variableList\" :key=\"item.name\" :value=\"item.id\">{{item.name}} </i-option>\r\n </i-select>\r\n </i-form-item>\r\n <i-form-item class=\"content-form-item\" label=\"授权设置\" v-if=\"type !== 'env'\" prop=\"authId\">\r\n <i-select class=\"diy-select diy-batch-select\" placeholder=\"请选择\" clearable v-model=\"formData.authId\">\r\n <i-option value=\"empty\">清空所有已设置授权</i-option>\r\n <i-option v-for=\"item in securityList\" :key=\"item.name\" :value=\"item.id\">{{item.name}} </i-option>\r\n </i-select>\r\n </i-form-item>\r\n </i-form>\r\n </div>\r\n </div>\r\n </main>\r\n\r\n <footer slot=\"footer\">\r\n <template>\r\n <i-button class=\"diy-btn-default\" @click=\"onCancel\">取消</i-button>\r\n <i-button type=\"primary\" class=\"diy-btn-primary\" @click=\"onSave\">保存</i-button>\r\n </template>\r\n </footer>\r\n</i-modal>\r\n"
40806
+
40605
40807
  /***/ }),
40606
40808
 
40607
40809
  /***/ "8925":
@@ -40623,6 +40825,13 @@ if (!isCallable(store.inspectSource)) {
40623
40825
  module.exports = store.inspectSource;
40624
40826
 
40625
40827
 
40828
+ /***/ }),
40829
+
40830
+ /***/ "8962":
40831
+ /***/ (function(module, exports) {
40832
+
40833
+ module.exports = "<i-modal draggable sticky reset-drag-position :mask-closable=\"false\" v-model=\"value\" width=\"800\" class=\"u-variable-modal diy-modal\" transfer>\r\n <header slot=\"header\">环境变量</header>\r\n <main class=\"variable-content\">\r\n <div class=\"left\">\r\n <div class=\"left-title\">\r\n <div class=\"left-title-text\">环境列表</div>\r\n <i class=\"api-icon icon-add\" @click=\"onAddItem\"></i>\r\n </div>\r\n <div class=\"left-content\">\r\n <i-input class=\"diy-input search-input\" v-model=\"keyword\" placeholder=\"输入关键字查询\" @on-change=\"onFilter\">\r\n <template #prefix>\r\n <i-icon type=\"ios-search\"/>\r\n </template>\r\n </i-input>\r\n <div class=\"security-list\">\r\n <div class=\"security-list-item\"\r\n :class=\"currentItem.id === item.id ? 'security-list-item-active' : ''\"\r\n v-for=\"(item,index) in varList\"\r\n :key=\"item.id || index\"\r\n @click=\"onSelectItem(item)\"\r\n >\r\n <div class=\"security-list-item-name\">\r\n <i class=\"iconfont icon-huanjing\"></i>\r\n <div class=\"security-list-item-text\" :class=\"currentItem.id === item.id ? 'security-list-item-text-active' : ''\">{{ item.name || \"新环境\" }}</div>\r\n </div>\r\n <i-poptip confirm title=\"确认删除这条数据吗?\" transfer placement=\"top-end\" @on-ok=\"onDelete(item)\">\r\n <i class=\"iconfont icon-delete\"></i>\r\n </i-poptip>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"right\">\r\n <div class=\"right-title\">环境内容</div>\r\n <div class=\"right-content\">\r\n <i-form class=\"variable-content-form\" label-colon label-position=\"left\" v-if=\"isEmpty\" :rules=\"rules\" :label-width=\"100\" :model=\"formData\">\r\n <i-form-item class=\"content-form-item\" label=\"环境名称\" prop=\"name\">\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"formData.name\"></i-input>\r\n </i-form-item>\r\n <i-form-item class=\"content-form-item\" label=\"域名\" prop=\"address\">\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"formData.address\">\r\n <i-select class=\"diy-select\" v-model=\"formData.type\" slot=\"prepend\" style=\"width: 100px\">\r\n <i-option value=\"http\">http://</i-option>\r\n <i-option value=\"https\">https://</i-option>\r\n </i-select>\r\n </i-input>\r\n </i-form-item>\r\n <i-form-item label=\"描述\" class=\"content-form-item item-remark\" prop=\"remark\">\r\n <i-input class=\"diy-input remark-textarea\" placeholder=\"请输入\" type=\"textarea\" v-model=\"formData.remark\"></i-input>\r\n </i-form-item>\r\n </i-form>\r\n </div>\r\n </div>\r\n </main>\r\n\r\n <footer slot=\"footer\">\r\n <template>\r\n <i-button class=\"diy-btn-default\" @click=\"onCancel\">取消</i-button>\r\n <i-button type=\"primary\" class=\"diy-btn-primary\" @click=\"onSave\">保存</i-button>\r\n </template>\r\n </footer>\r\n</i-modal>\r\n"
40834
+
40626
40835
  /***/ }),
40627
40836
 
40628
40837
  /***/ "89c1":
@@ -41734,6 +41943,13 @@ module.exports = require("vue");
41734
41943
 
41735
41944
  /***/ }),
41736
41945
 
41946
+ /***/ "8ea2":
41947
+ /***/ (function(module, exports, __webpack_require__) {
41948
+
41949
+ // extracted by mini-css-extract-plugin
41950
+
41951
+ /***/ }),
41952
+
41737
41953
  /***/ "90e3":
41738
41954
  /***/ (function(module, exports, __webpack_require__) {
41739
41955
 
@@ -42068,13 +42284,6 @@ dom.importCssString(exports.cssText, exports.cssClass);
42068
42284
  });
42069
42285
 
42070
42286
 
42071
- /***/ }),
42072
-
42073
- /***/ "9721":
42074
- /***/ (function(module, exports, __webpack_require__) {
42075
-
42076
- // extracted by mini-css-extract-plugin
42077
-
42078
42287
  /***/ }),
42079
42288
 
42080
42289
  /***/ "981a":
@@ -42758,13 +42967,6 @@ module.exports = "<i-poptip\r\n transfer\r\n class=\"u-tree-selector\"\r\n
42758
42967
 
42759
42968
  /***/ }),
42760
42969
 
42761
- /***/ "a406":
42762
- /***/ (function(module, exports) {
42763
-
42764
- module.exports = "<span>\r\n <span>{{labelTitle}}</span>\r\n <i-poptip trigger=\"hover\" :content=\"tips\">\r\n <i class=\"api-icon icon-warning\" />\r\n </i-poptip>\r\n <span v-if=\"labelColon\">:</span>\r\n</span>\r\n"
42765
-
42766
- /***/ }),
42767
-
42768
42970
  /***/ "a434":
42769
42971
  /***/ (function(module, exports, __webpack_require__) {
42770
42972
 
@@ -43182,6 +43384,27 @@ setToStringTag($Symbol, SYMBOL);
43182
43384
  hiddenKeys[HIDDEN] = true;
43183
43385
 
43184
43386
 
43387
+ /***/ }),
43388
+
43389
+ /***/ "a630":
43390
+ /***/ (function(module, exports, __webpack_require__) {
43391
+
43392
+ var $ = __webpack_require__("23e7");
43393
+ var from = __webpack_require__("4df4");
43394
+ var checkCorrectnessOfIteration = __webpack_require__("1c7e");
43395
+
43396
+ var INCORRECT_ITERATION = !checkCorrectnessOfIteration(function (iterable) {
43397
+ // eslint-disable-next-line es/no-array-from -- required for testing
43398
+ Array.from(iterable);
43399
+ });
43400
+
43401
+ // `Array.from` method
43402
+ // https://tc39.es/ecma262/#sec-array.from
43403
+ $({ target: 'Array', stat: true, forced: INCORRECT_ITERATION }, {
43404
+ from: from
43405
+ });
43406
+
43407
+
43185
43408
  /***/ }),
43186
43409
 
43187
43410
  /***/ "a640":
@@ -45814,13 +46037,6 @@ $({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {
45814
46037
  });
45815
46038
 
45816
46039
 
45817
- /***/ }),
45818
-
45819
- /***/ "b676":
45820
- /***/ (function(module, exports) {
45821
-
45822
- module.exports = "<article class=\"security-setting\">\r\n <i-form class=\"type-form diy-form\" label-colon>\r\n <i-form-item label=\"类型\">\r\n <i-select transfer v-model=\"interfaceModel.authentication && interfaceModel.authentication.type\" class=\"diy-select\">\r\n <i-option v-for=\"item in securityTypeList\" :key=\"item.name\" :value=\"item.name\">{{item.text}} </i-option>\r\n </i-select>\r\n <div class=\"tips\">\r\n <i class=\"api-icon icon-warning\"></i>\r\n <span>认证类型</span>\r\n </div>\r\n </i-form-item>\r\n <i-form-item label=\"存储位置\">\r\n <i-select transfer v-model=\"interfaceModel.authentication && interfaceModel.authentication.location\" class=\"diy-select\">\r\n <i-option v-for=\"item in tokenLocationTypeList\" :key=\"item.name\" :value=\"item.name\"> {{item.text}} </i-option>\r\n </i-select>\r\n <div class=\"tips\">\r\n <i class=\"api-icon icon-warning\"></i>\r\n <span>认证信息存储位置</span>\r\n </div>\r\n </i-form-item>\r\n <i-form-item label=\"存储键值\">\r\n <i-input class=\"diy-input\" v-model=\"interfaceModel.authentication && interfaceModel.authentication.locationKey\"> </i-input>\r\n <div class=\"tips\">\r\n <i class=\"api-icon icon-warning\"></i>\r\n <span>认证信息存储键值</span>\r\n </div>\r\n </i-form-item>\r\n </i-form>\r\n <section>\r\n <i-form label-colon :label-width=\"200\" class=\"diy-form content-form\" label-position=\"left\">\r\n <template v-if=\"interfaceModel.authentication && interfaceModel.authentication.type === 'Base_Auth'\">\r\n <i-form-item label=\"username\">\r\n <i-input class=\"diy-input\" v-model=\"model.username\" placeholder=\"请输入\"> </i-input>\r\n </i-form-item>\r\n <i-form-item label=\"password\">\r\n <i-input class=\"diy-input\" v-model=\"model.password\" placeholder=\"请输入\" type=\"password\"> </i-input>\r\n </i-form-item>\r\n </template>\r\n <template v-if=\"interfaceModel.authentication && interfaceModel.authentication.type === 'OAuth2'\">\r\n <i-form-item>\r\n <u-tips-form-label slot=\"label\" label-colon labelTitle=\"Header Prefix\" tips=\"token前缀 例如 Bearer \"> </u-tips-form-label>\r\n <i-input class=\"diy-input\" v-model=\"model.headerPrefix\" placeholder=\"请输入\"> </i-input>\r\n </i-form-item>\r\n <i-form-item>\r\n <u-tips-form-label slot=\"label\" label-colon labelTitle=\"Grant Type\" tips=\"认证类型\"> </u-tips-form-label>\r\n <i-select transfer v-model=\"model.grantType\" class=\"diy-select\">\r\n <i-option v-for=\"item in grantTypeList\" :key=\"item.name\" :value=\"item.name\"> {{item.text}} </i-option>\r\n </i-select>\r\n </i-form-item>\r\n <i-form-item>\r\n <u-tips-form-label label-colon slot=\"label\" labelTitle=\"Access Token Url\" tips=\"获取token的httpUrl\"> </u-tips-form-label>\r\n <i-input class=\"diy-input\" v-model=\"model.tokenUrl\" placeholder=\"请输入\"> </i-input>\r\n </i-form-item>\r\n <i-form-item>\r\n <u-tips-form-label label-colon slot=\"label\" labelTitle=\"TokenPath\" tips=\"获取响应结果的token路径\"> </u-tips-form-label>\r\n <i-input class=\"diy-input\" v-model=\"model.tokenPath\" placeholder=\"请输入\"> </i-input>\r\n </i-form-item>\r\n <i-form-item label=\"Client ID\">\r\n <i-input class=\"diy-input\" v-model=\"model.clientId\" placeholder=\"请输入\"> </i-input>\r\n </i-form-item>\r\n <i-form-item label=\"Client Secret\">\r\n <i-input class=\"diy-input\" v-model=\"model.clientSecret\" placeholder=\"请输入\"> </i-input>\r\n </i-form-item>\r\n <template v-if=\"model.grantType === 'password'\">\r\n <i-form-item label=\"username\">\r\n <i-input class=\"diy-input\" v-model=\"model.username\" placeholder=\"请输入\"> </i-input>\r\n </i-form-item>\r\n <i-form-item label=\"password\">\r\n <i-input class=\"diy-input\" v-model=\"model.password\" type=\"password\" password placeholder=\"请输入\"> </i-input>\r\n </i-form-item>\r\n </template>\r\n <i-form-item label=\"Scope\">\r\n <i-input class=\"diy-input\" v-model=\"model.scope\" placeholder=\"请输入\"> </i-input>\r\n </i-form-item>\r\n </template>\r\n <template v-if=\"interfaceModel.authentication && interfaceModel.authentication.type === 'Api_Key'\">\r\n <i-form-item label=\"key\">\r\n <i-input class=\"diy-input\" v-model=\"model.key\" placeholder=\"请输入\"> </i-input>\r\n </i-form-item>\r\n </template>\r\n <i-button type=\"primary\" class=\"clear-btn diy-btn-primary\" @click=\"onClear\">清空</i-button>\r\n </i-form>\r\n </section>\r\n</article>\r\n"
45823
-
45824
46040
  /***/ }),
45825
46041
 
45826
46042
  /***/ "b727":
@@ -47237,7 +47453,7 @@ module.exports = /ipad|iphone|ipod/i.test(userAgent) && global.Pebble !== undefi
47237
47453
  /***/ "d63e":
47238
47454
  /***/ (function(module, exports) {
47239
47455
 
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"
47456
+ module.exports = "<article class=\"project-detail\">\r\n <header>\r\n <div class=\"environment\">\r\n <i class=\"iconfont icon-zhankai\" @click=\"onBack\"></i>\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 v-if=\"projectId && projectName\" type=\"primary\" class=\"diy-btn-primary\" ghost @click=\"onOpenEnvModal\"><i class=\"iconfont icon-bianliang\"></i>环境变量</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\" @on-success=\"onBatchSuccess\"></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 <u-environment-modal :visiable.sync=\"showEnvironmentModal\" :projectId=\"projectId\"></u-environment-modal>\r\n</article>\r\n"
47241
47457
 
47242
47458
  /***/ }),
47243
47459
 
@@ -47373,7 +47589,7 @@ module.exports = "<div class=\"v-parameter-list-container\">\r\n <main>\r\n
47373
47589
  /***/ "d8e7":
47374
47590
  /***/ (function(module, exports) {
47375
47591
 
47376
- module.exports = "<!DOCTYPE html>\n<article class=\"v-api-combine-info-wrapper\">\n <header class=\"header\">\n {{title}}\n </header>\n <main>\n <i-form ref=\"form\" class=\"info-form\" :model=\"model\" :rules=\"rules\">\n <i-row>\n <section class=\"title-g\">基本信息</section>\n <i-form-item label=\"名称:\" prop=\"name\">\n <i-input class=\"diy-input\" placeholder=\"请输入名称\" v-model=\"model.name\" :disabled=\"!isEdit\"></i-input>\n </i-form-item>\n <i-form-item label=\"编码:\" prop=\"code\">\n <i-input class=\"diy-input\" placeholder=\"请输入编码\" v-model=\"model.code\" :disabled=\"!isEdit\"></i-input>\n </i-form-item>\n <i-form-item class=\"full-width\" label=\"描述:\">\n <i-input type=\"textarea\" class=\"diy-input-textarea\" :rows=\"1\" placeholder=\"请输入描述\" v-model=\"model.description\" :disabled=\"!isEdit\"></i-input>\n </i-form-item>\n </i-row>\n <i-row>\n <section class=\"title-g\">待合并列表</section>\n <section class=\"to-combine-list\">\n <template v-if=\"isEdit\">\n <i-button class=\"diy-btn-default\" @click=\"onAddDataModel\">添加数据模型</i-button>\n <i-button class=\"diy-btn-default\" @click=\"onAddApiProject\">添加 API</i-button>\n </template>\n <i-table class=\"diy-table\" :columns=\"relationColumns\" :data=\"model.relations\">\n <template #type=\"{row}\">\n <span>{{row.type==='MODEL'?'数据模型':row.type==='API'?'API':''}}</span>\n </template>\n <template #operates=\"{row,index}\">\n <div class=\"row-actions\">\n <i title=\"查看\" class=\"iconfont icon-detail\" @click=\"onDetail(row)\"></i>\n <i-poptip v-if=\"isEdit\" confirm transfer title=\"确认删除这条数据吗?\" @on-ok=\"onRelationDelete(row)\">\n <i title=\"删除\" class=\"iconfont icon-delete\"></i>\n </i-poptip>\n </div>\n </template>\n </i-table>\n </section>\n </i-row>\n <i-row>\n <section class=\"title-g\">参数详情</section>\n <section class=\"parameter-detail\">\n <section class=\"card-panel card-panel-no-right-border\">\n <i-tabs>\n <i-tab-pane label=\"请求参数\" name=\"request\">\n <u-request-parameter-list :data=\"model.reqParams\" :isEdit=\"isEdit\"></u-request-parameter-list>\n </i-tab-pane>\n <i-tab-pane label=\"响应参数\" name=\"response\">\n <u-response-parameter-list :data=\"model.respParams\" :isEdit=\"isEdit\"></u-response-parameter-list>\n </i-tab-pane>\n </i-tabs>\n </section>\n <section class=\"card-panel\">\n <div class=\"card-panel-header\">\n <div>\n <span>执行脚本</span>\n <i-icon class=\"help-icon\" type=\"md-alert\" @click=\"onOpenDoc\" title=\"帮助文档\"> </i-icon>\n </div>\n <span class=\"action-text\" @click.stop=\"onOpenTest\">\n <i class=\"iconfont icon-run\"></i>\n <span>试运行</span>\n </span>\n </div>\n <div class=\"card-panel-main\">\n <u-base-editor class=\"editor\" :data.sync=\"model.content\" :readOnly=\"!isEdit\"></u-base-editor>\n </div>\n </section>\n </section>\n </i-row>\n </i-form>\n </main>\n <footer>\n <template v-if=\"isEdit\">\n <i-button type=\"primary\" class=\"diy-btn-primary\" @click.stop=\"onSave\">确定</i-button>\n <i-button type=\"text\" class=\"diy-btn-text\" @click.stop=\"onBack\">取消</i-button>\n </template>\n <template v-else>\n <i-button type=\"primary\" class=\"diy-btn-primary\" @click.stop=\"onBack\">关闭</i-button>\n </template>\n </footer>\n <u-data-model-modal v-model=\"dataModelShow\" :data=\"dataModelRelations\" @save=\"onRelationsSave\"></u-data-model-modal>\n <u-api-project-modal v-model=\"apiProjectShow\" :data=\"apiProjectRelations\" @save=\"onRelationsSave\"></u-api-project-modal>\n <u-data-model-doc-modal v-model=\"dataModelDocShow\" :doc=\"dataModelDoc\"></u-data-model-doc-modal>\n <u-api-project-detail-modal :visiable.sync=\"apiProjectDetailShow\" :model=\"apiProjectDetail\"></u-api-project-detail-modal>\n <u-test-run-modal :visible.sync=\"testShow\" :params=\"model.reqParams\" :data=\"testResult\" @on-run=\"onTestRun\"></u-test-run-modal>\n <u-data-model-doc v-model=\"docShow\" :doc=\"doc\"></u-data-model-doc>\n</article>\n"
47592
+ module.exports = "<!DOCTYPE html>\r\n<article class=\"v-api-combine-info-wrapper\">\r\n <header class=\"header\">\r\n {{title}}\r\n </header>\r\n <main>\r\n <i-form ref=\"form\" class=\"info-form\" :model=\"model\" :rules=\"rules\">\r\n <i-row>\r\n <section class=\"title-g\">基本信息</section>\r\n <i-form-item label=\"名称:\" prop=\"name\">\r\n <i-input class=\"diy-input\" placeholder=\"请输入名称\" v-model=\"model.name\" :disabled=\"!isEdit\"></i-input>\r\n </i-form-item>\r\n <i-form-item label=\"编码:\" prop=\"code\">\r\n <i-input class=\"diy-input\" placeholder=\"请输入编码\" v-model=\"model.code\" :disabled=\"!isEdit\"></i-input>\r\n </i-form-item>\r\n <i-form-item class=\"full-width\" label=\"描述:\">\r\n <i-input type=\"textarea\" class=\"diy-input-textarea\" :rows=\"1\" placeholder=\"请输入描述\" v-model=\"model.description\" :disabled=\"!isEdit\"></i-input>\r\n </i-form-item>\r\n </i-row>\r\n <i-row>\r\n <section class=\"title-g\">待合并列表</section>\r\n <section class=\"to-combine-list\">\r\n <template v-if=\"isEdit\">\r\n <i-button class=\"diy-btn-default\" @click=\"onAddDataModel\">添加数据模型</i-button>\r\n <i-button class=\"diy-btn-default\" @click=\"onAddApiProject\">添加 API</i-button>\r\n </template>\r\n <i-table class=\"diy-table\" :columns=\"relationColumns\" :data=\"model.relations\">\r\n <template #type=\"{row}\">\r\n <span>{{row.type==='MODEL'?'数据模型':row.type==='API'?'API':''}}</span>\r\n </template>\r\n <template #operates=\"{row,index}\">\r\n <div class=\"row-actions\">\r\n <i title=\"查看\" class=\"iconfont icon-detail\" @click=\"onDetail(row)\"></i>\r\n <i-poptip v-if=\"isEdit\" confirm transfer title=\"确认删除这条数据吗?\" @on-ok=\"onRelationDelete(row)\">\r\n <i title=\"删除\" class=\"iconfont icon-delete\"></i>\r\n </i-poptip>\r\n </div>\r\n </template>\r\n </i-table>\r\n </section>\r\n </i-row>\r\n <i-row>\r\n <section class=\"title-g\">参数详情</section>\r\n <section class=\"parameter-detail\">\r\n <section class=\"card-panel card-panel-no-right-border\">\r\n <i-tabs>\r\n <i-tab-pane label=\"请求参数\" name=\"request\">\r\n <u-request-parameter-list :data=\"model.reqParams\" :isEdit=\"isEdit\"></u-request-parameter-list>\r\n </i-tab-pane>\r\n <i-tab-pane label=\"响应参数\" name=\"response\">\r\n <u-response-parameter-list :data=\"model.respParams\" :isEdit=\"isEdit\"></u-response-parameter-list>\r\n </i-tab-pane>\r\n </i-tabs>\r\n </section>\r\n <section class=\"card-panel\">\r\n <div class=\"card-panel-header\">\r\n <div>\r\n <span>执行脚本</span>\r\n <i-icon class=\"help-icon\" type=\"md-alert\" @click=\"onOpenDoc\" title=\"帮助文档\"> </i-icon>\r\n </div>\r\n <span class=\"action-text\" @click.stop=\"onOpenTest\">\r\n <i class=\"iconfont icon-run\"></i>\r\n <span>试运行</span>\r\n </span>\r\n </div>\r\n <div class=\"card-panel-main\">\r\n <u-base-editor class=\"editor\" :data.sync=\"model.content\" :readOnly=\"!isEdit\"></u-base-editor>\r\n </div>\r\n </section>\r\n </section>\r\n </i-row>\r\n </i-form>\r\n </main>\r\n <footer>\r\n <template v-if=\"isEdit\">\r\n <i-button type=\"primary\" class=\"diy-btn-primary\" @click.stop=\"onSave\">确定</i-button>\r\n <i-button type=\"text\" class=\"diy-btn-text\" @click.stop=\"onBack\">取消</i-button>\r\n </template>\r\n <template v-else>\r\n <i-button type=\"primary\" class=\"diy-btn-primary\" @click.stop=\"onBack\">关闭</i-button>\r\n </template>\r\n </footer>\r\n <u-data-model-modal v-model=\"dataModelShow\" :data=\"dataModelRelations\" @save=\"onRelationsSave\"></u-data-model-modal>\r\n <u-api-project-modal v-model=\"apiProjectShow\" :data=\"apiProjectRelations\" @save=\"onRelationsSave\"></u-api-project-modal>\r\n <u-data-model-doc-modal v-model=\"dataModelDocShow\" :doc=\"dataModelDoc\"></u-data-model-doc-modal>\r\n <u-api-project-detail-modal :visiable.sync=\"apiProjectDetailShow\" :model=\"apiProjectDetail\"></u-api-project-detail-modal>\r\n <u-test-run-modal :visible.sync=\"testShow\" :params=\"model.reqParams\" :data=\"testResult\" @on-run=\"onTestRun\"></u-test-run-modal>\r\n <u-data-model-doc v-model=\"docShow\" :doc=\"doc\"></u-data-model-doc>\r\n</article>\r\n"
47377
47593
 
47378
47594
  /***/ }),
47379
47595
 
@@ -47387,7 +47603,7 @@ module.exports = "<!DOCTYPE html>\n<article class=\"v-api-combine-info-wrapper\"
47387
47603
  /***/ "d953":
47388
47604
  /***/ (function(module, exports) {
47389
47605
 
47390
- module.exports = "<div class=\"interface-tree-node\" @click=\"onClick\">\r\n <span v-if=\"isLeaf && data.method\" class=\"method\" :class=\"data.method.toLowerCase() \"\r\n >{{data.method}}</span\r\n >\r\n <i class=\"api-icon icon-interface\"></i>\r\n <span class=\"interface-tree-node-name\" :title=\"data.title\">{{data.title}}</span>\r\n <i-dropdown\r\n transfer\r\n stop-propagation\r\n class=\"diy-dropdown\"\r\n transfer-class-name=\"diy-transfer-dropdown\"\r\n @on-click=\"onClickAction\"\r\n >\r\n <i class=\"api-icon icon-more\"></i>\r\n <i-dropdown-menu slot=\"list\">\r\n <template v-if=\"isLeaf\">\r\n <i-dropdown-item name=\"edit-interface\">修改</i-dropdown-item>\r\n <i-dropdown-item name=\"delete-interface\">删除</i-dropdown-item>\r\n <i-dropdown-item name=\"copy-interface\">复制</i-dropdown-item>\r\n </template>\r\n <template v-else>\r\n <i-dropdown-item name=\"edit-group\">修改</i-dropdown-item>\r\n <i-dropdown-item name=\"add-interface\">新增接口</i-dropdown-item>\r\n <u-confirm\r\n title=\"删除接口\"\r\n @on-ok=\"onDelete('delete-group')\"\r\n message=\"分组内的接口一并删除, 是否确认执行?\"\r\n >\r\n <i-dropdown-item>删除</i-dropdown-item>\r\n </u-confirm>\r\n </template>\r\n </i-dropdown-menu>\r\n </i-dropdown>\r\n</div>\r\n"
47606
+ module.exports = "<div class=\"interface-tree-node\" @click=\"onClick\">\r\n <span v-if=\"isLeaf && data.method\" class=\"method\" :class=\"data.method.toLowerCase() \"\r\n >{{data.method}}</span\r\n >\r\n <i :class=\"isLeaf ? 'iconfont icon-API' : 'iconfont icon-APIfenzu2'\"></i>\r\n <span class=\"interface-tree-node-name\" :title=\"data.title\">{{data.title}}</span>\r\n <i-dropdown\r\n transfer\r\n stop-propagation\r\n class=\"diy-dropdown\"\r\n transfer-class-name=\"diy-transfer-dropdown\"\r\n @on-click=\"onClickAction\"\r\n >\r\n <i class=\"api-icon icon-more\"></i>\r\n <i-dropdown-menu slot=\"list\">\r\n <template v-if=\"isLeaf\">\r\n <i-dropdown-item name=\"edit-interface\">修改</i-dropdown-item>\r\n <i-dropdown-item name=\"delete-interface\">删除</i-dropdown-item>\r\n <i-dropdown-item name=\"copy-interface\">复制</i-dropdown-item>\r\n </template>\r\n <template v-else>\r\n <i-dropdown-item name=\"edit-group\">修改</i-dropdown-item>\r\n <i-dropdown-item name=\"add-interface\">新增接口</i-dropdown-item>\r\n <i-dropdown-item name=\"edit-attribute\">批量修改属性</i-dropdown-item>\r\n <u-confirm\r\n title=\"删除接口\"\r\n @on-ok=\"onDelete('delete-group')\"\r\n message=\"分组内的接口一并删除, 是否确认执行?\"\r\n >\r\n <i-dropdown-item>删除</i-dropdown-item>\r\n </u-confirm>\r\n </template>\r\n </i-dropdown-menu>\r\n </i-dropdown>\r\n</div>\r\n"
47391
47607
 
47392
47608
  /***/ }),
47393
47609
 
@@ -48456,6 +48672,13 @@ if ($stringify) {
48456
48672
 
48457
48673
  /***/ }),
48458
48674
 
48675
+ /***/ "eaed":
48676
+ /***/ (function(module, exports, __webpack_require__) {
48677
+
48678
+ // extracted by mini-css-extract-plugin
48679
+
48680
+ /***/ }),
48681
+
48459
48682
  /***/ "eb57":
48460
48683
  /***/ (function(module, exports, __webpack_require__) {
48461
48684
 
@@ -48606,7 +48829,7 @@ module.exports = uncurryThis([].slice);
48606
48829
  /***/ "f40e":
48607
48830
  /***/ (function(module, exports) {
48608
48831
 
48609
- module.exports = "<article class=\"interface-settings\">\n <header>\n<!-- <i-input class=\"diy-input\" v-model=\"interfaceModel.info.url\">-->\n<!-- <i-select transfer slot=\"prepend\" class=\"diy-select\" v-model=\"interfaceModel.info.method\">-->\n<!-- <i-option v-for=\"item in typeList\" :key=\"item.value\" :value=\"item.value\">{{item.text}}</i-option>-->\n<!-- </i-select>-->\n<!-- </i-input>-->\n <i-select class=\"diy-select method-select\" v-model=\"interfaceModel.info.method\">\n <i-option v-for=\"item in typeList\" :key=\"item.value\" :value=\"item.value\">{{item.text}}</i-option>\n </i-select>\n <i-select class=\"diy-select env-select\" v-model=\"interfaceModel.info.envId\">\n <i-option v-for=\"item in paramList\" :key=\"item.id\" :value=\"item.id\">{{item.name + \":\" + item.value}}</i-option>\n </i-select>\n <i-input class=\"diy-input url-input\" v-model=\"interfaceModel.info.url\"></i-input>\n\n <i-button type=\"primary\" class=\"diy-btn-primary submit-btn\" @click=\"onRun\">发送</i-button>\n <i-button type=\"primary\" class=\"diy-btn-primary\" @click=\"onSave\" ghost>保存</i-button>\n <i-button type=\"primary\" class=\"diy-btn-primary his-btn\" @click=\"onVersion\" ghost>查看历史版本</i-button>\n <i-icon class=\"export\" title=\"导出\" type=\"md-download\" @click=\"onExport\" />\n <i-upload action=\"\" :before-upload=\"onImport\" :show-upload-list=\"false\">\n <i-icon class=\"import\" title=\"导入\" type=\"md-cloud-upload\" />\n </i-upload>\n </header>\n <main :class=\"{'transverse': !lengthwise}\">\n <section class=\"request\">\n <div class=\"request-bar\">\n <div\n class=\"tag\"\n :class=\"{'active': currentRequestSettingType.name.indexOf(item.name) === 0}\"\n v-for=\"(item,index) in requertSettingTypeList\"\n :key=\"item.name\"\n @click=\"onClickRequertSettingTpye(item)\"\n >\n <span>{{item.title}}</span>\n </div>\n </div>\n <div class=\"request-content\">\n <component\n :is=\"currentRequestSettingType.name\"\n :lengthwise=\"lengthwise\"\n :interface-model=\"interfaceModel\"\n :response=\"response\"\n :key=\"interfaceModel.info.id + currentRequestSettingType.name\"\n :projectID=\"projectId\"\n :currentSecurityID=\"currentId\"\n @on-current-id=\"onCurrentId\"\n ></component>\n </div>\n </section>\n <response :key=\"interfaceModel.info.id + 'response'\" :lengthwise=\"lengthwise\" :response=\"response\"></response>\n </main>\n <i-spin fix v-show=\"loading\">\n <i class=\"spin-icon-load ivu-icon\"></i>\n </i-spin>\n</article>\n"
48832
+ module.exports = "<article class=\"interface-settings\">\r\n <header>\r\n<!-- <i-input class=\"diy-input\" v-model=\"interfaceModel.info.url\">-->\r\n<!-- <i-select transfer slot=\"prepend\" class=\"diy-select\" v-model=\"interfaceModel.info.method\">-->\r\n<!-- <i-option v-for=\"item in typeList\" :key=\"item.value\" :value=\"item.value\">{{item.text}}</i-option>-->\r\n<!-- </i-select>-->\r\n<!-- </i-input>-->\r\n <i-select class=\"diy-select method-select\" v-model=\"interfaceModel.info.method\">\r\n <i-option v-for=\"item in typeList\" :key=\"item.value\" :value=\"item.value\">{{item.text}}</i-option>\r\n </i-select>\r\n <i-select class=\"diy-select env-select\" v-model=\"interfaceModel.info.envId\" clearable>\r\n <i-option v-for=\"item in paramList\" :key=\"item.id\" :value=\"item.id\">{{item.name + \":\" + item.value}}</i-option>\r\n </i-select>\r\n <i-input class=\"diy-input url-input\" v-model=\"interfaceModel.info.url\"></i-input>\r\n\r\n <i-button type=\"primary\" class=\"diy-btn-primary submit-btn\" @click=\"onRun\">发送</i-button>\r\n <i-button type=\"primary\" class=\"diy-btn-primary\" @click=\"onSave\" ghost>保存</i-button>\r\n <i-button type=\"primary\" class=\"diy-btn-primary his-btn\" @click=\"onVersion\" ghost>查看历史版本</i-button>\r\n <i class=\"export iconfont icon-xiazai\" title=\"导出\" type=\"md-download\" @click=\"onExport\"></i>\r\n <i-upload action=\"\" :before-upload=\"onImport\" :show-upload-list=\"false\">\r\n <i class=\"import iconfont icon-shangchuan\" title=\"导入\" type=\"md-cloud-upload\"></i>\r\n </i-upload>\r\n\r\n </header>\r\n <main :class=\"{'transverse': !lengthwise}\">\r\n <section class=\"request\">\r\n <div class=\"request-bar\">\r\n <div\r\n class=\"tag\"\r\n :class=\"{'active': currentRequestSettingType.name.indexOf(item.name) === 0}\"\r\n v-for=\"(item,index) in requertSettingTypeList\"\r\n :key=\"item.name\"\r\n @click=\"onClickRequertSettingTpye(item)\"\r\n >\r\n <span>{{item.title}}</span>\r\n </div>\r\n </div>\r\n <div class=\"request-content\">\r\n <component\r\n :is=\"currentRequestSettingType.name\"\r\n :lengthwise=\"lengthwise\"\r\n :interface-model=\"interfaceModel\"\r\n :response=\"response\"\r\n :key=\"interfaceModel.info.id + currentRequestSettingType.name\"\r\n :projectID=\"projectId\"\r\n :currentSecurityID=\"currentId\"\r\n @on-current-id=\"onCurrentId\"\r\n ></component>\r\n </div>\r\n </section>\r\n <response :key=\"interfaceModel.info.id + 'response'\" :lengthwise=\"lengthwise\" :response=\"response\"></response>\r\n </main>\r\n <i-spin fix v-show=\"loading\">\r\n <i class=\"spin-icon-load ivu-icon\"></i>\r\n </i-spin>\r\n</article>\r\n"
48610
48833
 
48611
48834
  /***/ }),
48612
48835
 
@@ -58489,12 +58712,36 @@ function (_super) {
58489
58712
 
58490
58713
  ApiService.prototype.updateSecurityItem = function (data) {
58491
58714
  return this._put("/unity/api/authentication", data);
58492
- };
58715
+ }; // @serviceHandler("query", { title: "环境列表查询", showErrorMsg: true })
58716
+ // public getEnvironmentParamList(data: any) {
58717
+ // return this._post<any>("/unity/api/environment-param/list", data);
58718
+ // }
58719
+
58493
58720
 
58494
- ApiService.prototype.getEnvironmentParamList = function (data) {
58721
+ ApiService.prototype.getVariableList = function (data) {
58495
58722
  return this._post("/unity/api/environment-param/list", data);
58496
58723
  };
58497
58724
 
58725
+ ApiService.prototype.saveVariable = function (data) {
58726
+ if (data === null || data === void 0 ? void 0 : data.id) {
58727
+ return this._put("/unity/api/environment-param", data);
58728
+ } else {
58729
+ return this._post("/unity/api/environment-param", data);
58730
+ }
58731
+ };
58732
+
58733
+ ApiService.prototype.deleteVariable = function (id) {
58734
+ return this._delete("/unity/api/environment-param/".concat(id));
58735
+ };
58736
+
58737
+ ApiService.prototype.onBatchEnv = function (data) {
58738
+ return this._post("/unity/api/info/env", data);
58739
+ };
58740
+
58741
+ ApiService.prototype.onBatchAuth = function (data) {
58742
+ return this._post("/unity/api/info/auth", data);
58743
+ };
58744
+
58498
58745
  var _a, _b;
58499
58746
 
58500
58747
  project_detail_service_decorate([serviceHandler("query", {
@@ -58584,9 +58831,29 @@ function (_super) {
58584
58831
  }), project_detail_service_metadata("design:type", Function), project_detail_service_metadata("design:paramtypes", [Object]), project_detail_service_metadata("design:returntype", void 0)], ApiService.prototype, "updateSecurityItem", null);
58585
58832
 
58586
58833
  project_detail_service_decorate([serviceHandler("query", {
58587
- title: "环境列表查询",
58834
+ title: "环境变量详情",
58588
58835
  showErrorMsg: true
58589
- }), project_detail_service_metadata("design:type", Function), project_detail_service_metadata("design:paramtypes", [Object]), project_detail_service_metadata("design:returntype", void 0)], ApiService.prototype, "getEnvironmentParamList", null);
58836
+ }), project_detail_service_metadata("design:type", Function), project_detail_service_metadata("design:paramtypes", [Object]), project_detail_service_metadata("design:returntype", void 0)], ApiService.prototype, "getVariableList", null);
58837
+
58838
+ project_detail_service_decorate([serviceHandler("save", {
58839
+ title: "保存环境变量",
58840
+ showErrorMsg: true
58841
+ }), project_detail_service_metadata("design:type", Function), project_detail_service_metadata("design:paramtypes", [Object]), project_detail_service_metadata("design:returntype", void 0)], ApiService.prototype, "saveVariable", null);
58842
+
58843
+ project_detail_service_decorate([serviceHandler("query", {
58844
+ title: "删除环境变量",
58845
+ showErrorMsg: true
58846
+ }), project_detail_service_metadata("design:type", Function), project_detail_service_metadata("design:paramtypes", [String]), project_detail_service_metadata("design:returntype", void 0)], ApiService.prototype, "deleteVariable", null);
58847
+
58848
+ project_detail_service_decorate([serviceHandler("query", {
58849
+ title: "批量修改环境变量",
58850
+ showErrorMsg: true
58851
+ }), project_detail_service_metadata("design:type", Function), project_detail_service_metadata("design:paramtypes", [Object]), project_detail_service_metadata("design:returntype", void 0)], ApiService.prototype, "onBatchEnv", null);
58852
+
58853
+ project_detail_service_decorate([serviceHandler("query", {
58854
+ title: "批量修改授权设置",
58855
+ showErrorMsg: true
58856
+ }), project_detail_service_metadata("design:type", Function), project_detail_service_metadata("design:paramtypes", [Object]), project_detail_service_metadata("design:returntype", void 0)], ApiService.prototype, "onBatchAuth", null);
58590
58857
 
58591
58858
  return ApiService;
58592
58859
  }(common_service);
@@ -59504,95 +59771,21 @@ function (_super) {
59504
59771
  }(flagwind_web_["Component"]);
59505
59772
 
59506
59773
  /* harmony default export */ var project_detail_global_variable_modal = (global_variable_modal_GlobalVariableModal);
59507
- // EXTERNAL MODULE: ./src/views/project-detail/index.scss
59508
- var project_detail = __webpack_require__("fe54");
59509
-
59510
- // CONCATENATED MODULE: ./src/views/project-detail/base-editor-setting.ts
59511
-
59512
-
59513
-
59514
-
59515
-
59516
-
59517
- var base_editor_setting_extends = undefined && undefined.__extends || function () {
59518
- var _extendStatics = function extendStatics(d, b) {
59519
- _extendStatics = Object.setPrototypeOf || {
59520
- __proto__: []
59521
- } instanceof Array && function (d, b) {
59522
- d.__proto__ = b;
59523
- } || function (d, b) {
59524
- for (var p in b) {
59525
- if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
59526
- }
59527
- };
59528
-
59529
- return _extendStatics(d, b);
59530
- };
59531
-
59532
- return function (d, b) {
59533
- if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
59534
-
59535
- _extendStatics(d, b);
59536
-
59537
- function __() {
59538
- this.constructor = d;
59539
- }
59540
-
59541
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
59542
- };
59543
- }();
59544
-
59545
- var base_editor_setting_decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
59546
- var c = arguments.length,
59547
- r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
59548
- d;
59549
- 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--) {
59550
- if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
59551
- }
59552
- return c > 3 && r && Object.defineProperty(target, key, r), r;
59553
- };
59554
-
59555
- var base_editor_setting_metadata = undefined && undefined.__metadata || function (k, v) {
59556
- if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
59557
- };
59558
-
59559
-
59560
-
59561
- var base_editor_setting_BaseEditorSetting =
59562
- /** @class */
59563
- function (_super) {
59564
- base_editor_setting_extends(BaseEditorSetting, _super);
59565
-
59566
- function BaseEditorSetting() {
59567
- var _this = _super !== null && _super.apply(this, arguments) || this;
59568
-
59569
- _this.editor = {};
59570
- return _this;
59571
- }
59774
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
59775
+ var es_string_replace = __webpack_require__("5319");
59572
59776
 
59573
- BaseEditorSetting.prototype.onEditorInited = function (editor) {
59574
- this.editor = editor;
59575
- };
59777
+ // EXTERNAL MODULE: ./src/views/project-detail/environment-variable-modal/index.scss
59778
+ var environment_variable_modal = __webpack_require__("eaed");
59576
59779
 
59577
- BaseEditorSetting.prototype.resizeEditor = function () {
59578
- this.editor.resize && this.editor.resize();
59579
- };
59780
+ // EXTERNAL MODULE: ./node_modules/lodash.debounce/index.js
59781
+ var lodash_debounce = __webpack_require__("f7fe");
59782
+ var lodash_debounce_default = /*#__PURE__*/__webpack_require__.n(lodash_debounce);
59580
59783
 
59581
- base_editor_setting_decorate([Object(flagwind_web_["config"])({
59582
- default: true
59583
- }), base_editor_setting_metadata("design:type", Boolean)], BaseEditorSetting.prototype, "lengthwise", void 0);
59784
+ // CONCATENATED MODULE: ./src/views/project-detail/environment-variable-modal/index.ts
59584
59785
 
59585
- base_editor_setting_decorate([Object(flagwind_web_["watch"])("lengthwise"), base_editor_setting_metadata("design:type", Function), base_editor_setting_metadata("design:paramtypes", []), base_editor_setting_metadata("design:returntype", void 0)], BaseEditorSetting.prototype, "resizeEditor", null);
59586
59786
 
59587
- BaseEditorSetting = base_editor_setting_decorate([Object(flagwind_web_["component"])({})], BaseEditorSetting);
59588
- return BaseEditorSetting;
59589
- }(flagwind_web_["Component"]);
59590
59787
 
59591
- /* harmony default export */ var base_editor_setting = (base_editor_setting_BaseEditorSetting);
59592
- // EXTERNAL MODULE: ./src/views/project-detail/pre-execution-setting/index.scss
59593
- var pre_execution_setting = __webpack_require__("d928");
59594
59788
 
59595
- // CONCATENATED MODULE: ./src/views/project-detail/pre-execution-setting/index.ts
59596
59789
 
59597
59790
 
59598
59791
 
@@ -59606,7 +59799,7 @@ var pre_execution_setting = __webpack_require__("d928");
59606
59799
 
59607
59800
 
59608
59801
 
59609
- var pre_execution_setting_extends = undefined && undefined.__extends || function () {
59802
+ var environment_variable_modal_extends = undefined && undefined.__extends || function () {
59610
59803
  var _extendStatics = function extendStatics(d, b) {
59611
59804
  _extendStatics = Object.setPrototypeOf || {
59612
59805
  __proto__: []
@@ -59634,7 +59827,7 @@ var pre_execution_setting_extends = undefined && undefined.__extends || function
59634
59827
  };
59635
59828
  }();
59636
59829
 
59637
- var pre_execution_setting_decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
59830
+ var environment_variable_modal_decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
59638
59831
  var c = arguments.length,
59639
59832
  r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
59640
59833
  d;
@@ -59644,11 +59837,11 @@ var pre_execution_setting_decorate = undefined && undefined.__decorate || functi
59644
59837
  return c > 3 && r && Object.defineProperty(target, key, r), r;
59645
59838
  };
59646
59839
 
59647
- var pre_execution_setting_metadata = undefined && undefined.__metadata || function (k, v) {
59840
+ var environment_variable_modal_metadata = undefined && undefined.__metadata || function (k, v) {
59648
59841
  if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
59649
59842
  };
59650
59843
 
59651
- var pre_execution_setting_awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
59844
+ var environment_variable_modal_awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
59652
59845
  function adopt(value) {
59653
59846
  return value instanceof P ? value : new P(function (resolve) {
59654
59847
  resolve(value);
@@ -59680,7 +59873,7 @@ var pre_execution_setting_awaiter = undefined && undefined.__awaiter || function
59680
59873
  });
59681
59874
  };
59682
59875
 
59683
- var pre_execution_setting_generator = undefined && undefined.__generator || function (thisArg, body) {
59876
+ var environment_variable_modal_generator = undefined && undefined.__generator || function (thisArg, body) {
59684
59877
  var _ = {
59685
59878
  label: 0,
59686
59879
  sent: function sent() {
@@ -59798,38 +59991,93 @@ var pre_execution_setting_generator = undefined && undefined.__generator || func
59798
59991
 
59799
59992
 
59800
59993
 
59801
-
59802
- var pre_execution_setting_PreExecutionSetting =
59994
+ var environment_variable_modal_EnvironmentVariableModal =
59803
59995
  /** @class */
59804
59996
  function (_super) {
59805
- pre_execution_setting_extends(PreExecutionSetting, _super);
59997
+ environment_variable_modal_extends(EnvironmentVariableModal, _super);
59806
59998
 
59807
- function PreExecutionSetting() {
59999
+ function EnvironmentVariableModal() {
59808
60000
  var _this = _super !== null && _super.apply(this, arguments) || this;
59809
60001
 
59810
- _this.scriptData = {};
59811
- _this.model = new PreScript();
59812
- _this.key = "preScripts";
60002
+ _this.varList = [];
60003
+ _this.keyword = "";
60004
+ _this.currentItem = {};
60005
+ _this.isEmpty = true;
60006
+ _this.formData = {
60007
+ name: "",
60008
+ remark: "",
60009
+ type: "http",
60010
+ address: ""
60011
+ };
60012
+ _this.rules = {
60013
+ name: [{
60014
+ required: true,
60015
+ message: "请输入环境名称",
60016
+ trigger: "blur"
60017
+ }],
60018
+ address: [{
60019
+ required: true,
60020
+ message: "请输入域名",
60021
+ trigger: "blur"
60022
+ }]
60023
+ };
60024
+ /**
60025
+ * 防抖查询
60026
+ */
60027
+
60028
+ _this.onFilter = lodash_debounce_default()(function () {
60029
+ _this.getVariableList();
60030
+ }, 300);
59813
60031
  return _this;
59814
60032
  }
59815
60033
 
59816
- PreExecutionSetting.prototype.mounted = function () {
59817
- this.getScript();
60034
+ EnvironmentVariableModal.prototype.onShowChange = function (show) {
60035
+ return environment_variable_modal_awaiter(this, void 0, void 0, function () {
60036
+ return environment_variable_modal_generator(this, function (_a) {
60037
+ if (show) {
60038
+ this.getVariableList();
60039
+ }
60040
+
60041
+ return [2
60042
+ /*return*/
60043
+ ];
60044
+ });
60045
+ });
59818
60046
  };
59819
60047
 
59820
- PreExecutionSetting.prototype.getScript = function () {
59821
- return pre_execution_setting_awaiter(this, void 0, void 0, function () {
59822
- var result;
59823
- return pre_execution_setting_generator(this, function (_a) {
60048
+ EnvironmentVariableModal.prototype.onEmpty = function (value) {
60049
+ if (value) {
60050
+ this.isEmpty = true;
60051
+ } else {
60052
+ this.isEmpty = false;
60053
+ }
60054
+ };
60055
+ /**
60056
+ * 获取当前已有环境变量数据
60057
+ */
60058
+
60059
+
60060
+ EnvironmentVariableModal.prototype.getVariableList = function () {
60061
+ return environment_variable_modal_awaiter(this, void 0, void 0, function () {
60062
+ var res;
60063
+ return environment_variable_modal_generator(this, function (_a) {
59824
60064
  switch (_a.label) {
59825
60065
  case 0:
59826
60066
  return [4
59827
60067
  /*yield*/
59828
- , this.service.preScript()];
60068
+ , this.service.getVariableList({
60069
+ name: this.keyword,
60070
+ projectId: this.projectId
60071
+ })];
59829
60072
 
59830
60073
  case 1:
59831
- result = _a.sent();
59832
- this.scriptData = result || {};
60074
+ res = _a.sent();
60075
+
60076
+ if (!(res === null || res === void 0 ? void 0 : res.hasError)) {
60077
+ this.varList = res.result || [];
60078
+ this.varList.length && this.onSelectItem(this.varList[0]);
60079
+ }
60080
+
59833
60081
  return [2
59834
60082
  /*return*/
59835
60083
  ];
@@ -59837,62 +60085,549 @@ function (_super) {
59837
60085
  });
59838
60086
  });
59839
60087
  };
60088
+ /**
60089
+ * 点击环境变量触发事件
60090
+ * @param item 当前点击的环境变量
60091
+ */
59840
60092
 
59841
- PreExecutionSetting.prototype.onClickItem = function (item) {
59842
- this.editor.insert(item.code);
59843
- this.editor.focus();
60093
+
60094
+ EnvironmentVariableModal.prototype.onSelectItem = function (item) {
60095
+ this.currentItem = item.$clone();
60096
+ this.formData.name = this.currentItem.name;
60097
+
60098
+ if (this.currentItem.value.indexOf("https") > -1) {
60099
+ this.formData.type = "https", this.formData.address = this.currentItem.value.replace("https://", "");
60100
+ } else {
60101
+ this.formData.type = "http", this.formData.address = this.currentItem.value.replace("http://", "");
60102
+ }
60103
+
60104
+ this.formData.remark = this.currentItem.remark;
59844
60105
  };
60106
+ /**
60107
+ * 删除选中的环境变量
60108
+ * @param item 当前选中项
60109
+ */
59845
60110
 
59846
- Object.defineProperty(PreExecutionSetting.prototype, "script", {
59847
- get: function get() {
59848
- if (!this.interfaceModel[this.key][0]) {
59849
- this.interfaceModel[this.key].push(this.model);
59850
- }
59851
60111
 
59852
- return this.interfaceModel[this.key][0].content;
59853
- },
59854
- set: function set(value) {
59855
- this.interfaceModel[this.key][0].content = value;
59856
- },
59857
- enumerable: false,
59858
- configurable: true
59859
- });
60112
+ EnvironmentVariableModal.prototype.onDelete = function (item) {
60113
+ return environment_variable_modal_awaiter(this, void 0, void 0, function () {
60114
+ var res;
60115
+ return environment_variable_modal_generator(this, function (_a) {
60116
+ switch (_a.label) {
60117
+ case 0:
60118
+ if (!item.id) return [3
60119
+ /*break*/
60120
+ , 2];
60121
+ return [4
60122
+ /*yield*/
60123
+ , this.service.deleteVariable(item.id)];
59860
60124
 
59861
- var _a, _b;
60125
+ case 1:
60126
+ res = _a.sent();
59862
60127
 
59863
- pre_execution_setting_decorate([Object(flagwind_web_["config"])({
59864
- default: function _default() {
59865
- return new InterfaceModel();
59866
- }
59867
- }), pre_execution_setting_metadata("design:type", typeof (_a = typeof InterfaceModel !== "undefined" && InterfaceModel) === "function" ? _a : Object)], PreExecutionSetting.prototype, "interfaceModel", void 0);
60128
+ if (!(res === null || res === void 0 ? void 0 : res.hasError)) {
60129
+ this.getVariableList();
60130
+ }
59868
60131
 
59869
- pre_execution_setting_decorate([autowired(project_detail_service), pre_execution_setting_metadata("design:type", typeof (_b = typeof project_detail_service !== "undefined" && project_detail_service) === "function" ? _b : Object)], PreExecutionSetting.prototype, "service", void 0);
60132
+ return [3
60133
+ /*break*/
60134
+ , 3];
59870
60135
 
59871
- PreExecutionSetting = pre_execution_setting_decorate([Object(flagwind_web_["component"])({
59872
- template: __webpack_require__("8ab8"),
59873
- components: {
59874
- "u-editor": components_code_editor
60136
+ case 2:
60137
+ this.varList.shift();
60138
+ this.varList.length && this.onSelectItem(this.varList[0]);
60139
+ _a.label = 3;
60140
+
60141
+ case 3:
60142
+ return [2
60143
+ /*return*/
60144
+ ];
60145
+ }
60146
+ });
60147
+ });
60148
+ };
60149
+ /**
60150
+ * 新增环境变量事件
60151
+ * @returns
60152
+ */
60153
+
60154
+
60155
+ EnvironmentVariableModal.prototype.onAddItem = function () {
60156
+ if (this.varList.length > 0 && !this.varList[0].id) {
60157
+ return;
59875
60158
  }
59876
- })], PreExecutionSetting);
59877
- return PreExecutionSetting;
59878
- }(base_editor_setting);
59879
60159
 
59880
- /* harmony default export */ var project_detail_pre_execution_setting = (pre_execution_setting_PreExecutionSetting);
59881
- // CONCATENATED MODULE: ./src/views/project-detail/after-execution-script/index.ts
60160
+ var item = {
60161
+ name: "",
60162
+ value: "",
60163
+ remark: "",
60164
+ projectId: this.projectId
60165
+ };
60166
+ this.varList.unshift(item);
60167
+ this.onSelectItem(this.varList[0]);
60168
+ };
60169
+
60170
+ EnvironmentVariableModal.prototype.onCancel = function () {
60171
+ this.value = false;
60172
+ this.keyword = "";
60173
+ this.currentItem = {};
60174
+ };
60175
+
60176
+ EnvironmentVariableModal.prototype.onSave = function () {
60177
+ var _a, _b;
60178
+
60179
+ return environment_variable_modal_awaiter(this, void 0, void 0, function () {
60180
+ var data, res;
60181
+ return environment_variable_modal_generator(this, function (_c) {
60182
+ switch (_c.label) {
60183
+ case 0:
60184
+ data = {
60185
+ name: this.formData.name,
60186
+ value: "".concat(this.formData.type, "://").concat(this.formData.address),
60187
+ remark: this.formData.remark,
60188
+ projectId: this.projectId
60189
+ };
60190
+
60191
+ if ((_a = this.currentItem) === null || _a === void 0 ? void 0 : _a.id) {
60192
+ data.id = (_b = this.currentItem) === null || _b === void 0 ? void 0 : _b.id;
60193
+ }
60194
+
60195
+ return [4
60196
+ /*yield*/
60197
+ , this.service.saveVariable(data)];
60198
+
60199
+ case 1:
60200
+ res = _c.sent();
59882
60201
 
60202
+ if (res && !res.hasError) {
60203
+ this.$message.success("保存成功!");
60204
+ this.getVariableList();
60205
+ }
59883
60206
 
60207
+ return [2
60208
+ /*return*/
60209
+ ];
60210
+ }
60211
+ });
60212
+ });
60213
+ };
59884
60214
 
60215
+ var _a;
59885
60216
 
60217
+ environment_variable_modal_decorate([autowired(project_detail_service), environment_variable_modal_metadata("design:type", typeof (_a = typeof project_detail_service !== "undefined" && project_detail_service) === "function" ? _a : Object)], EnvironmentVariableModal.prototype, "service", void 0);
59886
60218
 
60219
+ environment_variable_modal_decorate([Object(external_vue_property_decorator_["PropSync"])("visiable", {
60220
+ default: false
60221
+ }), environment_variable_modal_metadata("design:type", Boolean)], EnvironmentVariableModal.prototype, "value", void 0);
59887
60222
 
60223
+ environment_variable_modal_decorate([Object(flagwind_web_["config"])({
60224
+ type: String,
60225
+ default: ""
60226
+ }), environment_variable_modal_metadata("design:type", String)], EnvironmentVariableModal.prototype, "projectId", void 0);
59888
60227
 
60228
+ environment_variable_modal_decorate([Object(flagwind_web_["watch"])("value"), environment_variable_modal_metadata("design:type", Function), environment_variable_modal_metadata("design:paramtypes", [Boolean]), environment_variable_modal_metadata("design:returntype", Promise)], EnvironmentVariableModal.prototype, "onShowChange", null);
59889
60229
 
60230
+ environment_variable_modal_decorate([Object(flagwind_web_["watch"])("varList.length", {
60231
+ immediate: true
60232
+ }), environment_variable_modal_metadata("design:type", Function), environment_variable_modal_metadata("design:paramtypes", [Object]), environment_variable_modal_metadata("design:returntype", void 0)], EnvironmentVariableModal.prototype, "onEmpty", null);
59890
60233
 
60234
+ EnvironmentVariableModal = environment_variable_modal_decorate([Object(flagwind_web_["component"])({
60235
+ template: __webpack_require__("8962"),
60236
+ components: {}
60237
+ })], EnvironmentVariableModal);
60238
+ return EnvironmentVariableModal;
60239
+ }(flagwind_web_["Component"]);
59891
60240
 
60241
+ /* harmony default export */ var project_detail_environment_variable_modal = (environment_variable_modal_EnvironmentVariableModal);
60242
+ // EXTERNAL MODULE: ./src/views/project-detail/index.scss
60243
+ var project_detail = __webpack_require__("fe54");
59892
60244
 
60245
+ // CONCATENATED MODULE: ./src/views/project-detail/base-editor-setting.ts
59893
60246
 
59894
60247
 
59895
- var after_execution_script_extends = undefined && undefined.__extends || function () {
60248
+
60249
+
60250
+
60251
+
60252
+ var base_editor_setting_extends = undefined && undefined.__extends || function () {
60253
+ var _extendStatics = function extendStatics(d, b) {
60254
+ _extendStatics = Object.setPrototypeOf || {
60255
+ __proto__: []
60256
+ } instanceof Array && function (d, b) {
60257
+ d.__proto__ = b;
60258
+ } || function (d, b) {
60259
+ for (var p in b) {
60260
+ if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
60261
+ }
60262
+ };
60263
+
60264
+ return _extendStatics(d, b);
60265
+ };
60266
+
60267
+ return function (d, b) {
60268
+ if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
60269
+
60270
+ _extendStatics(d, b);
60271
+
60272
+ function __() {
60273
+ this.constructor = d;
60274
+ }
60275
+
60276
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
60277
+ };
60278
+ }();
60279
+
60280
+ var base_editor_setting_decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
60281
+ var c = arguments.length,
60282
+ r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
60283
+ d;
60284
+ 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--) {
60285
+ if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
60286
+ }
60287
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
60288
+ };
60289
+
60290
+ var base_editor_setting_metadata = undefined && undefined.__metadata || function (k, v) {
60291
+ if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
60292
+ };
60293
+
60294
+
60295
+
60296
+ var base_editor_setting_BaseEditorSetting =
60297
+ /** @class */
60298
+ function (_super) {
60299
+ base_editor_setting_extends(BaseEditorSetting, _super);
60300
+
60301
+ function BaseEditorSetting() {
60302
+ var _this = _super !== null && _super.apply(this, arguments) || this;
60303
+
60304
+ _this.editor = {};
60305
+ return _this;
60306
+ }
60307
+
60308
+ BaseEditorSetting.prototype.onEditorInited = function (editor) {
60309
+ this.editor = editor;
60310
+ };
60311
+
60312
+ BaseEditorSetting.prototype.resizeEditor = function () {
60313
+ this.editor.resize && this.editor.resize();
60314
+ };
60315
+
60316
+ base_editor_setting_decorate([Object(flagwind_web_["config"])({
60317
+ default: true
60318
+ }), base_editor_setting_metadata("design:type", Boolean)], BaseEditorSetting.prototype, "lengthwise", void 0);
60319
+
60320
+ base_editor_setting_decorate([Object(flagwind_web_["watch"])("lengthwise"), base_editor_setting_metadata("design:type", Function), base_editor_setting_metadata("design:paramtypes", []), base_editor_setting_metadata("design:returntype", void 0)], BaseEditorSetting.prototype, "resizeEditor", null);
60321
+
60322
+ BaseEditorSetting = base_editor_setting_decorate([Object(flagwind_web_["component"])({})], BaseEditorSetting);
60323
+ return BaseEditorSetting;
60324
+ }(flagwind_web_["Component"]);
60325
+
60326
+ /* harmony default export */ var base_editor_setting = (base_editor_setting_BaseEditorSetting);
60327
+ // EXTERNAL MODULE: ./src/views/project-detail/pre-execution-setting/index.scss
60328
+ var pre_execution_setting = __webpack_require__("d928");
60329
+
60330
+ // CONCATENATED MODULE: ./src/views/project-detail/pre-execution-setting/index.ts
60331
+
60332
+
60333
+
60334
+
60335
+
60336
+
60337
+
60338
+
60339
+
60340
+
60341
+
60342
+
60343
+
60344
+ var pre_execution_setting_extends = undefined && undefined.__extends || function () {
60345
+ var _extendStatics = function extendStatics(d, b) {
60346
+ _extendStatics = Object.setPrototypeOf || {
60347
+ __proto__: []
60348
+ } instanceof Array && function (d, b) {
60349
+ d.__proto__ = b;
60350
+ } || function (d, b) {
60351
+ for (var p in b) {
60352
+ if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
60353
+ }
60354
+ };
60355
+
60356
+ return _extendStatics(d, b);
60357
+ };
60358
+
60359
+ return function (d, b) {
60360
+ if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
60361
+
60362
+ _extendStatics(d, b);
60363
+
60364
+ function __() {
60365
+ this.constructor = d;
60366
+ }
60367
+
60368
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
60369
+ };
60370
+ }();
60371
+
60372
+ var pre_execution_setting_decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
60373
+ var c = arguments.length,
60374
+ r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
60375
+ d;
60376
+ 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--) {
60377
+ if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
60378
+ }
60379
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
60380
+ };
60381
+
60382
+ var pre_execution_setting_metadata = undefined && undefined.__metadata || function (k, v) {
60383
+ if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
60384
+ };
60385
+
60386
+ var pre_execution_setting_awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
60387
+ function adopt(value) {
60388
+ return value instanceof P ? value : new P(function (resolve) {
60389
+ resolve(value);
60390
+ });
60391
+ }
60392
+
60393
+ return new (P || (P = Promise))(function (resolve, reject) {
60394
+ function fulfilled(value) {
60395
+ try {
60396
+ step(generator.next(value));
60397
+ } catch (e) {
60398
+ reject(e);
60399
+ }
60400
+ }
60401
+
60402
+ function rejected(value) {
60403
+ try {
60404
+ step(generator["throw"](value));
60405
+ } catch (e) {
60406
+ reject(e);
60407
+ }
60408
+ }
60409
+
60410
+ function step(result) {
60411
+ result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
60412
+ }
60413
+
60414
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
60415
+ });
60416
+ };
60417
+
60418
+ var pre_execution_setting_generator = undefined && undefined.__generator || function (thisArg, body) {
60419
+ var _ = {
60420
+ label: 0,
60421
+ sent: function sent() {
60422
+ if (t[0] & 1) throw t[1];
60423
+ return t[1];
60424
+ },
60425
+ trys: [],
60426
+ ops: []
60427
+ },
60428
+ f,
60429
+ y,
60430
+ t,
60431
+ g;
60432
+ return g = {
60433
+ next: verb(0),
60434
+ "throw": verb(1),
60435
+ "return": verb(2)
60436
+ }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
60437
+ return this;
60438
+ }), g;
60439
+
60440
+ function verb(n) {
60441
+ return function (v) {
60442
+ return step([n, v]);
60443
+ };
60444
+ }
60445
+
60446
+ function step(op) {
60447
+ if (f) throw new TypeError("Generator is already executing.");
60448
+
60449
+ while (_) {
60450
+ try {
60451
+ 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;
60452
+ if (y = 0, t) op = [op[0] & 2, t.value];
60453
+
60454
+ switch (op[0]) {
60455
+ case 0:
60456
+ case 1:
60457
+ t = op;
60458
+ break;
60459
+
60460
+ case 4:
60461
+ _.label++;
60462
+ return {
60463
+ value: op[1],
60464
+ done: false
60465
+ };
60466
+
60467
+ case 5:
60468
+ _.label++;
60469
+ y = op[1];
60470
+ op = [0];
60471
+ continue;
60472
+
60473
+ case 7:
60474
+ op = _.ops.pop();
60475
+
60476
+ _.trys.pop();
60477
+
60478
+ continue;
60479
+
60480
+ default:
60481
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
60482
+ _ = 0;
60483
+ continue;
60484
+ }
60485
+
60486
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
60487
+ _.label = op[1];
60488
+ break;
60489
+ }
60490
+
60491
+ if (op[0] === 6 && _.label < t[1]) {
60492
+ _.label = t[1];
60493
+ t = op;
60494
+ break;
60495
+ }
60496
+
60497
+ if (t && _.label < t[2]) {
60498
+ _.label = t[2];
60499
+
60500
+ _.ops.push(op);
60501
+
60502
+ break;
60503
+ }
60504
+
60505
+ if (t[2]) _.ops.pop();
60506
+
60507
+ _.trys.pop();
60508
+
60509
+ continue;
60510
+ }
60511
+
60512
+ op = body.call(thisArg, _);
60513
+ } catch (e) {
60514
+ op = [6, e];
60515
+ y = 0;
60516
+ } finally {
60517
+ f = t = 0;
60518
+ }
60519
+ }
60520
+
60521
+ if (op[0] & 5) throw op[1];
60522
+ return {
60523
+ value: op[0] ? op[1] : void 0,
60524
+ done: true
60525
+ };
60526
+ }
60527
+ };
60528
+
60529
+
60530
+
60531
+
60532
+
60533
+
60534
+
60535
+
60536
+
60537
+ var pre_execution_setting_PreExecutionSetting =
60538
+ /** @class */
60539
+ function (_super) {
60540
+ pre_execution_setting_extends(PreExecutionSetting, _super);
60541
+
60542
+ function PreExecutionSetting() {
60543
+ var _this = _super !== null && _super.apply(this, arguments) || this;
60544
+
60545
+ _this.scriptData = {};
60546
+ _this.model = new PreScript();
60547
+ _this.key = "preScripts";
60548
+ return _this;
60549
+ }
60550
+
60551
+ PreExecutionSetting.prototype.mounted = function () {
60552
+ this.getScript();
60553
+ };
60554
+
60555
+ PreExecutionSetting.prototype.getScript = function () {
60556
+ return pre_execution_setting_awaiter(this, void 0, void 0, function () {
60557
+ var result;
60558
+ return pre_execution_setting_generator(this, function (_a) {
60559
+ switch (_a.label) {
60560
+ case 0:
60561
+ return [4
60562
+ /*yield*/
60563
+ , this.service.preScript()];
60564
+
60565
+ case 1:
60566
+ result = _a.sent();
60567
+ this.scriptData = result || {};
60568
+ return [2
60569
+ /*return*/
60570
+ ];
60571
+ }
60572
+ });
60573
+ });
60574
+ };
60575
+
60576
+ PreExecutionSetting.prototype.onClickItem = function (item) {
60577
+ this.editor.insert(item.code);
60578
+ this.editor.focus();
60579
+ };
60580
+
60581
+ Object.defineProperty(PreExecutionSetting.prototype, "script", {
60582
+ get: function get() {
60583
+ if (!this.interfaceModel[this.key][0]) {
60584
+ this.interfaceModel[this.key].push(this.model);
60585
+ }
60586
+
60587
+ return this.interfaceModel[this.key][0].content;
60588
+ },
60589
+ set: function set(value) {
60590
+ this.interfaceModel[this.key][0].content = value;
60591
+ },
60592
+ enumerable: false,
60593
+ configurable: true
60594
+ });
60595
+
60596
+ var _a, _b;
60597
+
60598
+ pre_execution_setting_decorate([Object(flagwind_web_["config"])({
60599
+ default: function _default() {
60600
+ return new InterfaceModel();
60601
+ }
60602
+ }), pre_execution_setting_metadata("design:type", typeof (_a = typeof InterfaceModel !== "undefined" && InterfaceModel) === "function" ? _a : Object)], PreExecutionSetting.prototype, "interfaceModel", void 0);
60603
+
60604
+ pre_execution_setting_decorate([autowired(project_detail_service), pre_execution_setting_metadata("design:type", typeof (_b = typeof project_detail_service !== "undefined" && project_detail_service) === "function" ? _b : Object)], PreExecutionSetting.prototype, "service", void 0);
60605
+
60606
+ PreExecutionSetting = pre_execution_setting_decorate([Object(flagwind_web_["component"])({
60607
+ template: __webpack_require__("8ab8"),
60608
+ components: {
60609
+ "u-editor": components_code_editor
60610
+ }
60611
+ })], PreExecutionSetting);
60612
+ return PreExecutionSetting;
60613
+ }(base_editor_setting);
60614
+
60615
+ /* harmony default export */ var project_detail_pre_execution_setting = (pre_execution_setting_PreExecutionSetting);
60616
+ // CONCATENATED MODULE: ./src/views/project-detail/after-execution-script/index.ts
60617
+
60618
+
60619
+
60620
+
60621
+
60622
+
60623
+
60624
+
60625
+
60626
+
60627
+
60628
+
60629
+
60630
+ var after_execution_script_extends = undefined && undefined.__extends || function () {
59896
60631
  var _extendStatics = function extendStatics(d, b) {
59897
60632
  _extendStatics = Object.setPrototypeOf || {
59898
60633
  __proto__: []
@@ -60380,10 +61115,6 @@ function (_super) {
60380
61115
  // EXTERNAL MODULE: ./src/views/project-detail/after-execution-transfer/index.scss
60381
61116
  var after_execution_transfer = __webpack_require__("8a77");
60382
61117
 
60383
- // EXTERNAL MODULE: ./node_modules/lodash.debounce/index.js
60384
- var lodash_debounce = __webpack_require__("f7fe");
60385
- var lodash_debounce_default = /*#__PURE__*/__webpack_require__.n(lodash_debounce);
60386
-
60387
61118
  // CONCATENATED MODULE: ./src/views/project-detail/after-execution-transfer/index.ts
60388
61119
 
60389
61120
 
@@ -61151,611 +61882,210 @@ var params_setting_generator = undefined && undefined.__generator || function (t
61151
61882
 
61152
61883
 
61153
61884
 
61154
-
61155
- var params_setting_ParamsSetting =
61156
- /** @class */
61157
- function (_super) {
61158
- params_setting_extends(ParamsSetting, _super);
61159
-
61160
- function ParamsSetting() {
61161
- var _this = _super !== null && _super.apply(this, arguments) || this;
61162
-
61163
- _this.value = [];
61164
- _this.paramColumns = [{
61165
- slot: "selection",
61166
- width: 60,
61167
- align: "center",
61168
- title: " "
61169
- }, {
61170
- title: "参数名",
61171
- slot: "name",
61172
- align: "left"
61173
- }, {
61174
- title: "参数值",
61175
- slot: "valueContent",
61176
- align: "left"
61177
- }, // {
61178
- // title: "是否必须",
61179
- // slot: "required",
61180
- // align: "left"
61181
- // },
61182
- {
61183
- title: "备注",
61184
- slot: "text",
61185
- align: "left"
61186
- }, {
61187
- title: "操作",
61188
- slot: "action",
61189
- align: "left",
61190
- width: 300
61191
- }];
61192
- _this.queryDataList = []; // public bodyDataList: Array<any> = [];
61193
-
61194
- _this.requestBodyTypeList = [];
61195
- _this.typeMap = {
61196
- Form: "FormData",
61197
- X_www_form_urlencoded: "FormUrlEncoded"
61198
- };
61199
- return _this;
61200
- }
61201
-
61202
- ParamsSetting.prototype.getExpand = function (value) {
61203
- return this.value.includes(value);
61204
- };
61205
-
61206
- ParamsSetting.prototype.onDelete = function (paramList, index) {
61207
- paramList.splice(index, 1);
61208
- };
61209
-
61210
- ParamsSetting.prototype.onUp = function (paramList, index) {
61211
- if (index === 0) return;
61212
- var obj = paramList.splice(index, 1);
61213
- paramList.splice(index - 1, 0, obj[0]);
61214
- };
61215
-
61216
- ParamsSetting.prototype.onDown = function (paramList, index) {
61217
- if (index === paramList.length - 1) return;
61218
- var obj = paramList.splice(index, 1);
61219
- paramList.splice(index + 1, 0, obj[0]);
61220
- };
61221
-
61222
- ParamsSetting.prototype.onTop = function (paramList, index) {
61223
- var obj = paramList.splice(index, 1);
61224
- paramList.unshift(obj[0]);
61225
- };
61226
-
61227
- ParamsSetting.prototype.onBottom = function (paramList, index) {
61228
- var obj = paramList.splice(index, 1);
61229
- paramList.push(obj[0]);
61230
- };
61231
-
61232
- ParamsSetting.prototype.onDeleteBodyParam = function (paramList, id) {
61233
- var index = paramList.findIndex(function (v) {
61234
- return v.id === id;
61235
- });
61236
- paramList.splice(index, 1);
61237
- };
61238
-
61239
- ParamsSetting.prototype.onUpBodyParam = function (paramList, id) {
61240
- var index = paramList.findIndex(function (v) {
61241
- return v.id === id;
61242
- });
61243
- if (index === 0) return;
61244
- var obj = paramList.splice(index, 1);
61245
- paramList.splice(index - 1, 0, obj[0]);
61246
- };
61247
-
61248
- ParamsSetting.prototype.onDownBodyParam = function (paramList, id) {
61249
- var index = paramList.findIndex(function (v) {
61250
- return v.id === id;
61251
- });
61252
- if (index === paramList.length - 1) return;
61253
- var obj = paramList.splice(index, 1);
61254
- paramList.splice(index + 1, 0, obj[0]);
61255
- };
61256
-
61257
- ParamsSetting.prototype.onTopBodyParam = function (paramList, id) {
61258
- var index = paramList.findIndex(function (v) {
61259
- return v.id === id;
61260
- });
61261
- var obj = paramList.splice(index, 1);
61262
- paramList.unshift(obj[0]);
61263
- };
61264
-
61265
- ParamsSetting.prototype.onBottomBodyParam = function (paramList, id) {
61266
- var index = paramList.findIndex(function (v) {
61267
- return v.id === id;
61268
- });
61269
- var obj = paramList.splice(index, 1);
61270
- paramList.push(obj[0]);
61271
- };
61272
-
61273
- ParamsSetting.prototype.onChangeDisabled = function (value, item) {
61274
- item.disabled = !value;
61275
- };
61276
-
61277
- ParamsSetting.prototype.init = function () {
61278
- var _a, _b;
61279
-
61280
- if (!((_b = (_a = this.interfaceModel) === null || _a === void 0 ? void 0 : _a.info) === null || _b === void 0 ? void 0 : _b.id)) return;
61281
- this.queryDataList = this.interfaceModel.queryParams; // this.bodyDataList = this.interfaceModel.formParams;
61282
- };
61283
-
61284
- Object.defineProperty(ParamsSetting.prototype, "bodyDataList", {
61285
- get: function get() {
61286
- var type = this.typeMap[this.bodyType];
61287
- return this.interfaceModel.formParams.filter(function (p) {
61288
- return p.type === type;
61289
- });
61290
- },
61291
- enumerable: false,
61292
- configurable: true
61293
- });
61294
-
61295
- ParamsSetting.prototype.onAddRequestParam = function () {
61296
- this.queryDataList.push({
61297
- name: "",
61298
- text: "",
61299
- type: "QueryString",
61300
- valueContent: "",
61301
- disabled: false
61302
- });
61303
- };
61304
-
61305
- ParamsSetting.prototype.onAddBodyParam = function () {
61306
- this.interfaceModel.formParams.push({
61307
- name: "",
61308
- text: "",
61309
- type: this.typeMap[this.bodyType],
61310
- valueContent: "",
61311
- disabled: false
61312
- });
61313
- };
61314
-
61315
- Object.defineProperty(ParamsSetting.prototype, "bodyType", {
61316
- get: function get() {
61317
- var _a, _b;
61318
-
61319
- return ((_b = (_a = this.interfaceModel) === null || _a === void 0 ? void 0 : _a.info) === null || _b === void 0 ? void 0 : _b.requestBodyType) || "Form";
61320
- },
61321
- set: function set(value) {
61322
- this.interfaceModel.info.requestBodyType = value;
61323
- },
61324
- enumerable: false,
61325
- configurable: true
61326
- });
61327
- Object.defineProperty(ParamsSetting.prototype, "isFormData", {
61328
- get: function get() {
61329
- return this.bodyType === "Form" || this.bodyType === "X_www_form_urlencoded";
61330
- },
61331
- enumerable: false,
61332
- configurable: true
61333
- });
61334
-
61335
- ParamsSetting.prototype.onBeautify = function () {
61336
- if (!this.interfaceModel.json) return;
61337
- this.interfaceModel.json = JSON.stringify(JSON.parse(this.interfaceModel.json), null, 4);
61338
- };
61339
-
61340
- ParamsSetting.prototype.mounted = function () {
61341
- return params_setting_awaiter(this, void 0, void 0, function () {
61342
- var result;
61343
- return params_setting_generator(this, function (_a) {
61344
- switch (_a.label) {
61345
- case 0:
61346
- return [4
61347
- /*yield*/
61348
- , this.service.getEnumByType("requestBodyType")];
61349
-
61350
- case 1:
61351
- result = _a.sent();
61352
- this.requestBodyTypeList = (result === null || result === void 0 ? void 0 : result.result) || [];
61353
-
61354
- if (this.interfaceModel && this.interfaceModel.info) {
61355
- this.interfaceModel.info.requestBodyType = this.interfaceModel.info.requestBodyType || (this.requestBodyTypeList.length ? this.requestBodyTypeList[0].name : "Form");
61356
- }
61357
-
61358
- return [2
61359
- /*return*/
61360
- ];
61361
- }
61362
- });
61363
- });
61364
- };
61365
-
61366
- var _a, _b;
61367
-
61368
- params_setting_decorate([Object(flagwind_web_["config"])({
61369
- default: function _default() {
61370
- return new InterfaceModel();
61371
- }
61372
- }), params_setting_metadata("design:type", typeof (_a = typeof InterfaceModel !== "undefined" && InterfaceModel) === "function" ? _a : Object)], ParamsSetting.prototype, "interfaceModel", void 0);
61373
-
61374
- params_setting_decorate([autowired(project_detail_service), params_setting_metadata("design:type", typeof (_b = typeof project_detail_service !== "undefined" && project_detail_service) === "function" ? _b : Object)], ParamsSetting.prototype, "service", void 0);
61375
-
61376
- params_setting_decorate([Object(flagwind_web_["watch"])("interfaceModel", {
61377
- immediate: true
61378
- }), params_setting_metadata("design:type", Function), params_setting_metadata("design:paramtypes", []), params_setting_metadata("design:returntype", void 0)], ParamsSetting.prototype, "init", null);
61379
-
61380
- ParamsSetting = params_setting_decorate([Object(flagwind_web_["component"])({
61381
- template: __webpack_require__("7640"),
61382
- components: {
61383
- "u-editor": components_code_editor
61384
- }
61385
- })], ParamsSetting);
61386
- return ParamsSetting;
61387
- }(base_editor_setting);
61388
-
61389
- /* harmony default export */ var project_detail_params_setting = (params_setting_ParamsSetting);
61390
- // CONCATENATED MODULE: ./src/components/tips-form-label/index.ts
61391
-
61392
-
61393
-
61394
-
61395
-
61396
-
61397
- var tips_form_label_extends = undefined && undefined.__extends || function () {
61398
- var _extendStatics = function extendStatics(d, b) {
61399
- _extendStatics = Object.setPrototypeOf || {
61400
- __proto__: []
61401
- } instanceof Array && function (d, b) {
61402
- d.__proto__ = b;
61403
- } || function (d, b) {
61404
- for (var p in b) {
61405
- if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
61406
- }
61407
- };
61408
-
61409
- return _extendStatics(d, b);
61410
- };
61411
-
61412
- return function (d, b) {
61413
- if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
61414
-
61415
- _extendStatics(d, b);
61416
-
61417
- function __() {
61418
- this.constructor = d;
61419
- }
61420
-
61421
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
61422
- };
61423
- }();
61424
-
61425
- var tips_form_label_decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
61426
- var c = arguments.length,
61427
- r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
61428
- d;
61429
- 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--) {
61430
- if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
61431
- }
61432
- return c > 3 && r && Object.defineProperty(target, key, r), r;
61433
- };
61434
-
61435
- var tips_form_label_metadata = undefined && undefined.__metadata || function (k, v) {
61436
- if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
61437
- };
61438
-
61439
-
61440
-
61441
- var tips_form_label_TipsFormLabel =
61442
- /** @class */
61443
- function (_super) {
61444
- tips_form_label_extends(TipsFormLabel, _super);
61445
-
61446
- function TipsFormLabel() {
61447
- return _super !== null && _super.apply(this, arguments) || this;
61448
- }
61449
-
61450
- tips_form_label_decorate([Object(flagwind_web_["config"])({
61451
- default: ""
61452
- }), tips_form_label_metadata("design:type", String)], TipsFormLabel.prototype, "tips", void 0);
61453
-
61454
- tips_form_label_decorate([Object(flagwind_web_["config"])({
61455
- default: ""
61456
- }), tips_form_label_metadata("design:type", String)], TipsFormLabel.prototype, "labelTitle", void 0);
61457
-
61458
- tips_form_label_decorate([Object(flagwind_web_["config"])({
61459
- type: Boolean,
61460
- default: false
61461
- }), tips_form_label_metadata("design:type", Boolean)], TipsFormLabel.prototype, "labelColon", void 0);
61462
-
61463
- TipsFormLabel = tips_form_label_decorate([Object(flagwind_web_["component"])({
61464
- template: __webpack_require__("a406")
61465
- })], TipsFormLabel);
61466
- return TipsFormLabel;
61467
- }(flagwind_web_["Component"]);
61468
-
61469
- /* harmony default export */ var tips_form_label = (tips_form_label_TipsFormLabel);
61470
- // EXTERNAL MODULE: ./src/views/project-detail/security-setting/index.scss
61471
- var security_setting = __webpack_require__("9721");
61472
-
61473
- // CONCATENATED MODULE: ./src/views/project-detail/security-setting/index.ts
61474
-
61475
-
61476
-
61477
-
61478
-
61479
-
61480
-
61481
-
61482
-
61483
-
61484
-
61485
-
61486
-
61487
-
61488
- var security_setting_extends = undefined && undefined.__extends || function () {
61489
- var _extendStatics = function extendStatics(d, b) {
61490
- _extendStatics = Object.setPrototypeOf || {
61491
- __proto__: []
61492
- } instanceof Array && function (d, b) {
61493
- d.__proto__ = b;
61494
- } || function (d, b) {
61495
- for (var p in b) {
61496
- if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
61497
- }
61498
- };
61499
-
61500
- return _extendStatics(d, b);
61501
- };
61502
-
61503
- return function (d, b) {
61504
- if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
61505
-
61506
- _extendStatics(d, b);
61507
-
61508
- function __() {
61509
- this.constructor = d;
61510
- }
61511
-
61512
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
61513
- };
61514
- }();
61515
-
61516
- var security_setting_decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
61517
- var c = arguments.length,
61518
- r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
61519
- d;
61520
- 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--) {
61521
- if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
61522
- }
61523
- return c > 3 && r && Object.defineProperty(target, key, r), r;
61524
- };
61525
-
61526
- var security_setting_metadata = undefined && undefined.__metadata || function (k, v) {
61527
- if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
61528
- };
61529
-
61530
- var security_setting_awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
61531
- function adopt(value) {
61532
- return value instanceof P ? value : new P(function (resolve) {
61533
- resolve(value);
61534
- });
61535
- }
61536
-
61537
- return new (P || (P = Promise))(function (resolve, reject) {
61538
- function fulfilled(value) {
61539
- try {
61540
- step(generator.next(value));
61541
- } catch (e) {
61542
- reject(e);
61543
- }
61544
- }
61545
-
61546
- function rejected(value) {
61547
- try {
61548
- step(generator["throw"](value));
61549
- } catch (e) {
61550
- reject(e);
61551
- }
61552
- }
61553
-
61554
- function step(result) {
61555
- result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
61556
- }
61557
-
61558
- step((generator = generator.apply(thisArg, _arguments || [])).next());
61559
- });
61560
- };
61561
-
61562
- var security_setting_generator = undefined && undefined.__generator || function (thisArg, body) {
61563
- var _ = {
61564
- label: 0,
61565
- sent: function sent() {
61566
- if (t[0] & 1) throw t[1];
61567
- return t[1];
61568
- },
61569
- trys: [],
61570
- ops: []
61571
- },
61572
- f,
61573
- y,
61574
- t,
61575
- g;
61576
- return g = {
61577
- next: verb(0),
61578
- "throw": verb(1),
61579
- "return": verb(2)
61580
- }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
61581
- return this;
61582
- }), g;
61583
-
61584
- function verb(n) {
61585
- return function (v) {
61586
- return step([n, v]);
61587
- };
61588
- }
61589
-
61590
- function step(op) {
61591
- if (f) throw new TypeError("Generator is already executing.");
61592
-
61593
- while (_) {
61594
- try {
61595
- 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;
61596
- if (y = 0, t) op = [op[0] & 2, t.value];
61597
-
61598
- switch (op[0]) {
61599
- case 0:
61600
- case 1:
61601
- t = op;
61602
- break;
61603
-
61604
- case 4:
61605
- _.label++;
61606
- return {
61607
- value: op[1],
61608
- done: false
61609
- };
61610
-
61611
- case 5:
61612
- _.label++;
61613
- y = op[1];
61614
- op = [0];
61615
- continue;
61616
-
61617
- case 7:
61618
- op = _.ops.pop();
61619
-
61620
- _.trys.pop();
61621
-
61622
- continue;
61623
-
61624
- default:
61625
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
61626
- _ = 0;
61627
- continue;
61628
- }
61629
-
61630
- if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
61631
- _.label = op[1];
61632
- break;
61633
- }
61634
-
61635
- if (op[0] === 6 && _.label < t[1]) {
61636
- _.label = t[1];
61637
- t = op;
61638
- break;
61639
- }
61640
-
61641
- if (t && _.label < t[2]) {
61642
- _.label = t[2];
61643
-
61644
- _.ops.push(op);
61645
-
61646
- break;
61647
- }
61648
-
61649
- if (t[2]) _.ops.pop();
61650
-
61651
- _.trys.pop();
61652
-
61653
- continue;
61654
- }
61655
-
61656
- op = body.call(thisArg, _);
61657
- } catch (e) {
61658
- op = [6, e];
61659
- y = 0;
61660
- } finally {
61661
- f = t = 0;
61662
- }
61663
- }
61664
-
61665
- if (op[0] & 5) throw op[1];
61666
- return {
61667
- value: op[0] ? op[1] : void 0,
61668
- done: true
61669
- };
61670
- }
61671
- };
61672
-
61673
-
61674
-
61675
-
61676
-
61677
-
61678
-
61679
-
61680
- var security_setting_SecuritySetting =
61885
+
61886
+ var params_setting_ParamsSetting =
61681
61887
  /** @class */
61682
61888
  function (_super) {
61683
- security_setting_extends(SecuritySetting, _super);
61889
+ params_setting_extends(ParamsSetting, _super);
61684
61890
 
61685
- function SecuritySetting() {
61891
+ function ParamsSetting() {
61686
61892
  var _this = _super !== null && _super.apply(this, arguments) || this;
61687
61893
 
61688
- _this.securityTypeList = [];
61689
- _this.tokenLocationTypeList = [];
61690
- _this.grantTypeList = [];
61691
- _this.model = {};
61894
+ _this.value = [];
61895
+ _this.paramColumns = [{
61896
+ slot: "selection",
61897
+ width: 60,
61898
+ align: "center",
61899
+ title: " "
61900
+ }, {
61901
+ title: "参数名",
61902
+ slot: "name",
61903
+ align: "left"
61904
+ }, {
61905
+ title: "参数值",
61906
+ slot: "valueContent",
61907
+ align: "left"
61908
+ }, // {
61909
+ // title: "是否必须",
61910
+ // slot: "required",
61911
+ // align: "left"
61912
+ // },
61913
+ {
61914
+ title: "备注",
61915
+ slot: "text",
61916
+ align: "left"
61917
+ }, {
61918
+ title: "操作",
61919
+ slot: "action",
61920
+ align: "left",
61921
+ width: 300
61922
+ }];
61923
+ _this.queryDataList = []; // public bodyDataList: Array<any> = [];
61924
+
61925
+ _this.requestBodyTypeList = [];
61926
+ _this.typeMap = {
61927
+ Form: "FormData",
61928
+ X_www_form_urlencoded: "FormUrlEncoded"
61929
+ };
61692
61930
  return _this;
61693
61931
  }
61694
61932
 
61695
- SecuritySetting.prototype.mounted = function () {
61696
- var _a, _b;
61933
+ ParamsSetting.prototype.getExpand = function (value) {
61934
+ return this.value.includes(value);
61935
+ };
61936
+
61937
+ ParamsSetting.prototype.onDelete = function (paramList, index) {
61938
+ paramList.splice(index, 1);
61939
+ };
61697
61940
 
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) : {};
61941
+ ParamsSetting.prototype.onUp = function (paramList, index) {
61942
+ if (index === 0) return;
61943
+ var obj = paramList.splice(index, 1);
61944
+ paramList.splice(index - 1, 0, obj[0]);
61702
61945
  };
61703
61946
 
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")];
61947
+ ParamsSetting.prototype.onDown = function (paramList, index) {
61948
+ if (index === paramList.length - 1) return;
61949
+ var obj = paramList.splice(index, 1);
61950
+ paramList.splice(index + 1, 0, obj[0]);
61951
+ };
61713
61952
 
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
- });
61953
+ ParamsSetting.prototype.onTop = function (paramList, index) {
61954
+ var obj = paramList.splice(index, 1);
61955
+ paramList.unshift(obj[0]);
61956
+ };
61957
+
61958
+ ParamsSetting.prototype.onBottom = function (paramList, index) {
61959
+ var obj = paramList.splice(index, 1);
61960
+ paramList.push(obj[0]);
61961
+ };
61962
+
61963
+ ParamsSetting.prototype.onDeleteBodyParam = function (paramList, id) {
61964
+ var index = paramList.findIndex(function (v) {
61965
+ return v.id === id;
61722
61966
  });
61967
+ paramList.splice(index, 1);
61723
61968
  };
61724
61969
 
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")];
61970
+ ParamsSetting.prototype.onUpBodyParam = function (paramList, id) {
61971
+ var index = paramList.findIndex(function (v) {
61972
+ return v.id === id;
61973
+ });
61974
+ if (index === 0) return;
61975
+ var obj = paramList.splice(index, 1);
61976
+ paramList.splice(index - 1, 0, obj[0]);
61977
+ };
61734
61978
 
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
- }
61979
+ ParamsSetting.prototype.onDownBodyParam = function (paramList, id) {
61980
+ var index = paramList.findIndex(function (v) {
61981
+ return v.id === id;
61982
+ });
61983
+ if (index === paramList.length - 1) return;
61984
+ var obj = paramList.splice(index, 1);
61985
+ paramList.splice(index + 1, 0, obj[0]);
61986
+ };
61987
+
61988
+ ParamsSetting.prototype.onTopBodyParam = function (paramList, id) {
61989
+ var index = paramList.findIndex(function (v) {
61990
+ return v.id === id;
61991
+ });
61992
+ var obj = paramList.splice(index, 1);
61993
+ paramList.unshift(obj[0]);
61994
+ };
61995
+
61996
+ ParamsSetting.prototype.onBottomBodyParam = function (paramList, id) {
61997
+ var index = paramList.findIndex(function (v) {
61998
+ return v.id === id;
61999
+ });
62000
+ var obj = paramList.splice(index, 1);
62001
+ paramList.push(obj[0]);
62002
+ };
62003
+
62004
+ ParamsSetting.prototype.onChangeDisabled = function (value, item) {
62005
+ item.disabled = !value;
62006
+ };
62007
+
62008
+ ParamsSetting.prototype.init = function () {
62009
+ var _a, _b;
62010
+
62011
+ if (!((_b = (_a = this.interfaceModel) === null || _a === void 0 ? void 0 : _a.info) === null || _b === void 0 ? void 0 : _b.id)) return;
62012
+ this.queryDataList = this.interfaceModel.queryParams; // this.bodyDataList = this.interfaceModel.formParams;
62013
+ };
62014
+
62015
+ Object.defineProperty(ParamsSetting.prototype, "bodyDataList", {
62016
+ get: function get() {
62017
+ var type = this.typeMap[this.bodyType];
62018
+ return this.interfaceModel.formParams.filter(function (p) {
62019
+ return p.type === type;
61742
62020
  });
62021
+ },
62022
+ enumerable: false,
62023
+ configurable: true
62024
+ });
62025
+
62026
+ ParamsSetting.prototype.onAddRequestParam = function () {
62027
+ this.queryDataList.push({
62028
+ name: "",
62029
+ text: "",
62030
+ type: "QueryString",
62031
+ valueContent: "",
62032
+ disabled: false
61743
62033
  });
61744
62034
  };
61745
62035
 
61746
- SecuritySetting.prototype.getGrantTypeList = function () {
61747
- return security_setting_awaiter(this, void 0, void 0, function () {
62036
+ ParamsSetting.prototype.onAddBodyParam = function () {
62037
+ this.interfaceModel.formParams.push({
62038
+ name: "",
62039
+ text: "",
62040
+ type: this.typeMap[this.bodyType],
62041
+ valueContent: "",
62042
+ disabled: false
62043
+ });
62044
+ };
62045
+
62046
+ Object.defineProperty(ParamsSetting.prototype, "bodyType", {
62047
+ get: function get() {
62048
+ var _a, _b;
62049
+
62050
+ return ((_b = (_a = this.interfaceModel) === null || _a === void 0 ? void 0 : _a.info) === null || _b === void 0 ? void 0 : _b.requestBodyType) || "Form";
62051
+ },
62052
+ set: function set(value) {
62053
+ this.interfaceModel.info.requestBodyType = value;
62054
+ },
62055
+ enumerable: false,
62056
+ configurable: true
62057
+ });
62058
+ Object.defineProperty(ParamsSetting.prototype, "isFormData", {
62059
+ get: function get() {
62060
+ return this.bodyType === "Form" || this.bodyType === "X_www_form_urlencoded";
62061
+ },
62062
+ enumerable: false,
62063
+ configurable: true
62064
+ });
62065
+
62066
+ ParamsSetting.prototype.onBeautify = function () {
62067
+ if (!this.interfaceModel.json) return;
62068
+ this.interfaceModel.json = JSON.stringify(JSON.parse(this.interfaceModel.json), null, 4);
62069
+ };
62070
+
62071
+ ParamsSetting.prototype.mounted = function () {
62072
+ return params_setting_awaiter(this, void 0, void 0, function () {
61748
62073
  var result;
61749
- return security_setting_generator(this, function (_a) {
62074
+ return params_setting_generator(this, function (_a) {
61750
62075
  switch (_a.label) {
61751
62076
  case 0:
61752
62077
  return [4
61753
62078
  /*yield*/
61754
- , this.service.getEnumByType("grantType")];
62079
+ , this.service.getEnumByType("requestBodyType")];
61755
62080
 
61756
62081
  case 1:
61757
62082
  result = _a.sent();
61758
- this.grantTypeList = (result === null || result === void 0 ? void 0 : result.result) || [];
62083
+ this.requestBodyTypeList = (result === null || result === void 0 ? void 0 : result.result) || [];
62084
+
62085
+ if (this.interfaceModel && this.interfaceModel.info) {
62086
+ this.interfaceModel.info.requestBodyType = this.interfaceModel.info.requestBodyType || (this.requestBodyTypeList.length ? this.requestBodyTypeList[0].name : "Form");
62087
+ }
62088
+
61759
62089
  return [2
61760
62090
  /*return*/
61761
62091
  ];
@@ -61764,39 +62094,30 @@ function (_super) {
61764
62094
  });
61765
62095
  };
61766
62096
 
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
62097
  var _a, _b;
61777
62098
 
61778
- security_setting_decorate([Object(flagwind_web_["config"])({
62099
+ params_setting_decorate([Object(flagwind_web_["config"])({
61779
62100
  default: function _default() {
61780
62101
  return new InterfaceModel();
61781
62102
  }
61782
- }), security_setting_metadata("design:type", typeof (_a = typeof InterfaceModel !== "undefined" && InterfaceModel) === "function" ? _a : Object)], SecuritySetting.prototype, "interfaceModel", void 0);
62103
+ }), params_setting_metadata("design:type", typeof (_a = typeof InterfaceModel !== "undefined" && InterfaceModel) === "function" ? _a : Object)], ParamsSetting.prototype, "interfaceModel", void 0);
61783
62104
 
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);
62105
+ params_setting_decorate([autowired(project_detail_service), params_setting_metadata("design:type", typeof (_b = typeof project_detail_service !== "undefined" && project_detail_service) === "function" ? _b : Object)], ParamsSetting.prototype, "service", void 0);
61785
62106
 
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);
62107
+ params_setting_decorate([Object(flagwind_web_["watch"])("interfaceModel", {
62108
+ immediate: true
62109
+ }), params_setting_metadata("design:type", Function), params_setting_metadata("design:paramtypes", []), params_setting_metadata("design:returntype", void 0)], ParamsSetting.prototype, "init", null);
61789
62110
 
61790
- SecuritySetting = security_setting_decorate([Object(flagwind_web_["component"])({
61791
- template: __webpack_require__("b676"),
62111
+ ParamsSetting = params_setting_decorate([Object(flagwind_web_["component"])({
62112
+ template: __webpack_require__("7640"),
61792
62113
  components: {
61793
- "u-tips-form-label": tips_form_label
62114
+ "u-editor": components_code_editor
61794
62115
  }
61795
- })], SecuritySetting);
61796
- return SecuritySetting;
61797
- }(flagwind_web_["Component"]);
62116
+ })], ParamsSetting);
62117
+ return ParamsSetting;
62118
+ }(base_editor_setting);
61798
62119
 
61799
- /* harmony default export */ var project_detail_security_setting = (security_setting_SecuritySetting);
62120
+ /* harmony default export */ var project_detail_params_setting = (params_setting_ParamsSetting);
61800
62121
  // EXTERNAL MODULE: ./src/views/project-detail/interface-settings/index.scss
61801
62122
  var interface_settings = __webpack_require__("2a79");
61802
62123
 
@@ -61804,7 +62125,7 @@ var interface_settings = __webpack_require__("2a79");
61804
62125
  var security_setting_v2 = __webpack_require__("b156");
61805
62126
 
61806
62127
  // 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");
62128
+ var tips_form_label = __webpack_require__("61ef");
61808
62129
 
61809
62130
  // CONCATENATED MODULE: ./src/views/project-detail/security-setting-v2/tips-form-label/index.ts
61810
62131
 
@@ -61813,7 +62134,7 @@ var security_setting_v2_tips_form_label = __webpack_require__("61ef");
61813
62134
 
61814
62135
 
61815
62136
 
61816
- var security_setting_v2_tips_form_label_extends = undefined && undefined.__extends || function () {
62137
+ var tips_form_label_extends = undefined && undefined.__extends || function () {
61817
62138
  var _extendStatics = function extendStatics(d, b) {
61818
62139
  _extendStatics = Object.setPrototypeOf || {
61819
62140
  __proto__: []
@@ -61841,7 +62162,7 @@ var security_setting_v2_tips_form_label_extends = undefined && undefined.__exten
61841
62162
  };
61842
62163
  }();
61843
62164
 
61844
- var security_setting_v2_tips_form_label_decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
62165
+ var tips_form_label_decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
61845
62166
  var c = arguments.length,
61846
62167
  r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
61847
62168
  d;
@@ -61851,42 +62172,42 @@ var security_setting_v2_tips_form_label_decorate = undefined && undefined.__deco
61851
62172
  return c > 3 && r && Object.defineProperty(target, key, r), r;
61852
62173
  };
61853
62174
 
61854
- var security_setting_v2_tips_form_label_metadata = undefined && undefined.__metadata || function (k, v) {
62175
+ var tips_form_label_metadata = undefined && undefined.__metadata || function (k, v) {
61855
62176
  if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
61856
62177
  };
61857
62178
 
61858
62179
 
61859
62180
 
61860
62181
 
61861
- var security_setting_v2_tips_form_label_TipsFormLabel =
62182
+ var tips_form_label_TipsFormLabel =
61862
62183
  /** @class */
61863
62184
  function (_super) {
61864
- security_setting_v2_tips_form_label_extends(TipsFormLabel, _super);
62185
+ tips_form_label_extends(TipsFormLabel, _super);
61865
62186
 
61866
62187
  function TipsFormLabel() {
61867
62188
  return _super !== null && _super.apply(this, arguments) || this;
61868
62189
  }
61869
62190
 
61870
- security_setting_v2_tips_form_label_decorate([Object(flagwind_web_["config"])({
62191
+ tips_form_label_decorate([Object(flagwind_web_["config"])({
61871
62192
  default: ""
61872
- }), security_setting_v2_tips_form_label_metadata("design:type", String)], TipsFormLabel.prototype, "tips", void 0);
62193
+ }), tips_form_label_metadata("design:type", String)], TipsFormLabel.prototype, "tips", void 0);
61873
62194
 
61874
- security_setting_v2_tips_form_label_decorate([Object(flagwind_web_["config"])({
62195
+ tips_form_label_decorate([Object(flagwind_web_["config"])({
61875
62196
  default: ""
61876
- }), security_setting_v2_tips_form_label_metadata("design:type", String)], TipsFormLabel.prototype, "labelTitle", void 0);
62197
+ }), tips_form_label_metadata("design:type", String)], TipsFormLabel.prototype, "labelTitle", void 0);
61877
62198
 
61878
- security_setting_v2_tips_form_label_decorate([Object(flagwind_web_["config"])({
62199
+ tips_form_label_decorate([Object(flagwind_web_["config"])({
61879
62200
  type: Boolean,
61880
62201
  default: false
61881
- }), security_setting_v2_tips_form_label_metadata("design:type", Boolean)], TipsFormLabel.prototype, "labelColon", void 0);
62202
+ }), tips_form_label_metadata("design:type", Boolean)], TipsFormLabel.prototype, "labelColon", void 0);
61882
62203
 
61883
- TipsFormLabel = security_setting_v2_tips_form_label_decorate([Object(flagwind_web_["component"])({
62204
+ TipsFormLabel = tips_form_label_decorate([Object(flagwind_web_["component"])({
61884
62205
  template: __webpack_require__("2f53")
61885
62206
  })], TipsFormLabel);
61886
62207
  return TipsFormLabel;
61887
62208
  }(flagwind_web_["Component"]);
61888
62209
 
61889
- /* harmony default export */ var project_detail_security_setting_v2_tips_form_label = (security_setting_v2_tips_form_label_TipsFormLabel);
62210
+ /* harmony default export */ var security_setting_v2_tips_form_label = (tips_form_label_TipsFormLabel);
61890
62211
  // EXTERNAL MODULE: ./src/views/project-detail/security-modal/index.scss
61891
62212
  var security_modal = __webpack_require__("1a93");
61892
62213
 
@@ -62272,6 +62593,8 @@ function (_super) {
62272
62593
  this.isAddOnce = false;
62273
62594
  this.exitAddItem = false;
62274
62595
  }
62596
+
62597
+ this.securityList.length && this.onSelectSecurityItem(this.securityList[0]);
62275
62598
  }
62276
62599
 
62277
62600
  return [2
@@ -62322,7 +62645,8 @@ function (_super) {
62322
62645
  _a.label = 3;
62323
62646
 
62324
62647
  case 3:
62325
- this.currentSecurityItem = {};
62648
+ this.securityList.length && this.onSelectSecurityItem(this.securityList[0]);
62649
+ this.$publish("api://security-list-refresh");
62326
62650
  return [2
62327
62651
  /*return*/
62328
62652
  ];
@@ -62462,7 +62786,7 @@ function (_super) {
62462
62786
  SecurityModalComponent = security_modal_decorate([Object(flagwind_web_["component"])({
62463
62787
  template: __webpack_require__("3bf8"),
62464
62788
  components: {
62465
- "u-tips-form-label": project_detail_security_setting_v2_tips_form_label
62789
+ "u-tips-form-label": security_setting_v2_tips_form_label
62466
62790
  }
62467
62791
  })], SecurityModalComponent);
62468
62792
  return SecurityModalComponent;
@@ -62894,7 +63218,7 @@ function (_super) {
62894
63218
  SecuritySettingV2 = security_setting_v2_decorate([Object(flagwind_web_["component"])({
62895
63219
  template: __webpack_require__("3de4"),
62896
63220
  components: {
62897
- "u-tips-form-label": project_detail_security_setting_v2_tips_form_label,
63221
+ "u-tips-form-label": security_setting_v2_tips_form_label,
62898
63222
  "u-security-modal": project_detail_security_modal
62899
63223
  }
62900
63224
  })], SecuritySettingV2);
@@ -62923,6 +63247,7 @@ function (_super) {
62923
63247
 
62924
63248
 
62925
63249
 
63250
+
62926
63251
 
62927
63252
 
62928
63253
  var interface_settings_extends = undefined && undefined.__extends || function () {
@@ -63133,7 +63458,7 @@ var interface_settings_generator = undefined && undefined.__generator || functio
63133
63458
 
63134
63459
 
63135
63460
 
63136
-
63461
+ // import SecuritySetting from "../security-setting";
63137
63462
 
63138
63463
 
63139
63464
 
@@ -63208,12 +63533,15 @@ function (_super) {
63208
63533
  };
63209
63534
 
63210
63535
  InterfaceSettings.prototype.onRun = function () {
63211
- var _a, _b;
63536
+ var _a, _b, _c;
63212
63537
 
63213
63538
  return interface_settings_awaiter(this, void 0, void 0, function () {
63214
- var formParams, requestHeaders, result;
63215
- return interface_settings_generator(this, function (_c) {
63216
- switch (_c.label) {
63539
+ var formParams, requestHeaders, index, result;
63540
+
63541
+ var _this = this;
63542
+
63543
+ return interface_settings_generator(this, function (_d) {
63544
+ switch (_d.label) {
63217
63545
  case 0:
63218
63546
  this.loading = true;
63219
63547
  formParams = [];
@@ -63231,6 +63559,13 @@ function (_super) {
63231
63559
  });
63232
63560
  }
63233
63561
 
63562
+ if (!((_c = this.interfaceModel.environmentParam) === null || _c === void 0 ? void 0 : _c.length)) {
63563
+ index = this.paramList.findIndex(function (v) {
63564
+ return v.id === _this.interfaceModel.info.envId;
63565
+ });
63566
+ this.interfaceModel.environmentParam = index > -1 ? this.paramList[index] : null;
63567
+ }
63568
+
63234
63569
  return [4
63235
63570
  /*yield*/
63236
63571
  , this.service.run(this.interfaceModel.info.id, interface_settings_assign(interface_settings_assign({}, this.interfaceModel), {
@@ -63239,7 +63574,7 @@ function (_super) {
63239
63574
  }))];
63240
63575
 
63241
63576
  case 1:
63242
- result = _c.sent();
63577
+ result = _d.sent();
63243
63578
  this.loading = false;
63244
63579
  this.response = (result === null || result === void 0 ? void 0 : result.result) || new Response();
63245
63580
 
@@ -63372,7 +63707,7 @@ function (_super) {
63372
63707
  case 0:
63373
63708
  return [4
63374
63709
  /*yield*/
63375
- , this.service.getEnvironmentParamList({
63710
+ , this.service.getVariableList({
63376
63711
  projectId: this.projectId
63377
63712
  })];
63378
63713
 
@@ -63419,7 +63754,7 @@ function (_super) {
63419
63754
  response: project_detail_response,
63420
63755
  params: project_detail_params_setting,
63421
63756
  headers: project_detail_headers_setting,
63422
- security: project_detail_security_setting,
63757
+ // security: SecuritySetting,
63423
63758
  "pre-execution": project_detail_pre_execution_setting,
63424
63759
  "after-execution-transfer": project_detail_after_execution_transfer,
63425
63760
  "after-execution-script": after_execution_script,
@@ -63468,7 +63803,160 @@ var group_select_extends = undefined && undefined.__extends || function () {
63468
63803
  };
63469
63804
  }();
63470
63805
 
63471
- var group_select_decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
63806
+ var group_select_decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
63807
+ var c = arguments.length,
63808
+ r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
63809
+ d;
63810
+ 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--) {
63811
+ if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
63812
+ }
63813
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
63814
+ };
63815
+
63816
+ var group_select_metadata = undefined && undefined.__metadata || function (k, v) {
63817
+ if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
63818
+ };
63819
+
63820
+
63821
+
63822
+
63823
+ var group_select_GroupSelect =
63824
+ /** @class */
63825
+ function (_super) {
63826
+ group_select_extends(GroupSelect, _super);
63827
+
63828
+ function GroupSelect() {
63829
+ var _this = _super !== null && _super.apply(this, arguments) || this;
63830
+
63831
+ _this.visible = false;
63832
+ return _this;
63833
+ }
63834
+
63835
+ GroupSelect.prototype.onSelect = function (arr, node) {
63836
+ this.$emit("on-select", node);
63837
+ this.visible = false;
63838
+ };
63839
+
63840
+ GroupSelect.prototype.onClear = function () {
63841
+ this.onSelect([], {});
63842
+ };
63843
+
63844
+ GroupSelect.prototype.renderContent = function (h, _a) {
63845
+ var root = _a.root,
63846
+ node = _a.node,
63847
+ data = _a.data;
63848
+ return h("div", {
63849
+ class: "group-select-tree-node"
63850
+ }, [h("i", {
63851
+ attrs: {
63852
+ class: "api-icon icon-interface"
63853
+ }
63854
+ }), h("p", {
63855
+ attrs: {
63856
+ title: data.title,
63857
+ class: "api-group-select-tree-node-title"
63858
+ }
63859
+ }, data.title)]);
63860
+ };
63861
+
63862
+ var _a;
63863
+
63864
+ group_select_decorate([Object(flagwind_web_["config"])({
63865
+ default: function _default() {
63866
+ return [];
63867
+ }
63868
+ }), group_select_metadata("design:type", typeof (_a = typeof Array !== "undefined" && Array) === "function" ? _a : Object)], GroupSelect.prototype, "data", void 0);
63869
+
63870
+ group_select_decorate([Object(flagwind_web_["config"])({
63871
+ default: function _default() {
63872
+ return new Object();
63873
+ }
63874
+ }), group_select_metadata("design:type", Object)], GroupSelect.prototype, "current", void 0);
63875
+
63876
+ group_select_decorate([Object(flagwind_web_["config"])({
63877
+ type: Boolean,
63878
+ default: false
63879
+ }), group_select_metadata("design:type", Boolean)], GroupSelect.prototype, "isSelector", void 0);
63880
+
63881
+ GroupSelect = group_select_decorate([Object(flagwind_web_["component"])({
63882
+ template: __webpack_require__("c01f"),
63883
+ components: {}
63884
+ })], GroupSelect);
63885
+ return GroupSelect;
63886
+ }(flagwind_web_["Component"]);
63887
+
63888
+ /* harmony default export */ var project_detail_group_select = (group_select_GroupSelect);
63889
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.from.js
63890
+ var es_array_from = __webpack_require__("a630");
63891
+
63892
+ // EXTERNAL MODULE: ./src/views/project-detail/batch-api-modal/index.scss
63893
+ var batch_api_modal = __webpack_require__("8ea2");
63894
+
63895
+ // CONCATENATED MODULE: ./src/views/project-detail/batch-api-modal/index.ts
63896
+
63897
+
63898
+
63899
+
63900
+
63901
+
63902
+
63903
+
63904
+
63905
+
63906
+
63907
+
63908
+
63909
+
63910
+
63911
+
63912
+
63913
+
63914
+
63915
+ var batch_api_modal_extends = undefined && undefined.__extends || function () {
63916
+ var _extendStatics = function extendStatics(d, b) {
63917
+ _extendStatics = Object.setPrototypeOf || {
63918
+ __proto__: []
63919
+ } instanceof Array && function (d, b) {
63920
+ d.__proto__ = b;
63921
+ } || function (d, b) {
63922
+ for (var p in b) {
63923
+ if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
63924
+ }
63925
+ };
63926
+
63927
+ return _extendStatics(d, b);
63928
+ };
63929
+
63930
+ return function (d, b) {
63931
+ if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
63932
+
63933
+ _extendStatics(d, b);
63934
+
63935
+ function __() {
63936
+ this.constructor = d;
63937
+ }
63938
+
63939
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
63940
+ };
63941
+ }();
63942
+
63943
+ var batch_api_modal_assign = undefined && undefined.__assign || function () {
63944
+ batch_api_modal_assign = Object.assign || function (t) {
63945
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
63946
+ s = arguments[i];
63947
+
63948
+ for (var p in s) {
63949
+ if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
63950
+ }
63951
+ }
63952
+
63953
+ return t;
63954
+ };
63955
+
63956
+ return batch_api_modal_assign.apply(this, arguments);
63957
+ };
63958
+
63959
+ var batch_api_modal_decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
63472
63960
  var c = arguments.length,
63473
63961
  r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
63474
63962
  d;
@@ -63478,79 +63966,490 @@ var group_select_decorate = undefined && undefined.__decorate || function (decor
63478
63966
  return c > 3 && r && Object.defineProperty(target, key, r), r;
63479
63967
  };
63480
63968
 
63481
- var group_select_metadata = undefined && undefined.__metadata || function (k, v) {
63969
+ var batch_api_modal_metadata = undefined && undefined.__metadata || function (k, v) {
63482
63970
  if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
63483
63971
  };
63484
63972
 
63973
+ var batch_api_modal_awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
63974
+ function adopt(value) {
63975
+ return value instanceof P ? value : new P(function (resolve) {
63976
+ resolve(value);
63977
+ });
63978
+ }
63979
+
63980
+ return new (P || (P = Promise))(function (resolve, reject) {
63981
+ function fulfilled(value) {
63982
+ try {
63983
+ step(generator.next(value));
63984
+ } catch (e) {
63985
+ reject(e);
63986
+ }
63987
+ }
63988
+
63989
+ function rejected(value) {
63990
+ try {
63991
+ step(generator["throw"](value));
63992
+ } catch (e) {
63993
+ reject(e);
63994
+ }
63995
+ }
63485
63996
 
63997
+ function step(result) {
63998
+ result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
63999
+ }
63486
64000
 
64001
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
64002
+ });
64003
+ };
63487
64004
 
63488
- var group_select_GroupSelect =
64005
+ var batch_api_modal_generator = undefined && undefined.__generator || function (thisArg, body) {
64006
+ var _ = {
64007
+ label: 0,
64008
+ sent: function sent() {
64009
+ if (t[0] & 1) throw t[1];
64010
+ return t[1];
64011
+ },
64012
+ trys: [],
64013
+ ops: []
64014
+ },
64015
+ f,
64016
+ y,
64017
+ t,
64018
+ g;
64019
+ return g = {
64020
+ next: verb(0),
64021
+ "throw": verb(1),
64022
+ "return": verb(2)
64023
+ }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
64024
+ return this;
64025
+ }), g;
64026
+
64027
+ function verb(n) {
64028
+ return function (v) {
64029
+ return step([n, v]);
64030
+ };
64031
+ }
64032
+
64033
+ function step(op) {
64034
+ if (f) throw new TypeError("Generator is already executing.");
64035
+
64036
+ while (_) {
64037
+ try {
64038
+ 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;
64039
+ if (y = 0, t) op = [op[0] & 2, t.value];
64040
+
64041
+ switch (op[0]) {
64042
+ case 0:
64043
+ case 1:
64044
+ t = op;
64045
+ break;
64046
+
64047
+ case 4:
64048
+ _.label++;
64049
+ return {
64050
+ value: op[1],
64051
+ done: false
64052
+ };
64053
+
64054
+ case 5:
64055
+ _.label++;
64056
+ y = op[1];
64057
+ op = [0];
64058
+ continue;
64059
+
64060
+ case 7:
64061
+ op = _.ops.pop();
64062
+
64063
+ _.trys.pop();
64064
+
64065
+ continue;
64066
+
64067
+ default:
64068
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
64069
+ _ = 0;
64070
+ continue;
64071
+ }
64072
+
64073
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
64074
+ _.label = op[1];
64075
+ break;
64076
+ }
64077
+
64078
+ if (op[0] === 6 && _.label < t[1]) {
64079
+ _.label = t[1];
64080
+ t = op;
64081
+ break;
64082
+ }
64083
+
64084
+ if (t && _.label < t[2]) {
64085
+ _.label = t[2];
64086
+
64087
+ _.ops.push(op);
64088
+
64089
+ break;
64090
+ }
64091
+
64092
+ if (t[2]) _.ops.pop();
64093
+
64094
+ _.trys.pop();
64095
+
64096
+ continue;
64097
+ }
64098
+
64099
+ op = body.call(thisArg, _);
64100
+ } catch (e) {
64101
+ op = [6, e];
64102
+ y = 0;
64103
+ } finally {
64104
+ f = t = 0;
64105
+ }
64106
+ }
64107
+
64108
+ if (op[0] & 5) throw op[1];
64109
+ return {
64110
+ value: op[0] ? op[1] : void 0,
64111
+ done: true
64112
+ };
64113
+ }
64114
+ };
64115
+
64116
+
64117
+
64118
+
64119
+
64120
+
64121
+
64122
+ var batch_api_modal_BatchApiModal =
63489
64123
  /** @class */
63490
64124
  function (_super) {
63491
- group_select_extends(GroupSelect, _super);
64125
+ batch_api_modal_extends(BatchApiModal, _super);
63492
64126
 
63493
- function GroupSelect() {
64127
+ function BatchApiModal() {
63494
64128
  var _this = _super !== null && _super.apply(this, arguments) || this;
63495
64129
 
63496
- _this.visible = false;
64130
+ _this.keyword = "";
64131
+ _this.apiList = [];
64132
+ _this.isEmpty = true;
64133
+ _this.allSelect = false;
64134
+ _this.variableList = [];
64135
+ _this.securityList = [];
64136
+ _this.set = new Set();
64137
+ _this.type = "env";
64138
+ _this.formData = {
64139
+ envId: "",
64140
+ authId: ""
64141
+ };
63497
64142
  return _this;
63498
64143
  }
63499
64144
 
63500
- GroupSelect.prototype.onSelect = function (arr, node) {
63501
- this.$emit("on-select", node);
63502
- this.visible = false;
64145
+ Object.defineProperty(BatchApiModal.prototype, "rules", {
64146
+ get: function get() {
64147
+ if (this.type === "env") {
64148
+ return {
64149
+ envId: [{
64150
+ required: true,
64151
+ message: "请选择",
64152
+ trigger: "change"
64153
+ }]
64154
+ };
64155
+ } else if (this.type === "auth") {
64156
+ return {
64157
+ authId: [{
64158
+ required: true,
64159
+ message: "请选择",
64160
+ trigger: "change"
64161
+ }]
64162
+ };
64163
+ } else {
64164
+ return {
64165
+ envId: [{
64166
+ required: true,
64167
+ message: "请选择",
64168
+ trigger: "change"
64169
+ }],
64170
+ authId: [{
64171
+ required: true,
64172
+ message: "请选择",
64173
+ trigger: "change"
64174
+ }]
64175
+ };
64176
+ }
64177
+ },
64178
+ enumerable: false,
64179
+ configurable: true
64180
+ });
64181
+ /**
64182
+ * 过滤查询
64183
+ * @param data
64184
+ */
64185
+
64186
+ BatchApiModal.prototype.onFilter = function (data) {
64187
+ var _this = this;
64188
+
64189
+ this.apiList = this.data.$clone().filter(function (h) {
64190
+ if (h.name.indexOf(_this.keyword) > -1) {
64191
+ return h;
64192
+ }
64193
+ });
64194
+ this.apiList.forEach(function (v) {
64195
+ _this.set.has(v.id) && (v.selected = true);
64196
+ });
64197
+ }; // 弹窗打开和关闭需要重置数据
64198
+
64199
+
64200
+ BatchApiModal.prototype.onShowChange = function (show) {
64201
+ return batch_api_modal_awaiter(this, void 0, void 0, function () {
64202
+ return batch_api_modal_generator(this, function (_a) {
64203
+ if (show) {
64204
+ this.getVariableList();
64205
+ this.apiList = this.data.$clone();
64206
+ } else {
64207
+ this.allSelect = false;
64208
+ this.set.clear();
64209
+ this.$refs["batch-api-form"].resetFields();
64210
+ }
64211
+
64212
+ return [2
64213
+ /*return*/
64214
+ ];
64215
+ });
64216
+ });
63503
64217
  };
63504
64218
 
63505
- GroupSelect.prototype.onClear = function () {
63506
- this.onSelect([], {});
64219
+ BatchApiModal.prototype.onEmpty = function (value) {
64220
+ if (value) {
64221
+ this.isEmpty = true;
64222
+ } else {
64223
+ this.isEmpty = false;
64224
+ }
63507
64225
  };
64226
+ /**
64227
+ * 分别获取环境变量和授权设置的数据
64228
+ */
63508
64229
 
63509
- GroupSelect.prototype.renderContent = function (h, _a) {
63510
- var root = _a.root,
63511
- node = _a.node,
63512
- data = _a.data;
63513
- return h("div", {
63514
- class: "group-select-tree-node"
63515
- }, [h("i", {
63516
- attrs: {
63517
- class: "api-icon icon-interface"
63518
- }
63519
- }), h("p", {
63520
- attrs: {
63521
- title: data.title,
63522
- class: "api-group-select-tree-node-title"
63523
- }
63524
- }, data.title)]);
64230
+
64231
+ BatchApiModal.prototype.getVariableList = function () {
64232
+ return batch_api_modal_awaiter(this, void 0, void 0, function () {
64233
+ var res, list;
64234
+ return batch_api_modal_generator(this, function (_a) {
64235
+ switch (_a.label) {
64236
+ case 0:
64237
+ return [4
64238
+ /*yield*/
64239
+ , this.service.getVariableList({
64240
+ projectId: this.projectId
64241
+ })];
64242
+
64243
+ case 1:
64244
+ res = _a.sent();
64245
+ return [4
64246
+ /*yield*/
64247
+ , this.service.getSecurityList({
64248
+ projectId: this.projectId
64249
+ })];
64250
+
64251
+ case 2:
64252
+ list = _a.sent();
64253
+
64254
+ if (!(res === null || res === void 0 ? void 0 : res.hasError)) {
64255
+ this.variableList = res.result || [];
64256
+ }
64257
+
64258
+ if (!(list === null || list === void 0 ? void 0 : list.hasError)) {
64259
+ this.securityList = list.result || [];
64260
+ }
64261
+
64262
+ return [2
64263
+ /*return*/
64264
+ ];
64265
+ }
64266
+ });
64267
+ });
64268
+ };
64269
+ /**
64270
+ * 点击每个api的复选框触发事件
64271
+ * @param data 当前复选框状态
64272
+ * @param item 当前操作的数据
64273
+ */
64274
+
64275
+
64276
+ BatchApiModal.prototype.onSelect = function (data, item) {
64277
+ if (data) {
64278
+ this.set.add(item.id);
64279
+ } else {
64280
+ this.set.delete(item.id);
64281
+ }
64282
+ };
64283
+ /**
64284
+ * 点击全选框事件
64285
+ * @param data 当前全选框的值
64286
+ */
64287
+
64288
+
64289
+ BatchApiModal.prototype.onAllSelect = function (data) {
64290
+ var _this = this;
64291
+
64292
+ if (data) {
64293
+ this.apiList.forEach(function (item) {
64294
+ item.selected = true;
64295
+
64296
+ _this.set.add(item.id);
64297
+ });
64298
+ } else {
64299
+ this.apiList.forEach(function (item) {
64300
+ item.selected = false;
64301
+
64302
+ _this.set.delete(item.id);
64303
+ });
64304
+ }
64305
+ };
64306
+
64307
+ BatchApiModal.prototype.onCancel = function () {
64308
+ this.keyword = "";
64309
+ this.value = false;
64310
+ };
64311
+ /**
64312
+ * 保存事件
64313
+ * @returns
64314
+ */
64315
+
64316
+
64317
+ BatchApiModal.prototype.onSave = function () {
64318
+ return batch_api_modal_awaiter(this, void 0, void 0, function () {
64319
+ var vaild, data, res, res, res, result;
64320
+ return batch_api_modal_generator(this, function (_a) {
64321
+ switch (_a.label) {
64322
+ case 0:
64323
+ if (!this.set.size) {
64324
+ return [2
64325
+ /*return*/
64326
+ , this.$message.warning("请选择api")];
64327
+ }
64328
+
64329
+ return [4
64330
+ /*yield*/
64331
+ , this.$refs["batch-api-form"].validate()];
64332
+
64333
+ case 1:
64334
+ vaild = _a.sent();
64335
+
64336
+ if (!vaild) {
64337
+ return [2
64338
+ /*return*/
64339
+ ];
64340
+ }
64341
+
64342
+ data = {
64343
+ ids: Array.from(this.set)
64344
+ };
64345
+ if (!(this.type === "env")) return [3
64346
+ /*break*/
64347
+ , 3];
64348
+ data.envId = this.formData.envId === "empty" ? "" : this.formData.envId;
64349
+ return [4
64350
+ /*yield*/
64351
+ , this.service.onBatchEnv(data)];
64352
+
64353
+ case 2:
64354
+ res = _a.sent();
64355
+
64356
+ if (res && !res.hasError) {
64357
+ this.$message.success("保存成功!");
64358
+ this.$emit("on-success", true);
64359
+ this.onCancel();
64360
+ }
64361
+
64362
+ return [2
64363
+ /*return*/
64364
+ ];
64365
+
64366
+ case 3:
64367
+ if (!(this.type === "auth")) return [3
64368
+ /*break*/
64369
+ , 5];
64370
+ data.authId = this.formData.authId === "empty" ? "" : this.formData.authId;
64371
+ return [4
64372
+ /*yield*/
64373
+ , this.service.onBatchAuth(data)];
64374
+
64375
+ case 4:
64376
+ res = _a.sent();
64377
+
64378
+ if (res && !res.hasError) {
64379
+ this.$message.success("保存成功!"); // this.$publish("api://batch-api-refresh");
64380
+ // this.$publish("api://security-list-refresh");
64381
+
64382
+ this.onCancel();
64383
+ }
64384
+
64385
+ return [2
64386
+ /*return*/
64387
+ ];
64388
+
64389
+ case 5:
64390
+ return [4
64391
+ /*yield*/
64392
+ , this.service.onBatchEnv(batch_api_modal_assign(batch_api_modal_assign({}, data), {
64393
+ envId: this.formData.envId === "empty" ? "" : this.formData.envId
64394
+ }))];
64395
+
64396
+ case 6:
64397
+ res = _a.sent();
64398
+ return [4
64399
+ /*yield*/
64400
+ , this.service.onBatchAuth(batch_api_modal_assign(batch_api_modal_assign({}, data), {
64401
+ authId: this.formData.authId === "empty" ? "" : this.formData.authId
64402
+ }))];
64403
+
64404
+ case 7:
64405
+ result = _a.sent();
64406
+
64407
+ if (!(res === null || res === void 0 ? void 0 : res.hasError) && !(result === null || result === void 0 ? void 0 : result.hasError)) {
64408
+ this.$message.success("保存成功!");
64409
+ this.$emit("on-success", true);
64410
+ this.onCancel();
64411
+ }
64412
+
64413
+ return [2
64414
+ /*return*/
64415
+ ];
64416
+ }
64417
+ });
64418
+ });
63525
64419
  };
63526
64420
 
63527
64421
  var _a;
63528
64422
 
63529
- group_select_decorate([Object(flagwind_web_["config"])({
64423
+ batch_api_modal_decorate([autowired(project_detail_service), batch_api_modal_metadata("design:type", typeof (_a = typeof project_detail_service !== "undefined" && project_detail_service) === "function" ? _a : Object)], BatchApiModal.prototype, "service", void 0);
64424
+
64425
+ batch_api_modal_decorate([Object(external_vue_property_decorator_["PropSync"])("visiable", {
64426
+ default: false
64427
+ }), batch_api_modal_metadata("design:type", Boolean)], BatchApiModal.prototype, "value", void 0);
64428
+
64429
+ batch_api_modal_decorate([Object(flagwind_web_["config"])({
64430
+ default: []
64431
+ }), batch_api_modal_metadata("design:type", Object)], BatchApiModal.prototype, "data", void 0);
64432
+
64433
+ batch_api_modal_decorate([Object(flagwind_web_["config"])({
63530
64434
  default: function _default() {
63531
64435
  return [];
63532
64436
  }
63533
- }), group_select_metadata("design:type", typeof (_a = typeof Array !== "undefined" && Array) === "function" ? _a : Object)], GroupSelect.prototype, "data", void 0);
64437
+ }), batch_api_modal_metadata("design:type", String)], BatchApiModal.prototype, "projectId", void 0);
63534
64438
 
63535
- group_select_decorate([Object(flagwind_web_["config"])({
63536
- default: function _default() {
63537
- return new Object();
63538
- }
63539
- }), group_select_metadata("design:type", Object)], GroupSelect.prototype, "current", void 0);
64439
+ batch_api_modal_decorate([Object(flagwind_web_["watch"])("value"), batch_api_modal_metadata("design:type", Function), batch_api_modal_metadata("design:paramtypes", [Boolean]), batch_api_modal_metadata("design:returntype", Promise)], BatchApiModal.prototype, "onShowChange", null);
63540
64440
 
63541
- group_select_decorate([Object(flagwind_web_["config"])({
63542
- type: Boolean,
63543
- default: false
63544
- }), group_select_metadata("design:type", Boolean)], GroupSelect.prototype, "isSelector", void 0);
64441
+ batch_api_modal_decorate([Object(flagwind_web_["watch"])("data.length", {
64442
+ immediate: true
64443
+ }), batch_api_modal_metadata("design:type", Function), batch_api_modal_metadata("design:paramtypes", [Object]), batch_api_modal_metadata("design:returntype", void 0)], BatchApiModal.prototype, "onEmpty", null);
63545
64444
 
63546
- GroupSelect = group_select_decorate([Object(flagwind_web_["component"])({
63547
- template: __webpack_require__("c01f"),
64445
+ BatchApiModal = batch_api_modal_decorate([Object(flagwind_web_["component"])({
64446
+ template: __webpack_require__("88af"),
63548
64447
  components: {}
63549
- })], GroupSelect);
63550
- return GroupSelect;
64448
+ })], BatchApiModal);
64449
+ return BatchApiModal;
63551
64450
  }(flagwind_web_["Component"]);
63552
64451
 
63553
- /* harmony default export */ var project_detail_group_select = (group_select_GroupSelect);
64452
+ /* harmony default export */ var project_detail_batch_api_modal = (batch_api_modal_BatchApiModal);
63554
64453
  // EXTERNAL MODULE: ./src/views/project-detail/tree-node/index.scss
63555
64454
  var project_detail_tree_node = __webpack_require__("688a");
63556
64455
 
@@ -63873,6 +64772,7 @@ var project_detail_tree_generator = undefined && undefined.__generator || functi
63873
64772
 
63874
64773
 
63875
64774
 
64775
+
63876
64776
  var tree_ProjectTree =
63877
64777
  /** @class */
63878
64778
  function (_super) {
@@ -63906,6 +64806,8 @@ function (_super) {
63906
64806
  }];
63907
64807
  _this.showInterfaceModal = false;
63908
64808
  _this.showGroupModal = false;
64809
+ _this.showBatchModal = false;
64810
+ _this.categoryApiList = [];
63909
64811
  _this.interfaceModel = {
63910
64812
  method: "GET"
63911
64813
  };
@@ -63927,6 +64829,7 @@ function (_super) {
63927
64829
  "on-edit-interface": this.onEditInterface,
63928
64830
  // "on-delete-interface": this.onDeleteInterface,
63929
64831
  "on-delete-interface": this.onDeleteClick,
64832
+ "on-edit-attribute": this.onBatchEdit,
63930
64833
  "on-copy-interface": this.onCopyInterface,
63931
64834
  "on-add-interface": this.onAddInterface,
63932
64835
  "on-delete-group": this.onDeleteGroup,
@@ -63949,6 +64852,21 @@ function (_super) {
63949
64852
  this.showInterfaceModal = true;
63950
64853
  };
63951
64854
 
64855
+ ProjectTree.prototype.onBatchEdit = function (data) {
64856
+ var list = [];
64857
+ this.data.forEach(function (item) {
64858
+ if (item.id === data.id) {
64859
+ list = data.apis;
64860
+ return;
64861
+ }
64862
+ });
64863
+ this.categoryApiList = list.map(function (h) {
64864
+ h.selected = false;
64865
+ return h;
64866
+ });
64867
+ this.showBatchModal = true;
64868
+ };
64869
+
63952
64870
  ProjectTree.prototype.onDeleteInterface = function (data) {
63953
64871
  return project_detail_tree_awaiter(this, void 0, void 0, function () {
63954
64872
  var result;
@@ -64286,6 +65204,10 @@ function (_super) {
64286
65204
  });
64287
65205
  };
64288
65206
 
65207
+ ProjectTree.prototype.onBatchSuccess = function (data) {
65208
+ this.$emit("on-success", data);
65209
+ };
65210
+
64289
65211
  var _a;
64290
65212
 
64291
65213
  project_detail_tree_decorate([Object(flagwind_web_["config"])({
@@ -64303,7 +65225,8 @@ function (_super) {
64303
65225
  ProjectTree = project_detail_tree_decorate([Object(flagwind_web_["component"])({
64304
65226
  template: __webpack_require__("193e"),
64305
65227
  components: {
64306
- "u-group-select": project_detail_group_select
65228
+ "u-group-select": project_detail_group_select,
65229
+ "u-batch-modal": project_detail_batch_api_modal
64307
65230
  }
64308
65231
  })], ProjectTree);
64309
65232
  return ProjectTree;
@@ -64547,6 +65470,7 @@ var project_detail_generator = undefined && undefined.__generator || function (t
64547
65470
 
64548
65471
 
64549
65472
 
65473
+
64550
65474
  var project_detail_ProjectDetail =
64551
65475
  /** @class */
64552
65476
  function (_super) {
@@ -64561,6 +65485,7 @@ function (_super) {
64561
65485
  _this.showGlobalModal = false;
64562
65486
  _this.showCurrentModal = false;
64563
65487
  _this.showSecurity = false;
65488
+ _this.showEnvironmentModal = false;
64564
65489
  _this.projectId = "";
64565
65490
  _this.projectName = "";
64566
65491
  _this.split = "340px";
@@ -64569,6 +65494,7 @@ function (_super) {
64569
65494
  slidesPerView: "auto",
64570
65495
  spaceBetween: 0
64571
65496
  };
65497
+ _this.current = {};
64572
65498
  return _this;
64573
65499
  }
64574
65500
 
@@ -64620,6 +65546,7 @@ function (_super) {
64620
65546
  return project_detail_generator(this, function (_a) {
64621
65547
  switch (_a.label) {
64622
65548
  case 0:
65549
+ this.current = data;
64623
65550
  resumeData = {};
64624
65551
 
64625
65552
  if (isResume) {
@@ -64744,6 +65671,10 @@ function (_super) {
64744
65671
 
64745
65672
  ProjectDetail.prototype.onOpenCurrentModal = function () {
64746
65673
  this.showCurrentModal = true;
65674
+ };
65675
+
65676
+ ProjectDetail.prototype.onOpenEnvModal = function () {
65677
+ this.showEnvironmentModal = true;
64747
65678
  }; // @watch("$route", { deep: true, immediate: true })
64748
65679
 
64749
65680
 
@@ -64759,7 +65690,10 @@ function (_super) {
64759
65690
  id: apiId,
64760
65691
  name: apiName
64761
65692
  }, resume === "true");
64762
- }
65693
+ } // this.$subscribe("api://batch-api-refresh", async () => {
65694
+ // this.onCheckInterface(this.current, resume === "true");
65695
+ // });
65696
+
64763
65697
  };
64764
65698
 
64765
65699
  ProjectDetail.prototype.activated = function () {
@@ -64782,6 +65716,12 @@ function (_super) {
64782
65716
  });
64783
65717
  };
64784
65718
 
65719
+ ProjectDetail.prototype.onBatchSuccess = function (data) {
65720
+ if (data) {
65721
+ this.getProjectInfo();
65722
+ }
65723
+ };
65724
+
64785
65725
  var _a;
64786
65726
 
64787
65727
  project_detail_decorate([autowired(project_detail_service), project_detail_metadata("design:type", typeof (_a = typeof project_detail_service !== "undefined" && project_detail_service) === "function" ? _a : Object)], ProjectDetail.prototype, "service", void 0);
@@ -64794,6 +65734,7 @@ function (_super) {
64794
65734
  "u-settings": project_detail_interface_settings,
64795
65735
  "u-global-modal": project_detail_global_variable_modal,
64796
65736
  "u-current-modal": project_detail_current_variable_modal,
65737
+ "u-environment-modal": project_detail_environment_variable_modal,
64797
65738
  Swiper: vue_awesome_swiper["Swiper"],
64798
65739
  SwiperSlide: vue_awesome_swiper["SwiperSlide"],
64799
65740
  "u-security-modal": project_detail_security_modal