@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.
- package/dist/index.common.js +1784 -843
- package/dist/index.css +1 -1
- package/dist/index.umd.js +1784 -843
- package/dist/index.umd.min.js +4 -4
- package/dist/static/fonts/{iconfont.920ac458.ttf → iconfont.69cf9c44.ttf} +0 -0
- package/dist/static/fonts/{iconfont.eada572b.eot → iconfont.76d00a46.eot} +0 -0
- package/dist/static/fonts/iconfont.e5021c3c.woff +0 -0
- package/dist/static/img/{authentication.da2b6203.svg → authentication.e6fbf188.svg} +159 -159
- package/dist/static/img/{iconfont.73d088e3.svg → iconfont.243baa7a.svg} +261 -247
- package/dist/types/src/views/project-detail/batch-api-modal/index.d.ts +72 -0
- package/dist/types/src/views/project-detail/environment-variable-modal/index.d.ts +41 -0
- package/dist/types/src/views/project-detail/index.d.ts +4 -0
- package/dist/types/src/views/project-detail/service.d.ts +5 -1
- package/dist/types/src/views/project-detail/tree/index.d.ts +4 -0
- package/package.json +2 -2
- package/dist/static/fonts/iconfont.31da6b63.woff +0 -0
package/dist/index.umd.js
CHANGED
|
@@ -21260,6 +21260,57 @@ module.exports = function (originalArray) {
|
|
|
21260
21260
|
};
|
|
21261
21261
|
|
|
21262
21262
|
|
|
21263
|
+
/***/ }),
|
|
21264
|
+
|
|
21265
|
+
/***/ "0cb2":
|
|
21266
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
21267
|
+
|
|
21268
|
+
var uncurryThis = __webpack_require__("e330");
|
|
21269
|
+
var toObject = __webpack_require__("7b0b");
|
|
21270
|
+
|
|
21271
|
+
var floor = Math.floor;
|
|
21272
|
+
var charAt = uncurryThis(''.charAt);
|
|
21273
|
+
var replace = uncurryThis(''.replace);
|
|
21274
|
+
var stringSlice = uncurryThis(''.slice);
|
|
21275
|
+
var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
|
|
21276
|
+
var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
|
|
21277
|
+
|
|
21278
|
+
// `GetSubstitution` abstract operation
|
|
21279
|
+
// https://tc39.es/ecma262/#sec-getsubstitution
|
|
21280
|
+
module.exports = function (matched, str, position, captures, namedCaptures, replacement) {
|
|
21281
|
+
var tailPos = position + matched.length;
|
|
21282
|
+
var m = captures.length;
|
|
21283
|
+
var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
|
|
21284
|
+
if (namedCaptures !== undefined) {
|
|
21285
|
+
namedCaptures = toObject(namedCaptures);
|
|
21286
|
+
symbols = SUBSTITUTION_SYMBOLS;
|
|
21287
|
+
}
|
|
21288
|
+
return replace(replacement, symbols, function (match, ch) {
|
|
21289
|
+
var capture;
|
|
21290
|
+
switch (charAt(ch, 0)) {
|
|
21291
|
+
case '$': return '$';
|
|
21292
|
+
case '&': return matched;
|
|
21293
|
+
case '`': return stringSlice(str, 0, position);
|
|
21294
|
+
case "'": return stringSlice(str, tailPos);
|
|
21295
|
+
case '<':
|
|
21296
|
+
capture = namedCaptures[stringSlice(ch, 1, -1)];
|
|
21297
|
+
break;
|
|
21298
|
+
default: // \d\d?
|
|
21299
|
+
var n = +ch;
|
|
21300
|
+
if (n === 0) return match;
|
|
21301
|
+
if (n > m) {
|
|
21302
|
+
var f = floor(n / 10);
|
|
21303
|
+
if (f === 0) return match;
|
|
21304
|
+
if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);
|
|
21305
|
+
return match;
|
|
21306
|
+
}
|
|
21307
|
+
capture = captures[n - 1];
|
|
21308
|
+
}
|
|
21309
|
+
return capture === undefined ? '' : capture;
|
|
21310
|
+
});
|
|
21311
|
+
};
|
|
21312
|
+
|
|
21313
|
+
|
|
21263
21314
|
/***/ }),
|
|
21264
21315
|
|
|
21265
21316
|
/***/ "0cfb":
|
|
@@ -22628,7 +22679,7 @@ module.exports = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {
|
|
|
22628
22679
|
/***/ "193e":
|
|
22629
22680
|
/***/ (function(module, exports) {
|
|
22630
22681
|
|
|
22631
|
-
module.exports = "<article class=\"project-tree\">\r\n <header>\r\n <i-input class=\"diy-input\"
|
|
22682
|
+
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"
|
|
22632
22683
|
|
|
22633
22684
|
/***/ }),
|
|
22634
22685
|
|
|
@@ -26363,7 +26414,7 @@ module.exports = version;
|
|
|
26363
26414
|
/***/ "2f53":
|
|
26364
26415
|
/***/ (function(module, exports) {
|
|
26365
26416
|
|
|
26366
|
-
module.exports = "<span class=\"wrap\">\n <i-poptip trigger=\"hover\" :content=\"tips\">\n<!-- <div class=\"diy-info-icon\">i</div>-->\n <i-icon type=\"ios-information-circle-outline\"></i-icon>\n </i-poptip>\n <span class=\"title\">{{labelTitle}}</span>\n <span v-if=\"labelColon\">:</span>\n</span>\n"
|
|
26417
|
+
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"
|
|
26367
26418
|
|
|
26368
26419
|
/***/ }),
|
|
26369
26420
|
|
|
@@ -26487,7 +26538,7 @@ module.exports = function (argument) {
|
|
|
26487
26538
|
/***/ "3bf8":
|
|
26488
26539
|
/***/ (function(module, exports) {
|
|
26489
26540
|
|
|
26490
|
-
module.exports = "<i-modal draggable sticky reset-drag-position :mask-closable=\"false\" v-model=\"show\" width=\"1000\" class=\"u-security-modal diy-modal\" transfer>\r\n <header slot=\"header\">授权认证</header>\r\n <main class=\"security-content\">\r\n <div class=\"left\">\r\n <div class=\"left-title\">\r\n <div class=\"left-title-text\">授权列表</div>\r\n <i class=\"api-icon icon-add\" @click=\"onAddItem\"></i>\r\n </div>\r\n <div class=\"left-content\">\r\n <i-input class=\"diy-input search-input\" v-model=\"keyword\" placeholder=\"输入关键字查询\" @on-change=\"onFilter\">\r\n <template #prefix>\r\n <i-icon type=\"ios-search\"/>\r\n </template>\r\n </i-input>\r\n <div class=\"security-list\">\r\n <div class=\"security-list-item\"\r\n :class=\"currentSecurityItem.id === item.id ? 'security-list-item-active' : ''\"\r\n v-for=\"(item,index) in securityList\"\r\n :key=\"item.id || index\"\r\n @click=\"onSelectSecurityItem(item)\"\r\n >\r\n <div class=\"security-list-item-name\">\r\n <i class=\"iconfont icon-shouquan1\"></i>\r\n <div class=\"security-list-item-text\">{{ item.name || \"新授权\" }}</div>\r\n </div>\r\n <i-poptip confirm title=\"确认删除这条数据吗?\" transfer placement=\"top-end\" @on-ok=\"onDelete(item)\">\r\n <i class=\"iconfont icon-delete\"></i>\r\n </i-poptip>\r\n<!-- <i class=\"iconfont icon-delete\" @click.stop=\"onDelete(item)\"></i>-->\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"right\">\r\n <div class=\"right-title\">授权内容</div>\r\n <div class=\"right-content\">\r\n <i-form class=\"security-content-form\"label-colon :model=\"currentSecurityItem\">\r\n <template v-if=\"currentSecurityItem.type\">\r\n <i-form-item class=\"security-content-form-item\" :class=\"currentSecurityItem.type === 'OAuth2' ? 'oauth2-form-item' : ''\" label=\"授权名称\">\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.name\"></i-input>\r\n </i-form-item>\r\n <i-form-item class=\"security-content-form-item\" :class=\"currentSecurityItem.type === 'OAuth2' ? 'oauth2-form-item' : ''\" label=\"授权类型\">\r\n <i-select class=\"diy-select\" v-model=\"currentSecurityItem.type\">\r\n <i-option v-for=\"(item,index) in securityTypeList\" :value=\"item.name\" :key=\"index\">{{ item.text }}</i-option>\r\n </i-select>\r\n </i-form-item>\r\n </template>\r\n <template v-if=\"currentSecurityItem.type && currentSecurityItem.type !== 'GROOVY_SCRIPT'\">\r\n <i-form-item class=\"security-content-form-item\" :class=\"currentSecurityItem.type === 'OAuth2' ? 'oauth2-form-item' : ''\" label=\"存储位置\">\r\n <i-select class=\"diy-select\" v-model=\"currentSecurityItem.location\">\r\n <i-option v-for=\"(item,index) in tokenLocationTypeList\" :value=\"item.name\" :key=\"item.name\">{{ item.text }}</i-option>\r\n </i-select>\r\n </i-form-item>\r\n <i-form-item class=\"security-content-form-item\" :class=\"currentSecurityItem.type === 'OAuth2' ? 'oauth2-form-item' : ''\" label=\"存储键值\">\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.locationKey\"></i-input>\r\n </i-form-item>\r\n </template>\r\n <template v-if=\"currentSecurityItem.type === 'Api_Key'\">\r\n <i-form-item class=\"security-content-form-item\" label=\"key\">\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.key\"></i-input>\r\n </i-form-item>\r\n </template>\r\n <template v-if=\"currentSecurityItem.type === 'Base_Auth'\">\r\n <i-form-item class=\"security-content-form-item\" label=\"username\">\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.username\"></i-input>\r\n </i-form-item>\r\n <i-form-item class=\"security-content-form-item\" label=\"password\">\r\n <i-input class=\"diy-password-input diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.password\" type=\"password\" password></i-input>\r\n </i-form-item>\r\n </template>\r\n <template v-if=\"currentSecurityItem.type === 'OAuth2'\">\r\n <i-form-item class=\"security-content-form-item oauth2-form-item\">\r\n <u-tips-form-label slot=\"label\" :labelTitle=\"'Header Prefix'\" tips=\"token前缀 例如 Bearer\" label-colon></u-tips-form-label>\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.headerPrefix\"></i-input>\r\n </i-form-item>\r\n <i-form-item class=\"security-content-form-item oauth2-form-item\">\r\n <u-tips-form-label slot=\"label\" :labelTitle=\"'Grant Type'\" tips=\"认证类型\" label-colon></u-tips-form-label>\r\n <i-select v-model=\"currentSecurityItem.content.grantType\" class=\"diy-select\">\r\n <i-option v-for=\"item in grantTypeList\" :key=\"item.name\" :value=\"item.name\"> {{item.text}} </i-option>\r\n </i-select>\r\n </i-form-item>\r\n <i-form-item class=\"security-content-form-item oauth2-form-item\">\r\n <u-tips-form-label slot=\"label\" :labelTitle=\"'Access Token Url'\" tips=\"获取token的httpUrl\" label-colon></u-tips-form-label>\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.tokenUrl\"></i-input>\r\n </i-form-item>\r\n <i-form-item class=\"security-content-form-item oauth2-form-item\">\r\n <u-tips-form-label slot=\"label\" :labelTitle=\"'TokenPath'\" tips=\"获取响应结果的token路径\" label-colon></u-tips-form-label>\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.tokenPath\"></i-input>\r\n </i-form-item>\r\n <i-form-item class=\"security-content-form-item oauth2-form-item\" label=\"Client ID\">\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.clientId\"></i-input>\r\n </i-form-item>\r\n <i-form-item class=\"security-content-form-item oauth2-form-item\" label=\"Client Secret\">\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.clientSecret\"></i-input>\r\n </i-form-item>\r\n <template v-if=\"currentSecurityItem.content.grantType === 'password'\">\r\n <i-form-item class=\"security-content-form-item oauth2-form-item\" label=\"username\">\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.username\"></i-input>\r\n </i-form-item>\r\n <i-form-item class=\"security-content-form-item oauth2-form-item\" label=\"password\">\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.password\" type=\"password\" password></i-input>\r\n </i-form-item>\r\n </template>\r\n <i-form-item class=\"security-content-form-item oauth2-form-item\">\r\n <u-tips-form-label slot=\"label\" :labelTitle=\"'Scope'\" tips=\"访问请求的范围,它可能有多个空格分隔的值\" label-colon></u-tips-form-label>\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.scope\"></i-input>\r\n </i-form-item>\r\n </template>\r\n <template v-if=\"currentSecurityItem.type === 'GROOVY_SCRIPT'\">\r\n <i-form-item class=\"security-content-form-item script-area-item\" label=\"授权脚本\">\r\n <i-input class=\"diy-input script-area\" type=\"textarea\" placeholder=\"请输入\" v-model=\"currentSecurityItem.scriptContent\"></i-input>\r\n </i-form-item>\r\n </template>\r\n </i-form>\r\n </div>\r\n </div>\r\n </main>\r\n\r\n <footer slot=\"footer\">\r\n <template>\r\n <i-button class=\"diy-btn-default\" @click=\"onCancel\">取消</i-button>\r\n <i-button type=\"primary\" class=\"diy-btn-primary\" @click=\"onSave\">保存</i-button>\r\n </template>\r\n </footer>\r\n</i-modal>\r\n"
|
|
26541
|
+
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"
|
|
26491
26542
|
|
|
26492
26543
|
/***/ }),
|
|
26493
26544
|
|
|
@@ -26532,7 +26583,7 @@ defineIterator(String, 'String', function (iterated) {
|
|
|
26532
26583
|
/***/ "3de4":
|
|
26533
26584
|
/***/ (function(module, exports) {
|
|
26534
26585
|
|
|
26535
|
-
module.exports = "<article class=\"security-setting-v2\">\r\n <div class=\"left\">\r\n <i-form class=\"type-form diy-form\" label-colon>\r\n <i-form-item label=\"选择授权\">\r\n <i-select ref=\"addSecuritySelect\" class=\"diy-select add-security-select\" v-model=\"currentSecurityItemId\" @on-change=\"onChangeSecurityItem($event)\" @on-clear=\"onClear\" clearable>\r\n <i-option v-for=\"item in securityList\" :key=\"item.id\" :value=\"item.id\">{{ item.name }}</i-option>\r\n <i-option class=\"add-security-item\" value=\"''\">\r\n <div class=\"add-security-item-content\" @click.stop=\"onAddSecurityItem\">\r\n <i class=\"api-icon icon-add\"></i>\r\n <span>新建授权</span>\r\n </div>\r\n </i-option>\r\n </i-select>\r\n </i-form-item>\r\n <i-form-item label=\"授权类型\">\r\n <span class=\"security-type\">{{ currentSecurityItem._type?.text ? currentSecurityItem._type.text : \"暂无\" }}</span>\r\n </i-form-item>\r\n </i-form>\r\n </div>\r\n <div class=\"right\">\r\n <div class=\"right-title\">授权详情</div>\r\n <div class=\"right-content\">\r\n <div class=\"no-data\" v-if=\"!currentSecurityItem.type\">\r\n <div class=\"no-data-bg\"></div>\r\n <div class=\"no-data-text\">请在左侧下拉框中选择已建立授权</div>\r\n </div>\r\n <div class=\"script\" v-if=\"currentSecurityItem.type === 'GROOVY_SCRIPT'\">\r\n <i-input class=\"diy-input script-area\" type=\"textarea\" v-model=\"currentSecurityItem.scriptContent\" :readonly=\"true\"></i-input>\r\n </div>\r\n <div class=\"api-key\" v-if=\"currentSecurityItem.type === 'Api_Key'\">\r\n <i-form class=\"oauth-2-form diy-form\" label-colon>\r\n <i-form-item label=\"存储位置\">\r\n <span class=\"form-item-text\">{{ currentSecurityItem._location?.text ? currentSecurityItem._location.text : \"\"}}</span>\r\n </i-form-item>\r\n <i-form-item label=\"存储键值\">\r\n <span class=\"form-item-text\">{{ currentSecurityItem.locationKey }}</span>\r\n </i-form-item>\r\n <i-form-item label=\"key\">\r\n <span class=\"form-item-text\">{{ currentSecurityItem.content.key }}</span>\r\n </i-form-item>\r\n </i-form>\r\n </div>\r\n <div class=\"base-auth\" v-if=\"currentSecurityItem.type === 'Base_Auth'\">\r\n <i-form class=\"oauth-2-form diy-form\" label-colon>\r\n <i-form-item label=\"存储位置\">\r\n <span class=\"form-item-text\">{{ currentSecurityItem._location?.text ? currentSecurityItem._location.text : \"\" }}</span>\r\n </i-form-item>\r\n <i-form-item label=\"存储键值\">\r\n <span class=\"form-item-text\">{{ currentSecurityItem.locationKey }}</span>\r\n </i-form-item>\r\n <i-form-item label=\"username\">\r\n <span class=\"form-item-text\">{{ currentSecurityItem.content.username }}</span>\r\n </i-form-item>\r\n <i-form-item label=\"password\">\r\n <!-- <span class=\"form-item-text\">{{ \"·\" }}</span>-->\r\n <!-- <i-input class=\"diy-input\" v-model=\"model.password\" type=\"password\" password placeholder=\"请输入\"> </i-input>-->\r\n <i-input class=\"diy-password-input diy-input\" :value=\"currentSecurityItem.content.password\" type=\"password\"></i-input>\r\n </i-form-item>\r\n </i-form>\r\n </div>\r\n <div class=\"oauth-2\" v-if=\"currentSecurityItem.type === 'OAuth2'\">\r\n <i-form class=\"oauth-2-form diy-form\" label-colon>\r\n <i-form-item label=\"存储位置\">\r\n <span class=\"form-item-text\">{{ currentSecurityItem._location?.text ? currentSecurityItem._location.text : \"\" }}</span>\r\n </i-form-item>\r\n <i-form-item label=\"存储键值\">\r\n <span class=\"form-item-text\">{{ currentSecurityItem.locationKey }}</span>\r\n </i-form-item>\r\n <i-form-item>\r\n <u-tips-form-label slot=\"label\" :labelTitle=\"'Header Prefix'\" tips=\"token前缀 例如 Bearer\" label-colon></u-tips-form-label>\r\n <span class=\"form-item-text\">{{ currentSecurityItem.content.headerPrefix }}</span>\r\n </i-form-item>\r\n <i-form-item>\r\n <u-tips-form-label slot=\"label\" :labelTitle=\"'Grant Type'\" tips=\"认证类型\" label-colon></u-tips-form-label>\r\n <span class=\"form-item-text\">{{ findGrantTypeText(currentSecurityItem.content.grantType) }}</span>\r\n </i-form-item>\r\n <i-form-item>\r\n <u-tips-form-label slot=\"label\" :labelTitle=\"'Access Token Url'\" tips=\"获取token的httpUrl\" label-colon></u-tips-form-label>\r\n <span class=\"form-item-text\">{{ currentSecurityItem.content.tokenUrl }}</span>\r\n </i-form-item>\r\n <i-form-item>\r\n <u-tips-form-label slot=\"label\" :labelTitle=\"'TokenPath'\" tips=\"获取响应结果的token路径\" label-colon></u-tips-form-label>\r\n <span class=\"form-item-text\">{{ currentSecurityItem.content.tokenPath }}</span>\r\n </i-form-item>\r\n <i-form-item label=\"Client ID\">\r\n <span class=\"form-item-text\">{{ currentSecurityItem.content.clientId }}</span>\r\n </i-form-item>\r\n <i-form-item label=\"Client Secret\">\r\n <span class=\"form-item-text\">{{ currentSecurityItem.content.clientSecret }}</span>\r\n </i-form-item>\r\n <template v-if=\"currentSecurityItem.content.grantType === 'password'\">\r\n <i-form-item class=\"security-content-form-item\" label=\"username\">\r\n <span class=\"form-item-text\">{{ currentSecurityItem.content.username }}</span>\r\n </i-form-item>\r\n <i-form-item class=\"security-content-form-item\" label=\"password\">\r\n <i-input class=\"diy-password-input diy-input\" :value=\"currentSecurityItem.content.password\" type=\"password\"></i-input>\r\n </i-form-item>\r\n </template>\r\n <i-form-item label=\"Scope\">\r\n <u-tips-form-label slot=\"label\" :labelTitle=\"'Scope'\" tips=\"访问请求的范围,它可能有多个空格分隔的值\" label-colon></u-tips-form-label>\r\n <span class=\"form-item-text\">{{ currentSecurityItem.content.scope }}</span>\r\n </i-form-item>\r\n </i-form>\r\n </div>\r\n </div>\r\n </div>\r\n <u-security-modal v-model=\"showSecurity\" :projectID=\"projectID\" :isAdd=\"isAdd\"></u-security-modal>\r\n</article>\r\n"
|
|
26586
|
+
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"
|
|
26536
26587
|
|
|
26537
26588
|
/***/ }),
|
|
26538
26589
|
|
|
@@ -26729,7 +26780,7 @@ fixRegExpWellKnownSymbolLogic('match', function (MATCH, nativeMatch, maybeCallNa
|
|
|
26729
26780
|
/***/ "46d3":
|
|
26730
26781
|
/***/ (function(module, exports) {
|
|
26731
26782
|
|
|
26732
|
-
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"
|
|
26783
|
+
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"
|
|
26733
26784
|
|
|
26734
26785
|
/***/ }),
|
|
26735
26786
|
|
|
@@ -38008,6 +38059,150 @@ var webkit = userAgent.match(/AppleWebKit\/(\d+)\./);
|
|
|
38008
38059
|
module.exports = !!webkit && +webkit[1];
|
|
38009
38060
|
|
|
38010
38061
|
|
|
38062
|
+
/***/ }),
|
|
38063
|
+
|
|
38064
|
+
/***/ "5319":
|
|
38065
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
38066
|
+
|
|
38067
|
+
"use strict";
|
|
38068
|
+
|
|
38069
|
+
var apply = __webpack_require__("2ba4");
|
|
38070
|
+
var call = __webpack_require__("c65b");
|
|
38071
|
+
var uncurryThis = __webpack_require__("e330");
|
|
38072
|
+
var fixRegExpWellKnownSymbolLogic = __webpack_require__("d784");
|
|
38073
|
+
var fails = __webpack_require__("d039");
|
|
38074
|
+
var anObject = __webpack_require__("825a");
|
|
38075
|
+
var isCallable = __webpack_require__("1626");
|
|
38076
|
+
var toIntegerOrInfinity = __webpack_require__("5926");
|
|
38077
|
+
var toLength = __webpack_require__("50c4");
|
|
38078
|
+
var toString = __webpack_require__("577e");
|
|
38079
|
+
var requireObjectCoercible = __webpack_require__("1d80");
|
|
38080
|
+
var advanceStringIndex = __webpack_require__("8aa5");
|
|
38081
|
+
var getMethod = __webpack_require__("dc4a");
|
|
38082
|
+
var getSubstitution = __webpack_require__("0cb2");
|
|
38083
|
+
var regExpExec = __webpack_require__("14c3");
|
|
38084
|
+
var wellKnownSymbol = __webpack_require__("b622");
|
|
38085
|
+
|
|
38086
|
+
var REPLACE = wellKnownSymbol('replace');
|
|
38087
|
+
var max = Math.max;
|
|
38088
|
+
var min = Math.min;
|
|
38089
|
+
var concat = uncurryThis([].concat);
|
|
38090
|
+
var push = uncurryThis([].push);
|
|
38091
|
+
var stringIndexOf = uncurryThis(''.indexOf);
|
|
38092
|
+
var stringSlice = uncurryThis(''.slice);
|
|
38093
|
+
|
|
38094
|
+
var maybeToString = function (it) {
|
|
38095
|
+
return it === undefined ? it : String(it);
|
|
38096
|
+
};
|
|
38097
|
+
|
|
38098
|
+
// IE <= 11 replaces $0 with the whole match, as if it was $&
|
|
38099
|
+
// https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
|
|
38100
|
+
var REPLACE_KEEPS_$0 = (function () {
|
|
38101
|
+
// eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
|
|
38102
|
+
return 'a'.replace(/./, '$0') === '$0';
|
|
38103
|
+
})();
|
|
38104
|
+
|
|
38105
|
+
// Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
|
|
38106
|
+
var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
|
|
38107
|
+
if (/./[REPLACE]) {
|
|
38108
|
+
return /./[REPLACE]('a', '$0') === '';
|
|
38109
|
+
}
|
|
38110
|
+
return false;
|
|
38111
|
+
})();
|
|
38112
|
+
|
|
38113
|
+
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
|
|
38114
|
+
var re = /./;
|
|
38115
|
+
re.exec = function () {
|
|
38116
|
+
var result = [];
|
|
38117
|
+
result.groups = { a: '7' };
|
|
38118
|
+
return result;
|
|
38119
|
+
};
|
|
38120
|
+
// eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive
|
|
38121
|
+
return ''.replace(re, '$<a>') !== '7';
|
|
38122
|
+
});
|
|
38123
|
+
|
|
38124
|
+
// @@replace logic
|
|
38125
|
+
fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) {
|
|
38126
|
+
var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
|
|
38127
|
+
|
|
38128
|
+
return [
|
|
38129
|
+
// `String.prototype.replace` method
|
|
38130
|
+
// https://tc39.es/ecma262/#sec-string.prototype.replace
|
|
38131
|
+
function replace(searchValue, replaceValue) {
|
|
38132
|
+
var O = requireObjectCoercible(this);
|
|
38133
|
+
var replacer = searchValue == undefined ? undefined : getMethod(searchValue, REPLACE);
|
|
38134
|
+
return replacer
|
|
38135
|
+
? call(replacer, searchValue, O, replaceValue)
|
|
38136
|
+
: call(nativeReplace, toString(O), searchValue, replaceValue);
|
|
38137
|
+
},
|
|
38138
|
+
// `RegExp.prototype[@@replace]` method
|
|
38139
|
+
// https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
|
|
38140
|
+
function (string, replaceValue) {
|
|
38141
|
+
var rx = anObject(this);
|
|
38142
|
+
var S = toString(string);
|
|
38143
|
+
|
|
38144
|
+
if (
|
|
38145
|
+
typeof replaceValue == 'string' &&
|
|
38146
|
+
stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&
|
|
38147
|
+
stringIndexOf(replaceValue, '$<') === -1
|
|
38148
|
+
) {
|
|
38149
|
+
var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
|
|
38150
|
+
if (res.done) return res.value;
|
|
38151
|
+
}
|
|
38152
|
+
|
|
38153
|
+
var functionalReplace = isCallable(replaceValue);
|
|
38154
|
+
if (!functionalReplace) replaceValue = toString(replaceValue);
|
|
38155
|
+
|
|
38156
|
+
var global = rx.global;
|
|
38157
|
+
if (global) {
|
|
38158
|
+
var fullUnicode = rx.unicode;
|
|
38159
|
+
rx.lastIndex = 0;
|
|
38160
|
+
}
|
|
38161
|
+
var results = [];
|
|
38162
|
+
while (true) {
|
|
38163
|
+
var result = regExpExec(rx, S);
|
|
38164
|
+
if (result === null) break;
|
|
38165
|
+
|
|
38166
|
+
push(results, result);
|
|
38167
|
+
if (!global) break;
|
|
38168
|
+
|
|
38169
|
+
var matchStr = toString(result[0]);
|
|
38170
|
+
if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
|
|
38171
|
+
}
|
|
38172
|
+
|
|
38173
|
+
var accumulatedResult = '';
|
|
38174
|
+
var nextSourcePosition = 0;
|
|
38175
|
+
for (var i = 0; i < results.length; i++) {
|
|
38176
|
+
result = results[i];
|
|
38177
|
+
|
|
38178
|
+
var matched = toString(result[0]);
|
|
38179
|
+
var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);
|
|
38180
|
+
var captures = [];
|
|
38181
|
+
// NOTE: This is equivalent to
|
|
38182
|
+
// captures = result.slice(1).map(maybeToString)
|
|
38183
|
+
// but for some reason `nativeSlice.call(result, 1, result.length)` (called in
|
|
38184
|
+
// the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
|
|
38185
|
+
// causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
|
|
38186
|
+
for (var j = 1; j < result.length; j++) push(captures, maybeToString(result[j]));
|
|
38187
|
+
var namedCaptures = result.groups;
|
|
38188
|
+
if (functionalReplace) {
|
|
38189
|
+
var replacerArgs = concat([matched], captures, position, S);
|
|
38190
|
+
if (namedCaptures !== undefined) push(replacerArgs, namedCaptures);
|
|
38191
|
+
var replacement = toString(apply(replaceValue, undefined, replacerArgs));
|
|
38192
|
+
} else {
|
|
38193
|
+
replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
|
|
38194
|
+
}
|
|
38195
|
+
if (position >= nextSourcePosition) {
|
|
38196
|
+
accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement;
|
|
38197
|
+
nextSourcePosition = position + matched.length;
|
|
38198
|
+
}
|
|
38199
|
+
}
|
|
38200
|
+
return accumulatedResult + stringSlice(S, nextSourcePosition);
|
|
38201
|
+
}
|
|
38202
|
+
];
|
|
38203
|
+
}, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
|
|
38204
|
+
|
|
38205
|
+
|
|
38011
38206
|
/***/ }),
|
|
38012
38207
|
|
|
38013
38208
|
/***/ "554d":
|
|
@@ -40611,6 +40806,13 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
40611
40806
|
}));
|
|
40612
40807
|
|
|
40613
40808
|
|
|
40809
|
+
/***/ }),
|
|
40810
|
+
|
|
40811
|
+
/***/ "88af":
|
|
40812
|
+
/***/ (function(module, exports) {
|
|
40813
|
+
|
|
40814
|
+
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"
|
|
40815
|
+
|
|
40614
40816
|
/***/ }),
|
|
40615
40817
|
|
|
40616
40818
|
/***/ "8925":
|
|
@@ -40632,6 +40834,13 @@ if (!isCallable(store.inspectSource)) {
|
|
|
40632
40834
|
module.exports = store.inspectSource;
|
|
40633
40835
|
|
|
40634
40836
|
|
|
40837
|
+
/***/ }),
|
|
40838
|
+
|
|
40839
|
+
/***/ "8962":
|
|
40840
|
+
/***/ (function(module, exports) {
|
|
40841
|
+
|
|
40842
|
+
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"
|
|
40843
|
+
|
|
40635
40844
|
/***/ }),
|
|
40636
40845
|
|
|
40637
40846
|
/***/ "89c1":
|
|
@@ -41743,6 +41952,13 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__8bbf__;
|
|
|
41743
41952
|
|
|
41744
41953
|
/***/ }),
|
|
41745
41954
|
|
|
41955
|
+
/***/ "8ea2":
|
|
41956
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
41957
|
+
|
|
41958
|
+
// extracted by mini-css-extract-plugin
|
|
41959
|
+
|
|
41960
|
+
/***/ }),
|
|
41961
|
+
|
|
41746
41962
|
/***/ "90e3":
|
|
41747
41963
|
/***/ (function(module, exports, __webpack_require__) {
|
|
41748
41964
|
|
|
@@ -42077,13 +42293,6 @@ dom.importCssString(exports.cssText, exports.cssClass);
|
|
|
42077
42293
|
});
|
|
42078
42294
|
|
|
42079
42295
|
|
|
42080
|
-
/***/ }),
|
|
42081
|
-
|
|
42082
|
-
/***/ "9721":
|
|
42083
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
42084
|
-
|
|
42085
|
-
// extracted by mini-css-extract-plugin
|
|
42086
|
-
|
|
42087
42296
|
/***/ }),
|
|
42088
42297
|
|
|
42089
42298
|
/***/ "981a":
|
|
@@ -42767,13 +42976,6 @@ module.exports = "<i-poptip\r\n transfer\r\n class=\"u-tree-selector\"\r\n
|
|
|
42767
42976
|
|
|
42768
42977
|
/***/ }),
|
|
42769
42978
|
|
|
42770
|
-
/***/ "a406":
|
|
42771
|
-
/***/ (function(module, exports) {
|
|
42772
|
-
|
|
42773
|
-
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"
|
|
42774
|
-
|
|
42775
|
-
/***/ }),
|
|
42776
|
-
|
|
42777
42979
|
/***/ "a434":
|
|
42778
42980
|
/***/ (function(module, exports, __webpack_require__) {
|
|
42779
42981
|
|
|
@@ -43191,6 +43393,27 @@ setToStringTag($Symbol, SYMBOL);
|
|
|
43191
43393
|
hiddenKeys[HIDDEN] = true;
|
|
43192
43394
|
|
|
43193
43395
|
|
|
43396
|
+
/***/ }),
|
|
43397
|
+
|
|
43398
|
+
/***/ "a630":
|
|
43399
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
43400
|
+
|
|
43401
|
+
var $ = __webpack_require__("23e7");
|
|
43402
|
+
var from = __webpack_require__("4df4");
|
|
43403
|
+
var checkCorrectnessOfIteration = __webpack_require__("1c7e");
|
|
43404
|
+
|
|
43405
|
+
var INCORRECT_ITERATION = !checkCorrectnessOfIteration(function (iterable) {
|
|
43406
|
+
// eslint-disable-next-line es/no-array-from -- required for testing
|
|
43407
|
+
Array.from(iterable);
|
|
43408
|
+
});
|
|
43409
|
+
|
|
43410
|
+
// `Array.from` method
|
|
43411
|
+
// https://tc39.es/ecma262/#sec-array.from
|
|
43412
|
+
$({ target: 'Array', stat: true, forced: INCORRECT_ITERATION }, {
|
|
43413
|
+
from: from
|
|
43414
|
+
});
|
|
43415
|
+
|
|
43416
|
+
|
|
43194
43417
|
/***/ }),
|
|
43195
43418
|
|
|
43196
43419
|
/***/ "a640":
|
|
@@ -45823,13 +46046,6 @@ $({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {
|
|
|
45823
46046
|
});
|
|
45824
46047
|
|
|
45825
46048
|
|
|
45826
|
-
/***/ }),
|
|
45827
|
-
|
|
45828
|
-
/***/ "b676":
|
|
45829
|
-
/***/ (function(module, exports) {
|
|
45830
|
-
|
|
45831
|
-
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"
|
|
45832
|
-
|
|
45833
46049
|
/***/ }),
|
|
45834
46050
|
|
|
45835
46051
|
/***/ "b727":
|
|
@@ -47246,7 +47462,7 @@ module.exports = /ipad|iphone|ipod/i.test(userAgent) && global.Pebble !== undefi
|
|
|
47246
47462
|
/***/ "d63e":
|
|
47247
47463
|
/***/ (function(module, exports) {
|
|
47248
47464
|
|
|
47249
|
-
module.exports = "<article class=\"project-detail\">\r\n <header>\r\n <div class=\"environment\">\r\n <p>{{projectName}}</p>\r\n <!-- <span>环境变量:</span> -->\r\n <!-- <i-select class=\"diy-select\"></i-select> -->\r\n </div>\r\n <div class=\"btns\">\r\n <!-- <i-button type=\"primary\" ghost class=\"diy-btn-primary\" @click=\"onOpenGlobalModal\"> <i class=\"api-icon icon-setting\"></i>全局参数设置</i-button> -->\r\n <!-- <i-button type=\"success\" ghost class=\"diy-btn-success\" @click=\"onOpenCurrentModal\"><i class=\"api-icon icon-view\"></i>查看当前变量</i-button> -->\r\n <i-button v-if=\"projectId && projectName\" type=\"primary\" class=\"diy-btn-primary security-btn\" ghost @click=\"onSecurity\"><i class=\"iconfont icon-xinzengzhibiao\"></i>授权认证</i-button>\r\n <i-button type=\"primary\" class=\"diy-btn-primary
|
|
47465
|
+
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"
|
|
47250
47466
|
|
|
47251
47467
|
/***/ }),
|
|
47252
47468
|
|
|
@@ -47382,7 +47598,7 @@ module.exports = "<div class=\"v-parameter-list-container\">\r\n <main>\r\n
|
|
|
47382
47598
|
/***/ "d8e7":
|
|
47383
47599
|
/***/ (function(module, exports) {
|
|
47384
47600
|
|
|
47385
|
-
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"
|
|
47601
|
+
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"
|
|
47386
47602
|
|
|
47387
47603
|
/***/ }),
|
|
47388
47604
|
|
|
@@ -47396,7 +47612,7 @@ module.exports = "<!DOCTYPE html>\n<article class=\"v-api-combine-info-wrapper\"
|
|
|
47396
47612
|
/***/ "d953":
|
|
47397
47613
|
/***/ (function(module, exports) {
|
|
47398
47614
|
|
|
47399
|
-
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=\"
|
|
47615
|
+
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"
|
|
47400
47616
|
|
|
47401
47617
|
/***/ }),
|
|
47402
47618
|
|
|
@@ -48465,6 +48681,13 @@ if ($stringify) {
|
|
|
48465
48681
|
|
|
48466
48682
|
/***/ }),
|
|
48467
48683
|
|
|
48684
|
+
/***/ "eaed":
|
|
48685
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
48686
|
+
|
|
48687
|
+
// extracted by mini-css-extract-plugin
|
|
48688
|
+
|
|
48689
|
+
/***/ }),
|
|
48690
|
+
|
|
48468
48691
|
/***/ "eb57":
|
|
48469
48692
|
/***/ (function(module, exports, __webpack_require__) {
|
|
48470
48693
|
|
|
@@ -48615,7 +48838,7 @@ module.exports = uncurryThis([].slice);
|
|
|
48615
48838
|
/***/ "f40e":
|
|
48616
48839
|
/***/ (function(module, exports) {
|
|
48617
48840
|
|
|
48618
|
-
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
|
|
48841
|
+
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"
|
|
48619
48842
|
|
|
48620
48843
|
/***/ }),
|
|
48621
48844
|
|
|
@@ -58498,12 +58721,36 @@ function (_super) {
|
|
|
58498
58721
|
|
|
58499
58722
|
ApiService.prototype.updateSecurityItem = function (data) {
|
|
58500
58723
|
return this._put("/unity/api/authentication", data);
|
|
58501
|
-
};
|
|
58724
|
+
}; // @serviceHandler("query", { title: "环境列表查询", showErrorMsg: true })
|
|
58725
|
+
// public getEnvironmentParamList(data: any) {
|
|
58726
|
+
// return this._post<any>("/unity/api/environment-param/list", data);
|
|
58727
|
+
// }
|
|
58728
|
+
|
|
58502
58729
|
|
|
58503
|
-
ApiService.prototype.
|
|
58730
|
+
ApiService.prototype.getVariableList = function (data) {
|
|
58504
58731
|
return this._post("/unity/api/environment-param/list", data);
|
|
58505
58732
|
};
|
|
58506
58733
|
|
|
58734
|
+
ApiService.prototype.saveVariable = function (data) {
|
|
58735
|
+
if (data === null || data === void 0 ? void 0 : data.id) {
|
|
58736
|
+
return this._put("/unity/api/environment-param", data);
|
|
58737
|
+
} else {
|
|
58738
|
+
return this._post("/unity/api/environment-param", data);
|
|
58739
|
+
}
|
|
58740
|
+
};
|
|
58741
|
+
|
|
58742
|
+
ApiService.prototype.deleteVariable = function (id) {
|
|
58743
|
+
return this._delete("/unity/api/environment-param/".concat(id));
|
|
58744
|
+
};
|
|
58745
|
+
|
|
58746
|
+
ApiService.prototype.onBatchEnv = function (data) {
|
|
58747
|
+
return this._post("/unity/api/info/env", data);
|
|
58748
|
+
};
|
|
58749
|
+
|
|
58750
|
+
ApiService.prototype.onBatchAuth = function (data) {
|
|
58751
|
+
return this._post("/unity/api/info/auth", data);
|
|
58752
|
+
};
|
|
58753
|
+
|
|
58507
58754
|
var _a, _b;
|
|
58508
58755
|
|
|
58509
58756
|
project_detail_service_decorate([serviceHandler("query", {
|
|
@@ -58593,9 +58840,29 @@ function (_super) {
|
|
|
58593
58840
|
}), 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);
|
|
58594
58841
|
|
|
58595
58842
|
project_detail_service_decorate([serviceHandler("query", {
|
|
58596
|
-
title: "
|
|
58843
|
+
title: "环境变量详情",
|
|
58597
58844
|
showErrorMsg: true
|
|
58598
|
-
}), project_detail_service_metadata("design:type", Function), project_detail_service_metadata("design:paramtypes", [Object]), project_detail_service_metadata("design:returntype", void 0)], ApiService.prototype, "
|
|
58845
|
+
}), 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);
|
|
58846
|
+
|
|
58847
|
+
project_detail_service_decorate([serviceHandler("save", {
|
|
58848
|
+
title: "保存环境变量",
|
|
58849
|
+
showErrorMsg: true
|
|
58850
|
+
}), 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);
|
|
58851
|
+
|
|
58852
|
+
project_detail_service_decorate([serviceHandler("query", {
|
|
58853
|
+
title: "删除环境变量",
|
|
58854
|
+
showErrorMsg: true
|
|
58855
|
+
}), 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);
|
|
58856
|
+
|
|
58857
|
+
project_detail_service_decorate([serviceHandler("query", {
|
|
58858
|
+
title: "批量修改环境变量",
|
|
58859
|
+
showErrorMsg: true
|
|
58860
|
+
}), 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);
|
|
58861
|
+
|
|
58862
|
+
project_detail_service_decorate([serviceHandler("query", {
|
|
58863
|
+
title: "批量修改授权设置",
|
|
58864
|
+
showErrorMsg: true
|
|
58865
|
+
}), 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);
|
|
58599
58866
|
|
|
58600
58867
|
return ApiService;
|
|
58601
58868
|
}(common_service);
|
|
@@ -59513,95 +59780,21 @@ function (_super) {
|
|
|
59513
59780
|
}(flagwind_web_["Component"]);
|
|
59514
59781
|
|
|
59515
59782
|
/* harmony default export */ var project_detail_global_variable_modal = (global_variable_modal_GlobalVariableModal);
|
|
59516
|
-
// EXTERNAL MODULE: ./
|
|
59517
|
-
var
|
|
59518
|
-
|
|
59519
|
-
// CONCATENATED MODULE: ./src/views/project-detail/base-editor-setting.ts
|
|
59520
|
-
|
|
59521
|
-
|
|
59522
|
-
|
|
59523
|
-
|
|
59524
|
-
|
|
59525
|
-
|
|
59526
|
-
var base_editor_setting_extends = undefined && undefined.__extends || function () {
|
|
59527
|
-
var _extendStatics = function extendStatics(d, b) {
|
|
59528
|
-
_extendStatics = Object.setPrototypeOf || {
|
|
59529
|
-
__proto__: []
|
|
59530
|
-
} instanceof Array && function (d, b) {
|
|
59531
|
-
d.__proto__ = b;
|
|
59532
|
-
} || function (d, b) {
|
|
59533
|
-
for (var p in b) {
|
|
59534
|
-
if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
|
|
59535
|
-
}
|
|
59536
|
-
};
|
|
59537
|
-
|
|
59538
|
-
return _extendStatics(d, b);
|
|
59539
|
-
};
|
|
59540
|
-
|
|
59541
|
-
return function (d, b) {
|
|
59542
|
-
if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
59543
|
-
|
|
59544
|
-
_extendStatics(d, b);
|
|
59545
|
-
|
|
59546
|
-
function __() {
|
|
59547
|
-
this.constructor = d;
|
|
59548
|
-
}
|
|
59549
|
-
|
|
59550
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
59551
|
-
};
|
|
59552
|
-
}();
|
|
59553
|
-
|
|
59554
|
-
var base_editor_setting_decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
59555
|
-
var c = arguments.length,
|
|
59556
|
-
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
59557
|
-
d;
|
|
59558
|
-
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--) {
|
|
59559
|
-
if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
59560
|
-
}
|
|
59561
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
59562
|
-
};
|
|
59563
|
-
|
|
59564
|
-
var base_editor_setting_metadata = undefined && undefined.__metadata || function (k, v) {
|
|
59565
|
-
if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
59566
|
-
};
|
|
59567
|
-
|
|
59568
|
-
|
|
59569
|
-
|
|
59570
|
-
var base_editor_setting_BaseEditorSetting =
|
|
59571
|
-
/** @class */
|
|
59572
|
-
function (_super) {
|
|
59573
|
-
base_editor_setting_extends(BaseEditorSetting, _super);
|
|
59574
|
-
|
|
59575
|
-
function BaseEditorSetting() {
|
|
59576
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
59577
|
-
|
|
59578
|
-
_this.editor = {};
|
|
59579
|
-
return _this;
|
|
59580
|
-
}
|
|
59783
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
|
|
59784
|
+
var es_string_replace = __webpack_require__("5319");
|
|
59581
59785
|
|
|
59582
|
-
|
|
59583
|
-
|
|
59584
|
-
};
|
|
59786
|
+
// EXTERNAL MODULE: ./src/views/project-detail/environment-variable-modal/index.scss
|
|
59787
|
+
var environment_variable_modal = __webpack_require__("eaed");
|
|
59585
59788
|
|
|
59586
|
-
|
|
59587
|
-
|
|
59588
|
-
|
|
59789
|
+
// EXTERNAL MODULE: ./node_modules/lodash.debounce/index.js
|
|
59790
|
+
var lodash_debounce = __webpack_require__("f7fe");
|
|
59791
|
+
var lodash_debounce_default = /*#__PURE__*/__webpack_require__.n(lodash_debounce);
|
|
59589
59792
|
|
|
59590
|
-
|
|
59591
|
-
default: true
|
|
59592
|
-
}), base_editor_setting_metadata("design:type", Boolean)], BaseEditorSetting.prototype, "lengthwise", void 0);
|
|
59793
|
+
// CONCATENATED MODULE: ./src/views/project-detail/environment-variable-modal/index.ts
|
|
59593
59794
|
|
|
59594
|
-
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);
|
|
59595
59795
|
|
|
59596
|
-
BaseEditorSetting = base_editor_setting_decorate([Object(flagwind_web_["component"])({})], BaseEditorSetting);
|
|
59597
|
-
return BaseEditorSetting;
|
|
59598
|
-
}(flagwind_web_["Component"]);
|
|
59599
59796
|
|
|
59600
|
-
/* harmony default export */ var base_editor_setting = (base_editor_setting_BaseEditorSetting);
|
|
59601
|
-
// EXTERNAL MODULE: ./src/views/project-detail/pre-execution-setting/index.scss
|
|
59602
|
-
var pre_execution_setting = __webpack_require__("d928");
|
|
59603
59797
|
|
|
59604
|
-
// CONCATENATED MODULE: ./src/views/project-detail/pre-execution-setting/index.ts
|
|
59605
59798
|
|
|
59606
59799
|
|
|
59607
59800
|
|
|
@@ -59615,7 +59808,7 @@ var pre_execution_setting = __webpack_require__("d928");
|
|
|
59615
59808
|
|
|
59616
59809
|
|
|
59617
59810
|
|
|
59618
|
-
var
|
|
59811
|
+
var environment_variable_modal_extends = undefined && undefined.__extends || function () {
|
|
59619
59812
|
var _extendStatics = function extendStatics(d, b) {
|
|
59620
59813
|
_extendStatics = Object.setPrototypeOf || {
|
|
59621
59814
|
__proto__: []
|
|
@@ -59643,7 +59836,7 @@ var pre_execution_setting_extends = undefined && undefined.__extends || function
|
|
|
59643
59836
|
};
|
|
59644
59837
|
}();
|
|
59645
59838
|
|
|
59646
|
-
var
|
|
59839
|
+
var environment_variable_modal_decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
59647
59840
|
var c = arguments.length,
|
|
59648
59841
|
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
59649
59842
|
d;
|
|
@@ -59653,11 +59846,11 @@ var pre_execution_setting_decorate = undefined && undefined.__decorate || functi
|
|
|
59653
59846
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
59654
59847
|
};
|
|
59655
59848
|
|
|
59656
|
-
var
|
|
59849
|
+
var environment_variable_modal_metadata = undefined && undefined.__metadata || function (k, v) {
|
|
59657
59850
|
if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
59658
59851
|
};
|
|
59659
59852
|
|
|
59660
|
-
var
|
|
59853
|
+
var environment_variable_modal_awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
59661
59854
|
function adopt(value) {
|
|
59662
59855
|
return value instanceof P ? value : new P(function (resolve) {
|
|
59663
59856
|
resolve(value);
|
|
@@ -59689,7 +59882,7 @@ var pre_execution_setting_awaiter = undefined && undefined.__awaiter || function
|
|
|
59689
59882
|
});
|
|
59690
59883
|
};
|
|
59691
59884
|
|
|
59692
|
-
var
|
|
59885
|
+
var environment_variable_modal_generator = undefined && undefined.__generator || function (thisArg, body) {
|
|
59693
59886
|
var _ = {
|
|
59694
59887
|
label: 0,
|
|
59695
59888
|
sent: function sent() {
|
|
@@ -59807,38 +60000,93 @@ var pre_execution_setting_generator = undefined && undefined.__generator || func
|
|
|
59807
60000
|
|
|
59808
60001
|
|
|
59809
60002
|
|
|
59810
|
-
|
|
59811
|
-
var pre_execution_setting_PreExecutionSetting =
|
|
60003
|
+
var environment_variable_modal_EnvironmentVariableModal =
|
|
59812
60004
|
/** @class */
|
|
59813
60005
|
function (_super) {
|
|
59814
|
-
|
|
60006
|
+
environment_variable_modal_extends(EnvironmentVariableModal, _super);
|
|
59815
60007
|
|
|
59816
|
-
function
|
|
60008
|
+
function EnvironmentVariableModal() {
|
|
59817
60009
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
59818
60010
|
|
|
59819
|
-
_this.
|
|
59820
|
-
_this.
|
|
59821
|
-
_this.
|
|
60011
|
+
_this.varList = [];
|
|
60012
|
+
_this.keyword = "";
|
|
60013
|
+
_this.currentItem = {};
|
|
60014
|
+
_this.isEmpty = true;
|
|
60015
|
+
_this.formData = {
|
|
60016
|
+
name: "",
|
|
60017
|
+
remark: "",
|
|
60018
|
+
type: "http",
|
|
60019
|
+
address: ""
|
|
60020
|
+
};
|
|
60021
|
+
_this.rules = {
|
|
60022
|
+
name: [{
|
|
60023
|
+
required: true,
|
|
60024
|
+
message: "请输入环境名称",
|
|
60025
|
+
trigger: "blur"
|
|
60026
|
+
}],
|
|
60027
|
+
address: [{
|
|
60028
|
+
required: true,
|
|
60029
|
+
message: "请输入域名",
|
|
60030
|
+
trigger: "blur"
|
|
60031
|
+
}]
|
|
60032
|
+
};
|
|
60033
|
+
/**
|
|
60034
|
+
* 防抖查询
|
|
60035
|
+
*/
|
|
60036
|
+
|
|
60037
|
+
_this.onFilter = lodash_debounce_default()(function () {
|
|
60038
|
+
_this.getVariableList();
|
|
60039
|
+
}, 300);
|
|
59822
60040
|
return _this;
|
|
59823
60041
|
}
|
|
59824
60042
|
|
|
59825
|
-
|
|
59826
|
-
this
|
|
60043
|
+
EnvironmentVariableModal.prototype.onShowChange = function (show) {
|
|
60044
|
+
return environment_variable_modal_awaiter(this, void 0, void 0, function () {
|
|
60045
|
+
return environment_variable_modal_generator(this, function (_a) {
|
|
60046
|
+
if (show) {
|
|
60047
|
+
this.getVariableList();
|
|
60048
|
+
}
|
|
60049
|
+
|
|
60050
|
+
return [2
|
|
60051
|
+
/*return*/
|
|
60052
|
+
];
|
|
60053
|
+
});
|
|
60054
|
+
});
|
|
59827
60055
|
};
|
|
59828
60056
|
|
|
59829
|
-
|
|
59830
|
-
|
|
59831
|
-
|
|
59832
|
-
|
|
60057
|
+
EnvironmentVariableModal.prototype.onEmpty = function (value) {
|
|
60058
|
+
if (value) {
|
|
60059
|
+
this.isEmpty = true;
|
|
60060
|
+
} else {
|
|
60061
|
+
this.isEmpty = false;
|
|
60062
|
+
}
|
|
60063
|
+
};
|
|
60064
|
+
/**
|
|
60065
|
+
* 获取当前已有环境变量数据
|
|
60066
|
+
*/
|
|
60067
|
+
|
|
60068
|
+
|
|
60069
|
+
EnvironmentVariableModal.prototype.getVariableList = function () {
|
|
60070
|
+
return environment_variable_modal_awaiter(this, void 0, void 0, function () {
|
|
60071
|
+
var res;
|
|
60072
|
+
return environment_variable_modal_generator(this, function (_a) {
|
|
59833
60073
|
switch (_a.label) {
|
|
59834
60074
|
case 0:
|
|
59835
60075
|
return [4
|
|
59836
60076
|
/*yield*/
|
|
59837
|
-
, this.service.
|
|
60077
|
+
, this.service.getVariableList({
|
|
60078
|
+
name: this.keyword,
|
|
60079
|
+
projectId: this.projectId
|
|
60080
|
+
})];
|
|
59838
60081
|
|
|
59839
60082
|
case 1:
|
|
59840
|
-
|
|
59841
|
-
|
|
60083
|
+
res = _a.sent();
|
|
60084
|
+
|
|
60085
|
+
if (!(res === null || res === void 0 ? void 0 : res.hasError)) {
|
|
60086
|
+
this.varList = res.result || [];
|
|
60087
|
+
this.varList.length && this.onSelectItem(this.varList[0]);
|
|
60088
|
+
}
|
|
60089
|
+
|
|
59842
60090
|
return [2
|
|
59843
60091
|
/*return*/
|
|
59844
60092
|
];
|
|
@@ -59846,62 +60094,549 @@ function (_super) {
|
|
|
59846
60094
|
});
|
|
59847
60095
|
});
|
|
59848
60096
|
};
|
|
60097
|
+
/**
|
|
60098
|
+
* 点击环境变量触发事件
|
|
60099
|
+
* @param item 当前点击的环境变量
|
|
60100
|
+
*/
|
|
59849
60101
|
|
|
59850
|
-
|
|
59851
|
-
|
|
59852
|
-
this.
|
|
60102
|
+
|
|
60103
|
+
EnvironmentVariableModal.prototype.onSelectItem = function (item) {
|
|
60104
|
+
this.currentItem = item.$clone();
|
|
60105
|
+
this.formData.name = this.currentItem.name;
|
|
60106
|
+
|
|
60107
|
+
if (this.currentItem.value.indexOf("https") > -1) {
|
|
60108
|
+
this.formData.type = "https", this.formData.address = this.currentItem.value.replace("https://", "");
|
|
60109
|
+
} else {
|
|
60110
|
+
this.formData.type = "http", this.formData.address = this.currentItem.value.replace("http://", "");
|
|
60111
|
+
}
|
|
60112
|
+
|
|
60113
|
+
this.formData.remark = this.currentItem.remark;
|
|
59853
60114
|
};
|
|
60115
|
+
/**
|
|
60116
|
+
* 删除选中的环境变量
|
|
60117
|
+
* @param item 当前选中项
|
|
60118
|
+
*/
|
|
59854
60119
|
|
|
59855
|
-
Object.defineProperty(PreExecutionSetting.prototype, "script", {
|
|
59856
|
-
get: function get() {
|
|
59857
|
-
if (!this.interfaceModel[this.key][0]) {
|
|
59858
|
-
this.interfaceModel[this.key].push(this.model);
|
|
59859
|
-
}
|
|
59860
60120
|
|
|
59861
|
-
|
|
59862
|
-
|
|
59863
|
-
|
|
59864
|
-
this
|
|
59865
|
-
|
|
59866
|
-
|
|
59867
|
-
|
|
59868
|
-
|
|
60121
|
+
EnvironmentVariableModal.prototype.onDelete = function (item) {
|
|
60122
|
+
return environment_variable_modal_awaiter(this, void 0, void 0, function () {
|
|
60123
|
+
var res;
|
|
60124
|
+
return environment_variable_modal_generator(this, function (_a) {
|
|
60125
|
+
switch (_a.label) {
|
|
60126
|
+
case 0:
|
|
60127
|
+
if (!item.id) return [3
|
|
60128
|
+
/*break*/
|
|
60129
|
+
, 2];
|
|
60130
|
+
return [4
|
|
60131
|
+
/*yield*/
|
|
60132
|
+
, this.service.deleteVariable(item.id)];
|
|
59869
60133
|
|
|
59870
|
-
|
|
60134
|
+
case 1:
|
|
60135
|
+
res = _a.sent();
|
|
59871
60136
|
|
|
59872
|
-
|
|
59873
|
-
|
|
59874
|
-
|
|
59875
|
-
}
|
|
59876
|
-
}), pre_execution_setting_metadata("design:type", typeof (_a = typeof InterfaceModel !== "undefined" && InterfaceModel) === "function" ? _a : Object)], PreExecutionSetting.prototype, "interfaceModel", void 0);
|
|
60137
|
+
if (!(res === null || res === void 0 ? void 0 : res.hasError)) {
|
|
60138
|
+
this.getVariableList();
|
|
60139
|
+
}
|
|
59877
60140
|
|
|
59878
|
-
|
|
60141
|
+
return [3
|
|
60142
|
+
/*break*/
|
|
60143
|
+
, 3];
|
|
59879
60144
|
|
|
59880
|
-
|
|
59881
|
-
|
|
59882
|
-
|
|
59883
|
-
|
|
60145
|
+
case 2:
|
|
60146
|
+
this.varList.shift();
|
|
60147
|
+
this.varList.length && this.onSelectItem(this.varList[0]);
|
|
60148
|
+
_a.label = 3;
|
|
60149
|
+
|
|
60150
|
+
case 3:
|
|
60151
|
+
return [2
|
|
60152
|
+
/*return*/
|
|
60153
|
+
];
|
|
60154
|
+
}
|
|
60155
|
+
});
|
|
60156
|
+
});
|
|
60157
|
+
};
|
|
60158
|
+
/**
|
|
60159
|
+
* 新增环境变量事件
|
|
60160
|
+
* @returns
|
|
60161
|
+
*/
|
|
60162
|
+
|
|
60163
|
+
|
|
60164
|
+
EnvironmentVariableModal.prototype.onAddItem = function () {
|
|
60165
|
+
if (this.varList.length > 0 && !this.varList[0].id) {
|
|
60166
|
+
return;
|
|
59884
60167
|
}
|
|
59885
|
-
})], PreExecutionSetting);
|
|
59886
|
-
return PreExecutionSetting;
|
|
59887
|
-
}(base_editor_setting);
|
|
59888
60168
|
|
|
59889
|
-
|
|
59890
|
-
|
|
60169
|
+
var item = {
|
|
60170
|
+
name: "",
|
|
60171
|
+
value: "",
|
|
60172
|
+
remark: "",
|
|
60173
|
+
projectId: this.projectId
|
|
60174
|
+
};
|
|
60175
|
+
this.varList.unshift(item);
|
|
60176
|
+
this.onSelectItem(this.varList[0]);
|
|
60177
|
+
};
|
|
60178
|
+
|
|
60179
|
+
EnvironmentVariableModal.prototype.onCancel = function () {
|
|
60180
|
+
this.value = false;
|
|
60181
|
+
this.keyword = "";
|
|
60182
|
+
this.currentItem = {};
|
|
60183
|
+
};
|
|
60184
|
+
|
|
60185
|
+
EnvironmentVariableModal.prototype.onSave = function () {
|
|
60186
|
+
var _a, _b;
|
|
60187
|
+
|
|
60188
|
+
return environment_variable_modal_awaiter(this, void 0, void 0, function () {
|
|
60189
|
+
var data, res;
|
|
60190
|
+
return environment_variable_modal_generator(this, function (_c) {
|
|
60191
|
+
switch (_c.label) {
|
|
60192
|
+
case 0:
|
|
60193
|
+
data = {
|
|
60194
|
+
name: this.formData.name,
|
|
60195
|
+
value: "".concat(this.formData.type, "://").concat(this.formData.address),
|
|
60196
|
+
remark: this.formData.remark,
|
|
60197
|
+
projectId: this.projectId
|
|
60198
|
+
};
|
|
60199
|
+
|
|
60200
|
+
if ((_a = this.currentItem) === null || _a === void 0 ? void 0 : _a.id) {
|
|
60201
|
+
data.id = (_b = this.currentItem) === null || _b === void 0 ? void 0 : _b.id;
|
|
60202
|
+
}
|
|
60203
|
+
|
|
60204
|
+
return [4
|
|
60205
|
+
/*yield*/
|
|
60206
|
+
, this.service.saveVariable(data)];
|
|
60207
|
+
|
|
60208
|
+
case 1:
|
|
60209
|
+
res = _c.sent();
|
|
59891
60210
|
|
|
60211
|
+
if (res && !res.hasError) {
|
|
60212
|
+
this.$message.success("保存成功!");
|
|
60213
|
+
this.getVariableList();
|
|
60214
|
+
}
|
|
59892
60215
|
|
|
60216
|
+
return [2
|
|
60217
|
+
/*return*/
|
|
60218
|
+
];
|
|
60219
|
+
}
|
|
60220
|
+
});
|
|
60221
|
+
});
|
|
60222
|
+
};
|
|
59893
60223
|
|
|
60224
|
+
var _a;
|
|
59894
60225
|
|
|
60226
|
+
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);
|
|
59895
60227
|
|
|
60228
|
+
environment_variable_modal_decorate([Object(external_vue_property_decorator_["PropSync"])("visiable", {
|
|
60229
|
+
default: false
|
|
60230
|
+
}), environment_variable_modal_metadata("design:type", Boolean)], EnvironmentVariableModal.prototype, "value", void 0);
|
|
59896
60231
|
|
|
60232
|
+
environment_variable_modal_decorate([Object(flagwind_web_["config"])({
|
|
60233
|
+
type: String,
|
|
60234
|
+
default: ""
|
|
60235
|
+
}), environment_variable_modal_metadata("design:type", String)], EnvironmentVariableModal.prototype, "projectId", void 0);
|
|
59897
60236
|
|
|
60237
|
+
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);
|
|
59898
60238
|
|
|
60239
|
+
environment_variable_modal_decorate([Object(flagwind_web_["watch"])("varList.length", {
|
|
60240
|
+
immediate: true
|
|
60241
|
+
}), 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);
|
|
59899
60242
|
|
|
60243
|
+
EnvironmentVariableModal = environment_variable_modal_decorate([Object(flagwind_web_["component"])({
|
|
60244
|
+
template: __webpack_require__("8962"),
|
|
60245
|
+
components: {}
|
|
60246
|
+
})], EnvironmentVariableModal);
|
|
60247
|
+
return EnvironmentVariableModal;
|
|
60248
|
+
}(flagwind_web_["Component"]);
|
|
59900
60249
|
|
|
60250
|
+
/* harmony default export */ var project_detail_environment_variable_modal = (environment_variable_modal_EnvironmentVariableModal);
|
|
60251
|
+
// EXTERNAL MODULE: ./src/views/project-detail/index.scss
|
|
60252
|
+
var project_detail = __webpack_require__("fe54");
|
|
59901
60253
|
|
|
60254
|
+
// CONCATENATED MODULE: ./src/views/project-detail/base-editor-setting.ts
|
|
59902
60255
|
|
|
59903
60256
|
|
|
59904
|
-
|
|
60257
|
+
|
|
60258
|
+
|
|
60259
|
+
|
|
60260
|
+
|
|
60261
|
+
var base_editor_setting_extends = undefined && undefined.__extends || function () {
|
|
60262
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
60263
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
60264
|
+
__proto__: []
|
|
60265
|
+
} instanceof Array && function (d, b) {
|
|
60266
|
+
d.__proto__ = b;
|
|
60267
|
+
} || function (d, b) {
|
|
60268
|
+
for (var p in b) {
|
|
60269
|
+
if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
|
|
60270
|
+
}
|
|
60271
|
+
};
|
|
60272
|
+
|
|
60273
|
+
return _extendStatics(d, b);
|
|
60274
|
+
};
|
|
60275
|
+
|
|
60276
|
+
return function (d, b) {
|
|
60277
|
+
if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
60278
|
+
|
|
60279
|
+
_extendStatics(d, b);
|
|
60280
|
+
|
|
60281
|
+
function __() {
|
|
60282
|
+
this.constructor = d;
|
|
60283
|
+
}
|
|
60284
|
+
|
|
60285
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
60286
|
+
};
|
|
60287
|
+
}();
|
|
60288
|
+
|
|
60289
|
+
var base_editor_setting_decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
60290
|
+
var c = arguments.length,
|
|
60291
|
+
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
60292
|
+
d;
|
|
60293
|
+
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--) {
|
|
60294
|
+
if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
60295
|
+
}
|
|
60296
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
60297
|
+
};
|
|
60298
|
+
|
|
60299
|
+
var base_editor_setting_metadata = undefined && undefined.__metadata || function (k, v) {
|
|
60300
|
+
if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
60301
|
+
};
|
|
60302
|
+
|
|
60303
|
+
|
|
60304
|
+
|
|
60305
|
+
var base_editor_setting_BaseEditorSetting =
|
|
60306
|
+
/** @class */
|
|
60307
|
+
function (_super) {
|
|
60308
|
+
base_editor_setting_extends(BaseEditorSetting, _super);
|
|
60309
|
+
|
|
60310
|
+
function BaseEditorSetting() {
|
|
60311
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
60312
|
+
|
|
60313
|
+
_this.editor = {};
|
|
60314
|
+
return _this;
|
|
60315
|
+
}
|
|
60316
|
+
|
|
60317
|
+
BaseEditorSetting.prototype.onEditorInited = function (editor) {
|
|
60318
|
+
this.editor = editor;
|
|
60319
|
+
};
|
|
60320
|
+
|
|
60321
|
+
BaseEditorSetting.prototype.resizeEditor = function () {
|
|
60322
|
+
this.editor.resize && this.editor.resize();
|
|
60323
|
+
};
|
|
60324
|
+
|
|
60325
|
+
base_editor_setting_decorate([Object(flagwind_web_["config"])({
|
|
60326
|
+
default: true
|
|
60327
|
+
}), base_editor_setting_metadata("design:type", Boolean)], BaseEditorSetting.prototype, "lengthwise", void 0);
|
|
60328
|
+
|
|
60329
|
+
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);
|
|
60330
|
+
|
|
60331
|
+
BaseEditorSetting = base_editor_setting_decorate([Object(flagwind_web_["component"])({})], BaseEditorSetting);
|
|
60332
|
+
return BaseEditorSetting;
|
|
60333
|
+
}(flagwind_web_["Component"]);
|
|
60334
|
+
|
|
60335
|
+
/* harmony default export */ var base_editor_setting = (base_editor_setting_BaseEditorSetting);
|
|
60336
|
+
// EXTERNAL MODULE: ./src/views/project-detail/pre-execution-setting/index.scss
|
|
60337
|
+
var pre_execution_setting = __webpack_require__("d928");
|
|
60338
|
+
|
|
60339
|
+
// CONCATENATED MODULE: ./src/views/project-detail/pre-execution-setting/index.ts
|
|
60340
|
+
|
|
60341
|
+
|
|
60342
|
+
|
|
60343
|
+
|
|
60344
|
+
|
|
60345
|
+
|
|
60346
|
+
|
|
60347
|
+
|
|
60348
|
+
|
|
60349
|
+
|
|
60350
|
+
|
|
60351
|
+
|
|
60352
|
+
|
|
60353
|
+
var pre_execution_setting_extends = undefined && undefined.__extends || function () {
|
|
60354
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
60355
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
60356
|
+
__proto__: []
|
|
60357
|
+
} instanceof Array && function (d, b) {
|
|
60358
|
+
d.__proto__ = b;
|
|
60359
|
+
} || function (d, b) {
|
|
60360
|
+
for (var p in b) {
|
|
60361
|
+
if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
|
|
60362
|
+
}
|
|
60363
|
+
};
|
|
60364
|
+
|
|
60365
|
+
return _extendStatics(d, b);
|
|
60366
|
+
};
|
|
60367
|
+
|
|
60368
|
+
return function (d, b) {
|
|
60369
|
+
if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
60370
|
+
|
|
60371
|
+
_extendStatics(d, b);
|
|
60372
|
+
|
|
60373
|
+
function __() {
|
|
60374
|
+
this.constructor = d;
|
|
60375
|
+
}
|
|
60376
|
+
|
|
60377
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
60378
|
+
};
|
|
60379
|
+
}();
|
|
60380
|
+
|
|
60381
|
+
var pre_execution_setting_decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
60382
|
+
var c = arguments.length,
|
|
60383
|
+
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
60384
|
+
d;
|
|
60385
|
+
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--) {
|
|
60386
|
+
if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
60387
|
+
}
|
|
60388
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
60389
|
+
};
|
|
60390
|
+
|
|
60391
|
+
var pre_execution_setting_metadata = undefined && undefined.__metadata || function (k, v) {
|
|
60392
|
+
if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
60393
|
+
};
|
|
60394
|
+
|
|
60395
|
+
var pre_execution_setting_awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
60396
|
+
function adopt(value) {
|
|
60397
|
+
return value instanceof P ? value : new P(function (resolve) {
|
|
60398
|
+
resolve(value);
|
|
60399
|
+
});
|
|
60400
|
+
}
|
|
60401
|
+
|
|
60402
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
60403
|
+
function fulfilled(value) {
|
|
60404
|
+
try {
|
|
60405
|
+
step(generator.next(value));
|
|
60406
|
+
} catch (e) {
|
|
60407
|
+
reject(e);
|
|
60408
|
+
}
|
|
60409
|
+
}
|
|
60410
|
+
|
|
60411
|
+
function rejected(value) {
|
|
60412
|
+
try {
|
|
60413
|
+
step(generator["throw"](value));
|
|
60414
|
+
} catch (e) {
|
|
60415
|
+
reject(e);
|
|
60416
|
+
}
|
|
60417
|
+
}
|
|
60418
|
+
|
|
60419
|
+
function step(result) {
|
|
60420
|
+
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
60421
|
+
}
|
|
60422
|
+
|
|
60423
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
60424
|
+
});
|
|
60425
|
+
};
|
|
60426
|
+
|
|
60427
|
+
var pre_execution_setting_generator = undefined && undefined.__generator || function (thisArg, body) {
|
|
60428
|
+
var _ = {
|
|
60429
|
+
label: 0,
|
|
60430
|
+
sent: function sent() {
|
|
60431
|
+
if (t[0] & 1) throw t[1];
|
|
60432
|
+
return t[1];
|
|
60433
|
+
},
|
|
60434
|
+
trys: [],
|
|
60435
|
+
ops: []
|
|
60436
|
+
},
|
|
60437
|
+
f,
|
|
60438
|
+
y,
|
|
60439
|
+
t,
|
|
60440
|
+
g;
|
|
60441
|
+
return g = {
|
|
60442
|
+
next: verb(0),
|
|
60443
|
+
"throw": verb(1),
|
|
60444
|
+
"return": verb(2)
|
|
60445
|
+
}, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
|
|
60446
|
+
return this;
|
|
60447
|
+
}), g;
|
|
60448
|
+
|
|
60449
|
+
function verb(n) {
|
|
60450
|
+
return function (v) {
|
|
60451
|
+
return step([n, v]);
|
|
60452
|
+
};
|
|
60453
|
+
}
|
|
60454
|
+
|
|
60455
|
+
function step(op) {
|
|
60456
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
60457
|
+
|
|
60458
|
+
while (_) {
|
|
60459
|
+
try {
|
|
60460
|
+
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;
|
|
60461
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
60462
|
+
|
|
60463
|
+
switch (op[0]) {
|
|
60464
|
+
case 0:
|
|
60465
|
+
case 1:
|
|
60466
|
+
t = op;
|
|
60467
|
+
break;
|
|
60468
|
+
|
|
60469
|
+
case 4:
|
|
60470
|
+
_.label++;
|
|
60471
|
+
return {
|
|
60472
|
+
value: op[1],
|
|
60473
|
+
done: false
|
|
60474
|
+
};
|
|
60475
|
+
|
|
60476
|
+
case 5:
|
|
60477
|
+
_.label++;
|
|
60478
|
+
y = op[1];
|
|
60479
|
+
op = [0];
|
|
60480
|
+
continue;
|
|
60481
|
+
|
|
60482
|
+
case 7:
|
|
60483
|
+
op = _.ops.pop();
|
|
60484
|
+
|
|
60485
|
+
_.trys.pop();
|
|
60486
|
+
|
|
60487
|
+
continue;
|
|
60488
|
+
|
|
60489
|
+
default:
|
|
60490
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
60491
|
+
_ = 0;
|
|
60492
|
+
continue;
|
|
60493
|
+
}
|
|
60494
|
+
|
|
60495
|
+
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
60496
|
+
_.label = op[1];
|
|
60497
|
+
break;
|
|
60498
|
+
}
|
|
60499
|
+
|
|
60500
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
60501
|
+
_.label = t[1];
|
|
60502
|
+
t = op;
|
|
60503
|
+
break;
|
|
60504
|
+
}
|
|
60505
|
+
|
|
60506
|
+
if (t && _.label < t[2]) {
|
|
60507
|
+
_.label = t[2];
|
|
60508
|
+
|
|
60509
|
+
_.ops.push(op);
|
|
60510
|
+
|
|
60511
|
+
break;
|
|
60512
|
+
}
|
|
60513
|
+
|
|
60514
|
+
if (t[2]) _.ops.pop();
|
|
60515
|
+
|
|
60516
|
+
_.trys.pop();
|
|
60517
|
+
|
|
60518
|
+
continue;
|
|
60519
|
+
}
|
|
60520
|
+
|
|
60521
|
+
op = body.call(thisArg, _);
|
|
60522
|
+
} catch (e) {
|
|
60523
|
+
op = [6, e];
|
|
60524
|
+
y = 0;
|
|
60525
|
+
} finally {
|
|
60526
|
+
f = t = 0;
|
|
60527
|
+
}
|
|
60528
|
+
}
|
|
60529
|
+
|
|
60530
|
+
if (op[0] & 5) throw op[1];
|
|
60531
|
+
return {
|
|
60532
|
+
value: op[0] ? op[1] : void 0,
|
|
60533
|
+
done: true
|
|
60534
|
+
};
|
|
60535
|
+
}
|
|
60536
|
+
};
|
|
60537
|
+
|
|
60538
|
+
|
|
60539
|
+
|
|
60540
|
+
|
|
60541
|
+
|
|
60542
|
+
|
|
60543
|
+
|
|
60544
|
+
|
|
60545
|
+
|
|
60546
|
+
var pre_execution_setting_PreExecutionSetting =
|
|
60547
|
+
/** @class */
|
|
60548
|
+
function (_super) {
|
|
60549
|
+
pre_execution_setting_extends(PreExecutionSetting, _super);
|
|
60550
|
+
|
|
60551
|
+
function PreExecutionSetting() {
|
|
60552
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
60553
|
+
|
|
60554
|
+
_this.scriptData = {};
|
|
60555
|
+
_this.model = new PreScript();
|
|
60556
|
+
_this.key = "preScripts";
|
|
60557
|
+
return _this;
|
|
60558
|
+
}
|
|
60559
|
+
|
|
60560
|
+
PreExecutionSetting.prototype.mounted = function () {
|
|
60561
|
+
this.getScript();
|
|
60562
|
+
};
|
|
60563
|
+
|
|
60564
|
+
PreExecutionSetting.prototype.getScript = function () {
|
|
60565
|
+
return pre_execution_setting_awaiter(this, void 0, void 0, function () {
|
|
60566
|
+
var result;
|
|
60567
|
+
return pre_execution_setting_generator(this, function (_a) {
|
|
60568
|
+
switch (_a.label) {
|
|
60569
|
+
case 0:
|
|
60570
|
+
return [4
|
|
60571
|
+
/*yield*/
|
|
60572
|
+
, this.service.preScript()];
|
|
60573
|
+
|
|
60574
|
+
case 1:
|
|
60575
|
+
result = _a.sent();
|
|
60576
|
+
this.scriptData = result || {};
|
|
60577
|
+
return [2
|
|
60578
|
+
/*return*/
|
|
60579
|
+
];
|
|
60580
|
+
}
|
|
60581
|
+
});
|
|
60582
|
+
});
|
|
60583
|
+
};
|
|
60584
|
+
|
|
60585
|
+
PreExecutionSetting.prototype.onClickItem = function (item) {
|
|
60586
|
+
this.editor.insert(item.code);
|
|
60587
|
+
this.editor.focus();
|
|
60588
|
+
};
|
|
60589
|
+
|
|
60590
|
+
Object.defineProperty(PreExecutionSetting.prototype, "script", {
|
|
60591
|
+
get: function get() {
|
|
60592
|
+
if (!this.interfaceModel[this.key][0]) {
|
|
60593
|
+
this.interfaceModel[this.key].push(this.model);
|
|
60594
|
+
}
|
|
60595
|
+
|
|
60596
|
+
return this.interfaceModel[this.key][0].content;
|
|
60597
|
+
},
|
|
60598
|
+
set: function set(value) {
|
|
60599
|
+
this.interfaceModel[this.key][0].content = value;
|
|
60600
|
+
},
|
|
60601
|
+
enumerable: false,
|
|
60602
|
+
configurable: true
|
|
60603
|
+
});
|
|
60604
|
+
|
|
60605
|
+
var _a, _b;
|
|
60606
|
+
|
|
60607
|
+
pre_execution_setting_decorate([Object(flagwind_web_["config"])({
|
|
60608
|
+
default: function _default() {
|
|
60609
|
+
return new InterfaceModel();
|
|
60610
|
+
}
|
|
60611
|
+
}), pre_execution_setting_metadata("design:type", typeof (_a = typeof InterfaceModel !== "undefined" && InterfaceModel) === "function" ? _a : Object)], PreExecutionSetting.prototype, "interfaceModel", void 0);
|
|
60612
|
+
|
|
60613
|
+
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);
|
|
60614
|
+
|
|
60615
|
+
PreExecutionSetting = pre_execution_setting_decorate([Object(flagwind_web_["component"])({
|
|
60616
|
+
template: __webpack_require__("8ab8"),
|
|
60617
|
+
components: {
|
|
60618
|
+
"u-editor": components_code_editor
|
|
60619
|
+
}
|
|
60620
|
+
})], PreExecutionSetting);
|
|
60621
|
+
return PreExecutionSetting;
|
|
60622
|
+
}(base_editor_setting);
|
|
60623
|
+
|
|
60624
|
+
/* harmony default export */ var project_detail_pre_execution_setting = (pre_execution_setting_PreExecutionSetting);
|
|
60625
|
+
// CONCATENATED MODULE: ./src/views/project-detail/after-execution-script/index.ts
|
|
60626
|
+
|
|
60627
|
+
|
|
60628
|
+
|
|
60629
|
+
|
|
60630
|
+
|
|
60631
|
+
|
|
60632
|
+
|
|
60633
|
+
|
|
60634
|
+
|
|
60635
|
+
|
|
60636
|
+
|
|
60637
|
+
|
|
60638
|
+
|
|
60639
|
+
var after_execution_script_extends = undefined && undefined.__extends || function () {
|
|
59905
60640
|
var _extendStatics = function extendStatics(d, b) {
|
|
59906
60641
|
_extendStatics = Object.setPrototypeOf || {
|
|
59907
60642
|
__proto__: []
|
|
@@ -60389,10 +61124,6 @@ function (_super) {
|
|
|
60389
61124
|
// EXTERNAL MODULE: ./src/views/project-detail/after-execution-transfer/index.scss
|
|
60390
61125
|
var after_execution_transfer = __webpack_require__("8a77");
|
|
60391
61126
|
|
|
60392
|
-
// EXTERNAL MODULE: ./node_modules/lodash.debounce/index.js
|
|
60393
|
-
var lodash_debounce = __webpack_require__("f7fe");
|
|
60394
|
-
var lodash_debounce_default = /*#__PURE__*/__webpack_require__.n(lodash_debounce);
|
|
60395
|
-
|
|
60396
61127
|
// CONCATENATED MODULE: ./src/views/project-detail/after-execution-transfer/index.ts
|
|
60397
61128
|
|
|
60398
61129
|
|
|
@@ -61160,611 +61891,210 @@ var params_setting_generator = undefined && undefined.__generator || function (t
|
|
|
61160
61891
|
|
|
61161
61892
|
|
|
61162
61893
|
|
|
61163
|
-
|
|
61164
|
-
var params_setting_ParamsSetting =
|
|
61165
|
-
/** @class */
|
|
61166
|
-
function (_super) {
|
|
61167
|
-
params_setting_extends(ParamsSetting, _super);
|
|
61168
|
-
|
|
61169
|
-
function ParamsSetting() {
|
|
61170
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
61171
|
-
|
|
61172
|
-
_this.value = [];
|
|
61173
|
-
_this.paramColumns = [{
|
|
61174
|
-
slot: "selection",
|
|
61175
|
-
width: 60,
|
|
61176
|
-
align: "center",
|
|
61177
|
-
title: " "
|
|
61178
|
-
}, {
|
|
61179
|
-
title: "参数名",
|
|
61180
|
-
slot: "name",
|
|
61181
|
-
align: "left"
|
|
61182
|
-
}, {
|
|
61183
|
-
title: "参数值",
|
|
61184
|
-
slot: "valueContent",
|
|
61185
|
-
align: "left"
|
|
61186
|
-
}, // {
|
|
61187
|
-
// title: "是否必须",
|
|
61188
|
-
// slot: "required",
|
|
61189
|
-
// align: "left"
|
|
61190
|
-
// },
|
|
61191
|
-
{
|
|
61192
|
-
title: "备注",
|
|
61193
|
-
slot: "text",
|
|
61194
|
-
align: "left"
|
|
61195
|
-
}, {
|
|
61196
|
-
title: "操作",
|
|
61197
|
-
slot: "action",
|
|
61198
|
-
align: "left",
|
|
61199
|
-
width: 300
|
|
61200
|
-
}];
|
|
61201
|
-
_this.queryDataList = []; // public bodyDataList: Array<any> = [];
|
|
61202
|
-
|
|
61203
|
-
_this.requestBodyTypeList = [];
|
|
61204
|
-
_this.typeMap = {
|
|
61205
|
-
Form: "FormData",
|
|
61206
|
-
X_www_form_urlencoded: "FormUrlEncoded"
|
|
61207
|
-
};
|
|
61208
|
-
return _this;
|
|
61209
|
-
}
|
|
61210
|
-
|
|
61211
|
-
ParamsSetting.prototype.getExpand = function (value) {
|
|
61212
|
-
return this.value.includes(value);
|
|
61213
|
-
};
|
|
61214
|
-
|
|
61215
|
-
ParamsSetting.prototype.onDelete = function (paramList, index) {
|
|
61216
|
-
paramList.splice(index, 1);
|
|
61217
|
-
};
|
|
61218
|
-
|
|
61219
|
-
ParamsSetting.prototype.onUp = function (paramList, index) {
|
|
61220
|
-
if (index === 0) return;
|
|
61221
|
-
var obj = paramList.splice(index, 1);
|
|
61222
|
-
paramList.splice(index - 1, 0, obj[0]);
|
|
61223
|
-
};
|
|
61224
|
-
|
|
61225
|
-
ParamsSetting.prototype.onDown = function (paramList, index) {
|
|
61226
|
-
if (index === paramList.length - 1) return;
|
|
61227
|
-
var obj = paramList.splice(index, 1);
|
|
61228
|
-
paramList.splice(index + 1, 0, obj[0]);
|
|
61229
|
-
};
|
|
61230
|
-
|
|
61231
|
-
ParamsSetting.prototype.onTop = function (paramList, index) {
|
|
61232
|
-
var obj = paramList.splice(index, 1);
|
|
61233
|
-
paramList.unshift(obj[0]);
|
|
61234
|
-
};
|
|
61235
|
-
|
|
61236
|
-
ParamsSetting.prototype.onBottom = function (paramList, index) {
|
|
61237
|
-
var obj = paramList.splice(index, 1);
|
|
61238
|
-
paramList.push(obj[0]);
|
|
61239
|
-
};
|
|
61240
|
-
|
|
61241
|
-
ParamsSetting.prototype.onDeleteBodyParam = function (paramList, id) {
|
|
61242
|
-
var index = paramList.findIndex(function (v) {
|
|
61243
|
-
return v.id === id;
|
|
61244
|
-
});
|
|
61245
|
-
paramList.splice(index, 1);
|
|
61246
|
-
};
|
|
61247
|
-
|
|
61248
|
-
ParamsSetting.prototype.onUpBodyParam = function (paramList, id) {
|
|
61249
|
-
var index = paramList.findIndex(function (v) {
|
|
61250
|
-
return v.id === id;
|
|
61251
|
-
});
|
|
61252
|
-
if (index === 0) return;
|
|
61253
|
-
var obj = paramList.splice(index, 1);
|
|
61254
|
-
paramList.splice(index - 1, 0, obj[0]);
|
|
61255
|
-
};
|
|
61256
|
-
|
|
61257
|
-
ParamsSetting.prototype.onDownBodyParam = function (paramList, id) {
|
|
61258
|
-
var index = paramList.findIndex(function (v) {
|
|
61259
|
-
return v.id === id;
|
|
61260
|
-
});
|
|
61261
|
-
if (index === paramList.length - 1) return;
|
|
61262
|
-
var obj = paramList.splice(index, 1);
|
|
61263
|
-
paramList.splice(index + 1, 0, obj[0]);
|
|
61264
|
-
};
|
|
61265
|
-
|
|
61266
|
-
ParamsSetting.prototype.onTopBodyParam = function (paramList, id) {
|
|
61267
|
-
var index = paramList.findIndex(function (v) {
|
|
61268
|
-
return v.id === id;
|
|
61269
|
-
});
|
|
61270
|
-
var obj = paramList.splice(index, 1);
|
|
61271
|
-
paramList.unshift(obj[0]);
|
|
61272
|
-
};
|
|
61273
|
-
|
|
61274
|
-
ParamsSetting.prototype.onBottomBodyParam = function (paramList, id) {
|
|
61275
|
-
var index = paramList.findIndex(function (v) {
|
|
61276
|
-
return v.id === id;
|
|
61277
|
-
});
|
|
61278
|
-
var obj = paramList.splice(index, 1);
|
|
61279
|
-
paramList.push(obj[0]);
|
|
61280
|
-
};
|
|
61281
|
-
|
|
61282
|
-
ParamsSetting.prototype.onChangeDisabled = function (value, item) {
|
|
61283
|
-
item.disabled = !value;
|
|
61284
|
-
};
|
|
61285
|
-
|
|
61286
|
-
ParamsSetting.prototype.init = function () {
|
|
61287
|
-
var _a, _b;
|
|
61288
|
-
|
|
61289
|
-
if (!((_b = (_a = this.interfaceModel) === null || _a === void 0 ? void 0 : _a.info) === null || _b === void 0 ? void 0 : _b.id)) return;
|
|
61290
|
-
this.queryDataList = this.interfaceModel.queryParams; // this.bodyDataList = this.interfaceModel.formParams;
|
|
61291
|
-
};
|
|
61292
|
-
|
|
61293
|
-
Object.defineProperty(ParamsSetting.prototype, "bodyDataList", {
|
|
61294
|
-
get: function get() {
|
|
61295
|
-
var type = this.typeMap[this.bodyType];
|
|
61296
|
-
return this.interfaceModel.formParams.filter(function (p) {
|
|
61297
|
-
return p.type === type;
|
|
61298
|
-
});
|
|
61299
|
-
},
|
|
61300
|
-
enumerable: false,
|
|
61301
|
-
configurable: true
|
|
61302
|
-
});
|
|
61303
|
-
|
|
61304
|
-
ParamsSetting.prototype.onAddRequestParam = function () {
|
|
61305
|
-
this.queryDataList.push({
|
|
61306
|
-
name: "",
|
|
61307
|
-
text: "",
|
|
61308
|
-
type: "QueryString",
|
|
61309
|
-
valueContent: "",
|
|
61310
|
-
disabled: false
|
|
61311
|
-
});
|
|
61312
|
-
};
|
|
61313
|
-
|
|
61314
|
-
ParamsSetting.prototype.onAddBodyParam = function () {
|
|
61315
|
-
this.interfaceModel.formParams.push({
|
|
61316
|
-
name: "",
|
|
61317
|
-
text: "",
|
|
61318
|
-
type: this.typeMap[this.bodyType],
|
|
61319
|
-
valueContent: "",
|
|
61320
|
-
disabled: false
|
|
61321
|
-
});
|
|
61322
|
-
};
|
|
61323
|
-
|
|
61324
|
-
Object.defineProperty(ParamsSetting.prototype, "bodyType", {
|
|
61325
|
-
get: function get() {
|
|
61326
|
-
var _a, _b;
|
|
61327
|
-
|
|
61328
|
-
return ((_b = (_a = this.interfaceModel) === null || _a === void 0 ? void 0 : _a.info) === null || _b === void 0 ? void 0 : _b.requestBodyType) || "Form";
|
|
61329
|
-
},
|
|
61330
|
-
set: function set(value) {
|
|
61331
|
-
this.interfaceModel.info.requestBodyType = value;
|
|
61332
|
-
},
|
|
61333
|
-
enumerable: false,
|
|
61334
|
-
configurable: true
|
|
61335
|
-
});
|
|
61336
|
-
Object.defineProperty(ParamsSetting.prototype, "isFormData", {
|
|
61337
|
-
get: function get() {
|
|
61338
|
-
return this.bodyType === "Form" || this.bodyType === "X_www_form_urlencoded";
|
|
61339
|
-
},
|
|
61340
|
-
enumerable: false,
|
|
61341
|
-
configurable: true
|
|
61342
|
-
});
|
|
61343
|
-
|
|
61344
|
-
ParamsSetting.prototype.onBeautify = function () {
|
|
61345
|
-
if (!this.interfaceModel.json) return;
|
|
61346
|
-
this.interfaceModel.json = JSON.stringify(JSON.parse(this.interfaceModel.json), null, 4);
|
|
61347
|
-
};
|
|
61348
|
-
|
|
61349
|
-
ParamsSetting.prototype.mounted = function () {
|
|
61350
|
-
return params_setting_awaiter(this, void 0, void 0, function () {
|
|
61351
|
-
var result;
|
|
61352
|
-
return params_setting_generator(this, function (_a) {
|
|
61353
|
-
switch (_a.label) {
|
|
61354
|
-
case 0:
|
|
61355
|
-
return [4
|
|
61356
|
-
/*yield*/
|
|
61357
|
-
, this.service.getEnumByType("requestBodyType")];
|
|
61358
|
-
|
|
61359
|
-
case 1:
|
|
61360
|
-
result = _a.sent();
|
|
61361
|
-
this.requestBodyTypeList = (result === null || result === void 0 ? void 0 : result.result) || [];
|
|
61362
|
-
|
|
61363
|
-
if (this.interfaceModel && this.interfaceModel.info) {
|
|
61364
|
-
this.interfaceModel.info.requestBodyType = this.interfaceModel.info.requestBodyType || (this.requestBodyTypeList.length ? this.requestBodyTypeList[0].name : "Form");
|
|
61365
|
-
}
|
|
61366
|
-
|
|
61367
|
-
return [2
|
|
61368
|
-
/*return*/
|
|
61369
|
-
];
|
|
61370
|
-
}
|
|
61371
|
-
});
|
|
61372
|
-
});
|
|
61373
|
-
};
|
|
61374
|
-
|
|
61375
|
-
var _a, _b;
|
|
61376
|
-
|
|
61377
|
-
params_setting_decorate([Object(flagwind_web_["config"])({
|
|
61378
|
-
default: function _default() {
|
|
61379
|
-
return new InterfaceModel();
|
|
61380
|
-
}
|
|
61381
|
-
}), params_setting_metadata("design:type", typeof (_a = typeof InterfaceModel !== "undefined" && InterfaceModel) === "function" ? _a : Object)], ParamsSetting.prototype, "interfaceModel", void 0);
|
|
61382
|
-
|
|
61383
|
-
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);
|
|
61384
|
-
|
|
61385
|
-
params_setting_decorate([Object(flagwind_web_["watch"])("interfaceModel", {
|
|
61386
|
-
immediate: true
|
|
61387
|
-
}), params_setting_metadata("design:type", Function), params_setting_metadata("design:paramtypes", []), params_setting_metadata("design:returntype", void 0)], ParamsSetting.prototype, "init", null);
|
|
61388
|
-
|
|
61389
|
-
ParamsSetting = params_setting_decorate([Object(flagwind_web_["component"])({
|
|
61390
|
-
template: __webpack_require__("7640"),
|
|
61391
|
-
components: {
|
|
61392
|
-
"u-editor": components_code_editor
|
|
61393
|
-
}
|
|
61394
|
-
})], ParamsSetting);
|
|
61395
|
-
return ParamsSetting;
|
|
61396
|
-
}(base_editor_setting);
|
|
61397
|
-
|
|
61398
|
-
/* harmony default export */ var project_detail_params_setting = (params_setting_ParamsSetting);
|
|
61399
|
-
// CONCATENATED MODULE: ./src/components/tips-form-label/index.ts
|
|
61400
|
-
|
|
61401
|
-
|
|
61402
|
-
|
|
61403
|
-
|
|
61404
|
-
|
|
61405
|
-
|
|
61406
|
-
var tips_form_label_extends = undefined && undefined.__extends || function () {
|
|
61407
|
-
var _extendStatics = function extendStatics(d, b) {
|
|
61408
|
-
_extendStatics = Object.setPrototypeOf || {
|
|
61409
|
-
__proto__: []
|
|
61410
|
-
} instanceof Array && function (d, b) {
|
|
61411
|
-
d.__proto__ = b;
|
|
61412
|
-
} || function (d, b) {
|
|
61413
|
-
for (var p in b) {
|
|
61414
|
-
if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
|
|
61415
|
-
}
|
|
61416
|
-
};
|
|
61417
|
-
|
|
61418
|
-
return _extendStatics(d, b);
|
|
61419
|
-
};
|
|
61420
|
-
|
|
61421
|
-
return function (d, b) {
|
|
61422
|
-
if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
61423
|
-
|
|
61424
|
-
_extendStatics(d, b);
|
|
61425
|
-
|
|
61426
|
-
function __() {
|
|
61427
|
-
this.constructor = d;
|
|
61428
|
-
}
|
|
61429
|
-
|
|
61430
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
61431
|
-
};
|
|
61432
|
-
}();
|
|
61433
|
-
|
|
61434
|
-
var tips_form_label_decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
61435
|
-
var c = arguments.length,
|
|
61436
|
-
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
61437
|
-
d;
|
|
61438
|
-
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--) {
|
|
61439
|
-
if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
61440
|
-
}
|
|
61441
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
61442
|
-
};
|
|
61443
|
-
|
|
61444
|
-
var tips_form_label_metadata = undefined && undefined.__metadata || function (k, v) {
|
|
61445
|
-
if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
61446
|
-
};
|
|
61447
|
-
|
|
61448
|
-
|
|
61449
|
-
|
|
61450
|
-
var tips_form_label_TipsFormLabel =
|
|
61451
|
-
/** @class */
|
|
61452
|
-
function (_super) {
|
|
61453
|
-
tips_form_label_extends(TipsFormLabel, _super);
|
|
61454
|
-
|
|
61455
|
-
function TipsFormLabel() {
|
|
61456
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
61457
|
-
}
|
|
61458
|
-
|
|
61459
|
-
tips_form_label_decorate([Object(flagwind_web_["config"])({
|
|
61460
|
-
default: ""
|
|
61461
|
-
}), tips_form_label_metadata("design:type", String)], TipsFormLabel.prototype, "tips", void 0);
|
|
61462
|
-
|
|
61463
|
-
tips_form_label_decorate([Object(flagwind_web_["config"])({
|
|
61464
|
-
default: ""
|
|
61465
|
-
}), tips_form_label_metadata("design:type", String)], TipsFormLabel.prototype, "labelTitle", void 0);
|
|
61466
|
-
|
|
61467
|
-
tips_form_label_decorate([Object(flagwind_web_["config"])({
|
|
61468
|
-
type: Boolean,
|
|
61469
|
-
default: false
|
|
61470
|
-
}), tips_form_label_metadata("design:type", Boolean)], TipsFormLabel.prototype, "labelColon", void 0);
|
|
61471
|
-
|
|
61472
|
-
TipsFormLabel = tips_form_label_decorate([Object(flagwind_web_["component"])({
|
|
61473
|
-
template: __webpack_require__("a406")
|
|
61474
|
-
})], TipsFormLabel);
|
|
61475
|
-
return TipsFormLabel;
|
|
61476
|
-
}(flagwind_web_["Component"]);
|
|
61477
|
-
|
|
61478
|
-
/* harmony default export */ var tips_form_label = (tips_form_label_TipsFormLabel);
|
|
61479
|
-
// EXTERNAL MODULE: ./src/views/project-detail/security-setting/index.scss
|
|
61480
|
-
var security_setting = __webpack_require__("9721");
|
|
61481
|
-
|
|
61482
|
-
// CONCATENATED MODULE: ./src/views/project-detail/security-setting/index.ts
|
|
61483
|
-
|
|
61484
|
-
|
|
61485
|
-
|
|
61486
|
-
|
|
61487
|
-
|
|
61488
|
-
|
|
61489
|
-
|
|
61490
|
-
|
|
61491
|
-
|
|
61492
|
-
|
|
61493
|
-
|
|
61494
|
-
|
|
61495
|
-
|
|
61496
|
-
|
|
61497
|
-
var security_setting_extends = undefined && undefined.__extends || function () {
|
|
61498
|
-
var _extendStatics = function extendStatics(d, b) {
|
|
61499
|
-
_extendStatics = Object.setPrototypeOf || {
|
|
61500
|
-
__proto__: []
|
|
61501
|
-
} instanceof Array && function (d, b) {
|
|
61502
|
-
d.__proto__ = b;
|
|
61503
|
-
} || function (d, b) {
|
|
61504
|
-
for (var p in b) {
|
|
61505
|
-
if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
|
|
61506
|
-
}
|
|
61507
|
-
};
|
|
61508
|
-
|
|
61509
|
-
return _extendStatics(d, b);
|
|
61510
|
-
};
|
|
61511
|
-
|
|
61512
|
-
return function (d, b) {
|
|
61513
|
-
if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
61514
|
-
|
|
61515
|
-
_extendStatics(d, b);
|
|
61516
|
-
|
|
61517
|
-
function __() {
|
|
61518
|
-
this.constructor = d;
|
|
61519
|
-
}
|
|
61520
|
-
|
|
61521
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
61522
|
-
};
|
|
61523
|
-
}();
|
|
61524
|
-
|
|
61525
|
-
var security_setting_decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
61526
|
-
var c = arguments.length,
|
|
61527
|
-
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
61528
|
-
d;
|
|
61529
|
-
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--) {
|
|
61530
|
-
if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
61531
|
-
}
|
|
61532
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
61533
|
-
};
|
|
61534
|
-
|
|
61535
|
-
var security_setting_metadata = undefined && undefined.__metadata || function (k, v) {
|
|
61536
|
-
if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
61537
|
-
};
|
|
61538
|
-
|
|
61539
|
-
var security_setting_awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
61540
|
-
function adopt(value) {
|
|
61541
|
-
return value instanceof P ? value : new P(function (resolve) {
|
|
61542
|
-
resolve(value);
|
|
61543
|
-
});
|
|
61544
|
-
}
|
|
61545
|
-
|
|
61546
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
61547
|
-
function fulfilled(value) {
|
|
61548
|
-
try {
|
|
61549
|
-
step(generator.next(value));
|
|
61550
|
-
} catch (e) {
|
|
61551
|
-
reject(e);
|
|
61552
|
-
}
|
|
61553
|
-
}
|
|
61554
|
-
|
|
61555
|
-
function rejected(value) {
|
|
61556
|
-
try {
|
|
61557
|
-
step(generator["throw"](value));
|
|
61558
|
-
} catch (e) {
|
|
61559
|
-
reject(e);
|
|
61560
|
-
}
|
|
61561
|
-
}
|
|
61562
|
-
|
|
61563
|
-
function step(result) {
|
|
61564
|
-
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
61565
|
-
}
|
|
61566
|
-
|
|
61567
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
61568
|
-
});
|
|
61569
|
-
};
|
|
61570
|
-
|
|
61571
|
-
var security_setting_generator = undefined && undefined.__generator || function (thisArg, body) {
|
|
61572
|
-
var _ = {
|
|
61573
|
-
label: 0,
|
|
61574
|
-
sent: function sent() {
|
|
61575
|
-
if (t[0] & 1) throw t[1];
|
|
61576
|
-
return t[1];
|
|
61577
|
-
},
|
|
61578
|
-
trys: [],
|
|
61579
|
-
ops: []
|
|
61580
|
-
},
|
|
61581
|
-
f,
|
|
61582
|
-
y,
|
|
61583
|
-
t,
|
|
61584
|
-
g;
|
|
61585
|
-
return g = {
|
|
61586
|
-
next: verb(0),
|
|
61587
|
-
"throw": verb(1),
|
|
61588
|
-
"return": verb(2)
|
|
61589
|
-
}, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
|
|
61590
|
-
return this;
|
|
61591
|
-
}), g;
|
|
61592
|
-
|
|
61593
|
-
function verb(n) {
|
|
61594
|
-
return function (v) {
|
|
61595
|
-
return step([n, v]);
|
|
61596
|
-
};
|
|
61597
|
-
}
|
|
61598
|
-
|
|
61599
|
-
function step(op) {
|
|
61600
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
61601
|
-
|
|
61602
|
-
while (_) {
|
|
61603
|
-
try {
|
|
61604
|
-
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;
|
|
61605
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
61606
|
-
|
|
61607
|
-
switch (op[0]) {
|
|
61608
|
-
case 0:
|
|
61609
|
-
case 1:
|
|
61610
|
-
t = op;
|
|
61611
|
-
break;
|
|
61612
|
-
|
|
61613
|
-
case 4:
|
|
61614
|
-
_.label++;
|
|
61615
|
-
return {
|
|
61616
|
-
value: op[1],
|
|
61617
|
-
done: false
|
|
61618
|
-
};
|
|
61619
|
-
|
|
61620
|
-
case 5:
|
|
61621
|
-
_.label++;
|
|
61622
|
-
y = op[1];
|
|
61623
|
-
op = [0];
|
|
61624
|
-
continue;
|
|
61625
|
-
|
|
61626
|
-
case 7:
|
|
61627
|
-
op = _.ops.pop();
|
|
61628
|
-
|
|
61629
|
-
_.trys.pop();
|
|
61630
|
-
|
|
61631
|
-
continue;
|
|
61632
|
-
|
|
61633
|
-
default:
|
|
61634
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
61635
|
-
_ = 0;
|
|
61636
|
-
continue;
|
|
61637
|
-
}
|
|
61638
|
-
|
|
61639
|
-
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
61640
|
-
_.label = op[1];
|
|
61641
|
-
break;
|
|
61642
|
-
}
|
|
61643
|
-
|
|
61644
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
61645
|
-
_.label = t[1];
|
|
61646
|
-
t = op;
|
|
61647
|
-
break;
|
|
61648
|
-
}
|
|
61649
|
-
|
|
61650
|
-
if (t && _.label < t[2]) {
|
|
61651
|
-
_.label = t[2];
|
|
61652
|
-
|
|
61653
|
-
_.ops.push(op);
|
|
61654
|
-
|
|
61655
|
-
break;
|
|
61656
|
-
}
|
|
61657
|
-
|
|
61658
|
-
if (t[2]) _.ops.pop();
|
|
61659
|
-
|
|
61660
|
-
_.trys.pop();
|
|
61661
|
-
|
|
61662
|
-
continue;
|
|
61663
|
-
}
|
|
61664
|
-
|
|
61665
|
-
op = body.call(thisArg, _);
|
|
61666
|
-
} catch (e) {
|
|
61667
|
-
op = [6, e];
|
|
61668
|
-
y = 0;
|
|
61669
|
-
} finally {
|
|
61670
|
-
f = t = 0;
|
|
61671
|
-
}
|
|
61672
|
-
}
|
|
61673
|
-
|
|
61674
|
-
if (op[0] & 5) throw op[1];
|
|
61675
|
-
return {
|
|
61676
|
-
value: op[0] ? op[1] : void 0,
|
|
61677
|
-
done: true
|
|
61678
|
-
};
|
|
61679
|
-
}
|
|
61680
|
-
};
|
|
61681
|
-
|
|
61682
|
-
|
|
61683
|
-
|
|
61684
|
-
|
|
61685
|
-
|
|
61686
|
-
|
|
61687
|
-
|
|
61688
|
-
|
|
61689
|
-
var security_setting_SecuritySetting =
|
|
61894
|
+
|
|
61895
|
+
var params_setting_ParamsSetting =
|
|
61690
61896
|
/** @class */
|
|
61691
61897
|
function (_super) {
|
|
61692
|
-
|
|
61898
|
+
params_setting_extends(ParamsSetting, _super);
|
|
61693
61899
|
|
|
61694
|
-
function
|
|
61900
|
+
function ParamsSetting() {
|
|
61695
61901
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
61696
61902
|
|
|
61697
|
-
_this.
|
|
61698
|
-
_this.
|
|
61699
|
-
|
|
61700
|
-
|
|
61903
|
+
_this.value = [];
|
|
61904
|
+
_this.paramColumns = [{
|
|
61905
|
+
slot: "selection",
|
|
61906
|
+
width: 60,
|
|
61907
|
+
align: "center",
|
|
61908
|
+
title: " "
|
|
61909
|
+
}, {
|
|
61910
|
+
title: "参数名",
|
|
61911
|
+
slot: "name",
|
|
61912
|
+
align: "left"
|
|
61913
|
+
}, {
|
|
61914
|
+
title: "参数值",
|
|
61915
|
+
slot: "valueContent",
|
|
61916
|
+
align: "left"
|
|
61917
|
+
}, // {
|
|
61918
|
+
// title: "是否必须",
|
|
61919
|
+
// slot: "required",
|
|
61920
|
+
// align: "left"
|
|
61921
|
+
// },
|
|
61922
|
+
{
|
|
61923
|
+
title: "备注",
|
|
61924
|
+
slot: "text",
|
|
61925
|
+
align: "left"
|
|
61926
|
+
}, {
|
|
61927
|
+
title: "操作",
|
|
61928
|
+
slot: "action",
|
|
61929
|
+
align: "left",
|
|
61930
|
+
width: 300
|
|
61931
|
+
}];
|
|
61932
|
+
_this.queryDataList = []; // public bodyDataList: Array<any> = [];
|
|
61933
|
+
|
|
61934
|
+
_this.requestBodyTypeList = [];
|
|
61935
|
+
_this.typeMap = {
|
|
61936
|
+
Form: "FormData",
|
|
61937
|
+
X_www_form_urlencoded: "FormUrlEncoded"
|
|
61938
|
+
};
|
|
61701
61939
|
return _this;
|
|
61702
61940
|
}
|
|
61703
61941
|
|
|
61704
|
-
|
|
61705
|
-
|
|
61942
|
+
ParamsSetting.prototype.getExpand = function (value) {
|
|
61943
|
+
return this.value.includes(value);
|
|
61944
|
+
};
|
|
61945
|
+
|
|
61946
|
+
ParamsSetting.prototype.onDelete = function (paramList, index) {
|
|
61947
|
+
paramList.splice(index, 1);
|
|
61948
|
+
};
|
|
61706
61949
|
|
|
61707
|
-
|
|
61708
|
-
|
|
61709
|
-
|
|
61710
|
-
|
|
61950
|
+
ParamsSetting.prototype.onUp = function (paramList, index) {
|
|
61951
|
+
if (index === 0) return;
|
|
61952
|
+
var obj = paramList.splice(index, 1);
|
|
61953
|
+
paramList.splice(index - 1, 0, obj[0]);
|
|
61711
61954
|
};
|
|
61712
61955
|
|
|
61713
|
-
|
|
61714
|
-
|
|
61715
|
-
|
|
61716
|
-
|
|
61717
|
-
|
|
61718
|
-
case 0:
|
|
61719
|
-
return [4
|
|
61720
|
-
/*yield*/
|
|
61721
|
-
, this.service.getEnumByType("authenticationType")];
|
|
61956
|
+
ParamsSetting.prototype.onDown = function (paramList, index) {
|
|
61957
|
+
if (index === paramList.length - 1) return;
|
|
61958
|
+
var obj = paramList.splice(index, 1);
|
|
61959
|
+
paramList.splice(index + 1, 0, obj[0]);
|
|
61960
|
+
};
|
|
61722
61961
|
|
|
61723
|
-
|
|
61724
|
-
|
|
61725
|
-
|
|
61726
|
-
|
|
61727
|
-
|
|
61728
|
-
|
|
61729
|
-
|
|
61730
|
-
|
|
61962
|
+
ParamsSetting.prototype.onTop = function (paramList, index) {
|
|
61963
|
+
var obj = paramList.splice(index, 1);
|
|
61964
|
+
paramList.unshift(obj[0]);
|
|
61965
|
+
};
|
|
61966
|
+
|
|
61967
|
+
ParamsSetting.prototype.onBottom = function (paramList, index) {
|
|
61968
|
+
var obj = paramList.splice(index, 1);
|
|
61969
|
+
paramList.push(obj[0]);
|
|
61970
|
+
};
|
|
61971
|
+
|
|
61972
|
+
ParamsSetting.prototype.onDeleteBodyParam = function (paramList, id) {
|
|
61973
|
+
var index = paramList.findIndex(function (v) {
|
|
61974
|
+
return v.id === id;
|
|
61731
61975
|
});
|
|
61976
|
+
paramList.splice(index, 1);
|
|
61732
61977
|
};
|
|
61733
61978
|
|
|
61734
|
-
|
|
61735
|
-
|
|
61736
|
-
|
|
61737
|
-
|
|
61738
|
-
|
|
61739
|
-
|
|
61740
|
-
|
|
61741
|
-
|
|
61742
|
-
, this.service.getEnumByType("tokenLocationType")];
|
|
61979
|
+
ParamsSetting.prototype.onUpBodyParam = function (paramList, id) {
|
|
61980
|
+
var index = paramList.findIndex(function (v) {
|
|
61981
|
+
return v.id === id;
|
|
61982
|
+
});
|
|
61983
|
+
if (index === 0) return;
|
|
61984
|
+
var obj = paramList.splice(index, 1);
|
|
61985
|
+
paramList.splice(index - 1, 0, obj[0]);
|
|
61986
|
+
};
|
|
61743
61987
|
|
|
61744
|
-
|
|
61745
|
-
|
|
61746
|
-
|
|
61747
|
-
|
|
61748
|
-
|
|
61749
|
-
|
|
61750
|
-
|
|
61988
|
+
ParamsSetting.prototype.onDownBodyParam = function (paramList, id) {
|
|
61989
|
+
var index = paramList.findIndex(function (v) {
|
|
61990
|
+
return v.id === id;
|
|
61991
|
+
});
|
|
61992
|
+
if (index === paramList.length - 1) return;
|
|
61993
|
+
var obj = paramList.splice(index, 1);
|
|
61994
|
+
paramList.splice(index + 1, 0, obj[0]);
|
|
61995
|
+
};
|
|
61996
|
+
|
|
61997
|
+
ParamsSetting.prototype.onTopBodyParam = function (paramList, id) {
|
|
61998
|
+
var index = paramList.findIndex(function (v) {
|
|
61999
|
+
return v.id === id;
|
|
62000
|
+
});
|
|
62001
|
+
var obj = paramList.splice(index, 1);
|
|
62002
|
+
paramList.unshift(obj[0]);
|
|
62003
|
+
};
|
|
62004
|
+
|
|
62005
|
+
ParamsSetting.prototype.onBottomBodyParam = function (paramList, id) {
|
|
62006
|
+
var index = paramList.findIndex(function (v) {
|
|
62007
|
+
return v.id === id;
|
|
62008
|
+
});
|
|
62009
|
+
var obj = paramList.splice(index, 1);
|
|
62010
|
+
paramList.push(obj[0]);
|
|
62011
|
+
};
|
|
62012
|
+
|
|
62013
|
+
ParamsSetting.prototype.onChangeDisabled = function (value, item) {
|
|
62014
|
+
item.disabled = !value;
|
|
62015
|
+
};
|
|
62016
|
+
|
|
62017
|
+
ParamsSetting.prototype.init = function () {
|
|
62018
|
+
var _a, _b;
|
|
62019
|
+
|
|
62020
|
+
if (!((_b = (_a = this.interfaceModel) === null || _a === void 0 ? void 0 : _a.info) === null || _b === void 0 ? void 0 : _b.id)) return;
|
|
62021
|
+
this.queryDataList = this.interfaceModel.queryParams; // this.bodyDataList = this.interfaceModel.formParams;
|
|
62022
|
+
};
|
|
62023
|
+
|
|
62024
|
+
Object.defineProperty(ParamsSetting.prototype, "bodyDataList", {
|
|
62025
|
+
get: function get() {
|
|
62026
|
+
var type = this.typeMap[this.bodyType];
|
|
62027
|
+
return this.interfaceModel.formParams.filter(function (p) {
|
|
62028
|
+
return p.type === type;
|
|
61751
62029
|
});
|
|
62030
|
+
},
|
|
62031
|
+
enumerable: false,
|
|
62032
|
+
configurable: true
|
|
62033
|
+
});
|
|
62034
|
+
|
|
62035
|
+
ParamsSetting.prototype.onAddRequestParam = function () {
|
|
62036
|
+
this.queryDataList.push({
|
|
62037
|
+
name: "",
|
|
62038
|
+
text: "",
|
|
62039
|
+
type: "QueryString",
|
|
62040
|
+
valueContent: "",
|
|
62041
|
+
disabled: false
|
|
61752
62042
|
});
|
|
61753
62043
|
};
|
|
61754
62044
|
|
|
61755
|
-
|
|
61756
|
-
|
|
62045
|
+
ParamsSetting.prototype.onAddBodyParam = function () {
|
|
62046
|
+
this.interfaceModel.formParams.push({
|
|
62047
|
+
name: "",
|
|
62048
|
+
text: "",
|
|
62049
|
+
type: this.typeMap[this.bodyType],
|
|
62050
|
+
valueContent: "",
|
|
62051
|
+
disabled: false
|
|
62052
|
+
});
|
|
62053
|
+
};
|
|
62054
|
+
|
|
62055
|
+
Object.defineProperty(ParamsSetting.prototype, "bodyType", {
|
|
62056
|
+
get: function get() {
|
|
62057
|
+
var _a, _b;
|
|
62058
|
+
|
|
62059
|
+
return ((_b = (_a = this.interfaceModel) === null || _a === void 0 ? void 0 : _a.info) === null || _b === void 0 ? void 0 : _b.requestBodyType) || "Form";
|
|
62060
|
+
},
|
|
62061
|
+
set: function set(value) {
|
|
62062
|
+
this.interfaceModel.info.requestBodyType = value;
|
|
62063
|
+
},
|
|
62064
|
+
enumerable: false,
|
|
62065
|
+
configurable: true
|
|
62066
|
+
});
|
|
62067
|
+
Object.defineProperty(ParamsSetting.prototype, "isFormData", {
|
|
62068
|
+
get: function get() {
|
|
62069
|
+
return this.bodyType === "Form" || this.bodyType === "X_www_form_urlencoded";
|
|
62070
|
+
},
|
|
62071
|
+
enumerable: false,
|
|
62072
|
+
configurable: true
|
|
62073
|
+
});
|
|
62074
|
+
|
|
62075
|
+
ParamsSetting.prototype.onBeautify = function () {
|
|
62076
|
+
if (!this.interfaceModel.json) return;
|
|
62077
|
+
this.interfaceModel.json = JSON.stringify(JSON.parse(this.interfaceModel.json), null, 4);
|
|
62078
|
+
};
|
|
62079
|
+
|
|
62080
|
+
ParamsSetting.prototype.mounted = function () {
|
|
62081
|
+
return params_setting_awaiter(this, void 0, void 0, function () {
|
|
61757
62082
|
var result;
|
|
61758
|
-
return
|
|
62083
|
+
return params_setting_generator(this, function (_a) {
|
|
61759
62084
|
switch (_a.label) {
|
|
61760
62085
|
case 0:
|
|
61761
62086
|
return [4
|
|
61762
62087
|
/*yield*/
|
|
61763
|
-
, this.service.getEnumByType("
|
|
62088
|
+
, this.service.getEnumByType("requestBodyType")];
|
|
61764
62089
|
|
|
61765
62090
|
case 1:
|
|
61766
62091
|
result = _a.sent();
|
|
61767
|
-
this.
|
|
62092
|
+
this.requestBodyTypeList = (result === null || result === void 0 ? void 0 : result.result) || [];
|
|
62093
|
+
|
|
62094
|
+
if (this.interfaceModel && this.interfaceModel.info) {
|
|
62095
|
+
this.interfaceModel.info.requestBodyType = this.interfaceModel.info.requestBodyType || (this.requestBodyTypeList.length ? this.requestBodyTypeList[0].name : "Form");
|
|
62096
|
+
}
|
|
62097
|
+
|
|
61768
62098
|
return [2
|
|
61769
62099
|
/*return*/
|
|
61770
62100
|
];
|
|
@@ -61773,39 +62103,30 @@ function (_super) {
|
|
|
61773
62103
|
});
|
|
61774
62104
|
};
|
|
61775
62105
|
|
|
61776
|
-
SecuritySetting.prototype.modelChange = function () {
|
|
61777
|
-
this.interfaceModel.authentication = this.interfaceModel.authentication || new Authentication();
|
|
61778
|
-
this.interfaceModel.authentication.content = JSON.stringify(this.model);
|
|
61779
|
-
};
|
|
61780
|
-
|
|
61781
|
-
SecuritySetting.prototype.onClear = function () {
|
|
61782
|
-
this.model = {};
|
|
61783
|
-
};
|
|
61784
|
-
|
|
61785
62106
|
var _a, _b;
|
|
61786
62107
|
|
|
61787
|
-
|
|
62108
|
+
params_setting_decorate([Object(flagwind_web_["config"])({
|
|
61788
62109
|
default: function _default() {
|
|
61789
62110
|
return new InterfaceModel();
|
|
61790
62111
|
}
|
|
61791
|
-
}),
|
|
62112
|
+
}), params_setting_metadata("design:type", typeof (_a = typeof InterfaceModel !== "undefined" && InterfaceModel) === "function" ? _a : Object)], ParamsSetting.prototype, "interfaceModel", void 0);
|
|
61792
62113
|
|
|
61793
|
-
|
|
62114
|
+
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);
|
|
61794
62115
|
|
|
61795
|
-
|
|
61796
|
-
|
|
61797
|
-
}),
|
|
62116
|
+
params_setting_decorate([Object(flagwind_web_["watch"])("interfaceModel", {
|
|
62117
|
+
immediate: true
|
|
62118
|
+
}), params_setting_metadata("design:type", Function), params_setting_metadata("design:paramtypes", []), params_setting_metadata("design:returntype", void 0)], ParamsSetting.prototype, "init", null);
|
|
61798
62119
|
|
|
61799
|
-
|
|
61800
|
-
template: __webpack_require__("
|
|
62120
|
+
ParamsSetting = params_setting_decorate([Object(flagwind_web_["component"])({
|
|
62121
|
+
template: __webpack_require__("7640"),
|
|
61801
62122
|
components: {
|
|
61802
|
-
"u-
|
|
62123
|
+
"u-editor": components_code_editor
|
|
61803
62124
|
}
|
|
61804
|
-
})],
|
|
61805
|
-
return
|
|
61806
|
-
}(
|
|
62125
|
+
})], ParamsSetting);
|
|
62126
|
+
return ParamsSetting;
|
|
62127
|
+
}(base_editor_setting);
|
|
61807
62128
|
|
|
61808
|
-
/* harmony default export */ var
|
|
62129
|
+
/* harmony default export */ var project_detail_params_setting = (params_setting_ParamsSetting);
|
|
61809
62130
|
// EXTERNAL MODULE: ./src/views/project-detail/interface-settings/index.scss
|
|
61810
62131
|
var interface_settings = __webpack_require__("2a79");
|
|
61811
62132
|
|
|
@@ -61813,7 +62134,7 @@ var interface_settings = __webpack_require__("2a79");
|
|
|
61813
62134
|
var security_setting_v2 = __webpack_require__("b156");
|
|
61814
62135
|
|
|
61815
62136
|
// EXTERNAL MODULE: ./src/views/project-detail/security-setting-v2/tips-form-label/index.scss
|
|
61816
|
-
var
|
|
62137
|
+
var tips_form_label = __webpack_require__("61ef");
|
|
61817
62138
|
|
|
61818
62139
|
// CONCATENATED MODULE: ./src/views/project-detail/security-setting-v2/tips-form-label/index.ts
|
|
61819
62140
|
|
|
@@ -61822,7 +62143,7 @@ var security_setting_v2_tips_form_label = __webpack_require__("61ef");
|
|
|
61822
62143
|
|
|
61823
62144
|
|
|
61824
62145
|
|
|
61825
|
-
var
|
|
62146
|
+
var tips_form_label_extends = undefined && undefined.__extends || function () {
|
|
61826
62147
|
var _extendStatics = function extendStatics(d, b) {
|
|
61827
62148
|
_extendStatics = Object.setPrototypeOf || {
|
|
61828
62149
|
__proto__: []
|
|
@@ -61850,7 +62171,7 @@ var security_setting_v2_tips_form_label_extends = undefined && undefined.__exten
|
|
|
61850
62171
|
};
|
|
61851
62172
|
}();
|
|
61852
62173
|
|
|
61853
|
-
var
|
|
62174
|
+
var tips_form_label_decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
61854
62175
|
var c = arguments.length,
|
|
61855
62176
|
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
61856
62177
|
d;
|
|
@@ -61860,42 +62181,42 @@ var security_setting_v2_tips_form_label_decorate = undefined && undefined.__deco
|
|
|
61860
62181
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
61861
62182
|
};
|
|
61862
62183
|
|
|
61863
|
-
var
|
|
62184
|
+
var tips_form_label_metadata = undefined && undefined.__metadata || function (k, v) {
|
|
61864
62185
|
if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
61865
62186
|
};
|
|
61866
62187
|
|
|
61867
62188
|
|
|
61868
62189
|
|
|
61869
62190
|
|
|
61870
|
-
var
|
|
62191
|
+
var tips_form_label_TipsFormLabel =
|
|
61871
62192
|
/** @class */
|
|
61872
62193
|
function (_super) {
|
|
61873
|
-
|
|
62194
|
+
tips_form_label_extends(TipsFormLabel, _super);
|
|
61874
62195
|
|
|
61875
62196
|
function TipsFormLabel() {
|
|
61876
62197
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
61877
62198
|
}
|
|
61878
62199
|
|
|
61879
|
-
|
|
62200
|
+
tips_form_label_decorate([Object(flagwind_web_["config"])({
|
|
61880
62201
|
default: ""
|
|
61881
|
-
}),
|
|
62202
|
+
}), tips_form_label_metadata("design:type", String)], TipsFormLabel.prototype, "tips", void 0);
|
|
61882
62203
|
|
|
61883
|
-
|
|
62204
|
+
tips_form_label_decorate([Object(flagwind_web_["config"])({
|
|
61884
62205
|
default: ""
|
|
61885
|
-
}),
|
|
62206
|
+
}), tips_form_label_metadata("design:type", String)], TipsFormLabel.prototype, "labelTitle", void 0);
|
|
61886
62207
|
|
|
61887
|
-
|
|
62208
|
+
tips_form_label_decorate([Object(flagwind_web_["config"])({
|
|
61888
62209
|
type: Boolean,
|
|
61889
62210
|
default: false
|
|
61890
|
-
}),
|
|
62211
|
+
}), tips_form_label_metadata("design:type", Boolean)], TipsFormLabel.prototype, "labelColon", void 0);
|
|
61891
62212
|
|
|
61892
|
-
TipsFormLabel =
|
|
62213
|
+
TipsFormLabel = tips_form_label_decorate([Object(flagwind_web_["component"])({
|
|
61893
62214
|
template: __webpack_require__("2f53")
|
|
61894
62215
|
})], TipsFormLabel);
|
|
61895
62216
|
return TipsFormLabel;
|
|
61896
62217
|
}(flagwind_web_["Component"]);
|
|
61897
62218
|
|
|
61898
|
-
/* harmony default export */ var
|
|
62219
|
+
/* harmony default export */ var security_setting_v2_tips_form_label = (tips_form_label_TipsFormLabel);
|
|
61899
62220
|
// EXTERNAL MODULE: ./src/views/project-detail/security-modal/index.scss
|
|
61900
62221
|
var security_modal = __webpack_require__("1a93");
|
|
61901
62222
|
|
|
@@ -62281,6 +62602,8 @@ function (_super) {
|
|
|
62281
62602
|
this.isAddOnce = false;
|
|
62282
62603
|
this.exitAddItem = false;
|
|
62283
62604
|
}
|
|
62605
|
+
|
|
62606
|
+
this.securityList.length && this.onSelectSecurityItem(this.securityList[0]);
|
|
62284
62607
|
}
|
|
62285
62608
|
|
|
62286
62609
|
return [2
|
|
@@ -62331,7 +62654,8 @@ function (_super) {
|
|
|
62331
62654
|
_a.label = 3;
|
|
62332
62655
|
|
|
62333
62656
|
case 3:
|
|
62334
|
-
this.
|
|
62657
|
+
this.securityList.length && this.onSelectSecurityItem(this.securityList[0]);
|
|
62658
|
+
this.$publish("api://security-list-refresh");
|
|
62335
62659
|
return [2
|
|
62336
62660
|
/*return*/
|
|
62337
62661
|
];
|
|
@@ -62471,7 +62795,7 @@ function (_super) {
|
|
|
62471
62795
|
SecurityModalComponent = security_modal_decorate([Object(flagwind_web_["component"])({
|
|
62472
62796
|
template: __webpack_require__("3bf8"),
|
|
62473
62797
|
components: {
|
|
62474
|
-
"u-tips-form-label":
|
|
62798
|
+
"u-tips-form-label": security_setting_v2_tips_form_label
|
|
62475
62799
|
}
|
|
62476
62800
|
})], SecurityModalComponent);
|
|
62477
62801
|
return SecurityModalComponent;
|
|
@@ -62903,7 +63227,7 @@ function (_super) {
|
|
|
62903
63227
|
SecuritySettingV2 = security_setting_v2_decorate([Object(flagwind_web_["component"])({
|
|
62904
63228
|
template: __webpack_require__("3de4"),
|
|
62905
63229
|
components: {
|
|
62906
|
-
"u-tips-form-label":
|
|
63230
|
+
"u-tips-form-label": security_setting_v2_tips_form_label,
|
|
62907
63231
|
"u-security-modal": project_detail_security_modal
|
|
62908
63232
|
}
|
|
62909
63233
|
})], SecuritySettingV2);
|
|
@@ -62932,6 +63256,7 @@ function (_super) {
|
|
|
62932
63256
|
|
|
62933
63257
|
|
|
62934
63258
|
|
|
63259
|
+
|
|
62935
63260
|
|
|
62936
63261
|
|
|
62937
63262
|
var interface_settings_extends = undefined && undefined.__extends || function () {
|
|
@@ -63142,7 +63467,7 @@ var interface_settings_generator = undefined && undefined.__generator || functio
|
|
|
63142
63467
|
|
|
63143
63468
|
|
|
63144
63469
|
|
|
63145
|
-
|
|
63470
|
+
// import SecuritySetting from "../security-setting";
|
|
63146
63471
|
|
|
63147
63472
|
|
|
63148
63473
|
|
|
@@ -63217,12 +63542,15 @@ function (_super) {
|
|
|
63217
63542
|
};
|
|
63218
63543
|
|
|
63219
63544
|
InterfaceSettings.prototype.onRun = function () {
|
|
63220
|
-
var _a, _b;
|
|
63545
|
+
var _a, _b, _c;
|
|
63221
63546
|
|
|
63222
63547
|
return interface_settings_awaiter(this, void 0, void 0, function () {
|
|
63223
|
-
var formParams, requestHeaders, result;
|
|
63224
|
-
|
|
63225
|
-
|
|
63548
|
+
var formParams, requestHeaders, index, result;
|
|
63549
|
+
|
|
63550
|
+
var _this = this;
|
|
63551
|
+
|
|
63552
|
+
return interface_settings_generator(this, function (_d) {
|
|
63553
|
+
switch (_d.label) {
|
|
63226
63554
|
case 0:
|
|
63227
63555
|
this.loading = true;
|
|
63228
63556
|
formParams = [];
|
|
@@ -63240,6 +63568,13 @@ function (_super) {
|
|
|
63240
63568
|
});
|
|
63241
63569
|
}
|
|
63242
63570
|
|
|
63571
|
+
if (!((_c = this.interfaceModel.environmentParam) === null || _c === void 0 ? void 0 : _c.length)) {
|
|
63572
|
+
index = this.paramList.findIndex(function (v) {
|
|
63573
|
+
return v.id === _this.interfaceModel.info.envId;
|
|
63574
|
+
});
|
|
63575
|
+
this.interfaceModel.environmentParam = index > -1 ? this.paramList[index] : null;
|
|
63576
|
+
}
|
|
63577
|
+
|
|
63243
63578
|
return [4
|
|
63244
63579
|
/*yield*/
|
|
63245
63580
|
, this.service.run(this.interfaceModel.info.id, interface_settings_assign(interface_settings_assign({}, this.interfaceModel), {
|
|
@@ -63248,7 +63583,7 @@ function (_super) {
|
|
|
63248
63583
|
}))];
|
|
63249
63584
|
|
|
63250
63585
|
case 1:
|
|
63251
|
-
result =
|
|
63586
|
+
result = _d.sent();
|
|
63252
63587
|
this.loading = false;
|
|
63253
63588
|
this.response = (result === null || result === void 0 ? void 0 : result.result) || new Response();
|
|
63254
63589
|
|
|
@@ -63381,7 +63716,7 @@ function (_super) {
|
|
|
63381
63716
|
case 0:
|
|
63382
63717
|
return [4
|
|
63383
63718
|
/*yield*/
|
|
63384
|
-
, this.service.
|
|
63719
|
+
, this.service.getVariableList({
|
|
63385
63720
|
projectId: this.projectId
|
|
63386
63721
|
})];
|
|
63387
63722
|
|
|
@@ -63428,7 +63763,7 @@ function (_super) {
|
|
|
63428
63763
|
response: project_detail_response,
|
|
63429
63764
|
params: project_detail_params_setting,
|
|
63430
63765
|
headers: project_detail_headers_setting,
|
|
63431
|
-
security:
|
|
63766
|
+
// security: SecuritySetting,
|
|
63432
63767
|
"pre-execution": project_detail_pre_execution_setting,
|
|
63433
63768
|
"after-execution-transfer": project_detail_after_execution_transfer,
|
|
63434
63769
|
"after-execution-script": after_execution_script,
|
|
@@ -63477,7 +63812,160 @@ var group_select_extends = undefined && undefined.__extends || function () {
|
|
|
63477
63812
|
};
|
|
63478
63813
|
}();
|
|
63479
63814
|
|
|
63480
|
-
var group_select_decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
63815
|
+
var group_select_decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
63816
|
+
var c = arguments.length,
|
|
63817
|
+
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
63818
|
+
d;
|
|
63819
|
+
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--) {
|
|
63820
|
+
if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
63821
|
+
}
|
|
63822
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
63823
|
+
};
|
|
63824
|
+
|
|
63825
|
+
var group_select_metadata = undefined && undefined.__metadata || function (k, v) {
|
|
63826
|
+
if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
63827
|
+
};
|
|
63828
|
+
|
|
63829
|
+
|
|
63830
|
+
|
|
63831
|
+
|
|
63832
|
+
var group_select_GroupSelect =
|
|
63833
|
+
/** @class */
|
|
63834
|
+
function (_super) {
|
|
63835
|
+
group_select_extends(GroupSelect, _super);
|
|
63836
|
+
|
|
63837
|
+
function GroupSelect() {
|
|
63838
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
63839
|
+
|
|
63840
|
+
_this.visible = false;
|
|
63841
|
+
return _this;
|
|
63842
|
+
}
|
|
63843
|
+
|
|
63844
|
+
GroupSelect.prototype.onSelect = function (arr, node) {
|
|
63845
|
+
this.$emit("on-select", node);
|
|
63846
|
+
this.visible = false;
|
|
63847
|
+
};
|
|
63848
|
+
|
|
63849
|
+
GroupSelect.prototype.onClear = function () {
|
|
63850
|
+
this.onSelect([], {});
|
|
63851
|
+
};
|
|
63852
|
+
|
|
63853
|
+
GroupSelect.prototype.renderContent = function (h, _a) {
|
|
63854
|
+
var root = _a.root,
|
|
63855
|
+
node = _a.node,
|
|
63856
|
+
data = _a.data;
|
|
63857
|
+
return h("div", {
|
|
63858
|
+
class: "group-select-tree-node"
|
|
63859
|
+
}, [h("i", {
|
|
63860
|
+
attrs: {
|
|
63861
|
+
class: "api-icon icon-interface"
|
|
63862
|
+
}
|
|
63863
|
+
}), h("p", {
|
|
63864
|
+
attrs: {
|
|
63865
|
+
title: data.title,
|
|
63866
|
+
class: "api-group-select-tree-node-title"
|
|
63867
|
+
}
|
|
63868
|
+
}, data.title)]);
|
|
63869
|
+
};
|
|
63870
|
+
|
|
63871
|
+
var _a;
|
|
63872
|
+
|
|
63873
|
+
group_select_decorate([Object(flagwind_web_["config"])({
|
|
63874
|
+
default: function _default() {
|
|
63875
|
+
return [];
|
|
63876
|
+
}
|
|
63877
|
+
}), group_select_metadata("design:type", typeof (_a = typeof Array !== "undefined" && Array) === "function" ? _a : Object)], GroupSelect.prototype, "data", void 0);
|
|
63878
|
+
|
|
63879
|
+
group_select_decorate([Object(flagwind_web_["config"])({
|
|
63880
|
+
default: function _default() {
|
|
63881
|
+
return new Object();
|
|
63882
|
+
}
|
|
63883
|
+
}), group_select_metadata("design:type", Object)], GroupSelect.prototype, "current", void 0);
|
|
63884
|
+
|
|
63885
|
+
group_select_decorate([Object(flagwind_web_["config"])({
|
|
63886
|
+
type: Boolean,
|
|
63887
|
+
default: false
|
|
63888
|
+
}), group_select_metadata("design:type", Boolean)], GroupSelect.prototype, "isSelector", void 0);
|
|
63889
|
+
|
|
63890
|
+
GroupSelect = group_select_decorate([Object(flagwind_web_["component"])({
|
|
63891
|
+
template: __webpack_require__("c01f"),
|
|
63892
|
+
components: {}
|
|
63893
|
+
})], GroupSelect);
|
|
63894
|
+
return GroupSelect;
|
|
63895
|
+
}(flagwind_web_["Component"]);
|
|
63896
|
+
|
|
63897
|
+
/* harmony default export */ var project_detail_group_select = (group_select_GroupSelect);
|
|
63898
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.from.js
|
|
63899
|
+
var es_array_from = __webpack_require__("a630");
|
|
63900
|
+
|
|
63901
|
+
// EXTERNAL MODULE: ./src/views/project-detail/batch-api-modal/index.scss
|
|
63902
|
+
var batch_api_modal = __webpack_require__("8ea2");
|
|
63903
|
+
|
|
63904
|
+
// CONCATENATED MODULE: ./src/views/project-detail/batch-api-modal/index.ts
|
|
63905
|
+
|
|
63906
|
+
|
|
63907
|
+
|
|
63908
|
+
|
|
63909
|
+
|
|
63910
|
+
|
|
63911
|
+
|
|
63912
|
+
|
|
63913
|
+
|
|
63914
|
+
|
|
63915
|
+
|
|
63916
|
+
|
|
63917
|
+
|
|
63918
|
+
|
|
63919
|
+
|
|
63920
|
+
|
|
63921
|
+
|
|
63922
|
+
|
|
63923
|
+
|
|
63924
|
+
var batch_api_modal_extends = undefined && undefined.__extends || function () {
|
|
63925
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
63926
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
63927
|
+
__proto__: []
|
|
63928
|
+
} instanceof Array && function (d, b) {
|
|
63929
|
+
d.__proto__ = b;
|
|
63930
|
+
} || function (d, b) {
|
|
63931
|
+
for (var p in b) {
|
|
63932
|
+
if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
|
|
63933
|
+
}
|
|
63934
|
+
};
|
|
63935
|
+
|
|
63936
|
+
return _extendStatics(d, b);
|
|
63937
|
+
};
|
|
63938
|
+
|
|
63939
|
+
return function (d, b) {
|
|
63940
|
+
if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
63941
|
+
|
|
63942
|
+
_extendStatics(d, b);
|
|
63943
|
+
|
|
63944
|
+
function __() {
|
|
63945
|
+
this.constructor = d;
|
|
63946
|
+
}
|
|
63947
|
+
|
|
63948
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
63949
|
+
};
|
|
63950
|
+
}();
|
|
63951
|
+
|
|
63952
|
+
var batch_api_modal_assign = undefined && undefined.__assign || function () {
|
|
63953
|
+
batch_api_modal_assign = Object.assign || function (t) {
|
|
63954
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
63955
|
+
s = arguments[i];
|
|
63956
|
+
|
|
63957
|
+
for (var p in s) {
|
|
63958
|
+
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
63959
|
+
}
|
|
63960
|
+
}
|
|
63961
|
+
|
|
63962
|
+
return t;
|
|
63963
|
+
};
|
|
63964
|
+
|
|
63965
|
+
return batch_api_modal_assign.apply(this, arguments);
|
|
63966
|
+
};
|
|
63967
|
+
|
|
63968
|
+
var batch_api_modal_decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
63481
63969
|
var c = arguments.length,
|
|
63482
63970
|
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
63483
63971
|
d;
|
|
@@ -63487,79 +63975,490 @@ var group_select_decorate = undefined && undefined.__decorate || function (decor
|
|
|
63487
63975
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
63488
63976
|
};
|
|
63489
63977
|
|
|
63490
|
-
var
|
|
63978
|
+
var batch_api_modal_metadata = undefined && undefined.__metadata || function (k, v) {
|
|
63491
63979
|
if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
63492
63980
|
};
|
|
63493
63981
|
|
|
63982
|
+
var batch_api_modal_awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
63983
|
+
function adopt(value) {
|
|
63984
|
+
return value instanceof P ? value : new P(function (resolve) {
|
|
63985
|
+
resolve(value);
|
|
63986
|
+
});
|
|
63987
|
+
}
|
|
63988
|
+
|
|
63989
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
63990
|
+
function fulfilled(value) {
|
|
63991
|
+
try {
|
|
63992
|
+
step(generator.next(value));
|
|
63993
|
+
} catch (e) {
|
|
63994
|
+
reject(e);
|
|
63995
|
+
}
|
|
63996
|
+
}
|
|
63997
|
+
|
|
63998
|
+
function rejected(value) {
|
|
63999
|
+
try {
|
|
64000
|
+
step(generator["throw"](value));
|
|
64001
|
+
} catch (e) {
|
|
64002
|
+
reject(e);
|
|
64003
|
+
}
|
|
64004
|
+
}
|
|
63494
64005
|
|
|
64006
|
+
function step(result) {
|
|
64007
|
+
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
64008
|
+
}
|
|
63495
64009
|
|
|
64010
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
64011
|
+
});
|
|
64012
|
+
};
|
|
63496
64013
|
|
|
63497
|
-
var
|
|
64014
|
+
var batch_api_modal_generator = undefined && undefined.__generator || function (thisArg, body) {
|
|
64015
|
+
var _ = {
|
|
64016
|
+
label: 0,
|
|
64017
|
+
sent: function sent() {
|
|
64018
|
+
if (t[0] & 1) throw t[1];
|
|
64019
|
+
return t[1];
|
|
64020
|
+
},
|
|
64021
|
+
trys: [],
|
|
64022
|
+
ops: []
|
|
64023
|
+
},
|
|
64024
|
+
f,
|
|
64025
|
+
y,
|
|
64026
|
+
t,
|
|
64027
|
+
g;
|
|
64028
|
+
return g = {
|
|
64029
|
+
next: verb(0),
|
|
64030
|
+
"throw": verb(1),
|
|
64031
|
+
"return": verb(2)
|
|
64032
|
+
}, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
|
|
64033
|
+
return this;
|
|
64034
|
+
}), g;
|
|
64035
|
+
|
|
64036
|
+
function verb(n) {
|
|
64037
|
+
return function (v) {
|
|
64038
|
+
return step([n, v]);
|
|
64039
|
+
};
|
|
64040
|
+
}
|
|
64041
|
+
|
|
64042
|
+
function step(op) {
|
|
64043
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
64044
|
+
|
|
64045
|
+
while (_) {
|
|
64046
|
+
try {
|
|
64047
|
+
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;
|
|
64048
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
64049
|
+
|
|
64050
|
+
switch (op[0]) {
|
|
64051
|
+
case 0:
|
|
64052
|
+
case 1:
|
|
64053
|
+
t = op;
|
|
64054
|
+
break;
|
|
64055
|
+
|
|
64056
|
+
case 4:
|
|
64057
|
+
_.label++;
|
|
64058
|
+
return {
|
|
64059
|
+
value: op[1],
|
|
64060
|
+
done: false
|
|
64061
|
+
};
|
|
64062
|
+
|
|
64063
|
+
case 5:
|
|
64064
|
+
_.label++;
|
|
64065
|
+
y = op[1];
|
|
64066
|
+
op = [0];
|
|
64067
|
+
continue;
|
|
64068
|
+
|
|
64069
|
+
case 7:
|
|
64070
|
+
op = _.ops.pop();
|
|
64071
|
+
|
|
64072
|
+
_.trys.pop();
|
|
64073
|
+
|
|
64074
|
+
continue;
|
|
64075
|
+
|
|
64076
|
+
default:
|
|
64077
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
64078
|
+
_ = 0;
|
|
64079
|
+
continue;
|
|
64080
|
+
}
|
|
64081
|
+
|
|
64082
|
+
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
64083
|
+
_.label = op[1];
|
|
64084
|
+
break;
|
|
64085
|
+
}
|
|
64086
|
+
|
|
64087
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
64088
|
+
_.label = t[1];
|
|
64089
|
+
t = op;
|
|
64090
|
+
break;
|
|
64091
|
+
}
|
|
64092
|
+
|
|
64093
|
+
if (t && _.label < t[2]) {
|
|
64094
|
+
_.label = t[2];
|
|
64095
|
+
|
|
64096
|
+
_.ops.push(op);
|
|
64097
|
+
|
|
64098
|
+
break;
|
|
64099
|
+
}
|
|
64100
|
+
|
|
64101
|
+
if (t[2]) _.ops.pop();
|
|
64102
|
+
|
|
64103
|
+
_.trys.pop();
|
|
64104
|
+
|
|
64105
|
+
continue;
|
|
64106
|
+
}
|
|
64107
|
+
|
|
64108
|
+
op = body.call(thisArg, _);
|
|
64109
|
+
} catch (e) {
|
|
64110
|
+
op = [6, e];
|
|
64111
|
+
y = 0;
|
|
64112
|
+
} finally {
|
|
64113
|
+
f = t = 0;
|
|
64114
|
+
}
|
|
64115
|
+
}
|
|
64116
|
+
|
|
64117
|
+
if (op[0] & 5) throw op[1];
|
|
64118
|
+
return {
|
|
64119
|
+
value: op[0] ? op[1] : void 0,
|
|
64120
|
+
done: true
|
|
64121
|
+
};
|
|
64122
|
+
}
|
|
64123
|
+
};
|
|
64124
|
+
|
|
64125
|
+
|
|
64126
|
+
|
|
64127
|
+
|
|
64128
|
+
|
|
64129
|
+
|
|
64130
|
+
|
|
64131
|
+
var batch_api_modal_BatchApiModal =
|
|
63498
64132
|
/** @class */
|
|
63499
64133
|
function (_super) {
|
|
63500
|
-
|
|
64134
|
+
batch_api_modal_extends(BatchApiModal, _super);
|
|
63501
64135
|
|
|
63502
|
-
function
|
|
64136
|
+
function BatchApiModal() {
|
|
63503
64137
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
63504
64138
|
|
|
63505
|
-
_this.
|
|
64139
|
+
_this.keyword = "";
|
|
64140
|
+
_this.apiList = [];
|
|
64141
|
+
_this.isEmpty = true;
|
|
64142
|
+
_this.allSelect = false;
|
|
64143
|
+
_this.variableList = [];
|
|
64144
|
+
_this.securityList = [];
|
|
64145
|
+
_this.set = new Set();
|
|
64146
|
+
_this.type = "env";
|
|
64147
|
+
_this.formData = {
|
|
64148
|
+
envId: "",
|
|
64149
|
+
authId: ""
|
|
64150
|
+
};
|
|
63506
64151
|
return _this;
|
|
63507
64152
|
}
|
|
63508
64153
|
|
|
63509
|
-
|
|
63510
|
-
|
|
63511
|
-
|
|
64154
|
+
Object.defineProperty(BatchApiModal.prototype, "rules", {
|
|
64155
|
+
get: function get() {
|
|
64156
|
+
if (this.type === "env") {
|
|
64157
|
+
return {
|
|
64158
|
+
envId: [{
|
|
64159
|
+
required: true,
|
|
64160
|
+
message: "请选择",
|
|
64161
|
+
trigger: "change"
|
|
64162
|
+
}]
|
|
64163
|
+
};
|
|
64164
|
+
} else if (this.type === "auth") {
|
|
64165
|
+
return {
|
|
64166
|
+
authId: [{
|
|
64167
|
+
required: true,
|
|
64168
|
+
message: "请选择",
|
|
64169
|
+
trigger: "change"
|
|
64170
|
+
}]
|
|
64171
|
+
};
|
|
64172
|
+
} else {
|
|
64173
|
+
return {
|
|
64174
|
+
envId: [{
|
|
64175
|
+
required: true,
|
|
64176
|
+
message: "请选择",
|
|
64177
|
+
trigger: "change"
|
|
64178
|
+
}],
|
|
64179
|
+
authId: [{
|
|
64180
|
+
required: true,
|
|
64181
|
+
message: "请选择",
|
|
64182
|
+
trigger: "change"
|
|
64183
|
+
}]
|
|
64184
|
+
};
|
|
64185
|
+
}
|
|
64186
|
+
},
|
|
64187
|
+
enumerable: false,
|
|
64188
|
+
configurable: true
|
|
64189
|
+
});
|
|
64190
|
+
/**
|
|
64191
|
+
* 过滤查询
|
|
64192
|
+
* @param data
|
|
64193
|
+
*/
|
|
64194
|
+
|
|
64195
|
+
BatchApiModal.prototype.onFilter = function (data) {
|
|
64196
|
+
var _this = this;
|
|
64197
|
+
|
|
64198
|
+
this.apiList = this.data.$clone().filter(function (h) {
|
|
64199
|
+
if (h.name.indexOf(_this.keyword) > -1) {
|
|
64200
|
+
return h;
|
|
64201
|
+
}
|
|
64202
|
+
});
|
|
64203
|
+
this.apiList.forEach(function (v) {
|
|
64204
|
+
_this.set.has(v.id) && (v.selected = true);
|
|
64205
|
+
});
|
|
64206
|
+
}; // 弹窗打开和关闭需要重置数据
|
|
64207
|
+
|
|
64208
|
+
|
|
64209
|
+
BatchApiModal.prototype.onShowChange = function (show) {
|
|
64210
|
+
return batch_api_modal_awaiter(this, void 0, void 0, function () {
|
|
64211
|
+
return batch_api_modal_generator(this, function (_a) {
|
|
64212
|
+
if (show) {
|
|
64213
|
+
this.getVariableList();
|
|
64214
|
+
this.apiList = this.data.$clone();
|
|
64215
|
+
} else {
|
|
64216
|
+
this.allSelect = false;
|
|
64217
|
+
this.set.clear();
|
|
64218
|
+
this.$refs["batch-api-form"].resetFields();
|
|
64219
|
+
}
|
|
64220
|
+
|
|
64221
|
+
return [2
|
|
64222
|
+
/*return*/
|
|
64223
|
+
];
|
|
64224
|
+
});
|
|
64225
|
+
});
|
|
63512
64226
|
};
|
|
63513
64227
|
|
|
63514
|
-
|
|
63515
|
-
|
|
64228
|
+
BatchApiModal.prototype.onEmpty = function (value) {
|
|
64229
|
+
if (value) {
|
|
64230
|
+
this.isEmpty = true;
|
|
64231
|
+
} else {
|
|
64232
|
+
this.isEmpty = false;
|
|
64233
|
+
}
|
|
63516
64234
|
};
|
|
64235
|
+
/**
|
|
64236
|
+
* 分别获取环境变量和授权设置的数据
|
|
64237
|
+
*/
|
|
63517
64238
|
|
|
63518
|
-
|
|
63519
|
-
|
|
63520
|
-
|
|
63521
|
-
|
|
63522
|
-
|
|
63523
|
-
|
|
63524
|
-
|
|
63525
|
-
|
|
63526
|
-
|
|
63527
|
-
|
|
63528
|
-
|
|
63529
|
-
|
|
63530
|
-
|
|
63531
|
-
|
|
63532
|
-
|
|
63533
|
-
|
|
64239
|
+
|
|
64240
|
+
BatchApiModal.prototype.getVariableList = function () {
|
|
64241
|
+
return batch_api_modal_awaiter(this, void 0, void 0, function () {
|
|
64242
|
+
var res, list;
|
|
64243
|
+
return batch_api_modal_generator(this, function (_a) {
|
|
64244
|
+
switch (_a.label) {
|
|
64245
|
+
case 0:
|
|
64246
|
+
return [4
|
|
64247
|
+
/*yield*/
|
|
64248
|
+
, this.service.getVariableList({
|
|
64249
|
+
projectId: this.projectId
|
|
64250
|
+
})];
|
|
64251
|
+
|
|
64252
|
+
case 1:
|
|
64253
|
+
res = _a.sent();
|
|
64254
|
+
return [4
|
|
64255
|
+
/*yield*/
|
|
64256
|
+
, this.service.getSecurityList({
|
|
64257
|
+
projectId: this.projectId
|
|
64258
|
+
})];
|
|
64259
|
+
|
|
64260
|
+
case 2:
|
|
64261
|
+
list = _a.sent();
|
|
64262
|
+
|
|
64263
|
+
if (!(res === null || res === void 0 ? void 0 : res.hasError)) {
|
|
64264
|
+
this.variableList = res.result || [];
|
|
64265
|
+
}
|
|
64266
|
+
|
|
64267
|
+
if (!(list === null || list === void 0 ? void 0 : list.hasError)) {
|
|
64268
|
+
this.securityList = list.result || [];
|
|
64269
|
+
}
|
|
64270
|
+
|
|
64271
|
+
return [2
|
|
64272
|
+
/*return*/
|
|
64273
|
+
];
|
|
64274
|
+
}
|
|
64275
|
+
});
|
|
64276
|
+
});
|
|
64277
|
+
};
|
|
64278
|
+
/**
|
|
64279
|
+
* 点击每个api的复选框触发事件
|
|
64280
|
+
* @param data 当前复选框状态
|
|
64281
|
+
* @param item 当前操作的数据
|
|
64282
|
+
*/
|
|
64283
|
+
|
|
64284
|
+
|
|
64285
|
+
BatchApiModal.prototype.onSelect = function (data, item) {
|
|
64286
|
+
if (data) {
|
|
64287
|
+
this.set.add(item.id);
|
|
64288
|
+
} else {
|
|
64289
|
+
this.set.delete(item.id);
|
|
64290
|
+
}
|
|
64291
|
+
};
|
|
64292
|
+
/**
|
|
64293
|
+
* 点击全选框事件
|
|
64294
|
+
* @param data 当前全选框的值
|
|
64295
|
+
*/
|
|
64296
|
+
|
|
64297
|
+
|
|
64298
|
+
BatchApiModal.prototype.onAllSelect = function (data) {
|
|
64299
|
+
var _this = this;
|
|
64300
|
+
|
|
64301
|
+
if (data) {
|
|
64302
|
+
this.apiList.forEach(function (item) {
|
|
64303
|
+
item.selected = true;
|
|
64304
|
+
|
|
64305
|
+
_this.set.add(item.id);
|
|
64306
|
+
});
|
|
64307
|
+
} else {
|
|
64308
|
+
this.apiList.forEach(function (item) {
|
|
64309
|
+
item.selected = false;
|
|
64310
|
+
|
|
64311
|
+
_this.set.delete(item.id);
|
|
64312
|
+
});
|
|
64313
|
+
}
|
|
64314
|
+
};
|
|
64315
|
+
|
|
64316
|
+
BatchApiModal.prototype.onCancel = function () {
|
|
64317
|
+
this.keyword = "";
|
|
64318
|
+
this.value = false;
|
|
64319
|
+
};
|
|
64320
|
+
/**
|
|
64321
|
+
* 保存事件
|
|
64322
|
+
* @returns
|
|
64323
|
+
*/
|
|
64324
|
+
|
|
64325
|
+
|
|
64326
|
+
BatchApiModal.prototype.onSave = function () {
|
|
64327
|
+
return batch_api_modal_awaiter(this, void 0, void 0, function () {
|
|
64328
|
+
var vaild, data, res, res, res, result;
|
|
64329
|
+
return batch_api_modal_generator(this, function (_a) {
|
|
64330
|
+
switch (_a.label) {
|
|
64331
|
+
case 0:
|
|
64332
|
+
if (!this.set.size) {
|
|
64333
|
+
return [2
|
|
64334
|
+
/*return*/
|
|
64335
|
+
, this.$message.warning("请选择api")];
|
|
64336
|
+
}
|
|
64337
|
+
|
|
64338
|
+
return [4
|
|
64339
|
+
/*yield*/
|
|
64340
|
+
, this.$refs["batch-api-form"].validate()];
|
|
64341
|
+
|
|
64342
|
+
case 1:
|
|
64343
|
+
vaild = _a.sent();
|
|
64344
|
+
|
|
64345
|
+
if (!vaild) {
|
|
64346
|
+
return [2
|
|
64347
|
+
/*return*/
|
|
64348
|
+
];
|
|
64349
|
+
}
|
|
64350
|
+
|
|
64351
|
+
data = {
|
|
64352
|
+
ids: Array.from(this.set)
|
|
64353
|
+
};
|
|
64354
|
+
if (!(this.type === "env")) return [3
|
|
64355
|
+
/*break*/
|
|
64356
|
+
, 3];
|
|
64357
|
+
data.envId = this.formData.envId === "empty" ? "" : this.formData.envId;
|
|
64358
|
+
return [4
|
|
64359
|
+
/*yield*/
|
|
64360
|
+
, this.service.onBatchEnv(data)];
|
|
64361
|
+
|
|
64362
|
+
case 2:
|
|
64363
|
+
res = _a.sent();
|
|
64364
|
+
|
|
64365
|
+
if (res && !res.hasError) {
|
|
64366
|
+
this.$message.success("保存成功!");
|
|
64367
|
+
this.$emit("on-success", true);
|
|
64368
|
+
this.onCancel();
|
|
64369
|
+
}
|
|
64370
|
+
|
|
64371
|
+
return [2
|
|
64372
|
+
/*return*/
|
|
64373
|
+
];
|
|
64374
|
+
|
|
64375
|
+
case 3:
|
|
64376
|
+
if (!(this.type === "auth")) return [3
|
|
64377
|
+
/*break*/
|
|
64378
|
+
, 5];
|
|
64379
|
+
data.authId = this.formData.authId === "empty" ? "" : this.formData.authId;
|
|
64380
|
+
return [4
|
|
64381
|
+
/*yield*/
|
|
64382
|
+
, this.service.onBatchAuth(data)];
|
|
64383
|
+
|
|
64384
|
+
case 4:
|
|
64385
|
+
res = _a.sent();
|
|
64386
|
+
|
|
64387
|
+
if (res && !res.hasError) {
|
|
64388
|
+
this.$message.success("保存成功!"); // this.$publish("api://batch-api-refresh");
|
|
64389
|
+
// this.$publish("api://security-list-refresh");
|
|
64390
|
+
|
|
64391
|
+
this.onCancel();
|
|
64392
|
+
}
|
|
64393
|
+
|
|
64394
|
+
return [2
|
|
64395
|
+
/*return*/
|
|
64396
|
+
];
|
|
64397
|
+
|
|
64398
|
+
case 5:
|
|
64399
|
+
return [4
|
|
64400
|
+
/*yield*/
|
|
64401
|
+
, this.service.onBatchEnv(batch_api_modal_assign(batch_api_modal_assign({}, data), {
|
|
64402
|
+
envId: this.formData.envId === "empty" ? "" : this.formData.envId
|
|
64403
|
+
}))];
|
|
64404
|
+
|
|
64405
|
+
case 6:
|
|
64406
|
+
res = _a.sent();
|
|
64407
|
+
return [4
|
|
64408
|
+
/*yield*/
|
|
64409
|
+
, this.service.onBatchAuth(batch_api_modal_assign(batch_api_modal_assign({}, data), {
|
|
64410
|
+
authId: this.formData.authId === "empty" ? "" : this.formData.authId
|
|
64411
|
+
}))];
|
|
64412
|
+
|
|
64413
|
+
case 7:
|
|
64414
|
+
result = _a.sent();
|
|
64415
|
+
|
|
64416
|
+
if (!(res === null || res === void 0 ? void 0 : res.hasError) && !(result === null || result === void 0 ? void 0 : result.hasError)) {
|
|
64417
|
+
this.$message.success("保存成功!");
|
|
64418
|
+
this.$emit("on-success", true);
|
|
64419
|
+
this.onCancel();
|
|
64420
|
+
}
|
|
64421
|
+
|
|
64422
|
+
return [2
|
|
64423
|
+
/*return*/
|
|
64424
|
+
];
|
|
64425
|
+
}
|
|
64426
|
+
});
|
|
64427
|
+
});
|
|
63534
64428
|
};
|
|
63535
64429
|
|
|
63536
64430
|
var _a;
|
|
63537
64431
|
|
|
63538
|
-
|
|
64432
|
+
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);
|
|
64433
|
+
|
|
64434
|
+
batch_api_modal_decorate([Object(external_vue_property_decorator_["PropSync"])("visiable", {
|
|
64435
|
+
default: false
|
|
64436
|
+
}), batch_api_modal_metadata("design:type", Boolean)], BatchApiModal.prototype, "value", void 0);
|
|
64437
|
+
|
|
64438
|
+
batch_api_modal_decorate([Object(flagwind_web_["config"])({
|
|
64439
|
+
default: []
|
|
64440
|
+
}), batch_api_modal_metadata("design:type", Object)], BatchApiModal.prototype, "data", void 0);
|
|
64441
|
+
|
|
64442
|
+
batch_api_modal_decorate([Object(flagwind_web_["config"])({
|
|
63539
64443
|
default: function _default() {
|
|
63540
64444
|
return [];
|
|
63541
64445
|
}
|
|
63542
|
-
}),
|
|
64446
|
+
}), batch_api_modal_metadata("design:type", String)], BatchApiModal.prototype, "projectId", void 0);
|
|
63543
64447
|
|
|
63544
|
-
|
|
63545
|
-
default: function _default() {
|
|
63546
|
-
return new Object();
|
|
63547
|
-
}
|
|
63548
|
-
}), group_select_metadata("design:type", Object)], GroupSelect.prototype, "current", void 0);
|
|
64448
|
+
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);
|
|
63549
64449
|
|
|
63550
|
-
|
|
63551
|
-
|
|
63552
|
-
|
|
63553
|
-
}), group_select_metadata("design:type", Boolean)], GroupSelect.prototype, "isSelector", void 0);
|
|
64450
|
+
batch_api_modal_decorate([Object(flagwind_web_["watch"])("data.length", {
|
|
64451
|
+
immediate: true
|
|
64452
|
+
}), 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);
|
|
63554
64453
|
|
|
63555
|
-
|
|
63556
|
-
template: __webpack_require__("
|
|
64454
|
+
BatchApiModal = batch_api_modal_decorate([Object(flagwind_web_["component"])({
|
|
64455
|
+
template: __webpack_require__("88af"),
|
|
63557
64456
|
components: {}
|
|
63558
|
-
})],
|
|
63559
|
-
return
|
|
64457
|
+
})], BatchApiModal);
|
|
64458
|
+
return BatchApiModal;
|
|
63560
64459
|
}(flagwind_web_["Component"]);
|
|
63561
64460
|
|
|
63562
|
-
/* harmony default export */ var
|
|
64461
|
+
/* harmony default export */ var project_detail_batch_api_modal = (batch_api_modal_BatchApiModal);
|
|
63563
64462
|
// EXTERNAL MODULE: ./src/views/project-detail/tree-node/index.scss
|
|
63564
64463
|
var project_detail_tree_node = __webpack_require__("688a");
|
|
63565
64464
|
|
|
@@ -63882,6 +64781,7 @@ var project_detail_tree_generator = undefined && undefined.__generator || functi
|
|
|
63882
64781
|
|
|
63883
64782
|
|
|
63884
64783
|
|
|
64784
|
+
|
|
63885
64785
|
var tree_ProjectTree =
|
|
63886
64786
|
/** @class */
|
|
63887
64787
|
function (_super) {
|
|
@@ -63915,6 +64815,8 @@ function (_super) {
|
|
|
63915
64815
|
}];
|
|
63916
64816
|
_this.showInterfaceModal = false;
|
|
63917
64817
|
_this.showGroupModal = false;
|
|
64818
|
+
_this.showBatchModal = false;
|
|
64819
|
+
_this.categoryApiList = [];
|
|
63918
64820
|
_this.interfaceModel = {
|
|
63919
64821
|
method: "GET"
|
|
63920
64822
|
};
|
|
@@ -63936,6 +64838,7 @@ function (_super) {
|
|
|
63936
64838
|
"on-edit-interface": this.onEditInterface,
|
|
63937
64839
|
// "on-delete-interface": this.onDeleteInterface,
|
|
63938
64840
|
"on-delete-interface": this.onDeleteClick,
|
|
64841
|
+
"on-edit-attribute": this.onBatchEdit,
|
|
63939
64842
|
"on-copy-interface": this.onCopyInterface,
|
|
63940
64843
|
"on-add-interface": this.onAddInterface,
|
|
63941
64844
|
"on-delete-group": this.onDeleteGroup,
|
|
@@ -63958,6 +64861,21 @@ function (_super) {
|
|
|
63958
64861
|
this.showInterfaceModal = true;
|
|
63959
64862
|
};
|
|
63960
64863
|
|
|
64864
|
+
ProjectTree.prototype.onBatchEdit = function (data) {
|
|
64865
|
+
var list = [];
|
|
64866
|
+
this.data.forEach(function (item) {
|
|
64867
|
+
if (item.id === data.id) {
|
|
64868
|
+
list = data.apis;
|
|
64869
|
+
return;
|
|
64870
|
+
}
|
|
64871
|
+
});
|
|
64872
|
+
this.categoryApiList = list.map(function (h) {
|
|
64873
|
+
h.selected = false;
|
|
64874
|
+
return h;
|
|
64875
|
+
});
|
|
64876
|
+
this.showBatchModal = true;
|
|
64877
|
+
};
|
|
64878
|
+
|
|
63961
64879
|
ProjectTree.prototype.onDeleteInterface = function (data) {
|
|
63962
64880
|
return project_detail_tree_awaiter(this, void 0, void 0, function () {
|
|
63963
64881
|
var result;
|
|
@@ -64295,6 +65213,10 @@ function (_super) {
|
|
|
64295
65213
|
});
|
|
64296
65214
|
};
|
|
64297
65215
|
|
|
65216
|
+
ProjectTree.prototype.onBatchSuccess = function (data) {
|
|
65217
|
+
this.$emit("on-success", data);
|
|
65218
|
+
};
|
|
65219
|
+
|
|
64298
65220
|
var _a;
|
|
64299
65221
|
|
|
64300
65222
|
project_detail_tree_decorate([Object(flagwind_web_["config"])({
|
|
@@ -64312,7 +65234,8 @@ function (_super) {
|
|
|
64312
65234
|
ProjectTree = project_detail_tree_decorate([Object(flagwind_web_["component"])({
|
|
64313
65235
|
template: __webpack_require__("193e"),
|
|
64314
65236
|
components: {
|
|
64315
|
-
"u-group-select": project_detail_group_select
|
|
65237
|
+
"u-group-select": project_detail_group_select,
|
|
65238
|
+
"u-batch-modal": project_detail_batch_api_modal
|
|
64316
65239
|
}
|
|
64317
65240
|
})], ProjectTree);
|
|
64318
65241
|
return ProjectTree;
|
|
@@ -64556,6 +65479,7 @@ var project_detail_generator = undefined && undefined.__generator || function (t
|
|
|
64556
65479
|
|
|
64557
65480
|
|
|
64558
65481
|
|
|
65482
|
+
|
|
64559
65483
|
var project_detail_ProjectDetail =
|
|
64560
65484
|
/** @class */
|
|
64561
65485
|
function (_super) {
|
|
@@ -64570,6 +65494,7 @@ function (_super) {
|
|
|
64570
65494
|
_this.showGlobalModal = false;
|
|
64571
65495
|
_this.showCurrentModal = false;
|
|
64572
65496
|
_this.showSecurity = false;
|
|
65497
|
+
_this.showEnvironmentModal = false;
|
|
64573
65498
|
_this.projectId = "";
|
|
64574
65499
|
_this.projectName = "";
|
|
64575
65500
|
_this.split = "340px";
|
|
@@ -64578,6 +65503,7 @@ function (_super) {
|
|
|
64578
65503
|
slidesPerView: "auto",
|
|
64579
65504
|
spaceBetween: 0
|
|
64580
65505
|
};
|
|
65506
|
+
_this.current = {};
|
|
64581
65507
|
return _this;
|
|
64582
65508
|
}
|
|
64583
65509
|
|
|
@@ -64629,6 +65555,7 @@ function (_super) {
|
|
|
64629
65555
|
return project_detail_generator(this, function (_a) {
|
|
64630
65556
|
switch (_a.label) {
|
|
64631
65557
|
case 0:
|
|
65558
|
+
this.current = data;
|
|
64632
65559
|
resumeData = {};
|
|
64633
65560
|
|
|
64634
65561
|
if (isResume) {
|
|
@@ -64753,6 +65680,10 @@ function (_super) {
|
|
|
64753
65680
|
|
|
64754
65681
|
ProjectDetail.prototype.onOpenCurrentModal = function () {
|
|
64755
65682
|
this.showCurrentModal = true;
|
|
65683
|
+
};
|
|
65684
|
+
|
|
65685
|
+
ProjectDetail.prototype.onOpenEnvModal = function () {
|
|
65686
|
+
this.showEnvironmentModal = true;
|
|
64756
65687
|
}; // @watch("$route", { deep: true, immediate: true })
|
|
64757
65688
|
|
|
64758
65689
|
|
|
@@ -64768,7 +65699,10 @@ function (_super) {
|
|
|
64768
65699
|
id: apiId,
|
|
64769
65700
|
name: apiName
|
|
64770
65701
|
}, resume === "true");
|
|
64771
|
-
}
|
|
65702
|
+
} // this.$subscribe("api://batch-api-refresh", async () => {
|
|
65703
|
+
// this.onCheckInterface(this.current, resume === "true");
|
|
65704
|
+
// });
|
|
65705
|
+
|
|
64772
65706
|
};
|
|
64773
65707
|
|
|
64774
65708
|
ProjectDetail.prototype.activated = function () {
|
|
@@ -64791,6 +65725,12 @@ function (_super) {
|
|
|
64791
65725
|
});
|
|
64792
65726
|
};
|
|
64793
65727
|
|
|
65728
|
+
ProjectDetail.prototype.onBatchSuccess = function (data) {
|
|
65729
|
+
if (data) {
|
|
65730
|
+
this.getProjectInfo();
|
|
65731
|
+
}
|
|
65732
|
+
};
|
|
65733
|
+
|
|
64794
65734
|
var _a;
|
|
64795
65735
|
|
|
64796
65736
|
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);
|
|
@@ -64803,6 +65743,7 @@ function (_super) {
|
|
|
64803
65743
|
"u-settings": project_detail_interface_settings,
|
|
64804
65744
|
"u-global-modal": project_detail_global_variable_modal,
|
|
64805
65745
|
"u-current-modal": project_detail_current_variable_modal,
|
|
65746
|
+
"u-environment-modal": project_detail_environment_variable_modal,
|
|
64806
65747
|
Swiper: vue_awesome_swiper["Swiper"],
|
|
64807
65748
|
SwiperSlide: vue_awesome_swiper["SwiperSlide"],
|
|
64808
65749
|
"u-security-modal": project_detail_security_modal
|