@egova/egova-api 1.3.3 → 1.3.4
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/README.md +15 -15
- package/dist/index.common.js +1179 -44
- package/dist/index.css +1 -1
- package/dist/index.umd.js +1184 -49
- package/dist/index.umd.min.js +4 -4
- package/dist/static/img/{authentication.e6fbf188.svg → authentication.da2b6203.svg} +159 -159
- package/dist/static/img/{empty_result.98fe48d0.svg → empty_result.58c09489.svg} +232 -232
- package/dist/static/img/{iconfont.26f82952.svg → iconfont.559d2630.svg} +83 -83
- package/dist/static/img/{iconfont.6fbfccbd.svg → iconfont.671d9701.svg} +285 -285
- package/dist/static/img/{table_nodata.c92bc11a.svg → table_nodata.a7f91345.svg} +200 -200
- package/package.json +10 -8
package/dist/index.umd.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
2
2
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
|
-
module.exports = factory(require("vue-property-decorator"), require("brace/mode/json"), require("brace/mode/groovy"), require("brace/mode/xml"), require("vue-json-viewer"), require("brace/snippets/json"), require("lodash.debounce"), require("brace/ext/searchbox"), require("@egova/flagwind-core"), require("@egova/flagwind-web"), require("brace/theme/chrome"), require("brace/ext/language_tools"), require("vue2-ace-editor"), require("vue"), require("brace/snippets/javascript"), require("brace"), require("halo-math"), require("brace/snippets/groovy"), require("jsencrypt"), require("mavon-editor"), require("js-cookie"), require("brace/mode/javascript"), require("@egova/flagwind-web/dist/flagwind-web.umd.js"), require("axios"), require("swiper"));
|
|
3
|
+
module.exports = factory(require("vue-property-decorator"), require("brace/mode/json"), require("brace/mode/groovy"), require("brace/mode/xml"), require("vue-json-viewer"), require("brace/snippets/json"), require("lodash.debounce"), require("brace/ext/searchbox"), require("@egova/flagwind-core"), require("@egova/flagwind-web"), require("brace/theme/chrome"), require("brace/ext/language_tools"), require("vue2-ace-editor"), require("vue"), require("brace/snippets/javascript"), require("brace"), require("halo-math"), require("brace/snippets/groovy"), require("jsencrypt"), require("crypto-js"), require("mavon-editor"), require("js-cookie"), require("brace/mode/javascript"), require("@egova/flagwind-web/dist/flagwind-web.umd.js"), require("axios"), require("swiper"));
|
|
4
4
|
else if(typeof define === 'function' && define.amd)
|
|
5
|
-
define(["vue-property-decorator", "brace/mode/json", "brace/mode/groovy", "brace/mode/xml", "vue-json-viewer", "brace/snippets/json", "lodash.debounce", "brace/ext/searchbox", "@egova/flagwind-core", "@egova/flagwind-web", "brace/theme/chrome", "brace/ext/language_tools", "vue2-ace-editor", "vue", "brace/snippets/javascript", "brace", "halo-math", "brace/snippets/groovy", "jsencrypt", "mavon-editor", "js-cookie", "brace/mode/javascript", "@egova/flagwind-web/dist/flagwind-web.umd.js", "axios", "swiper"], factory);
|
|
5
|
+
define(["vue-property-decorator", "brace/mode/json", "brace/mode/groovy", "brace/mode/xml", "vue-json-viewer", "brace/snippets/json", "lodash.debounce", "brace/ext/searchbox", "@egova/flagwind-core", "@egova/flagwind-web", "brace/theme/chrome", "brace/ext/language_tools", "vue2-ace-editor", "vue", "brace/snippets/javascript", "brace", "halo-math", "brace/snippets/groovy", "jsencrypt", "crypto-js", "mavon-editor", "js-cookie", "brace/mode/javascript", "@egova/flagwind-web/dist/flagwind-web.umd.js", "axios", "swiper"], factory);
|
|
6
6
|
else if(typeof exports === 'object')
|
|
7
|
-
exports["index"] = factory(require("vue-property-decorator"), require("brace/mode/json"), require("brace/mode/groovy"), require("brace/mode/xml"), require("vue-json-viewer"), require("brace/snippets/json"), require("lodash.debounce"), require("brace/ext/searchbox"), require("@egova/flagwind-core"), require("@egova/flagwind-web"), require("brace/theme/chrome"), require("brace/ext/language_tools"), require("vue2-ace-editor"), require("vue"), require("brace/snippets/javascript"), require("brace"), require("halo-math"), require("brace/snippets/groovy"), require("jsencrypt"), require("mavon-editor"), require("js-cookie"), require("brace/mode/javascript"), require("@egova/flagwind-web/dist/flagwind-web.umd.js"), require("axios"), require("swiper"));
|
|
7
|
+
exports["index"] = factory(require("vue-property-decorator"), require("brace/mode/json"), require("brace/mode/groovy"), require("brace/mode/xml"), require("vue-json-viewer"), require("brace/snippets/json"), require("lodash.debounce"), require("brace/ext/searchbox"), require("@egova/flagwind-core"), require("@egova/flagwind-web"), require("brace/theme/chrome"), require("brace/ext/language_tools"), require("vue2-ace-editor"), require("vue"), require("brace/snippets/javascript"), require("brace"), require("halo-math"), require("brace/snippets/groovy"), require("jsencrypt"), require("crypto-js"), require("mavon-editor"), require("js-cookie"), require("brace/mode/javascript"), require("@egova/flagwind-web/dist/flagwind-web.umd.js"), require("axios"), require("swiper"));
|
|
8
8
|
else
|
|
9
|
-
root["index"] = factory(root["vue-property-decorator"], root["brace/mode/json"], root["brace/mode/groovy"], root["brace/mode/xml"], root["vue-json-viewer"], root["brace/snippets/json"], root["lodash.debounce"], root["brace/ext/searchbox"], root["@egova/flagwind-core"], root["@egova/flagwind-web"], root["brace/theme/chrome"], root["brace/ext/language_tools"], root["vue2-ace-editor"], root["vue"], root["brace/snippets/javascript"], root["brace"], root["halo-math"], root["brace/snippets/groovy"], root["jsencrypt"], root["mavon-editor"], root["js-cookie"], root["brace/mode/javascript"], root["@egova/flagwind-web/dist/flagwind-web.umd.js"], root["axios"], root["swiper"]);
|
|
10
|
-
})((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE__01a6__, __WEBPACK_EXTERNAL_MODULE__0e0c__, __WEBPACK_EXTERNAL_MODULE__1cdf__, __WEBPACK_EXTERNAL_MODULE__1e82__, __WEBPACK_EXTERNAL_MODULE__2364__, __WEBPACK_EXTERNAL_MODULE__3fb3__, __WEBPACK_EXTERNAL_MODULE__4387__, __WEBPACK_EXTERNAL_MODULE__5217__, __WEBPACK_EXTERNAL_MODULE__554d__, __WEBPACK_EXTERNAL_MODULE__6397__, __WEBPACK_EXTERNAL_MODULE__64d5__, __WEBPACK_EXTERNAL_MODULE__8214__, __WEBPACK_EXTERNAL_MODULE__8380__, __WEBPACK_EXTERNAL_MODULE__8bbf__, __WEBPACK_EXTERNAL_MODULE__91e1__, __WEBPACK_EXTERNAL_MODULE__92ad__, __WEBPACK_EXTERNAL_MODULE__9839__, __WEBPACK_EXTERNAL_MODULE__9842__, __WEBPACK_EXTERNAL_MODULE__98f0__, __WEBPACK_EXTERNAL_MODULE_a93c__, __WEBPACK_EXTERNAL_MODULE_be65__, __WEBPACK_EXTERNAL_MODULE_c889__, __WEBPACK_EXTERNAL_MODULE_ce8f__, __WEBPACK_EXTERNAL_MODULE_cebe__, __WEBPACK_EXTERNAL_MODULE_d670__) {
|
|
9
|
+
root["index"] = factory(root["vue-property-decorator"], root["brace/mode/json"], root["brace/mode/groovy"], root["brace/mode/xml"], root["vue-json-viewer"], root["brace/snippets/json"], root["lodash.debounce"], root["brace/ext/searchbox"], root["@egova/flagwind-core"], root["@egova/flagwind-web"], root["brace/theme/chrome"], root["brace/ext/language_tools"], root["vue2-ace-editor"], root["vue"], root["brace/snippets/javascript"], root["brace"], root["halo-math"], root["brace/snippets/groovy"], root["jsencrypt"], root["crypto-js"], root["mavon-editor"], root["js-cookie"], root["brace/mode/javascript"], root["@egova/flagwind-web/dist/flagwind-web.umd.js"], root["axios"], root["swiper"]);
|
|
10
|
+
})((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE__01a6__, __WEBPACK_EXTERNAL_MODULE__0e0c__, __WEBPACK_EXTERNAL_MODULE__1cdf__, __WEBPACK_EXTERNAL_MODULE__1e82__, __WEBPACK_EXTERNAL_MODULE__2364__, __WEBPACK_EXTERNAL_MODULE__3fb3__, __WEBPACK_EXTERNAL_MODULE__4387__, __WEBPACK_EXTERNAL_MODULE__5217__, __WEBPACK_EXTERNAL_MODULE__554d__, __WEBPACK_EXTERNAL_MODULE__6397__, __WEBPACK_EXTERNAL_MODULE__64d5__, __WEBPACK_EXTERNAL_MODULE__8214__, __WEBPACK_EXTERNAL_MODULE__8380__, __WEBPACK_EXTERNAL_MODULE__8bbf__, __WEBPACK_EXTERNAL_MODULE__91e1__, __WEBPACK_EXTERNAL_MODULE__92ad__, __WEBPACK_EXTERNAL_MODULE__9839__, __WEBPACK_EXTERNAL_MODULE__9842__, __WEBPACK_EXTERNAL_MODULE__98f0__, __WEBPACK_EXTERNAL_MODULE_a2c5__, __WEBPACK_EXTERNAL_MODULE_a93c__, __WEBPACK_EXTERNAL_MODULE_be65__, __WEBPACK_EXTERNAL_MODULE_c889__, __WEBPACK_EXTERNAL_MODULE_ce8f__, __WEBPACK_EXTERNAL_MODULE_cebe__, __WEBPACK_EXTERNAL_MODULE_d670__) {
|
|
11
11
|
return /******/ (function(modules) { // webpackBootstrap
|
|
12
12
|
/******/ // The module cache
|
|
13
13
|
/******/ var installedModules = {};
|
|
@@ -96,6 +96,24 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
96
96
|
/************************************************************************/
|
|
97
97
|
/******/ ({
|
|
98
98
|
|
|
99
|
+
/***/ "00fe":
|
|
100
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
101
|
+
|
|
102
|
+
"use strict";
|
|
103
|
+
|
|
104
|
+
var lengthOfArrayLike = __webpack_require__("d631");
|
|
105
|
+
|
|
106
|
+
module.exports = function (Constructor, list, $length) {
|
|
107
|
+
var index = 0;
|
|
108
|
+
var length = arguments.length > 2 ? $length : lengthOfArrayLike(list);
|
|
109
|
+
var result = new Constructor(length);
|
|
110
|
+
while (length > index) result[index] = list[index++];
|
|
111
|
+
return result;
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
/***/ }),
|
|
116
|
+
|
|
99
117
|
/***/ "01a6":
|
|
100
118
|
/***/ (function(module, exports) {
|
|
101
119
|
|
|
@@ -137,14 +155,14 @@ module.exports = isForced;
|
|
|
137
155
|
/***/ "07ab":
|
|
138
156
|
/***/ (function(module, exports) {
|
|
139
157
|
|
|
140
|
-
module.exports = "<div class=\"u-tree-node\">\
|
|
158
|
+
module.exports = "<div class=\"u-tree-node\">\n<!-- <i class=\"iconfont\" :class=\"data.expand? 'icon-expand': 'icon-unexpand'\"></i>-->\n <i class=\"iconfont icon-mulushu\" @click=\"onClickNode\"></i>\n <div class=\"name\" @click=\"onClickNode\">{{data.name}}</div>\n <i-dropdown @on-click=\"onClick\" transfer transfer-class-name=\"node-oprate\" v-if=\"data.id !== 'virtual_root_directory'\">\n <i-icon type=\"ios-more\" />\n <i-dropdown-menu slot=\"list\">\n <i-dropdown-item v-for=\"item in actions\" :key=\"item.name\" :name=\"item.name\">\n <template v-if=\"item.name === 'import'\">\n <i-upload\n class=\"action-item\"\n :action=\"uploadAction\"\n :data=\"uploadParams\"\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>{{item.text}}\n </i-upload>\n </template>\n <template v-else> <i class=\"iconfont\" :class=\"'icon-' + (item.icon || item.name)\"></i>{{item.text}} </template>\n </i-dropdown-item>\n </i-dropdown-menu>\n </i-dropdown>\n</div>\n"
|
|
141
159
|
|
|
142
160
|
/***/ }),
|
|
143
161
|
|
|
144
162
|
/***/ "086a":
|
|
145
163
|
/***/ (function(module, exports) {
|
|
146
164
|
|
|
147
|
-
module.exports = "<i-modal draggable sticky transfer reset-drag-position :mask-closable=\"false\" v-model=\"show\" width=\"1000\" class=\"u-test-run-modal diy-modal\">\
|
|
165
|
+
module.exports = "<i-modal draggable sticky transfer reset-drag-position :mask-closable=\"false\" v-model=\"show\" width=\"1000\" class=\"u-test-run-modal diy-modal\">\n <header slot=\"header\">运行结果</header>\n <main>\n <section class=\"u-test-run-content\">\n <section class=\"title-g\">参数</section>\n <section class=\"card-panel context-editor\">\n <u-base-editor :data.sync=\"context\"></u-base-editor>\n </section>\n <i-row justify=\"end\">\n <i-button class=\"diy-btn-default\" @click=\"onReset\">重置</i-button>\n <i-button class=\"diy-btn-primary\" type=\"primary\" @click=\"onProcess\">执行</i-button>\n </i-row>\n <section class=\"title-g\">结果</section>\n <section class=\"card-panel\">\n <i-tabs>\n <i-tab-pane label=\"响应\" name=\"response\">\n <u-base-editor :class=\"['editor', error ? 'editor-error' : '']\" :data.sync=\"result\" :readOnly=\"true\"></u-base-editor>\n </i-tab-pane>\n <i-tab-pane label=\"输出\" name=\"output\">\n <u-base-editor :data.sync=\"output\" :readOnly=\"true\"></u-base-editor>\n </i-tab-pane>\n </i-tabs>\n </section>\n </section>\n </main>\n <footer slot=\"footer\">\n <i-button type=\"primary\" class=\"diy-btn-primary\" @click=\"onOk\">关闭</i-button>\n </footer>\n</i-modal>\n"
|
|
148
166
|
|
|
149
167
|
/***/ }),
|
|
150
168
|
|
|
@@ -167,7 +185,7 @@ module.exports = store;
|
|
|
167
185
|
/***/ "0941":
|
|
168
186
|
/***/ (function(module, exports) {
|
|
169
187
|
|
|
170
|
-
module.exports = "<i-modal draggable sticky transfer reset-drag-position :mask-closable=\"false\" v-model=\"show\" width=\"1280\" class=\"u-api-project-modal diy-modal\">\
|
|
188
|
+
module.exports = "<i-modal draggable sticky transfer reset-drag-position :mask-closable=\"false\" v-model=\"show\" width=\"1280\" class=\"u-api-project-modal diy-modal\">\n <header slot=\"header\">添加API</header>\n <main>\n <i-split v-model=\"splitHorizontal\">\n <section slot=\"left\" class=\"card-panel card-panel-no-right-border\">\n <div class=\"card-panel-header\">\n <span>选择列表</span>\n </div>\n <div class=\"card-panel-main\">\n <u-tree :commonTaskCategoryID=\"taskCategoryID\" :initSelectItem=\"initNode\" :prop-data=\"treeData\" :isTreeList=\"true\" @on-select=\"onSelect\" />\n </div>\n </section>\n <section slot=\"right\" class=\"right-content\">\n <i-split v-model=\"splitVertical\" mode=\"vertical\" max=\"600\">\n <section slot=\"top\" class=\"card-panel card-panel-no-bottom-border\">\n <div class=\"card-panel-header\">\n <span>选择模型</span>\n </div>\n <div class=\"card-panel-main\">\n <u-api-project-list\n :data=\"tableData\"\n :paging.sync=\"paging\"\n @on-search=\"onSearch\"\n @on-page-index-change=\"onPageIndexChange\"\n @on-page-size-change=\"onPageSizeChange\"\n @on-selection-change=\"onSelectionChange\"\n @on-delete-refresh=\"getTableData\"\n @on-row-click=\"onRowClick\"\n >\n </u-api-project-list>\n </div>\n </section>\n <section slot=\"bottom\" :class=\"['card-panel', collapse ? 'card-panel-no-bottom-border' : '']\">\n <div class=\"card-panel-header\">\n <span>已选({{checkedLength}})</span>\n <span>\n <i-poptip confirm title=\"您确定要清空已选中的数据吗?\" transfer placement=\"top-end\" @on-ok=\"onBatchDelete\">\n <span class=\"action-text\">\n <i class=\"iconfont icon-delete\"></i>\n <span>清空</span>\n </span>\n </i-poptip>\n <span class=\"action-text collapse-text\" @click=\"onClickCollapse\">\n <span>{{collapse ? \"展开\" : \"收起\"}}</span>\n <i class=\"ivu-icon ivu-icon-ios-arrow-forward\" :class=\"{'icon-arrow-collapse':collapse}\"></i>\n </span>\n </span>\n </div>\n <div class=\"card-panel-main\">\n <template v-if=\"checkedData&&checkedData.length\">\n <i-table class=\"diy-table\" :columns=\"columns\" :data=\"checkedData\">\n <template #operates=\"{row,index}\">\n <div class=\"row-actions\">\n <i-poptip confirm transfer title=\"确认要删除这条数据吗?\" @on-ok=\"onDelete(row)\">\n <i title=\"删除\" class=\"iconfont icon-delete\"></i>\n </i-poptip>\n </div>\n </template>\n </i-table>\n </template>\n <template v-else>\n <div class=\"table-no-data\">\n <div class=\"table-no-data-bg\"></div>\n <div class=\"table-no-data-text\">暂无数据</div>\n </div>\n </template>\n </div>\n </section>\n </i-split>\n </section>\n </i-split>\n <i-spin fix v-if=\"isLoading\">\n <i class=\"spin-icon-load ivu-icon\"></i>\n </i-spin>\n </main>\n <footer slot=\"footer\">\n <i-button type=\"primary\" class=\"diy-btn-primary\" @click=\"onSave\">确定</i-button>\n <i-button class=\"diy-btn-default\" @click=\"onCancel\">取消</i-button>\n </footer>\n</i-modal>\n"
|
|
171
189
|
|
|
172
190
|
/***/ }),
|
|
173
191
|
|
|
@@ -280,7 +298,7 @@ module.exports = function (exec) {
|
|
|
280
298
|
/***/ "10cf":
|
|
281
299
|
/***/ (function(module, exports) {
|
|
282
300
|
|
|
283
|
-
module.exports = "<i-modal\
|
|
301
|
+
module.exports = "<i-modal\n draggable\n sticky\n reset-drag-position\n v-model=\"value\"\n class=\"diy-modal current-variable-modal\"\n :mask-closable=\"false\"\n footer-hide\n title=\"查看当前变量\"\n>\n <i-form\n :label-width=\"95\"\n class=\"diy-form\"\n label-colon\n label-position=\"left\"\n >\n <i-form-item label=\"环境名称\">\n <i-input class=\"diy-input\" placeholder=\"请输入环境名称\"></i-input>\n </i-form-item>\n <i-form-item label=\"环境域名\" class=\"realm-name\">\n <i-input class=\"diy-input\" placeholder=\"请输入环境域名\">\n <i-select slot=\"prepend\" class=\"diy-select\"> </i-select>\n </i-input>\n </i-form-item>\n <i-form-item label=\"Header\" class=\"name-value-item\">\n <i-input class=\"diy-input\"></i-input>\n <i-input class=\"diy-input\"></i-input>\n </i-form-item>\n <i-form-item label=\"Cookie\" class=\"name-value-item\">\n <i-input class=\"diy-input\"></i-input>\n <i-input class=\"diy-input\"></i-input>\n </i-form-item>\n <i-form-item label=\"Global\" class=\"name-value-item\">\n <i-input class=\"diy-input\"></i-input>\n <i-input class=\"diy-input\"></i-input>\n </i-form-item>\n </i-form>\n</i-modal>\n"
|
|
284
302
|
|
|
285
303
|
/***/ }),
|
|
286
304
|
|
|
@@ -310,6 +328,24 @@ module.exports = !fails(function () {
|
|
|
310
328
|
});
|
|
311
329
|
|
|
312
330
|
|
|
331
|
+
/***/ }),
|
|
332
|
+
|
|
333
|
+
/***/ "16bf":
|
|
334
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
335
|
+
|
|
336
|
+
"use strict";
|
|
337
|
+
|
|
338
|
+
var toPositiveInteger = __webpack_require__("ead7");
|
|
339
|
+
|
|
340
|
+
var $RangeError = RangeError;
|
|
341
|
+
|
|
342
|
+
module.exports = function (it, BYTES) {
|
|
343
|
+
var offset = toPositiveInteger(it);
|
|
344
|
+
if (offset % BYTES) throw new $RangeError('Wrong offset');
|
|
345
|
+
return offset;
|
|
346
|
+
};
|
|
347
|
+
|
|
348
|
+
|
|
313
349
|
/***/ }),
|
|
314
350
|
|
|
315
351
|
/***/ "17f8":
|
|
@@ -413,7 +449,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__1e82__;
|
|
|
413
449
|
/***/ "22e8":
|
|
414
450
|
/***/ (function(module, exports) {
|
|
415
451
|
|
|
416
|
-
module.exports = "<article class=\"headers-setting\">\
|
|
452
|
+
module.exports = "<article class=\"headers-setting\">\n <header>\n <i-button type=\"primary\" ghost class=\"diy-btn-primary\" @click=\"onAdd\">\n <i class=\"api-icon icon-add\"></i>新增\n </i-button>\n <!-- <i-button type=\"primary\" ghost class=\"diy-btn-primary\">\n <i class=\"api-icon icon-import\"></i>导入参数\n </i-button>\n <i-button type=\"primary\" ghost class=\"diy-btn-primary\">\n <i class=\"api-icon icon-export\"></i>导出参数\n </i-button> -->\n </header>\n <i-table\n class=\"diy-table\"\n :columns=\"columns\"\n :data=\"interfaceModel.requestHeaders\"\n >\n <template slot-scope=\"{ row,index }\" slot=\"selection\">\n <i-checkbox\n :value=\"!interfaceModel.requestHeaders[index].disabled\"\n @on-change=\"onChangeDisabled($event,interfaceModel.requestHeaders[index])\"\n >\n </i-checkbox>\n </template>\n <template slot-scope=\"{ row,index }\" slot=\"name\">\n <i-input\n class=\"diy-input\"\n placeholder=\"输入参数名称\"\n v-model=\"interfaceModel.requestHeaders[index].name\"\n >\n </i-input>\n </template>\n <template slot-scope=\"{ row,index }\" slot=\"value\">\n <i-input\n class=\"diy-input\"\n placeholder=\"输入参数值\"\n v-model=\"interfaceModel.requestHeaders[index].value\"\n >\n </i-input>\n </template>\n <template slot-scope=\"{ row,index }\" slot=\"text\">\n <i-input\n class=\"diy-input\"\n placeholder=\"备注\"\n v-model=\"interfaceModel.requestHeaders[index].text\"\n >\n </i-input>\n </template>\n <template slot-scope=\"{ row,index }\" slot=\"action\">\n <i-poptip title=\"确认删除这条数据吗?\" confirm @on-ok=\"onDelete(index)\" transfer>\n <i class=\"iconfont icon-delete\" title=\"删除\"></i>\n </i-poptip>\n </template>\n </i-table>\n</article>\n"
|
|
417
453
|
|
|
418
454
|
/***/ }),
|
|
419
455
|
|
|
@@ -444,7 +480,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__2364__;
|
|
|
444
480
|
/***/ "236b":
|
|
445
481
|
/***/ (function(module, exports) {
|
|
446
482
|
|
|
447
|
-
module.exports = "<article class=\"after-execution-transfer\">\
|
|
483
|
+
module.exports = "<article class=\"after-execution-transfer\">\n <i-form :label-width=\"112\" class=\"diy-form\" label-colon v-if=\"interfaceModel.convertConfig\">\n <i-form-item label=\"状态字段位置\">\n <i-input class=\"diy-input\" v-model=\"interfaceModel.convertConfig.successCodePath\"></i-input>\n </i-form-item>\n <i-form-item label=\"成功标识\">\n <i-input class=\"diy-input\" v-model=\"interfaceModel.convertConfig.successCode\"></i-input>\n </i-form-item>\n <i-form-item label=\"数据字段位置\">\n <i-input class=\"diy-input\" v-model=\"interfaceModel.convertConfig.convertRoot\"></i-input>\n </i-form-item>\n </i-form>\n <i-row class=\"transfer-actions\" justify=\"space-between\">\n <div class=\"transfer-actions-title\">\n <span>配置输出字段</span>\n <i-poptip class=\"action\" trigger=\"hover\" content=\"当前页面的勾选框仅对批量删除有效,实际输出字段为下方列表内的所有内容。\" width=\"300\" word-wrap transfer>\n <i class=\"iconfont icon-xinxi\"> </i>\n </i-poptip>\n </div>\n <div class=\"actions-wrapper\">\n <i-poptip class=\"action\" confirm title=\"将自动解析转换前结果json至配置输出字段,是否继续?\" width=\"300\" @on-ok=\"onParse\" transfer>\n <div class=\"action-item action-text\">\n <i class=\"iconfont icon-jiexi-copy\"></i>\n 解析\n </div>\n </i-poptip>\n <i-poptip class=\"action\" confirm title=\"将重置当前所有输出字段为上次保存内容,是否确认一键重置?\" width=\"300\" @on-ok=\"onReset\" transfer>\n <div class=\"action-item action-text\">\n <i class=\"iconfont icon-refresh\"></i>\n 重置\n </div>\n </i-poptip>\n <div class=\"action-item action-text action\" @click=\"onAdd\">\n <i class=\"iconfont icon-add\"></i>\n 新增\n </div>\n <i-poptip class=\"action\" confirm title=\"将批量删除勾选字段,是否确认?\" @on-ok=\"batchDelete\" transfer>\n <div class=\"action-item action-text action-text-delete\" :class=\"selections.length > 0 ? '' : 'icon-button-disabled'\">\n <i class=\"iconfont icon-delete\"></i>\n 批量删除\n </div>\n </i-poptip>\n </div>\n </i-row>\n <i-table :columns=\"columns\" :data=\"dataList\" class=\"diy-table\" @on-selection-change=\"onChangeChecked\">\n <template slot-scope=\"{ row,index }\" slot=\"path\">\n <i-input class=\"diy-input\" v-model=\"dataList[index].paramPath\" @on-change=\"debounceUpdateFieldMappings\"> </i-input>\n </template>\n <template slot-scope=\"{ row,index }\" slot=\"name\">\n <i-input class=\"diy-input half\" placeholder=\"输入字段命名\" v-model=\"dataList[index].name\" @on-change=\"debounceUpdateFieldMappings\"> </i-input>\n <i-select transfer class=\"half diy-select\" v-model=\"dataList[index].valueType\" placeholder=\"选择字段类型\" @on-change=\"debounceUpdateFieldMappings\">\n <i-option v-for=\"item in valueTypeList\" :key=\"item.name\" :value=\"item.name\">{{item.text}} </i-option>\n </i-select>\n </template>\n <template slot-scope=\"{ row,index }\" slot=\"action\">\n <span @click=\"onDelete(index)\">\n <i title=\"删除\" class=\"iconfont icon-delete\"></i>\n </span>\n </template>\n </i-table>\n <i-spin fix v-show=\"loading\">\n <i class=\"spin-icon-load ivu-icon\"></i>\n </i-spin>\n</article>\n"
|
|
448
484
|
|
|
449
485
|
/***/ }),
|
|
450
486
|
|
|
@@ -496,6 +532,31 @@ exports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
|
496
532
|
} : $propertyIsEnumerable;
|
|
497
533
|
|
|
498
534
|
|
|
535
|
+
/***/ }),
|
|
536
|
+
|
|
537
|
+
/***/ "2597":
|
|
538
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
539
|
+
|
|
540
|
+
"use strict";
|
|
541
|
+
|
|
542
|
+
var ArrayBufferViewCore = __webpack_require__("6a10");
|
|
543
|
+
var lengthOfArrayLike = __webpack_require__("d631");
|
|
544
|
+
var toIntegerOrInfinity = __webpack_require__("9b7f");
|
|
545
|
+
|
|
546
|
+
var aTypedArray = ArrayBufferViewCore.aTypedArray;
|
|
547
|
+
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
|
|
548
|
+
|
|
549
|
+
// `%TypedArray%.prototype.at` method
|
|
550
|
+
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.at
|
|
551
|
+
exportTypedArrayMethod('at', function at(index) {
|
|
552
|
+
var O = aTypedArray(this);
|
|
553
|
+
var len = lengthOfArrayLike(O);
|
|
554
|
+
var relativeIndex = toIntegerOrInfinity(index);
|
|
555
|
+
var k = relativeIndex >= 0 ? relativeIndex : len + relativeIndex;
|
|
556
|
+
return (k < 0 || k >= len) ? undefined : O[k];
|
|
557
|
+
});
|
|
558
|
+
|
|
559
|
+
|
|
499
560
|
/***/ }),
|
|
500
561
|
|
|
501
562
|
/***/ "2606":
|
|
@@ -529,6 +590,24 @@ module.exports = {
|
|
|
529
590
|
|
|
530
591
|
// extracted by mini-css-extract-plugin
|
|
531
592
|
|
|
593
|
+
/***/ }),
|
|
594
|
+
|
|
595
|
+
/***/ "2720":
|
|
596
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
597
|
+
|
|
598
|
+
"use strict";
|
|
599
|
+
|
|
600
|
+
var classofRaw = __webpack_require__("0d9b");
|
|
601
|
+
var uncurryThis = __webpack_require__("720f");
|
|
602
|
+
|
|
603
|
+
module.exports = function (fn) {
|
|
604
|
+
// Nashorn bug:
|
|
605
|
+
// https://github.com/zloirock/core-js/issues/1128
|
|
606
|
+
// https://github.com/zloirock/core-js/issues/1130
|
|
607
|
+
if (classofRaw(fn) === 'Function') return uncurryThis(fn);
|
|
608
|
+
};
|
|
609
|
+
|
|
610
|
+
|
|
532
611
|
/***/ }),
|
|
533
612
|
|
|
534
613
|
/***/ "2a79":
|
|
@@ -541,7 +620,7 @@ module.exports = {
|
|
|
541
620
|
/***/ "2c48":
|
|
542
621
|
/***/ (function(module, exports) {
|
|
543
622
|
|
|
544
|
-
module.exports = "<article class=\"response\" :class=\"{'response-expand':expand}\">\
|
|
623
|
+
module.exports = "<article class=\"response\" :class=\"{'response-expand':expand}\">\n <header :class=\"{'status-success': response.code === 200, 'status-fail': response.code && response.code!==200}\">\n <span class=\"title\">响应</span>\n <span class=\"collapse-text\" @click=\"onClickCollapse\">\n <i class=\"ivu-icon ivu-icon-ios-arrow-forward\" :class=\"{'icon-arrow-collapse':expand}\"></i>\n <span>{{expand ? \"收起\" : \"展开\"}}</span>\n </span>\n <div class=\"items-div\">\n <span class=\"item-name\">响应码:</span>\n <span class=\"item-value\">{{response.code}}</span>\n <span class=\"item-name\">时间:</span>\n <span class=\"item-value\">{{response.time}}ms</span>\n <span class=\"item-name\">大小:</span>\n <span class=\"item-value\">{{response.size}}B</span>\n </div>\n </header>\n <main v-show=\"expand\">\n <div class=\"response-bar\">\n <div\n class=\"tag\"\n @click=\"onClickResponseSettingTpye(item)\"\n :class=\"{'active': item.name === active.name}\"\n v-for=\"(item,index) in responseSettingTypeList\"\n :key=\"item.name\"\n >\n <span>{{item.title + (item.num > 0 ? '(' + item.num + ')': \"\")}}</span>\n </div>\n </div>\n <div class=\"response-content\">\n <template v-if=\"active.name === 'content'\">\n <header>\n <i-radio-group type=\"button\" class=\"diy-radio-group-button response-content-radio-group\" v-model=\"contentType\">\n <i-radio label=\"originalContent\">转换前</i-radio>\n <i-radio label=\"content\">转换后</i-radio>\n </i-radio-group>\n <i-dropdown class=\"diy-dropdown response-content-dropdown\" @on-click=\"onChangeLang\">\n <i-button ghost type=\"primary\" class=\"diy-btn-primary\">\n <span class=\"lang\">{{lang.toUpperCase()}}</span>\n <i class=\"api-icon icon-select\"></i>\n </i-button>\n <i-dropdown-menu slot=\"list\">\n <i-dropdown-item name=\"json\">JSON</i-dropdown-item>\n <i-dropdown-item name=\"xml\">XML</i-dropdown-item>\n </i-dropdown-menu>\n </i-dropdown>\n </header>\n <u-editor :value=\"content\" :lang=\"lang\" @inited=\"onEditorInited\"></u-editor>\n </template>\n <div v-if=\"active.name === 'responseHeaders'\">\n <i-table :columns=\"headerColumns\" :data=\"responseHeaders\" class=\"diy-table\"> </i-table>\n </div>\n <template v-if=\"active.name === 'requestHeaders'\">\n <i-table :columns=\"headerColumns\" :data=\"requestHeaders\" class=\"diy-table\"> </i-table>\n </template>\n <template v-if=\"active.name === 'cookies'\">\n <i-table :columns=\"headerColumns\" :data=\"cookies\" class=\"diy-table\"> </i-table>\n </template>\n <template v-if=\"active.name==='output'\">\n <span class=\"output\">{{output}}</span>\n </template>\n </div>\n </main>\n</article>\n"
|
|
545
624
|
|
|
546
625
|
/***/ }),
|
|
547
626
|
|
|
@@ -550,12 +629,34 @@ module.exports = "<article class=\"response\" :class=\"{'response-expand':expand
|
|
|
550
629
|
|
|
551
630
|
// extracted by mini-css-extract-plugin
|
|
552
631
|
|
|
632
|
+
/***/ }),
|
|
633
|
+
|
|
634
|
+
/***/ "2ece":
|
|
635
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
636
|
+
|
|
637
|
+
"use strict";
|
|
638
|
+
|
|
639
|
+
var uncurryThis = __webpack_require__("2720");
|
|
640
|
+
var aCallable = __webpack_require__("7801");
|
|
641
|
+
var NATIVE_BIND = __webpack_require__("12f2");
|
|
642
|
+
|
|
643
|
+
var bind = uncurryThis(uncurryThis.bind);
|
|
644
|
+
|
|
645
|
+
// optional / simple context binding
|
|
646
|
+
module.exports = function (fn, that) {
|
|
647
|
+
aCallable(fn);
|
|
648
|
+
return that === undefined ? fn : NATIVE_BIND ? bind(fn, that) : function (/* ...args */) {
|
|
649
|
+
return fn.apply(that, arguments);
|
|
650
|
+
};
|
|
651
|
+
};
|
|
652
|
+
|
|
653
|
+
|
|
553
654
|
/***/ }),
|
|
554
655
|
|
|
555
656
|
/***/ "2f53":
|
|
556
657
|
/***/ (function(module, exports) {
|
|
557
658
|
|
|
558
|
-
module.exports = "<span class=\"wrap\">\
|
|
659
|
+
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"
|
|
559
660
|
|
|
560
661
|
/***/ }),
|
|
561
662
|
|
|
@@ -612,14 +713,14 @@ module.exports = function (argument, $default) {
|
|
|
612
713
|
/***/ "35e3":
|
|
613
714
|
/***/ (function(module, exports) {
|
|
614
715
|
|
|
615
|
-
module.exports = "<editor class=\"code-edit\" v-model=\"code\" :options=\"option\" @init=\"editorInit\" :lang=\"lang\" width=\"100%\" height=\"100%\"></editor>\
|
|
716
|
+
module.exports = "<editor class=\"code-edit\" v-model=\"code\" :options=\"option\" @init=\"editorInit\" :lang=\"lang\" width=\"100%\" height=\"100%\"></editor>\n"
|
|
616
717
|
|
|
617
718
|
/***/ }),
|
|
618
719
|
|
|
619
720
|
/***/ "37f5":
|
|
620
721
|
/***/ (function(module, exports) {
|
|
621
722
|
|
|
622
|
-
module.exports = "<article class=\"catalog-params\">\
|
|
723
|
+
module.exports = "<article class=\"catalog-params\">\n <header>\n 请求体为 JSON 数组,每一个 JSON 对象应符合如下的格式:\n </header>\n <i-table height=\"200\" class=\"diy-table\" :columns=\"columns\" :data=\"dataList\">\n <template slot-scope=\"{ row,index }\" slot=\"type\">\n {{(row.typeDict || {}).text}}\n </template>\n <template slot-scope=\"{ row,index }\" slot=\"required\">\n {{row.required ? \"是\": \"否\"}}\n </template>\n </i-table>\n</article>\n"
|
|
623
724
|
|
|
624
725
|
/***/ }),
|
|
625
726
|
|
|
@@ -646,12 +747,50 @@ module.exports = function (target, source, exceptions) {
|
|
|
646
747
|
};
|
|
647
748
|
|
|
648
749
|
|
|
750
|
+
/***/ }),
|
|
751
|
+
|
|
752
|
+
/***/ "39d5":
|
|
753
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
754
|
+
|
|
755
|
+
"use strict";
|
|
756
|
+
|
|
757
|
+
var arrayWith = __webpack_require__("b699");
|
|
758
|
+
var ArrayBufferViewCore = __webpack_require__("6a10");
|
|
759
|
+
var isBigIntArray = __webpack_require__("9195");
|
|
760
|
+
var toIntegerOrInfinity = __webpack_require__("9b7f");
|
|
761
|
+
var toBigInt = __webpack_require__("a68e");
|
|
762
|
+
|
|
763
|
+
var aTypedArray = ArrayBufferViewCore.aTypedArray;
|
|
764
|
+
var getTypedArrayConstructor = ArrayBufferViewCore.getTypedArrayConstructor;
|
|
765
|
+
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
|
|
766
|
+
|
|
767
|
+
var PROPER_ORDER = !!function () {
|
|
768
|
+
try {
|
|
769
|
+
// eslint-disable-next-line no-throw-literal, es/no-typed-arrays, es/no-array-prototype-with -- required for testing
|
|
770
|
+
new Int8Array(1)['with'](2, { valueOf: function () { throw 8; } });
|
|
771
|
+
} catch (error) {
|
|
772
|
+
// some early implementations, like WebKit, does not follow the final semantic
|
|
773
|
+
// https://github.com/tc39/proposal-change-array-by-copy/pull/86
|
|
774
|
+
return error === 8;
|
|
775
|
+
}
|
|
776
|
+
}();
|
|
777
|
+
|
|
778
|
+
// `%TypedArray%.prototype.with` method
|
|
779
|
+
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.with
|
|
780
|
+
exportTypedArrayMethod('with', { 'with': function (index, value) {
|
|
781
|
+
var O = aTypedArray(this);
|
|
782
|
+
var relativeIndex = toIntegerOrInfinity(index);
|
|
783
|
+
var actualValue = isBigIntArray(O) ? toBigInt(value) : +value;
|
|
784
|
+
return arrayWith(O, getTypedArrayConstructor(O), relativeIndex, actualValue);
|
|
785
|
+
} }['with'], !PROPER_ORDER);
|
|
786
|
+
|
|
787
|
+
|
|
649
788
|
/***/ }),
|
|
650
789
|
|
|
651
790
|
/***/ "3a71":
|
|
652
791
|
/***/ (function(module, exports) {
|
|
653
792
|
|
|
654
|
-
module.exports = "<i-collapse v-model=\"value\" simple class=\"api-params\">\
|
|
793
|
+
module.exports = "<i-collapse v-model=\"value\" simple class=\"api-params\">\n <i-panel name=\"1\">\n <span>Query参数</span>\n <span class=\"status\">{{getExpand('1') ? \"收起\" : \"展开\"}}</span>\n <div slot=\"content\" class=\"setting-content\">\n <main>\n <i-table\n height=\"200\"\n class=\"diy-table\"\n :columns=\"paramColumns\"\n :data=\"queryDataList\"\n >\n <template slot-scope=\"{ row,index }\" slot=\"selection\">\n <i-checkbox\n disabled\n :value=\"!queryDataList[index].disabled\"\n >\n </i-checkbox>\n </template>\n </i-table>\n </main>\n </div>\n </i-panel>\n <i-panel name=\"2\">\n <span>Body参数</span>\n <span class=\"status\">{{getExpand('2') ? \"收起\" : \"展开\"}}</span>\n <div slot=\"content\" class=\"setting-content\">\n <main>\n <i-table\n height=\"200\"\n class=\"diy-table\"\n :columns=\"paramColumns\"\n :data=\"bodyDataList\"\n v-if=\"isFormData\"\n >\n <template slot-scope=\"{ row,index }\" slot=\"selection\">\n <i-checkbox\n disabled\n :value=\"!bodyDataList[index].disabled\"\n >\n </i-checkbox>\n </template>\n </i-table>\n <json-viewer\n v-else\n :value=\"model.json\"\n boxed\n :copyable=\"{copyText: '复制', copiedText: '已复制'}\"\n :expanded=\"true\"\n :expand-depth=\"5\"\n >\n </json-viewer>\n </main>\n </div>\n </i-panel>\n</i-collapse>\n"
|
|
655
794
|
|
|
656
795
|
/***/ }),
|
|
657
796
|
|
|
@@ -665,14 +804,57 @@ module.exports = "<i-collapse v-model=\"value\" simple class=\"api-params\">\r\n
|
|
|
665
804
|
/***/ "3b85":
|
|
666
805
|
/***/ (function(module, exports) {
|
|
667
806
|
|
|
668
|
-
module.exports = "<i-modal :mask-closable=\"false\" draggable sticky reset-drag-position v-model=\"show\" class=\"diy-modal\">\
|
|
807
|
+
module.exports = "<i-modal :mask-closable=\"false\" draggable sticky reset-drag-position v-model=\"show\" class=\"diy-modal\">\n <header slot=\"header\">\n {{isEdit ? \"编辑分组\" : \"新增分组\"}}\n </header>\n <main>\n <i-form ref=\"addForm\" :model=\"data\" :rules=\"rules\">\n <i-form-item prop=\"name\" label=\"分组名称\">\n <i-input class=\"diy-input\" v-model=\"data.name\"></i-input>\n </i-form-item>\n <i-form-item v-if=\"isEdit\" label=\"所属分组\" class=\"update-category\">\n <u-tree-selector :treeData=\"categories\" leaf-name=\"task\" :canChooseFolder=\"true\" v-model=\"categoryData.id\" @on-select=\"selectCategory\">\n </u-tree-selector>\n </i-form-item>\n </i-form>\n </main>\n <footer slot=\"footer\">\n <i-button class=\"diy-btn-primary\" type=\"primary\" @click.stop=\"onSave\">确定</i-button>\n <i-button class=\"diy-btn-default\" @click.stop=\"onCancel\">取消</i-button>\n </footer>\n</i-modal>\n"
|
|
808
|
+
|
|
809
|
+
/***/ }),
|
|
810
|
+
|
|
811
|
+
/***/ "3bdc":
|
|
812
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
813
|
+
|
|
814
|
+
"use strict";
|
|
815
|
+
|
|
816
|
+
var bind = __webpack_require__("2ece");
|
|
817
|
+
var IndexedObject = __webpack_require__("5ee5");
|
|
818
|
+
var toObject = __webpack_require__("e614");
|
|
819
|
+
var lengthOfArrayLike = __webpack_require__("d631");
|
|
820
|
+
|
|
821
|
+
// `Array.prototype.{ findLast, findLastIndex }` methods implementation
|
|
822
|
+
var createMethod = function (TYPE) {
|
|
823
|
+
var IS_FIND_LAST_INDEX = TYPE === 1;
|
|
824
|
+
return function ($this, callbackfn, that) {
|
|
825
|
+
var O = toObject($this);
|
|
826
|
+
var self = IndexedObject(O);
|
|
827
|
+
var index = lengthOfArrayLike(self);
|
|
828
|
+
var boundFunction = bind(callbackfn, that);
|
|
829
|
+
var value, result;
|
|
830
|
+
while (index-- > 0) {
|
|
831
|
+
value = self[index];
|
|
832
|
+
result = boundFunction(value, index, O);
|
|
833
|
+
if (result) switch (TYPE) {
|
|
834
|
+
case 0: return value; // findLast
|
|
835
|
+
case 1: return index; // findLastIndex
|
|
836
|
+
}
|
|
837
|
+
}
|
|
838
|
+
return IS_FIND_LAST_INDEX ? -1 : undefined;
|
|
839
|
+
};
|
|
840
|
+
};
|
|
841
|
+
|
|
842
|
+
module.exports = {
|
|
843
|
+
// `Array.prototype.findLast` method
|
|
844
|
+
// https://github.com/tc39/proposal-array-find-from-last
|
|
845
|
+
findLast: createMethod(0),
|
|
846
|
+
// `Array.prototype.findLastIndex` method
|
|
847
|
+
// https://github.com/tc39/proposal-array-find-from-last
|
|
848
|
+
findLastIndex: createMethod(1)
|
|
849
|
+
};
|
|
850
|
+
|
|
669
851
|
|
|
670
852
|
/***/ }),
|
|
671
853
|
|
|
672
854
|
/***/ "3bf8":
|
|
673
855
|
/***/ (function(module, exports) {
|
|
674
856
|
|
|
675
|
-
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 v-if=\"isEmpty\" :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 <div class=\"script-label\" slot=\"label\">\r\n <i-icon class=\"help-icon\" type=\"md-alert\" @click=\"showScriptDoc\" title=\"帮助文档\"> </i-icon>\r\n <span>授权脚本:</span>\r\n </div>\r\n <u-editor\r\n class=\"editor\"\r\n :model.sync=\"currentSecurityItem.scriptContent\"\r\n :diyKeywordList=\"diyKeywordList\"\r\n lang=\"groovy\"\r\n >\r\n </u-editor>\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 <u-doc-modal class=\"script-doc-modal\" v-model=\"scriptDocShow\" :doc=\"scriptDoc\"></u-doc-modal>\r\n</i-modal>\r\n"
|
|
857
|
+
module.exports = "<i-modal draggable sticky reset-drag-position :mask-closable=\"false\" v-model=\"show\" width=\"1000\" class=\"u-security-modal diy-modal\" transfer>\n <header slot=\"header\">授权认证</header>\n <main class=\"security-content\">\n <div class=\"left\">\n <div class=\"left-title\">\n <div class=\"left-title-text\">授权列表</div>\n <i class=\"api-icon icon-add\" @click=\"onAddItem\"></i>\n </div>\n <div class=\"left-content\">\n <i-input class=\"diy-input search-input\" v-model=\"keyword\" placeholder=\"输入关键字查询\" @on-change=\"onFilter\">\n <template #prefix>\n <i-icon type=\"ios-search\"/>\n </template>\n </i-input>\n <div class=\"security-list\">\n <div class=\"security-list-item\"\n :class=\"currentSecurityItem.id === item.id ? 'security-list-item-active' : ''\"\n v-for=\"(item,index) in securityList\"\n :key=\"item.id || index\"\n @click=\"onSelectSecurityItem(item)\"\n >\n <div class=\"security-list-item-name\">\n <i class=\"iconfont icon-shouquan1\"></i>\n <div class=\"security-list-item-text\" :class=\"currentSecurityItem.id === item.id ? 'security-list-item-text-active' : ''\">{{ item.name || \"新授权\" }}</div>\n </div>\n <i-poptip confirm title=\"确认删除这条数据吗?\" transfer placement=\"top-end\" @on-ok=\"onDelete(item)\">\n <i class=\"iconfont icon-delete\"></i>\n </i-poptip>\n<!-- <i class=\"iconfont icon-delete\" @click.stop=\"onDelete(item)\"></i>-->\n </div>\n </div>\n </div>\n </div>\n <div class=\"right\">\n <div class=\"right-title\">授权内容</div>\n <div class=\"right-content\">\n <i-form class=\"security-content-form\" label-colon v-if=\"isEmpty\" :model=\"currentSecurityItem\">\n <template v-if=\"currentSecurityItem.type\">\n <i-form-item class=\"security-content-form-item\" :class=\"currentSecurityItem.type === 'OAuth2' ? 'oauth2-form-item' : ''\" label=\"授权名称\" required>\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.name\"></i-input>\n </i-form-item>\n <i-form-item class=\"security-content-form-item\" :class=\"currentSecurityItem.type === 'OAuth2' ? 'oauth2-form-item' : ''\" label=\"授权类型\" required>\n <i-select class=\"diy-select\" v-model=\"currentSecurityItem.type\">\n <i-option v-for=\"(item,index) in securityTypeList\" :value=\"item.name\" :key=\"index\">{{ item.text }}</i-option>\n </i-select>\n </i-form-item>\n </template>\n <template v-if=\"currentSecurityItem.type && currentSecurityItem.type !== 'GROOVY_SCRIPT'\">\n <i-form-item class=\"security-content-form-item\" :class=\"currentSecurityItem.type === 'OAuth2' ? 'oauth2-form-item' : ''\" label=\"存储位置\">\n <i-select class=\"diy-select\" v-model=\"currentSecurityItem.location\">\n <i-option v-for=\"(item,index) in tokenLocationTypeList\" :value=\"item.name\" :key=\"item.name\">{{ item.text }}</i-option>\n </i-select>\n </i-form-item>\n <i-form-item class=\"security-content-form-item\" :class=\"currentSecurityItem.type === 'OAuth2' ? 'oauth2-form-item' : ''\" label=\"存储键值\">\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.locationKey\"></i-input>\n </i-form-item>\n </template>\n <template v-if=\"currentSecurityItem.type === 'Api_Key'\">\n <i-form-item class=\"security-content-form-item\" label=\"key\">\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.key\"></i-input>\n </i-form-item>\n </template>\n <template v-if=\"currentSecurityItem.type === 'Base_Auth'\">\n <i-form-item class=\"security-content-form-item\" label=\"username\">\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.username\"></i-input>\n </i-form-item>\n <i-form-item class=\"security-content-form-item\" label=\"password\">\n <i-input class=\"diy-password-input diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.password\" type=\"password\" password></i-input>\n </i-form-item>\n </template>\n <template v-if=\"currentSecurityItem.type === 'OAuth2'\">\n <i-form-item class=\"security-content-form-item oauth2-form-item\">\n <u-tips-form-label slot=\"label\" :labelTitle=\"'Header Prefix'\" tips=\"token前缀 例如 Bearer\" label-colon></u-tips-form-label>\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.headerPrefix\"></i-input>\n </i-form-item>\n <i-form-item class=\"security-content-form-item oauth2-form-item grant-type-item\">\n <u-tips-form-label slot=\"label\" :labelTitle=\"'Grant Type'\" tips=\"认证类型\" label-colon></u-tips-form-label>\n <i-select v-model=\"currentSecurityItem.content.grantType\" class=\"diy-select\">\n <i-option v-for=\"item in grantTypeList\" :key=\"item.name\" :value=\"item.name\"> {{item.text}} </i-option>\n </i-select>\n </i-form-item>\n <i-form-item class=\"security-content-form-item oauth2-form-item\">\n <u-tips-form-label slot=\"label\" :labelTitle=\"'Access Token Url'\" tips=\"获取token的httpurl\" label-colon></u-tips-form-label>\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.tokenUrl\"></i-input>\n </i-form-item>\n <i-form-item class=\"security-content-form-item oauth2-form-item\">\n <u-tips-form-label slot=\"label\" :labelTitle=\"'TokenPath'\" tips=\"获取响应结果的token路径\" label-colon></u-tips-form-label>\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.tokenPath\"></i-input>\n </i-form-item>\n <i-form-item class=\"security-content-form-item oauth2-form-item\" label=\"Client ID\">\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.clientId\"></i-input>\n </i-form-item>\n <i-form-item class=\"security-content-form-item oauth2-form-item\" label=\"Client Secret\">\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.clientSecret\"></i-input>\n </i-form-item>\n <template v-if=\"currentSecurityItem.content.grantType === 'password'\">\n <i-form-item class=\"security-content-form-item oauth2-form-item\" label=\"username\">\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.username\"></i-input>\n </i-form-item>\n <i-form-item class=\"security-content-form-item oauth2-form-item\" label=\"password\">\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.password\" type=\"password\" password></i-input>\n </i-form-item>\n </template>\n <i-form-item class=\"security-content-form-item oauth2-form-item\">\n <u-tips-form-label slot=\"label\" :labelTitle=\"'Scope'\" tips=\"访问请求的范围,它可能有多个空格分隔的值\" label-colon></u-tips-form-label>\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.scope\"></i-input>\n </i-form-item>\n </template>\n <template v-if=\"currentSecurityItem.type === 'GROOVY_SCRIPT'\">\n <i-form-item class=\"security-content-form-item script-area-item\" label=\"授权脚本\">\n <div class=\"script-label\" slot=\"label\">\n <i-icon class=\"help-icon\" type=\"md-alert\" @click=\"showScriptDoc\" title=\"帮助文档\"> </i-icon>\n <span>授权脚本:</span>\n </div>\n <u-editor\n class=\"editor\"\n :model.sync=\"currentSecurityItem.scriptContent\"\n :diyKeywordList=\"diyKeywordList\"\n lang=\"groovy\"\n >\n </u-editor>\n </i-form-item>\n </template>\n </i-form>\n </div>\n </div>\n </main>\n\n <footer slot=\"footer\">\n <template>\n <i-button class=\"diy-btn-default\" @click=\"onCancel\">取消</i-button>\n <i-button type=\"primary\" class=\"diy-btn-primary\" @click=\"onSave\">保存</i-button>\n </template>\n </footer>\n <u-doc-modal class=\"script-doc-modal\" v-model=\"scriptDocShow\" :doc=\"scriptDoc\"></u-doc-modal>\n</i-modal>\n"
|
|
676
858
|
|
|
677
859
|
/***/ }),
|
|
678
860
|
|
|
@@ -696,7 +878,7 @@ module.exports = function (key) {
|
|
|
696
878
|
/***/ "3de4":
|
|
697
879
|
/***/ (function(module, exports) {
|
|
698
880
|
|
|
699
|
-
module.exports = "<article class=\"security-setting-v2\">\
|
|
881
|
+
module.exports = "<article class=\"security-setting-v2\">\n <div class=\"left\">\n <i-form class=\"type-form diy-form\" label-colon>\n <i-form-item label=\"选择授权\">\n <i-select ref=\"addSecuritySelect\" class=\"diy-select add-security-select\" v-model=\"currentSecurityItemId\" @on-change=\"onChangeSecurityItem($event)\" @on-clear=\"onClear\" clearable>\n <i-option v-for=\"item in securityList\" :key=\"item.id\" :value=\"item.id\">{{ item.name }}</i-option>\n <i-option class=\"add-security-item\" value=\"''\">\n <div class=\"add-security-item-content\" @click.stop=\"onAddSecurityItem\">\n <i class=\"api-icon icon-add\"></i>\n <span>新建授权</span>\n </div>\n </i-option>\n </i-select>\n </i-form-item>\n <i-form-item label=\"授权类型\">\n <span class=\"security-type\">{{ currentSecurityItem._type? currentSecurityItem._type.text : \"暂无\" }}</span>\n </i-form-item>\n </i-form>\n </div>\n <div class=\"right\">\n <div class=\"right-title\">授权详情</div>\n <div class=\"right-content\">\n <div class=\"no-data\" v-if=\"!currentSecurityItem.type\">\n <div class=\"no-data-bg\"></div>\n <div class=\"no-data-text\">请在左侧下拉框中选择已建立授权</div>\n </div>\n <div class=\"script\" v-if=\"currentSecurityItem.type === 'GROOVY_SCRIPT'\">\n <i-input class=\"diy-input script-area\" type=\"textarea\" v-model=\"currentSecurityItem.scriptContent\" :readonly=\"true\"></i-input>\n </div>\n <div class=\"api-key\" v-if=\"currentSecurityItem.type === 'Api_Key'\">\n <i-form class=\"oauth-2-form diy-form\" label-colon>\n <i-form-item label=\"存储位置\">\n <span class=\"form-item-text\">{{ currentSecurityItem._location ? currentSecurityItem._location.text : \"\"}}</span>\n </i-form-item>\n <i-form-item label=\"存储键值\">\n <span class=\"form-item-text\">{{ currentSecurityItem.locationKey }}</span>\n </i-form-item>\n <i-form-item label=\"key\">\n <span class=\"form-item-text\">{{ currentSecurityItem.content.key }}</span>\n </i-form-item>\n </i-form>\n </div>\n <div class=\"base-auth\" v-if=\"currentSecurityItem.type === 'Base_Auth'\">\n <i-form class=\"oauth-2-form diy-form\" label-colon>\n <i-form-item label=\"存储位置\">\n <span class=\"form-item-text\">{{ currentSecurityItem._location ? currentSecurityItem._location.text : \"\" }}</span>\n </i-form-item>\n <i-form-item label=\"存储键值\">\n <span class=\"form-item-text\">{{ currentSecurityItem.locationKey }}</span>\n </i-form-item>\n <i-form-item label=\"username\">\n <span class=\"form-item-text\">{{ currentSecurityItem.content.username }}</span>\n </i-form-item>\n <i-form-item label=\"password\">\n <!-- <span class=\"form-item-text\">{{ \"·\" }}</span>-->\n <!-- <i-input class=\"diy-input\" v-model=\"model.password\" type=\"password\" password placeholder=\"请输入\"> </i-input>-->\n <i-input class=\"diy-password-input diy-input\" :value=\"currentSecurityItem.content.password\" type=\"password\"></i-input>\n </i-form-item>\n </i-form>\n </div>\n <div class=\"oauth-2\" v-if=\"currentSecurityItem.type === 'OAuth2'\">\n <i-form class=\"oauth-2-form diy-form\" label-colon>\n <i-form-item label=\"存储位置\">\n <span class=\"form-item-text\">{{ currentSecurityItem._location ? currentSecurityItem._location.text : \"\" }}</span>\n </i-form-item>\n <i-form-item label=\"存储键值\">\n <span class=\"form-item-text\">{{ currentSecurityItem.locationKey }}</span>\n </i-form-item>\n <i-form-item>\n <u-tips-form-label slot=\"label\" :labelTitle=\"'Header Prefix'\" tips=\"token前缀 例如 Bearer\" label-colon></u-tips-form-label>\n <span class=\"form-item-text\">{{ currentSecurityItem.content.headerPrefix }}</span>\n </i-form-item>\n <i-form-item class=\"grant-type-item\">\n <u-tips-form-label slot=\"label\" :labelTitle=\"'Grant Type'\" tips=\"认证类型\" label-colon></u-tips-form-label>\n <span class=\"form-item-text\">{{ findGrantTypeText(currentSecurityItem.content.grantType) }}</span>\n </i-form-item>\n <i-form-item>\n <u-tips-form-label slot=\"label\" :labelTitle=\"'Access Token Url'\" tips=\"获取token的httpUrl\" label-colon></u-tips-form-label>\n <span class=\"form-item-text\">{{ currentSecurityItem.content.tokenUrl }}</span>\n </i-form-item>\n <i-form-item>\n <u-tips-form-label slot=\"label\" :labelTitle=\"'TokenPath'\" tips=\"获取响应结果的token路径\" label-colon></u-tips-form-label>\n <span class=\"form-item-text\">{{ currentSecurityItem.content.tokenPath }}</span>\n </i-form-item>\n <i-form-item label=\"Client ID\">\n <span class=\"form-item-text\">{{ currentSecurityItem.content.clientId }}</span>\n </i-form-item>\n <i-form-item label=\"Client Secret\">\n <span class=\"form-item-text\">{{ currentSecurityItem.content.clientSecret }}</span>\n </i-form-item>\n <template v-if=\"currentSecurityItem.content.grantType === 'password'\">\n <i-form-item class=\"security-content-form-item\" label=\"username\">\n <span class=\"form-item-text\">{{ currentSecurityItem.content.username }}</span>\n </i-form-item>\n <i-form-item class=\"security-content-form-item\" label=\"password\">\n <i-input class=\"diy-password-input diy-input\" :value=\"currentSecurityItem.content.password\" type=\"password\"></i-input>\n </i-form-item>\n </template>\n <i-form-item label=\"Scope\">\n <u-tips-form-label slot=\"label\" :labelTitle=\"'Scope'\" tips=\"访问请求的范围,它可能有多个空格分隔的值\" label-colon></u-tips-form-label>\n <span class=\"form-item-text\">{{ currentSecurityItem.content.scope }}</span>\n </i-form-item>\n </i-form>\n </div>\n </div>\n </div>\n <u-security-modal v-model=\"showSecurity\" :projectID=\"projectID\" :isAdd=\"isAdd\"></u-security-modal>\n</article>\n"
|
|
700
882
|
|
|
701
883
|
/***/ }),
|
|
702
884
|
|
|
@@ -743,7 +925,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__4387__;
|
|
|
743
925
|
/***/ "45bb":
|
|
744
926
|
/***/ (function(module, exports) {
|
|
745
927
|
|
|
746
|
-
module.exports = "<i-modal draggable sticky reset-drag-position :mask-closable=\"false\" v-model=\"show\" width=\"880\" class=\"u-data-model-doc-modal diy-modal\" transfer>\
|
|
928
|
+
module.exports = "<i-modal draggable sticky reset-drag-position :mask-closable=\"false\" v-model=\"show\" width=\"880\" class=\"u-data-model-doc-modal diy-modal\" transfer>\n <header slot=\"header\">查看接口文档</header>\n <main>\n <div class=\"v-mavon-container\">\n <!-- startprint -->\n <mavon-editor :subfield=\"false\" :toolbars=\"toolbars\" :value=\"doc\" defaultOpen=\"preview\" @change=\"onChange\">\n <template slot=\"left-toolbar-before\">\n <i-dropdown placement=\"right-start\" @on-click=\"onMenuClick\">\n <span class=\"op-icon fa fa-mavon-floppy-o\"></span>\n <i-dropdown-menu slot=\"list\">\n <i-dropdown-item name=\"pdf\">保存为pdf</i-dropdown-item>\n <i-dropdown-item name=\"html\">保存为html</i-dropdown-item>\n </i-dropdown-menu>\n </i-dropdown>\n </template>\n </mavon-editor>\n <!-- endprint -->\n <iframe id=\"printf\" src=\"\" width=\"0\" height=\"0\" frameborder=\"0\"></iframe>\n </div>\n </main>\n <footer slot=\"footer\">\n <i-button type=\"primary\" class=\"diy-btn-primary\" @click=\"onOk\">关闭</i-button>\n </footer>\n</i-modal>\n"
|
|
747
929
|
|
|
748
930
|
/***/ }),
|
|
749
931
|
|
|
@@ -757,14 +939,35 @@ module.exports = "<i-modal draggable sticky reset-drag-position :mask-closable=\
|
|
|
757
939
|
/***/ "46d3":
|
|
758
940
|
/***/ (function(module, exports) {
|
|
759
941
|
|
|
760
|
-
module.exports = "<article class=\"u-common-tree u-type-tree\">\
|
|
942
|
+
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\" :placeholder=\"placeholder\" @on-change=\"onFilter\" v-model=\"keyword\" >\n <i class=\"iconfont icon-chaxun\" slot=\"prefix\"></i>\n </i-input>\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 <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"
|
|
943
|
+
|
|
944
|
+
/***/ }),
|
|
945
|
+
|
|
946
|
+
/***/ "46df":
|
|
947
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
948
|
+
|
|
949
|
+
"use strict";
|
|
950
|
+
|
|
951
|
+
var arrayToReversed = __webpack_require__("9417");
|
|
952
|
+
var ArrayBufferViewCore = __webpack_require__("6a10");
|
|
953
|
+
|
|
954
|
+
var aTypedArray = ArrayBufferViewCore.aTypedArray;
|
|
955
|
+
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
|
|
956
|
+
var getTypedArrayConstructor = ArrayBufferViewCore.getTypedArrayConstructor;
|
|
957
|
+
|
|
958
|
+
// `%TypedArray%.prototype.toReversed` method
|
|
959
|
+
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.toreversed
|
|
960
|
+
exportTypedArrayMethod('toReversed', function toReversed() {
|
|
961
|
+
return arrayToReversed(aTypedArray(this), getTypedArrayConstructor(this));
|
|
962
|
+
});
|
|
963
|
+
|
|
761
964
|
|
|
762
965
|
/***/ }),
|
|
763
966
|
|
|
764
967
|
/***/ "470f":
|
|
765
968
|
/***/ (function(module, exports) {
|
|
766
969
|
|
|
767
|
-
module.exports = "<i-modal draggable sticky reset-drag-position v-model=\"value\" class=\"diy-modal global-variable-modal\" :mask-closable=\"false\" title=\"全局参数设置\">\
|
|
970
|
+
module.exports = "<i-modal draggable sticky reset-drag-position v-model=\"value\" class=\"diy-modal global-variable-modal\" :mask-closable=\"false\" title=\"全局参数设置\">\n <header class=\"types\">\n <div class=\"tag\" @click=\"onCheckTpye(item)\" :class=\"{'active': item.name === active.name}\" v-for=\"(item,index) in typeList\" :key=\"item.name\">\n <span>{{item.title }}</span>\n </div>\n </header>\n <main class=\"content\">\n <i-button type=\"primary\" ghost class=\"diy-btn-primary\"> <i class=\"api-icon icon-add\"></i>新增参数</i-button>\n <i-table :columns=\"columns\" :data=\"dataList\" class=\"diy-table\" height=\"400\">\n <template slot-scope=\"{ row,index }\" slot=\"name\">\n <i-input class=\"diy-input\" placeholder=\"输入参数名称\" v-model=\"dataList[index].name\"></i-input>\n </template>\n <template slot-scope=\"{ row,index }\" slot=\"value\">\n <i-input class=\"diy-input\" placeholder=\"输入参数值\" v-model=\"dataList[index].value\"></i-input>\n </template>\n <template slot-scope=\"{ row,index }\" slot=\"required\">\n <i-switch v-model=\"dataList[index].required\">\n <span slot=\"open\">是</span>\n <span slot=\"close\">否</span>\n </i-switch>\n </template>\n <template slot-scope=\"{ row,index }\" slot=\"remark\">\n <i-input class=\"diy-input\" placeholder=\"输入备注\" v-model=\"dataList[index].remark\"></i-input>\n </template>\n <template slot-scope=\"{ row,index }\" slot=\"action\">\n <span class=\"action-btn delete\" @click=\"onDelete(dataList,index)\">删除</span>\n <span class=\"action-btn\" @click=\"onUp(dataList,index)\">上移</span>\n <span class=\"action-btn\" @click=\"onDown(dataList,index)\">下移</span>\n <span v-if=\"index !== 0\" class=\"action-btn\" @click=\"onTop(dataList,index)\">置顶</span>\n <span v-if=\"index < dataList.length - 1\" class=\"action-btn\" @click=\"onBottom(dataList,index)\">置底</span>\n </template>\n </i-table>\n </main>\n <slot slot=\"footer\" name=\"footer\"> </slot>\n</i-modal>\n"
|
|
768
971
|
|
|
769
972
|
/***/ }),
|
|
770
973
|
|
|
@@ -807,7 +1010,7 @@ module.exports = !DESCRIPTORS && !fails(function () {
|
|
|
807
1010
|
/***/ "4935":
|
|
808
1011
|
/***/ (function(module, exports) {
|
|
809
1012
|
|
|
810
|
-
module.exports = "<i-modal draggable sticky reset-drag-position :mask-closable=\"false\" v-model=\"show\" width=\"1280\" class=\"u-data-model-modal diy-modal\" transfer>\
|
|
1013
|
+
module.exports = "<i-modal draggable sticky reset-drag-position :mask-closable=\"false\" v-model=\"show\" width=\"1280\" class=\"u-data-model-modal diy-modal\" transfer>\n <header slot=\"header\">添加数据模型</header>\n <main>\n <i-split v-model=\"splitHorizontal\">\n <section slot=\"left\" class=\"card-panel card-panel-no-right-border\">\n <div class=\"card-panel-header\">\n <span>选择列表</span>\n </div>\n <div class=\"card-panel-main\">\n <u-tree :commonTaskCategoryID=\"taskCategoryID\" :initSelectItem=\"initNode\" :prop-data=\"treeData\" :isTreeList=\"true\" @on-select=\"onSelect\" />\n </div>\n </section>\n <section slot=\"right\" class=\"right-content\">\n <i-split v-model=\"splitVertical\" mode=\"vertical\" max=\"600\">\n <section slot=\"top\" class=\"card-panel card-panel-no-bottom-border\">\n <div class=\"card-panel-header\">\n <span>选择模型</span>\n </div>\n <div class=\"card-panel-main\">\n <u-data-model-list\n :data=\"tableData\"\n :paging.sync=\"paging\"\n @on-search=\"onSearch\"\n @on-page-index-change=\"onPageIndexChange\"\n @on-page-size-change=\"onPageSizeChange\"\n @on-selection-change=\"onSelectionChange\"\n @on-delete-refresh=\"getTableData\"\n @on-row-click=\"onRowClick\"\n >\n </u-data-model-list>\n </div>\n </section>\n <section slot=\"bottom\" :class=\"['card-panel', collapse ? 'card-panel-no-bottom-border' : '']\">\n <div class=\"card-panel-header\">\n <span>已选({{checkedLength}})</span>\n <span>\n <i-poptip confirm title=\"确定要清空已选中的数据吗?\" transfer placement=\"top-end\" @on-ok=\"onBatchDelete\">\n <span class=\"action-text\">\n <i class=\"iconfont icon-delete\"></i>\n <span>清空</span>\n </span>\n </i-poptip>\n <span class=\"action-text collapse-text\" @click=\"onClickCollapse\">\n <span>{{collapse ? \"展开\" : \"收起\"}}</span>\n <i class=\"ivu-icon ivu-icon-ios-arrow-forward\" :class=\"{'icon-arrow-collapse':collapse}\"></i>\n </span>\n </span>\n </div>\n <div class=\"card-panel-main\">\n <template v-if=\"checkedData&&checkedData.length\">\n <i-table class=\"diy-table\" :columns=\"columns\" :data=\"checkedData\">\n <template #operates=\"{row,index}\">\n <div class=\"row-actions\">\n <i-poptip confirm transfer title=\"确认要删除这条数据吗?\" @on-ok=\"onDelete(row)\">\n <i title=\"删除\" class=\"iconfont icon-delete\"></i>\n </i-poptip>\n </div>\n </template>\n </i-table>\n </template>\n <template v-else>\n <div class=\"table-no-data\">\n <div class=\"table-no-data-bg\"></div>\n <div class=\"table-no-data-text\">暂无数据</div>\n </div>\n </template>\n </div>\n </section>\n </i-split>\n </section>\n </i-split>\n <i-spin fix v-if=\"isLoading\">\n <i class=\"spin-icon-load ivu-icon\"></i>\n </i-spin>\n </main>\n <footer slot=\"footer\">\n <i-button type=\"primary\" class=\"diy-btn-primary\" @click=\"onSave\">确定</i-button>\n <i-button class=\"diy-btn-default\" @click=\"onCancel\">取消</i-button>\n </footer>\n</i-modal>\n"
|
|
811
1014
|
|
|
812
1015
|
/***/ }),
|
|
813
1016
|
|
|
@@ -971,7 +1174,7 @@ module.exports = fails(function () {
|
|
|
971
1174
|
/***/ "6255":
|
|
972
1175
|
/***/ (function(module, exports) {
|
|
973
1176
|
|
|
974
|
-
module.exports = "<i-modal\
|
|
1177
|
+
module.exports = "<i-modal\n draggable\n sticky\n reset-drag-position\n v-model=\"value\"\n class=\"diy-modal\"\n :mask-closable=\"false\"\n :title=\"data.id ? '编辑项目': '新建项目'\"\n>\n <i-form :label-width=\"95\" class=\"diy-form\" label-colon>\n <i-form-item label=\"项目名称\" required>\n <i-input\n v-model.trim=\"data.name\"\n class=\"diy-input\"\n placeholder=\"请输入项目名称\"\n ></i-input>\n </i-form-item>\n <i-form-item label=\"项目描述\">\n <i-input\n class=\"diy-input\"\n type=\"textarea\"\n :rows=\"4\"\n v-model=\"data.description\"\n placeholder=\"请输入项目描述\"\n ></i-input>\n </i-form-item>\n </i-form>\n <slot slot=\"footer\" name=\"footer\"> </slot>\n</i-modal>\n"
|
|
975
1178
|
|
|
976
1179
|
/***/ }),
|
|
977
1180
|
|
|
@@ -1072,6 +1275,207 @@ if (params + '' !== 'a=2') {
|
|
|
1072
1275
|
}
|
|
1073
1276
|
|
|
1074
1277
|
|
|
1278
|
+
/***/ }),
|
|
1279
|
+
|
|
1280
|
+
/***/ "6a10":
|
|
1281
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1282
|
+
|
|
1283
|
+
"use strict";
|
|
1284
|
+
|
|
1285
|
+
var NATIVE_ARRAY_BUFFER = __webpack_require__("f764");
|
|
1286
|
+
var DESCRIPTORS = __webpack_require__("e900");
|
|
1287
|
+
var global = __webpack_require__("bc85");
|
|
1288
|
+
var isCallable = __webpack_require__("ec2f");
|
|
1289
|
+
var isObject = __webpack_require__("8785");
|
|
1290
|
+
var hasOwn = __webpack_require__("d803");
|
|
1291
|
+
var classof = __webpack_require__("aaa6");
|
|
1292
|
+
var tryToString = __webpack_require__("1d6e");
|
|
1293
|
+
var createNonEnumerableProperty = __webpack_require__("9822");
|
|
1294
|
+
var defineBuiltIn = __webpack_require__("92d6");
|
|
1295
|
+
var defineBuiltInAccessor = __webpack_require__("889b");
|
|
1296
|
+
var isPrototypeOf = __webpack_require__("4cad");
|
|
1297
|
+
var getPrototypeOf = __webpack_require__("a54a");
|
|
1298
|
+
var setPrototypeOf = __webpack_require__("a2df");
|
|
1299
|
+
var wellKnownSymbol = __webpack_require__("fff8");
|
|
1300
|
+
var uid = __webpack_require__("a047");
|
|
1301
|
+
var InternalStateModule = __webpack_require__("fcc0");
|
|
1302
|
+
|
|
1303
|
+
var enforceInternalState = InternalStateModule.enforce;
|
|
1304
|
+
var getInternalState = InternalStateModule.get;
|
|
1305
|
+
var Int8Array = global.Int8Array;
|
|
1306
|
+
var Int8ArrayPrototype = Int8Array && Int8Array.prototype;
|
|
1307
|
+
var Uint8ClampedArray = global.Uint8ClampedArray;
|
|
1308
|
+
var Uint8ClampedArrayPrototype = Uint8ClampedArray && Uint8ClampedArray.prototype;
|
|
1309
|
+
var TypedArray = Int8Array && getPrototypeOf(Int8Array);
|
|
1310
|
+
var TypedArrayPrototype = Int8ArrayPrototype && getPrototypeOf(Int8ArrayPrototype);
|
|
1311
|
+
var ObjectPrototype = Object.prototype;
|
|
1312
|
+
var TypeError = global.TypeError;
|
|
1313
|
+
|
|
1314
|
+
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
1315
|
+
var TYPED_ARRAY_TAG = uid('TYPED_ARRAY_TAG');
|
|
1316
|
+
var TYPED_ARRAY_CONSTRUCTOR = 'TypedArrayConstructor';
|
|
1317
|
+
// Fixing native typed arrays in Opera Presto crashes the browser, see #595
|
|
1318
|
+
var NATIVE_ARRAY_BUFFER_VIEWS = NATIVE_ARRAY_BUFFER && !!setPrototypeOf && classof(global.opera) !== 'Opera';
|
|
1319
|
+
var TYPED_ARRAY_TAG_REQUIRED = false;
|
|
1320
|
+
var NAME, Constructor, Prototype;
|
|
1321
|
+
|
|
1322
|
+
var TypedArrayConstructorsList = {
|
|
1323
|
+
Int8Array: 1,
|
|
1324
|
+
Uint8Array: 1,
|
|
1325
|
+
Uint8ClampedArray: 1,
|
|
1326
|
+
Int16Array: 2,
|
|
1327
|
+
Uint16Array: 2,
|
|
1328
|
+
Int32Array: 4,
|
|
1329
|
+
Uint32Array: 4,
|
|
1330
|
+
Float32Array: 4,
|
|
1331
|
+
Float64Array: 8
|
|
1332
|
+
};
|
|
1333
|
+
|
|
1334
|
+
var BigIntArrayConstructorsList = {
|
|
1335
|
+
BigInt64Array: 8,
|
|
1336
|
+
BigUint64Array: 8
|
|
1337
|
+
};
|
|
1338
|
+
|
|
1339
|
+
var isView = function isView(it) {
|
|
1340
|
+
if (!isObject(it)) return false;
|
|
1341
|
+
var klass = classof(it);
|
|
1342
|
+
return klass === 'DataView'
|
|
1343
|
+
|| hasOwn(TypedArrayConstructorsList, klass)
|
|
1344
|
+
|| hasOwn(BigIntArrayConstructorsList, klass);
|
|
1345
|
+
};
|
|
1346
|
+
|
|
1347
|
+
var getTypedArrayConstructor = function (it) {
|
|
1348
|
+
var proto = getPrototypeOf(it);
|
|
1349
|
+
if (!isObject(proto)) return;
|
|
1350
|
+
var state = getInternalState(proto);
|
|
1351
|
+
return (state && hasOwn(state, TYPED_ARRAY_CONSTRUCTOR)) ? state[TYPED_ARRAY_CONSTRUCTOR] : getTypedArrayConstructor(proto);
|
|
1352
|
+
};
|
|
1353
|
+
|
|
1354
|
+
var isTypedArray = function (it) {
|
|
1355
|
+
if (!isObject(it)) return false;
|
|
1356
|
+
var klass = classof(it);
|
|
1357
|
+
return hasOwn(TypedArrayConstructorsList, klass)
|
|
1358
|
+
|| hasOwn(BigIntArrayConstructorsList, klass);
|
|
1359
|
+
};
|
|
1360
|
+
|
|
1361
|
+
var aTypedArray = function (it) {
|
|
1362
|
+
if (isTypedArray(it)) return it;
|
|
1363
|
+
throw new TypeError('Target is not a typed array');
|
|
1364
|
+
};
|
|
1365
|
+
|
|
1366
|
+
var aTypedArrayConstructor = function (C) {
|
|
1367
|
+
if (isCallable(C) && (!setPrototypeOf || isPrototypeOf(TypedArray, C))) return C;
|
|
1368
|
+
throw new TypeError(tryToString(C) + ' is not a typed array constructor');
|
|
1369
|
+
};
|
|
1370
|
+
|
|
1371
|
+
var exportTypedArrayMethod = function (KEY, property, forced, options) {
|
|
1372
|
+
if (!DESCRIPTORS) return;
|
|
1373
|
+
if (forced) for (var ARRAY in TypedArrayConstructorsList) {
|
|
1374
|
+
var TypedArrayConstructor = global[ARRAY];
|
|
1375
|
+
if (TypedArrayConstructor && hasOwn(TypedArrayConstructor.prototype, KEY)) try {
|
|
1376
|
+
delete TypedArrayConstructor.prototype[KEY];
|
|
1377
|
+
} catch (error) {
|
|
1378
|
+
// old WebKit bug - some methods are non-configurable
|
|
1379
|
+
try {
|
|
1380
|
+
TypedArrayConstructor.prototype[KEY] = property;
|
|
1381
|
+
} catch (error2) { /* empty */ }
|
|
1382
|
+
}
|
|
1383
|
+
}
|
|
1384
|
+
if (!TypedArrayPrototype[KEY] || forced) {
|
|
1385
|
+
defineBuiltIn(TypedArrayPrototype, KEY, forced ? property
|
|
1386
|
+
: NATIVE_ARRAY_BUFFER_VIEWS && Int8ArrayPrototype[KEY] || property, options);
|
|
1387
|
+
}
|
|
1388
|
+
};
|
|
1389
|
+
|
|
1390
|
+
var exportTypedArrayStaticMethod = function (KEY, property, forced) {
|
|
1391
|
+
var ARRAY, TypedArrayConstructor;
|
|
1392
|
+
if (!DESCRIPTORS) return;
|
|
1393
|
+
if (setPrototypeOf) {
|
|
1394
|
+
if (forced) for (ARRAY in TypedArrayConstructorsList) {
|
|
1395
|
+
TypedArrayConstructor = global[ARRAY];
|
|
1396
|
+
if (TypedArrayConstructor && hasOwn(TypedArrayConstructor, KEY)) try {
|
|
1397
|
+
delete TypedArrayConstructor[KEY];
|
|
1398
|
+
} catch (error) { /* empty */ }
|
|
1399
|
+
}
|
|
1400
|
+
if (!TypedArray[KEY] || forced) {
|
|
1401
|
+
// V8 ~ Chrome 49-50 `%TypedArray%` methods are non-writable non-configurable
|
|
1402
|
+
try {
|
|
1403
|
+
return defineBuiltIn(TypedArray, KEY, forced ? property : NATIVE_ARRAY_BUFFER_VIEWS && TypedArray[KEY] || property);
|
|
1404
|
+
} catch (error) { /* empty */ }
|
|
1405
|
+
} else return;
|
|
1406
|
+
}
|
|
1407
|
+
for (ARRAY in TypedArrayConstructorsList) {
|
|
1408
|
+
TypedArrayConstructor = global[ARRAY];
|
|
1409
|
+
if (TypedArrayConstructor && (!TypedArrayConstructor[KEY] || forced)) {
|
|
1410
|
+
defineBuiltIn(TypedArrayConstructor, KEY, property);
|
|
1411
|
+
}
|
|
1412
|
+
}
|
|
1413
|
+
};
|
|
1414
|
+
|
|
1415
|
+
for (NAME in TypedArrayConstructorsList) {
|
|
1416
|
+
Constructor = global[NAME];
|
|
1417
|
+
Prototype = Constructor && Constructor.prototype;
|
|
1418
|
+
if (Prototype) enforceInternalState(Prototype)[TYPED_ARRAY_CONSTRUCTOR] = Constructor;
|
|
1419
|
+
else NATIVE_ARRAY_BUFFER_VIEWS = false;
|
|
1420
|
+
}
|
|
1421
|
+
|
|
1422
|
+
for (NAME in BigIntArrayConstructorsList) {
|
|
1423
|
+
Constructor = global[NAME];
|
|
1424
|
+
Prototype = Constructor && Constructor.prototype;
|
|
1425
|
+
if (Prototype) enforceInternalState(Prototype)[TYPED_ARRAY_CONSTRUCTOR] = Constructor;
|
|
1426
|
+
}
|
|
1427
|
+
|
|
1428
|
+
// WebKit bug - typed arrays constructors prototype is Object.prototype
|
|
1429
|
+
if (!NATIVE_ARRAY_BUFFER_VIEWS || !isCallable(TypedArray) || TypedArray === Function.prototype) {
|
|
1430
|
+
// eslint-disable-next-line no-shadow -- safe
|
|
1431
|
+
TypedArray = function TypedArray() {
|
|
1432
|
+
throw new TypeError('Incorrect invocation');
|
|
1433
|
+
};
|
|
1434
|
+
if (NATIVE_ARRAY_BUFFER_VIEWS) for (NAME in TypedArrayConstructorsList) {
|
|
1435
|
+
if (global[NAME]) setPrototypeOf(global[NAME], TypedArray);
|
|
1436
|
+
}
|
|
1437
|
+
}
|
|
1438
|
+
|
|
1439
|
+
if (!NATIVE_ARRAY_BUFFER_VIEWS || !TypedArrayPrototype || TypedArrayPrototype === ObjectPrototype) {
|
|
1440
|
+
TypedArrayPrototype = TypedArray.prototype;
|
|
1441
|
+
if (NATIVE_ARRAY_BUFFER_VIEWS) for (NAME in TypedArrayConstructorsList) {
|
|
1442
|
+
if (global[NAME]) setPrototypeOf(global[NAME].prototype, TypedArrayPrototype);
|
|
1443
|
+
}
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1446
|
+
// WebKit bug - one more object in Uint8ClampedArray prototype chain
|
|
1447
|
+
if (NATIVE_ARRAY_BUFFER_VIEWS && getPrototypeOf(Uint8ClampedArrayPrototype) !== TypedArrayPrototype) {
|
|
1448
|
+
setPrototypeOf(Uint8ClampedArrayPrototype, TypedArrayPrototype);
|
|
1449
|
+
}
|
|
1450
|
+
|
|
1451
|
+
if (DESCRIPTORS && !hasOwn(TypedArrayPrototype, TO_STRING_TAG)) {
|
|
1452
|
+
TYPED_ARRAY_TAG_REQUIRED = true;
|
|
1453
|
+
defineBuiltInAccessor(TypedArrayPrototype, TO_STRING_TAG, {
|
|
1454
|
+
configurable: true,
|
|
1455
|
+
get: function () {
|
|
1456
|
+
return isObject(this) ? this[TYPED_ARRAY_TAG] : undefined;
|
|
1457
|
+
}
|
|
1458
|
+
});
|
|
1459
|
+
for (NAME in TypedArrayConstructorsList) if (global[NAME]) {
|
|
1460
|
+
createNonEnumerableProperty(global[NAME], TYPED_ARRAY_TAG, NAME);
|
|
1461
|
+
}
|
|
1462
|
+
}
|
|
1463
|
+
|
|
1464
|
+
module.exports = {
|
|
1465
|
+
NATIVE_ARRAY_BUFFER_VIEWS: NATIVE_ARRAY_BUFFER_VIEWS,
|
|
1466
|
+
TYPED_ARRAY_TAG: TYPED_ARRAY_TAG_REQUIRED && TYPED_ARRAY_TAG,
|
|
1467
|
+
aTypedArray: aTypedArray,
|
|
1468
|
+
aTypedArrayConstructor: aTypedArrayConstructor,
|
|
1469
|
+
exportTypedArrayMethod: exportTypedArrayMethod,
|
|
1470
|
+
exportTypedArrayStaticMethod: exportTypedArrayStaticMethod,
|
|
1471
|
+
getTypedArrayConstructor: getTypedArrayConstructor,
|
|
1472
|
+
isView: isView,
|
|
1473
|
+
isTypedArray: isTypedArray,
|
|
1474
|
+
TypedArray: TypedArray,
|
|
1475
|
+
TypedArrayPrototype: TypedArrayPrototype
|
|
1476
|
+
};
|
|
1477
|
+
|
|
1478
|
+
|
|
1075
1479
|
/***/ }),
|
|
1076
1480
|
|
|
1077
1481
|
/***/ "6a6c":
|
|
@@ -1089,12 +1493,64 @@ test[TO_STRING_TAG] = 'z';
|
|
|
1089
1493
|
module.exports = String(test) === '[object z]';
|
|
1090
1494
|
|
|
1091
1495
|
|
|
1496
|
+
/***/ }),
|
|
1497
|
+
|
|
1498
|
+
/***/ "6bf0":
|
|
1499
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1500
|
+
|
|
1501
|
+
"use strict";
|
|
1502
|
+
|
|
1503
|
+
var global = __webpack_require__("bc85");
|
|
1504
|
+
var call = __webpack_require__("a95a");
|
|
1505
|
+
var ArrayBufferViewCore = __webpack_require__("6a10");
|
|
1506
|
+
var lengthOfArrayLike = __webpack_require__("d631");
|
|
1507
|
+
var toOffset = __webpack_require__("16bf");
|
|
1508
|
+
var toIndexedObject = __webpack_require__("e614");
|
|
1509
|
+
var fails = __webpack_require__("10a7");
|
|
1510
|
+
|
|
1511
|
+
var RangeError = global.RangeError;
|
|
1512
|
+
var Int8Array = global.Int8Array;
|
|
1513
|
+
var Int8ArrayPrototype = Int8Array && Int8Array.prototype;
|
|
1514
|
+
var $set = Int8ArrayPrototype && Int8ArrayPrototype.set;
|
|
1515
|
+
var aTypedArray = ArrayBufferViewCore.aTypedArray;
|
|
1516
|
+
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
|
|
1517
|
+
|
|
1518
|
+
var WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS = !fails(function () {
|
|
1519
|
+
// eslint-disable-next-line es/no-typed-arrays -- required for testing
|
|
1520
|
+
var array = new Uint8ClampedArray(2);
|
|
1521
|
+
call($set, array, { length: 1, 0: 3 }, 1);
|
|
1522
|
+
return array[1] !== 3;
|
|
1523
|
+
});
|
|
1524
|
+
|
|
1525
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=11294 and other
|
|
1526
|
+
var TO_OBJECT_BUG = WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS && ArrayBufferViewCore.NATIVE_ARRAY_BUFFER_VIEWS && fails(function () {
|
|
1527
|
+
var array = new Int8Array(2);
|
|
1528
|
+
array.set(1);
|
|
1529
|
+
array.set('2', 1);
|
|
1530
|
+
return array[0] !== 0 || array[1] !== 2;
|
|
1531
|
+
});
|
|
1532
|
+
|
|
1533
|
+
// `%TypedArray%.prototype.set` method
|
|
1534
|
+
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.set
|
|
1535
|
+
exportTypedArrayMethod('set', function set(arrayLike /* , offset */) {
|
|
1536
|
+
aTypedArray(this);
|
|
1537
|
+
var offset = toOffset(arguments.length > 1 ? arguments[1] : undefined, 1);
|
|
1538
|
+
var src = toIndexedObject(arrayLike);
|
|
1539
|
+
if (WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS) return call($set, this, src, offset);
|
|
1540
|
+
var length = this.length;
|
|
1541
|
+
var len = lengthOfArrayLike(src);
|
|
1542
|
+
var index = 0;
|
|
1543
|
+
if (len + offset > length) throw new RangeError('Wrong length');
|
|
1544
|
+
while (index < len) this[offset + index] = src[index++];
|
|
1545
|
+
}, !WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS || TO_OBJECT_BUG);
|
|
1546
|
+
|
|
1547
|
+
|
|
1092
1548
|
/***/ }),
|
|
1093
1549
|
|
|
1094
1550
|
/***/ "6d46":
|
|
1095
1551
|
/***/ (function(module, exports) {
|
|
1096
1552
|
|
|
1097
|
-
module.exports = "<article class=\"u-common-tree\" :class=\"className.join(' ')\">\
|
|
1553
|
+
module.exports = "<article class=\"u-common-tree\" :class=\"className.join(' ')\">\n <slot name=\"header\"></slot>\n <section class=\"content\">\n <i-input\n class=\"search-input\"\n suffix=\"ios-search\"\n :placeholder=\"placeholder\"\n @on-change=\"onFilter\"\n v-model=\"keyword\"\n >\n <i class=\"iconfont icon-chaxun\" slot=\"prefix\"></i>\n </i-input>\n <i-tree\n :data=\"renderData\"\n :render=\"renderContent\"\n @on-toggle-expand=\"onToggleExpand\"\n ></i-tree>\n </section>\n</article>\n"
|
|
1098
1554
|
|
|
1099
1555
|
/***/ }),
|
|
1100
1556
|
|
|
@@ -1208,7 +1664,7 @@ module.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
|
|
|
1208
1664
|
/***/ "7640":
|
|
1209
1665
|
/***/ (function(module, exports) {
|
|
1210
1666
|
|
|
1211
|
-
module.exports = "<article class=\"params-setting\">\
|
|
1667
|
+
module.exports = "<article class=\"params-setting\">\n <i-collapse v-model=\"value\" simple>\n <i-panel name=\"1\">\n <span>Query参数</span>\n <span class=\"status\">{{getExpand('1') ? \"收起\" : \"展开\"}}</span>\n <div slot=\"content\" class=\"setting-content\">\n <header>\n <i-button type=\"primary\" ghost class=\"diy-btn-primary\" @click=\"onAddRequestParam\"> <i class=\"api-icon icon-add\"></i>新增参数 </i-button>\n </header>\n <main>\n <i-table height=\"200\" width=\"1280\" class=\"diy-table\" @on-selection-change=\"onQuerySelectionChange\" :columns=\"paramColumns\" :data=\"queryDataList\">\n <template slot-scope=\"{ row,index }\" slot=\"selection\">\n <i-switch size=\"large\" :value=\"!queryDataList[index].disabled\" @on-change=\"onChangeDisabled($event,queryDataList[index],'query')\">\n <span slot=\"open\">开启</span>\n <span slot=\"close\">禁用</span>\n </i-switch>\n </template>\n <template slot-scope=\"{ row,index }\" slot=\"name\">\n <i-input class=\"diy-input\" placeholder=\"输入参数名称\" v-model=\"queryDataList[index].name\"></i-input>\n </template>\n <template slot-scope=\"{ row,index }\" slot=\"valueContent\">\n <i-input class=\"diy-input\" placeholder=\"输入参数值\" v-model=\"queryDataList[index].valueContent\"></i-input>\n </template>\n <template slot-scope=\"{ row,index }\" slot=\"required\">\n <i-switch v-model=\"queryDataList[index].requireFlag\" :disabled=\"queryDataList[index].disabled\" :true-value=\"1\" :false-value=\"0\">\n <span slot=\"open\">是</span>\n <span slot=\"close\">否</span>\n </i-switch>\n </template>\n <template slot-scope=\"{ row,index }\" slot=\"text\">\n <i-input class=\"diy-input\" placeholder=\"输入备注\" v-model=\"queryDataList[index].text\"></i-input>\n </template>\n <template slot-scope=\"{ row,index }\" slot=\"action\">\n <i-poptip class=\"action-btn delete\" title=\"确认删除这条数据吗?\" confirm @on-ok=\"onDelete(queryDataList,row.indexFlag,'query')\" transfer>\n <i class=\"iconfont icon-delete\" title=\"删除\"></i>\n </i-poptip>\n <span>\n <i v-if=\"index>0\" class=\"iconfont icon-up\" @click=\"onUp(queryDataList,index)\" title=\"上移\"></i>\n <i v-if=\"index>0\" class=\"iconfont icon-top\" title=\"置顶\" @click=\"onTop(queryDataList,index)\"></i>\n <i v-if=\"index < queryDataList.length - 1\" @click=\"onDown(queryDataList,index)\" class=\"iconfont icon-down\" title=\"下移\"></i>\n <i v-if=\"index < queryDataList.length - 1\" @click=\"onBottom(queryDataList,index)\" class=\"iconfont icon-bottom\" title=\"置底\"></i>\n </span>\n </template>\n </i-table>\n </main>\n </div>\n </i-panel>\n <i-panel name=\"2\">\n <span>Body参数</span>\n <span class=\"status\">{{getExpand('2') ? \"收起\" : \"展开\"}}</span>\n <div slot=\"content\" class=\"setting-content\">\n <header>\n <i-button v-if=\"isFormData\" type=\"primary\" ghost class=\"diy-btn-primary\" @click=\"onAddBodyParam\"> <i class=\"api-icon icon-add\"></i>新增参数 </i-button>\n <i-button v-else type=\"primary\" ghost class=\"diy-btn-primary\" @click=\"onBeautify\"> <i class=\"api-icon icon-view\"></i>格式化 </i-button>\n <i-select transfer v-model=\"interfaceModel.info.requestBodyType\" class=\"diy-select\">\n <i-option v-for=\"item in requestBodyTypeList\" :value=\"item.name\" :key=\"item.name\">{{item.text}}</i-option>\n </i-select>\n </header>\n <main>\n <i-table\n height=\"200\"\n width=\"1280\"\n class=\"diy-table\"\n @on-selection-change=\"onBodySelectionChange\"\n :columns=\"bodyColumns\"\n :data=\"bodyDataList\"\n v-if=\"isFormData\"\n >\n <template slot-scope=\"{ row,index }\" slot=\"selection\">\n <i-switch size=\"large\" :value=\"!bodyDataList[index].disabled\" @on-change=\"onChangeDisabled($event,bodyDataList[index],'body')\">\n <span slot=\"open\">开启</span>\n <span slot=\"close\">禁用</span>\n </i-switch>\n </template>\n <template slot-scope=\"{ row,index }\" slot=\"name\">\n <div class=\"body-name-row\">\n <i-input class=\"diy-input\" placeholder=\"输入参数名称\" v-model=\"bodyDataList[index].name\"></i-input>\n <i-select class=\"diy-select\" v-if=\"bodyType === 'Form'\" v-model=\"row.valueType\" @on-change=\"onChangeFormParamType(index, row)\" transfer>\n <i-option v-for=\"item in formParamTypeList\" :value=\"item.name\" :key=\"item.name\">{{item.text}}</i-option>\n </i-select>\n </div>\n </template>\n <template slot-scope=\"{ row,index }\" slot=\"valueContent\">\n <i-input v-if=\"row.valueType !== 'FILE'\" class=\"diy-input\" placeholder=\"输入参数值\" v-model=\"bodyDataList[index].valueContent\"></i-input>\n <i-upload v-if=\"row.valueType === 'FILE' && !row.fileName\" action=\"\" :before-upload=\"onImport\" :show-upload-list=\"false\">\n <i-button class=\"file-btn\" icon=\"ios-cloud-upload-outline\" @click=\"onClickRow(row)\">选择文件</i-button>\n </i-upload>\n <div class=\"file-wrap\" v-if=\"row.valueType === 'FILE' && row.fileName\">\n <div class=\"file-name\" :title=\"row.fileName\">{{ row.fileName }}</div>\n <i-icon type=\"ios-close\" @click=\"onClearFile(row)\" />\n </div>\n </template>\n <template slot-scope=\"{ row,index }\" slot=\"required\">\n <i-switch v-model=\"bodyDataList[index].requireFlag\" :disabled=\"bodyDataList[index].disabled\" :true-value=\"1\" :false-value=\"0\">\n <span slot=\"open\">是</span>\n <span slot=\"close\">否</span>\n </i-switch>\n </template>\n <template slot-scope=\"{ row,index }\" slot=\"text\">\n <i-input class=\"diy-input\" placeholder=\"输入备注\" v-model=\"bodyDataList[index].remark\"></i-input>\n </template>\n <template slot-scope=\"{ row,index }\" slot=\"action\">\n <i-poptip class=\"action-btn delete\" title=\"确认删除这条数据吗?\" confirm @on-ok=\"onDeleteBodyParam(interfaceModel.formParams,row.indexFlag,'body')\" transfer>\n <i class=\"iconfont icon-delete\" title=\"删除\"></i>\n </i-poptip>\n <span>\n <i v-if=\"index > 0\" class=\"iconfont icon-up\" @click=\"onUpBodyParam(interfaceModel.formParams,row.id)\" title=\"上移\"></i>\n <i v-if=\"index > 0\" class=\"iconfont icon-top\" @click=\"onTopBodyParam(interfaceModel.formParams,row.id)\" title=\"置顶\"></i>\n <i v-if=\"index < bodyDataList.length - 1\" @click=\"onDownBodyParam(interfaceModel.formParams,row.id)\" class=\"iconfont icon-down\" title=\"下移\"></i>\n <i\n v-if=\"index < bodyDataList.length - 1\"\n @click=\"onBottomBodyParam(interfaceModel.formParams,row.id)\"\n class=\"iconfont icon-bottom\"\n title=\"置底\"\n ></i>\n </span>\n </template>\n </i-table>\n <u-editor v-else :value.sync=\"interfaceModel.json\" lang=\"json\" @inited=\"onEditorInited\"></u-editor>\n </main>\n </div>\n </i-panel>\n </i-collapse>\n</article>\n"
|
|
1212
1668
|
|
|
1213
1669
|
/***/ }),
|
|
1214
1670
|
|
|
@@ -2400,7 +2856,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__8214__;
|
|
|
2400
2856
|
/***/ "82af":
|
|
2401
2857
|
/***/ (function(module, exports) {
|
|
2402
2858
|
|
|
2403
|
-
module.exports = "<div class=\"v-data-modal-list-container\">\
|
|
2859
|
+
module.exports = "<div class=\"v-data-modal-list-container\">\n <header>\n <div class=\"condition\">\n <div class=\"input-item\">\n <span>名称:</span>\n <i-input class=\"diy-input\" placeholder=\"请输入名称\" v-model=\"condition.name\" @on-enter=\"onSearch\"></i-input>\n </div>\n <div class=\"input-item\">\n <span>编码:</span>\n <i-input class=\"diy-input\" placeholder=\"请输入编码\" v-model=\"condition.code\" @on-enter=\"onSearch\"></i-input>\n </div>\n <div class=\"search-btn\">\n <i-button class=\"diy-btn-primary\" type=\"primary\" @click=\"onSearch\">查询</i-button>\n <i-button class=\"diy-btn-default\" @click=\"onEmpty\">重置</i-button>\n </div>\n </div>\n </header>\n <main>\n <template v-if=\"data&&data.length\">\n <i-table class=\"diy-table\" :columns=\"columns\" :data=\"data\" @on-selection-change=\"onSelected\" @on-row-click=\"onRowClick\">\n <template slot=\"enableCache\" slot-scope=\"{row}\">\n <span>{{row.enableCache === true ? \"是\" : \"否\"}}</span>\n </template>\n <template slot=\"doc\" slot-scope=\"{row}\">\n <a @click=\"onOpenDoc(row)\">查看</a>\n </template>\n </i-table>\n </template>\n <template v-else>\n <div class=\"table-no-data\">\n <div class=\"table-no-data-bg\"></div>\n <div class=\"table-no-data-text\">暂无数据</div>\n </div>\n </template>\n </main>\n <div class=\"pagination\" v-if=\"data&&data.length\">\n <i-page class=\"diy-page\" :total=\"page.totalCount\" @on-change=\"onPageIndexChange\" @on-page-size-change=\"onPageSizeChange\" placement=\"top\" show-elevator show-total show-sizer> </i-page>\n </div>\n <u-data-model-doc v-model=\"docShow\" :doc=\"doc\"></u-data-model-doc>\n</div>\n"
|
|
2404
2860
|
|
|
2405
2861
|
/***/ }),
|
|
2406
2862
|
|
|
@@ -2549,7 +3005,7 @@ module.exports = function (target, name, descriptor) {
|
|
|
2549
3005
|
/***/ "88af":
|
|
2550
3006
|
/***/ (function(module, exports) {
|
|
2551
3007
|
|
|
2552
|
-
module.exports = "<i-modal draggable sticky reset-drag-position :mask-closable=\"false\" v-model=\"value\" width=\"800\" class=\"u-variable-modal diy-modal\" transfer>\
|
|
3008
|
+
module.exports = "<i-modal draggable sticky reset-drag-position :mask-closable=\"false\" v-model=\"value\" width=\"800\" class=\"u-variable-modal diy-modal\" transfer>\n <header slot=\"header\">批量修改环境变量与授权</header>\n <main class=\"variable-content\">\n <div class=\"left\">\n <div class=\"left-title\">\n <div class=\"left-title-text\">选择API</div>\n </div>\n <div class=\"left-content\">\n <i-input class=\"diy-input search-input\" v-model=\"keyword\" placeholder=\"输入关键字查询\" @on-change=\"onFilter\">\n <template #prefix>\n <i-icon type=\"ios-search\"/>\n </template>\n </i-input>\n <div class=\"security-list\">\n <i-checkbox class=\"security-list-item-checkbox\" v-model=\"allSelect\" @on-change=\"onAllSelect\">全选</i-checkbox>\n <div class=\"security-list-item\"\n v-for=\"(item,index) in apiList\"\n :key=\"item.id || index\"\n >\n <div class=\"security-list-item-name\">\n <i-checkbox v-model=\"item.selected\" @on-change=\"onSelect($event,item)\"></i-checkbox>\n <i class=\"iconfont icon-API\"></i>\n <div class=\"security-list-item-text\" :title=\"item.name\">{{ item.name }}</div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"right\">\n <div class=\"right-title\">环境与授权</div>\n <div class=\"right-content\">\n <i-form ref=\"batch-api-form\" class=\"variable-content-form\" label-colon label-position=\"left\" v-if=\"isEmpty\" :rules=\"rules\" :label-width=\"100\" :model=\"formData\">\n <i-form-item class=\"content-form-item un-required-item\" label=\"选择属性\">\n <i-select class=\"diy-select\" placeholder=\"请输入\" clearable v-model=\"type\">\n <i-option value=\"env\">环境变量</i-option>\n <i-option value=\"auth\">授权设置</i-option>\n <i-option value=\"both\">环境变量和授权设置</i-option>\n </i-select>\n </i-form-item>\n <i-form-item class=\"content-form-item\" v-if=\"type !== 'auth'\" label=\"环境变量\" prop=\"envId\">\n <i-select class=\"diy-select diy-batch-select diy-batch-variable-select\" placeholder=\"请选择\" clearable v-model=\"formData.envId\">\n <i-option value=\"empty\">清空所有已设置环境变量</i-option>\n <i-option v-for=\"item in variableList\" :key=\"item.name\" :value=\"item.id\" :title=\"item.name + ':' + item.value\">{{item.name + \":\" + item.value}}</i-option>\n </i-select>\n </i-form-item>\n <i-form-item class=\"content-form-item\" label=\"授权设置\" v-if=\"type !== 'env'\" prop=\"authId\">\n <i-select class=\"diy-select diy-batch-select\" placeholder=\"请选择\" clearable v-model=\"formData.authId\">\n <i-option value=\"empty\">清空所有已设置授权</i-option>\n <i-option v-for=\"item in securityList\" :key=\"item.name\" :value=\"item.id\">{{item.name}} </i-option>\n </i-select>\n </i-form-item>\n </i-form>\n </div>\n </div>\n </main>\n\n <footer slot=\"footer\">\n <template>\n <i-button class=\"diy-btn-default\" @click=\"onCancel\">取消</i-button>\n <i-button type=\"primary\" class=\"diy-btn-primary\" @click=\"onSave\">保存</i-button>\n </template>\n </footer>\n</i-modal>\n"
|
|
2553
3009
|
|
|
2554
3010
|
/***/ }),
|
|
2555
3011
|
|
|
@@ -2591,7 +3047,7 @@ module.exports = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {
|
|
|
2591
3047
|
/***/ "8962":
|
|
2592
3048
|
/***/ (function(module, exports) {
|
|
2593
3049
|
|
|
2594
|
-
module.exports = "<i-modal draggable sticky reset-drag-position :mask-closable=\"false\" v-model=\"value\" width=\"800\" class=\"u-variable-modal diy-modal\" transfer>\
|
|
3050
|
+
module.exports = "<i-modal draggable sticky reset-drag-position :mask-closable=\"false\" v-model=\"value\" width=\"800\" class=\"u-variable-modal diy-modal\" transfer>\n <header slot=\"header\">环境变量</header>\n <main class=\"variable-content\">\n <div class=\"left\">\n <div class=\"left-title\">\n <div class=\"left-title-text\">环境列表</div>\n <i class=\"api-icon icon-add\" @click=\"onAddItem\"></i>\n </div>\n <div class=\"left-content\">\n <i-input class=\"diy-input search-input\" v-model=\"keyword\" placeholder=\"输入关键字查询\" @on-change=\"onFilter\">\n <template #prefix>\n <i-icon type=\"ios-search\"/>\n </template>\n </i-input>\n <div class=\"security-list\">\n <div class=\"security-list-item\"\n :class=\"currentItem.id === item.id ? 'security-list-item-active' : ''\"\n v-for=\"(item,index) in varList\"\n :key=\"item.id || index\"\n @click=\"onSelectItem(item)\"\n >\n <div class=\"security-list-item-name\">\n <i class=\"iconfont icon-huanjing\"></i>\n <div class=\"security-list-item-text\" :class=\"currentItem.id === item.id ? 'security-list-item-text-active' : ''\">{{ item.name || \"新环境\" }}</div>\n </div>\n <i-poptip confirm title=\"确认删除这条数据吗?\" transfer placement=\"top-end\" @on-ok=\"onDelete(item)\">\n <i class=\"iconfont icon-delete\"></i>\n </i-poptip>\n </div>\n </div>\n </div>\n </div>\n <div class=\"right\">\n <div class=\"right-title\">环境内容</div>\n <div class=\"right-content\">\n <i-form class=\"variable-content-form\" ref=\"variable-content-form\" label-colon label-position=\"left\" v-if=\"isEmpty\" :rules=\"rules\" :label-width=\"100\" :model=\"formData\">\n <i-form-item class=\"content-form-item\" label=\"环境名称\" prop=\"name\">\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"formData.name\"></i-input>\n </i-form-item>\n <i-form-item class=\"content-form-item\" label=\"域名\" prop=\"address\">\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"formData.address\">\n <i-select class=\"diy-select\" v-model=\"formData.type\" slot=\"prepend\" style=\"width: 100px\">\n <i-option value=\"http\">http://</i-option>\n <i-option value=\"https\">https://</i-option>\n </i-select>\n </i-input>\n </i-form-item>\n <i-form-item label=\"描述\" class=\"content-form-item item-remark\" prop=\"remark\">\n <i-input class=\"diy-input remark-textarea\" placeholder=\"请输入\" type=\"textarea\" v-model=\"formData.remark\"></i-input>\n </i-form-item>\n </i-form>\n </div>\n </div>\n </main>\n\n <footer slot=\"footer\">\n <template>\n <i-button class=\"diy-btn-default\" @click=\"onCancel\">取消</i-button>\n <i-button type=\"primary\" class=\"diy-btn-primary\" @click=\"onSave\">保存</i-button>\n </template>\n </footer>\n</i-modal>\n"
|
|
2595
3051
|
|
|
2596
3052
|
/***/ }),
|
|
2597
3053
|
|
|
@@ -2645,7 +3101,7 @@ module.exports = function (argument) {
|
|
|
2645
3101
|
/***/ "8ab8":
|
|
2646
3102
|
/***/ (function(module, exports) {
|
|
2647
3103
|
|
|
2648
|
-
module.exports = "<article class=\"pre-execution-setting\">\
|
|
3104
|
+
module.exports = "<article class=\"pre-execution-setting\">\n <section class=\"script\">\n <div class=\"script-title\">\n <div class=\"empty\"></div>\n <div class=\"script-btns\">\n <span @click=\"onViewMax\"><i class=\"iconfont icon-zuidahua1\"></i>{{viewMax ? \"还原显示\" : \"最大化\"}}</span>\n <span @click=\"onSave\"><i class=\"iconfont icon-baocun1\"></i>保存</span>\n <span @click=\"onRun\"><i class=\"iconfont icon-run1\"></i>RUN</span>\n <span @click=\"onSearch\"><i class=\"iconfont icon-search\"></i>搜索</span>\n </div>\n </div>\n <u-editor\n v-if=\"refreshEditor\"\n class=\"editor\"\n :model.sync=\"script\"\n :diyKeywordList=\"diyKeywordList\"\n lang=\"groovy\"\n @inited=\"onEditorInited\"\n >\n </u-editor>\n </section>\n <section class=\"quick-input\">\n <div class=\"info\">\n <p>{{scriptData.description}}</p>\n <!-- <ul>\n <li>request: 请求</li>\n </ul> -->\n </div>\n <i-input class=\"diy-input\" v-model=\"keyword\" @on-change=\"onFilter\" placeholder=\"输入关键字查询\">\n <i class=\"iconfont icon-chaxun\" slot=\"prefix\"></i>\n </i-input>\n <div class=\"quick-list\">\n <div v-for=\"type in tempScriptData.group\" class=\"quick-type\">\n <div class=\"quick-type-name\" @click=\"onQuickGroupClick(type)\">\n <i-icon type=\"md-arrow-dropright\" :class=\"type.expand ? 'expand' : ''\"/>\n <p>{{type.name}}</p>\n </div>\n <div\n v-show=\"type.expand\"\n v-for=\"item in type.list\"\n :key=\"item.name\"\n class=\"quick-item\"\n @click=\"onClickItem(item)\"\n >\n <i class=\"api-icon icon-item\"></i> {{item.name}}\n </div>\n </div>\n </div>\n </section>\n</article>\n"
|
|
2649
3105
|
|
|
2650
3106
|
/***/ }),
|
|
2651
3107
|
|
|
@@ -2687,6 +3143,38 @@ module.exports = function (O, options) {
|
|
|
2687
3143
|
|
|
2688
3144
|
// extracted by mini-css-extract-plugin
|
|
2689
3145
|
|
|
3146
|
+
/***/ }),
|
|
3147
|
+
|
|
3148
|
+
/***/ "8f6e":
|
|
3149
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
3150
|
+
|
|
3151
|
+
"use strict";
|
|
3152
|
+
|
|
3153
|
+
var fails = __webpack_require__("10a7");
|
|
3154
|
+
|
|
3155
|
+
module.exports = !fails(function () {
|
|
3156
|
+
function F() { /* empty */ }
|
|
3157
|
+
F.prototype.constructor = null;
|
|
3158
|
+
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
3159
|
+
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
3160
|
+
});
|
|
3161
|
+
|
|
3162
|
+
|
|
3163
|
+
/***/ }),
|
|
3164
|
+
|
|
3165
|
+
/***/ "9195":
|
|
3166
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
3167
|
+
|
|
3168
|
+
"use strict";
|
|
3169
|
+
|
|
3170
|
+
var classof = __webpack_require__("aaa6");
|
|
3171
|
+
|
|
3172
|
+
module.exports = function (it) {
|
|
3173
|
+
var klass = classof(it);
|
|
3174
|
+
return klass === 'BigInt64Array' || klass === 'BigUint64Array';
|
|
3175
|
+
};
|
|
3176
|
+
|
|
3177
|
+
|
|
2690
3178
|
/***/ }),
|
|
2691
3179
|
|
|
2692
3180
|
/***/ "91e1":
|
|
@@ -2761,6 +3249,26 @@ module.exports = function (O, key, value, options) {
|
|
|
2761
3249
|
|
|
2762
3250
|
// extracted by mini-css-extract-plugin
|
|
2763
3251
|
|
|
3252
|
+
/***/ }),
|
|
3253
|
+
|
|
3254
|
+
/***/ "9417":
|
|
3255
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
3256
|
+
|
|
3257
|
+
"use strict";
|
|
3258
|
+
|
|
3259
|
+
var lengthOfArrayLike = __webpack_require__("d631");
|
|
3260
|
+
|
|
3261
|
+
// https://tc39.es/proposal-change-array-by-copy/#sec-array.prototype.toReversed
|
|
3262
|
+
// https://tc39.es/proposal-change-array-by-copy/#sec-%typedarray%.prototype.toReversed
|
|
3263
|
+
module.exports = function (O, C) {
|
|
3264
|
+
var len = lengthOfArrayLike(O);
|
|
3265
|
+
var A = new C(len);
|
|
3266
|
+
var k = 0;
|
|
3267
|
+
for (; k < len; k++) A[k] = O[len - k - 1];
|
|
3268
|
+
return A;
|
|
3269
|
+
};
|
|
3270
|
+
|
|
3271
|
+
|
|
2764
3272
|
/***/ }),
|
|
2765
3273
|
|
|
2766
3274
|
/***/ "948e":
|
|
@@ -2851,7 +3359,7 @@ module.exports = function (passed, required) {
|
|
|
2851
3359
|
/***/ "981a":
|
|
2852
3360
|
/***/ (function(module, exports) {
|
|
2853
3361
|
|
|
2854
|
-
module.exports = "<div class=\"v-api-project-list-container\">\
|
|
3362
|
+
module.exports = "<div class=\"v-api-project-list-container\">\n <header>\n <div class=\"condition\">\n <div class=\"input-item\">\n <span>名称:</span>\n <i-input class=\"diy-input\" placeholder=\"请输入名称\" v-model=\"condition.name\" @on-enter=\"onSearch\"></i-input>\n </div>\n <div class=\"input-item\">\n <span>地址:</span>\n <i-input class=\"diy-input\" placeholder=\"请输入地址\" v-model=\"condition.url\" @on-enter=\"onSearch\"></i-input>\n </div>\n <div class=\"search-btn\">\n <i-button class=\"diy-btn-primary\" type=\"primary\" @click=\"onSearch\">查询</i-button>\n <i-button class=\"diy-btn-default\" @click=\"onEmpty\">重置</i-button>\n </div>\n </div>\n </header>\n <main>\n <template v-if=\"data&&data.length\">\n <i-table class=\"diy-table\" :columns=\"columns\" :data=\"data\" @on-selection-change=\"onSelected\" @on-row-click=\"onRowClick\">\n <template slot=\"detail\" slot-scope=\"{row}\">\n <a @click=\"onDetail(row)\">查看</a>\n </template>\n </i-table>\n </template>\n <template v-else>\n <div class=\"table-no-data\">\n <div class=\"table-no-data-bg\"></div>\n <div class=\"table-no-data-text\">暂无数据</div>\n </div>\n </template>\n </main>\n <div class=\"pagination\" v-if=\"data&&data.length\">\n <i-page class=\"diy-page\" :total=\"page.totalCount\" @on-change=\"onPageIndexChange\" @on-page-size-change=\"onPageSizeChange\" placement=\"top\" show-elevator show-total show-sizer> </i-page>\n </div>\n <u-api-project-detail :visiable.sync=\"detailShow\" :model=\"detail\"></u-api-project-detail>\n</div>\n"
|
|
2855
3363
|
|
|
2856
3364
|
/***/ }),
|
|
2857
3365
|
|
|
@@ -2905,7 +3413,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__98f0__;
|
|
|
2905
3413
|
/***/ "9915":
|
|
2906
3414
|
/***/ (function(module, exports) {
|
|
2907
3415
|
|
|
2908
|
-
module.exports = "<editor\
|
|
3416
|
+
module.exports = "<editor\n id=\"editor\"\n class=\"code-edit\"\n v-model=\"code\"\n theme=\"chrome\"\n :options=\"option\"\n @init=\"editorInit\"\n :lang=\"lang\"\n width=\"100%\"\n height=\"100%\"\n></editor>"
|
|
2909
3417
|
|
|
2910
3418
|
/***/ }),
|
|
2911
3419
|
|
|
@@ -2960,7 +3468,7 @@ module.exports = function (key, value) {
|
|
|
2960
3468
|
/***/ "9b44":
|
|
2961
3469
|
/***/ (function(module, exports) {
|
|
2962
3470
|
|
|
2963
|
-
module.exports = "<i-timeline-item v-if=\"source.type==='more'\" class=\"trends-item\">\
|
|
3471
|
+
module.exports = "<i-timeline-item v-if=\"source.type==='more'\" class=\"trends-item\">\n <i slot=\"dot\"></i>\n <div class=\"item-more\" @click=\"onMore\">查看更多</div>\n</i-timeline-item>\n<i-timeline-item v-else class=\"trends-item\">\n <i-avatar size=\"large\" :class=\"source.operateType\" slot=\"dot\"></i-avatar>\n <div class=\"item-body\">\n <i-time class=\"time\" :time=\"source.createTime\" />\n <div class=\"title\">\n <span>{{source.projectName}}</span>\n <span class=\"create-time\">{{source.createTime}}</span>\n </div>\n <div class=\"content\">\n <span class=\"name\">{{source.creatorName || source.creator}}</span>\n <span>{{source._operateType && source._operateType.text}}</span>\n <span class=\"name\">{{source.categoryName}}</span>\n <span v-if=\"source.categoryName\">分组下的</span>\n <span class=\"name api-name\" @click=\"onToApi\">{{source.apiName}}</span>\n <span>接口</span>\n </div>\n </div>\n</i-timeline-item>\n"
|
|
2964
3472
|
|
|
2965
3473
|
/***/ }),
|
|
2966
3474
|
|
|
@@ -3075,7 +3583,7 @@ module.exports = function (argument) {
|
|
|
3075
3583
|
/***/ "a0f2":
|
|
3076
3584
|
/***/ (function(module, exports) {
|
|
3077
3585
|
|
|
3078
|
-
module.exports = "<article class=\"catalog-params\">\
|
|
3586
|
+
module.exports = "<article class=\"catalog-params\">\n <i-table height=\"200\" class=\"diy-table\" :columns=\"columns\" :data=\"dataList\">\n <template slot-scope=\"{ row,index }\" slot=\"type\">\n {{(row._type || {}).text}}\n </template>\n <template slot-scope=\"{ row,index }\" slot=\"required\">\n {{row.required ? \"是\": \"否\"}}\n </template>\n </i-table>\n</article>\n"
|
|
3079
3587
|
|
|
3080
3588
|
/***/ }),
|
|
3081
3589
|
|
|
@@ -3089,7 +3597,14 @@ module.exports = "<article class=\"catalog-params\">\r\n <i-table height=\"20
|
|
|
3089
3597
|
/***/ "a1f0":
|
|
3090
3598
|
/***/ (function(module, exports) {
|
|
3091
3599
|
|
|
3092
|
-
module.exports = "<i-poptip\
|
|
3600
|
+
module.exports = "<i-poptip\n transfer\n class=\"u-tree-selector\"\n transfer-class-name=\"u-tree-selector\"\n trigger=\"click\"\n content=\"content\"\n placement=\"bottom\"\n :disabled=\"readonly\"\n v-model=\"visible\"\n>\n <i-input\n class=\"diy-input\"\n :value=\"inputValue\"\n @on-change=\"onInputChange\"\n readonly\n />\n <i-icon\n v-if=\"inputValue && !readonly\"\n class=\"icon-clear-value\"\n type=\"ios-close-circle\"\n @click.stop=\"onClear\"\n />\n <i-tree\n slot=\"content\"\n :data=\"tree\"\n :render=\"renderContent\"\n @on-select-change=\"onSelectChange\"\n ></i-tree>\n</i-poptip>\n"
|
|
3601
|
+
|
|
3602
|
+
/***/ }),
|
|
3603
|
+
|
|
3604
|
+
/***/ "a2c5":
|
|
3605
|
+
/***/ (function(module, exports) {
|
|
3606
|
+
|
|
3607
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE_a2c5__;
|
|
3093
3608
|
|
|
3094
3609
|
/***/ }),
|
|
3095
3610
|
|
|
@@ -3162,6 +3677,36 @@ if (params.has('a', 2) || !params.has('a', undefined)) {
|
|
|
3162
3677
|
}
|
|
3163
3678
|
|
|
3164
3679
|
|
|
3680
|
+
/***/ }),
|
|
3681
|
+
|
|
3682
|
+
/***/ "a54a":
|
|
3683
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
3684
|
+
|
|
3685
|
+
"use strict";
|
|
3686
|
+
|
|
3687
|
+
var hasOwn = __webpack_require__("d803");
|
|
3688
|
+
var isCallable = __webpack_require__("ec2f");
|
|
3689
|
+
var toObject = __webpack_require__("e614");
|
|
3690
|
+
var sharedKey = __webpack_require__("3d77");
|
|
3691
|
+
var CORRECT_PROTOTYPE_GETTER = __webpack_require__("8f6e");
|
|
3692
|
+
|
|
3693
|
+
var IE_PROTO = sharedKey('IE_PROTO');
|
|
3694
|
+
var $Object = Object;
|
|
3695
|
+
var ObjectPrototype = $Object.prototype;
|
|
3696
|
+
|
|
3697
|
+
// `Object.getPrototypeOf` method
|
|
3698
|
+
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
3699
|
+
// eslint-disable-next-line es/no-object-getprototypeof -- safe
|
|
3700
|
+
module.exports = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {
|
|
3701
|
+
var object = toObject(O);
|
|
3702
|
+
if (hasOwn(object, IE_PROTO)) return object[IE_PROTO];
|
|
3703
|
+
var constructor = object.constructor;
|
|
3704
|
+
if (isCallable(constructor) && object instanceof constructor) {
|
|
3705
|
+
return constructor.prototype;
|
|
3706
|
+
} return object instanceof $Object ? ObjectPrototype : null;
|
|
3707
|
+
};
|
|
3708
|
+
|
|
3709
|
+
|
|
3165
3710
|
/***/ }),
|
|
3166
3711
|
|
|
3167
3712
|
/***/ "a564":
|
|
@@ -3193,6 +3738,27 @@ exports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDes
|
|
|
3193
3738
|
};
|
|
3194
3739
|
|
|
3195
3740
|
|
|
3741
|
+
/***/ }),
|
|
3742
|
+
|
|
3743
|
+
/***/ "a68e":
|
|
3744
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
3745
|
+
|
|
3746
|
+
"use strict";
|
|
3747
|
+
|
|
3748
|
+
var toPrimitive = __webpack_require__("e086");
|
|
3749
|
+
|
|
3750
|
+
var $TypeError = TypeError;
|
|
3751
|
+
|
|
3752
|
+
// `ToBigInt` abstract operation
|
|
3753
|
+
// https://tc39.es/ecma262/#sec-tobigint
|
|
3754
|
+
module.exports = function (argument) {
|
|
3755
|
+
var prim = toPrimitive(argument, 'number');
|
|
3756
|
+
if (typeof prim == 'number') throw new $TypeError("Can't convert number to bigint");
|
|
3757
|
+
// eslint-disable-next-line es/no-bigint -- safe
|
|
3758
|
+
return BigInt(prim);
|
|
3759
|
+
};
|
|
3760
|
+
|
|
3761
|
+
|
|
3196
3762
|
/***/ }),
|
|
3197
3763
|
|
|
3198
3764
|
/***/ "a6c3":
|
|
@@ -3266,7 +3832,7 @@ module.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
|
|
|
3266
3832
|
/***/ "ab68":
|
|
3267
3833
|
/***/ (function(module, exports) {
|
|
3268
3834
|
|
|
3269
|
-
module.exports = "<i-modal draggable sticky reset-drag-position class=\"api-detail-modal diy-modal\" v-model=\"show\" width=\"1000\" :mask-closable=\"false\" title=\"API详情\">\
|
|
3835
|
+
module.exports = "<i-modal draggable sticky reset-drag-position class=\"api-detail-modal diy-modal\" v-model=\"show\" width=\"1000\" :mask-closable=\"false\" title=\"API详情\">\n <i-form label-colon :label-width=\"120\">\n <i-form-item label=\"接口名称\">\n <span>{{action.name}}</span>\n </i-form-item>\n <i-form-item label=\"所属类型\">\n <span>{{model.type}}</span>\n </i-form-item>\n <i-form-item label=\"接口url\">\n <span>{{detail.info?detail.info.url:\"\"}}</span>\n </i-form-item>\n <i-form-item label=\"创建时间\">\n <span>{{action.timestamp}}</span>\n </i-form-item>\n <p class=\"item-title\">接口参数</p>\n <component v-if=\"params\" :is=\"params\" :model=\"detail\"></component>\n </i-form>\n <footer slot=\"footer\">\n <i-button class=\"diy-btn-primary\" type=\"primary\" @click=\"onClose\">关闭</i-button>\n </footer>\n</i-modal>\n"
|
|
3270
3836
|
|
|
3271
3837
|
/***/ }),
|
|
3272
3838
|
|
|
@@ -3855,19 +4421,45 @@ module.exports = g;
|
|
|
3855
4421
|
|
|
3856
4422
|
// extracted by mini-css-extract-plugin
|
|
3857
4423
|
|
|
4424
|
+
/***/ }),
|
|
4425
|
+
|
|
4426
|
+
/***/ "b699":
|
|
4427
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
4428
|
+
|
|
4429
|
+
"use strict";
|
|
4430
|
+
|
|
4431
|
+
var lengthOfArrayLike = __webpack_require__("d631");
|
|
4432
|
+
var toIntegerOrInfinity = __webpack_require__("9b7f");
|
|
4433
|
+
|
|
4434
|
+
var $RangeError = RangeError;
|
|
4435
|
+
|
|
4436
|
+
// https://tc39.es/proposal-change-array-by-copy/#sec-array.prototype.with
|
|
4437
|
+
// https://tc39.es/proposal-change-array-by-copy/#sec-%typedarray%.prototype.with
|
|
4438
|
+
module.exports = function (O, C, index, value) {
|
|
4439
|
+
var len = lengthOfArrayLike(O);
|
|
4440
|
+
var relativeIndex = toIntegerOrInfinity(index);
|
|
4441
|
+
var actualIndex = relativeIndex < 0 ? len + relativeIndex : relativeIndex;
|
|
4442
|
+
if (actualIndex >= len || actualIndex < 0) throw new $RangeError('Incorrect index');
|
|
4443
|
+
var A = new C(len);
|
|
4444
|
+
var k = 0;
|
|
4445
|
+
for (; k < len; k++) A[k] = k === actualIndex ? value : O[k];
|
|
4446
|
+
return A;
|
|
4447
|
+
};
|
|
4448
|
+
|
|
4449
|
+
|
|
3858
4450
|
/***/ }),
|
|
3859
4451
|
|
|
3860
4452
|
/***/ "b769":
|
|
3861
4453
|
/***/ (function(module, exports) {
|
|
3862
4454
|
|
|
3863
|
-
module.exports = "<article class=\"project-comment\">\
|
|
4455
|
+
module.exports = "<article class=\"project-comment\">\n <header>\n <i-input\n class=\"diy-input\"\n prefix=\"ios-search\"\n search\n @on-search=\"onQuery\"\n placeholder=\"输入关键字检索\"\n v-model=\"condition.apiName\"\n ></i-input>\n </header>\n\n <main>\n <header class=\"tool-bar\">\n <span>项目动态</span>\n </header>\n <main>\n <i-timeline :pending=\"false\">\n <virtual-list\n class=\"scroll-list\"\n data-key=\"id\"\n :data-sources=\"list\"\n :data-component=\"itemComponent\"\n >\n </virtual-list>\n </i-timeline>\n </main>\n </main>\n</article>\n"
|
|
3864
4456
|
|
|
3865
4457
|
/***/ }),
|
|
3866
4458
|
|
|
3867
4459
|
/***/ "bc13":
|
|
3868
4460
|
/***/ (function(module, exports) {
|
|
3869
4461
|
|
|
3870
|
-
module.exports = "<div class=\"confirm\">\
|
|
4462
|
+
module.exports = "<div class=\"confirm\">\n <div @click.stop=\"onOpenConfirm\">\n <slot></slot>\n </div>\n <i-modal\n width=400\n draggable\n sticky\n reset-drag-position\n v-model=\"value\"\n class=\"diy-modal confirm-modal\"\n :mask-closable=\"false\"\n :title=\"title\"\n >\n <div>\n <i class=\"api-icon icon-warning\"></i>\n </div>\n <p>\n {{message}}\n </p>\n <footer slot=\"footer\">\n <i-button type=\"primary\" class=\"diy-btn-primary \" @click=\"onOk\"\n >确定</i-button\n >\n <i-button @click=\"onCancel\">取消</i-button>\n </footer>\n </i-modal>\n</div>\n"
|
|
3871
4463
|
|
|
3872
4464
|
/***/ }),
|
|
3873
4465
|
|
|
@@ -3939,7 +4531,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE_be65__;
|
|
|
3939
4531
|
/***/ "c01f":
|
|
3940
4532
|
/***/ (function(module, exports) {
|
|
3941
4533
|
|
|
3942
|
-
module.exports = "<article class=\"group-select\">\
|
|
4534
|
+
module.exports = "<article class=\"group-select\">\n <i-poptip\n trigger=\"click\"\n transfer\n :transfer-class-name=\"isSelector? 'group-select-transfer group-select-poptip':'group-select-transfer'\"\n placement=\"bottom-start\"\n v-model=\"visible\"\n >\n <i-input\n readonly\n class=\"diy-input\"\n :value=\"current.name\"\n clearable\n @on-clear=\"onClear\"\n ></i-input>\n <template slot=\"content\">\n <i-tree\n :data=\"data\"\n @on-select-change=\"onSelect\"\n :render=\"renderContent\"\n ></i-tree>\n </template>\n </i-poptip>\n</article>\n"
|
|
3943
4535
|
|
|
3944
4536
|
/***/ }),
|
|
3945
4537
|
|
|
@@ -4096,7 +4688,7 @@ module.exports = {
|
|
|
4096
4688
|
/***/ "cfb3":
|
|
4097
4689
|
/***/ (function(module, exports) {
|
|
4098
4690
|
|
|
4099
|
-
module.exports = "<article class=\"project-list\">\
|
|
4691
|
+
module.exports = "<article class=\"project-list\">\n <header>\n <i-input\n class=\"diy-input\"\n v-model=\"condition.name\"\n search\n @on-search=\"onQuery\"\n placeholder=\"输入关键字检索\"\n ></i-input>\n </header>\n <main>\n <header class=\"tool-bar\">\n <span>项目列表</span>\n <div class=\"right-tool\">\n <div class=\"action-btn\">\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 class=\"api-icon icon-import\"></i>\n <div>导入项目</div>\n </i-upload>\n </div>\n <div class=\"action-btn\" @click=\"onComment\">\n <i\n class=\"api-icon icon-star\"\n @click=\"onCheckType('list')\"\n ></i>\n <div>查看项目动态</div>\n </div>\n <i\n class=\"api-icon icon-list\"\n :class=\"{'active': type === 'list'}\"\n title=\"列表展示\"\n @click=\"onCheckType('list')\"\n ></i>\n <i\n class=\"api-icon icon-card\"\n :class=\"{'active': type === 'card'}\"\n title=\"卡片展示\"\n @click=\"onCheckType('card')\"\n ></i>\n </div>\n </header>\n <main>\n <section class=\"projects\" v-if=\"type==='card'\">\n <div class=\"project-card\" @click=\"onAdd\">\n <div class=\"add-card\">\n <i-icon type=\"md-add\" />\n <p>新建项目</p>\n </div>\n </div>\n <u-card\n v-for=\"item in dataList\"\n :data=\"item\"\n :key=\"item.id\"\n @on-delete=\"onDelete\"\n @on-detail=\"onDetail\"\n @on-edit=\"onEdit\"\n @on-export=\"onExport\"\n ></u-card>\n </section>\n <section class=\"projects\" v-else>\n <i-table class=\"diy-table\" :columns=\"columns\" :data=\"dataList\">\n <template slot-scope=\"{ row,index }\" slot=\"action\">\n <span @click=\"onExport(row)\" class=\"action-btn export\"\n ><i class=\"api-icon icon-export projects-icon-export\" title=\"导出此项目\"></i\n ></span>\n <span @click=\"onDetail(row)\" class=\"action-btn detail\"\n ><i class=\"api-icon icon-detail\" title=\"详情\"></i\n ></span>\n <span @click=\"onEdit(row)\" class=\"action-btn detail\"\n ><i class=\"api-icon icon-edit\" title=\"修改\"></i\n ></span>\n <u-confirm\n title=\"删除项目\"\n @on-ok=\"onDelete(row)\"\n message=\"项目内所有接口将被一并删除, 是否确认执行?\"\n >\n <span class=\"action-btn delete\"\n ><i\n class=\"api-icon icon-delete\"\n title=\"删除\"\n ></i\n ></span>\n </u-confirm>\n </template>\n </i-table>\n </section>\n </main>\n </main>\n <u-add-modal :visiable.sync=\"showAddModal\" :data=\"current\">\n <footer slot=\"footer\">\n <i-button @click=\"showAddModal = false\">取消</i-button>\n <i-button type=\"primary\" class=\"diy-btn-primary \" @click=\"onSave\"\n >确定</i-button\n >\n </footer>\n </u-add-modal>\n <i-spin fix v-show=\"loading\">\n <i class=\"spin-icon-load ivu-icon\"></i>\n </i-spin>\n</article>\n"
|
|
4100
4692
|
|
|
4101
4693
|
/***/ }),
|
|
4102
4694
|
|
|
@@ -4110,7 +4702,7 @@ module.exports = "<article class=\"project-list\">\r\n <header>\r\n <i
|
|
|
4110
4702
|
/***/ "d30a":
|
|
4111
4703
|
/***/ (function(module, exports) {
|
|
4112
4704
|
|
|
4113
|
-
module.exports = "<div class=\"u-selector-tree-node\" @click=\"onClickNode\">\
|
|
4705
|
+
module.exports = "<div class=\"u-selector-tree-node\" @click=\"onClickNode\">\n <i-icon v-if=\"!data.children\" type=\"ios-bookmark-outline\" />\n <template v-else>\n<!-- <i-->\n<!-- class=\"iconfont\"-->\n<!-- :class=\"data.expand? 'icon-expand': 'icon-unexpand'\"-->\n<!-- ></i>-->\n <i class=\"iconfont icon-bumenkaohe\"></i>\n </template>\n <span>{{data.title}}</span>\n</div>\n"
|
|
4114
4706
|
|
|
4115
4707
|
/***/ }),
|
|
4116
4708
|
|
|
@@ -9179,6 +9771,451 @@ var service_ProjectService = /** @class */function (_super) {
|
|
|
9179
9771
|
return ProjectService;
|
|
9180
9772
|
}(common_service);
|
|
9181
9773
|
/* harmony default export */ var project_list_service = (service_ProjectService);
|
|
9774
|
+
// EXTERNAL MODULE: external "crypto-js"
|
|
9775
|
+
var external_crypto_js_ = __webpack_require__("a2c5");
|
|
9776
|
+
var external_crypto_js_default = /*#__PURE__*/__webpack_require__.n(external_crypto_js_);
|
|
9777
|
+
|
|
9778
|
+
// CONCATENATED MODULE: ./src/application/data-type-of.ts
|
|
9779
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
9780
|
+
/**
|
|
9781
|
+
* 判断数据类型
|
|
9782
|
+
* @param data - 数据
|
|
9783
|
+
* @returns 数据类型
|
|
9784
|
+
* @public
|
|
9785
|
+
*/
|
|
9786
|
+
function dataTypeOf(data) {
|
|
9787
|
+
if (data instanceof Element) {
|
|
9788
|
+
return 'element';
|
|
9789
|
+
}
|
|
9790
|
+
return Object.prototype.toString.call(data).slice(8, -1).toLowerCase();
|
|
9791
|
+
}
|
|
9792
|
+
// CONCATENATED MODULE: ./src/application/url.ts
|
|
9793
|
+
/**
|
|
9794
|
+
* 清除 url 中重复的斜杠
|
|
9795
|
+
* @param url - 链接地址
|
|
9796
|
+
* @returns 链接地址
|
|
9797
|
+
* @public
|
|
9798
|
+
*/
|
|
9799
|
+
function cleanUrl(url) {
|
|
9800
|
+
return url.replace(/([^:]|^)\/{2,}/g, '$1/');
|
|
9801
|
+
}
|
|
9802
|
+
// EXTERNAL MODULE: ./node_modules/.pnpm/core-js@3.35.0/node_modules/core-js/modules/es.typed-array.at.js
|
|
9803
|
+
var es_typed_array_at = __webpack_require__("2597");
|
|
9804
|
+
|
|
9805
|
+
// EXTERNAL MODULE: ./node_modules/.pnpm/core-js@3.35.0/node_modules/core-js/modules/es.typed-array.find-last.js
|
|
9806
|
+
var es_typed_array_find_last = __webpack_require__("e459");
|
|
9807
|
+
|
|
9808
|
+
// EXTERNAL MODULE: ./node_modules/.pnpm/core-js@3.35.0/node_modules/core-js/modules/es.typed-array.find-last-index.js
|
|
9809
|
+
var es_typed_array_find_last_index = __webpack_require__("eab2");
|
|
9810
|
+
|
|
9811
|
+
// EXTERNAL MODULE: ./node_modules/.pnpm/core-js@3.35.0/node_modules/core-js/modules/es.typed-array.set.js
|
|
9812
|
+
var es_typed_array_set = __webpack_require__("6bf0");
|
|
9813
|
+
|
|
9814
|
+
// EXTERNAL MODULE: ./node_modules/.pnpm/core-js@3.35.0/node_modules/core-js/modules/es.typed-array.to-reversed.js
|
|
9815
|
+
var es_typed_array_to_reversed = __webpack_require__("46df");
|
|
9816
|
+
|
|
9817
|
+
// EXTERNAL MODULE: ./node_modules/.pnpm/core-js@3.35.0/node_modules/core-js/modules/es.typed-array.to-sorted.js
|
|
9818
|
+
var es_typed_array_to_sorted = __webpack_require__("e40c");
|
|
9819
|
+
|
|
9820
|
+
// EXTERNAL MODULE: ./node_modules/.pnpm/core-js@3.35.0/node_modules/core-js/modules/es.typed-array.with.js
|
|
9821
|
+
var es_typed_array_with = __webpack_require__("39d5");
|
|
9822
|
+
|
|
9823
|
+
// CONCATENATED MODULE: ./src/common/utils/random.ts
|
|
9824
|
+
|
|
9825
|
+
|
|
9826
|
+
|
|
9827
|
+
|
|
9828
|
+
|
|
9829
|
+
|
|
9830
|
+
|
|
9831
|
+
var RandomUtil = /** @class */function () {
|
|
9832
|
+
function RandomUtil() {}
|
|
9833
|
+
/**
|
|
9834
|
+
* 等价于Math.random()
|
|
9835
|
+
* @returns
|
|
9836
|
+
*/
|
|
9837
|
+
RandomUtil.prototype.random = function () {
|
|
9838
|
+
return window.crypto.getRandomValues(new Uint8Array(1))[0] * 0.001;
|
|
9839
|
+
};
|
|
9840
|
+
/**
|
|
9841
|
+
* 随机生成len长度的字符串,比如生成16位随机字符串:randomStr(16) 得到"bb2a6d2fe39bb7ee"
|
|
9842
|
+
* @param len
|
|
9843
|
+
*/
|
|
9844
|
+
RandomUtil.prototype.randomStr = function (len) {
|
|
9845
|
+
var byteLength = Math.ceil(len / 2); // 因为一个字节可以表示两个十六进制字符
|
|
9846
|
+
var randomBytes = new Uint8Array(byteLength);
|
|
9847
|
+
window.crypto.getRandomValues(randomBytes);
|
|
9848
|
+
var hexArray = Array.from(randomBytes).map(function (b) {
|
|
9849
|
+
return b.toString(16).padStart(2, "0");
|
|
9850
|
+
});
|
|
9851
|
+
var hexString = hexArray.join("").substr(0, len);
|
|
9852
|
+
return hexString;
|
|
9853
|
+
};
|
|
9854
|
+
/**
|
|
9855
|
+
* 随机生成len长度的纯数字字符串,比如randomNumberStr(16)得到 "1842442170233672"
|
|
9856
|
+
* @param len
|
|
9857
|
+
*/
|
|
9858
|
+
RandomUtil.prototype.randomNumberStr = function (len) {
|
|
9859
|
+
// 计算需要生成的字节数
|
|
9860
|
+
var byteLength = Math.ceil(len / 2);
|
|
9861
|
+
// 创建一个 Uint8Array 用于存储随机字节
|
|
9862
|
+
var randomBytes = new Uint8Array(byteLength);
|
|
9863
|
+
// 使用 window.crypto.getRandomValues 填充数组
|
|
9864
|
+
window.crypto.getRandomValues(randomBytes);
|
|
9865
|
+
// 将 Uint8Array 转换为一个数字字符串
|
|
9866
|
+
var randomNumber = "";
|
|
9867
|
+
for (var i = 0; i < byteLength; i++) {
|
|
9868
|
+
randomNumber += randomBytes[i].toString().padStart(2, "0");
|
|
9869
|
+
}
|
|
9870
|
+
// 截取指定长度的字符串
|
|
9871
|
+
return randomNumber.slice(0, len);
|
|
9872
|
+
};
|
|
9873
|
+
return RandomUtil;
|
|
9874
|
+
}();
|
|
9875
|
+
var randomUtil = new RandomUtil();
|
|
9876
|
+
/* harmony default export */ var random = (randomUtil);
|
|
9877
|
+
// CONCATENATED MODULE: ./src/application/signature.ts
|
|
9878
|
+
|
|
9879
|
+
|
|
9880
|
+
|
|
9881
|
+
|
|
9882
|
+
|
|
9883
|
+
|
|
9884
|
+
|
|
9885
|
+
|
|
9886
|
+
|
|
9887
|
+
|
|
9888
|
+
function isNil(value) {
|
|
9889
|
+
return value === null || value === undefined;
|
|
9890
|
+
}
|
|
9891
|
+
/**
|
|
9892
|
+
* 递归合并对象
|
|
9893
|
+
* @param target - 目标对象
|
|
9894
|
+
* @param sources - 源对象
|
|
9895
|
+
* @returns 合并后的对象
|
|
9896
|
+
*/
|
|
9897
|
+
function merge(target) {
|
|
9898
|
+
var _a, _b;
|
|
9899
|
+
var sources = [];
|
|
9900
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
9901
|
+
sources[_i - 1] = arguments[_i];
|
|
9902
|
+
}
|
|
9903
|
+
if (!sources.length) return target;
|
|
9904
|
+
var source = sources.shift();
|
|
9905
|
+
if (isObject(target) && isObject(source)) {
|
|
9906
|
+
for (var key in source) {
|
|
9907
|
+
if (isObject(source[key])) {
|
|
9908
|
+
if (!target[key]) Object.assign(target, (_a = {}, _a[key] = {}, _a));
|
|
9909
|
+
merge(target[key], source[key]);
|
|
9910
|
+
} else {
|
|
9911
|
+
Object.assign(target, (_b = {}, _b[key] = source[key], _b));
|
|
9912
|
+
}
|
|
9913
|
+
}
|
|
9914
|
+
}
|
|
9915
|
+
return merge.apply(void 0, __spreadArray([target], sources, false));
|
|
9916
|
+
}
|
|
9917
|
+
function isObject(item) {
|
|
9918
|
+
return item && typeof item === "object" && !Array.isArray(item);
|
|
9919
|
+
}
|
|
9920
|
+
/**
|
|
9921
|
+
* 将对象转换为查询字符串
|
|
9922
|
+
* @param obj - 要转换的对象
|
|
9923
|
+
* @returns 查询字符串
|
|
9924
|
+
*/
|
|
9925
|
+
function qsStringify(obj) {
|
|
9926
|
+
var params = new URLSearchParams();
|
|
9927
|
+
for (var key in obj) {
|
|
9928
|
+
if (obj.hasOwnProperty(key)) {
|
|
9929
|
+
params.append(key, obj[key]);
|
|
9930
|
+
}
|
|
9931
|
+
}
|
|
9932
|
+
return params.toString();
|
|
9933
|
+
}
|
|
9934
|
+
/**
|
|
9935
|
+
* 将查询字符串解析为对象
|
|
9936
|
+
* @param queryString - 要解析的查询字符串
|
|
9937
|
+
* @returns 解析后的对象
|
|
9938
|
+
*/
|
|
9939
|
+
function qsParse(queryString) {
|
|
9940
|
+
var params = new URLSearchParams(queryString);
|
|
9941
|
+
var parsedParams = {};
|
|
9942
|
+
params.forEach(function (value, key) {
|
|
9943
|
+
parsedParams[key] = value;
|
|
9944
|
+
});
|
|
9945
|
+
return parsedParams;
|
|
9946
|
+
}
|
|
9947
|
+
/**
|
|
9948
|
+
* Signature 请求签名
|
|
9949
|
+
* @public
|
|
9950
|
+
*/
|
|
9951
|
+
var signature_Signature = /** @class */function () {
|
|
9952
|
+
function Signature(appIdCode) {
|
|
9953
|
+
this._appIdCode = appIdCode;
|
|
9954
|
+
this.noncePrefix = this.generateRandomString();
|
|
9955
|
+
}
|
|
9956
|
+
Object.defineProperty(Signature.prototype, "appIdCode", {
|
|
9957
|
+
get: function () {
|
|
9958
|
+
return this._appIdCode;
|
|
9959
|
+
},
|
|
9960
|
+
enumerable: false,
|
|
9961
|
+
configurable: true
|
|
9962
|
+
});
|
|
9963
|
+
/**
|
|
9964
|
+
* 生成随机数
|
|
9965
|
+
* @returns
|
|
9966
|
+
*/
|
|
9967
|
+
Signature.prototype.generateRandomString = function () {
|
|
9968
|
+
return random.randomStr(8);
|
|
9969
|
+
};
|
|
9970
|
+
/**
|
|
9971
|
+
* 生成签名参数
|
|
9972
|
+
* @returns
|
|
9973
|
+
*/
|
|
9974
|
+
Signature.prototype.generateSignatureOption = function () {
|
|
9975
|
+
return {
|
|
9976
|
+
nonce: "".concat(this.noncePrefix, "_").concat(this.generateRandomString()),
|
|
9977
|
+
timestamp: Date.now().toString().substring(0, 10)
|
|
9978
|
+
};
|
|
9979
|
+
};
|
|
9980
|
+
Signature.prototype.stringToUTF8ByteSize = function (str) {
|
|
9981
|
+
var utf8Bytes = new TextEncoder().encode(str);
|
|
9982
|
+
return utf8Bytes.length;
|
|
9983
|
+
};
|
|
9984
|
+
Signature.prototype.isStringOverKB = function (str, size) {
|
|
9985
|
+
var byteSize = this.stringToUTF8ByteSize(str);
|
|
9986
|
+
return byteSize > size * 1024;
|
|
9987
|
+
};
|
|
9988
|
+
/**
|
|
9989
|
+
* 去除空参数
|
|
9990
|
+
* @param param - 参数
|
|
9991
|
+
* @returns
|
|
9992
|
+
*/
|
|
9993
|
+
Signature.prototype.removeNilValue = function (param) {
|
|
9994
|
+
if (dataTypeOf(param) === "object") {
|
|
9995
|
+
for (var key in param) {
|
|
9996
|
+
if (Object.prototype.hasOwnProperty.call(param, key)) {
|
|
9997
|
+
var value = param[key];
|
|
9998
|
+
var type = dataTypeOf(value);
|
|
9999
|
+
if (type === "object") {
|
|
10000
|
+
this.removeNilValue(value);
|
|
10001
|
+
} else {
|
|
10002
|
+
if (type === "null" || type === "undefined" || type === "function") {
|
|
10003
|
+
delete param[key];
|
|
10004
|
+
}
|
|
10005
|
+
}
|
|
10006
|
+
}
|
|
10007
|
+
}
|
|
10008
|
+
}
|
|
10009
|
+
};
|
|
10010
|
+
/**
|
|
10011
|
+
* 格式化 url value
|
|
10012
|
+
* @param value - 值
|
|
10013
|
+
* @returns
|
|
10014
|
+
*/
|
|
10015
|
+
Signature.prototype.formatEncodeValue = function (value) {
|
|
10016
|
+
var type = dataTypeOf(value);
|
|
10017
|
+
var isNilOrFunction = type === "null" || type === "undefined" || type === "function";
|
|
10018
|
+
var val = isNilOrFunction ? "" : value;
|
|
10019
|
+
return encodeURIComponent(val).replace(/%2B/g, "+").replace(/%20/g, "+").replace(/\(/g, "%28").replace(/\)/g, "%29").replace(/'/g, "%27").replace(/!/g, "%21").replace(/~/g, "%7E");
|
|
10020
|
+
};
|
|
10021
|
+
/**
|
|
10022
|
+
* 格式化 url params
|
|
10023
|
+
* @param params - 参数列表
|
|
10024
|
+
* @param key - 参数键
|
|
10025
|
+
* @param param - 参数
|
|
10026
|
+
* @returns
|
|
10027
|
+
*/
|
|
10028
|
+
Signature.prototype.formatEncodeParam = function (params, key, param) {
|
|
10029
|
+
var _this = this;
|
|
10030
|
+
var type = dataTypeOf(param);
|
|
10031
|
+
if (type === "object") {
|
|
10032
|
+
var keys = Object.keys(param).sort();
|
|
10033
|
+
if (keys.length === 0) {
|
|
10034
|
+
params.push("".concat(key, "={}"));
|
|
10035
|
+
} else {
|
|
10036
|
+
keys.forEach(function (k) {
|
|
10037
|
+
_this.formatEncodeParam(params, key === "" ? "".concat(k) : "".concat(key, "[").concat(k, "]"), param[k]);
|
|
10038
|
+
});
|
|
10039
|
+
}
|
|
10040
|
+
} else if (type === "array") {
|
|
10041
|
+
if (param.length === 0) {
|
|
10042
|
+
params.push("".concat(key, "=[]"));
|
|
10043
|
+
} else {
|
|
10044
|
+
param.forEach(function (e) {
|
|
10045
|
+
_this.formatEncodeParam(params, "".concat(key, "[]"), e);
|
|
10046
|
+
});
|
|
10047
|
+
}
|
|
10048
|
+
} else {
|
|
10049
|
+
params.push("".concat(key, "=").concat(this.formatEncodeValue(param)));
|
|
10050
|
+
}
|
|
10051
|
+
};
|
|
10052
|
+
/**
|
|
10053
|
+
* 参数排序
|
|
10054
|
+
* @param param - 参数
|
|
10055
|
+
* @returns
|
|
10056
|
+
*/
|
|
10057
|
+
Signature.prototype.sortParamByKey = function (param) {
|
|
10058
|
+
if (param === void 0) {
|
|
10059
|
+
param = {};
|
|
10060
|
+
}
|
|
10061
|
+
var params = [];
|
|
10062
|
+
this.formatEncodeParam(params, "", param);
|
|
10063
|
+
return params.join("&");
|
|
10064
|
+
};
|
|
10065
|
+
/**
|
|
10066
|
+
* 签名加密
|
|
10067
|
+
* @param url - 请求地址
|
|
10068
|
+
* @returns
|
|
10069
|
+
*/
|
|
10070
|
+
Signature.prototype.cryptoHash = function (url) {
|
|
10071
|
+
if (window.commonSetting.signatureEncodeType === "Base64") {
|
|
10072
|
+
return external_crypto_js_default.a.HmacSHA1(url, this._appIdCode.code).toString(external_crypto_js_default.a.enc.Base64);
|
|
10073
|
+
} else {
|
|
10074
|
+
return external_crypto_js_default.a.HmacSHA1(url, this._appIdCode.code).toString(external_crypto_js_default.a.enc.Hex).toUpperCase();
|
|
10075
|
+
}
|
|
10076
|
+
};
|
|
10077
|
+
/**
|
|
10078
|
+
* 获取 url 参数
|
|
10079
|
+
* @param url - 请求地址
|
|
10080
|
+
* @returns
|
|
10081
|
+
*/
|
|
10082
|
+
Signature.prototype.urlSearchParams = function (url) {
|
|
10083
|
+
var _a;
|
|
10084
|
+
if (url && url.indexOf("?") > -1) {
|
|
10085
|
+
return qsParse((_a = url.split("?").pop()) !== null && _a !== void 0 ? _a : "");
|
|
10086
|
+
}
|
|
10087
|
+
return {};
|
|
10088
|
+
};
|
|
10089
|
+
/**
|
|
10090
|
+
* 获取签名 url
|
|
10091
|
+
* @param href - 请求地址
|
|
10092
|
+
* @returns 签名 url
|
|
10093
|
+
* @public
|
|
10094
|
+
*/
|
|
10095
|
+
Signature.prototype.signatureHref = function (href) {
|
|
10096
|
+
try {
|
|
10097
|
+
// 0. 构造 url
|
|
10098
|
+
var pathname = new URL(href, window.location.origin).pathname;
|
|
10099
|
+
// 1. 获取参数
|
|
10100
|
+
var params = this.urlSearchParams(href);
|
|
10101
|
+
// 2. 生成加密参数
|
|
10102
|
+
var signatureOption = this.generateSignatureOption();
|
|
10103
|
+
// 3. 参数排序
|
|
10104
|
+
merge(params, signatureOption);
|
|
10105
|
+
var paramStr = this.sortParamByKey(params);
|
|
10106
|
+
// 4. 获取 uri
|
|
10107
|
+
var uri = cleanUrl("/".concat(pathname));
|
|
10108
|
+
// 5. 拼接
|
|
10109
|
+
var full = "".concat(uri, "?").concat(paramStr);
|
|
10110
|
+
// 6. 加密
|
|
10111
|
+
var signature_1 = this.cryptoHash(full);
|
|
10112
|
+
// 7. 拼接加密参数
|
|
10113
|
+
href = "".concat(full, "&signature=").concat(signature_1);
|
|
10114
|
+
} catch (_a) {
|
|
10115
|
+
console.error("签名失败,请使用有效的链接", href);
|
|
10116
|
+
}
|
|
10117
|
+
return href;
|
|
10118
|
+
};
|
|
10119
|
+
/**
|
|
10120
|
+
* 获取签名参数
|
|
10121
|
+
* @param config - Axios 请求配置
|
|
10122
|
+
* @returns 签名参数
|
|
10123
|
+
* @public
|
|
10124
|
+
*/
|
|
10125
|
+
Signature.prototype.signatureConfig = function (config) {
|
|
10126
|
+
var _a, _b, _c, _d, _e;
|
|
10127
|
+
try {
|
|
10128
|
+
// 获取 method
|
|
10129
|
+
var method = (_a = config.method) === null || _a === void 0 ? void 0 : _a.toUpperCase();
|
|
10130
|
+
var isGet = method === "GET";
|
|
10131
|
+
// 获取 data
|
|
10132
|
+
var rawData = Object(external_vue_["toRaw"])(config.data);
|
|
10133
|
+
var isObjectPayload = rawData !== null && typeof rawData === "object"; // 参考 axios 源码
|
|
10134
|
+
// 获取 contentType
|
|
10135
|
+
var contentType = ((_c = (_b = config.headers) === null || _b === void 0 ? void 0 : _b["Content-Type"]) === null || _c === void 0 ? void 0 : _c.toString()) || "";
|
|
10136
|
+
// 数据类型是否为 formData
|
|
10137
|
+
var isMultipartFormData = contentType.includes("multipart/form-data");
|
|
10138
|
+
// 数据类型是否为 json
|
|
10139
|
+
var isApplicationJson = contentType.includes("application/json");
|
|
10140
|
+
if (!isGet && !contentType && isObjectPayload) {
|
|
10141
|
+
// 若 contentType 为空,且 config.data 为对象,则 axios 会默认添加 application/json header
|
|
10142
|
+
isApplicationJson = true;
|
|
10143
|
+
}
|
|
10144
|
+
// 0. 传入 App-Id,用与服务器识别应用
|
|
10145
|
+
merge(config, {
|
|
10146
|
+
headers: {
|
|
10147
|
+
"App-Id": this._appIdCode.id
|
|
10148
|
+
}
|
|
10149
|
+
});
|
|
10150
|
+
// 1. 获取参数
|
|
10151
|
+
var params = {};
|
|
10152
|
+
// 1.1 取 url 参数
|
|
10153
|
+
var urlParams = this.urlSearchParams(config.url);
|
|
10154
|
+
merge(params, urlParams);
|
|
10155
|
+
// 1.2 取 config.params 参数
|
|
10156
|
+
if (!isNil(config.params)) {
|
|
10157
|
+
var raw = Object(external_vue_["toRaw"])(config.params);
|
|
10158
|
+
// params 内的参数需要去除 null|undefined|function
|
|
10159
|
+
this.removeNilValue(raw);
|
|
10160
|
+
config.params = raw;
|
|
10161
|
+
merge(params, qsParse(qsStringify(raw)));
|
|
10162
|
+
}
|
|
10163
|
+
// 1.3 取 config.data 参数
|
|
10164
|
+
if (!isNil(rawData) && isObjectPayload) {
|
|
10165
|
+
// 非 json 和 formData 需合并参数
|
|
10166
|
+
if (!isMultipartFormData && !isApplicationJson) {
|
|
10167
|
+
merge(params, rawData);
|
|
10168
|
+
}
|
|
10169
|
+
}
|
|
10170
|
+
// 2. 生成加密参数
|
|
10171
|
+
var signatureOption = this.generateSignatureOption();
|
|
10172
|
+
// 3. 参数排序
|
|
10173
|
+
merge(params, signatureOption);
|
|
10174
|
+
var paramStr = this.sortParamByKey(params);
|
|
10175
|
+
// 3.1 数据类型是否为 json 时,将其 stringify 拼接到最后
|
|
10176
|
+
if (isApplicationJson) {
|
|
10177
|
+
var rawDataStr = JSON.stringify(rawData);
|
|
10178
|
+
var isOver128KB = this.isStringOverKB(rawDataStr, 128);
|
|
10179
|
+
if (!isOver128KB) {
|
|
10180
|
+
if (isObjectPayload) {
|
|
10181
|
+
paramStr += this.formatEncodeValue(rawDataStr);
|
|
10182
|
+
} else {
|
|
10183
|
+
paramStr += this.formatEncodeValue(rawData);
|
|
10184
|
+
}
|
|
10185
|
+
}
|
|
10186
|
+
}
|
|
10187
|
+
// 4. 获取 uri
|
|
10188
|
+
var path = "";
|
|
10189
|
+
if ((_d = config.url) === null || _d === void 0 ? void 0 : _d.startsWith("http")) {
|
|
10190
|
+
path = config.url;
|
|
10191
|
+
} else if ((_e = config.url) === null || _e === void 0 ? void 0 : _e.startsWith("/")) {
|
|
10192
|
+
path = "".concat(config.baseURL || "").concat(config.url || "");
|
|
10193
|
+
} else {
|
|
10194
|
+
path = "".concat(config.baseURL || "", "/").concat(config.url || "");
|
|
10195
|
+
}
|
|
10196
|
+
var pathname = new URL(path, window.location.origin).pathname;
|
|
10197
|
+
var uri = cleanUrl("/".concat(pathname));
|
|
10198
|
+
// 5. 拼接
|
|
10199
|
+
var full = "".concat(uri, "?").concat(paramStr);
|
|
10200
|
+
// 6. 加密
|
|
10201
|
+
signatureOption.signature = this.cryptoHash(full);
|
|
10202
|
+
// 7. 拼接加密参数
|
|
10203
|
+
config.params = merge({}, config.params, signatureOption);
|
|
10204
|
+
} catch (error) {
|
|
10205
|
+
console.error("签名失败", error);
|
|
10206
|
+
}
|
|
10207
|
+
};
|
|
10208
|
+
return Signature;
|
|
10209
|
+
}();
|
|
10210
|
+
|
|
10211
|
+
/**
|
|
10212
|
+
* 签名密钥
|
|
10213
|
+
*/
|
|
10214
|
+
var appIdCode = {
|
|
10215
|
+
id: "dex",
|
|
10216
|
+
code: "bb0a92a340ae4f5d936a9e6b010cb127"
|
|
10217
|
+
};
|
|
10218
|
+
var signature = new signature_Signature(appIdCode);
|
|
9182
10219
|
// CONCATENATED MODULE: ./src/views/project-list/index.ts
|
|
9183
10220
|
|
|
9184
10221
|
|
|
@@ -9191,6 +10228,7 @@ var service_ProjectService = /** @class */function (_super) {
|
|
|
9191
10228
|
|
|
9192
10229
|
|
|
9193
10230
|
|
|
10231
|
+
|
|
9194
10232
|
var project_list_ProjectList = /** @class */function (_super) {
|
|
9195
10233
|
__extends(ProjectList, _super);
|
|
9196
10234
|
function ProjectList() {
|
|
@@ -9225,7 +10263,7 @@ var project_list_ProjectList = /** @class */function (_super) {
|
|
|
9225
10263
|
}
|
|
9226
10264
|
Object.defineProperty(ProjectList.prototype, "uploadAction", {
|
|
9227
10265
|
get: function () {
|
|
9228
|
-
return commonSetting.baseUrl + "/unity/api/info/import";
|
|
10266
|
+
return signature.signatureHref(commonSetting.baseUrl + "/unity/api/info/import");
|
|
9229
10267
|
},
|
|
9230
10268
|
enumerable: false,
|
|
9231
10269
|
configurable: true
|
|
@@ -9336,7 +10374,8 @@ var project_list_ProjectList = /** @class */function (_super) {
|
|
|
9336
10374
|
get: function () {
|
|
9337
10375
|
var token = getToken();
|
|
9338
10376
|
return {
|
|
9339
|
-
Authorization: "Bearer " + token
|
|
10377
|
+
Authorization: "Bearer " + token,
|
|
10378
|
+
"App-Id": signature.appIdCode.id
|
|
9340
10379
|
};
|
|
9341
10380
|
},
|
|
9342
10381
|
enumerable: false,
|
|
@@ -13925,7 +14964,7 @@ module.exports = Object.hasOwn || function hasOwn(it, key) {
|
|
|
13925
14964
|
/***/ "d8b4":
|
|
13926
14965
|
/***/ (function(module, exports) {
|
|
13927
14966
|
|
|
13928
|
-
module.exports = "<div class=\"v-parameter-list-container\">\
|
|
14967
|
+
module.exports = "<div class=\"v-parameter-list-container\">\n <main>\n <div class=\"parameter-table-btns\" v-if=\"isEdit\">\n <span class=\"table-btns table-btns-add\" @click=\"onAdd\">\n <i class=\"iconfont icon-add\"></i>\n <span class=\"table-btns-text\">新增</span>\n </span>\n <span class=\"table-btns table-btns-delete\" :class=\"selections.length ? '' : 'icon-button-disabled'\" @click=\"onBatchDelete\">\n <i class=\"iconfont icon-delete\"></i>\n <span class=\"table-btns-text\">批量删除</span>\n </span>\n </div>\n <template v-if=\"data&&data.length\">\n <i-table class=\"diy-table\" :columns=\"columns\" :data=\"data\" @on-selection-change=\"onSelectionChange\">\n <div slot=\"name\" slot-scope=\"{row}\">\n <i-input class=\"diy-input\" v-if=\"row.isEdit\" v-model=\"row.name\">{{row.name}}</i-input>\n <span v-else>{{row.name}}</span>\n </div>\n <div slot=\"type\" slot-scope=\"{row}\">\n <i-select class=\"diy-select\" v-if=\"row.isEdit\" v-model=\"row.type\" transfer>\n <i-option v-for=\"item in typeList\" :value=\"item.name\" :key=\"item.name\">{{item.text}}</i-option>\n </i-select>\n <span v-else>{{getTypeText(row.type)}}</span>\n </div>\n <div slot=\"required\" slot-scope=\"{row}\">\n <i-select class=\"diy-select\" v-if=\"row.isEdit\" :value=\"booleanObj[row.required]\" @on-change=\"onChangeRequired($event, row)\" transfer>\n <i-option :value=\"0\" key=\"0\">否</i-option>\n <i-option :value=\"1\" key=\"1\">是</i-option>\n </i-select>\n <span v-else>{{row.required ? \"是\" : \"否\"}}</span>\n </div>\n <div slot=\"defaultValue\" slot-scope=\"{row}\">\n <i-input class=\"diy-input\" v-if=\"row.isEdit\" v-model=\"row.defaultValue\"></i-input>\n <span v-else>{{row.defaultValue}}</span>\n </div>\n <div slot=\"description\" slot-scope=\"{row}\">\n <i-input class=\"diy-input\" v-if=\"row.isEdit\" v-model=\"row.description\"></i-input>\n <span v-else>{{row.description}}</span>\n </div>\n <div v-if=\"isEdit\" class=\"row-actions\" slot=\"actions\" slot-scope=\"{row,index}\">\n <div v-if=\"row.isEdit\" class=\"edit-status\">\n <i class=\"iconfont icon-ok\" title=\"确认\" @click=\"onConfirm(row, index)\"></i>\n <i class=\"iconfont icon-cancel\" title=\"取消\" @click=\"onCancel(index)\"></i>\n </div>\n <div v-else class=\"read-status\">\n <i class=\"iconfont icon-edit\" title=\"编辑\" @click=\"onEdit(row)\"></i>\n <i-poptip confirm transfer title=\"确认删除这条数据吗?\" @on-ok=\"onDelete(row, index)\">\n <i class=\"iconfont icon-delete\" title=\"删除\"> </i>\n </i-poptip>\n </div>\n </div>\n </i-table>\n </template>\n <template v-else>\n <div class=\"table-no-data-wrap\">\n <div class=\"table-no-data\">\n <div class=\"table-no-data-bg\"></div>\n <div class=\"table-no-data-text\">暂无数据</div>\n </div>\n </div>\n </template>\n </main>\n</div>\n"
|
|
13929
14968
|
|
|
13930
14969
|
/***/ }),
|
|
13931
14970
|
|
|
@@ -13946,7 +14985,7 @@ module.exports = "<!DOCTYPE html>\n<article class=\"v-api-combine-info-wrapper\"
|
|
|
13946
14985
|
/***/ "d953":
|
|
13947
14986
|
/***/ (function(module, exports) {
|
|
13948
14987
|
|
|
13949
|
-
module.exports = "<div class=\"interface-tree-node\">\
|
|
14988
|
+
module.exports = "<div class=\"interface-tree-node\">\n <span v-if=\"isLeaf && data.method\" class=\"method\" :class=\"data.method.toLowerCase() \" @click=\"onClick\"\n >{{data.method}}</span\n >\n <i :class=\"isLeaf ? 'iconfont icon-API' : 'iconfont icon-APIfenzu2'\" @click=\"onClick\"></i>\n <span class=\"interface-tree-node-name\" :title=\"data.title\" @click=\"onClick\">{{data.title}}</span>\n <i-dropdown\n transfer\n stop-propagation\n class=\"diy-dropdown\"\n transfer-class-name=\"diy-transfer-dropdown\"\n @on-click=\"onClickAction\"\n >\n <i class=\"api-icon icon-more\"></i>\n <i-dropdown-menu slot=\"list\">\n <template v-if=\"isLeaf\">\n <i-dropdown-item name=\"edit-interface\">修改</i-dropdown-item>\n <i-dropdown-item name=\"delete-interface\">删除</i-dropdown-item>\n <i-dropdown-item name=\"copy-interface\">复制</i-dropdown-item>\n </template>\n <template v-else>\n <i-dropdown-item name=\"edit-group\">修改分组</i-dropdown-item>\n <i-dropdown-item name=\"add-interface\">新增接口</i-dropdown-item>\n <i-dropdown-item name=\"edit-attribute\">批量修改属性</i-dropdown-item>\n <u-confirm\n title=\"删除分组\"\n @on-ok=\"onDelete('delete-group')\"\n message=\"分组内的接口一并删除, 是否确认执行?\"\n >\n <i-dropdown-item>删除</i-dropdown-item>\n </u-confirm>\n </template>\n </i-dropdown-menu>\n </i-dropdown>\n</div>\n"
|
|
13950
14989
|
|
|
13951
14990
|
/***/ }),
|
|
13952
14991
|
|
|
@@ -14089,6 +15128,53 @@ module.exports = [
|
|
|
14089
15128
|
];
|
|
14090
15129
|
|
|
14091
15130
|
|
|
15131
|
+
/***/ }),
|
|
15132
|
+
|
|
15133
|
+
/***/ "e40c":
|
|
15134
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
15135
|
+
|
|
15136
|
+
"use strict";
|
|
15137
|
+
|
|
15138
|
+
var ArrayBufferViewCore = __webpack_require__("6a10");
|
|
15139
|
+
var uncurryThis = __webpack_require__("720f");
|
|
15140
|
+
var aCallable = __webpack_require__("7801");
|
|
15141
|
+
var arrayFromConstructorAndList = __webpack_require__("00fe");
|
|
15142
|
+
|
|
15143
|
+
var aTypedArray = ArrayBufferViewCore.aTypedArray;
|
|
15144
|
+
var getTypedArrayConstructor = ArrayBufferViewCore.getTypedArrayConstructor;
|
|
15145
|
+
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
|
|
15146
|
+
var sort = uncurryThis(ArrayBufferViewCore.TypedArrayPrototype.sort);
|
|
15147
|
+
|
|
15148
|
+
// `%TypedArray%.prototype.toSorted` method
|
|
15149
|
+
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.tosorted
|
|
15150
|
+
exportTypedArrayMethod('toSorted', function toSorted(compareFn) {
|
|
15151
|
+
if (compareFn !== undefined) aCallable(compareFn);
|
|
15152
|
+
var O = aTypedArray(this);
|
|
15153
|
+
var A = arrayFromConstructorAndList(getTypedArrayConstructor(O), O);
|
|
15154
|
+
return sort(A, compareFn);
|
|
15155
|
+
});
|
|
15156
|
+
|
|
15157
|
+
|
|
15158
|
+
/***/ }),
|
|
15159
|
+
|
|
15160
|
+
/***/ "e459":
|
|
15161
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
15162
|
+
|
|
15163
|
+
"use strict";
|
|
15164
|
+
|
|
15165
|
+
var ArrayBufferViewCore = __webpack_require__("6a10");
|
|
15166
|
+
var $findLast = __webpack_require__("3bdc").findLast;
|
|
15167
|
+
|
|
15168
|
+
var aTypedArray = ArrayBufferViewCore.aTypedArray;
|
|
15169
|
+
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
|
|
15170
|
+
|
|
15171
|
+
// `%TypedArray%.prototype.findLast` method
|
|
15172
|
+
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.findlast
|
|
15173
|
+
exportTypedArrayMethod('findLast', function findLast(predicate /* , thisArg */) {
|
|
15174
|
+
return $findLast(aTypedArray(this), predicate, arguments.length > 1 ? arguments[1] : undefined);
|
|
15175
|
+
});
|
|
15176
|
+
|
|
15177
|
+
|
|
14092
15178
|
/***/ }),
|
|
14093
15179
|
|
|
14094
15180
|
/***/ "e614":
|
|
@@ -14119,7 +15205,7 @@ module.exports = function (argument) {
|
|
|
14119
15205
|
/***/ "e718":
|
|
14120
15206
|
/***/ (function(module, exports) {
|
|
14121
15207
|
|
|
14122
|
-
module.exports = "<section class=\"v-base-editor-container\">\
|
|
15208
|
+
module.exports = "<section class=\"v-base-editor-container\">\n <u-editor @inited=\"onEditorInited\" :model.sync=\"script\" lang=\"groovy\"></u-editor>\n</section>\n"
|
|
14123
15209
|
|
|
14124
15210
|
/***/ }),
|
|
14125
15211
|
|
|
@@ -14144,6 +15230,44 @@ module.exports = !fails(function () {
|
|
|
14144
15230
|
|
|
14145
15231
|
// extracted by mini-css-extract-plugin
|
|
14146
15232
|
|
|
15233
|
+
/***/ }),
|
|
15234
|
+
|
|
15235
|
+
/***/ "eab2":
|
|
15236
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
15237
|
+
|
|
15238
|
+
"use strict";
|
|
15239
|
+
|
|
15240
|
+
var ArrayBufferViewCore = __webpack_require__("6a10");
|
|
15241
|
+
var $findLastIndex = __webpack_require__("3bdc").findLastIndex;
|
|
15242
|
+
|
|
15243
|
+
var aTypedArray = ArrayBufferViewCore.aTypedArray;
|
|
15244
|
+
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
|
|
15245
|
+
|
|
15246
|
+
// `%TypedArray%.prototype.findLastIndex` method
|
|
15247
|
+
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.findlastindex
|
|
15248
|
+
exportTypedArrayMethod('findLastIndex', function findLastIndex(predicate /* , thisArg */) {
|
|
15249
|
+
return $findLastIndex(aTypedArray(this), predicate, arguments.length > 1 ? arguments[1] : undefined);
|
|
15250
|
+
});
|
|
15251
|
+
|
|
15252
|
+
|
|
15253
|
+
/***/ }),
|
|
15254
|
+
|
|
15255
|
+
/***/ "ead7":
|
|
15256
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
15257
|
+
|
|
15258
|
+
"use strict";
|
|
15259
|
+
|
|
15260
|
+
var toIntegerOrInfinity = __webpack_require__("9b7f");
|
|
15261
|
+
|
|
15262
|
+
var $RangeError = RangeError;
|
|
15263
|
+
|
|
15264
|
+
module.exports = function (it) {
|
|
15265
|
+
var result = toIntegerOrInfinity(it);
|
|
15266
|
+
if (result < 0) throw new $RangeError("The argument can't be less than 0");
|
|
15267
|
+
return result;
|
|
15268
|
+
};
|
|
15269
|
+
|
|
15270
|
+
|
|
14147
15271
|
/***/ }),
|
|
14148
15272
|
|
|
14149
15273
|
/***/ "eaed":
|
|
@@ -14216,7 +15340,7 @@ module.exports = NATIVE_SYMBOL
|
|
|
14216
15340
|
/***/ "ef27":
|
|
14217
15341
|
/***/ (function(module, exports) {
|
|
14218
15342
|
|
|
14219
|
-
module.exports = "<article class=\"project-card\" @click=\"onDetail\">\
|
|
15343
|
+
module.exports = "<article class=\"project-card\" @click=\"onDetail\">\n <header>{{data.name}}</header>\n <i-dropdown transfer transfer-class-name=\"api-project-oprate\" class=\"project-card-i-dropdown\" @on-click=\"onClick\">\n <i-icon type=\"ios-more\" />\n <i-dropdown-menu slot=\"list\">\n <i-dropdown-item :name=\"'export'\">\n <i\n class=\"api-icon icon-export project-card-i-dropdown-item-icon\"\n title=\"导出此项目\"\n @click.stop=\"onExport\"\n ></i>\n 导出此项目\n </i-dropdown-item>\n </i-dropdown-menu>\n </i-dropdown>\n <main></main>\n <footer>\n <div @click.stop=\"onEdit\">修改</div>\n <u-confirm\n class=\"delete\"\n title=\"删除项目\"\n message=\"项目内所有接口将被一并删除, 是否确认执行?\"\n @on-ok=\"onDelete\"\n >\n <span>删除</span>\n </u-confirm>\n </footer>\n</article>\n"
|
|
14220
15344
|
|
|
14221
15345
|
/***/ }),
|
|
14222
15346
|
|
|
@@ -14240,14 +15364,25 @@ module.exports = function (bitmap, value) {
|
|
|
14240
15364
|
/***/ "f40e":
|
|
14241
15365
|
/***/ (function(module, exports) {
|
|
14242
15366
|
|
|
14243
|
-
module.exports = "<article class=\"interface-settings\" :class=\"{'script-max': scriptView}\">\
|
|
15367
|
+
module.exports = "<article class=\"interface-settings\" :class=\"{'script-max': scriptView}\">\n <header v-show=\"!scriptView\">\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 ref=\"addEnvParamSelect\" class=\"diy-select env-select\" v-model=\"interfaceModel.info.envId\" placeholder=\"请选择环境变量\" clearable>\n <i-option v-for=\"item in paramList\" :key=\"item.id\" :value=\"item.id\">{{item.name + \":\" + item.value}}</i-option>\n <i-option class=\"add-security-item\" value=\"''\">\n <div class=\"add-security-item-content\" @click.stop=\"onAddEnvParam\">\n <i class=\"api-icon icon-add\"></i>\n <span>新增环境变量</span>\n </div>\n </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 </header>\n <main :class=\"{'transverse': !lengthwise}\">\n <section class=\"request\">\n <div v-show=\"!scriptView\" 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 :errorLine=\"!originId || originId === interfaceModel.info.id ? errorLine : []\"\n :formData=\"formData\"\n @on-current-id=\"onCurrentId\"\n @on-script-run=\"onScriptRun\"\n @on-script-save=\"onSave\"\n @on-script-max=\"onScriptMax\"\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 <u-environment-modal :visiable.sync=\"showEnvironmentModal\" :projectId=\"projectId\" @on-refresh=\"getEnvironmentParamList\" :isAdd=\"true\"></u-environment-modal>\n <i-modal class=\"diy-modal edit-import-name\" v-model=\"showImportModal\" :mask-closable=\"false\">\n <p slot=\"header\">编辑名称</p>\n <i-form ref=\"import\" :model=\"apiForm\" :rules=\"rules\">\n <i-form-item label=\"环境变量:\" prop=\"envName\">\n <i-input v-model=\"apiForm.envName\"></i-input>\n </i-form-item>\n\n <i-form-item label=\"授权:\" prop=\"authName\">\n <i-input v-model=\"apiForm.authName\"></i-input>\n </i-form-item>\n </i-form>\n <div class=\"handle-btn\" slot=\"footer\">\n <i-button class=\"diy-btn-primary\" type=\"primary\" @click.stop=\"saveImportData(importObj)\">确定</i-button>\n <i-button class=\"diy-btn-text\" @click.stop=\"cancleModify\">取消</i-button>\n </div>\n </i-modal>\n</article>\n"
|
|
15368
|
+
|
|
15369
|
+
/***/ }),
|
|
15370
|
+
|
|
15371
|
+
/***/ "f764":
|
|
15372
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
15373
|
+
|
|
15374
|
+
"use strict";
|
|
15375
|
+
|
|
15376
|
+
// eslint-disable-next-line es/no-typed-arrays -- safe
|
|
15377
|
+
module.exports = typeof ArrayBuffer != 'undefined' && typeof DataView != 'undefined';
|
|
15378
|
+
|
|
14244
15379
|
|
|
14245
15380
|
/***/ }),
|
|
14246
15381
|
|
|
14247
15382
|
/***/ "f9a4":
|
|
14248
15383
|
/***/ (function(module, exports) {
|
|
14249
15384
|
|
|
14250
|
-
module.exports = "<i-switch :class=\"{ 'mid-style': midState }\" :value=\"showValue\" size=\"large\" :true-value=\"1\" :false-value=\"0\" @on-change=\"onChange\" >\
|
|
15385
|
+
module.exports = "<i-switch :class=\"{ 'mid-style': midState }\" :value=\"showValue\" size=\"large\" :true-value=\"1\" :false-value=\"0\" @on-change=\"onChange\" >\n <span slot=\"open\">启用</span>\n <span slot=\"close\">禁用</span>\n</i-switch>"
|
|
14251
15386
|
|
|
14252
15387
|
/***/ }),
|
|
14253
15388
|
|