Commit 8630bdb7 by 无尘

fix: 修改导入 dubbo 参数

parent a21d770b
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>API网关管理平台</title><link href=./static/css/app.232f584b9d1028a6d0a00f9618c98b36.css rel=stylesheet></head><body style="min-width: 1400px;"><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js></script><script>// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script src=//web-1251519181.file.myqcloud.com/components/input.2.0.15.js></script><script src=//web-1251519181.file.myqcloud.com/components/delete.2.0.01.js></script><script type=text/javascript src=./static/js/manifest.1a16260abcb2a6515673.js></script><script type=text/javascript src=./static/js/vendor.71dc162eb690bf6a36a0.js></script><script type=text/javascript src=./static/js/app.645acae76cd0fc1ae565.js></script></body></html> <!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>API网关管理平台</title><link href=./static/css/app.fde6dfdbb658adae502a9bdc2a8811df.css rel=stylesheet></head><body style="min-width: 1400px;"><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js></script><script>// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script src=//web-1251519181.file.myqcloud.com/components/input.2.0.15.js></script><script src=//web-1251519181.file.myqcloud.com/components/delete.2.0.01.js></script><script type=text/javascript src=./static/js/manifest.83067771d47b5a8c3f72.js></script><script type=text/javascript src=./static/js/vendor.71dc162eb690bf6a36a0.js></script><script type=text/javascript src=./static/js/app.645acae76cd0fc1ae565.js></script></body></html>
\ No newline at end of file \ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,c,a){for(var f,b,d,i=0,u=[];i<r.length;i++)b=r[i],t[b]&&u.push(t[b][0]),t[b]=0;for(f in c)Object.prototype.hasOwnProperty.call(c,f)&&(e[f]=c[f]);for(n&&n(r,c,a);u.length;)u.shift()();if(a)for(i=0;i<a.length;i++)d=o(o.s=a[i]);return d};var r={},t={24:0};function o(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.e=function(e){var n=t[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var r=new Promise(function(r,o){n=t[e]=[r,o]});n[2]=r;var c=document.getElementsByTagName("head")[0],a=document.createElement("script");a.type="text/javascript",a.charset="utf-8",a.async=!0,a.timeout=12e4,o.nc&&a.setAttribute("nonce",o.nc),a.src=o.p+"static/js/"+e+"."+{0:"63d3650fda518fa5d91a",1:"0ebe3ead93207dc78a78",2:"6bdb1bfe8400a1e9f0fb",3:"02f6ff10c5e83fdc830b",4:"83b134741cef8a1fc258",5:"61455822347fda4022ec",6:"7a4f7f41cea5405e209f",7:"b2a85a42ddd430235a63",8:"81460c8c66d06cfea732",9:"9c96ae683c51b04359d0",10:"638039a7b39908980436",11:"f27d1de28264fbbe30ff",12:"ccbc18453e41490e2dba",13:"b109164d2be44afb7733",14:"9825bb69e60b8030c230",15:"ffd723714f3c604ae809",16:"825722b083bcf8e5877e",17:"4786e13164b8fb55cf3b",18:"ebf8edd37453b58275c4",19:"237102ab58f0569908b0",20:"106676f1ed05cab7702b",21:"9811614945523e2ab002"}[e]+".js";var f=setTimeout(b,12e4);function b(){a.onerror=a.onload=null,clearTimeout(f);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return a.onerror=a.onload=b,c.appendChild(a),r},o.m=e,o.c=r,o.d=function(e,n,r){o.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,"a",n),n},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.p="./",o.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,o,c){for(var f,d,i,u=0,b=[];u<r.length;u++)d=r[u],t[d]&&b.push(t[d][0]),t[d]=0;for(f in o)Object.prototype.hasOwnProperty.call(o,f)&&(e[f]=o[f]);for(n&&n(r,o,c);b.length;)b.shift()();if(c)for(u=0;u<c.length;u++)i=a(a.s=c[u]);return i};var r={},t={24:0};function a(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,a),t.l=!0,t.exports}a.e=function(e){var n=t[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var r=new Promise(function(r,a){n=t[e]=[r,a]});n[2]=r;var o=document.getElementsByTagName("head")[0],c=document.createElement("script");c.type="text/javascript",c.charset="utf-8",c.async=!0,c.timeout=12e4,a.nc&&c.setAttribute("nonce",a.nc),c.src=a.p+"static/js/"+e+"."+{0:"63d3650fda518fa5d91a",1:"0ebe3ead93207dc78a78",2:"a1307445a3a1c4208a02",3:"02f6ff10c5e83fdc830b",4:"83b134741cef8a1fc258",5:"61455822347fda4022ec",6:"7a4f7f41cea5405e209f",7:"b2a85a42ddd430235a63",8:"81460c8c66d06cfea732",9:"9c96ae683c51b04359d0",10:"638039a7b39908980436",11:"f27d1de28264fbbe30ff",12:"ccbc18453e41490e2dba",13:"b109164d2be44afb7733",14:"9825bb69e60b8030c230",15:"ffd723714f3c604ae809",16:"825722b083bcf8e5877e",17:"4786e13164b8fb55cf3b",18:"ebf8edd37453b58275c4",19:"237102ab58f0569908b0",20:"106676f1ed05cab7702b",21:"9811614945523e2ab002"}[e]+".js";var f=setTimeout(d,12e4);function d(){c.onerror=c.onload=null,clearTimeout(f);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return c.onerror=c.onload=d,o.appendChild(c),r},a.m=e,a.c=r,a.d=function(e,n,r){a.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},a.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(n,"a",n),n},a.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},a.p="./",a.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2019-08-14 16:51:07 * @Date: 2019-08-14 16:51:07
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2019-10-12 17:34:52 * @LastEditTime: 2019-10-12 18:09:21
--> -->
<!-- <!--
<back-table-right :itemData="itemData" :interfaceType="interfaceType"></back-table-right> <back-table-right :itemData="itemData" :interfaceType="interfaceType"></back-table-right>
...@@ -350,7 +350,13 @@ export default { ...@@ -350,7 +350,13 @@ export default {
const that = this; const that = this;
console.log(handleData); console.log(handleData);
for(let key in handleData.properties) { for(let key in handleData.properties) {
that.changeCheck(handleData.properties[key]) that.changeCheck(handleData.properties[key]);
if (handleData.properties[key].type == 'object' && Object.keys(handleData.properties[key].properties).length) {
await that.handledisFlag(handleData.properties[key]);
}
if (handleData.properties[key].type == 'array' && Object.keys(handleData.properties[key].items.properties).length) {
await that.handledisFlag(handleData.properties[key].items);
}
} }
} }
}, },
...@@ -367,9 +373,10 @@ export default { ...@@ -367,9 +373,10 @@ export default {
that.trData = JSON.parse(JSON.stringify(that.itemData)); that.trData = JSON.parse(JSON.stringify(that.itemData));
// that.handleToArr(); // that.handleToArr();
console.log("right watch2", that.itemData) console.log("right watch2", that.itemData)
if (that.itemData.level == 1 && that.itemData.properties.hasOwnProperty('bodyRoot')) { /* if (that.itemData.level == 1 && that.itemData.properties.hasOwnProperty('bodyRoot')) {
that.handledisFlag(that.itemData)
} */
that.handledisFlag(that.itemData) that.handledisFlag(that.itemData)
}
}, },
beforeDestroy() { beforeDestroy() {
this.tempArr = []; this.tempArr = [];
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2019-08-07 17:17:50 * @Date: 2019-08-07 17:17:50
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2019-10-12 17:34:43 * @LastEditTime: 2019-10-12 18:20:09
--> -->
<!-- <!--
<create-base></create-base> <create-base></create-base>
...@@ -406,6 +406,23 @@ export default { ...@@ -406,6 +406,23 @@ export default {
}); });
}, },
/**
* 处理 提交的 isRootKey
*/
async handleRootKey(item) {
const that = this;
for (let childKey in item) {
item[childKey]['isRootKey'] = item[childKey]['isRootKey'] == '' || item[childKey]['isRootKey'] == 0 ? false : true; // 是否是后端参数字段
if (item[childKey].type == 'array' && Object.keys(item[childKey].items.properties).length) {
await that.handleRootKey(item[childKey].items.properties);
}
if (item[childKey].type == 'object' && Object.keys(item[childKey].properties).length) {
await that.handleRootKey(item[childKey].properties);
}
}
return item;
},
/* eslint-disable */ /* eslint-disable */
async handleData() { async handleData() {
const that = this; const that = this;
...@@ -436,6 +453,15 @@ export default { ...@@ -436,6 +453,15 @@ export default {
if (that.bodyJsonData.properties.bodyRoot.properties[key].check) { if (that.bodyJsonData.properties.bodyRoot.properties[key].check) {
that.bodyJsonData.properties.bodyRoot.required.push(key); that.bodyJsonData.properties.bodyRoot.required.push(key);
} }
// 如果有数组出现
if (that.bodyJsonData.properties.bodyRoot.properties[key].type == 'array' && Object.keys(that.bodyJsonData.properties.bodyRoot.properties[key].items.properties).length) {
that.bodyJsonData.properties.bodyRoot.properties[key].items.isRootKey = that.bodyJsonData.properties.bodyRoot.properties[key].items.isRootKey == false ? 0 : 1;
await that.handleRootKey(that.bodyJsonData.properties.bodyRoot.properties[key].items.properties);
}
// 如果有对象出现
if (that.bodyJsonData.properties.bodyRoot.properties[key].type == 'object' && Object.keys(that.bodyJsonData.properties.bodyRoot.properties[key].properties).length) {
await that.handleRootKey(that.bodyJsonData.properties.bodyRoot.properties[key].properties);
}
} }
} }
that.apiInfoData.bodyJsonData = that.bodyJsonData; that.apiInfoData.bodyJsonData = that.bodyJsonData;
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2019-08-16 10:02:07 * @Date: 2019-08-16 10:02:07
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2019-10-12 14:07:48 * @LastEditTime: 2019-10-12 17:51:39
--> -->
<!-- <!--
<create-result></create-result> <create-result></create-result>
...@@ -270,6 +270,7 @@ export default { ...@@ -270,6 +270,7 @@ export default {
} }
obj.properties = Object.assign(front.queryData.properties, front.headerData.properties); obj.properties = Object.assign(front.queryData.properties, front.headerData.properties);
if (front.requestType == 'POST' && front.frontBodyType == 'json') { if (front.requestType == 'POST' && front.frontBodyType == 'json') {
front.bodyJsonData.properties.bodyRoot.isRootKey = front.bodyJsonData.properties.bodyRoot.isRootKey == false ? 0 : 1;
if (Object.keys(front.bodyJsonData.properties.bodyRoot.properties).length) { if (Object.keys(front.bodyJsonData.properties.bodyRoot.properties).length) {
front.bodyJsonData.properties.bodyRoot.required = []; front.bodyJsonData.properties.bodyRoot.required = [];
for (const key in front.bodyJsonData.properties.bodyRoot.properties) { for (const key in front.bodyJsonData.properties.bodyRoot.properties) {
...@@ -279,6 +280,7 @@ export default { ...@@ -279,6 +280,7 @@ export default {
} }
// 如果有数组出现 // 如果有数组出现
if (front.bodyJsonData.properties.bodyRoot.properties[key].type == 'array' && Object.keys(front.bodyJsonData.properties.bodyRoot.properties[key].items.properties).length) { if (front.bodyJsonData.properties.bodyRoot.properties[key].type == 'array' && Object.keys(front.bodyJsonData.properties.bodyRoot.properties[key].items.properties).length) {
front.bodyJsonData.properties.bodyRoot.properties[key].items.isRootKey = front.bodyJsonData.properties.bodyRoot.properties[key].items.isRootKey == false ? 0 : 1;
await that.handleArrObjData(front.bodyJsonData.properties.bodyRoot.properties[key].items.properties); await that.handleArrObjData(front.bodyJsonData.properties.bodyRoot.properties[key].items.properties);
} }
// 如果有对象出现 // 如果有对象出现
...@@ -343,6 +345,7 @@ export default { ...@@ -343,6 +345,7 @@ export default {
} }
obj.properties = Object.assign(back.backQueryData.properties, back.backHeaderData.properties, back.constData.properties); obj.properties = Object.assign(back.backQueryData.properties, back.backHeaderData.properties, back.constData.properties);
if (front.requestType == 'POST' && front.frontBodyType == 'json') { if (front.requestType == 'POST' && front.frontBodyType == 'json') {
back.backBodyJsonData.properties.bodyRoot.isRootKey = back.backBodyJsonData.properties.bodyRoot.isRootKey == false ? 0 : 1;
if (Object.keys(back.backBodyJsonData.properties.bodyRoot.properties).length) { if (Object.keys(back.backBodyJsonData.properties.bodyRoot.properties).length) {
back.backBodyJsonData.properties.bodyRoot.required = []; back.backBodyJsonData.properties.bodyRoot.required = [];
for (const key in back.backBodyJsonData.properties.bodyRoot.properties) { for (const key in back.backBodyJsonData.properties.bodyRoot.properties) {
...@@ -352,6 +355,7 @@ export default { ...@@ -352,6 +355,7 @@ export default {
} }
// 如果有数组出现 // 如果有数组出现
if (back.backBodyJsonData.properties.bodyRoot.properties[key].type == 'array' && Object.keys(back.backBodyJsonData.properties.bodyRoot.properties[key].items.properties).length) { if (back.backBodyJsonData.properties.bodyRoot.properties[key].type == 'array' && Object.keys(back.backBodyJsonData.properties.bodyRoot.properties[key].items.properties).length) {
back.backBodyJsonData.properties.bodyRoot.properties[key].items.isRootKey = back.backBodyJsonData.properties.bodyRoot.properties[key].items.isRootKey == false ? 0 : 1;
await that.handleArrObjData(back.backBodyJsonData.properties.bodyRoot.properties[key].items.properties); await that.handleArrObjData(back.backBodyJsonData.properties.bodyRoot.properties[key].items.properties);
} }
// 如果有对象出现 // 如果有对象出现
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment