@egova/egova-api 1.0.209 → 1.0.212
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
CHANGED
|
@@ -48843,7 +48843,7 @@ module.exports = uncurryThis([].slice);
|
|
|
48843
48843
|
/***/ "f40e":
|
|
48844
48844
|
/***/ (function(module, exports) {
|
|
48845
48845
|
|
|
48846
|
-
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-input 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 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\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=\"errorLine\"\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</article>\r\n"
|
|
48846
|
+
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-input 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 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\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 @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</article>\r\n"
|
|
48847
48847
|
|
|
48848
48848
|
/***/ }),
|
|
48849
48849
|
|
|
@@ -53783,6 +53783,10 @@ function (_super) {
|
|
|
53783
53783
|
return this._get("/unity/data-model/".concat(id, "/render"));
|
|
53784
53784
|
};
|
|
53785
53785
|
|
|
53786
|
+
DataModelService.prototype.getDataModelTree = function () {
|
|
53787
|
+
return this._get("/unity/data-model/tree");
|
|
53788
|
+
};
|
|
53789
|
+
|
|
53786
53790
|
data_model_service_decorate([serviceHandler("post", {
|
|
53787
53791
|
title: "分页查询数据模型"
|
|
53788
53792
|
}), data_model_service_metadata("design:type", Function), data_model_service_metadata("design:paramtypes", [Object]), data_model_service_metadata("design:returntype", void 0)], DataModelService.prototype, "dataModel", null);
|
|
@@ -53791,6 +53795,10 @@ function (_super) {
|
|
|
53791
53795
|
title: "获取文档"
|
|
53792
53796
|
}), data_model_service_metadata("design:type", Function), data_model_service_metadata("design:paramtypes", [Object]), data_model_service_metadata("design:returntype", void 0)], DataModelService.prototype, "getMavonDoc", null);
|
|
53793
53797
|
|
|
53798
|
+
data_model_service_decorate([serviceHandler("query", {
|
|
53799
|
+
title: "查询分类树"
|
|
53800
|
+
}), data_model_service_metadata("design:type", Function), data_model_service_metadata("design:paramtypes", []), data_model_service_metadata("design:returntype", void 0)], DataModelService.prototype, "getDataModelTree", null);
|
|
53801
|
+
|
|
53794
53802
|
return DataModelService;
|
|
53795
53803
|
}(common_service);
|
|
53796
53804
|
|
|
@@ -54519,7 +54527,7 @@ function (_super) {
|
|
|
54519
54527
|
this.isLoading = true;
|
|
54520
54528
|
return [4
|
|
54521
54529
|
/*yield*/
|
|
54522
|
-
, this.service.
|
|
54530
|
+
, this.service.getDataModelTree()];
|
|
54523
54531
|
|
|
54524
54532
|
case 1:
|
|
54525
54533
|
res = _a.sent();
|
|
@@ -60600,8 +60608,6 @@ var pre_execution_setting = __webpack_require__("d928");
|
|
|
60600
60608
|
|
|
60601
60609
|
|
|
60602
60610
|
|
|
60603
|
-
|
|
60604
|
-
|
|
60605
60611
|
|
|
60606
60612
|
var pre_execution_setting_extends = undefined && undefined.__extends || function () {
|
|
60607
60613
|
var _extendStatics = function extendStatics(d, b) {
|
|
@@ -60877,24 +60883,25 @@ function (_super) {
|
|
|
60877
60883
|
|
|
60878
60884
|
|
|
60879
60885
|
PreExecutionSetting.prototype.displayError = function (value) {
|
|
60880
|
-
var _this = this;
|
|
60886
|
+
var _this = this; // 检查错误行是否在当前代码编辑器可视区
|
|
60881
60887
|
|
|
60882
|
-
if (value === null || value === void 0 ? void 0 : value.length) {
|
|
60883
|
-
// 检查错误行是否在当前代码编辑器可视区
|
|
60884
|
-
var textAll_1 = document.getElementsByClassName("ace_gutter-cell"); // 清楚上一次所有的错误图标
|
|
60885
60888
|
|
|
60886
|
-
|
|
60887
|
-
|
|
60889
|
+
var textAll = document.getElementsByClassName("ace_gutter-cell"); // 清楚上一次所有的错误图标
|
|
60890
|
+
|
|
60891
|
+
this.errorMap.forEach(function (value, key) {
|
|
60892
|
+
var _a;
|
|
60888
60893
|
|
|
60889
|
-
|
|
60890
|
-
|
|
60891
|
-
|
|
60894
|
+
var son = (_a = textAll[value]) === null || _a === void 0 ? void 0 : _a.firstElementChild;
|
|
60895
|
+
son && textAll[value].removeChild(son);
|
|
60896
|
+
}); // 清楚保存错误信息的容器
|
|
60892
60897
|
|
|
60893
|
-
|
|
60898
|
+
this.errorMap.clear();
|
|
60899
|
+
|
|
60900
|
+
if (value === null || value === void 0 ? void 0 : value.length) {
|
|
60894
60901
|
value.forEach(function (h) {
|
|
60895
|
-
|
|
60902
|
+
textAll === null || textAll === void 0 ? void 0 : textAll.forEach(function (v, index) {
|
|
60896
60903
|
// 如果当前错误行在可视区内
|
|
60897
|
-
if (v === null || v === void 0 ? void 0 : v.innerHTML
|
|
60904
|
+
if ((v === null || v === void 0 ? void 0 : v.innerHTML) === h + "") {
|
|
60898
60905
|
var text = v;
|
|
60899
60906
|
var errIcon = document.createElement("i");
|
|
60900
60907
|
errIcon.className = "iconfont icon-a-cuowutishi1"; // 将节点插入到子节点的首位
|
|
@@ -61032,8 +61039,7 @@ function (_super) {
|
|
|
61032
61039
|
}), pre_execution_setting_metadata("design:type", Object)], PreExecutionSetting.prototype, "errorLine", void 0);
|
|
61033
61040
|
|
|
61034
61041
|
pre_execution_setting_decorate([Object(flagwind_web_["watch"])("errorLine", {
|
|
61035
|
-
immediate: true
|
|
61036
|
-
deep: true
|
|
61042
|
+
immediate: true
|
|
61037
61043
|
}), pre_execution_setting_metadata("design:type", Function), pre_execution_setting_metadata("design:paramtypes", [Object]), pre_execution_setting_metadata("design:returntype", void 0)], PreExecutionSetting.prototype, "handleError", null);
|
|
61038
61044
|
|
|
61039
61045
|
PreExecutionSetting = pre_execution_setting_decorate([Object(flagwind_web_["component"])({
|
|
@@ -64123,6 +64129,7 @@ function (_super) {
|
|
|
64123
64129
|
_this.currentId = "";
|
|
64124
64130
|
_this.paramList = [];
|
|
64125
64131
|
_this.errorLine = null;
|
|
64132
|
+
_this.originId = "";
|
|
64126
64133
|
_this.scriptView = false;
|
|
64127
64134
|
_this.typeList = [{
|
|
64128
64135
|
value: "GET",
|
|
@@ -64179,15 +64186,15 @@ function (_super) {
|
|
|
64179
64186
|
};
|
|
64180
64187
|
|
|
64181
64188
|
InterfaceSettings.prototype.onRun = function () {
|
|
64182
|
-
var _a, _b, _c, _d;
|
|
64189
|
+
var _a, _b, _c, _d, _e, _f;
|
|
64183
64190
|
|
|
64184
64191
|
return interface_settings_awaiter(this, void 0, void 0, function () {
|
|
64185
64192
|
var formParams, requestHeaders, index, result;
|
|
64186
64193
|
|
|
64187
64194
|
var _this = this;
|
|
64188
64195
|
|
|
64189
|
-
return interface_settings_generator(this, function (
|
|
64190
|
-
switch (
|
|
64196
|
+
return interface_settings_generator(this, function (_g) {
|
|
64197
|
+
switch (_g.label) {
|
|
64191
64198
|
case 0:
|
|
64192
64199
|
this.loading = true;
|
|
64193
64200
|
formParams = [];
|
|
@@ -64220,7 +64227,7 @@ function (_super) {
|
|
|
64220
64227
|
}))];
|
|
64221
64228
|
|
|
64222
64229
|
case 1:
|
|
64223
|
-
result =
|
|
64230
|
+
result = _g.sent();
|
|
64224
64231
|
this.loading = false;
|
|
64225
64232
|
this.response = (result === null || result === void 0 ? void 0 : result.result) || new Response();
|
|
64226
64233
|
|
|
@@ -64230,7 +64237,14 @@ function (_super) {
|
|
|
64230
64237
|
}
|
|
64231
64238
|
|
|
64232
64239
|
this.responseCache.set(this.interfaceModel.info.id, this.response);
|
|
64233
|
-
|
|
64240
|
+
|
|
64241
|
+
if ((_d = this.response.errorLineNumbers) === null || _d === void 0 ? void 0 : _d.length) {
|
|
64242
|
+
this.errorLine = this.response.errorLineNumbers;
|
|
64243
|
+
} else {
|
|
64244
|
+
this.errorLine = null;
|
|
64245
|
+
}
|
|
64246
|
+
|
|
64247
|
+
this.originId = ((_f = (_e = this.interfaceModel) === null || _e === void 0 ? void 0 : _e.info) === null || _f === void 0 ? void 0 : _f.id) || "";
|
|
64234
64248
|
return [2
|
|
64235
64249
|
/*return*/
|
|
64236
64250
|
];
|
package/dist/index.umd.js
CHANGED
|
@@ -48852,7 +48852,7 @@ module.exports = uncurryThis([].slice);
|
|
|
48852
48852
|
/***/ "f40e":
|
|
48853
48853
|
/***/ (function(module, exports) {
|
|
48854
48854
|
|
|
48855
|
-
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-input 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 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\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=\"errorLine\"\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</article>\r\n"
|
|
48855
|
+
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-input 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 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\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 @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</article>\r\n"
|
|
48856
48856
|
|
|
48857
48857
|
/***/ }),
|
|
48858
48858
|
|
|
@@ -53792,6 +53792,10 @@ function (_super) {
|
|
|
53792
53792
|
return this._get("/unity/data-model/".concat(id, "/render"));
|
|
53793
53793
|
};
|
|
53794
53794
|
|
|
53795
|
+
DataModelService.prototype.getDataModelTree = function () {
|
|
53796
|
+
return this._get("/unity/data-model/tree");
|
|
53797
|
+
};
|
|
53798
|
+
|
|
53795
53799
|
data_model_service_decorate([serviceHandler("post", {
|
|
53796
53800
|
title: "分页查询数据模型"
|
|
53797
53801
|
}), data_model_service_metadata("design:type", Function), data_model_service_metadata("design:paramtypes", [Object]), data_model_service_metadata("design:returntype", void 0)], DataModelService.prototype, "dataModel", null);
|
|
@@ -53800,6 +53804,10 @@ function (_super) {
|
|
|
53800
53804
|
title: "获取文档"
|
|
53801
53805
|
}), data_model_service_metadata("design:type", Function), data_model_service_metadata("design:paramtypes", [Object]), data_model_service_metadata("design:returntype", void 0)], DataModelService.prototype, "getMavonDoc", null);
|
|
53802
53806
|
|
|
53807
|
+
data_model_service_decorate([serviceHandler("query", {
|
|
53808
|
+
title: "查询分类树"
|
|
53809
|
+
}), data_model_service_metadata("design:type", Function), data_model_service_metadata("design:paramtypes", []), data_model_service_metadata("design:returntype", void 0)], DataModelService.prototype, "getDataModelTree", null);
|
|
53810
|
+
|
|
53803
53811
|
return DataModelService;
|
|
53804
53812
|
}(common_service);
|
|
53805
53813
|
|
|
@@ -54528,7 +54536,7 @@ function (_super) {
|
|
|
54528
54536
|
this.isLoading = true;
|
|
54529
54537
|
return [4
|
|
54530
54538
|
/*yield*/
|
|
54531
|
-
, this.service.
|
|
54539
|
+
, this.service.getDataModelTree()];
|
|
54532
54540
|
|
|
54533
54541
|
case 1:
|
|
54534
54542
|
res = _a.sent();
|
|
@@ -60609,8 +60617,6 @@ var pre_execution_setting = __webpack_require__("d928");
|
|
|
60609
60617
|
|
|
60610
60618
|
|
|
60611
60619
|
|
|
60612
|
-
|
|
60613
|
-
|
|
60614
60620
|
|
|
60615
60621
|
var pre_execution_setting_extends = undefined && undefined.__extends || function () {
|
|
60616
60622
|
var _extendStatics = function extendStatics(d, b) {
|
|
@@ -60886,24 +60892,25 @@ function (_super) {
|
|
|
60886
60892
|
|
|
60887
60893
|
|
|
60888
60894
|
PreExecutionSetting.prototype.displayError = function (value) {
|
|
60889
|
-
var _this = this;
|
|
60895
|
+
var _this = this; // 检查错误行是否在当前代码编辑器可视区
|
|
60890
60896
|
|
|
60891
|
-
if (value === null || value === void 0 ? void 0 : value.length) {
|
|
60892
|
-
// 检查错误行是否在当前代码编辑器可视区
|
|
60893
|
-
var textAll_1 = document.getElementsByClassName("ace_gutter-cell"); // 清楚上一次所有的错误图标
|
|
60894
60897
|
|
|
60895
|
-
|
|
60896
|
-
|
|
60898
|
+
var textAll = document.getElementsByClassName("ace_gutter-cell"); // 清楚上一次所有的错误图标
|
|
60899
|
+
|
|
60900
|
+
this.errorMap.forEach(function (value, key) {
|
|
60901
|
+
var _a;
|
|
60897
60902
|
|
|
60898
|
-
|
|
60899
|
-
|
|
60900
|
-
|
|
60903
|
+
var son = (_a = textAll[value]) === null || _a === void 0 ? void 0 : _a.firstElementChild;
|
|
60904
|
+
son && textAll[value].removeChild(son);
|
|
60905
|
+
}); // 清楚保存错误信息的容器
|
|
60901
60906
|
|
|
60902
|
-
|
|
60907
|
+
this.errorMap.clear();
|
|
60908
|
+
|
|
60909
|
+
if (value === null || value === void 0 ? void 0 : value.length) {
|
|
60903
60910
|
value.forEach(function (h) {
|
|
60904
|
-
|
|
60911
|
+
textAll === null || textAll === void 0 ? void 0 : textAll.forEach(function (v, index) {
|
|
60905
60912
|
// 如果当前错误行在可视区内
|
|
60906
|
-
if (v === null || v === void 0 ? void 0 : v.innerHTML
|
|
60913
|
+
if ((v === null || v === void 0 ? void 0 : v.innerHTML) === h + "") {
|
|
60907
60914
|
var text = v;
|
|
60908
60915
|
var errIcon = document.createElement("i");
|
|
60909
60916
|
errIcon.className = "iconfont icon-a-cuowutishi1"; // 将节点插入到子节点的首位
|
|
@@ -61041,8 +61048,7 @@ function (_super) {
|
|
|
61041
61048
|
}), pre_execution_setting_metadata("design:type", Object)], PreExecutionSetting.prototype, "errorLine", void 0);
|
|
61042
61049
|
|
|
61043
61050
|
pre_execution_setting_decorate([Object(flagwind_web_["watch"])("errorLine", {
|
|
61044
|
-
immediate: true
|
|
61045
|
-
deep: true
|
|
61051
|
+
immediate: true
|
|
61046
61052
|
}), pre_execution_setting_metadata("design:type", Function), pre_execution_setting_metadata("design:paramtypes", [Object]), pre_execution_setting_metadata("design:returntype", void 0)], PreExecutionSetting.prototype, "handleError", null);
|
|
61047
61053
|
|
|
61048
61054
|
PreExecutionSetting = pre_execution_setting_decorate([Object(flagwind_web_["component"])({
|
|
@@ -64132,6 +64138,7 @@ function (_super) {
|
|
|
64132
64138
|
_this.currentId = "";
|
|
64133
64139
|
_this.paramList = [];
|
|
64134
64140
|
_this.errorLine = null;
|
|
64141
|
+
_this.originId = "";
|
|
64135
64142
|
_this.scriptView = false;
|
|
64136
64143
|
_this.typeList = [{
|
|
64137
64144
|
value: "GET",
|
|
@@ -64188,15 +64195,15 @@ function (_super) {
|
|
|
64188
64195
|
};
|
|
64189
64196
|
|
|
64190
64197
|
InterfaceSettings.prototype.onRun = function () {
|
|
64191
|
-
var _a, _b, _c, _d;
|
|
64198
|
+
var _a, _b, _c, _d, _e, _f;
|
|
64192
64199
|
|
|
64193
64200
|
return interface_settings_awaiter(this, void 0, void 0, function () {
|
|
64194
64201
|
var formParams, requestHeaders, index, result;
|
|
64195
64202
|
|
|
64196
64203
|
var _this = this;
|
|
64197
64204
|
|
|
64198
|
-
return interface_settings_generator(this, function (
|
|
64199
|
-
switch (
|
|
64205
|
+
return interface_settings_generator(this, function (_g) {
|
|
64206
|
+
switch (_g.label) {
|
|
64200
64207
|
case 0:
|
|
64201
64208
|
this.loading = true;
|
|
64202
64209
|
formParams = [];
|
|
@@ -64229,7 +64236,7 @@ function (_super) {
|
|
|
64229
64236
|
}))];
|
|
64230
64237
|
|
|
64231
64238
|
case 1:
|
|
64232
|
-
result =
|
|
64239
|
+
result = _g.sent();
|
|
64233
64240
|
this.loading = false;
|
|
64234
64241
|
this.response = (result === null || result === void 0 ? void 0 : result.result) || new Response();
|
|
64235
64242
|
|
|
@@ -64239,7 +64246,14 @@ function (_super) {
|
|
|
64239
64246
|
}
|
|
64240
64247
|
|
|
64241
64248
|
this.responseCache.set(this.interfaceModel.info.id, this.response);
|
|
64242
|
-
|
|
64249
|
+
|
|
64250
|
+
if ((_d = this.response.errorLineNumbers) === null || _d === void 0 ? void 0 : _d.length) {
|
|
64251
|
+
this.errorLine = this.response.errorLineNumbers;
|
|
64252
|
+
} else {
|
|
64253
|
+
this.errorLine = null;
|
|
64254
|
+
}
|
|
64255
|
+
|
|
64256
|
+
this.originId = ((_f = (_e = this.interfaceModel) === null || _e === void 0 ? void 0 : _e.info) === null || _f === void 0 ? void 0 : _f.id) || "";
|
|
64243
64257
|
return [2
|
|
64244
64258
|
/*return*/
|
|
64245
64259
|
];
|