@egova/egova-api 1.0.227 → 1.0.230
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 +157 -22
- package/dist/index.css +1 -1
- package/dist/index.umd.js +157 -22
- package/dist/index.umd.min.js +4 -4
- package/dist/types/src/views/project-detail/interface-settings/index.d.ts +1 -0
- package/dist/types/src/views/project-detail/params-setting/index.d.ts +8 -0
- package/dist/types/src/views/project-detail/service.d.ts +1 -0
- package/package.json +2 -2
package/dist/index.common.js
CHANGED
|
@@ -39903,7 +39903,7 @@ module.exports = function (NAME) {
|
|
|
39903
39903
|
/***/ "7640":
|
|
39904
39904
|
/***/ (function(module, exports) {
|
|
39905
39905
|
|
|
39906
|
-
module.exports = "<article class=\"params-setting\">\r\n <i-collapse v-model=\"value\" simple>\r\n <i-panel name=\"1\">\r\n <span>Query参数</span>\r\n <span class=\"status\">{{getExpand('1') ? \"收起\" : \"展开\"}}</span>\r\n <div slot=\"content\" class=\"setting-content\">\r\n <header>\r\n <i-button type=\"primary\" ghost class=\"diy-btn-primary\" @click=\"onAddRequestParam\"> <i class=\"api-icon icon-add\"></i>新增参数 </i-button>\r\n </header>\r\n <main>\r\n <i-table height=\"200\" width=\"1280\" class=\"diy-table\" :columns=\"paramColumns\" :data=\"queryDataList\">\r\n <template slot-scope=\"{ row,index }\" slot=\"selection\">\r\n <i-checkbox :value=\"!queryDataList[index].disabled\" @on-change=\"onChangeDisabled($event,queryDataList[index])\"> </i-checkbox>\r\n </template>\r\n <template slot-scope=\"{ row,index }\" slot=\"name\">\r\n <i-input class=\"diy-input\" placeholder=\"输入参数名称\" v-model=\"queryDataList[index].name\"></i-input>\r\n </template>\r\n <template slot-scope=\"{ row,index }\" slot=\"valueContent\">\r\n <i-input class=\"diy-input\" placeholder=\"输入参数值\" v-model=\"queryDataList[index].valueContent\"></i-input>\r\n </template>\r\n <!-- <template slot-scope=\"{ row,index }\" slot=\"required\">\r\n <i-switch v-model=\"queryDataList[index].required\">\r\n <span slot=\"open\">是</span>\r\n <span slot=\"close\">否</span>\r\n </i-switch>\r\n </template> -->\r\n <template slot-scope=\"{ row,index }\" slot=\"text\">\r\n <i-input class=\"diy-input\" placeholder=\"输入备注\" v-model=\"queryDataList[index].text\"></i-input>\r\n </template>\r\n <template slot-scope=\"{ row,index }\" slot=\"action\">\r\n <i-poptip class=\"action-btn delete\" title=\"确认删除这条数据吗?\" confirm @on-ok=\"onDelete(queryDataList,index)\" transfer>\r\n <i class=\"iconfont icon-delete\" title=\"删除\"></i>\r\n </i-poptip>\r\n <span>\r\n <i v-if=\"index>0\" class=\"iconfont icon-up\" @click=\"onUp(queryDataList,index)\" title=\"上移\"></i>\r\n <i v-if=\"index>0\" class=\"iconfont icon-top\" title=\"置顶\" @click=\"onTop(queryDataList,index)\"></i>\r\n <i v-if=\"index < queryDataList.length - 1\" @click=\"onDown(queryDataList,index)\" class=\"iconfont icon-down\" title=\"下移\"></i>\r\n <i v-if=\"index < queryDataList.length - 1\" @click=\"onBottom(queryDataList,index)\" class=\"iconfont icon-bottom\" title=\"置底\"></i>\r\n </span>\r\n </template>\r\n </i-table>\r\n </main>\r\n </div>\r\n </i-panel>\r\n <i-panel name=\"2\">\r\n <span>Body参数</span>\r\n <span class=\"status\">{{getExpand('2') ? \"收起\" : \"展开\"}}</span>\r\n <div slot=\"content\" class=\"setting-content\">\r\n <header>\r\n <i-button v-if=\"isFormData\" type=\"primary\" ghost class=\"diy-btn-primary\" @click=\"onAddBodyParam\"> <i class=\"api-icon icon-add\"></i>新增参数 </i-button>\r\n <i-button v-else type=\"primary\" ghost class=\"diy-btn-primary\" @click=\"onBeautify\"> <i class=\"api-icon icon-view\"></i>格式化 </i-button>\r\n <i-select transfer v-model=\"interfaceModel.info.requestBodyType\" class=\"diy-select\">\r\n <i-option v-for=\"item in requestBodyTypeList\" :value=\"item.name\" :key=\"item.name\">{{item.text}}</i-option>\r\n </i-select>\r\n </header>\r\n <main>\r\n <i-table height=\"200\" width=\"1280\" class=\"diy-table\" :columns=\"paramColumns\" :data=\"bodyDataList\" v-if=\"isFormData\">\r\n <template slot-scope=\"{ row,index }\" slot=\"selection\">\r\n <i-checkbox :value=\"!bodyDataList[index].disabled\" @on-change=\"onChangeDisabled($event,bodyDataList[index])\"> </i-checkbox>\r\n </template>\r\n <template slot-scope=\"{ row,index }\" slot=\"name\">\r\n <i-input class=\"diy-input\" placeholder=\"输入参数名称\" v-model=\"bodyDataList[index].name\"></i-input>\r\n </template>\r\n <template slot-scope=\"{ row,index }\" slot=\"valueContent\">\r\n <i-input class=\"diy-input\" placeholder=\"输入参数值\" v-model=\"bodyDataList[index].valueContent\"></i-input>\r\n </template>\r\n <!-- <template slot-scope=\"{ row,index }\" slot=\"required\">\r\n <i-switch v-model=\"bodyDataList[index].required\">\r\n <span slot=\"open\">是</span>\r\n <span slot=\"close\">否</span>\r\n </i-switch>\r\n </template> -->\r\n <template slot-scope=\"{ row,index }\" slot=\"text\">\r\n <i-input class=\"diy-input\" placeholder=\"输入备注\" v-model=\"bodyDataList[index].remark\"></i-input>\r\n </template>\r\n <template slot-scope=\"{ row,index }\" slot=\"action\">\r\n <i-poptip class=\"action-btn delete\" title=\"确认删除这条数据吗?\" confirm @on-ok=\"onDeleteBodyParam(interfaceModel.formParams,row.
|
|
39906
|
+
module.exports = "<article class=\"params-setting\">\r\n <i-collapse v-model=\"value\" simple>\r\n <i-panel name=\"1\">\r\n <span>Query参数</span>\r\n <span class=\"status\">{{getExpand('1') ? \"收起\" : \"展开\"}}</span>\r\n <div slot=\"content\" class=\"setting-content\">\r\n <header>\r\n <i-button type=\"primary\" ghost class=\"diy-btn-primary\" @click=\"onAddRequestParam\"> <i class=\"api-icon icon-add\"></i>新增参数 </i-button>\r\n </header>\r\n <main>\r\n <i-table height=\"200\" width=\"1280\" class=\"diy-table\" :columns=\"paramColumns\" :data=\"queryDataList\">\r\n <template slot-scope=\"{ row,index }\" slot=\"selection\">\r\n <i-checkbox :value=\"!queryDataList[index].disabled\" @on-change=\"onChangeDisabled($event,queryDataList[index])\"> </i-checkbox>\r\n </template>\r\n <template slot-scope=\"{ row,index }\" slot=\"name\">\r\n <i-input class=\"diy-input\" placeholder=\"输入参数名称\" v-model=\"queryDataList[index].name\"></i-input>\r\n </template>\r\n <template slot-scope=\"{ row,index }\" slot=\"valueContent\">\r\n <i-input class=\"diy-input\" placeholder=\"输入参数值\" v-model=\"queryDataList[index].valueContent\"></i-input>\r\n </template>\r\n <!-- <template slot-scope=\"{ row,index }\" slot=\"required\">\r\n <i-switch v-model=\"queryDataList[index].required\">\r\n <span slot=\"open\">是</span>\r\n <span slot=\"close\">否</span>\r\n </i-switch>\r\n </template> -->\r\n <template slot-scope=\"{ row,index }\" slot=\"text\">\r\n <i-input class=\"diy-input\" placeholder=\"输入备注\" v-model=\"queryDataList[index].text\"></i-input>\r\n </template>\r\n <template slot-scope=\"{ row,index }\" slot=\"action\">\r\n <i-poptip class=\"action-btn delete\" title=\"确认删除这条数据吗?\" confirm @on-ok=\"onDelete(queryDataList,index)\" transfer>\r\n <i class=\"iconfont icon-delete\" title=\"删除\"></i>\r\n </i-poptip>\r\n <span>\r\n <i v-if=\"index>0\" class=\"iconfont icon-up\" @click=\"onUp(queryDataList,index)\" title=\"上移\"></i>\r\n <i v-if=\"index>0\" class=\"iconfont icon-top\" title=\"置顶\" @click=\"onTop(queryDataList,index)\"></i>\r\n <i v-if=\"index < queryDataList.length - 1\" @click=\"onDown(queryDataList,index)\" class=\"iconfont icon-down\" title=\"下移\"></i>\r\n <i v-if=\"index < queryDataList.length - 1\" @click=\"onBottom(queryDataList,index)\" class=\"iconfont icon-bottom\" title=\"置底\"></i>\r\n </span>\r\n </template>\r\n </i-table>\r\n </main>\r\n </div>\r\n </i-panel>\r\n <i-panel name=\"2\">\r\n <span>Body参数</span>\r\n <span class=\"status\">{{getExpand('2') ? \"收起\" : \"展开\"}}</span>\r\n <div slot=\"content\" class=\"setting-content\">\r\n <header>\r\n <i-button v-if=\"isFormData\" type=\"primary\" ghost class=\"diy-btn-primary\" @click=\"onAddBodyParam\"> <i class=\"api-icon icon-add\"></i>新增参数 </i-button>\r\n <i-button v-else type=\"primary\" ghost class=\"diy-btn-primary\" @click=\"onBeautify\"> <i class=\"api-icon icon-view\"></i>格式化 </i-button>\r\n <i-select transfer v-model=\"interfaceModel.info.requestBodyType\" class=\"diy-select\">\r\n <i-option v-for=\"item in requestBodyTypeList\" :value=\"item.name\" :key=\"item.name\">{{item.text}}</i-option>\r\n </i-select>\r\n </header>\r\n <main>\r\n <i-table height=\"200\" width=\"1280\" class=\"diy-table\" :columns=\"paramColumns\" :data=\"bodyDataList\" v-if=\"isFormData\">\r\n <template slot-scope=\"{ row,index }\" slot=\"selection\">\r\n <i-checkbox :value=\"!bodyDataList[index].disabled\" @on-change=\"onChangeDisabled($event,bodyDataList[index])\"> </i-checkbox>\r\n </template>\r\n <template slot-scope=\"{ row,index }\" slot=\"name\">\r\n <div class=\"body-name-row\">\r\n <i-input class=\"diy-input\" placeholder=\"输入参数名称\" v-model=\"bodyDataList[index].name\"></i-input>\r\n <i-select class=\"diy-select\" v-if=\"bodyType === 'Form'\" v-model=\"row.valueType\" @on-change=\"onChangeFormParamType(index, row)\" transfer>\r\n <i-option v-for=\"item in formParamTypeList\" :value=\"item.name\" :key=\"item.name\">{{item.text}}</i-option>\r\n </i-select>\r\n </div>\r\n </template>\r\n <template slot-scope=\"{ row,index }\" slot=\"valueContent\">\r\n <i-input v-if=\"row.valueType === 'String'\" class=\"diy-input\" placeholder=\"输入参数值\" v-model=\"bodyDataList[index].valueContent\"></i-input>\r\n <i-upload v-if=\"row.valueType === 'File' && !row.fileName\" action=\"\" :before-upload=\"onImport\" :show-upload-list=\"false\">\r\n <i-button class=\"file-btn\" icon=\"ios-cloud-upload-outline\" @click=\"onClickRow(row)\">选择文件</i-button>\r\n </i-upload>\r\n <div class=\"file-wrap\" v-if=\"row.valueType === 'File' && row.fileName\">\r\n <div class=\"file-name\" :title=\"row.fileName\">{{ row.fileName }}</div>\r\n <i-icon type=\"ios-close\" @click=\"onClearFile(row)\"/>\r\n </div>\r\n </template>\r\n <!-- <template slot-scope=\"{ row,index }\" slot=\"required\">\r\n <i-switch v-model=\"bodyDataList[index].required\">\r\n <span slot=\"open\">是</span>\r\n <span slot=\"close\">否</span>\r\n </i-switch>\r\n </template> -->\r\n <template slot-scope=\"{ row,index }\" slot=\"text\">\r\n <i-input class=\"diy-input\" placeholder=\"输入备注\" v-model=\"bodyDataList[index].remark\"></i-input>\r\n </template>\r\n <template slot-scope=\"{ row,index }\" slot=\"action\">\r\n <i-poptip class=\"action-btn delete\" title=\"确认删除这条数据吗?\" confirm @on-ok=\"onDeleteBodyParam(interfaceModel.formParams,row.indexFlag)\" transfer>\r\n <i class=\"iconfont icon-delete\" title=\"删除\"></i>\r\n </i-poptip>\r\n <span>\r\n <i v-if=\"index > 0\" class=\"iconfont icon-up\" @click=\"onUpBodyParam(interfaceModel.formParams,row.id)\" title=\"上移\"></i>\r\n <i v-if=\"index > 0\" class=\"iconfont icon-top\" @click=\"onTopBodyParam(interfaceModel.formParams,row.id)\" title=\"置顶\"></i>\r\n <i v-if=\"index < bodyDataList.length - 1\" @click=\"onDownBodyParam(interfaceModel.formParams,row.id)\" class=\"iconfont icon-down\" title=\"下移\"></i>\r\n <i v-if=\"index < bodyDataList.length - 1\" @click=\"onBottomBodyParam(interfaceModel.formParams,row.id)\" class=\"iconfont icon-bottom\" title=\"置底\"></i>\r\n </span>\r\n </template>\r\n </i-table>\r\n <u-editor v-else :value.sync=\"interfaceModel.json\" lang=\"json\" @inited=\"onEditorInited\"></u-editor>\r\n </main>\r\n </div>\r\n </i-panel>\r\n </i-collapse>\r\n</article>\r\n"
|
|
39907
39907
|
|
|
39908
39908
|
/***/ }),
|
|
39909
39909
|
|
|
@@ -42972,6 +42972,33 @@ module.exports = "<article class=\"catalog-params\">\r\n <i-table height=\"20
|
|
|
42972
42972
|
|
|
42973
42973
|
// extracted by mini-css-extract-plugin
|
|
42974
42974
|
|
|
42975
|
+
/***/ }),
|
|
42976
|
+
|
|
42977
|
+
/***/ "a15b":
|
|
42978
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
42979
|
+
|
|
42980
|
+
"use strict";
|
|
42981
|
+
|
|
42982
|
+
var $ = __webpack_require__("23e7");
|
|
42983
|
+
var uncurryThis = __webpack_require__("e330");
|
|
42984
|
+
var IndexedObject = __webpack_require__("44ad");
|
|
42985
|
+
var toIndexedObject = __webpack_require__("fc6a");
|
|
42986
|
+
var arrayMethodIsStrict = __webpack_require__("a640");
|
|
42987
|
+
|
|
42988
|
+
var un$Join = uncurryThis([].join);
|
|
42989
|
+
|
|
42990
|
+
var ES3_STRINGS = IndexedObject != Object;
|
|
42991
|
+
var STRICT_METHOD = arrayMethodIsStrict('join', ',');
|
|
42992
|
+
|
|
42993
|
+
// `Array.prototype.join` method
|
|
42994
|
+
// https://tc39.es/ecma262/#sec-array.prototype.join
|
|
42995
|
+
$({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD }, {
|
|
42996
|
+
join: function join(separator) {
|
|
42997
|
+
return un$Join(toIndexedObject(this), separator === undefined ? ',' : separator);
|
|
42998
|
+
}
|
|
42999
|
+
});
|
|
43000
|
+
|
|
43001
|
+
|
|
42975
43002
|
/***/ }),
|
|
42976
43003
|
|
|
42977
43004
|
/***/ "a1f0":
|
|
@@ -48843,7 +48870,7 @@ module.exports = uncurryThis([].slice);
|
|
|
48843
48870
|
/***/ "f40e":
|
|
48844
48871
|
/***/ (function(module, exports) {
|
|
48845
48872
|
|
|
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 <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</article>\r\n"
|
|
48873
|
+
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 :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</article>\r\n"
|
|
48847
48874
|
|
|
48848
48875
|
/***/ }),
|
|
48849
48876
|
|
|
@@ -58889,6 +58916,10 @@ function (_super) {
|
|
|
58889
58916
|
return this._post("/unity/api/run/".concat(apiId, "/web"), apiInfo);
|
|
58890
58917
|
};
|
|
58891
58918
|
|
|
58919
|
+
ApiService.prototype.runWithFile = function (apiId, data) {
|
|
58920
|
+
return this._post("/unity/api/run/".concat(apiId, "/exec"), data);
|
|
58921
|
+
};
|
|
58922
|
+
|
|
58892
58923
|
ApiService.prototype.saveApiInfo = function (apiInfo) {
|
|
58893
58924
|
return this._post("/unity/api/info/save/whole", apiInfo);
|
|
58894
58925
|
};
|
|
@@ -59021,6 +59052,10 @@ function (_super) {
|
|
|
59021
59052
|
title: "在线测试"
|
|
59022
59053
|
}), project_detail_service_metadata("design:type", Function), project_detail_service_metadata("design:paramtypes", [String, typeof (_a = typeof InterfaceModel !== "undefined" && InterfaceModel) === "function" ? _a : Object]), project_detail_service_metadata("design:returntype", void 0)], ApiService.prototype, "run", null);
|
|
59023
59054
|
|
|
59055
|
+
project_detail_service_decorate([serviceHandler("query", {
|
|
59056
|
+
title: "在线测试"
|
|
59057
|
+
}), project_detail_service_metadata("design:type", Function), project_detail_service_metadata("design:paramtypes", [String, Object]), project_detail_service_metadata("design:returntype", void 0)], ApiService.prototype, "runWithFile", null);
|
|
59058
|
+
|
|
59024
59059
|
project_detail_service_decorate([serviceHandler("save", {
|
|
59025
59060
|
title: "保存接口详情",
|
|
59026
59061
|
showErrorMsg: true,
|
|
@@ -59797,6 +59832,9 @@ function (_super) {
|
|
|
59797
59832
|
}(flagwind_web_["View"]);
|
|
59798
59833
|
|
|
59799
59834
|
/* harmony default export */ var views_project_comment = (project_comment_ProjectComment);
|
|
59835
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.join.js
|
|
59836
|
+
var es_array_join = __webpack_require__("a15b");
|
|
59837
|
+
|
|
59800
59838
|
// EXTERNAL MODULE: ./src/views/project-detail/current-variable-modal/index.scss
|
|
59801
59839
|
var current_variable_modal = __webpack_require__("8b9b");
|
|
59802
59840
|
|
|
@@ -62338,6 +62376,7 @@ var params_setting = __webpack_require__("8137");
|
|
|
62338
62376
|
|
|
62339
62377
|
|
|
62340
62378
|
|
|
62379
|
+
|
|
62341
62380
|
|
|
62342
62381
|
var params_setting_extends = undefined && undefined.__extends || function () {
|
|
62343
62382
|
var _extendStatics = function extendStatics(d, b) {
|
|
@@ -62554,12 +62593,7 @@ function (_super) {
|
|
|
62554
62593
|
title: "参数值",
|
|
62555
62594
|
slot: "valueContent",
|
|
62556
62595
|
align: "left"
|
|
62557
|
-
},
|
|
62558
|
-
// title: "是否必须",
|
|
62559
|
-
// slot: "required",
|
|
62560
|
-
// align: "left"
|
|
62561
|
-
// },
|
|
62562
|
-
{
|
|
62596
|
+
}, {
|
|
62563
62597
|
title: "备注",
|
|
62564
62598
|
slot: "text",
|
|
62565
62599
|
align: "left"
|
|
@@ -62576,6 +62610,15 @@ function (_super) {
|
|
|
62576
62610
|
Form: "FormData",
|
|
62577
62611
|
X_www_form_urlencoded: "FormUrlEncoded"
|
|
62578
62612
|
};
|
|
62613
|
+
_this.formParamTypeList = [{
|
|
62614
|
+
name: "String",
|
|
62615
|
+
text: "Text"
|
|
62616
|
+
}, {
|
|
62617
|
+
name: "File",
|
|
62618
|
+
text: "File"
|
|
62619
|
+
}];
|
|
62620
|
+
_this.formParamsIndex = 0;
|
|
62621
|
+
_this.currentFormParamRow = {};
|
|
62579
62622
|
return _this;
|
|
62580
62623
|
}
|
|
62581
62624
|
|
|
@@ -62611,7 +62654,7 @@ function (_super) {
|
|
|
62611
62654
|
|
|
62612
62655
|
ParamsSetting.prototype.onDeleteBodyParam = function (paramList, id) {
|
|
62613
62656
|
var index = paramList.findIndex(function (v) {
|
|
62614
|
-
return v.
|
|
62657
|
+
return v.indexFlag === id;
|
|
62615
62658
|
});
|
|
62616
62659
|
paramList.splice(index, 1);
|
|
62617
62660
|
};
|
|
@@ -62655,10 +62698,17 @@ function (_super) {
|
|
|
62655
62698
|
};
|
|
62656
62699
|
|
|
62657
62700
|
ParamsSetting.prototype.init = function () {
|
|
62701
|
+
var _this = this;
|
|
62702
|
+
|
|
62658
62703
|
var _a, _b;
|
|
62659
62704
|
|
|
62660
62705
|
if (!((_b = (_a = this.interfaceModel) === null || _a === void 0 ? void 0 : _a.info) === null || _b === void 0 ? void 0 : _b.id)) return;
|
|
62661
|
-
this.queryDataList = this.interfaceModel.queryParams;
|
|
62706
|
+
this.queryDataList = this.interfaceModel.queryParams;
|
|
62707
|
+
this.interfaceModel.formParams.forEach(function (item) {
|
|
62708
|
+
if (!item.indexFlag) {
|
|
62709
|
+
item.indexFlag = _this.formParamsIndex++ + "_" + _this.interfaceModel.info.id;
|
|
62710
|
+
}
|
|
62711
|
+
}); // this.bodyDataList = this.interfaceModel.formParams;
|
|
62662
62712
|
};
|
|
62663
62713
|
|
|
62664
62714
|
Object.defineProperty(ParamsSetting.prototype, "bodyDataList", {
|
|
@@ -62674,11 +62724,14 @@ function (_super) {
|
|
|
62674
62724
|
|
|
62675
62725
|
ParamsSetting.prototype.onAddRequestParam = function () {
|
|
62676
62726
|
this.queryDataList.push({
|
|
62727
|
+
indexFlag: this.formParamsIndex++ + "_" + this.interfaceModel.info.id,
|
|
62728
|
+
fileName: "",
|
|
62677
62729
|
name: "",
|
|
62678
62730
|
text: "",
|
|
62679
62731
|
type: "QueryString",
|
|
62680
62732
|
valueContent: "",
|
|
62681
|
-
disabled: false
|
|
62733
|
+
disabled: false,
|
|
62734
|
+
valueType: "String"
|
|
62682
62735
|
});
|
|
62683
62736
|
};
|
|
62684
62737
|
|
|
@@ -62743,7 +62796,48 @@ function (_super) {
|
|
|
62743
62796
|
});
|
|
62744
62797
|
};
|
|
62745
62798
|
|
|
62746
|
-
|
|
62799
|
+
ParamsSetting.prototype.onChangeFormParamType = function (index, row) {
|
|
62800
|
+
this.interfaceModel.formParams.forEach(function (item) {
|
|
62801
|
+
if (item.indexFlag === row.indexFlag) {
|
|
62802
|
+
return item.valueType = row.valueType;
|
|
62803
|
+
}
|
|
62804
|
+
});
|
|
62805
|
+
};
|
|
62806
|
+
|
|
62807
|
+
ParamsSetting.prototype.onClickRow = function (row) {
|
|
62808
|
+
this.currentFormParamRow = row;
|
|
62809
|
+
};
|
|
62810
|
+
|
|
62811
|
+
ParamsSetting.prototype.onImport = function (file) {
|
|
62812
|
+
return params_setting_awaiter(this, void 0, void 0, function () {
|
|
62813
|
+
var _this = this;
|
|
62814
|
+
|
|
62815
|
+
return params_setting_generator(this, function (_a) {
|
|
62816
|
+
this.formData.append(this.currentFormParamRow.indexFlag, file);
|
|
62817
|
+
this.interfaceModel.formParams.forEach(function (item) {
|
|
62818
|
+
if (item.indexFlag === _this.currentFormParamRow.indexFlag) {
|
|
62819
|
+
item.fileName = file.name;
|
|
62820
|
+
item.valueContent = null;
|
|
62821
|
+
return;
|
|
62822
|
+
}
|
|
62823
|
+
});
|
|
62824
|
+
return [2
|
|
62825
|
+
/*return*/
|
|
62826
|
+
, Promise.reject(false)];
|
|
62827
|
+
});
|
|
62828
|
+
});
|
|
62829
|
+
};
|
|
62830
|
+
|
|
62831
|
+
ParamsSetting.prototype.onClearFile = function (row) {
|
|
62832
|
+
this.formData.delete(row.indexFlag);
|
|
62833
|
+
this.interfaceModel.formParams.forEach(function (item) {
|
|
62834
|
+
if (item.indexFlag === row.indexFlag) {
|
|
62835
|
+
return item.fileName = "";
|
|
62836
|
+
}
|
|
62837
|
+
});
|
|
62838
|
+
};
|
|
62839
|
+
|
|
62840
|
+
var _a, _b, _c;
|
|
62747
62841
|
|
|
62748
62842
|
params_setting_decorate([Object(flagwind_web_["config"])({
|
|
62749
62843
|
default: function _default() {
|
|
@@ -62751,7 +62845,13 @@ function (_super) {
|
|
|
62751
62845
|
}
|
|
62752
62846
|
}), params_setting_metadata("design:type", typeof (_a = typeof InterfaceModel !== "undefined" && InterfaceModel) === "function" ? _a : Object)], ParamsSetting.prototype, "interfaceModel", void 0);
|
|
62753
62847
|
|
|
62754
|
-
params_setting_decorate([
|
|
62848
|
+
params_setting_decorate([Object(flagwind_web_["config"])({
|
|
62849
|
+
default: function _default() {
|
|
62850
|
+
return new FormData();
|
|
62851
|
+
}
|
|
62852
|
+
}), params_setting_metadata("design:type", typeof (_b = typeof FormData !== "undefined" && FormData) === "function" ? _b : Object)], ParamsSetting.prototype, "formData", void 0);
|
|
62853
|
+
|
|
62854
|
+
params_setting_decorate([autowired(project_detail_service), params_setting_metadata("design:type", typeof (_c = typeof project_detail_service !== "undefined" && project_detail_service) === "function" ? _c : Object)], ParamsSetting.prototype, "service", void 0);
|
|
62755
62855
|
|
|
62756
62856
|
params_setting_decorate([Object(flagwind_web_["watch"])("interfaceModel", {
|
|
62757
62857
|
immediate: true
|
|
@@ -64291,6 +64391,7 @@ function (_super) {
|
|
|
64291
64391
|
}]
|
|
64292
64392
|
};
|
|
64293
64393
|
_this.currentRequestSettingType = _this.requertSettingTypeList[0];
|
|
64394
|
+
_this.formData = new FormData();
|
|
64294
64395
|
return _this;
|
|
64295
64396
|
}
|
|
64296
64397
|
|
|
@@ -64312,7 +64413,7 @@ function (_super) {
|
|
|
64312
64413
|
var _a, _b, _c, _d, _e, _f;
|
|
64313
64414
|
|
|
64314
64415
|
return interface_settings_awaiter(this, void 0, void 0, function () {
|
|
64315
|
-
var formParams, requestHeaders, index, result;
|
|
64416
|
+
var formParams, requestHeaders, index, result, fileFormParams, _model, tmpFormData_1;
|
|
64316
64417
|
|
|
64317
64418
|
var _this = this;
|
|
64318
64419
|
|
|
@@ -64342,6 +64443,33 @@ function (_super) {
|
|
|
64342
64443
|
this.interfaceModel.environmentParam = index > -1 ? this.paramList[index] : null;
|
|
64343
64444
|
}
|
|
64344
64445
|
|
|
64446
|
+
result = null;
|
|
64447
|
+
fileFormParams = formParams.filter(function (item) {
|
|
64448
|
+
return item.valueType === "File";
|
|
64449
|
+
});
|
|
64450
|
+
if (!fileFormParams.length) return [3
|
|
64451
|
+
/*break*/
|
|
64452
|
+
, 2];
|
|
64453
|
+
_model = interface_settings_assign(interface_settings_assign({}, this.interfaceModel), {
|
|
64454
|
+
formParams: formParams,
|
|
64455
|
+
requestHeaders: requestHeaders
|
|
64456
|
+
});
|
|
64457
|
+
tmpFormData_1 = new FormData();
|
|
64458
|
+
fileFormParams.forEach(function (item) {
|
|
64459
|
+
tmpFormData_1.append(item.name, _this.formData.get(item.indexFlag));
|
|
64460
|
+
});
|
|
64461
|
+
tmpFormData_1.append("_model", JSON.stringify(_model));
|
|
64462
|
+
return [4
|
|
64463
|
+
/*yield*/
|
|
64464
|
+
, this.service.runWithFile(this.interfaceModel.info.id, tmpFormData_1)];
|
|
64465
|
+
|
|
64466
|
+
case 1:
|
|
64467
|
+
result = _g.sent();
|
|
64468
|
+
return [3
|
|
64469
|
+
/*break*/
|
|
64470
|
+
, 4];
|
|
64471
|
+
|
|
64472
|
+
case 2:
|
|
64345
64473
|
return [4
|
|
64346
64474
|
/*yield*/
|
|
64347
64475
|
, this.service.run(this.interfaceModel.info.id, interface_settings_assign(interface_settings_assign({}, this.interfaceModel), {
|
|
@@ -64349,8 +64477,11 @@ function (_super) {
|
|
|
64349
64477
|
requestHeaders: requestHeaders
|
|
64350
64478
|
}))];
|
|
64351
64479
|
|
|
64352
|
-
case
|
|
64480
|
+
case 3:
|
|
64353
64481
|
result = _g.sent();
|
|
64482
|
+
_g.label = 4;
|
|
64483
|
+
|
|
64484
|
+
case 4:
|
|
64354
64485
|
this.loading = false;
|
|
64355
64486
|
this.response = (result === null || result === void 0 ? void 0 : result.result) || new Response();
|
|
64356
64487
|
|
|
@@ -66283,6 +66414,7 @@ var vue_awesome_swiper = __webpack_require__("7212");
|
|
|
66283
66414
|
|
|
66284
66415
|
|
|
66285
66416
|
|
|
66417
|
+
|
|
66286
66418
|
|
|
66287
66419
|
|
|
66288
66420
|
var project_detail_extends = undefined && undefined.__extends || function () {
|
|
@@ -66565,13 +66697,15 @@ function (_super) {
|
|
|
66565
66697
|
};
|
|
66566
66698
|
|
|
66567
66699
|
ProjectDetail.prototype.onCheckInterface = function (data, isResume) {
|
|
66700
|
+
var _a;
|
|
66701
|
+
|
|
66568
66702
|
return project_detail_awaiter(this, void 0, void 0, function () {
|
|
66569
66703
|
var resumeData, text, set, result, res, index;
|
|
66570
66704
|
|
|
66571
66705
|
var _this = this;
|
|
66572
66706
|
|
|
66573
|
-
return project_detail_generator(this, function (
|
|
66574
|
-
switch (
|
|
66707
|
+
return project_detail_generator(this, function (_b) {
|
|
66708
|
+
switch (_b.label) {
|
|
66575
66709
|
case 0:
|
|
66576
66710
|
this.current = data;
|
|
66577
66711
|
resumeData = {};
|
|
@@ -66583,13 +66717,14 @@ function (_super) {
|
|
|
66583
66717
|
if (text) {
|
|
66584
66718
|
resumeData = JSON.parse(text);
|
|
66585
66719
|
}
|
|
66586
|
-
} catch (
|
|
66720
|
+
} catch (_c) {//
|
|
66587
66721
|
}
|
|
66588
66722
|
|
|
66589
66723
|
resumeData = project_detail_assign(project_detail_assign({}, resumeData), {
|
|
66590
66724
|
name: data.name,
|
|
66591
66725
|
id: data.id
|
|
66592
|
-
});
|
|
66726
|
+
});
|
|
66727
|
+
resumeData.authentication.content = (((_a = resumeData.authentication) === null || _a === void 0 ? void 0 : _a.content) || []).join("\n") || ""; // 获取默认值
|
|
66593
66728
|
|
|
66594
66729
|
!resumeData.fieldMappings && (resumeData.fieldMappings = []);
|
|
66595
66730
|
!resumeData.pathParams && (resumeData.pathParams = []);
|
|
@@ -66623,17 +66758,17 @@ function (_super) {
|
|
|
66623
66758
|
, this.service.apiInfo(data.id)];
|
|
66624
66759
|
|
|
66625
66760
|
case 2:
|
|
66626
|
-
res =
|
|
66761
|
+
res = _b.sent();
|
|
66627
66762
|
result = project_detail_assign(project_detail_assign({}, res.result || {}), {
|
|
66628
66763
|
name: data.name,
|
|
66629
66764
|
id: data.id
|
|
66630
66765
|
});
|
|
66631
|
-
|
|
66766
|
+
_b.label = 3;
|
|
66632
66767
|
|
|
66633
66768
|
case 3:
|
|
66634
66769
|
this.openInterfaceList.push(result);
|
|
66635
66770
|
this.loading = false;
|
|
66636
|
-
|
|
66771
|
+
_b.label = 4;
|
|
66637
66772
|
|
|
66638
66773
|
case 4:
|
|
66639
66774
|
index = this.openInterfaceList.findIndex(function (i) {
|