@egova/egova-api 1.3.16 → 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.common.js
CHANGED
|
@@ -9160,6 +9160,9 @@ var security_setting_v2_SecuritySettingV2 = /** @class */function (_super) {
|
|
|
9160
9160
|
return SecuritySettingV2;
|
|
9161
9161
|
}(flagwind_web_["Component"]);
|
|
9162
9162
|
/* harmony default export */ var project_detail_security_setting_v2 = (security_setting_v2_SecuritySettingV2);
|
|
9163
|
+
// EXTERNAL MODULE: ./node_modules/.pnpm/core-js@3.35.0/node_modules/core-js/modules/es.array.reduce.js
|
|
9164
|
+
var es_array_reduce = __webpack_require__("8b65");
|
|
9165
|
+
|
|
9163
9166
|
// EXTERNAL MODULE: ./src/views/project-detail/interface-settings/tips-table-label/index.scss
|
|
9164
9167
|
var tips_table_label = __webpack_require__("0a2e");
|
|
9165
9168
|
|
|
@@ -9313,14 +9316,14 @@ var resource_authFlag = [{
|
|
|
9313
9316
|
name: "是"
|
|
9314
9317
|
}];
|
|
9315
9318
|
var logLevelList = [{
|
|
9316
|
-
value:
|
|
9317
|
-
name: "
|
|
9318
|
-
}, {
|
|
9319
|
-
value: 1,
|
|
9320
|
-
name: "记录全部"
|
|
9319
|
+
value: 6,
|
|
9320
|
+
name: "成功请求"
|
|
9321
9321
|
}, {
|
|
9322
9322
|
value: 2,
|
|
9323
|
-
name: "
|
|
9323
|
+
name: "失败请求"
|
|
9324
|
+
}, {
|
|
9325
|
+
value: 5,
|
|
9326
|
+
name: "慢查询"
|
|
9324
9327
|
}];
|
|
9325
9328
|
// EXTERNAL MODULE: ./src/views/project-detail/interface-settings/process-drawer/index.scss
|
|
9326
9329
|
var process_drawer = __webpack_require__("06a8");
|
|
@@ -9359,6 +9362,7 @@ function prefixUrl() {
|
|
|
9359
9362
|
|
|
9360
9363
|
|
|
9361
9364
|
|
|
9365
|
+
|
|
9362
9366
|
var process_drawer_InterfaceModal = /** @class */function (_super) {
|
|
9363
9367
|
__extends(InterfaceModal, _super);
|
|
9364
9368
|
function InterfaceModal() {
|
|
@@ -9424,8 +9428,90 @@ var process_drawer_InterfaceModal = /** @class */function (_super) {
|
|
|
9424
9428
|
_this.isAdding = false;
|
|
9425
9429
|
_this.proxyName = "";
|
|
9426
9430
|
_this.proxyList = [];
|
|
9431
|
+
_this.isSlowLogThresholdValid = true;
|
|
9427
9432
|
return _this;
|
|
9428
9433
|
}
|
|
9434
|
+
Object.defineProperty(InterfaceModal.prototype, "slowLogThreshold", {
|
|
9435
|
+
get: function () {
|
|
9436
|
+
return this.readonly || !this.logSavingEnabledList.includes(5);
|
|
9437
|
+
},
|
|
9438
|
+
enumerable: false,
|
|
9439
|
+
configurable: true
|
|
9440
|
+
});
|
|
9441
|
+
Object.defineProperty(InterfaceModal.prototype, "logSavingEnabledList", {
|
|
9442
|
+
get: function () {
|
|
9443
|
+
var value = this.model.logSavingEnabled || 0;
|
|
9444
|
+
switch (value) {
|
|
9445
|
+
case 0:
|
|
9446
|
+
//不记录任何日志(000)
|
|
9447
|
+
return [];
|
|
9448
|
+
case 1:
|
|
9449
|
+
//只记录成功+失败(111)
|
|
9450
|
+
return [6, 2];
|
|
9451
|
+
case 2:
|
|
9452
|
+
//只记录失败(010)
|
|
9453
|
+
return [2];
|
|
9454
|
+
case 3:
|
|
9455
|
+
//只记录成功+慢(101)
|
|
9456
|
+
return [5, 6];
|
|
9457
|
+
case 4:
|
|
9458
|
+
//只记录失败+慢(011)
|
|
9459
|
+
return [2, 5];
|
|
9460
|
+
case 5:
|
|
9461
|
+
//只记录慢(001)
|
|
9462
|
+
return [5];
|
|
9463
|
+
case 6:
|
|
9464
|
+
//只记录成功(100)
|
|
9465
|
+
return [6];
|
|
9466
|
+
case 7:
|
|
9467
|
+
//只记录成功+慢+失败(111)
|
|
9468
|
+
return [5, 2, 6];
|
|
9469
|
+
default:
|
|
9470
|
+
return [2];
|
|
9471
|
+
}
|
|
9472
|
+
},
|
|
9473
|
+
set: function (value) {
|
|
9474
|
+
var num,
|
|
9475
|
+
finallySum = 0;
|
|
9476
|
+
num = value.reduce(function (sum, v) {
|
|
9477
|
+
return sum + v;
|
|
9478
|
+
}, 0);
|
|
9479
|
+
switch (num) {
|
|
9480
|
+
case 0:
|
|
9481
|
+
case 2:
|
|
9482
|
+
case 5:
|
|
9483
|
+
case 6:
|
|
9484
|
+
finallySum = num;
|
|
9485
|
+
break;
|
|
9486
|
+
case 8:
|
|
9487
|
+
//只记录成功+失败(110)
|
|
9488
|
+
finallySum = 1;
|
|
9489
|
+
break;
|
|
9490
|
+
case 11:
|
|
9491
|
+
//只记录成功+慢(101)
|
|
9492
|
+
finallySum = 3;
|
|
9493
|
+
break;
|
|
9494
|
+
case 7:
|
|
9495
|
+
//只记录失败+慢(011)
|
|
9496
|
+
finallySum = 4;
|
|
9497
|
+
break;
|
|
9498
|
+
case 13:
|
|
9499
|
+
//只记录成功+慢+失败(111)
|
|
9500
|
+
finallySum = 7;
|
|
9501
|
+
break;
|
|
9502
|
+
default:
|
|
9503
|
+
finallySum = 2;
|
|
9504
|
+
break;
|
|
9505
|
+
}
|
|
9506
|
+
this.model.logSavingEnabled = finallySum;
|
|
9507
|
+
if (!value.includes(5)) {
|
|
9508
|
+
this.model.slowLogThreshold = "";
|
|
9509
|
+
this.isSlowLogThresholdValid = true;
|
|
9510
|
+
}
|
|
9511
|
+
},
|
|
9512
|
+
enumerable: false,
|
|
9513
|
+
configurable: true
|
|
9514
|
+
});
|
|
9429
9515
|
InterfaceModal.prototype.onStatusCodeChange = function (newVal) {
|
|
9430
9516
|
var _this = this;
|
|
9431
9517
|
if (newVal !== "2") {
|
|
@@ -9524,12 +9610,32 @@ var process_drawer_InterfaceModal = /** @class */function (_super) {
|
|
|
9524
9610
|
retryCode: [{
|
|
9525
9611
|
validator: this.validateRetryCode,
|
|
9526
9612
|
trigger: "blur,change"
|
|
9613
|
+
}],
|
|
9614
|
+
slowLogThreshold: [{
|
|
9615
|
+
validator: this.validateSlowLogThreshold,
|
|
9616
|
+
required: false,
|
|
9617
|
+
trigger: "blur,change"
|
|
9527
9618
|
}]
|
|
9528
9619
|
};
|
|
9529
9620
|
return [2 /*return*/];
|
|
9530
9621
|
});
|
|
9531
9622
|
});
|
|
9532
9623
|
};
|
|
9624
|
+
InterfaceModal.prototype.validateSlowLogThreshold = function (rule, value, callback) {
|
|
9625
|
+
if (this.slowLogThreshold) {
|
|
9626
|
+
this.isSlowLogThresholdValid = true;
|
|
9627
|
+
callback();
|
|
9628
|
+
return;
|
|
9629
|
+
}
|
|
9630
|
+
var num = Number(value);
|
|
9631
|
+
if (isNaN(num) || num <= 0) {
|
|
9632
|
+
this.isSlowLogThresholdValid = false;
|
|
9633
|
+
callback(new Error("请输入正数"));
|
|
9634
|
+
} else {
|
|
9635
|
+
this.isSlowLogThresholdValid = true;
|
|
9636
|
+
callback();
|
|
9637
|
+
}
|
|
9638
|
+
};
|
|
9533
9639
|
InterfaceModal.prototype.validateCategoryId = function (rule, value, callback) {
|
|
9534
9640
|
if (!value) {
|
|
9535
9641
|
this.isCategoryIdValid = false;
|
|
@@ -9701,11 +9807,10 @@ var process_drawer_InterfaceModal = /** @class */function (_super) {
|
|
|
9701
9807
|
try {
|
|
9702
9808
|
(_b = (_a = this.$refs.configform) === null || _a === void 0 ? void 0 : _a.resetFields) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
9703
9809
|
} catch (error) {
|
|
9704
|
-
console.warn(
|
|
9810
|
+
console.warn("resetFields 执行失败:", error);
|
|
9705
9811
|
}
|
|
9706
9812
|
this.resetForm();
|
|
9707
9813
|
}
|
|
9708
|
-
;
|
|
9709
9814
|
if (!this.show) {
|
|
9710
9815
|
this.readonly = false;
|
|
9711
9816
|
this.isAdding = false;
|
|
@@ -9732,6 +9837,9 @@ var process_drawer_InterfaceModal = /** @class */function (_super) {
|
|
|
9732
9837
|
});
|
|
9733
9838
|
});
|
|
9734
9839
|
};
|
|
9840
|
+
InterfaceModal.prototype.onSlowLogThresholdChange = function (newVal) {
|
|
9841
|
+
this.$refs.configform.validateField("slowLogThreshold");
|
|
9842
|
+
};
|
|
9735
9843
|
InterfaceModal.prototype.enableRetryChange = function (newval, oldVal) {
|
|
9736
9844
|
var _a, _b;
|
|
9737
9845
|
if (newval === "false") {
|
|
@@ -9836,6 +9944,9 @@ var process_drawer_InterfaceModal = /** @class */function (_super) {
|
|
|
9836
9944
|
immediate: true
|
|
9837
9945
|
})], InterfaceModal.prototype, "changeInputStatus", null);
|
|
9838
9946
|
__decorate([Object(flagwind_web_["watch"])("show")], InterfaceModal.prototype, "freshApiTree", null);
|
|
9947
|
+
__decorate([Object(flagwind_web_["watch"])("slowLogThreshold", {
|
|
9948
|
+
immediate: true
|
|
9949
|
+
})], InterfaceModal.prototype, "onSlowLogThresholdChange", null);
|
|
9839
9950
|
__decorate([Object(flagwind_web_["watch"])("model.enableRetry", {
|
|
9840
9951
|
immediate: true
|
|
9841
9952
|
})], InterfaceModal.prototype, "enableRetryChange", null);
|
|
@@ -11895,7 +12006,7 @@ module.exports = require("brace/snippets/json");
|
|
|
11895
12006
|
/***/ "40aa":
|
|
11896
12007
|
/***/ (function(module, exports) {
|
|
11897
12008
|
|
|
11898
|
-
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"
|
|
12009
|
+
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"
|
|
11899
12010
|
|
|
11900
12011
|
/***/ }),
|
|
11901
12012
|
|
|
@@ -14113,6 +14224,85 @@ module.exports = function (argument) {
|
|
|
14113
14224
|
|
|
14114
14225
|
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"
|
|
14115
14226
|
|
|
14227
|
+
/***/ }),
|
|
14228
|
+
|
|
14229
|
+
/***/ "8ad0":
|
|
14230
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
14231
|
+
|
|
14232
|
+
"use strict";
|
|
14233
|
+
|
|
14234
|
+
var aCallable = __webpack_require__("7801");
|
|
14235
|
+
var toObject = __webpack_require__("e614");
|
|
14236
|
+
var IndexedObject = __webpack_require__("5ee5");
|
|
14237
|
+
var lengthOfArrayLike = __webpack_require__("d631");
|
|
14238
|
+
|
|
14239
|
+
var $TypeError = TypeError;
|
|
14240
|
+
|
|
14241
|
+
// `Array.prototype.{ reduce, reduceRight }` methods implementation
|
|
14242
|
+
var createMethod = function (IS_RIGHT) {
|
|
14243
|
+
return function (that, callbackfn, argumentsLength, memo) {
|
|
14244
|
+
var O = toObject(that);
|
|
14245
|
+
var self = IndexedObject(O);
|
|
14246
|
+
var length = lengthOfArrayLike(O);
|
|
14247
|
+
aCallable(callbackfn);
|
|
14248
|
+
var index = IS_RIGHT ? length - 1 : 0;
|
|
14249
|
+
var i = IS_RIGHT ? -1 : 1;
|
|
14250
|
+
if (argumentsLength < 2) while (true) {
|
|
14251
|
+
if (index in self) {
|
|
14252
|
+
memo = self[index];
|
|
14253
|
+
index += i;
|
|
14254
|
+
break;
|
|
14255
|
+
}
|
|
14256
|
+
index += i;
|
|
14257
|
+
if (IS_RIGHT ? index < 0 : length <= index) {
|
|
14258
|
+
throw new $TypeError('Reduce of empty array with no initial value');
|
|
14259
|
+
}
|
|
14260
|
+
}
|
|
14261
|
+
for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {
|
|
14262
|
+
memo = callbackfn(memo, self[index], index, O);
|
|
14263
|
+
}
|
|
14264
|
+
return memo;
|
|
14265
|
+
};
|
|
14266
|
+
};
|
|
14267
|
+
|
|
14268
|
+
module.exports = {
|
|
14269
|
+
// `Array.prototype.reduce` method
|
|
14270
|
+
// https://tc39.es/ecma262/#sec-array.prototype.reduce
|
|
14271
|
+
left: createMethod(false),
|
|
14272
|
+
// `Array.prototype.reduceRight` method
|
|
14273
|
+
// https://tc39.es/ecma262/#sec-array.prototype.reduceright
|
|
14274
|
+
right: createMethod(true)
|
|
14275
|
+
};
|
|
14276
|
+
|
|
14277
|
+
|
|
14278
|
+
/***/ }),
|
|
14279
|
+
|
|
14280
|
+
/***/ "8b65":
|
|
14281
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
14282
|
+
|
|
14283
|
+
"use strict";
|
|
14284
|
+
|
|
14285
|
+
var $ = __webpack_require__("82ef");
|
|
14286
|
+
var $reduce = __webpack_require__("8ad0").left;
|
|
14287
|
+
var arrayMethodIsStrict = __webpack_require__("d631e");
|
|
14288
|
+
var CHROME_VERSION = __webpack_require__("ad8b");
|
|
14289
|
+
var IS_NODE = __webpack_require__("f511");
|
|
14290
|
+
|
|
14291
|
+
// Chrome 80-82 has a critical bug
|
|
14292
|
+
// https://bugs.chromium.org/p/chromium/issues/detail?id=1049982
|
|
14293
|
+
var CHROME_BUG = !IS_NODE && CHROME_VERSION > 79 && CHROME_VERSION < 83;
|
|
14294
|
+
var FORCED = CHROME_BUG || !arrayMethodIsStrict('reduce');
|
|
14295
|
+
|
|
14296
|
+
// `Array.prototype.reduce` method
|
|
14297
|
+
// https://tc39.es/ecma262/#sec-array.prototype.reduce
|
|
14298
|
+
$({ target: 'Array', proto: true, forced: FORCED }, {
|
|
14299
|
+
reduce: function reduce(callbackfn /* , initialValue */) {
|
|
14300
|
+
var length = arguments.length;
|
|
14301
|
+
return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);
|
|
14302
|
+
}
|
|
14303
|
+
});
|
|
14304
|
+
|
|
14305
|
+
|
|
14116
14306
|
/***/ }),
|
|
14117
14307
|
|
|
14118
14308
|
/***/ "8b9b":
|
|
@@ -15293,6 +15483,24 @@ module.exports = function (obj) {
|
|
|
15293
15483
|
};
|
|
15294
15484
|
|
|
15295
15485
|
|
|
15486
|
+
/***/ }),
|
|
15487
|
+
|
|
15488
|
+
/***/ "d631e":
|
|
15489
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
15490
|
+
|
|
15491
|
+
"use strict";
|
|
15492
|
+
|
|
15493
|
+
var fails = __webpack_require__("10a7");
|
|
15494
|
+
|
|
15495
|
+
module.exports = function (METHOD_NAME, argument) {
|
|
15496
|
+
var method = [][METHOD_NAME];
|
|
15497
|
+
return !!method && fails(function () {
|
|
15498
|
+
// eslint-disable-next-line no-useless-call -- required for testing
|
|
15499
|
+
method.call(null, argument || function () { return 1; }, 1);
|
|
15500
|
+
});
|
|
15501
|
+
};
|
|
15502
|
+
|
|
15503
|
+
|
|
15296
15504
|
/***/ }),
|
|
15297
15505
|
|
|
15298
15506
|
/***/ "d63e":
|
|
@@ -16226,6 +16434,19 @@ module.exports = function (bitmap, value) {
|
|
|
16226
16434
|
|
|
16227
16435
|
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"
|
|
16228
16436
|
|
|
16437
|
+
/***/ }),
|
|
16438
|
+
|
|
16439
|
+
/***/ "f511":
|
|
16440
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
16441
|
+
|
|
16442
|
+
"use strict";
|
|
16443
|
+
|
|
16444
|
+
var global = __webpack_require__("bc85");
|
|
16445
|
+
var classof = __webpack_require__("0d9b");
|
|
16446
|
+
|
|
16447
|
+
module.exports = classof(global.process) === 'process';
|
|
16448
|
+
|
|
16449
|
+
|
|
16229
16450
|
/***/ }),
|
|
16230
16451
|
|
|
16231
16452
|
/***/ "f764":
|