@egova/egova-api 1.0.168 → 1.0.169
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 +1419 -58
- package/dist/index.css +1 -1
- package/dist/index.umd.js +1419 -58
- 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/{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
|
|
|
@@ -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=\"请输入\" 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\" placeholder=\"请选择\" 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\" placeholder=\"请选择\" 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\">{{ 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
|
|
|
@@ -43191,6 +43407,27 @@ setToStringTag($Symbol, SYMBOL);
|
|
|
43191
43407
|
hiddenKeys[HIDDEN] = true;
|
|
43192
43408
|
|
|
43193
43409
|
|
|
43410
|
+
/***/ }),
|
|
43411
|
+
|
|
43412
|
+
/***/ "a630":
|
|
43413
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
43414
|
+
|
|
43415
|
+
var $ = __webpack_require__("23e7");
|
|
43416
|
+
var from = __webpack_require__("4df4");
|
|
43417
|
+
var checkCorrectnessOfIteration = __webpack_require__("1c7e");
|
|
43418
|
+
|
|
43419
|
+
var INCORRECT_ITERATION = !checkCorrectnessOfIteration(function (iterable) {
|
|
43420
|
+
// eslint-disable-next-line es/no-array-from -- required for testing
|
|
43421
|
+
Array.from(iterable);
|
|
43422
|
+
});
|
|
43423
|
+
|
|
43424
|
+
// `Array.from` method
|
|
43425
|
+
// https://tc39.es/ecma262/#sec-array.from
|
|
43426
|
+
$({ target: 'Array', stat: true, forced: INCORRECT_ITERATION }, {
|
|
43427
|
+
from: from
|
|
43428
|
+
});
|
|
43429
|
+
|
|
43430
|
+
|
|
43194
43431
|
/***/ }),
|
|
43195
43432
|
|
|
43196
43433
|
/***/ "a640":
|
|
@@ -47246,7 +47483,7 @@ module.exports = /ipad|iphone|ipod/i.test(userAgent) && global.Pebble !== undefi
|
|
|
47246
47483
|
/***/ "d63e":
|
|
47247
47484
|
/***/ (function(module, exports) {
|
|
47248
47485
|
|
|
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
|
|
47486
|
+
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-show=\"active.id\" 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
47487
|
|
|
47251
47488
|
/***/ }),
|
|
47252
47489
|
|
|
@@ -47396,7 +47633,7 @@ module.exports = "<!DOCTYPE html>\n<article class=\"v-api-combine-info-wrapper\"
|
|
|
47396
47633
|
/***/ "d953":
|
|
47397
47634
|
/***/ (function(module, exports) {
|
|
47398
47635
|
|
|
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=\"
|
|
47636
|
+
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
47637
|
|
|
47401
47638
|
/***/ }),
|
|
47402
47639
|
|
|
@@ -48465,6 +48702,13 @@ if ($stringify) {
|
|
|
48465
48702
|
|
|
48466
48703
|
/***/ }),
|
|
48467
48704
|
|
|
48705
|
+
/***/ "eaed":
|
|
48706
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
48707
|
+
|
|
48708
|
+
// extracted by mini-css-extract-plugin
|
|
48709
|
+
|
|
48710
|
+
/***/ }),
|
|
48711
|
+
|
|
48468
48712
|
/***/ "eb57":
|
|
48469
48713
|
/***/ (function(module, exports, __webpack_require__) {
|
|
48470
48714
|
|
|
@@ -48615,7 +48859,7 @@ module.exports = uncurryThis([].slice);
|
|
|
48615
48859
|
/***/ "f40e":
|
|
48616
48860
|
/***/ (function(module, exports) {
|
|
48617
48861
|
|
|
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
|
|
48862
|
+
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 class=\"export iconfont icon-xiazai\" title=\"导出\" type=\"md-download\" @click=\"onExport\"></i>\n <i-upload action=\"\" :before-upload=\"onImport\" :show-upload-list=\"false\">\n <i class=\"import iconfont icon-shangchuan\" title=\"导入\" type=\"md-cloud-upload\"></i>\n </i-upload>\n\n </header>\n <main :class=\"{'transverse': !lengthwise}\">\n <section class=\"request\">\n <div class=\"request-bar\">\n <div\n class=\"tag\"\n :class=\"{'active': currentRequestSettingType.name.indexOf(item.name) === 0}\"\n v-for=\"(item,index) in requertSettingTypeList\"\n :key=\"item.name\"\n @click=\"onClickRequertSettingTpye(item)\"\n >\n <span>{{item.title}}</span>\n </div>\n </div>\n <div class=\"request-content\">\n <component\n :is=\"currentRequestSettingType.name\"\n :lengthwise=\"lengthwise\"\n :interface-model=\"interfaceModel\"\n :response=\"response\"\n :key=\"interfaceModel.info.id + currentRequestSettingType.name\"\n :projectID=\"projectId\"\n :currentSecurityID=\"currentId\"\n @on-current-id=\"onCurrentId\"\n ></component>\n </div>\n </section>\n <response :key=\"interfaceModel.info.id + 'response'\" :lengthwise=\"lengthwise\" :response=\"response\"></response>\n </main>\n <i-spin fix v-show=\"loading\">\n <i class=\"spin-icon-load ivu-icon\"></i>\n </i-spin>\n</article>\n"
|
|
48619
48863
|
|
|
48620
48864
|
/***/ }),
|
|
48621
48865
|
|
|
@@ -58498,12 +58742,36 @@ function (_super) {
|
|
|
58498
58742
|
|
|
58499
58743
|
ApiService.prototype.updateSecurityItem = function (data) {
|
|
58500
58744
|
return this._put("/unity/api/authentication", data);
|
|
58501
|
-
};
|
|
58745
|
+
}; // @serviceHandler("query", { title: "环境列表查询", showErrorMsg: true })
|
|
58746
|
+
// public getEnvironmentParamList(data: any) {
|
|
58747
|
+
// return this._post<any>("/unity/api/environment-param/list", data);
|
|
58748
|
+
// }
|
|
58749
|
+
|
|
58502
58750
|
|
|
58503
|
-
ApiService.prototype.
|
|
58751
|
+
ApiService.prototype.getVariableList = function (data) {
|
|
58504
58752
|
return this._post("/unity/api/environment-param/list", data);
|
|
58505
58753
|
};
|
|
58506
58754
|
|
|
58755
|
+
ApiService.prototype.saveVariable = function (data) {
|
|
58756
|
+
if (data === null || data === void 0 ? void 0 : data.id) {
|
|
58757
|
+
return this._put("/unity/api/environment-param", data);
|
|
58758
|
+
} else {
|
|
58759
|
+
return this._post("/unity/api/environment-param", data);
|
|
58760
|
+
}
|
|
58761
|
+
};
|
|
58762
|
+
|
|
58763
|
+
ApiService.prototype.deleteVariable = function (id) {
|
|
58764
|
+
return this._delete("/unity/api/environment-param/".concat(id));
|
|
58765
|
+
};
|
|
58766
|
+
|
|
58767
|
+
ApiService.prototype.onBatchEnv = function (data) {
|
|
58768
|
+
return this._post("/unity/api/info/env", data);
|
|
58769
|
+
};
|
|
58770
|
+
|
|
58771
|
+
ApiService.prototype.onBatchAuth = function (data) {
|
|
58772
|
+
return this._post("/unity/api/info/auth", data);
|
|
58773
|
+
};
|
|
58774
|
+
|
|
58507
58775
|
var _a, _b;
|
|
58508
58776
|
|
|
58509
58777
|
project_detail_service_decorate([serviceHandler("query", {
|
|
@@ -58593,9 +58861,29 @@ function (_super) {
|
|
|
58593
58861
|
}), 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
58862
|
|
|
58595
58863
|
project_detail_service_decorate([serviceHandler("query", {
|
|
58596
|
-
title: "
|
|
58864
|
+
title: "环境变量详情",
|
|
58597
58865
|
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, "
|
|
58866
|
+
}), 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);
|
|
58867
|
+
|
|
58868
|
+
project_detail_service_decorate([serviceHandler("save", {
|
|
58869
|
+
title: "保存环境变量",
|
|
58870
|
+
showErrorMsg: true
|
|
58871
|
+
}), 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);
|
|
58872
|
+
|
|
58873
|
+
project_detail_service_decorate([serviceHandler("query", {
|
|
58874
|
+
title: "删除环境变量",
|
|
58875
|
+
showErrorMsg: true
|
|
58876
|
+
}), 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);
|
|
58877
|
+
|
|
58878
|
+
project_detail_service_decorate([serviceHandler("query", {
|
|
58879
|
+
title: "批量修改环境变量",
|
|
58880
|
+
showErrorMsg: true
|
|
58881
|
+
}), 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);
|
|
58882
|
+
|
|
58883
|
+
project_detail_service_decorate([serviceHandler("query", {
|
|
58884
|
+
title: "批量修改授权设置",
|
|
58885
|
+
showErrorMsg: true
|
|
58886
|
+
}), 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
58887
|
|
|
58600
58888
|
return ApiService;
|
|
58601
58889
|
}(common_service);
|
|
@@ -59513,6 +59801,474 @@ function (_super) {
|
|
|
59513
59801
|
}(flagwind_web_["Component"]);
|
|
59514
59802
|
|
|
59515
59803
|
/* harmony default export */ var project_detail_global_variable_modal = (global_variable_modal_GlobalVariableModal);
|
|
59804
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
|
|
59805
|
+
var es_string_replace = __webpack_require__("5319");
|
|
59806
|
+
|
|
59807
|
+
// EXTERNAL MODULE: ./src/views/project-detail/environment-variable-modal/index.scss
|
|
59808
|
+
var environment_variable_modal = __webpack_require__("eaed");
|
|
59809
|
+
|
|
59810
|
+
// EXTERNAL MODULE: ./node_modules/lodash.debounce/index.js
|
|
59811
|
+
var lodash_debounce = __webpack_require__("f7fe");
|
|
59812
|
+
var lodash_debounce_default = /*#__PURE__*/__webpack_require__.n(lodash_debounce);
|
|
59813
|
+
|
|
59814
|
+
// CONCATENATED MODULE: ./src/views/project-detail/environment-variable-modal/index.ts
|
|
59815
|
+
|
|
59816
|
+
|
|
59817
|
+
|
|
59818
|
+
|
|
59819
|
+
|
|
59820
|
+
|
|
59821
|
+
|
|
59822
|
+
|
|
59823
|
+
|
|
59824
|
+
|
|
59825
|
+
|
|
59826
|
+
|
|
59827
|
+
|
|
59828
|
+
|
|
59829
|
+
|
|
59830
|
+
|
|
59831
|
+
|
|
59832
|
+
var environment_variable_modal_extends = undefined && undefined.__extends || function () {
|
|
59833
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
59834
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
59835
|
+
__proto__: []
|
|
59836
|
+
} instanceof Array && function (d, b) {
|
|
59837
|
+
d.__proto__ = b;
|
|
59838
|
+
} || function (d, b) {
|
|
59839
|
+
for (var p in b) {
|
|
59840
|
+
if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
|
|
59841
|
+
}
|
|
59842
|
+
};
|
|
59843
|
+
|
|
59844
|
+
return _extendStatics(d, b);
|
|
59845
|
+
};
|
|
59846
|
+
|
|
59847
|
+
return function (d, b) {
|
|
59848
|
+
if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
59849
|
+
|
|
59850
|
+
_extendStatics(d, b);
|
|
59851
|
+
|
|
59852
|
+
function __() {
|
|
59853
|
+
this.constructor = d;
|
|
59854
|
+
}
|
|
59855
|
+
|
|
59856
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
59857
|
+
};
|
|
59858
|
+
}();
|
|
59859
|
+
|
|
59860
|
+
var environment_variable_modal_decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
59861
|
+
var c = arguments.length,
|
|
59862
|
+
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
59863
|
+
d;
|
|
59864
|
+
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--) {
|
|
59865
|
+
if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
59866
|
+
}
|
|
59867
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
59868
|
+
};
|
|
59869
|
+
|
|
59870
|
+
var environment_variable_modal_metadata = undefined && undefined.__metadata || function (k, v) {
|
|
59871
|
+
if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
59872
|
+
};
|
|
59873
|
+
|
|
59874
|
+
var environment_variable_modal_awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
59875
|
+
function adopt(value) {
|
|
59876
|
+
return value instanceof P ? value : new P(function (resolve) {
|
|
59877
|
+
resolve(value);
|
|
59878
|
+
});
|
|
59879
|
+
}
|
|
59880
|
+
|
|
59881
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
59882
|
+
function fulfilled(value) {
|
|
59883
|
+
try {
|
|
59884
|
+
step(generator.next(value));
|
|
59885
|
+
} catch (e) {
|
|
59886
|
+
reject(e);
|
|
59887
|
+
}
|
|
59888
|
+
}
|
|
59889
|
+
|
|
59890
|
+
function rejected(value) {
|
|
59891
|
+
try {
|
|
59892
|
+
step(generator["throw"](value));
|
|
59893
|
+
} catch (e) {
|
|
59894
|
+
reject(e);
|
|
59895
|
+
}
|
|
59896
|
+
}
|
|
59897
|
+
|
|
59898
|
+
function step(result) {
|
|
59899
|
+
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
59900
|
+
}
|
|
59901
|
+
|
|
59902
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
59903
|
+
});
|
|
59904
|
+
};
|
|
59905
|
+
|
|
59906
|
+
var environment_variable_modal_generator = undefined && undefined.__generator || function (thisArg, body) {
|
|
59907
|
+
var _ = {
|
|
59908
|
+
label: 0,
|
|
59909
|
+
sent: function sent() {
|
|
59910
|
+
if (t[0] & 1) throw t[1];
|
|
59911
|
+
return t[1];
|
|
59912
|
+
},
|
|
59913
|
+
trys: [],
|
|
59914
|
+
ops: []
|
|
59915
|
+
},
|
|
59916
|
+
f,
|
|
59917
|
+
y,
|
|
59918
|
+
t,
|
|
59919
|
+
g;
|
|
59920
|
+
return g = {
|
|
59921
|
+
next: verb(0),
|
|
59922
|
+
"throw": verb(1),
|
|
59923
|
+
"return": verb(2)
|
|
59924
|
+
}, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
|
|
59925
|
+
return this;
|
|
59926
|
+
}), g;
|
|
59927
|
+
|
|
59928
|
+
function verb(n) {
|
|
59929
|
+
return function (v) {
|
|
59930
|
+
return step([n, v]);
|
|
59931
|
+
};
|
|
59932
|
+
}
|
|
59933
|
+
|
|
59934
|
+
function step(op) {
|
|
59935
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
59936
|
+
|
|
59937
|
+
while (_) {
|
|
59938
|
+
try {
|
|
59939
|
+
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;
|
|
59940
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
59941
|
+
|
|
59942
|
+
switch (op[0]) {
|
|
59943
|
+
case 0:
|
|
59944
|
+
case 1:
|
|
59945
|
+
t = op;
|
|
59946
|
+
break;
|
|
59947
|
+
|
|
59948
|
+
case 4:
|
|
59949
|
+
_.label++;
|
|
59950
|
+
return {
|
|
59951
|
+
value: op[1],
|
|
59952
|
+
done: false
|
|
59953
|
+
};
|
|
59954
|
+
|
|
59955
|
+
case 5:
|
|
59956
|
+
_.label++;
|
|
59957
|
+
y = op[1];
|
|
59958
|
+
op = [0];
|
|
59959
|
+
continue;
|
|
59960
|
+
|
|
59961
|
+
case 7:
|
|
59962
|
+
op = _.ops.pop();
|
|
59963
|
+
|
|
59964
|
+
_.trys.pop();
|
|
59965
|
+
|
|
59966
|
+
continue;
|
|
59967
|
+
|
|
59968
|
+
default:
|
|
59969
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
59970
|
+
_ = 0;
|
|
59971
|
+
continue;
|
|
59972
|
+
}
|
|
59973
|
+
|
|
59974
|
+
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
59975
|
+
_.label = op[1];
|
|
59976
|
+
break;
|
|
59977
|
+
}
|
|
59978
|
+
|
|
59979
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
59980
|
+
_.label = t[1];
|
|
59981
|
+
t = op;
|
|
59982
|
+
break;
|
|
59983
|
+
}
|
|
59984
|
+
|
|
59985
|
+
if (t && _.label < t[2]) {
|
|
59986
|
+
_.label = t[2];
|
|
59987
|
+
|
|
59988
|
+
_.ops.push(op);
|
|
59989
|
+
|
|
59990
|
+
break;
|
|
59991
|
+
}
|
|
59992
|
+
|
|
59993
|
+
if (t[2]) _.ops.pop();
|
|
59994
|
+
|
|
59995
|
+
_.trys.pop();
|
|
59996
|
+
|
|
59997
|
+
continue;
|
|
59998
|
+
}
|
|
59999
|
+
|
|
60000
|
+
op = body.call(thisArg, _);
|
|
60001
|
+
} catch (e) {
|
|
60002
|
+
op = [6, e];
|
|
60003
|
+
y = 0;
|
|
60004
|
+
} finally {
|
|
60005
|
+
f = t = 0;
|
|
60006
|
+
}
|
|
60007
|
+
}
|
|
60008
|
+
|
|
60009
|
+
if (op[0] & 5) throw op[1];
|
|
60010
|
+
return {
|
|
60011
|
+
value: op[0] ? op[1] : void 0,
|
|
60012
|
+
done: true
|
|
60013
|
+
};
|
|
60014
|
+
}
|
|
60015
|
+
};
|
|
60016
|
+
|
|
60017
|
+
|
|
60018
|
+
|
|
60019
|
+
|
|
60020
|
+
|
|
60021
|
+
|
|
60022
|
+
|
|
60023
|
+
|
|
60024
|
+
var environment_variable_modal_EnvironmentVariableModal =
|
|
60025
|
+
/** @class */
|
|
60026
|
+
function (_super) {
|
|
60027
|
+
environment_variable_modal_extends(EnvironmentVariableModal, _super);
|
|
60028
|
+
|
|
60029
|
+
function EnvironmentVariableModal() {
|
|
60030
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
60031
|
+
|
|
60032
|
+
_this.varList = [];
|
|
60033
|
+
_this.keyword = "";
|
|
60034
|
+
_this.currentItem = {};
|
|
60035
|
+
_this.isEmpty = true;
|
|
60036
|
+
_this.formData = {
|
|
60037
|
+
name: "",
|
|
60038
|
+
remark: "",
|
|
60039
|
+
type: "http",
|
|
60040
|
+
address: ""
|
|
60041
|
+
};
|
|
60042
|
+
_this.rules = {
|
|
60043
|
+
name: [{
|
|
60044
|
+
required: true,
|
|
60045
|
+
message: "请输入环境名称",
|
|
60046
|
+
trigger: "blur"
|
|
60047
|
+
}],
|
|
60048
|
+
address: [{
|
|
60049
|
+
required: true,
|
|
60050
|
+
message: "请输入域名",
|
|
60051
|
+
trigger: "blur"
|
|
60052
|
+
}]
|
|
60053
|
+
};
|
|
60054
|
+
/**
|
|
60055
|
+
* 防抖查询
|
|
60056
|
+
*/
|
|
60057
|
+
|
|
60058
|
+
_this.onFilter = lodash_debounce_default()(function () {
|
|
60059
|
+
_this.getVariableList();
|
|
60060
|
+
}, 300);
|
|
60061
|
+
return _this;
|
|
60062
|
+
}
|
|
60063
|
+
|
|
60064
|
+
EnvironmentVariableModal.prototype.onShowChange = function (show) {
|
|
60065
|
+
return environment_variable_modal_awaiter(this, void 0, void 0, function () {
|
|
60066
|
+
return environment_variable_modal_generator(this, function (_a) {
|
|
60067
|
+
if (show) {
|
|
60068
|
+
this.getVariableList();
|
|
60069
|
+
}
|
|
60070
|
+
|
|
60071
|
+
return [2
|
|
60072
|
+
/*return*/
|
|
60073
|
+
];
|
|
60074
|
+
});
|
|
60075
|
+
});
|
|
60076
|
+
};
|
|
60077
|
+
|
|
60078
|
+
EnvironmentVariableModal.prototype.onEmpty = function (value) {
|
|
60079
|
+
if (value) {
|
|
60080
|
+
this.isEmpty = true;
|
|
60081
|
+
} else {
|
|
60082
|
+
this.isEmpty = false;
|
|
60083
|
+
}
|
|
60084
|
+
};
|
|
60085
|
+
/**
|
|
60086
|
+
* 获取当前已有环境变量数据
|
|
60087
|
+
*/
|
|
60088
|
+
|
|
60089
|
+
|
|
60090
|
+
EnvironmentVariableModal.prototype.getVariableList = function () {
|
|
60091
|
+
return environment_variable_modal_awaiter(this, void 0, void 0, function () {
|
|
60092
|
+
var res;
|
|
60093
|
+
return environment_variable_modal_generator(this, function (_a) {
|
|
60094
|
+
switch (_a.label) {
|
|
60095
|
+
case 0:
|
|
60096
|
+
return [4
|
|
60097
|
+
/*yield*/
|
|
60098
|
+
, this.service.getVariableList({
|
|
60099
|
+
name: this.keyword,
|
|
60100
|
+
projectId: this.projectId
|
|
60101
|
+
})];
|
|
60102
|
+
|
|
60103
|
+
case 1:
|
|
60104
|
+
res = _a.sent();
|
|
60105
|
+
|
|
60106
|
+
if (!(res === null || res === void 0 ? void 0 : res.hasError)) {
|
|
60107
|
+
this.varList = res.result || [];
|
|
60108
|
+
this.varList.length && this.onSelectItem(this.varList[0]);
|
|
60109
|
+
}
|
|
60110
|
+
|
|
60111
|
+
return [2
|
|
60112
|
+
/*return*/
|
|
60113
|
+
];
|
|
60114
|
+
}
|
|
60115
|
+
});
|
|
60116
|
+
});
|
|
60117
|
+
};
|
|
60118
|
+
/**
|
|
60119
|
+
* 点击环境变量触发事件
|
|
60120
|
+
* @param item 当前点击的环境变量
|
|
60121
|
+
*/
|
|
60122
|
+
|
|
60123
|
+
|
|
60124
|
+
EnvironmentVariableModal.prototype.onSelectItem = function (item) {
|
|
60125
|
+
this.currentItem = item.$clone();
|
|
60126
|
+
this.formData.name = this.currentItem.name;
|
|
60127
|
+
|
|
60128
|
+
if (this.currentItem.value.indexOf("https") > -1) {
|
|
60129
|
+
this.formData.type = "https", this.formData.address = this.currentItem.value.replace("https://", "");
|
|
60130
|
+
} else {
|
|
60131
|
+
this.formData.type = "http", this.formData.address = this.currentItem.value.replace("http://", "");
|
|
60132
|
+
}
|
|
60133
|
+
|
|
60134
|
+
this.formData.remark = this.currentItem.remark;
|
|
60135
|
+
};
|
|
60136
|
+
/**
|
|
60137
|
+
* 删除选中的环境变量
|
|
60138
|
+
* @param item 当前选中项
|
|
60139
|
+
*/
|
|
60140
|
+
|
|
60141
|
+
|
|
60142
|
+
EnvironmentVariableModal.prototype.onDelete = function (item) {
|
|
60143
|
+
return environment_variable_modal_awaiter(this, void 0, void 0, function () {
|
|
60144
|
+
var res;
|
|
60145
|
+
return environment_variable_modal_generator(this, function (_a) {
|
|
60146
|
+
switch (_a.label) {
|
|
60147
|
+
case 0:
|
|
60148
|
+
if (!item.id) return [3
|
|
60149
|
+
/*break*/
|
|
60150
|
+
, 2];
|
|
60151
|
+
return [4
|
|
60152
|
+
/*yield*/
|
|
60153
|
+
, this.service.deleteVariable(item.id)];
|
|
60154
|
+
|
|
60155
|
+
case 1:
|
|
60156
|
+
res = _a.sent();
|
|
60157
|
+
|
|
60158
|
+
if (!(res === null || res === void 0 ? void 0 : res.hasError)) {
|
|
60159
|
+
this.getVariableList();
|
|
60160
|
+
}
|
|
60161
|
+
|
|
60162
|
+
return [3
|
|
60163
|
+
/*break*/
|
|
60164
|
+
, 3];
|
|
60165
|
+
|
|
60166
|
+
case 2:
|
|
60167
|
+
this.varList.shift();
|
|
60168
|
+
this.varList.length && this.onSelectItem(this.varList[0]);
|
|
60169
|
+
_a.label = 3;
|
|
60170
|
+
|
|
60171
|
+
case 3:
|
|
60172
|
+
return [2
|
|
60173
|
+
/*return*/
|
|
60174
|
+
];
|
|
60175
|
+
}
|
|
60176
|
+
});
|
|
60177
|
+
});
|
|
60178
|
+
};
|
|
60179
|
+
/**
|
|
60180
|
+
* 新增环境变量事件
|
|
60181
|
+
* @returns
|
|
60182
|
+
*/
|
|
60183
|
+
|
|
60184
|
+
|
|
60185
|
+
EnvironmentVariableModal.prototype.onAddItem = function () {
|
|
60186
|
+
if (this.varList.length > 0 && !this.varList[0].id) {
|
|
60187
|
+
return;
|
|
60188
|
+
}
|
|
60189
|
+
|
|
60190
|
+
var item = {
|
|
60191
|
+
name: "",
|
|
60192
|
+
value: "",
|
|
60193
|
+
remark: "",
|
|
60194
|
+
projectId: this.projectId
|
|
60195
|
+
};
|
|
60196
|
+
this.varList.unshift(item);
|
|
60197
|
+
this.onSelectItem(this.varList[0]);
|
|
60198
|
+
};
|
|
60199
|
+
|
|
60200
|
+
EnvironmentVariableModal.prototype.onCancel = function () {
|
|
60201
|
+
this.value = false;
|
|
60202
|
+
this.keyword = "";
|
|
60203
|
+
this.currentItem = {};
|
|
60204
|
+
};
|
|
60205
|
+
|
|
60206
|
+
EnvironmentVariableModal.prototype.onSave = function () {
|
|
60207
|
+
var _a, _b;
|
|
60208
|
+
|
|
60209
|
+
return environment_variable_modal_awaiter(this, void 0, void 0, function () {
|
|
60210
|
+
var data, res;
|
|
60211
|
+
return environment_variable_modal_generator(this, function (_c) {
|
|
60212
|
+
switch (_c.label) {
|
|
60213
|
+
case 0:
|
|
60214
|
+
data = {
|
|
60215
|
+
name: this.formData.name,
|
|
60216
|
+
value: "".concat(this.formData.type, "://").concat(this.formData.address),
|
|
60217
|
+
remark: this.formData.remark,
|
|
60218
|
+
projectId: this.projectId
|
|
60219
|
+
};
|
|
60220
|
+
|
|
60221
|
+
if ((_a = this.currentItem) === null || _a === void 0 ? void 0 : _a.id) {
|
|
60222
|
+
data.id = (_b = this.currentItem) === null || _b === void 0 ? void 0 : _b.id;
|
|
60223
|
+
}
|
|
60224
|
+
|
|
60225
|
+
return [4
|
|
60226
|
+
/*yield*/
|
|
60227
|
+
, this.service.saveVariable(data)];
|
|
60228
|
+
|
|
60229
|
+
case 1:
|
|
60230
|
+
res = _c.sent();
|
|
60231
|
+
|
|
60232
|
+
if (res && !res.hasError) {
|
|
60233
|
+
this.$message.success("保存成功!");
|
|
60234
|
+
this.getVariableList();
|
|
60235
|
+
}
|
|
60236
|
+
|
|
60237
|
+
return [2
|
|
60238
|
+
/*return*/
|
|
60239
|
+
];
|
|
60240
|
+
}
|
|
60241
|
+
});
|
|
60242
|
+
});
|
|
60243
|
+
};
|
|
60244
|
+
|
|
60245
|
+
var _a;
|
|
60246
|
+
|
|
60247
|
+
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);
|
|
60248
|
+
|
|
60249
|
+
environment_variable_modal_decorate([Object(external_vue_property_decorator_["PropSync"])("visiable", {
|
|
60250
|
+
default: false
|
|
60251
|
+
}), environment_variable_modal_metadata("design:type", Boolean)], EnvironmentVariableModal.prototype, "value", void 0);
|
|
60252
|
+
|
|
60253
|
+
environment_variable_modal_decorate([Object(flagwind_web_["config"])({
|
|
60254
|
+
type: String,
|
|
60255
|
+
default: ""
|
|
60256
|
+
}), environment_variable_modal_metadata("design:type", String)], EnvironmentVariableModal.prototype, "projectId", void 0);
|
|
60257
|
+
|
|
60258
|
+
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);
|
|
60259
|
+
|
|
60260
|
+
environment_variable_modal_decorate([Object(flagwind_web_["watch"])("varList.length", {
|
|
60261
|
+
immediate: true
|
|
60262
|
+
}), 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);
|
|
60263
|
+
|
|
60264
|
+
EnvironmentVariableModal = environment_variable_modal_decorate([Object(flagwind_web_["component"])({
|
|
60265
|
+
template: __webpack_require__("8962"),
|
|
60266
|
+
components: {}
|
|
60267
|
+
})], EnvironmentVariableModal);
|
|
60268
|
+
return EnvironmentVariableModal;
|
|
60269
|
+
}(flagwind_web_["Component"]);
|
|
60270
|
+
|
|
60271
|
+
/* harmony default export */ var project_detail_environment_variable_modal = (environment_variable_modal_EnvironmentVariableModal);
|
|
59516
60272
|
// EXTERNAL MODULE: ./src/views/project-detail/index.scss
|
|
59517
60273
|
var project_detail = __webpack_require__("fe54");
|
|
59518
60274
|
|
|
@@ -60389,10 +61145,6 @@ function (_super) {
|
|
|
60389
61145
|
// EXTERNAL MODULE: ./src/views/project-detail/after-execution-transfer/index.scss
|
|
60390
61146
|
var after_execution_transfer = __webpack_require__("8a77");
|
|
60391
61147
|
|
|
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
61148
|
// CONCATENATED MODULE: ./src/views/project-detail/after-execution-transfer/index.ts
|
|
60397
61149
|
|
|
60398
61150
|
|
|
@@ -63381,7 +64133,7 @@ function (_super) {
|
|
|
63381
64133
|
case 0:
|
|
63382
64134
|
return [4
|
|
63383
64135
|
/*yield*/
|
|
63384
|
-
, this.service.
|
|
64136
|
+
, this.service.getVariableList({
|
|
63385
64137
|
projectId: this.projectId
|
|
63386
64138
|
})];
|
|
63387
64139
|
|
|
@@ -63477,7 +64229,160 @@ var group_select_extends = undefined && undefined.__extends || function () {
|
|
|
63477
64229
|
};
|
|
63478
64230
|
}();
|
|
63479
64231
|
|
|
63480
|
-
var group_select_decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
64232
|
+
var group_select_decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
64233
|
+
var c = arguments.length,
|
|
64234
|
+
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
64235
|
+
d;
|
|
64236
|
+
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--) {
|
|
64237
|
+
if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
64238
|
+
}
|
|
64239
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
64240
|
+
};
|
|
64241
|
+
|
|
64242
|
+
var group_select_metadata = undefined && undefined.__metadata || function (k, v) {
|
|
64243
|
+
if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
64244
|
+
};
|
|
64245
|
+
|
|
64246
|
+
|
|
64247
|
+
|
|
64248
|
+
|
|
64249
|
+
var group_select_GroupSelect =
|
|
64250
|
+
/** @class */
|
|
64251
|
+
function (_super) {
|
|
64252
|
+
group_select_extends(GroupSelect, _super);
|
|
64253
|
+
|
|
64254
|
+
function GroupSelect() {
|
|
64255
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
64256
|
+
|
|
64257
|
+
_this.visible = false;
|
|
64258
|
+
return _this;
|
|
64259
|
+
}
|
|
64260
|
+
|
|
64261
|
+
GroupSelect.prototype.onSelect = function (arr, node) {
|
|
64262
|
+
this.$emit("on-select", node);
|
|
64263
|
+
this.visible = false;
|
|
64264
|
+
};
|
|
64265
|
+
|
|
64266
|
+
GroupSelect.prototype.onClear = function () {
|
|
64267
|
+
this.onSelect([], {});
|
|
64268
|
+
};
|
|
64269
|
+
|
|
64270
|
+
GroupSelect.prototype.renderContent = function (h, _a) {
|
|
64271
|
+
var root = _a.root,
|
|
64272
|
+
node = _a.node,
|
|
64273
|
+
data = _a.data;
|
|
64274
|
+
return h("div", {
|
|
64275
|
+
class: "group-select-tree-node"
|
|
64276
|
+
}, [h("i", {
|
|
64277
|
+
attrs: {
|
|
64278
|
+
class: "api-icon icon-interface"
|
|
64279
|
+
}
|
|
64280
|
+
}), h("p", {
|
|
64281
|
+
attrs: {
|
|
64282
|
+
title: data.title,
|
|
64283
|
+
class: "api-group-select-tree-node-title"
|
|
64284
|
+
}
|
|
64285
|
+
}, data.title)]);
|
|
64286
|
+
};
|
|
64287
|
+
|
|
64288
|
+
var _a;
|
|
64289
|
+
|
|
64290
|
+
group_select_decorate([Object(flagwind_web_["config"])({
|
|
64291
|
+
default: function _default() {
|
|
64292
|
+
return [];
|
|
64293
|
+
}
|
|
64294
|
+
}), group_select_metadata("design:type", typeof (_a = typeof Array !== "undefined" && Array) === "function" ? _a : Object)], GroupSelect.prototype, "data", void 0);
|
|
64295
|
+
|
|
64296
|
+
group_select_decorate([Object(flagwind_web_["config"])({
|
|
64297
|
+
default: function _default() {
|
|
64298
|
+
return new Object();
|
|
64299
|
+
}
|
|
64300
|
+
}), group_select_metadata("design:type", Object)], GroupSelect.prototype, "current", void 0);
|
|
64301
|
+
|
|
64302
|
+
group_select_decorate([Object(flagwind_web_["config"])({
|
|
64303
|
+
type: Boolean,
|
|
64304
|
+
default: false
|
|
64305
|
+
}), group_select_metadata("design:type", Boolean)], GroupSelect.prototype, "isSelector", void 0);
|
|
64306
|
+
|
|
64307
|
+
GroupSelect = group_select_decorate([Object(flagwind_web_["component"])({
|
|
64308
|
+
template: __webpack_require__("c01f"),
|
|
64309
|
+
components: {}
|
|
64310
|
+
})], GroupSelect);
|
|
64311
|
+
return GroupSelect;
|
|
64312
|
+
}(flagwind_web_["Component"]);
|
|
64313
|
+
|
|
64314
|
+
/* harmony default export */ var project_detail_group_select = (group_select_GroupSelect);
|
|
64315
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.from.js
|
|
64316
|
+
var es_array_from = __webpack_require__("a630");
|
|
64317
|
+
|
|
64318
|
+
// EXTERNAL MODULE: ./src/views/project-detail/batch-api-modal/index.scss
|
|
64319
|
+
var batch_api_modal = __webpack_require__("8ea2");
|
|
64320
|
+
|
|
64321
|
+
// CONCATENATED MODULE: ./src/views/project-detail/batch-api-modal/index.ts
|
|
64322
|
+
|
|
64323
|
+
|
|
64324
|
+
|
|
64325
|
+
|
|
64326
|
+
|
|
64327
|
+
|
|
64328
|
+
|
|
64329
|
+
|
|
64330
|
+
|
|
64331
|
+
|
|
64332
|
+
|
|
64333
|
+
|
|
64334
|
+
|
|
64335
|
+
|
|
64336
|
+
|
|
64337
|
+
|
|
64338
|
+
|
|
64339
|
+
|
|
64340
|
+
|
|
64341
|
+
var batch_api_modal_extends = undefined && undefined.__extends || function () {
|
|
64342
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
64343
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
64344
|
+
__proto__: []
|
|
64345
|
+
} instanceof Array && function (d, b) {
|
|
64346
|
+
d.__proto__ = b;
|
|
64347
|
+
} || function (d, b) {
|
|
64348
|
+
for (var p in b) {
|
|
64349
|
+
if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
|
|
64350
|
+
}
|
|
64351
|
+
};
|
|
64352
|
+
|
|
64353
|
+
return _extendStatics(d, b);
|
|
64354
|
+
};
|
|
64355
|
+
|
|
64356
|
+
return function (d, b) {
|
|
64357
|
+
if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
64358
|
+
|
|
64359
|
+
_extendStatics(d, b);
|
|
64360
|
+
|
|
64361
|
+
function __() {
|
|
64362
|
+
this.constructor = d;
|
|
64363
|
+
}
|
|
64364
|
+
|
|
64365
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
64366
|
+
};
|
|
64367
|
+
}();
|
|
64368
|
+
|
|
64369
|
+
var batch_api_modal_assign = undefined && undefined.__assign || function () {
|
|
64370
|
+
batch_api_modal_assign = Object.assign || function (t) {
|
|
64371
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
64372
|
+
s = arguments[i];
|
|
64373
|
+
|
|
64374
|
+
for (var p in s) {
|
|
64375
|
+
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
64376
|
+
}
|
|
64377
|
+
}
|
|
64378
|
+
|
|
64379
|
+
return t;
|
|
64380
|
+
};
|
|
64381
|
+
|
|
64382
|
+
return batch_api_modal_assign.apply(this, arguments);
|
|
64383
|
+
};
|
|
64384
|
+
|
|
64385
|
+
var batch_api_modal_decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
63481
64386
|
var c = arguments.length,
|
|
63482
64387
|
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
63483
64388
|
d;
|
|
@@ -63487,79 +64392,493 @@ var group_select_decorate = undefined && undefined.__decorate || function (decor
|
|
|
63487
64392
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
63488
64393
|
};
|
|
63489
64394
|
|
|
63490
|
-
var
|
|
64395
|
+
var batch_api_modal_metadata = undefined && undefined.__metadata || function (k, v) {
|
|
63491
64396
|
if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
63492
64397
|
};
|
|
63493
64398
|
|
|
64399
|
+
var batch_api_modal_awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
64400
|
+
function adopt(value) {
|
|
64401
|
+
return value instanceof P ? value : new P(function (resolve) {
|
|
64402
|
+
resolve(value);
|
|
64403
|
+
});
|
|
64404
|
+
}
|
|
64405
|
+
|
|
64406
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
64407
|
+
function fulfilled(value) {
|
|
64408
|
+
try {
|
|
64409
|
+
step(generator.next(value));
|
|
64410
|
+
} catch (e) {
|
|
64411
|
+
reject(e);
|
|
64412
|
+
}
|
|
64413
|
+
}
|
|
64414
|
+
|
|
64415
|
+
function rejected(value) {
|
|
64416
|
+
try {
|
|
64417
|
+
step(generator["throw"](value));
|
|
64418
|
+
} catch (e) {
|
|
64419
|
+
reject(e);
|
|
64420
|
+
}
|
|
64421
|
+
}
|
|
63494
64422
|
|
|
64423
|
+
function step(result) {
|
|
64424
|
+
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
64425
|
+
}
|
|
63495
64426
|
|
|
64427
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
64428
|
+
});
|
|
64429
|
+
};
|
|
63496
64430
|
|
|
63497
|
-
var
|
|
64431
|
+
var batch_api_modal_generator = undefined && undefined.__generator || function (thisArg, body) {
|
|
64432
|
+
var _ = {
|
|
64433
|
+
label: 0,
|
|
64434
|
+
sent: function sent() {
|
|
64435
|
+
if (t[0] & 1) throw t[1];
|
|
64436
|
+
return t[1];
|
|
64437
|
+
},
|
|
64438
|
+
trys: [],
|
|
64439
|
+
ops: []
|
|
64440
|
+
},
|
|
64441
|
+
f,
|
|
64442
|
+
y,
|
|
64443
|
+
t,
|
|
64444
|
+
g;
|
|
64445
|
+
return g = {
|
|
64446
|
+
next: verb(0),
|
|
64447
|
+
"throw": verb(1),
|
|
64448
|
+
"return": verb(2)
|
|
64449
|
+
}, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
|
|
64450
|
+
return this;
|
|
64451
|
+
}), g;
|
|
64452
|
+
|
|
64453
|
+
function verb(n) {
|
|
64454
|
+
return function (v) {
|
|
64455
|
+
return step([n, v]);
|
|
64456
|
+
};
|
|
64457
|
+
}
|
|
64458
|
+
|
|
64459
|
+
function step(op) {
|
|
64460
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
64461
|
+
|
|
64462
|
+
while (_) {
|
|
64463
|
+
try {
|
|
64464
|
+
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;
|
|
64465
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
64466
|
+
|
|
64467
|
+
switch (op[0]) {
|
|
64468
|
+
case 0:
|
|
64469
|
+
case 1:
|
|
64470
|
+
t = op;
|
|
64471
|
+
break;
|
|
64472
|
+
|
|
64473
|
+
case 4:
|
|
64474
|
+
_.label++;
|
|
64475
|
+
return {
|
|
64476
|
+
value: op[1],
|
|
64477
|
+
done: false
|
|
64478
|
+
};
|
|
64479
|
+
|
|
64480
|
+
case 5:
|
|
64481
|
+
_.label++;
|
|
64482
|
+
y = op[1];
|
|
64483
|
+
op = [0];
|
|
64484
|
+
continue;
|
|
64485
|
+
|
|
64486
|
+
case 7:
|
|
64487
|
+
op = _.ops.pop();
|
|
64488
|
+
|
|
64489
|
+
_.trys.pop();
|
|
64490
|
+
|
|
64491
|
+
continue;
|
|
64492
|
+
|
|
64493
|
+
default:
|
|
64494
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
64495
|
+
_ = 0;
|
|
64496
|
+
continue;
|
|
64497
|
+
}
|
|
64498
|
+
|
|
64499
|
+
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
64500
|
+
_.label = op[1];
|
|
64501
|
+
break;
|
|
64502
|
+
}
|
|
64503
|
+
|
|
64504
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
64505
|
+
_.label = t[1];
|
|
64506
|
+
t = op;
|
|
64507
|
+
break;
|
|
64508
|
+
}
|
|
64509
|
+
|
|
64510
|
+
if (t && _.label < t[2]) {
|
|
64511
|
+
_.label = t[2];
|
|
64512
|
+
|
|
64513
|
+
_.ops.push(op);
|
|
64514
|
+
|
|
64515
|
+
break;
|
|
64516
|
+
}
|
|
64517
|
+
|
|
64518
|
+
if (t[2]) _.ops.pop();
|
|
64519
|
+
|
|
64520
|
+
_.trys.pop();
|
|
64521
|
+
|
|
64522
|
+
continue;
|
|
64523
|
+
}
|
|
64524
|
+
|
|
64525
|
+
op = body.call(thisArg, _);
|
|
64526
|
+
} catch (e) {
|
|
64527
|
+
op = [6, e];
|
|
64528
|
+
y = 0;
|
|
64529
|
+
} finally {
|
|
64530
|
+
f = t = 0;
|
|
64531
|
+
}
|
|
64532
|
+
}
|
|
64533
|
+
|
|
64534
|
+
if (op[0] & 5) throw op[1];
|
|
64535
|
+
return {
|
|
64536
|
+
value: op[0] ? op[1] : void 0,
|
|
64537
|
+
done: true
|
|
64538
|
+
};
|
|
64539
|
+
}
|
|
64540
|
+
};
|
|
64541
|
+
|
|
64542
|
+
|
|
64543
|
+
|
|
64544
|
+
|
|
64545
|
+
|
|
64546
|
+
|
|
64547
|
+
|
|
64548
|
+
var batch_api_modal_BatchApiModal =
|
|
63498
64549
|
/** @class */
|
|
63499
64550
|
function (_super) {
|
|
63500
|
-
|
|
64551
|
+
batch_api_modal_extends(BatchApiModal, _super);
|
|
63501
64552
|
|
|
63502
|
-
function
|
|
64553
|
+
function BatchApiModal() {
|
|
63503
64554
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
63504
64555
|
|
|
63505
|
-
_this.
|
|
64556
|
+
_this.keyword = "";
|
|
64557
|
+
_this.apiList = [];
|
|
64558
|
+
_this.isEmpty = true;
|
|
64559
|
+
_this.allSelect = false;
|
|
64560
|
+
_this.variableList = [];
|
|
64561
|
+
_this.securityList = [];
|
|
64562
|
+
_this.set = new Set();
|
|
64563
|
+
_this.type = "env";
|
|
64564
|
+
_this.formData = {
|
|
64565
|
+
envId: "",
|
|
64566
|
+
authId: ""
|
|
64567
|
+
};
|
|
63506
64568
|
return _this;
|
|
63507
64569
|
}
|
|
63508
64570
|
|
|
63509
|
-
|
|
63510
|
-
|
|
63511
|
-
|
|
64571
|
+
Object.defineProperty(BatchApiModal.prototype, "rules", {
|
|
64572
|
+
get: function get() {
|
|
64573
|
+
if (this.type === "env") {
|
|
64574
|
+
return {
|
|
64575
|
+
envId: [{
|
|
64576
|
+
required: true,
|
|
64577
|
+
message: "请选择环境变量",
|
|
64578
|
+
trigger: "change"
|
|
64579
|
+
}]
|
|
64580
|
+
};
|
|
64581
|
+
} else if (this.type === "auth") {
|
|
64582
|
+
return {
|
|
64583
|
+
authId: [{
|
|
64584
|
+
required: true,
|
|
64585
|
+
message: "请选择授权设置",
|
|
64586
|
+
trigger: "change"
|
|
64587
|
+
}]
|
|
64588
|
+
};
|
|
64589
|
+
} else {
|
|
64590
|
+
return {
|
|
64591
|
+
envId: [{
|
|
64592
|
+
required: true,
|
|
64593
|
+
message: "请选择环境变量",
|
|
64594
|
+
trigger: "change"
|
|
64595
|
+
}],
|
|
64596
|
+
authId: [{
|
|
64597
|
+
required: true,
|
|
64598
|
+
message: "请选择环境变量",
|
|
64599
|
+
trigger: "change"
|
|
64600
|
+
}]
|
|
64601
|
+
};
|
|
64602
|
+
}
|
|
64603
|
+
},
|
|
64604
|
+
enumerable: false,
|
|
64605
|
+
configurable: true
|
|
64606
|
+
});
|
|
64607
|
+
/**
|
|
64608
|
+
* 过滤查询
|
|
64609
|
+
* @param data
|
|
64610
|
+
*/
|
|
64611
|
+
|
|
64612
|
+
BatchApiModal.prototype.onFilter = function (data) {
|
|
64613
|
+
var _this = this;
|
|
64614
|
+
|
|
64615
|
+
this.apiList = this.data.$clone().filter(function (h) {
|
|
64616
|
+
if (h.name.indexOf(_this.keyword) > -1) {
|
|
64617
|
+
return h;
|
|
64618
|
+
}
|
|
64619
|
+
});
|
|
64620
|
+
this.apiList.forEach(function (v) {
|
|
64621
|
+
_this.set.has(v.id) && (v.selected = true);
|
|
64622
|
+
});
|
|
64623
|
+
}; // 弹窗打开和关闭需要重置数据
|
|
64624
|
+
|
|
64625
|
+
|
|
64626
|
+
BatchApiModal.prototype.onShowChange = function (show) {
|
|
64627
|
+
return batch_api_modal_awaiter(this, void 0, void 0, function () {
|
|
64628
|
+
return batch_api_modal_generator(this, function (_a) {
|
|
64629
|
+
if (show) {
|
|
64630
|
+
this.getVariableList();
|
|
64631
|
+
this.apiList = this.data.$clone();
|
|
64632
|
+
} else {
|
|
64633
|
+
// this.type = "env";
|
|
64634
|
+
// this.formData = {
|
|
64635
|
+
// envId: "",
|
|
64636
|
+
// authId: ""
|
|
64637
|
+
// };
|
|
64638
|
+
this.$refs["batch-api-form"].resetFields();
|
|
64639
|
+
}
|
|
64640
|
+
|
|
64641
|
+
return [2
|
|
64642
|
+
/*return*/
|
|
64643
|
+
];
|
|
64644
|
+
});
|
|
64645
|
+
});
|
|
63512
64646
|
};
|
|
63513
64647
|
|
|
63514
|
-
|
|
63515
|
-
|
|
64648
|
+
BatchApiModal.prototype.onEmpty = function (value) {
|
|
64649
|
+
if (value) {
|
|
64650
|
+
this.isEmpty = true;
|
|
64651
|
+
} else {
|
|
64652
|
+
this.isEmpty = false;
|
|
64653
|
+
}
|
|
63516
64654
|
};
|
|
64655
|
+
/**
|
|
64656
|
+
* 分别获取环境变量和授权设置的数据
|
|
64657
|
+
*/
|
|
63517
64658
|
|
|
63518
|
-
|
|
63519
|
-
|
|
63520
|
-
|
|
63521
|
-
|
|
63522
|
-
|
|
63523
|
-
|
|
63524
|
-
|
|
63525
|
-
|
|
63526
|
-
|
|
63527
|
-
|
|
63528
|
-
|
|
63529
|
-
|
|
63530
|
-
|
|
63531
|
-
|
|
63532
|
-
|
|
63533
|
-
|
|
64659
|
+
|
|
64660
|
+
BatchApiModal.prototype.getVariableList = function () {
|
|
64661
|
+
return batch_api_modal_awaiter(this, void 0, void 0, function () {
|
|
64662
|
+
var res, list;
|
|
64663
|
+
return batch_api_modal_generator(this, function (_a) {
|
|
64664
|
+
switch (_a.label) {
|
|
64665
|
+
case 0:
|
|
64666
|
+
return [4
|
|
64667
|
+
/*yield*/
|
|
64668
|
+
, this.service.getVariableList({
|
|
64669
|
+
projectId: this.projectId
|
|
64670
|
+
})];
|
|
64671
|
+
|
|
64672
|
+
case 1:
|
|
64673
|
+
res = _a.sent();
|
|
64674
|
+
return [4
|
|
64675
|
+
/*yield*/
|
|
64676
|
+
, this.service.getSecurityList({
|
|
64677
|
+
projectId: this.projectId
|
|
64678
|
+
})];
|
|
64679
|
+
|
|
64680
|
+
case 2:
|
|
64681
|
+
list = _a.sent();
|
|
64682
|
+
|
|
64683
|
+
if (!(res === null || res === void 0 ? void 0 : res.hasError)) {
|
|
64684
|
+
this.variableList = res.result || [];
|
|
64685
|
+
}
|
|
64686
|
+
|
|
64687
|
+
if (!(list === null || list === void 0 ? void 0 : list.hasError)) {
|
|
64688
|
+
this.securityList = list.result || [];
|
|
64689
|
+
}
|
|
64690
|
+
|
|
64691
|
+
return [2
|
|
64692
|
+
/*return*/
|
|
64693
|
+
];
|
|
64694
|
+
}
|
|
64695
|
+
});
|
|
64696
|
+
});
|
|
64697
|
+
};
|
|
64698
|
+
/**
|
|
64699
|
+
* 点击每个api的复选框触发事件
|
|
64700
|
+
* @param data 当前复选框状态
|
|
64701
|
+
* @param item 当前操作的数据
|
|
64702
|
+
*/
|
|
64703
|
+
|
|
64704
|
+
|
|
64705
|
+
BatchApiModal.prototype.onSelect = function (data, item) {
|
|
64706
|
+
if (data) {
|
|
64707
|
+
this.set.add(item.id);
|
|
64708
|
+
} else {
|
|
64709
|
+
this.set.delete(item.id);
|
|
64710
|
+
}
|
|
64711
|
+
};
|
|
64712
|
+
/**
|
|
64713
|
+
* 点击全选框事件
|
|
64714
|
+
* @param data 当前全选框的值
|
|
64715
|
+
*/
|
|
64716
|
+
|
|
64717
|
+
|
|
64718
|
+
BatchApiModal.prototype.onAllSelect = function (data) {
|
|
64719
|
+
var _this = this;
|
|
64720
|
+
|
|
64721
|
+
if (data) {
|
|
64722
|
+
this.apiList.forEach(function (item) {
|
|
64723
|
+
item.selected = true;
|
|
64724
|
+
|
|
64725
|
+
_this.set.add(item.id);
|
|
64726
|
+
});
|
|
64727
|
+
} else {
|
|
64728
|
+
this.apiList.forEach(function (item) {
|
|
64729
|
+
item.selected = false;
|
|
64730
|
+
|
|
64731
|
+
_this.set.delete(item.id);
|
|
64732
|
+
});
|
|
64733
|
+
}
|
|
64734
|
+
};
|
|
64735
|
+
|
|
64736
|
+
BatchApiModal.prototype.onCancel = function () {
|
|
64737
|
+
this.keyword = "";
|
|
64738
|
+
this.value = false;
|
|
64739
|
+
};
|
|
64740
|
+
/**
|
|
64741
|
+
* 保存事件
|
|
64742
|
+
* @returns
|
|
64743
|
+
*/
|
|
64744
|
+
|
|
64745
|
+
|
|
64746
|
+
BatchApiModal.prototype.onSave = function () {
|
|
64747
|
+
return batch_api_modal_awaiter(this, void 0, void 0, function () {
|
|
64748
|
+
var vaild, data, res, res, res, result;
|
|
64749
|
+
return batch_api_modal_generator(this, function (_a) {
|
|
64750
|
+
switch (_a.label) {
|
|
64751
|
+
case 0:
|
|
64752
|
+
if (!this.set.size) {
|
|
64753
|
+
return [2
|
|
64754
|
+
/*return*/
|
|
64755
|
+
, this.$message.warning("请选择api")];
|
|
64756
|
+
}
|
|
64757
|
+
|
|
64758
|
+
return [4
|
|
64759
|
+
/*yield*/
|
|
64760
|
+
, this.$refs["batch-api-form"].validate()];
|
|
64761
|
+
|
|
64762
|
+
case 1:
|
|
64763
|
+
vaild = _a.sent();
|
|
64764
|
+
|
|
64765
|
+
if (!vaild) {
|
|
64766
|
+
return [2
|
|
64767
|
+
/*return*/
|
|
64768
|
+
];
|
|
64769
|
+
}
|
|
64770
|
+
|
|
64771
|
+
data = {
|
|
64772
|
+
ids: Array.from(this.set)
|
|
64773
|
+
};
|
|
64774
|
+
if (!(this.type === "env")) return [3
|
|
64775
|
+
/*break*/
|
|
64776
|
+
, 3];
|
|
64777
|
+
data.envId = this.formData.envId === "empty" ? "" : this.formData.envId;
|
|
64778
|
+
return [4
|
|
64779
|
+
/*yield*/
|
|
64780
|
+
, this.service.onBatchEnv(data)];
|
|
64781
|
+
|
|
64782
|
+
case 2:
|
|
64783
|
+
res = _a.sent();
|
|
64784
|
+
|
|
64785
|
+
if (res && !res.hasError) {
|
|
64786
|
+
this.$message.success("保存成功!");
|
|
64787
|
+
this.$emit("on-success", true);
|
|
64788
|
+
this.onCancel();
|
|
64789
|
+
}
|
|
64790
|
+
|
|
64791
|
+
return [2
|
|
64792
|
+
/*return*/
|
|
64793
|
+
];
|
|
64794
|
+
|
|
64795
|
+
case 3:
|
|
64796
|
+
if (!(this.type === "auth")) return [3
|
|
64797
|
+
/*break*/
|
|
64798
|
+
, 5];
|
|
64799
|
+
data.authId = this.formData.authId === "empty" ? "" : this.formData.authId;
|
|
64800
|
+
return [4
|
|
64801
|
+
/*yield*/
|
|
64802
|
+
, this.service.onBatchAuth(data)];
|
|
64803
|
+
|
|
64804
|
+
case 4:
|
|
64805
|
+
res = _a.sent();
|
|
64806
|
+
|
|
64807
|
+
if (res && !res.hasError) {
|
|
64808
|
+
this.$message.success("保存成功!"); // this.$publish("api://batch-api-refresh");
|
|
64809
|
+
// this.$publish("api://security-list-refresh");
|
|
64810
|
+
|
|
64811
|
+
this.onCancel();
|
|
64812
|
+
}
|
|
64813
|
+
|
|
64814
|
+
return [2
|
|
64815
|
+
/*return*/
|
|
64816
|
+
];
|
|
64817
|
+
|
|
64818
|
+
case 5:
|
|
64819
|
+
return [4
|
|
64820
|
+
/*yield*/
|
|
64821
|
+
, this.service.onBatchEnv(batch_api_modal_assign(batch_api_modal_assign({}, data), {
|
|
64822
|
+
envId: this.formData.envId === "empty" ? "" : this.formData.envId
|
|
64823
|
+
}))];
|
|
64824
|
+
|
|
64825
|
+
case 6:
|
|
64826
|
+
res = _a.sent();
|
|
64827
|
+
return [4
|
|
64828
|
+
/*yield*/
|
|
64829
|
+
, this.service.onBatchAuth(batch_api_modal_assign(batch_api_modal_assign({}, data), {
|
|
64830
|
+
authId: this.formData.authId === "empty" ? "" : this.formData.authId
|
|
64831
|
+
}))];
|
|
64832
|
+
|
|
64833
|
+
case 7:
|
|
64834
|
+
result = _a.sent();
|
|
64835
|
+
|
|
64836
|
+
if (!(res === null || res === void 0 ? void 0 : res.hasError) && !(result === null || result === void 0 ? void 0 : result.hasError)) {
|
|
64837
|
+
this.$message.success("保存成功!");
|
|
64838
|
+
this.$emit("on-success", true);
|
|
64839
|
+
this.onCancel();
|
|
64840
|
+
}
|
|
64841
|
+
|
|
64842
|
+
return [2
|
|
64843
|
+
/*return*/
|
|
64844
|
+
];
|
|
64845
|
+
}
|
|
64846
|
+
});
|
|
64847
|
+
});
|
|
63534
64848
|
};
|
|
63535
64849
|
|
|
63536
64850
|
var _a;
|
|
63537
64851
|
|
|
63538
|
-
|
|
64852
|
+
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);
|
|
64853
|
+
|
|
64854
|
+
batch_api_modal_decorate([Object(external_vue_property_decorator_["PropSync"])("visiable", {
|
|
64855
|
+
default: false
|
|
64856
|
+
}), batch_api_modal_metadata("design:type", Boolean)], BatchApiModal.prototype, "value", void 0);
|
|
64857
|
+
|
|
64858
|
+
batch_api_modal_decorate([Object(flagwind_web_["config"])({
|
|
64859
|
+
default: []
|
|
64860
|
+
}), batch_api_modal_metadata("design:type", Object)], BatchApiModal.prototype, "data", void 0);
|
|
64861
|
+
|
|
64862
|
+
batch_api_modal_decorate([Object(flagwind_web_["config"])({
|
|
63539
64863
|
default: function _default() {
|
|
63540
64864
|
return [];
|
|
63541
64865
|
}
|
|
63542
|
-
}),
|
|
64866
|
+
}), batch_api_modal_metadata("design:type", String)], BatchApiModal.prototype, "projectId", void 0);
|
|
63543
64867
|
|
|
63544
|
-
|
|
63545
|
-
default: function _default() {
|
|
63546
|
-
return new Object();
|
|
63547
|
-
}
|
|
63548
|
-
}), group_select_metadata("design:type", Object)], GroupSelect.prototype, "current", void 0);
|
|
64868
|
+
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
64869
|
|
|
63550
|
-
|
|
63551
|
-
|
|
63552
|
-
|
|
63553
|
-
}), group_select_metadata("design:type", Boolean)], GroupSelect.prototype, "isSelector", void 0);
|
|
64870
|
+
batch_api_modal_decorate([Object(flagwind_web_["watch"])("data.length", {
|
|
64871
|
+
immediate: true
|
|
64872
|
+
}), 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
64873
|
|
|
63555
|
-
|
|
63556
|
-
template: __webpack_require__("
|
|
64874
|
+
BatchApiModal = batch_api_modal_decorate([Object(flagwind_web_["component"])({
|
|
64875
|
+
template: __webpack_require__("88af"),
|
|
63557
64876
|
components: {}
|
|
63558
|
-
})],
|
|
63559
|
-
return
|
|
64877
|
+
})], BatchApiModal);
|
|
64878
|
+
return BatchApiModal;
|
|
63560
64879
|
}(flagwind_web_["Component"]);
|
|
63561
64880
|
|
|
63562
|
-
/* harmony default export */ var
|
|
64881
|
+
/* harmony default export */ var project_detail_batch_api_modal = (batch_api_modal_BatchApiModal);
|
|
63563
64882
|
// EXTERNAL MODULE: ./src/views/project-detail/tree-node/index.scss
|
|
63564
64883
|
var project_detail_tree_node = __webpack_require__("688a");
|
|
63565
64884
|
|
|
@@ -63882,6 +65201,7 @@ var project_detail_tree_generator = undefined && undefined.__generator || functi
|
|
|
63882
65201
|
|
|
63883
65202
|
|
|
63884
65203
|
|
|
65204
|
+
|
|
63885
65205
|
var tree_ProjectTree =
|
|
63886
65206
|
/** @class */
|
|
63887
65207
|
function (_super) {
|
|
@@ -63915,6 +65235,8 @@ function (_super) {
|
|
|
63915
65235
|
}];
|
|
63916
65236
|
_this.showInterfaceModal = false;
|
|
63917
65237
|
_this.showGroupModal = false;
|
|
65238
|
+
_this.showBatchModal = false;
|
|
65239
|
+
_this.categoryApiList = [];
|
|
63918
65240
|
_this.interfaceModel = {
|
|
63919
65241
|
method: "GET"
|
|
63920
65242
|
};
|
|
@@ -63936,6 +65258,7 @@ function (_super) {
|
|
|
63936
65258
|
"on-edit-interface": this.onEditInterface,
|
|
63937
65259
|
// "on-delete-interface": this.onDeleteInterface,
|
|
63938
65260
|
"on-delete-interface": this.onDeleteClick,
|
|
65261
|
+
"on-edit-attribute": this.onBatchEdit,
|
|
63939
65262
|
"on-copy-interface": this.onCopyInterface,
|
|
63940
65263
|
"on-add-interface": this.onAddInterface,
|
|
63941
65264
|
"on-delete-group": this.onDeleteGroup,
|
|
@@ -63958,6 +65281,21 @@ function (_super) {
|
|
|
63958
65281
|
this.showInterfaceModal = true;
|
|
63959
65282
|
};
|
|
63960
65283
|
|
|
65284
|
+
ProjectTree.prototype.onBatchEdit = function (data) {
|
|
65285
|
+
var list = [];
|
|
65286
|
+
this.data.forEach(function (item) {
|
|
65287
|
+
if (item.id === data.id) {
|
|
65288
|
+
list = data.apis;
|
|
65289
|
+
return;
|
|
65290
|
+
}
|
|
65291
|
+
});
|
|
65292
|
+
this.categoryApiList = list.map(function (h) {
|
|
65293
|
+
h.selected = false;
|
|
65294
|
+
return h;
|
|
65295
|
+
});
|
|
65296
|
+
this.showBatchModal = true;
|
|
65297
|
+
};
|
|
65298
|
+
|
|
63961
65299
|
ProjectTree.prototype.onDeleteInterface = function (data) {
|
|
63962
65300
|
return project_detail_tree_awaiter(this, void 0, void 0, function () {
|
|
63963
65301
|
var result;
|
|
@@ -64295,6 +65633,10 @@ function (_super) {
|
|
|
64295
65633
|
});
|
|
64296
65634
|
};
|
|
64297
65635
|
|
|
65636
|
+
ProjectTree.prototype.onBatchSuccess = function (data) {
|
|
65637
|
+
this.$emit("on-success", data);
|
|
65638
|
+
};
|
|
65639
|
+
|
|
64298
65640
|
var _a;
|
|
64299
65641
|
|
|
64300
65642
|
project_detail_tree_decorate([Object(flagwind_web_["config"])({
|
|
@@ -64312,7 +65654,8 @@ function (_super) {
|
|
|
64312
65654
|
ProjectTree = project_detail_tree_decorate([Object(flagwind_web_["component"])({
|
|
64313
65655
|
template: __webpack_require__("193e"),
|
|
64314
65656
|
components: {
|
|
64315
|
-
"u-group-select": project_detail_group_select
|
|
65657
|
+
"u-group-select": project_detail_group_select,
|
|
65658
|
+
"u-batch-modal": project_detail_batch_api_modal
|
|
64316
65659
|
}
|
|
64317
65660
|
})], ProjectTree);
|
|
64318
65661
|
return ProjectTree;
|
|
@@ -64556,6 +65899,7 @@ var project_detail_generator = undefined && undefined.__generator || function (t
|
|
|
64556
65899
|
|
|
64557
65900
|
|
|
64558
65901
|
|
|
65902
|
+
|
|
64559
65903
|
var project_detail_ProjectDetail =
|
|
64560
65904
|
/** @class */
|
|
64561
65905
|
function (_super) {
|
|
@@ -64570,6 +65914,7 @@ function (_super) {
|
|
|
64570
65914
|
_this.showGlobalModal = false;
|
|
64571
65915
|
_this.showCurrentModal = false;
|
|
64572
65916
|
_this.showSecurity = false;
|
|
65917
|
+
_this.showEnvironmentModal = false;
|
|
64573
65918
|
_this.projectId = "";
|
|
64574
65919
|
_this.projectName = "";
|
|
64575
65920
|
_this.split = "340px";
|
|
@@ -64578,6 +65923,7 @@ function (_super) {
|
|
|
64578
65923
|
slidesPerView: "auto",
|
|
64579
65924
|
spaceBetween: 0
|
|
64580
65925
|
};
|
|
65926
|
+
_this.current = {};
|
|
64581
65927
|
return _this;
|
|
64582
65928
|
}
|
|
64583
65929
|
|
|
@@ -64629,6 +65975,7 @@ function (_super) {
|
|
|
64629
65975
|
return project_detail_generator(this, function (_a) {
|
|
64630
65976
|
switch (_a.label) {
|
|
64631
65977
|
case 0:
|
|
65978
|
+
this.current = data;
|
|
64632
65979
|
resumeData = {};
|
|
64633
65980
|
|
|
64634
65981
|
if (isResume) {
|
|
@@ -64753,6 +66100,10 @@ function (_super) {
|
|
|
64753
66100
|
|
|
64754
66101
|
ProjectDetail.prototype.onOpenCurrentModal = function () {
|
|
64755
66102
|
this.showCurrentModal = true;
|
|
66103
|
+
};
|
|
66104
|
+
|
|
66105
|
+
ProjectDetail.prototype.onOpenEnvModal = function () {
|
|
66106
|
+
this.showEnvironmentModal = true;
|
|
64756
66107
|
}; // @watch("$route", { deep: true, immediate: true })
|
|
64757
66108
|
|
|
64758
66109
|
|
|
@@ -64768,7 +66119,10 @@ function (_super) {
|
|
|
64768
66119
|
id: apiId,
|
|
64769
66120
|
name: apiName
|
|
64770
66121
|
}, resume === "true");
|
|
64771
|
-
}
|
|
66122
|
+
} // this.$subscribe("api://batch-api-refresh", async () => {
|
|
66123
|
+
// this.onCheckInterface(this.current, resume === "true");
|
|
66124
|
+
// });
|
|
66125
|
+
|
|
64772
66126
|
};
|
|
64773
66127
|
|
|
64774
66128
|
ProjectDetail.prototype.activated = function () {
|
|
@@ -64791,6 +66145,12 @@ function (_super) {
|
|
|
64791
66145
|
});
|
|
64792
66146
|
};
|
|
64793
66147
|
|
|
66148
|
+
ProjectDetail.prototype.onBatchSuccess = function (data) {
|
|
66149
|
+
if (data) {
|
|
66150
|
+
this.getProjectInfo();
|
|
66151
|
+
}
|
|
66152
|
+
};
|
|
66153
|
+
|
|
64794
66154
|
var _a;
|
|
64795
66155
|
|
|
64796
66156
|
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 +66163,7 @@ function (_super) {
|
|
|
64803
66163
|
"u-settings": project_detail_interface_settings,
|
|
64804
66164
|
"u-global-modal": project_detail_global_variable_modal,
|
|
64805
66165
|
"u-current-modal": project_detail_current_variable_modal,
|
|
66166
|
+
"u-environment-modal": project_detail_environment_variable_modal,
|
|
64806
66167
|
Swiper: vue_awesome_swiper["Swiper"],
|
|
64807
66168
|
SwiperSlide: vue_awesome_swiper["SwiperSlide"],
|
|
64808
66169
|
"u-security-modal": project_detail_security_modal
|