@egova/egova-api 1.3.17 → 1.3.19
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 +232 -9
- package/dist/index.css +1 -1
- package/dist/index.umd.js +232 -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,92 @@ 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
|
+
} else {
|
|
9511
|
+
this.model.slowLogThreshold = 500;
|
|
9512
|
+
}
|
|
9513
|
+
},
|
|
9514
|
+
enumerable: false,
|
|
9515
|
+
configurable: true
|
|
9516
|
+
});
|
|
9429
9517
|
InterfaceModal.prototype.onStatusCodeChange = function (newVal) {
|
|
9430
9518
|
var _this = this;
|
|
9431
9519
|
if (newVal !== "2") {
|
|
@@ -9524,12 +9612,32 @@ var process_drawer_InterfaceModal = /** @class */function (_super) {
|
|
|
9524
9612
|
retryCode: [{
|
|
9525
9613
|
validator: this.validateRetryCode,
|
|
9526
9614
|
trigger: "blur,change"
|
|
9615
|
+
}],
|
|
9616
|
+
slowLogThreshold: [{
|
|
9617
|
+
validator: this.validateSlowLogThreshold,
|
|
9618
|
+
required: false,
|
|
9619
|
+
trigger: "blur,change"
|
|
9527
9620
|
}]
|
|
9528
9621
|
};
|
|
9529
9622
|
return [2 /*return*/];
|
|
9530
9623
|
});
|
|
9531
9624
|
});
|
|
9532
9625
|
};
|
|
9626
|
+
InterfaceModal.prototype.validateSlowLogThreshold = function (rule, value, callback) {
|
|
9627
|
+
if (this.slowLogThreshold) {
|
|
9628
|
+
this.isSlowLogThresholdValid = true;
|
|
9629
|
+
callback();
|
|
9630
|
+
return;
|
|
9631
|
+
}
|
|
9632
|
+
var num = Number(value);
|
|
9633
|
+
if (isNaN(num) || num < 500) {
|
|
9634
|
+
this.isSlowLogThresholdValid = false;
|
|
9635
|
+
callback(new Error("最小为500毫秒"));
|
|
9636
|
+
} else {
|
|
9637
|
+
this.isSlowLogThresholdValid = true;
|
|
9638
|
+
callback();
|
|
9639
|
+
}
|
|
9640
|
+
};
|
|
9533
9641
|
InterfaceModal.prototype.validateCategoryId = function (rule, value, callback) {
|
|
9534
9642
|
if (!value) {
|
|
9535
9643
|
this.isCategoryIdValid = false;
|
|
@@ -9701,11 +9809,10 @@ var process_drawer_InterfaceModal = /** @class */function (_super) {
|
|
|
9701
9809
|
try {
|
|
9702
9810
|
(_b = (_a = this.$refs.configform) === null || _a === void 0 ? void 0 : _a.resetFields) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
9703
9811
|
} catch (error) {
|
|
9704
|
-
console.warn(
|
|
9812
|
+
console.warn("resetFields 执行失败:", error);
|
|
9705
9813
|
}
|
|
9706
9814
|
this.resetForm();
|
|
9707
9815
|
}
|
|
9708
|
-
;
|
|
9709
9816
|
if (!this.show) {
|
|
9710
9817
|
this.readonly = false;
|
|
9711
9818
|
this.isAdding = false;
|
|
@@ -9732,6 +9839,9 @@ var process_drawer_InterfaceModal = /** @class */function (_super) {
|
|
|
9732
9839
|
});
|
|
9733
9840
|
});
|
|
9734
9841
|
};
|
|
9842
|
+
InterfaceModal.prototype.onSlowLogThresholdChange = function (newVal) {
|
|
9843
|
+
this.$refs.configform.validateField("slowLogThreshold");
|
|
9844
|
+
};
|
|
9735
9845
|
InterfaceModal.prototype.enableRetryChange = function (newval, oldVal) {
|
|
9736
9846
|
var _a, _b;
|
|
9737
9847
|
if (newval === "false") {
|
|
@@ -9836,6 +9946,9 @@ var process_drawer_InterfaceModal = /** @class */function (_super) {
|
|
|
9836
9946
|
immediate: true
|
|
9837
9947
|
})], InterfaceModal.prototype, "changeInputStatus", null);
|
|
9838
9948
|
__decorate([Object(flagwind_web_["watch"])("show")], InterfaceModal.prototype, "freshApiTree", null);
|
|
9949
|
+
__decorate([Object(flagwind_web_["watch"])("slowLogThreshold", {
|
|
9950
|
+
immediate: true
|
|
9951
|
+
})], InterfaceModal.prototype, "onSlowLogThresholdChange", null);
|
|
9839
9952
|
__decorate([Object(flagwind_web_["watch"])("model.enableRetry", {
|
|
9840
9953
|
immediate: true
|
|
9841
9954
|
})], InterfaceModal.prototype, "enableRetryChange", null);
|
|
@@ -11895,7 +12008,7 @@ module.exports = require("brace/snippets/json");
|
|
|
11895
12008
|
/***/ "40aa":
|
|
11896
12009
|
/***/ (function(module, exports) {
|
|
11897
12010
|
|
|
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"
|
|
12011
|
+
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
12012
|
|
|
11900
12013
|
/***/ }),
|
|
11901
12014
|
|
|
@@ -14113,6 +14226,85 @@ module.exports = function (argument) {
|
|
|
14113
14226
|
|
|
14114
14227
|
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
14228
|
|
|
14229
|
+
/***/ }),
|
|
14230
|
+
|
|
14231
|
+
/***/ "8ad0":
|
|
14232
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
14233
|
+
|
|
14234
|
+
"use strict";
|
|
14235
|
+
|
|
14236
|
+
var aCallable = __webpack_require__("7801");
|
|
14237
|
+
var toObject = __webpack_require__("e614");
|
|
14238
|
+
var IndexedObject = __webpack_require__("5ee5");
|
|
14239
|
+
var lengthOfArrayLike = __webpack_require__("d631");
|
|
14240
|
+
|
|
14241
|
+
var $TypeError = TypeError;
|
|
14242
|
+
|
|
14243
|
+
// `Array.prototype.{ reduce, reduceRight }` methods implementation
|
|
14244
|
+
var createMethod = function (IS_RIGHT) {
|
|
14245
|
+
return function (that, callbackfn, argumentsLength, memo) {
|
|
14246
|
+
var O = toObject(that);
|
|
14247
|
+
var self = IndexedObject(O);
|
|
14248
|
+
var length = lengthOfArrayLike(O);
|
|
14249
|
+
aCallable(callbackfn);
|
|
14250
|
+
var index = IS_RIGHT ? length - 1 : 0;
|
|
14251
|
+
var i = IS_RIGHT ? -1 : 1;
|
|
14252
|
+
if (argumentsLength < 2) while (true) {
|
|
14253
|
+
if (index in self) {
|
|
14254
|
+
memo = self[index];
|
|
14255
|
+
index += i;
|
|
14256
|
+
break;
|
|
14257
|
+
}
|
|
14258
|
+
index += i;
|
|
14259
|
+
if (IS_RIGHT ? index < 0 : length <= index) {
|
|
14260
|
+
throw new $TypeError('Reduce of empty array with no initial value');
|
|
14261
|
+
}
|
|
14262
|
+
}
|
|
14263
|
+
for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {
|
|
14264
|
+
memo = callbackfn(memo, self[index], index, O);
|
|
14265
|
+
}
|
|
14266
|
+
return memo;
|
|
14267
|
+
};
|
|
14268
|
+
};
|
|
14269
|
+
|
|
14270
|
+
module.exports = {
|
|
14271
|
+
// `Array.prototype.reduce` method
|
|
14272
|
+
// https://tc39.es/ecma262/#sec-array.prototype.reduce
|
|
14273
|
+
left: createMethod(false),
|
|
14274
|
+
// `Array.prototype.reduceRight` method
|
|
14275
|
+
// https://tc39.es/ecma262/#sec-array.prototype.reduceright
|
|
14276
|
+
right: createMethod(true)
|
|
14277
|
+
};
|
|
14278
|
+
|
|
14279
|
+
|
|
14280
|
+
/***/ }),
|
|
14281
|
+
|
|
14282
|
+
/***/ "8b65":
|
|
14283
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
14284
|
+
|
|
14285
|
+
"use strict";
|
|
14286
|
+
|
|
14287
|
+
var $ = __webpack_require__("82ef");
|
|
14288
|
+
var $reduce = __webpack_require__("8ad0").left;
|
|
14289
|
+
var arrayMethodIsStrict = __webpack_require__("d631e");
|
|
14290
|
+
var CHROME_VERSION = __webpack_require__("ad8b");
|
|
14291
|
+
var IS_NODE = __webpack_require__("f511");
|
|
14292
|
+
|
|
14293
|
+
// Chrome 80-82 has a critical bug
|
|
14294
|
+
// https://bugs.chromium.org/p/chromium/issues/detail?id=1049982
|
|
14295
|
+
var CHROME_BUG = !IS_NODE && CHROME_VERSION > 79 && CHROME_VERSION < 83;
|
|
14296
|
+
var FORCED = CHROME_BUG || !arrayMethodIsStrict('reduce');
|
|
14297
|
+
|
|
14298
|
+
// `Array.prototype.reduce` method
|
|
14299
|
+
// https://tc39.es/ecma262/#sec-array.prototype.reduce
|
|
14300
|
+
$({ target: 'Array', proto: true, forced: FORCED }, {
|
|
14301
|
+
reduce: function reduce(callbackfn /* , initialValue */) {
|
|
14302
|
+
var length = arguments.length;
|
|
14303
|
+
return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);
|
|
14304
|
+
}
|
|
14305
|
+
});
|
|
14306
|
+
|
|
14307
|
+
|
|
14116
14308
|
/***/ }),
|
|
14117
14309
|
|
|
14118
14310
|
/***/ "8b9b":
|
|
@@ -15293,6 +15485,24 @@ module.exports = function (obj) {
|
|
|
15293
15485
|
};
|
|
15294
15486
|
|
|
15295
15487
|
|
|
15488
|
+
/***/ }),
|
|
15489
|
+
|
|
15490
|
+
/***/ "d631e":
|
|
15491
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
15492
|
+
|
|
15493
|
+
"use strict";
|
|
15494
|
+
|
|
15495
|
+
var fails = __webpack_require__("10a7");
|
|
15496
|
+
|
|
15497
|
+
module.exports = function (METHOD_NAME, argument) {
|
|
15498
|
+
var method = [][METHOD_NAME];
|
|
15499
|
+
return !!method && fails(function () {
|
|
15500
|
+
// eslint-disable-next-line no-useless-call -- required for testing
|
|
15501
|
+
method.call(null, argument || function () { return 1; }, 1);
|
|
15502
|
+
});
|
|
15503
|
+
};
|
|
15504
|
+
|
|
15505
|
+
|
|
15296
15506
|
/***/ }),
|
|
15297
15507
|
|
|
15298
15508
|
/***/ "d63e":
|
|
@@ -16226,6 +16436,19 @@ module.exports = function (bitmap, value) {
|
|
|
16226
16436
|
|
|
16227
16437
|
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
16438
|
|
|
16439
|
+
/***/ }),
|
|
16440
|
+
|
|
16441
|
+
/***/ "f511":
|
|
16442
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
16443
|
+
|
|
16444
|
+
"use strict";
|
|
16445
|
+
|
|
16446
|
+
var global = __webpack_require__("bc85");
|
|
16447
|
+
var classof = __webpack_require__("0d9b");
|
|
16448
|
+
|
|
16449
|
+
module.exports = classof(global.process) === 'process';
|
|
16450
|
+
|
|
16451
|
+
|
|
16229
16452
|
/***/ }),
|
|
16230
16453
|
|
|
16231
16454
|
/***/ "f764":
|