@egova/egova-api 1.0.119 → 1.0.122
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 +52 -4
- package/dist/index.css +1 -1
- package/dist/index.umd.js +52 -4
- package/dist/index.umd.min.js +1 -1
- package/dist/types/src/views/project-combine/combine-model/index.d.ts +3 -0
- package/dist/types/src/views/project-combine/service.d.ts +1 -0
- package/dist/types/src/views/project-detail/service.d.ts +1 -0
- package/package.json +2 -2
package/dist/index.umd.js
CHANGED
|
@@ -47340,7 +47340,7 @@ module.exports = "<div class=\"v-parameter-list-container\">\r\n <main>\r\n
|
|
|
47340
47340
|
/***/ "d8e7":
|
|
47341
47341
|
/***/ (function(module, exports) {
|
|
47342
47342
|
|
|
47343
|
-
module.exports = "<!DOCTYPE html>\
|
|
47343
|
+
module.exports = "<!DOCTYPE html>\n<article class=\"v-api-combine-info-wrapper\">\n <header class=\"header\">\n {{title}}\n </header>\n <main>\n <i-form ref=\"form\" class=\"info-form\" :model=\"model\" :rules=\"rules\">\n <i-row>\n <section class=\"title-g\">基本信息</section>\n <i-form-item label=\"名称:\" prop=\"name\">\n <i-input class=\"diy-input\" placeholder=\"请输入名称\" v-model=\"model.name\" :disabled=\"!isEdit\"></i-input>\n </i-form-item>\n <i-form-item label=\"编码:\" prop=\"code\">\n <i-input class=\"diy-input\" placeholder=\"请输入编码\" v-model=\"model.code\" :disabled=\"!isEdit\"></i-input>\n </i-form-item>\n <i-form-item class=\"full-width\" label=\"描述:\">\n <i-input type=\"textarea\" class=\"diy-input-textarea\" :rows=\"1\" placeholder=\"请输入描述\" v-model=\"model.description\" :disabled=\"!isEdit\"></i-input>\n </i-form-item>\n </i-row>\n <i-row>\n <section class=\"title-g\">待合并列表</section>\n <section class=\"to-combine-list\">\n <template v-if=\"isEdit\">\n <i-button class=\"diy-btn-default\" @click=\"onAddDataModel\">添加数据模型</i-button>\n <i-button class=\"diy-btn-default\" @click=\"onAddApiProject\">添加 API</i-button>\n </template>\n <i-table class=\"diy-table\" :columns=\"relationColumns\" :data=\"model.relations\">\n <template #type=\"{row}\">\n <span>{{row.type==='MODEL'?'数据模型':row.type==='API'?'API':''}}</span>\n </template>\n <template #operates=\"{row,index}\">\n <div class=\"row-actions\">\n <i title=\"查看\" class=\"iconfont icon-detail\" @click=\"onDetail(row)\"></i>\n <i-poptip v-if=\"isEdit\" confirm transfer title=\"确认删除这条数据吗?\" @on-ok=\"onRelationDelete(row)\">\n <i title=\"删除\" class=\"iconfont icon-delete\"></i>\n </i-poptip>\n </div>\n </template>\n </i-table>\n </section>\n </i-row>\n <i-row>\n <section class=\"title-g\">参数详情</section>\n <section class=\"parameter-detail\">\n <section class=\"card-panel card-panel-no-right-border\">\n <i-tabs>\n <i-tab-pane label=\"请求参数\" name=\"request\">\n <u-request-parameter-list :data=\"model.reqParams\" :isEdit=\"isEdit\"></u-request-parameter-list>\n </i-tab-pane>\n <i-tab-pane label=\"响应参数\" name=\"response\">\n <u-response-parameter-list :data=\"model.respParams\" :isEdit=\"isEdit\"></u-response-parameter-list>\n </i-tab-pane>\n </i-tabs>\n </section>\n <section class=\"card-panel\">\n <div class=\"card-panel-header\">\n <div>\n <span>执行脚本</span>\n <i-icon class=\"help-icon\" type=\"md-alert\" @click=\"onOpenDoc\" title=\"帮助文档\"> </i-icon>\n </div>\n <span class=\"action-text\" @click.stop=\"onOpenTest\">\n <i class=\"iconfont icon-run\"></i>\n <span>试运行</span>\n </span>\n </div>\n <div class=\"card-panel-main\">\n <u-base-editor class=\"editor\" :data.sync=\"model.content\" :readOnly=\"!isEdit\"></u-base-editor>\n </div>\n </section>\n </section>\n </i-row>\n </i-form>\n </main>\n <footer>\n <template v-if=\"isEdit\">\n <i-button type=\"primary\" class=\"diy-btn-primary\" @click.stop=\"onSave\">确定</i-button>\n <i-button type=\"text\" class=\"diy-btn-text\" @click.stop=\"onBack\">取消</i-button>\n </template>\n <template v-else>\n <i-button type=\"primary\" class=\"diy-btn-primary\" @click.stop=\"onBack\">关闭</i-button>\n </template>\n </footer>\n <u-data-model-modal v-model=\"dataModelShow\" :data=\"dataModelRelations\" @save=\"onRelationsSave\"></u-data-model-modal>\n <u-api-project-modal v-model=\"apiProjectShow\" :data=\"apiProjectRelations\" @save=\"onRelationsSave\"></u-api-project-modal>\n <u-data-model-doc-modal v-model=\"dataModelDocShow\" :doc=\"dataModelDoc\"></u-data-model-doc-modal>\n <u-api-project-detail-modal :visiable.sync=\"apiProjectDetailShow\" :model=\"apiProjectDetail\"></u-api-project-detail-modal>\n <u-test-run-modal :visible.sync=\"testShow\" :params=\"model.reqParams\" :data=\"testResult\" @on-run=\"onTestRun\"></u-test-run-modal>\n <u-data-model-doc v-model=\"docShow\" :doc=\"doc\"></u-data-model-doc>\n</article>\n"
|
|
47344
47344
|
|
|
47345
47345
|
/***/ }),
|
|
47346
47346
|
|
|
@@ -50144,6 +50144,10 @@ function (_super) {
|
|
|
50144
50144
|
return this._post("/unity/combine-info/copy", copyData);
|
|
50145
50145
|
};
|
|
50146
50146
|
|
|
50147
|
+
Service.prototype.geHelpDoc = function () {
|
|
50148
|
+
return this._get("/combine-api-help/help.md");
|
|
50149
|
+
};
|
|
50150
|
+
|
|
50147
50151
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
50148
50152
|
|
|
50149
50153
|
service_decorate([serviceHandler("query", {
|
|
@@ -56453,7 +56457,10 @@ function (_super) {
|
|
|
56453
56457
|
_this.dataModelDoc = "";
|
|
56454
56458
|
_this.dataModelDocShow = false;
|
|
56455
56459
|
_this.apiProjectDetail = "";
|
|
56456
|
-
_this.apiProjectDetailShow = false;
|
|
56460
|
+
_this.apiProjectDetailShow = false; // 查看文档
|
|
56461
|
+
|
|
56462
|
+
_this.doc = "";
|
|
56463
|
+
_this.docShow = false;
|
|
56457
56464
|
return _this;
|
|
56458
56465
|
}
|
|
56459
56466
|
|
|
@@ -56929,6 +56936,34 @@ function (_super) {
|
|
|
56929
56936
|
});
|
|
56930
56937
|
};
|
|
56931
56938
|
|
|
56939
|
+
ProjectCombineModel.prototype.onOpenDoc = function () {
|
|
56940
|
+
return combine_model_awaiter(this, void 0, void 0, function () {
|
|
56941
|
+
var res;
|
|
56942
|
+
return combine_model_generator(this, function (_a) {
|
|
56943
|
+
switch (_a.label) {
|
|
56944
|
+
case 0:
|
|
56945
|
+
return [4
|
|
56946
|
+
/*yield*/
|
|
56947
|
+
, this.service.geHelpDoc()];
|
|
56948
|
+
|
|
56949
|
+
case 1:
|
|
56950
|
+
res = _a.sent();
|
|
56951
|
+
|
|
56952
|
+
if (res) {
|
|
56953
|
+
this.doc = res;
|
|
56954
|
+
this.docShow = true;
|
|
56955
|
+
} else {
|
|
56956
|
+
this.$message.error("获取帮助文档失败");
|
|
56957
|
+
}
|
|
56958
|
+
|
|
56959
|
+
return [2
|
|
56960
|
+
/*return*/
|
|
56961
|
+
];
|
|
56962
|
+
}
|
|
56963
|
+
});
|
|
56964
|
+
});
|
|
56965
|
+
};
|
|
56966
|
+
|
|
56932
56967
|
var _a, _b, _c;
|
|
56933
56968
|
|
|
56934
56969
|
combine_model_decorate([autowired(project_combine_service), combine_model_metadata("design:type", typeof (_a = typeof project_combine_service !== "undefined" && project_combine_service) === "function" ? _a : Object)], ProjectCombineModel.prototype, "service", void 0);
|
|
@@ -56948,7 +56983,8 @@ function (_super) {
|
|
|
56948
56983
|
"u-api-project-detail-modal": api_project_api_project_detail,
|
|
56949
56984
|
"u-request-parameter-list": combine_model_request_parameter_list,
|
|
56950
56985
|
"u-response-parameter-list": response_parameter_list,
|
|
56951
|
-
"u-test-run-modal": combine_model_test_run_modal
|
|
56986
|
+
"u-test-run-modal": combine_model_test_run_modal,
|
|
56987
|
+
"u-data-model-doc": data_model_data_model_doc
|
|
56952
56988
|
}
|
|
56953
56989
|
})], ProjectCombineModel);
|
|
56954
56990
|
return ProjectCombineModel;
|
|
@@ -58036,6 +58072,10 @@ function (_super) {
|
|
|
58036
58072
|
return this._delete("/unity/api/info/".concat(id));
|
|
58037
58073
|
};
|
|
58038
58074
|
|
|
58075
|
+
ApiService.prototype.deleteCategory = function (categoryId) {
|
|
58076
|
+
return this._delete("/unity/api/category/".concat(categoryId));
|
|
58077
|
+
};
|
|
58078
|
+
|
|
58039
58079
|
ApiService.prototype.saveApi = function (api) {
|
|
58040
58080
|
if (api.id) {
|
|
58041
58081
|
return this._put("/unity/api/info", api);
|
|
@@ -58100,6 +58140,12 @@ function (_super) {
|
|
|
58100
58140
|
showTip: true
|
|
58101
58141
|
}), project_detail_service_metadata("design:type", Function), project_detail_service_metadata("design:paramtypes", [String]), project_detail_service_metadata("design:returntype", void 0)], ApiService.prototype, "deleteApi", null);
|
|
58102
58142
|
|
|
58143
|
+
project_detail_service_decorate([serviceHandler("save", {
|
|
58144
|
+
title: "删除分组",
|
|
58145
|
+
showTip: true,
|
|
58146
|
+
showErrorMsg: true
|
|
58147
|
+
}), project_detail_service_metadata("design:type", Function), project_detail_service_metadata("design:paramtypes", [Object]), project_detail_service_metadata("design:returntype", void 0)], ApiService.prototype, "deleteCategory", null);
|
|
58148
|
+
|
|
58103
58149
|
project_detail_service_decorate([serviceHandler("save", {
|
|
58104
58150
|
title: "保存接口",
|
|
58105
58151
|
showErrorMsg: true,
|
|
@@ -59898,12 +59944,14 @@ function (_super) {
|
|
|
59898
59944
|
var _this = this;
|
|
59899
59945
|
|
|
59900
59946
|
this.responseSettingTypeList.forEach(function (v) {
|
|
59947
|
+
var _a;
|
|
59948
|
+
|
|
59901
59949
|
if (v.name === "content") return;
|
|
59902
59950
|
var obj = _this.response[v.name] || {};
|
|
59903
59951
|
v.num = obj.$isArray() ? obj.length : Object.keys(obj).length;
|
|
59904
59952
|
|
|
59905
59953
|
if (v.name === "cookies") {
|
|
59906
|
-
v.num = _this.cookies.length;
|
|
59954
|
+
v.num = (_a = _this.cookies) === null || _a === void 0 ? void 0 : _a.length;
|
|
59907
59955
|
}
|
|
59908
59956
|
});
|
|
59909
59957
|
};
|