@egova/egova-api 1.3.17 → 1.3.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.common.js +230 -9
- package/dist/index.css +1 -1
- package/dist/index.umd.js +230 -9
- package/dist/index.umd.min.js +3 -3
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -9169,6 +9169,9 @@ var security_setting_v2_SecuritySettingV2 = /** @class */function (_super) {
|
|
|
9169
9169
|
return SecuritySettingV2;
|
|
9170
9170
|
}(flagwind_web_["Component"]);
|
|
9171
9171
|
/* harmony default export */ var project_detail_security_setting_v2 = (security_setting_v2_SecuritySettingV2);
|
|
9172
|
+
// EXTERNAL MODULE: ./node_modules/.pnpm/core-js@3.35.0/node_modules/core-js/modules/es.array.reduce.js
|
|
9173
|
+
var es_array_reduce = __webpack_require__("8b65");
|
|
9174
|
+
|
|
9172
9175
|
// EXTERNAL MODULE: ./src/views/project-detail/interface-settings/tips-table-label/index.scss
|
|
9173
9176
|
var tips_table_label = __webpack_require__("0a2e");
|
|
9174
9177
|
|
|
@@ -9322,14 +9325,14 @@ var resource_authFlag = [{
|
|
|
9322
9325
|
name: "是"
|
|
9323
9326
|
}];
|
|
9324
9327
|
var logLevelList = [{
|
|
9325
|
-
value:
|
|
9326
|
-
name: "
|
|
9327
|
-
}, {
|
|
9328
|
-
value: 1,
|
|
9329
|
-
name: "记录全部"
|
|
9328
|
+
value: 6,
|
|
9329
|
+
name: "成功请求"
|
|
9330
9330
|
}, {
|
|
9331
9331
|
value: 2,
|
|
9332
|
-
name: "
|
|
9332
|
+
name: "失败请求"
|
|
9333
|
+
}, {
|
|
9334
|
+
value: 5,
|
|
9335
|
+
name: "慢查询"
|
|
9333
9336
|
}];
|
|
9334
9337
|
// EXTERNAL MODULE: ./src/views/project-detail/interface-settings/process-drawer/index.scss
|
|
9335
9338
|
var process_drawer = __webpack_require__("06a8");
|
|
@@ -9368,6 +9371,7 @@ function prefixUrl() {
|
|
|
9368
9371
|
|
|
9369
9372
|
|
|
9370
9373
|
|
|
9374
|
+
|
|
9371
9375
|
var process_drawer_InterfaceModal = /** @class */function (_super) {
|
|
9372
9376
|
__extends(InterfaceModal, _super);
|
|
9373
9377
|
function InterfaceModal() {
|
|
@@ -9433,8 +9437,90 @@ var process_drawer_InterfaceModal = /** @class */function (_super) {
|
|
|
9433
9437
|
_this.isAdding = false;
|
|
9434
9438
|
_this.proxyName = "";
|
|
9435
9439
|
_this.proxyList = [];
|
|
9440
|
+
_this.isSlowLogThresholdValid = true;
|
|
9436
9441
|
return _this;
|
|
9437
9442
|
}
|
|
9443
|
+
Object.defineProperty(InterfaceModal.prototype, "slowLogThreshold", {
|
|
9444
|
+
get: function () {
|
|
9445
|
+
return this.readonly || !this.logSavingEnabledList.includes(5);
|
|
9446
|
+
},
|
|
9447
|
+
enumerable: false,
|
|
9448
|
+
configurable: true
|
|
9449
|
+
});
|
|
9450
|
+
Object.defineProperty(InterfaceModal.prototype, "logSavingEnabledList", {
|
|
9451
|
+
get: function () {
|
|
9452
|
+
var value = this.model.logSavingEnabled || 0;
|
|
9453
|
+
switch (value) {
|
|
9454
|
+
case 0:
|
|
9455
|
+
//不记录任何日志(000)
|
|
9456
|
+
return [];
|
|
9457
|
+
case 1:
|
|
9458
|
+
//只记录成功+失败(111)
|
|
9459
|
+
return [6, 2];
|
|
9460
|
+
case 2:
|
|
9461
|
+
//只记录失败(010)
|
|
9462
|
+
return [2];
|
|
9463
|
+
case 3:
|
|
9464
|
+
//只记录成功+慢(101)
|
|
9465
|
+
return [5, 6];
|
|
9466
|
+
case 4:
|
|
9467
|
+
//只记录失败+慢(011)
|
|
9468
|
+
return [2, 5];
|
|
9469
|
+
case 5:
|
|
9470
|
+
//只记录慢(001)
|
|
9471
|
+
return [5];
|
|
9472
|
+
case 6:
|
|
9473
|
+
//只记录成功(100)
|
|
9474
|
+
return [6];
|
|
9475
|
+
case 7:
|
|
9476
|
+
//只记录成功+慢+失败(111)
|
|
9477
|
+
return [5, 2, 6];
|
|
9478
|
+
default:
|
|
9479
|
+
return [2];
|
|
9480
|
+
}
|
|
9481
|
+
},
|
|
9482
|
+
set: function (value) {
|
|
9483
|
+
var num,
|
|
9484
|
+
finallySum = 0;
|
|
9485
|
+
num = value.reduce(function (sum, v) {
|
|
9486
|
+
return sum + v;
|
|
9487
|
+
}, 0);
|
|
9488
|
+
switch (num) {
|
|
9489
|
+
case 0:
|
|
9490
|
+
case 2:
|
|
9491
|
+
case 5:
|
|
9492
|
+
case 6:
|
|
9493
|
+
finallySum = num;
|
|
9494
|
+
break;
|
|
9495
|
+
case 8:
|
|
9496
|
+
//只记录成功+失败(110)
|
|
9497
|
+
finallySum = 1;
|
|
9498
|
+
break;
|
|
9499
|
+
case 11:
|
|
9500
|
+
//只记录成功+慢(101)
|
|
9501
|
+
finallySum = 3;
|
|
9502
|
+
break;
|
|
9503
|
+
case 7:
|
|
9504
|
+
//只记录失败+慢(011)
|
|
9505
|
+
finallySum = 4;
|
|
9506
|
+
break;
|
|
9507
|
+
case 13:
|
|
9508
|
+
//只记录成功+慢+失败(111)
|
|
9509
|
+
finallySum = 7;
|
|
9510
|
+
break;
|
|
9511
|
+
default:
|
|
9512
|
+
finallySum = 2;
|
|
9513
|
+
break;
|
|
9514
|
+
}
|
|
9515
|
+
this.model.logSavingEnabled = finallySum;
|
|
9516
|
+
if (!value.includes(5)) {
|
|
9517
|
+
this.model.slowLogThreshold = "";
|
|
9518
|
+
this.isSlowLogThresholdValid = true;
|
|
9519
|
+
}
|
|
9520
|
+
},
|
|
9521
|
+
enumerable: false,
|
|
9522
|
+
configurable: true
|
|
9523
|
+
});
|
|
9438
9524
|
InterfaceModal.prototype.onStatusCodeChange = function (newVal) {
|
|
9439
9525
|
var _this = this;
|
|
9440
9526
|
if (newVal !== "2") {
|
|
@@ -9533,12 +9619,32 @@ var process_drawer_InterfaceModal = /** @class */function (_super) {
|
|
|
9533
9619
|
retryCode: [{
|
|
9534
9620
|
validator: this.validateRetryCode,
|
|
9535
9621
|
trigger: "blur,change"
|
|
9622
|
+
}],
|
|
9623
|
+
slowLogThreshold: [{
|
|
9624
|
+
validator: this.validateSlowLogThreshold,
|
|
9625
|
+
required: false,
|
|
9626
|
+
trigger: "blur,change"
|
|
9536
9627
|
}]
|
|
9537
9628
|
};
|
|
9538
9629
|
return [2 /*return*/];
|
|
9539
9630
|
});
|
|
9540
9631
|
});
|
|
9541
9632
|
};
|
|
9633
|
+
InterfaceModal.prototype.validateSlowLogThreshold = function (rule, value, callback) {
|
|
9634
|
+
if (this.slowLogThreshold) {
|
|
9635
|
+
this.isSlowLogThresholdValid = true;
|
|
9636
|
+
callback();
|
|
9637
|
+
return;
|
|
9638
|
+
}
|
|
9639
|
+
var num = Number(value);
|
|
9640
|
+
if (isNaN(num) || num <= 0) {
|
|
9641
|
+
this.isSlowLogThresholdValid = false;
|
|
9642
|
+
callback(new Error("请输入正数"));
|
|
9643
|
+
} else {
|
|
9644
|
+
this.isSlowLogThresholdValid = true;
|
|
9645
|
+
callback();
|
|
9646
|
+
}
|
|
9647
|
+
};
|
|
9542
9648
|
InterfaceModal.prototype.validateCategoryId = function (rule, value, callback) {
|
|
9543
9649
|
if (!value) {
|
|
9544
9650
|
this.isCategoryIdValid = false;
|
|
@@ -9710,11 +9816,10 @@ var process_drawer_InterfaceModal = /** @class */function (_super) {
|
|
|
9710
9816
|
try {
|
|
9711
9817
|
(_b = (_a = this.$refs.configform) === null || _a === void 0 ? void 0 : _a.resetFields) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
9712
9818
|
} catch (error) {
|
|
9713
|
-
console.warn(
|
|
9819
|
+
console.warn("resetFields 执行失败:", error);
|
|
9714
9820
|
}
|
|
9715
9821
|
this.resetForm();
|
|
9716
9822
|
}
|
|
9717
|
-
;
|
|
9718
9823
|
if (!this.show) {
|
|
9719
9824
|
this.readonly = false;
|
|
9720
9825
|
this.isAdding = false;
|
|
@@ -9741,6 +9846,9 @@ var process_drawer_InterfaceModal = /** @class */function (_super) {
|
|
|
9741
9846
|
});
|
|
9742
9847
|
});
|
|
9743
9848
|
};
|
|
9849
|
+
InterfaceModal.prototype.onSlowLogThresholdChange = function (newVal) {
|
|
9850
|
+
this.$refs.configform.validateField("slowLogThreshold");
|
|
9851
|
+
};
|
|
9744
9852
|
InterfaceModal.prototype.enableRetryChange = function (newval, oldVal) {
|
|
9745
9853
|
var _a, _b;
|
|
9746
9854
|
if (newval === "false") {
|
|
@@ -9845,6 +9953,9 @@ var process_drawer_InterfaceModal = /** @class */function (_super) {
|
|
|
9845
9953
|
immediate: true
|
|
9846
9954
|
})], InterfaceModal.prototype, "changeInputStatus", null);
|
|
9847
9955
|
__decorate([Object(flagwind_web_["watch"])("show")], InterfaceModal.prototype, "freshApiTree", null);
|
|
9956
|
+
__decorate([Object(flagwind_web_["watch"])("slowLogThreshold", {
|
|
9957
|
+
immediate: true
|
|
9958
|
+
})], InterfaceModal.prototype, "onSlowLogThresholdChange", null);
|
|
9848
9959
|
__decorate([Object(flagwind_web_["watch"])("model.enableRetry", {
|
|
9849
9960
|
immediate: true
|
|
9850
9961
|
})], InterfaceModal.prototype, "enableRetryChange", null);
|
|
@@ -11904,7 +12015,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__3fb3__;
|
|
|
11904
12015
|
/***/ "40aa":
|
|
11905
12016
|
/***/ (function(module, exports) {
|
|
11906
12017
|
|
|
11907
|
-
module.exports = "<!DOCTYPE html>\r\n<i-drawer\r\n width=\"700\"\r\n draggable\r\n sticky\r\n reset-drag-position\r\n v-model=\"show\"\r\n class=\"interface-modal diy-modal\"\r\n transfer\r\n title=\"已关联流程配置\"\r\n :mask-closable=\"false\"\r\n @on-cancel=\"onCancel\"\r\n>\r\n <div class=\"header\">\r\n <i-select v-model=\"proxyName\" :placeholder=\"proxyList?.length ? `已有${proxyList?.length}个代理服务`:'暂无数据'\" @on-select=\"selectProxyName\"> \r\n <i-option v-for=\"item in proxyList\" :value=\"item.id\" :key=\"item.id\">\r\n {{item.name}}\r\n </i-option>\r\n </i-select>\r\n <i-button class=\"diy-btn-primary\" type=\"primary\" @click=\"onAdd\">新增配置</i-button>\r\n </div>\r\n\r\n <template>\r\n <i-form v-show=\"proxyName || isAdding \" ref=\"configform\" label-position=\"left\" :label-width=\"125\" label-colon :rules=\"rulesValidate\" :model=\"model\">\r\n <div class=\"form-title\">{{formTitle}}</div>\r\n <i-form-item v-show=\"isAdding\" label=\"所属分类\" prop=\"categoryId\" class=\"proxy-category-validate\" required>\r\n <u-tree-selector\r\n :treeData=\"categoryList\"\r\n :canChooseFolder=\"true\"\r\n v-model=\"model.categoryId\"\r\n @on-select=\"selectCategory\"\r\n placeholder=\"请选择所属分类\"\r\n ></u-tree-selector>\r\n </i-form-item>\r\n <i-form-item label=\"代理名称\" prop=\"name\" class=\"proxy-name-validate\" required>\r\n <i-input class=\"diy-input\" v-model=\"model.name\" placeholder=\"请输入代理名称\"></i-input>\r\n </i-form-item>\r\n <i-form-item class=\"proxy-name-validate\" prop=\"code\" label=\"接口编码\" required>\r\n <i-input class=\"diy-input\" v-model=\"model.code\" placeholder=\"请输入接口编码\"></i-input>\r\n </i-form-item>\r\n <i-form-item class=\"un-required-item copy-item\" label=\"接口地址\">\r\n <i-input class=\"diy-input\" disabled :value=\"url\"></i-input>\r\n <div class=\"set-btn\" @click=\"onCopy(url)\">复制</div>\r\n </i-form-item>\r\n <i-form-item label=\"描述\" prop=\"description\" class=\"proxy-description-validate un-required-item\">\r\n <i-input type=\"textarea\" v-model=\"model.description\" placeholder=\"请输入描述\" :rows=\"2\"></i-input>\r\n </i-form-item>\r\n <i-row class=\"retry-wrap\" style=\"padding-top: 8px\">\r\n <i-col span=\"11\">\r\n <i-form-item class=\"un-required-item copy-item\">\r\n <template #label>\r\n <i-poptip\r\n slot=\"label\"\r\n trigger=\"hover\"\r\n content=\"日志表会记录请求头、请求参数和响应体,如果内容较多时建议关闭,请求次数频繁比较占数据库资源。选项【失败】仅记录调用失败的日志\"\r\n word-wrap\r\n transfer\r\n >\r\n <icon style=\"cursor: help; font-size: 0.16rem\" type=\"ios-information-circle-outline\" />\r\n </i-poptip>\r\n <span>记录日志:</span>\r\n </template>\r\n\r\n <i-select class=\"diy-select\" v-model=\"model.logSavingEnabled\" @on-change=\"onLogSavingEnabledChange\">\r\n <i-option v-for=\"item in loginLevelFlag\" :value=\"item.value\" :key=\"item.value\">{{ item.name }}</i-option>\r\n </i-select>\r\n </i-form-item>\r\n </i-col>\r\n </i-row>\r\n <template v-if=\"model.logSavingEnabled\">\r\n <i-row class=\"retry-wrap\">\r\n <i-col span=\"11\">\r\n <i-form-item label=\"开启重推\" required>\r\n <i-select class=\"diy-select\" v-model=\"model.enableRetry\">\r\n <i-option v-for=\"(item,index) in isRetryList\" :value=\"item.value\" :key=\"index\">{{ item.name }}</i-option>\r\n </i-select>\r\n </i-form-item>\r\n </i-col>\r\n <i-col span=\"11\">\r\n <i-form-item class=\"un-required-item\" label=\"重推次数\" prop=\"retryTimes\">\r\n <tips-table-label class=\"data-type-tips\" slot=\"label\" label-colon labelTitle=\"重推次数\"></tips-table-label>\r\n <i-input class=\"diy-input\" type=\"number\" :disabled=\"isRetryTimesReadonly\" v-model=\"model.retryTimes\" placeholder=\"请输入重推次数\"></i-input>\r\n </i-form-item>\r\n </i-col>\r\n </i-row>\r\n <i-row v-show=\"model.enableRetry === 'true' \">\r\n <i-col span=\"11\">\r\n <i-form-item class=\"un-required-item status-code\">\r\n <template #label>\r\n <i-poptip slot=\"label\" trigger=\"hover\" content=\"当接口状态码和配置项相同时,才触发重推;多个自定义状态码以英文逗号分隔\" word-wrap transfer>\r\n <icon style=\"cursor: help; font-size: 0.16rem\" type=\"ios-information-circle-outline\" />\r\n </i-poptip>\r\n <span>重推接口状态码:</span>\r\n </template>\r\n <i-form-item>\r\n <i-select v-model=\"statusCode\" class=\"diy-select code-select\" @on-change=\"onStatusCodeChange\">\r\n <i-option v-for=\"item in statusCodeList\" :value=\"item.value\" :key=\"item.value\">{{ item.name }}</i-option>\r\n </i-select>\r\n </i-form-item>\r\n <i-form-item prop=\"retryCode\">\r\n <i-input v-show=\"statusCode === '2'\" class=\"diy-input\" v-model=\"model.retryCode\" placeholder=\"请输入状态码\"></i-input>\r\n </i-form-item>\r\n </i-form-item>\r\n </i-col>\r\n </i-row>\r\n </template>\r\n\r\n <i-row class=\"retry-wrap\">\r\n <i-col span=\"11\">\r\n <i-form-item label=\"需要认证\" class=\"un-required-item copy-item\">\r\n <i-select class=\"diy-select\" style=\"margin-top: 6px\" v-model=\"model.authFlag\">\r\n <i-option v-for=\"item in authFlag\" :value=\"item.value\" :key=\"item.value\">{{ item.name }}</i-option>\r\n </i-select>\r\n </i-form-item>\r\n </i-col>\r\n <i-col span=\"11\">\r\n <i-form-item class=\"un-required-item copy-item\">\r\n <template #label>\r\n <i-poptip slot=\"label\" trigger=\"hover\" content=\"使用用户中心token访问该接口时,将校验登陆是否拥有该资源代码的权限\" word-wrap transfer>\r\n <icon style=\"cursor: help; font-size: 0.16rem\" type=\"ios-information-circle-outline\" />\r\n </i-poptip>\r\n <span>用户中心资源代码:</span>\r\n </template>\r\n <i-input\r\n class=\"diy-input\"\r\n style=\"margin-top: 6px\"\r\n v-model=\"model.resourceCode\"\r\n :disabled=\"!isResourceCodeEnabled\"\r\n placeholder=\"请输入用户中心资源代码\"\r\n ></i-input>\r\n </i-form-item>\r\n </i-col>\r\n </i-row>\r\n <template>\r\n <i-row class=\"retry-wrap\">\r\n <i-col span=\"11\">\r\n <i-form-item label=\"代理类型\">\r\n <i-input class=\"diy-input\" value=\"外部接口\" disabled></i-input>\r\n </i-form-item>\r\n </i-col>\r\n <i-col span=\"11\">\r\n <i-form-item label=\"API项目\">\r\n <i-select disabled class=\"diy-select\" v-model=\"apiModel.projectId\">\r\n <i-option v-for=\"(item,index) in projectList\" :value=\"item.id\" :key=\"item.id\">{{ item.name }}</i-option>\r\n </i-select>\r\n </i-form-item>\r\n </i-col>\r\n </i-row>\r\n <i-form-item label=\"API接口\">\r\n <u-tree-selector\r\n readonly\r\n :treeData=\"apiTree\"\r\n leaf-name=\"apis\"\r\n v-model=\"apiModel.typeId\"\r\n placeholder=\"请选择API接口\"\r\n @on-select=\"onApiTreeSelect\"\r\n ></u-tree-selector>\r\n </i-form-item>\r\n <i-form-item label=\"接口路径\">\r\n <i-input class=\"diy-input\" :readonly=\"true\" v-model=\"apiModel.path\" :rows=\"4\"></i-input>\r\n </i-form-item>\r\n </template>\r\n </i-form>\r\n </template>\r\n <i-table v-if=\"proxyName || isAdding\" class=\"diy-table\" height=\"200\" :columns=\"apiColumns\" :data=\"apiParamList\"> </i-table>\r\n <div v-if=\"!proxyName && !isAdding \" class=\"no-data\">暂无数据</div>\r\n <div class=\"footer\">\r\n <i-button class=\"diy-btn-primary\" type=\"primary\" :loading=\"loading\" @click.stop=\"onSave\">保存</i-button>\r\n <i-button class=\"diy-btn-default\" @click.stop=\"onCancel\">取消</i-button>\r\n </div>\r\n</i-drawer>\r\n"
|
|
12018
|
+
module.exports = "<!DOCTYPE html>\r\n<i-drawer\r\n width=\"700\"\r\n draggable\r\n sticky\r\n reset-drag-position\r\n v-model=\"show\"\r\n class=\"interface-modal diy-modal\"\r\n transfer\r\n title=\"已关联流程配置\"\r\n :mask-closable=\"false\"\r\n @on-cancel=\"onCancel\"\r\n>\r\n <div class=\"header\">\r\n <i-select v-model=\"proxyName\" :placeholder=\"proxyList?.length ? `已有${proxyList?.length}个代理服务`:'暂无数据'\" @on-select=\"selectProxyName\">\r\n <i-option v-for=\"item in proxyList\" :value=\"item.id\" :key=\"item.id\"> {{item.name}} </i-option>\r\n </i-select>\r\n <i-button class=\"diy-btn-primary\" type=\"primary\" @click=\"onAdd\">新增配置</i-button>\r\n </div>\r\n\r\n <template>\r\n <i-form v-show=\"proxyName || isAdding \" ref=\"configform\" label-position=\"left\" :label-width=\"125\" label-colon :rules=\"rulesValidate\" :model=\"model\">\r\n <div class=\"form-title\">{{formTitle}}</div>\r\n <i-form-item v-show=\"isAdding\" label=\"所属分类\" prop=\"categoryId\" class=\"proxy-category-validate\" required>\r\n <u-tree-selector\r\n :treeData=\"categoryList\"\r\n :canChooseFolder=\"true\"\r\n v-model=\"model.categoryId\"\r\n @on-select=\"selectCategory\"\r\n placeholder=\"请选择所属分类\"\r\n ></u-tree-selector>\r\n </i-form-item>\r\n <i-form-item label=\"代理名称\" prop=\"name\" class=\"proxy-name-validate\" required>\r\n <i-input class=\"diy-input\" v-model=\"model.name\" placeholder=\"请输入代理名称\"></i-input>\r\n </i-form-item>\r\n <i-form-item class=\"proxy-name-validate\" prop=\"code\" label=\"接口编码\" required>\r\n <i-input class=\"diy-input\" v-model=\"model.code\" placeholder=\"请输入接口编码\"></i-input>\r\n </i-form-item>\r\n <i-form-item class=\"un-required-item copy-item\" label=\"接口地址\">\r\n <i-input class=\"diy-input\" disabled :value=\"url\"></i-input>\r\n <div class=\"set-btn\" @click=\"onCopy(url)\">复制</div>\r\n </i-form-item>\r\n <i-form-item label=\"描述\" prop=\"description\" class=\"proxy-description-validate un-required-item\">\r\n <i-input type=\"textarea\" v-model=\"model.description\" placeholder=\"请输入描述\" :rows=\"2\"></i-input>\r\n </i-form-item>\r\n <i-row class=\"retry-wrap\" style=\"padding-top: 8px\">\r\n <i-col span=\"24\">\r\n <i-form-item class=\"un-required-item copy-item\">\r\n <template #label>\r\n <i-poptip slot=\"label\" trigger=\"hover\" word-wrap transfer>\r\n <icon style=\"cursor: help; font-size: 0.16rem\" type=\"ios-information-circle-outline\" />\r\n <div slot=\"content\" style=\"width: 3rem\">\r\n <span style=\"font-size: 0.14rem\"\r\n >在右侧勾选日志记录的请求类型。需记录慢接口时,可以设置最小耗时阈值(大于该值将记录日志),不勾选时则不记录。日志表会记录请求头、请求参数和响应体,如果内容较多时建议关闭,请求次数频繁比较占数据库资源。选项【失败】仅记录调用失败的日志</span\r\n >\r\n </div>\r\n </i-poptip>\r\n <span>记录日志:</span>\r\n </template>\r\n <i-checkboxGroup class=\"diy-checkbox\" v-model=\"logSavingEnabledList\">\r\n <i-checkbox v-for=\"item in loginLevelFlag\" :disabled=\"readonly\" :label=\"item.value\">{{ item.name }}</i-checkbox>\r\n </i-checkboxGroup>\r\n <i-form-item class=\"slow-log-threshold\" prop=\"slowLogThreshold\">\r\n >\r\n <i-input class=\"diy-input\" type=\"number\" :disabled=\"slowLogThreshold\" v-model=\"model.slowLogThreshold\"> </i-input>\r\n 毫秒\r\n </i-form-item>\r\n </i-form-item>\r\n </i-col>\r\n </i-row>\r\n <template v-if=\"model.logSavingEnabled\">\r\n <i-row class=\"retry-wrap\">\r\n <i-col span=\"11\">\r\n <i-form-item label=\"开启重推\" required>\r\n <i-select class=\"diy-select\" v-model=\"model.enableRetry\">\r\n <i-option v-for=\"(item,index) in isRetryList\" :value=\"item.value\" :key=\"index\">{{ item.name }}</i-option>\r\n </i-select>\r\n </i-form-item>\r\n </i-col>\r\n <i-col span=\"11\">\r\n <i-form-item class=\"un-required-item\" label=\"重推次数\" prop=\"retryTimes\">\r\n <tips-table-label class=\"data-type-tips\" slot=\"label\" label-colon labelTitle=\"重推次数\"></tips-table-label>\r\n <i-input class=\"diy-input\" type=\"number\" :disabled=\"isRetryTimesReadonly\" v-model=\"model.retryTimes\" placeholder=\"请输入重推次数\"></i-input>\r\n </i-form-item>\r\n </i-col>\r\n </i-row>\r\n <i-row v-show=\"model.enableRetry === 'true' \">\r\n <i-col span=\"11\">\r\n <i-form-item class=\"un-required-item status-code\">\r\n <template #label>\r\n <i-poptip slot=\"label\" trigger=\"hover\" content=\"当接口状态码和配置项相同时,才触发重推;多个自定义状态码以英文逗号分隔\" word-wrap transfer>\r\n <icon style=\"cursor: help; font-size: 0.16rem\" type=\"ios-information-circle-outline\" />\r\n </i-poptip>\r\n <span>重推接口状态码:</span>\r\n </template>\r\n <i-form-item>\r\n <i-select v-model=\"statusCode\" class=\"diy-select code-select\" @on-change=\"onStatusCodeChange\">\r\n <i-option v-for=\"item in statusCodeList\" :value=\"item.value\" :key=\"item.value\">{{ item.name }}</i-option>\r\n </i-select>\r\n </i-form-item>\r\n <i-form-item prop=\"retryCode\">\r\n <i-input v-show=\"statusCode === '2'\" class=\"diy-input\" v-model=\"model.retryCode\" placeholder=\"请输入状态码\"></i-input>\r\n </i-form-item>\r\n </i-form-item>\r\n </i-col>\r\n </i-row>\r\n </template>\r\n\r\n <i-row class=\"retry-wrap\">\r\n <i-col span=\"11\">\r\n <i-form-item label=\"需要认证\" class=\"un-required-item copy-item\">\r\n <i-select class=\"diy-select\" style=\"margin-top: 6px\" v-model=\"model.authFlag\">\r\n <i-option v-for=\"item in authFlag\" :value=\"item.value\" :key=\"item.value\">{{ item.name }}</i-option>\r\n </i-select>\r\n </i-form-item>\r\n </i-col>\r\n <i-col span=\"11\">\r\n <i-form-item class=\"un-required-item copy-item\">\r\n <template #label>\r\n <i-poptip slot=\"label\" trigger=\"hover\" content=\"使用用户中心token访问该接口时,将校验登陆是否拥有该资源代码的权限\" word-wrap transfer>\r\n <icon style=\"cursor: help; font-size: 0.16rem\" type=\"ios-information-circle-outline\" />\r\n </i-poptip>\r\n <span>用户中心资源代码:</span>\r\n </template>\r\n <i-input\r\n class=\"diy-input\"\r\n style=\"margin-top: 6px\"\r\n v-model=\"model.resourceCode\"\r\n :disabled=\"!isResourceCodeEnabled\"\r\n placeholder=\"请输入用户中心资源代码\"\r\n ></i-input>\r\n </i-form-item>\r\n </i-col>\r\n </i-row>\r\n <template>\r\n <i-row class=\"retry-wrap\">\r\n <i-col span=\"11\">\r\n <i-form-item label=\"代理类型\">\r\n <i-input class=\"diy-input\" value=\"外部接口\" disabled></i-input>\r\n </i-form-item>\r\n </i-col>\r\n <i-col span=\"11\">\r\n <i-form-item label=\"API项目\">\r\n <i-select disabled class=\"diy-select\" v-model=\"apiModel.projectId\">\r\n <i-option v-for=\"(item,index) in projectList\" :value=\"item.id\" :key=\"item.id\">{{ item.name }}</i-option>\r\n </i-select>\r\n </i-form-item>\r\n </i-col>\r\n </i-row>\r\n <i-form-item label=\"API接口\">\r\n <u-tree-selector\r\n readonly\r\n :treeData=\"apiTree\"\r\n leaf-name=\"apis\"\r\n v-model=\"apiModel.typeId\"\r\n placeholder=\"请选择API接口\"\r\n @on-select=\"onApiTreeSelect\"\r\n ></u-tree-selector>\r\n </i-form-item>\r\n <i-form-item label=\"接口路径\">\r\n <i-input class=\"diy-input\" :readonly=\"true\" v-model=\"apiModel.path\" :rows=\"4\"></i-input>\r\n </i-form-item>\r\n </template>\r\n </i-form>\r\n </template>\r\n <i-table v-if=\"proxyName || isAdding\" class=\"diy-table\" height=\"200\" :columns=\"apiColumns\" :data=\"apiParamList\"> </i-table>\r\n <div v-if=\"!proxyName && !isAdding \" class=\"no-data\">暂无数据</div>\r\n <div class=\"footer\">\r\n <i-button class=\"diy-btn-primary\" type=\"primary\" :loading=\"loading\" @click.stop=\"onSave\">保存</i-button>\r\n <i-button class=\"diy-btn-default\" @click.stop=\"onCancel\">取消</i-button>\r\n </div>\r\n</i-drawer>\r\n"
|
|
11908
12019
|
|
|
11909
12020
|
/***/ }),
|
|
11910
12021
|
|
|
@@ -14122,6 +14233,85 @@ module.exports = function (argument) {
|
|
|
14122
14233
|
|
|
14123
14234
|
module.exports = "<article class=\"pre-execution-setting\">\r\n <section class=\"script\">\r\n <div class=\"script-title\">\r\n <div class=\"empty\"></div>\r\n <div class=\"script-btns\">\r\n <span @click=\"onViewMax\"><i class=\"iconfont icon-zuidahua1\"></i>{{viewMax ? \"还原显示\" : \"最大化\"}}</span>\r\n <span @click=\"onSave\"><i class=\"iconfont icon-baocun1\"></i>保存</span>\r\n <span @click=\"onRun\"><i class=\"iconfont icon-run1\"></i>RUN</span>\r\n <span @click=\"onSearch\"><i class=\"iconfont icon-search\"></i>搜索</span>\r\n </div>\r\n </div>\r\n <u-editor\r\n v-if=\"refreshEditor\"\r\n class=\"editor\"\r\n :model.sync=\"script\"\r\n :diyKeywordList=\"diyKeywordList\"\r\n lang=\"groovy\"\r\n @inited=\"onEditorInited\"\r\n >\r\n </u-editor>\r\n </section>\r\n <section class=\"quick-input\">\r\n <div class=\"info\">\r\n <p>{{scriptData.description}}</p>\r\n <!-- <ul>\r\n <li>request: 请求</li>\r\n </ul> -->\r\n </div>\r\n <i-input class=\"diy-input\" v-model=\"keyword\" @on-change=\"onFilter\" placeholder=\"输入关键字查询\">\r\n <i class=\"iconfont icon-chaxun\" slot=\"prefix\"></i>\r\n </i-input>\r\n <div class=\"quick-list\">\r\n <div v-for=\"type in tempScriptData.group\" class=\"quick-type\">\r\n <div class=\"quick-type-name\" @click=\"onQuickGroupClick(type)\">\r\n <i-icon type=\"md-arrow-dropright\" :class=\"type.expand ? 'expand' : ''\"/>\r\n <p>{{type.name}}</p>\r\n </div>\r\n <div\r\n v-show=\"type.expand\"\r\n v-for=\"item in type.list\"\r\n :key=\"item.name\"\r\n class=\"quick-item\"\r\n @click=\"onClickItem(item)\"\r\n >\r\n <i class=\"api-icon icon-item\"></i> {{item.name}}\r\n </div>\r\n </div>\r\n </div>\r\n </section>\r\n</article>\r\n"
|
|
14124
14235
|
|
|
14236
|
+
/***/ }),
|
|
14237
|
+
|
|
14238
|
+
/***/ "8ad0":
|
|
14239
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
14240
|
+
|
|
14241
|
+
"use strict";
|
|
14242
|
+
|
|
14243
|
+
var aCallable = __webpack_require__("7801");
|
|
14244
|
+
var toObject = __webpack_require__("e614");
|
|
14245
|
+
var IndexedObject = __webpack_require__("5ee5");
|
|
14246
|
+
var lengthOfArrayLike = __webpack_require__("d631");
|
|
14247
|
+
|
|
14248
|
+
var $TypeError = TypeError;
|
|
14249
|
+
|
|
14250
|
+
// `Array.prototype.{ reduce, reduceRight }` methods implementation
|
|
14251
|
+
var createMethod = function (IS_RIGHT) {
|
|
14252
|
+
return function (that, callbackfn, argumentsLength, memo) {
|
|
14253
|
+
var O = toObject(that);
|
|
14254
|
+
var self = IndexedObject(O);
|
|
14255
|
+
var length = lengthOfArrayLike(O);
|
|
14256
|
+
aCallable(callbackfn);
|
|
14257
|
+
var index = IS_RIGHT ? length - 1 : 0;
|
|
14258
|
+
var i = IS_RIGHT ? -1 : 1;
|
|
14259
|
+
if (argumentsLength < 2) while (true) {
|
|
14260
|
+
if (index in self) {
|
|
14261
|
+
memo = self[index];
|
|
14262
|
+
index += i;
|
|
14263
|
+
break;
|
|
14264
|
+
}
|
|
14265
|
+
index += i;
|
|
14266
|
+
if (IS_RIGHT ? index < 0 : length <= index) {
|
|
14267
|
+
throw new $TypeError('Reduce of empty array with no initial value');
|
|
14268
|
+
}
|
|
14269
|
+
}
|
|
14270
|
+
for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {
|
|
14271
|
+
memo = callbackfn(memo, self[index], index, O);
|
|
14272
|
+
}
|
|
14273
|
+
return memo;
|
|
14274
|
+
};
|
|
14275
|
+
};
|
|
14276
|
+
|
|
14277
|
+
module.exports = {
|
|
14278
|
+
// `Array.prototype.reduce` method
|
|
14279
|
+
// https://tc39.es/ecma262/#sec-array.prototype.reduce
|
|
14280
|
+
left: createMethod(false),
|
|
14281
|
+
// `Array.prototype.reduceRight` method
|
|
14282
|
+
// https://tc39.es/ecma262/#sec-array.prototype.reduceright
|
|
14283
|
+
right: createMethod(true)
|
|
14284
|
+
};
|
|
14285
|
+
|
|
14286
|
+
|
|
14287
|
+
/***/ }),
|
|
14288
|
+
|
|
14289
|
+
/***/ "8b65":
|
|
14290
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
14291
|
+
|
|
14292
|
+
"use strict";
|
|
14293
|
+
|
|
14294
|
+
var $ = __webpack_require__("82ef");
|
|
14295
|
+
var $reduce = __webpack_require__("8ad0").left;
|
|
14296
|
+
var arrayMethodIsStrict = __webpack_require__("d631e");
|
|
14297
|
+
var CHROME_VERSION = __webpack_require__("ad8b");
|
|
14298
|
+
var IS_NODE = __webpack_require__("f511");
|
|
14299
|
+
|
|
14300
|
+
// Chrome 80-82 has a critical bug
|
|
14301
|
+
// https://bugs.chromium.org/p/chromium/issues/detail?id=1049982
|
|
14302
|
+
var CHROME_BUG = !IS_NODE && CHROME_VERSION > 79 && CHROME_VERSION < 83;
|
|
14303
|
+
var FORCED = CHROME_BUG || !arrayMethodIsStrict('reduce');
|
|
14304
|
+
|
|
14305
|
+
// `Array.prototype.reduce` method
|
|
14306
|
+
// https://tc39.es/ecma262/#sec-array.prototype.reduce
|
|
14307
|
+
$({ target: 'Array', proto: true, forced: FORCED }, {
|
|
14308
|
+
reduce: function reduce(callbackfn /* , initialValue */) {
|
|
14309
|
+
var length = arguments.length;
|
|
14310
|
+
return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);
|
|
14311
|
+
}
|
|
14312
|
+
});
|
|
14313
|
+
|
|
14314
|
+
|
|
14125
14315
|
/***/ }),
|
|
14126
14316
|
|
|
14127
14317
|
/***/ "8b9b":
|
|
@@ -15302,6 +15492,24 @@ module.exports = function (obj) {
|
|
|
15302
15492
|
};
|
|
15303
15493
|
|
|
15304
15494
|
|
|
15495
|
+
/***/ }),
|
|
15496
|
+
|
|
15497
|
+
/***/ "d631e":
|
|
15498
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
15499
|
+
|
|
15500
|
+
"use strict";
|
|
15501
|
+
|
|
15502
|
+
var fails = __webpack_require__("10a7");
|
|
15503
|
+
|
|
15504
|
+
module.exports = function (METHOD_NAME, argument) {
|
|
15505
|
+
var method = [][METHOD_NAME];
|
|
15506
|
+
return !!method && fails(function () {
|
|
15507
|
+
// eslint-disable-next-line no-useless-call -- required for testing
|
|
15508
|
+
method.call(null, argument || function () { return 1; }, 1);
|
|
15509
|
+
});
|
|
15510
|
+
};
|
|
15511
|
+
|
|
15512
|
+
|
|
15305
15513
|
/***/ }),
|
|
15306
15514
|
|
|
15307
15515
|
/***/ "d63e":
|
|
@@ -16235,6 +16443,19 @@ module.exports = function (bitmap, value) {
|
|
|
16235
16443
|
|
|
16236
16444
|
module.exports = "<article class=\"interface-settings\" :class=\"{'script-max': scriptView}\">\r\n <header v-show=\"!scriptView\">\r\n <!-- <i-input class=\"diy-input\" v-model=\"interfaceModel.info.url\">-->\r\n <!-- <i-select transfer slot=\"prepend\" class=\"diy-select\" v-model=\"interfaceModel.info.method\">-->\r\n <!-- <i-option v-for=\"item in typeList\" :key=\"item.value\" :value=\"item.value\">{{item.text}}</i-option>-->\r\n <!-- </i-select>-->\r\n <!-- </i-input>-->\r\n <i-select class=\"diy-select method-select\" v-model=\"interfaceModel.info.method\">\r\n <i-option v-for=\"item in typeList\" :key=\"item.value\" :value=\"item.value\">{{item.text}}</i-option>\r\n </i-select>\r\n <i-select ref=\"addEnvParamSelect\" class=\"diy-select env-select\" v-model=\"interfaceModel.info.envId\" placeholder=\"请选择环境变量\" clearable>\r\n <i-option v-for=\"item in paramList\" :key=\"item.id\" :value=\"item.id\">{{item.name + \":\" + item.value}}</i-option>\r\n <i-option class=\"add-security-item\" value=\"''\">\r\n <div class=\"add-security-item-content\" @click.stop=\"onAddEnvParam\">\r\n <i class=\"api-icon icon-add\"></i>\r\n <span>新增环境变量</span>\r\n </div>\r\n </i-option>\r\n </i-select>\r\n <i-poptip class=\"url-poptip\" v-if=\"interfaceModel.info.url\" trigger=\"hover\" :content=\"interfaceModel.info.url\" transfer>\r\n <i-input class=\"diy-input url-input\" v-model=\"interfaceModel.info.url\"></i-input>\r\n </i-poptip>\r\n <i-input v-else class=\"diy-input url-input\" v-model=\"interfaceModel.info.url\"></i-input>\r\n\r\n <i-button type=\"primary\" class=\"diy-btn-primary submit-btn\" @click=\"onRun\">发送</i-button>\r\n <i-button type=\"primary\" class=\"diy-btn-primary\" @click=\"onSave\" ghost>保存</i-button>\r\n <i-button type=\"primary\" class=\"diy-btn-primary process-btn\" @click=\"onProcess\" ghost>流程配置</i-button>\r\n <i-button type=\"primary\" class=\"diy-btn-primary his-btn\" @click=\"onVersion\" ghost>查看历史版本</i-button>\r\n <i class=\"export iconfont icon-xiazai\" title=\"导出\" type=\"md-download\" @click=\"onExport\"></i>\r\n <i-upload action=\"\" :before-upload=\"onImport\" :show-upload-list=\"false\">\r\n <i class=\"import iconfont icon-shangchuan\" title=\"导入\" type=\"md-cloud-upload\"></i>\r\n </i-upload>\r\n </header>\r\n <main :class=\"{'transverse': !lengthwise}\">\r\n <section class=\"request\">\r\n <div v-show=\"!scriptView\" class=\"request-bar\">\r\n <div\r\n class=\"tag\"\r\n :class=\"{'active': currentRequestSettingType.name.indexOf(item.name) === 0}\"\r\n v-for=\"(item,index) in requertSettingTypeList\"\r\n :key=\"item.name\"\r\n @click=\"onClickRequertSettingTpye(item)\"\r\n >\r\n <span>{{item.title}}</span>\r\n </div>\r\n </div>\r\n <div class=\"request-content\">\r\n <component\r\n :is=\"currentRequestSettingType.name\"\r\n :lengthwise=\"lengthwise\"\r\n :interface-model=\"interfaceModel\"\r\n :response=\"response\"\r\n :key=\"interfaceModel.info.id + currentRequestSettingType.name\"\r\n :projectID=\"projectId\"\r\n :currentSecurityID=\"currentId\"\r\n :errorLine=\"!originId || originId === interfaceModel.info.id ? errorLine : []\"\r\n :formData=\"formData\"\r\n @on-current-id=\"onCurrentId\"\r\n @on-script-run=\"onScriptRun\"\r\n @on-script-save=\"onSave\"\r\n @on-script-max=\"onScriptMax\"\r\n ></component>\r\n </div>\r\n </section>\r\n <response :key=\"interfaceModel.info.id + 'response'\" :lengthwise=\"lengthwise\" :response=\"response\"></response>\r\n </main>\r\n <i-spin fix v-show=\"loading\">\r\n <i class=\"spin-icon-load ivu-icon\"></i>\r\n </i-spin>\r\n <u-environment-modal :visiable.sync=\"showEnvironmentModal\" :projectId=\"projectId\" @on-refresh=\"getEnvironmentParamList\" :isAdd=\"true\"></u-environment-modal>\r\n <i-modal class=\"diy-modal edit-import-name\" v-model=\"showImportModal\" :mask-closable=\"false\">\r\n <p slot=\"header\">编辑名称</p>\r\n <i-form ref=\"import\" :model=\"apiForm\" :rules=\"rules\">\r\n <i-form-item label=\"环境变量:\" prop=\"envName\">\r\n <i-input v-model=\"apiForm.envName\"></i-input>\r\n </i-form-item>\r\n\r\n <i-form-item label=\"授权:\" prop=\"authName\">\r\n <i-input v-model=\"apiForm.authName\"></i-input>\r\n </i-form-item>\r\n </i-form>\r\n <div class=\"handle-btn\" slot=\"footer\">\r\n <i-button class=\"diy-btn-primary\" type=\"primary\" @click.stop=\"saveImportData(importObj)\">确定</i-button>\r\n <i-button class=\"diy-btn-text\" @click.stop=\"cancleModify\">取消</i-button>\r\n </div>\r\n </i-modal>\r\n <u-process-drawer v-model=\"showDrawer\" :projectTree=\"projectTree\" :info=\"interfaceModel.info\" @on-save=\"onProcessSave\"></u-process-drawer>\r\n</article>\r\n"
|
|
16237
16445
|
|
|
16446
|
+
/***/ }),
|
|
16447
|
+
|
|
16448
|
+
/***/ "f511":
|
|
16449
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
16450
|
+
|
|
16451
|
+
"use strict";
|
|
16452
|
+
|
|
16453
|
+
var global = __webpack_require__("bc85");
|
|
16454
|
+
var classof = __webpack_require__("0d9b");
|
|
16455
|
+
|
|
16456
|
+
module.exports = classof(global.process) === 'process';
|
|
16457
|
+
|
|
16458
|
+
|
|
16238
16459
|
/***/ }),
|
|
16239
16460
|
|
|
16240
16461
|
/***/ "f764":
|