Commit 9c9ed812 by 无尘

feat: 增加环境接口

parent 401a5b1b
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.0c09bce2cee8d2e22c8f4ded7dbfee3d.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 type=text/javascript src=./static/js/manifest.d4cd3c23686c0c22c895.js></script><script type=text/javascript src=./static/js/vendor.de2ec0cfb18e10972eca.js></script><script type=text/javascript src=./static/js/app.dddcb854f77927a815af.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.83dac68326c19fb53d01aed3ce6e25c4.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 type=text/javascript src=./static/js/manifest.eb76db9067934e4078b0.js></script><script type=text/javascript src=./static/js/vendor.bb8c036d7dd62f4cb37a.js></script><script type=text/javascript src=./static/js/app.f5629964fb335e24f448.js></script></body></html>
\ 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.
webpackJsonp([0],{"//Fk":function(t,e,n){t.exports={default:n("U5ju"),__esModule:!0}},"24NT":function(t,e){},"2KxR":function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},"319J":function(t,e,n){"use strict";var r=n("P9l9"),i=n("LlAa"),o={name:"nav-bread",data:function(){return{projectName:"api-gateway-web"}},props:{navPath:{type:Array,default:function(){return[]}},slotFlag:{type:Boolean,default:!1},navtip:{type:Boolean,default:!1},subNavText:{type:String,default:""}},methods:{changeRoute:function(t,e){if(e)window.location.href=t;else{if(this.$route.fullPath.includes("?")){var n=t+("?"+this.$route.fullPath.split("?")[1]);return this.$router.push(n),!1}this.$router.push(t)}},getNavPath:function(){var t=this,e={project:t.projectName,path:t.$route.path.split("/")[1]};Object(r.b)("/api-auth/get-current-memu-data",e).then(function(e){var n=e.data;if(0==n.errorCode)return!!n.result&&(t.navpath=[],void(n.result.list&&n.result.list.length&&n.result.list.forEach(function(e,r){e.name=e.menuName,e.path="",r==n.result.list.length-1&&(e.path="/"+e.menuUrl),r>0&&t.navpath.push(e)})));i.a.errorMsg(n)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){}},a={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"nav-wrap boxbttom border-box"},[n("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},[t._l(t.navPath,function(e,r){return[e.path?[n("el-breadcrumb-item",{key:"nav"+r,on:{click:function(n){t.changeRoute(e.path,e.relocation)}}},[n("span",{staticClass:"el-breadcrumb__inner is-link",on:{click:function(n){t.changeRoute(e.path,e.relocation)}}},[t._v("\n "+t._s(e.name))])])]:[n("el-breadcrumb-item",{key:"nav"+r},[t._v(t._s(e.name))])]]})],2)],1)},staticRenderFns:[]};var u=n("VU/8")(o,a,!1,function(t){n("r35+")},"data-v-03057ae6",null);e.a=u.exports},"3fs2":function(t,e,n){var r=n("RY/4"),i=n("dSzd")("iterator"),o=n("/bQp");t.exports=n("FeBl").getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[r(t)]}},"82Mu":function(t,e,n){var r=n("7KvD"),i=n("L42u").set,o=r.MutationObserver||r.WebKitMutationObserver,a=r.process,u=r.Promise,s="process"==n("R9M2")(a);t.exports=function(){var t,e,n,c=function(){var r,i;for(s&&(r=a.domain)&&r.exit();t;){i=t.fn,t=t.next;try{i()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(s)n=function(){a.nextTick(c)};else if(!o||r.navigator&&r.navigator.standalone)if(u&&u.resolve){var l=u.resolve(void 0);n=function(){l.then(c)}}else n=function(){i.call(r,c)};else{var f=!0,p=document.createTextNode("");new o(c).observe(p,{characterData:!0}),n=function(){p.data=f=!f}}return function(r){var i={fn:r,next:void 0};e&&(e.next=i),t||(t=i,n()),e=i}}},CXw9:function(t,e,n){"use strict";var r,i,o,a,u=n("O4g8"),s=n("7KvD"),c=n("+ZMJ"),l=n("RY/4"),f=n("kM2E"),p=n("EqjI"),d=n("lOnJ"),h=n("2KxR"),v=n("NWt+"),m=n("t8x9"),y=n("L42u").set,g=n("82Mu")(),b=n("qARP"),w=n("dNDb"),x=n("iUbK"),j=n("fJUb"),_=s.TypeError,O=s.process,L=O&&O.versions,P=L&&L.v8||"",N=s.Promise,V="process"==l(O),C=function(){},A=i=b.f,R=!!function(){try{var t=N.resolve(1),e=(t.constructor={})[n("dSzd")("species")]=function(t){t(C,C)};return(V||"function"==typeof PromiseRejectionEvent)&&t.then(C)instanceof e&&0!==P.indexOf("6.6")&&-1===x.indexOf("Chrome/66")}catch(t){}}(),B=function(t){var e;return!(!p(t)||"function"!=typeof(e=t.then))&&e},k=function(t,e){if(!t._n){t._n=!0;var n=t._c;g(function(){for(var r=t._v,i=1==t._s,o=0,a=function(e){var n,o,a,u=i?e.ok:e.fail,s=e.resolve,c=e.reject,l=e.domain;try{u?(i||(2==t._h&&M(t),t._h=1),!0===u?n=r:(l&&l.enter(),n=u(r),l&&(l.exit(),a=!0)),n===e.promise?c(_("Promise-chain cycle")):(o=B(n))?o.call(n,s,c):s(n)):c(r)}catch(t){l&&!a&&l.exit(),c(t)}};n.length>o;)a(n[o++]);t._c=[],t._n=!1,e&&!t._h&&S(t)})}},S=function(t){y.call(s,function(){var e,n,r,i=t._v,o=D(t);if(o&&(e=w(function(){V?O.emit("unhandledRejection",i,t):(n=s.onunhandledrejection)?n({promise:t,reason:i}):(r=s.console)&&r.error&&r.error("Unhandled promise rejection",i)}),t._h=V||D(t)?2:1),t._a=void 0,o&&e.e)throw e.v})},D=function(t){return 1!==t._h&&0===(t._a||t._c).length},M=function(t){y.call(s,function(){var e;V?O.emit("rejectionHandled",t):(e=s.onrejectionhandled)&&e({promise:t,reason:t._v})})},E=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),k(e,!0))},F=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw _("Promise can't be resolved itself");(e=B(t))?g(function(){var r={_w:n,_d:!1};try{e.call(t,c(F,r,1),c(E,r,1))}catch(t){E.call(r,t)}}):(n._v=t,n._s=1,k(n,!1))}catch(t){E.call({_w:n,_d:!1},t)}}};R||(N=function(t){h(this,N,"Promise","_h"),d(t),r.call(this);try{t(c(F,this,1),c(E,this,1))}catch(t){E.call(this,t)}},(r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n("xH/j")(N.prototype,{then:function(t,e){var n=A(m(this,N));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=V?O.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&k(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r;this.promise=t,this.resolve=c(F,t,1),this.reject=c(E,t,1)},b.f=A=function(t){return t===N||t===a?new o(t):i(t)}),f(f.G+f.W+f.F*!R,{Promise:N}),n("e6n0")(N,"Promise"),n("bRrM")("Promise"),a=n("FeBl").Promise,f(f.S+f.F*!R,"Promise",{reject:function(t){var e=A(this);return(0,e.reject)(t),e.promise}}),f(f.S+f.F*(u||!R),"Promise",{resolve:function(t){return j(u&&this===a?N:this,t)}}),f(f.S+f.F*!(R&&n("dY0y")(function(t){N.all(t).catch(C)})),"Promise",{all:function(t){var e=this,n=A(e),r=n.resolve,i=n.reject,o=w(function(){var n=[],o=0,a=1;v(t,!1,function(t){var u=o++,s=!1;n.push(void 0),a++,e.resolve(t).then(function(t){s||(s=!0,n[u]=t,--a||r(n))},i)}),--a||r(n)});return o.e&&i(o.v),n.promise},race:function(t){var e=this,n=A(e),r=n.reject,i=w(function(){v(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return i.e&&r(i.v),n.promise}})},CwSZ:function(t,e,n){"use strict";var r=n("p8xL"),i=n("XgCd"),o={brackets:function(t){return t+"[]"},indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},a=Date.prototype.toISOString,u={delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,serializeDate:function(t){return a.call(t)},skipNulls:!1,strictNullHandling:!1},s=function t(e,n,i,o,a,s,c,l,f,p,d,h){var v=e;if("function"==typeof c)v=c(n,v);else if(v instanceof Date)v=p(v);else if(null===v){if(o)return s&&!h?s(n,u.encoder):n;v=""}if("string"==typeof v||"number"==typeof v||"boolean"==typeof v||r.isBuffer(v))return s?[d(h?n:s(n,u.encoder))+"="+d(s(v,u.encoder))]:[d(n)+"="+d(String(v))];var m,y=[];if(void 0===v)return y;if(Array.isArray(c))m=c;else{var g=Object.keys(v);m=l?g.sort(l):g}for(var b=0;b<m.length;++b){var w=m[b];a&&null===v[w]||(y=Array.isArray(v)?y.concat(t(v[w],i(n,w),i,o,a,s,c,l,f,p,d,h)):y.concat(t(v[w],n+(f?"."+w:"["+w+"]"),i,o,a,s,c,l,f,p,d,h)))}return y};t.exports=function(t,e){var n=t,a=e?r.assign({},e):{};if(null!==a.encoder&&void 0!==a.encoder&&"function"!=typeof a.encoder)throw new TypeError("Encoder has to be a function.");var c=void 0===a.delimiter?u.delimiter:a.delimiter,l="boolean"==typeof a.strictNullHandling?a.strictNullHandling:u.strictNullHandling,f="boolean"==typeof a.skipNulls?a.skipNulls:u.skipNulls,p="boolean"==typeof a.encode?a.encode:u.encode,d="function"==typeof a.encoder?a.encoder:u.encoder,h="function"==typeof a.sort?a.sort:null,v=void 0!==a.allowDots&&a.allowDots,m="function"==typeof a.serializeDate?a.serializeDate:u.serializeDate,y="boolean"==typeof a.encodeValuesOnly?a.encodeValuesOnly:u.encodeValuesOnly;if(void 0===a.format)a.format=i.default;else if(!Object.prototype.hasOwnProperty.call(i.formatters,a.format))throw new TypeError("Unknown format option provided.");var g,b,w=i.formatters[a.format];"function"==typeof a.filter?n=(b=a.filter)("",n):Array.isArray(a.filter)&&(g=b=a.filter);var x,j=[];if("object"!=typeof n||null===n)return"";x=a.arrayFormat in o?a.arrayFormat:"indices"in a?a.indices?"indices":"repeat":"indices";var _=o[x];g||(g=Object.keys(n)),h&&g.sort(h);for(var O=0;O<g.length;++O){var L=g[O];f&&null===n[L]||(j=j.concat(s(n[L],L,_,l,f,p?d:null,b,h,v,m,w,y)))}var P=j.join(c),N=!0===a.addQueryPrefix?"?":"";return P.length>0?N+P:""}},DDCP:function(t,e,n){"use strict";var r=n("p8xL"),i=Object.prototype.hasOwnProperty,o={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:r.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},a=function(t,e,n){if(t){var r=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,o=/(\[[^[\]]*])/g,a=/(\[[^[\]]*])/.exec(r),u=a?r.slice(0,a.index):r,s=[];if(u){if(!n.plainObjects&&i.call(Object.prototype,u)&&!n.allowPrototypes)return;s.push(u)}for(var c=0;null!==(a=o.exec(r))&&c<n.depth;){if(c+=1,!n.plainObjects&&i.call(Object.prototype,a[1].slice(1,-1))&&!n.allowPrototypes)return;s.push(a[1])}return a&&s.push("["+r.slice(a.index)+"]"),function(t,e,n){for(var r=e,i=t.length-1;i>=0;--i){var o,a=t[i];if("[]"===a)o=(o=[]).concat(r);else{o=n.plainObjects?Object.create(null):{};var u="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,s=parseInt(u,10);!isNaN(s)&&a!==u&&String(s)===u&&s>=0&&n.parseArrays&&s<=n.arrayLimit?(o=[])[s]=r:o[u]=r}r=o}return r}(s,e,n)}};t.exports=function(t,e){var n=e?r.assign({},e):{};if(null!==n.decoder&&void 0!==n.decoder&&"function"!=typeof n.decoder)throw new TypeError("Decoder has to be a function.");if(n.ignoreQueryPrefix=!0===n.ignoreQueryPrefix,n.delimiter="string"==typeof n.delimiter||r.isRegExp(n.delimiter)?n.delimiter:o.delimiter,n.depth="number"==typeof n.depth?n.depth:o.depth,n.arrayLimit="number"==typeof n.arrayLimit?n.arrayLimit:o.arrayLimit,n.parseArrays=!1!==n.parseArrays,n.decoder="function"==typeof n.decoder?n.decoder:o.decoder,n.allowDots="boolean"==typeof n.allowDots?n.allowDots:o.allowDots,n.plainObjects="boolean"==typeof n.plainObjects?n.plainObjects:o.plainObjects,n.allowPrototypes="boolean"==typeof n.allowPrototypes?n.allowPrototypes:o.allowPrototypes,n.parameterLimit="number"==typeof n.parameterLimit?n.parameterLimit:o.parameterLimit,n.strictNullHandling="boolean"==typeof n.strictNullHandling?n.strictNullHandling:o.strictNullHandling,""===t||null===t||void 0===t)return n.plainObjects?Object.create(null):{};for(var u="string"==typeof t?function(t,e){for(var n={},r=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,a=e.parameterLimit===1/0?void 0:e.parameterLimit,u=r.split(e.delimiter,a),s=0;s<u.length;++s){var c,l,f=u[s],p=f.indexOf("]="),d=-1===p?f.indexOf("="):p+1;-1===d?(c=e.decoder(f,o.decoder),l=e.strictNullHandling?null:""):(c=e.decoder(f.slice(0,d),o.decoder),l=e.decoder(f.slice(d+1),o.decoder)),i.call(n,c)?n[c]=[].concat(n[c]).concat(l):n[c]=l}return n}(t,n):t,s=n.plainObjects?Object.create(null):{},c=Object.keys(u),l=0;l<c.length;++l){var f=c[l],p=a(f,u[f],n);s=r.merge(s,p,n)}return r.compact(s)}},EqBC:function(t,e,n){"use strict";var r=n("kM2E"),i=n("FeBl"),o=n("7KvD"),a=n("t8x9"),u=n("fJUb");r(r.P+r.R,"Promise",{finally:function(t){var e=a(this,i.Promise||o.Promise),n="function"==typeof t;return this.then(n?function(n){return u(e,t()).then(function(){return n})}:t,n?function(n){return u(e,t()).then(function(){throw n})}:t)}})},Kkt8:function(t,e,n){"use strict";var r=n("UlGk"),i={name:"limittextarea",props:{inputValue:{type:String,default:""},maxLength:{type:Number,default:10},inputWidth:{type:Number,default:500},getByType:{type:String,default:"word"},holder:{type:String,default:"请输入"},disInput:{type:Boolean,default:!1}},data:function(){return{inputNum:0,limitLength:10,itemValue:""}},methods:{inputFocus:function(t){},toInput:function(t){var e="";"word"==this.getByType?(e=r.a.getByteVal(t.target.value,this.limitLength),this.itemValue=e.trim(),this.inputNum=r.a.getZhLen(this.itemValue)):(e=r.a.getCharVal(t.target.value,this.limitLength),this.itemValue=e.trim(),this.inputNum=r.a.getByteLen(this.itemValue)),this.$emit("update:inputValue",this.itemValue)},inputBlur:function(){this.$emit("update:inputValue",this.itemValue)}},watch:{maxLength:function(t,e){this.limitLength=t},inputValue:function(t,e){this.itemValue=t,"word"==this.getByType?this.inputNum=r.a.getZhLen(this.itemValue):this.inputNum=r.a.getByteLen(this.itemValue)}},mounted:function(){this.limitLength=this.maxLength,this.itemValue=this.inputValue||"","word"==this.getByType?this.inputNum=r.a.getZhLen(this.inputValue):this.inputNum=r.a.getByteLen(this.inputValue)}},o={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"input-line-cell",style:{width:t.inputWidth+"px"}},[n("el-input",{style:{width:t.inputWidth+"px"},attrs:{placeholder:t.holder,type:"textarea",rows:3,disabled:t.disInput},on:{blur:function(e){t.inputBlur()},focus:function(e){t.inputFocus()}},nativeOn:{keyup:function(e){return n=e,t.toInput(n);var n}},model:{value:t.itemValue,callback:function(e){t.itemValue=e},expression:"itemValue"}}),t._v(" "),n("span",{staticClass:"tip"},[n("span",{staticClass:"len_span"},[t._v(t._s(t.inputNum))]),t._v("/"+t._s(t.limitLength))])],1)},staticRenderFns:[]};var a=n("VU/8")(i,o,!1,function(t){n("24NT")},"data-v-e334f68e",null);e.a=a.exports},L42u:function(t,e,n){var r,i,o,a=n("+ZMJ"),u=n("knuC"),s=n("RPLV"),c=n("ON07"),l=n("7KvD"),f=l.process,p=l.setImmediate,d=l.clearImmediate,h=l.MessageChannel,v=l.Dispatch,m=0,y={},g=function(){var t=+this;if(y.hasOwnProperty(t)){var e=y[t];delete y[t],e()}},b=function(t){g.call(t.data)};p&&d||(p=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return y[++m]=function(){u("function"==typeof t?t:Function(t),e)},r(m),m},d=function(t){delete y[t]},"process"==n("R9M2")(f)?r=function(t){f.nextTick(a(g,t,1))}:v&&v.now?r=function(t){v.now(a(g,t,1))}:h?(o=(i=new h).port2,i.port1.onmessage=b,r=a(o.postMessage,o,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(t){l.postMessage(t+"","*")},l.addEventListener("message",b,!1)):r="onreadystatechange"in c("script")?function(t){s.appendChild(c("script")).onreadystatechange=function(){s.removeChild(this),g.call(t)}}:function(t){setTimeout(a(g,t,1),0)}),t.exports={set:p,clear:d}},LlAa:function(t,e,n){"use strict";var r=n("zL8q");n.n(r);e.a={errorMsg:function(t){var e=window.location.origin;if(1!=t.code){if(4==t.code)return window.location.href=e+"/haoban-web/#/login",!1;if(10==t.code)return window.location.href=e+"/haoban-web/#/index",!1;r.Message.error({duration:1e3,message:t.message})}}}},Mhyx:function(t,e,n){var r=n("/bQp"),i=n("dSzd")("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},"NWt+":function(t,e,n){var r=n("+ZMJ"),i=n("msXi"),o=n("Mhyx"),a=n("77Pl"),u=n("QRG4"),s=n("3fs2"),c={},l={};(e=t.exports=function(t,e,n,f,p){var d,h,v,m,y=p?function(){return t}:s(t),g=r(n,f,e?2:1),b=0;if("function"!=typeof y)throw TypeError(t+" is not iterable!");if(o(y)){for(d=u(t.length);d>b;b++)if((m=e?g(a(h=t[b])[0],h[1]):g(t[b]))===c||m===l)return m}else for(v=y.call(t);!(h=v.next()).done;)if((m=i(v,g,h.value,e))===c||m===l)return m}).BREAK=c,e.RETURN=l},P9l9:function(t,e,n){"use strict";n.d(e,"a",function(){return f}),n.d(e,"b",function(){return p});var r=n("//Fk"),i=n.n(r),o=n("lRwf"),a=n.n(o),u=n("mw3O"),s=n.n(u),c=n("zL8q");n.n(c);a.a.axios.defaults.timeout=25e3;var l=window.location.origin;a.a.axios.interceptors.request.use(function(t){return t},function(t){return c.Message.error({message:"请求超时!"}),i.a.resolve(t)}),a.a.axios.interceptors.response.use(function(t){return t.status&&200==t.status&&1!=t.data.errorCode?(4==t.data.errorCode&&(window.location.href=l+"/haoban-web/#/login"),10!=t.data.errorCode&&7!=t.data.errorCode||(window.location.href=l+"/haoban-web/#/index"),t):t},function(t){return 504==t.response.status||404==t.response.status||t.response.status,i.a.resolve(t)});var f=function(t,e){return e.requestProject="api-gateway-web",a.a.axios({method:"get",url:""+l+t,data:{},params:e,headers:{"Content-type":"application/x-www-form-urlencoded"}})},p=function(t,e){return e.requestProject="api-gateway-web",a.a.axios({method:"post",url:""+l+t,data:s.a.stringify(e),headers:{"Content-type":"application/x-www-form-urlencoded"}})}},"RY/4":function(t,e,n){var r=n("R9M2"),i=n("dSzd")("toStringTag"),o="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),i))?n:o?r(e):"Object"==(a=r(e))&&"function"==typeof e.callee?"Arguments":a}},TUB1:function(t,e,n){"use strict";var r=n("zL8q");n.n(r);e.a={showmsg:function(t,e){Object(r.Message)({duration:1e3,message:t,type:e})}}},U5ju:function(t,e,n){n("M6a0"),n("zQR9"),n("+tPU"),n("CXw9"),n("EqBC"),n("jKW+"),t.exports=n("FeBl").Promise},UlGk:function(t,e,n){"use strict";e.a={getByteLen:function(t){for(var e=0,n=0;n<t.length;n++){null!=t.charAt(n).match(/[^\x00-\xff]/gi)?e+=2:e+=1}return e},getZhLen:function(t){for(var e=0,n=0;n<t.length;n++){null!=t.charAt(n).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)},cutStr:function(t,e,n){for(var r=0,i=0;i<t.length;i++){var o=t.charAt(i);if(1==n&&(encodeURI(o).length>2?r+=1:r+=.5),2==n&&(r+=1),r>=e){var a=r==e?i+1:i;return t.substr(0,a)}}},getByteVal:function(t,e){for(var n="",r=0,i=0;i<t.length&&(null!=t[i].match(/[^\x00-\xff]/gi)?r+=1:r+=.5,!(r>e));i++)n+=t[i];return n},getCharVal:function(t,e){for(var n="",r=0,i=0;i<t.length&&(null!=t[i].match(/[^\x00-\xff]/gi)?r+=2:r+=1,!(r>e));i++)n+=t[i];return n},regPos:function(t){return/^\d+(\.\d+)?$/.test(t)}}},XgCd:function(t,e,n){"use strict";var r=String.prototype.replace,i=/%20/g;t.exports={default:"RFC3986",formatters:{RFC1738:function(t){return r.call(t,i,"+")},RFC3986:function(t){return t}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},bRrM:function(t,e,n){"use strict";var r=n("7KvD"),i=n("FeBl"),o=n("evD5"),a=n("+E39"),u=n("dSzd")("species");t.exports=function(t){var e="function"==typeof i[t]?i[t]:r[t];a&&e&&!e[u]&&o.f(e,u,{configurable:!0,get:function(){return this}})}},dNDb:function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},dY0y:function(t,e,n){var r=n("dSzd")("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o=[7],a=o[r]();a.next=function(){return{done:n=!0}},o[r]=function(){return a},t(o)}catch(t){}return n}},fJUb:function(t,e,n){var r=n("77Pl"),i=n("EqjI"),o=n("qARP");t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},iUbK:function(t,e,n){var r=n("7KvD").navigator;t.exports=r&&r.userAgent||""},"jKW+":function(t,e,n){"use strict";var r=n("kM2E"),i=n("qARP"),o=n("dNDb");r(r.S,"Promise",{try:function(t){var e=i.f(this),n=o(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},jvWE:function(t,e,n){"use strict";e.a=function(t,e){var n,e=e||200;return function(){var r=this,i=arguments;n&&clearTimeout(n),n=setTimeout(function(){n=null,t.apply(r,i)},e)}}},knuC:function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},l46T:function(t,e,n){"use strict";var r=n("UlGk"),i={name:"limitinput",props:{inputValue:{type:[String,Number],default:function(){return""}},maxLength:{type:Number,default:10},inputWidth:{type:Number,default:500},getByType:{type:String,default:"word"},holder:{type:String,default:"请输入"},disflag:{type:Boolean,default:!1},limitClass:{type:String,default:""}},data:function(){return{inputNum:0,limitLength:10,itemValue:""}},methods:{inputFocus:function(t){},toInput:function(t){var e="";"word"==this.getByType?(e=r.a.getByteVal(t.target.value,this.limitLength),this.itemValue=e.trim(),this.inputNum=r.a.getZhLen(this.itemValue)):(e=r.a.getCharVal(t.target.value,this.limitLength),this.itemValue=e.trim(),this.inputNum=r.a.getByteLen(this.itemValue)),this.$emit("update:inputValue",this.itemValue)},inputBlur:function(){this.$emit("update:inputValue",this.itemValue)}},watch:{maxLength:function(t,e){this.limitLength=t},inputValue:function(t,e){this.itemValue=t||"","word"==this.getByType?this.inputNum=r.a.getZhLen(this.itemValue):this.inputNum=r.a.getByteLen(this.itemValue)}},mounted:function(){this.limitLength=this.maxLength,this.itemValue=this.inputValue||"","word"==this.getByType?this.inputNum=r.a.getZhLen(this.inputValue):this.inputNum=r.a.getByteLen(this.inputValue)}},o={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["input-line-cell",t.limitClass],style:{width:t.inputWidth+"px"}},[n("el-input",{style:{width:t.inputWidth+"px"},attrs:{disabled:t.disflag,placeholder:t.holder},on:{blur:function(e){t.inputBlur()},focus:function(e){t.inputFocus()}},nativeOn:{keyup:function(e){return n=e,t.toInput(n);var n}},model:{value:t.itemValue,callback:function(e){t.itemValue=e},expression:"itemValue"}}),t._v(" "),n("span",{staticClass:"tip"},[n("span",{staticClass:"len_span"},[t._v(t._s(t.inputNum))]),t._v("/"+t._s(t.limitLength))])],1)},staticRenderFns:[]};var a=n("VU/8")(i,o,!1,function(t){n("tz7a")},"data-v-093222f7",null);e.a=a.exports},msXi:function(t,e,n){var r=n("77Pl");t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&r(o.call(t)),e}}},mvHQ:function(t,e,n){t.exports={default:n("qkKv"),__esModule:!0}},mw3O:function(t,e,n){"use strict";var r=n("CwSZ"),i=n("DDCP"),o=n("XgCd");t.exports={formats:o,parse:i,stringify:r}},p8xL:function(t,e,n){"use strict";var r=Object.prototype.hasOwnProperty,i=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),o=function(t,e){for(var n=e&&e.plainObjects?Object.create(null):{},r=0;r<t.length;++r)void 0!==t[r]&&(n[r]=t[r]);return n};t.exports={arrayToObject:o,assign:function(t,e){return Object.keys(e).reduce(function(t,n){return t[n]=e[n],t},t)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],n=[],r=0;r<e.length;++r)for(var i=e[r],o=i.obj[i.prop],a=Object.keys(o),u=0;u<a.length;++u){var s=a[u],c=o[s];"object"==typeof c&&null!==c&&-1===n.indexOf(c)&&(e.push({obj:o,prop:s}),n.push(c))}return function(t){for(var e;t.length;){var n=t.pop();if(e=n.obj[n.prop],Array.isArray(e)){for(var r=[],i=0;i<e.length;++i)void 0!==e[i]&&r.push(e[i]);n.obj[n.prop]=r}}return e}(e)},decode:function(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch(e){return t}},encode:function(t){if(0===t.length)return t;for(var e="string"==typeof t?t:String(t),n="",r=0;r<e.length;++r){var o=e.charCodeAt(r);45===o||46===o||95===o||126===o||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122?n+=e.charAt(r):o<128?n+=i[o]:o<2048?n+=i[192|o>>6]+i[128|63&o]:o<55296||o>=57344?n+=i[224|o>>12]+i[128|o>>6&63]+i[128|63&o]:(r+=1,o=65536+((1023&o)<<10|1023&e.charCodeAt(r)),n+=i[240|o>>18]+i[128|o>>12&63]+i[128|o>>6&63]+i[128|63&o])}return n},isBuffer:function(t){return null!==t&&void 0!==t&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},merge:function t(e,n,i){if(!n)return e;if("object"!=typeof n){if(Array.isArray(e))e.push(n);else{if("object"!=typeof e)return[e,n];(i.plainObjects||i.allowPrototypes||!r.call(Object.prototype,n))&&(e[n]=!0)}return e}if("object"!=typeof e)return[e].concat(n);var a=e;return Array.isArray(e)&&!Array.isArray(n)&&(a=o(e,i)),Array.isArray(e)&&Array.isArray(n)?(n.forEach(function(n,o){r.call(e,o)?e[o]&&"object"==typeof e[o]?e[o]=t(e[o],n,i):e.push(n):e[o]=n}),e):Object.keys(n).reduce(function(e,o){var a=n[o];return r.call(e,o)?e[o]=t(e[o],a,i):e[o]=a,e},a)}}},qARP:function(t,e,n){"use strict";var r=n("lOnJ");t.exports.f=function(t){return new function(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=r(e),this.reject=r(n)}(t)}},qkKv:function(t,e,n){var r=n("FeBl"),i=r.JSON||(r.JSON={stringify:JSON.stringify});t.exports=function(t){return i.stringify.apply(i,arguments)}},"r35+":function(t,e){},t8x9:function(t,e,n){var r=n("77Pl"),i=n("lOnJ"),o=n("dSzd")("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||void 0==(n=r(a)[o])?e:i(n)}},tz7a:function(t,e){},"xH/j":function(t,e,n){var r=n("hJx8");t.exports=function(t,e,n){for(var i in e)n&&t[i]?t[i]=e[i]:r(t,i,e[i]);return t}}});
\ No newline at end of file
webpackJsonp([0],{"//Fk":function(t,e,n){t.exports={default:n("U5ju"),__esModule:!0}},"24NT":function(t,e){},"2KxR":function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},"319J":function(t,e,n){"use strict";var r=n("P9l9"),i=n("LlAa"),o={name:"nav-bread",data:function(){return{projectName:"api-gateway-web"}},props:{navPath:{type:Array,default:function(){return[]}},slotFlag:{type:Boolean,default:!1},navtip:{type:Boolean,default:!1},subNavText:{type:String,default:""}},methods:{changeRoute:function(t,e){if(e)window.location.href=t;else{if(this.$route.fullPath.includes("?")){var n=t+("?"+this.$route.fullPath.split("?")[1]);return this.$router.push(n),!1}this.$router.push(t)}},getNavPath:function(){var t=this,e={project:t.projectName,path:t.$route.path.split("/")[1]};Object(r.b)("/api-auth/get-current-memu-data",e).then(function(e){var n=e.data;if(0==n.errorCode)return!!n.result&&(t.navpath=[],void(n.result.list&&n.result.list.length&&n.result.list.forEach(function(e,r){e.name=e.menuName,e.path="",r==n.result.list.length-1&&(e.path="/"+e.menuUrl),r>0&&t.navpath.push(e)})));i.a.errorMsg(n)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){}},a={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"nav-wrap boxbttom border-box"},[n("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},[t._l(t.navPath,function(e,r){return[e.path?[n("el-breadcrumb-item",{key:"nav"+r,on:{click:function(n){t.changeRoute(e.path,e.relocation)}}},[n("span",{staticClass:"el-breadcrumb__inner is-link",on:{click:function(n){t.changeRoute(e.path,e.relocation)}}},[t._v("\n "+t._s(e.name))])])]:[n("el-breadcrumb-item",{key:"nav"+r},[t._v(t._s(e.name))])]]})],2)],1)},staticRenderFns:[]};var u=n("VU/8")(o,a,!1,function(t){n("r35+")},"data-v-03057ae6",null);e.a=u.exports},"3fs2":function(t,e,n){var r=n("RY/4"),i=n("dSzd")("iterator"),o=n("/bQp");t.exports=n("FeBl").getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[r(t)]}},"82Mu":function(t,e,n){var r=n("7KvD"),i=n("L42u").set,o=r.MutationObserver||r.WebKitMutationObserver,a=r.process,u=r.Promise,s="process"==n("R9M2")(a);t.exports=function(){var t,e,n,c=function(){var r,i;for(s&&(r=a.domain)&&r.exit();t;){i=t.fn,t=t.next;try{i()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(s)n=function(){a.nextTick(c)};else if(!o||r.navigator&&r.navigator.standalone)if(u&&u.resolve){var l=u.resolve(void 0);n=function(){l.then(c)}}else n=function(){i.call(r,c)};else{var f=!0,p=document.createTextNode("");new o(c).observe(p,{characterData:!0}),n=function(){p.data=f=!f}}return function(r){var i={fn:r,next:void 0};e&&(e.next=i),t||(t=i,n()),e=i}}},CXw9:function(t,e,n){"use strict";var r,i,o,a,u=n("O4g8"),s=n("7KvD"),c=n("+ZMJ"),l=n("RY/4"),f=n("kM2E"),p=n("EqjI"),d=n("lOnJ"),h=n("2KxR"),v=n("NWt+"),m=n("t8x9"),y=n("L42u").set,g=n("82Mu")(),b=n("qARP"),w=n("dNDb"),x=n("iUbK"),j=n("fJUb"),_=s.TypeError,L=s.process,O=L&&L.versions,P=O&&O.v8||"",V=s.Promise,N="process"==l(L),A=function(){},C=i=b.f,R=!!function(){try{var t=V.resolve(1),e=(t.constructor={})[n("dSzd")("species")]=function(t){t(A,A)};return(N||"function"==typeof PromiseRejectionEvent)&&t.then(A)instanceof e&&0!==P.indexOf("6.6")&&-1===x.indexOf("Chrome/66")}catch(t){}}(),B=function(t){var e;return!(!p(t)||"function"!=typeof(e=t.then))&&e},k=function(t,e){if(!t._n){t._n=!0;var n=t._c;g(function(){for(var r=t._v,i=1==t._s,o=0,a=function(e){var n,o,a,u=i?e.ok:e.fail,s=e.resolve,c=e.reject,l=e.domain;try{u?(i||(2==t._h&&E(t),t._h=1),!0===u?n=r:(l&&l.enter(),n=u(r),l&&(l.exit(),a=!0)),n===e.promise?c(_("Promise-chain cycle")):(o=B(n))?o.call(n,s,c):s(n)):c(r)}catch(t){l&&!a&&l.exit(),c(t)}};n.length>o;)a(n[o++]);t._c=[],t._n=!1,e&&!t._h&&S(t)})}},S=function(t){y.call(s,function(){var e,n,r,i=t._v,o=D(t);if(o&&(e=w(function(){N?L.emit("unhandledRejection",i,t):(n=s.onunhandledrejection)?n({promise:t,reason:i}):(r=s.console)&&r.error&&r.error("Unhandled promise rejection",i)}),t._h=N||D(t)?2:1),t._a=void 0,o&&e.e)throw e.v})},D=function(t){return 1!==t._h&&0===(t._a||t._c).length},E=function(t){y.call(s,function(){var e;N?L.emit("rejectionHandled",t):(e=s.onrejectionhandled)&&e({promise:t,reason:t._v})})},M=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),k(e,!0))},F=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw _("Promise can't be resolved itself");(e=B(t))?g(function(){var r={_w:n,_d:!1};try{e.call(t,c(F,r,1),c(M,r,1))}catch(t){M.call(r,t)}}):(n._v=t,n._s=1,k(n,!1))}catch(t){M.call({_w:n,_d:!1},t)}}};R||(V=function(t){h(this,V,"Promise","_h"),d(t),r.call(this);try{t(c(F,this,1),c(M,this,1))}catch(t){M.call(this,t)}},(r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n("xH/j")(V.prototype,{then:function(t,e){var n=C(m(this,V));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=N?L.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&k(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r;this.promise=t,this.resolve=c(F,t,1),this.reject=c(M,t,1)},b.f=C=function(t){return t===V||t===a?new o(t):i(t)}),f(f.G+f.W+f.F*!R,{Promise:V}),n("e6n0")(V,"Promise"),n("bRrM")("Promise"),a=n("FeBl").Promise,f(f.S+f.F*!R,"Promise",{reject:function(t){var e=C(this);return(0,e.reject)(t),e.promise}}),f(f.S+f.F*(u||!R),"Promise",{resolve:function(t){return j(u&&this===a?V:this,t)}}),f(f.S+f.F*!(R&&n("dY0y")(function(t){V.all(t).catch(A)})),"Promise",{all:function(t){var e=this,n=C(e),r=n.resolve,i=n.reject,o=w(function(){var n=[],o=0,a=1;v(t,!1,function(t){var u=o++,s=!1;n.push(void 0),a++,e.resolve(t).then(function(t){s||(s=!0,n[u]=t,--a||r(n))},i)}),--a||r(n)});return o.e&&i(o.v),n.promise},race:function(t){var e=this,n=C(e),r=n.reject,i=w(function(){v(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return i.e&&r(i.v),n.promise}})},CwSZ:function(t,e,n){"use strict";var r=n("p8xL"),i=n("XgCd"),o={brackets:function(t){return t+"[]"},indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},a=Date.prototype.toISOString,u={delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,serializeDate:function(t){return a.call(t)},skipNulls:!1,strictNullHandling:!1},s=function t(e,n,i,o,a,s,c,l,f,p,d,h){var v=e;if("function"==typeof c)v=c(n,v);else if(v instanceof Date)v=p(v);else if(null===v){if(o)return s&&!h?s(n,u.encoder):n;v=""}if("string"==typeof v||"number"==typeof v||"boolean"==typeof v||r.isBuffer(v))return s?[d(h?n:s(n,u.encoder))+"="+d(s(v,u.encoder))]:[d(n)+"="+d(String(v))];var m,y=[];if(void 0===v)return y;if(Array.isArray(c))m=c;else{var g=Object.keys(v);m=l?g.sort(l):g}for(var b=0;b<m.length;++b){var w=m[b];a&&null===v[w]||(y=Array.isArray(v)?y.concat(t(v[w],i(n,w),i,o,a,s,c,l,f,p,d,h)):y.concat(t(v[w],n+(f?"."+w:"["+w+"]"),i,o,a,s,c,l,f,p,d,h)))}return y};t.exports=function(t,e){var n=t,a=e?r.assign({},e):{};if(null!==a.encoder&&void 0!==a.encoder&&"function"!=typeof a.encoder)throw new TypeError("Encoder has to be a function.");var c=void 0===a.delimiter?u.delimiter:a.delimiter,l="boolean"==typeof a.strictNullHandling?a.strictNullHandling:u.strictNullHandling,f="boolean"==typeof a.skipNulls?a.skipNulls:u.skipNulls,p="boolean"==typeof a.encode?a.encode:u.encode,d="function"==typeof a.encoder?a.encoder:u.encoder,h="function"==typeof a.sort?a.sort:null,v=void 0!==a.allowDots&&a.allowDots,m="function"==typeof a.serializeDate?a.serializeDate:u.serializeDate,y="boolean"==typeof a.encodeValuesOnly?a.encodeValuesOnly:u.encodeValuesOnly;if(void 0===a.format)a.format=i.default;else if(!Object.prototype.hasOwnProperty.call(i.formatters,a.format))throw new TypeError("Unknown format option provided.");var g,b,w=i.formatters[a.format];"function"==typeof a.filter?n=(b=a.filter)("",n):Array.isArray(a.filter)&&(g=b=a.filter);var x,j=[];if("object"!=typeof n||null===n)return"";x=a.arrayFormat in o?a.arrayFormat:"indices"in a?a.indices?"indices":"repeat":"indices";var _=o[x];g||(g=Object.keys(n)),h&&g.sort(h);for(var L=0;L<g.length;++L){var O=g[L];f&&null===n[O]||(j=j.concat(s(n[O],O,_,l,f,p?d:null,b,h,v,m,w,y)))}var P=j.join(c),V=!0===a.addQueryPrefix?"?":"";return P.length>0?V+P:""}},DDCP:function(t,e,n){"use strict";var r=n("p8xL"),i=Object.prototype.hasOwnProperty,o={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:r.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},a=function(t,e,n){if(t){var r=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,o=/(\[[^[\]]*])/g,a=/(\[[^[\]]*])/.exec(r),u=a?r.slice(0,a.index):r,s=[];if(u){if(!n.plainObjects&&i.call(Object.prototype,u)&&!n.allowPrototypes)return;s.push(u)}for(var c=0;null!==(a=o.exec(r))&&c<n.depth;){if(c+=1,!n.plainObjects&&i.call(Object.prototype,a[1].slice(1,-1))&&!n.allowPrototypes)return;s.push(a[1])}return a&&s.push("["+r.slice(a.index)+"]"),function(t,e,n){for(var r=e,i=t.length-1;i>=0;--i){var o,a=t[i];if("[]"===a)o=(o=[]).concat(r);else{o=n.plainObjects?Object.create(null):{};var u="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,s=parseInt(u,10);!isNaN(s)&&a!==u&&String(s)===u&&s>=0&&n.parseArrays&&s<=n.arrayLimit?(o=[])[s]=r:o[u]=r}r=o}return r}(s,e,n)}};t.exports=function(t,e){var n=e?r.assign({},e):{};if(null!==n.decoder&&void 0!==n.decoder&&"function"!=typeof n.decoder)throw new TypeError("Decoder has to be a function.");if(n.ignoreQueryPrefix=!0===n.ignoreQueryPrefix,n.delimiter="string"==typeof n.delimiter||r.isRegExp(n.delimiter)?n.delimiter:o.delimiter,n.depth="number"==typeof n.depth?n.depth:o.depth,n.arrayLimit="number"==typeof n.arrayLimit?n.arrayLimit:o.arrayLimit,n.parseArrays=!1!==n.parseArrays,n.decoder="function"==typeof n.decoder?n.decoder:o.decoder,n.allowDots="boolean"==typeof n.allowDots?n.allowDots:o.allowDots,n.plainObjects="boolean"==typeof n.plainObjects?n.plainObjects:o.plainObjects,n.allowPrototypes="boolean"==typeof n.allowPrototypes?n.allowPrototypes:o.allowPrototypes,n.parameterLimit="number"==typeof n.parameterLimit?n.parameterLimit:o.parameterLimit,n.strictNullHandling="boolean"==typeof n.strictNullHandling?n.strictNullHandling:o.strictNullHandling,""===t||null===t||void 0===t)return n.plainObjects?Object.create(null):{};for(var u="string"==typeof t?function(t,e){for(var n={},r=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,a=e.parameterLimit===1/0?void 0:e.parameterLimit,u=r.split(e.delimiter,a),s=0;s<u.length;++s){var c,l,f=u[s],p=f.indexOf("]="),d=-1===p?f.indexOf("="):p+1;-1===d?(c=e.decoder(f,o.decoder),l=e.strictNullHandling?null:""):(c=e.decoder(f.slice(0,d),o.decoder),l=e.decoder(f.slice(d+1),o.decoder)),i.call(n,c)?n[c]=[].concat(n[c]).concat(l):n[c]=l}return n}(t,n):t,s=n.plainObjects?Object.create(null):{},c=Object.keys(u),l=0;l<c.length;++l){var f=c[l],p=a(f,u[f],n);s=r.merge(s,p,n)}return r.compact(s)}},EqBC:function(t,e,n){"use strict";var r=n("kM2E"),i=n("FeBl"),o=n("7KvD"),a=n("t8x9"),u=n("fJUb");r(r.P+r.R,"Promise",{finally:function(t){var e=a(this,i.Promise||o.Promise),n="function"==typeof t;return this.then(n?function(n){return u(e,t()).then(function(){return n})}:t,n?function(n){return u(e,t()).then(function(){throw n})}:t)}})},Kkt8:function(t,e,n){"use strict";var r=n("UlGk"),i={name:"limittextarea",props:{inputValue:{type:String,default:""},maxLength:{type:Number,default:10},inputWidth:{type:Number,default:500},getByType:{type:String,default:"word"},holder:{type:String,default:"请输入"},disInput:{type:Boolean,default:!1}},data:function(){return{inputNum:0,limitLength:10,itemValue:""}},methods:{inputFocus:function(t){},toInput:function(t){var e="";"word"==this.getByType?(e=r.a.getByteVal(t.target.value,this.limitLength),this.itemValue=e.trim(),this.inputNum=r.a.getZhLen(this.itemValue)):(e=r.a.getCharVal(t.target.value,this.limitLength),this.itemValue=e.trim(),this.inputNum=r.a.getByteLen(this.itemValue)),this.$emit("update:inputValue",this.itemValue)},inputBlur:function(){this.$emit("update:inputValue",this.itemValue)}},watch:{maxLength:function(t,e){this.limitLength=t},inputValue:function(t,e){this.itemValue=t,"word"==this.getByType?this.inputNum=r.a.getZhLen(this.itemValue):this.inputNum=r.a.getByteLen(this.itemValue)}},mounted:function(){this.limitLength=this.maxLength,this.itemValue=this.inputValue||"","word"==this.getByType?this.inputNum=r.a.getZhLen(this.inputValue):this.inputNum=r.a.getByteLen(this.inputValue)}},o={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"input-line-cell",style:{width:t.inputWidth+"px"}},[n("el-input",{style:{width:t.inputWidth+"px"},attrs:{placeholder:t.holder,type:"textarea",rows:3,disabled:t.disInput},on:{blur:function(e){t.inputBlur()},focus:function(e){t.inputFocus()}},nativeOn:{keyup:function(e){return n=e,t.toInput(n);var n}},model:{value:t.itemValue,callback:function(e){t.itemValue=e},expression:"itemValue"}}),t._v(" "),n("span",{staticClass:"tip"},[n("span",{staticClass:"len_span"},[t._v(t._s(t.inputNum))]),t._v("/"+t._s(t.limitLength))])],1)},staticRenderFns:[]};var a=n("VU/8")(i,o,!1,function(t){n("24NT")},"data-v-e334f68e",null);e.a=a.exports},L42u:function(t,e,n){var r,i,o,a=n("+ZMJ"),u=n("knuC"),s=n("RPLV"),c=n("ON07"),l=n("7KvD"),f=l.process,p=l.setImmediate,d=l.clearImmediate,h=l.MessageChannel,v=l.Dispatch,m=0,y={},g=function(){var t=+this;if(y.hasOwnProperty(t)){var e=y[t];delete y[t],e()}},b=function(t){g.call(t.data)};p&&d||(p=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return y[++m]=function(){u("function"==typeof t?t:Function(t),e)},r(m),m},d=function(t){delete y[t]},"process"==n("R9M2")(f)?r=function(t){f.nextTick(a(g,t,1))}:v&&v.now?r=function(t){v.now(a(g,t,1))}:h?(o=(i=new h).port2,i.port1.onmessage=b,r=a(o.postMessage,o,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(t){l.postMessage(t+"","*")},l.addEventListener("message",b,!1)):r="onreadystatechange"in c("script")?function(t){s.appendChild(c("script")).onreadystatechange=function(){s.removeChild(this),g.call(t)}}:function(t){setTimeout(a(g,t,1),0)}),t.exports={set:p,clear:d}},LlAa:function(t,e,n){"use strict";var r=n("zL8q");n.n(r);e.a={errorMsg:function(t){var e=window.location.origin;if("0000"!=t.code&&(r.Message.error({duration:1e3,message:t.message}),"2003"==t.code))return window.location.href=e+"/gateway-web/#/login",!1}}},Mhyx:function(t,e,n){var r=n("/bQp"),i=n("dSzd")("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},"NWt+":function(t,e,n){var r=n("+ZMJ"),i=n("msXi"),o=n("Mhyx"),a=n("77Pl"),u=n("QRG4"),s=n("3fs2"),c={},l={};(e=t.exports=function(t,e,n,f,p){var d,h,v,m,y=p?function(){return t}:s(t),g=r(n,f,e?2:1),b=0;if("function"!=typeof y)throw TypeError(t+" is not iterable!");if(o(y)){for(d=u(t.length);d>b;b++)if((m=e?g(a(h=t[b])[0],h[1]):g(t[b]))===c||m===l)return m}else for(v=y.call(t);!(h=v.next()).done;)if((m=i(v,g,h.value,e))===c||m===l)return m}).BREAK=c,e.RETURN=l},P9l9:function(t,e,n){"use strict";n.d(e,"a",function(){return f}),n.d(e,"b",function(){return p});var r=n("//Fk"),i=n.n(r),o=n("lRwf"),a=n.n(o),u=n("mw3O"),s=n.n(u),c=n("zL8q");n.n(c);a.a.axios.defaults.timeout=25e3;var l=window.location.origin;a.a.axios.interceptors.request.use(function(t){return t},function(t){return c.Message.error({message:"请求超时!"}),i.a.resolve(t)}),a.a.axios.interceptors.response.use(function(t){return t.status&&200==t.status&&"0000"!=t.data.code?(4==t.data.code&&(window.location.href=l+"gateway-web/#/login"),10!=t.data.code&&7!=t.data.code||(window.location.href=l+"gateway-web/#/overview"),t):t},function(t){return 504==t.response.status||404==t.response.status||t.response.status,i.a.resolve(t)});var f=function(t,e){return e.requestProject="api-gateway-web",a.a.axios({method:"get",url:""+l+t,data:{},params:e,headers:{"Content-type":"application/x-www-form-urlencoded"}})},p=function(t,e){return e.requestProject="api-gateway-web",a.a.axios({method:"post",url:""+l+t,data:s.a.stringify(e),headers:{"Content-type":"application/x-www-form-urlencoded"}})}},"RY/4":function(t,e,n){var r=n("R9M2"),i=n("dSzd")("toStringTag"),o="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),i))?n:o?r(e):"Object"==(a=r(e))&&"function"==typeof e.callee?"Arguments":a}},TUB1:function(t,e,n){"use strict";var r=n("zL8q");n.n(r);e.a={showmsg:function(t,e){Object(r.Message)({duration:1e3,message:t,type:e})}}},U5ju:function(t,e,n){n("M6a0"),n("zQR9"),n("+tPU"),n("CXw9"),n("EqBC"),n("jKW+"),t.exports=n("FeBl").Promise},UlGk:function(t,e,n){"use strict";e.a={getByteLen:function(t){for(var e=0,n=0;n<t.length;n++){null!=t.charAt(n).match(/[^\x00-\xff]/gi)?e+=2:e+=1}return e},getZhLen:function(t){for(var e=0,n=0;n<t.length;n++){null!=t.charAt(n).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)},cutStr:function(t,e,n){for(var r=0,i=0;i<t.length;i++){var o=t.charAt(i);if(1==n&&(encodeURI(o).length>2?r+=1:r+=.5),2==n&&(r+=1),r>=e){var a=r==e?i+1:i;return t.substr(0,a)}}},getByteVal:function(t,e){for(var n="",r=0,i=0;i<t.length&&(null!=t[i].match(/[^\x00-\xff]/gi)?r+=1:r+=.5,!(r>e));i++)n+=t[i];return n},getCharVal:function(t,e){for(var n="",r=0,i=0;i<t.length&&(null!=t[i].match(/[^\x00-\xff]/gi)?r+=2:r+=1,!(r>e));i++)n+=t[i];return n},regPos:function(t){return/^\d+(\.\d+)?$/.test(t)}}},XgCd:function(t,e,n){"use strict";var r=String.prototype.replace,i=/%20/g;t.exports={default:"RFC3986",formatters:{RFC1738:function(t){return r.call(t,i,"+")},RFC3986:function(t){return t}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},bRrM:function(t,e,n){"use strict";var r=n("7KvD"),i=n("FeBl"),o=n("evD5"),a=n("+E39"),u=n("dSzd")("species");t.exports=function(t){var e="function"==typeof i[t]?i[t]:r[t];a&&e&&!e[u]&&o.f(e,u,{configurable:!0,get:function(){return this}})}},dNDb:function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},dY0y:function(t,e,n){var r=n("dSzd")("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o=[7],a=o[r]();a.next=function(){return{done:n=!0}},o[r]=function(){return a},t(o)}catch(t){}return n}},fJUb:function(t,e,n){var r=n("77Pl"),i=n("EqjI"),o=n("qARP");t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},iUbK:function(t,e,n){var r=n("7KvD").navigator;t.exports=r&&r.userAgent||""},"jKW+":function(t,e,n){"use strict";var r=n("kM2E"),i=n("qARP"),o=n("dNDb");r(r.S,"Promise",{try:function(t){var e=i.f(this),n=o(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},jvWE:function(t,e,n){"use strict";e.a=function(t,e){var n,e=e||200;return function(){var r=this,i=arguments;n&&clearTimeout(n),n=setTimeout(function(){n=null,t.apply(r,i)},e)}}},knuC:function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},l46T:function(t,e,n){"use strict";var r=n("UlGk"),i={name:"limitinput",props:{inputValue:{type:[String,Number],default:function(){return""}},maxLength:{type:Number,default:10},inputWidth:{type:Number,default:500},getByType:{type:String,default:"word"},holder:{type:String,default:"请输入"},disflag:{type:Boolean,default:!1},limitClass:{type:String,default:""}},data:function(){return{inputNum:0,limitLength:10,itemValue:""}},methods:{inputFocus:function(t){},toInput:function(t){var e="";"word"==this.getByType?(e=r.a.getByteVal(t.target.value,this.limitLength),this.itemValue=e.trim(),this.inputNum=r.a.getZhLen(this.itemValue)):(e=r.a.getCharVal(t.target.value,this.limitLength),this.itemValue=e.trim(),this.inputNum=r.a.getByteLen(this.itemValue)),this.$emit("update:inputValue",this.itemValue)},inputBlur:function(){this.$emit("update:inputValue",this.itemValue)}},watch:{maxLength:function(t,e){this.limitLength=t},inputValue:function(t,e){this.itemValue=t||"","word"==this.getByType?this.inputNum=r.a.getZhLen(this.itemValue):this.inputNum=r.a.getByteLen(this.itemValue)}},mounted:function(){this.limitLength=this.maxLength,this.itemValue=this.inputValue||"","word"==this.getByType?this.inputNum=r.a.getZhLen(this.inputValue):this.inputNum=r.a.getByteLen(this.inputValue)}},o={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["input-line-cell",t.limitClass],style:{width:t.inputWidth+"px"}},[n("el-input",{style:{width:t.inputWidth+"px"},attrs:{disabled:t.disflag,placeholder:t.holder},on:{blur:function(e){t.inputBlur()},focus:function(e){t.inputFocus()}},nativeOn:{keyup:function(e){return n=e,t.toInput(n);var n}},model:{value:t.itemValue,callback:function(e){t.itemValue=e},expression:"itemValue"}}),t._v(" "),n("span",{staticClass:"tip"},[n("span",{staticClass:"len_span"},[t._v(t._s(t.inputNum))]),t._v("/"+t._s(t.limitLength))])],1)},staticRenderFns:[]};var a=n("VU/8")(i,o,!1,function(t){n("tz7a")},"data-v-093222f7",null);e.a=a.exports},msXi:function(t,e,n){var r=n("77Pl");t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&r(o.call(t)),e}}},mw3O:function(t,e,n){"use strict";var r=n("CwSZ"),i=n("DDCP"),o=n("XgCd");t.exports={formats:o,parse:i,stringify:r}},p8xL:function(t,e,n){"use strict";var r=Object.prototype.hasOwnProperty,i=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),o=function(t,e){for(var n=e&&e.plainObjects?Object.create(null):{},r=0;r<t.length;++r)void 0!==t[r]&&(n[r]=t[r]);return n};t.exports={arrayToObject:o,assign:function(t,e){return Object.keys(e).reduce(function(t,n){return t[n]=e[n],t},t)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],n=[],r=0;r<e.length;++r)for(var i=e[r],o=i.obj[i.prop],a=Object.keys(o),u=0;u<a.length;++u){var s=a[u],c=o[s];"object"==typeof c&&null!==c&&-1===n.indexOf(c)&&(e.push({obj:o,prop:s}),n.push(c))}return function(t){for(var e;t.length;){var n=t.pop();if(e=n.obj[n.prop],Array.isArray(e)){for(var r=[],i=0;i<e.length;++i)void 0!==e[i]&&r.push(e[i]);n.obj[n.prop]=r}}return e}(e)},decode:function(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch(e){return t}},encode:function(t){if(0===t.length)return t;for(var e="string"==typeof t?t:String(t),n="",r=0;r<e.length;++r){var o=e.charCodeAt(r);45===o||46===o||95===o||126===o||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122?n+=e.charAt(r):o<128?n+=i[o]:o<2048?n+=i[192|o>>6]+i[128|63&o]:o<55296||o>=57344?n+=i[224|o>>12]+i[128|o>>6&63]+i[128|63&o]:(r+=1,o=65536+((1023&o)<<10|1023&e.charCodeAt(r)),n+=i[240|o>>18]+i[128|o>>12&63]+i[128|o>>6&63]+i[128|63&o])}return n},isBuffer:function(t){return null!==t&&void 0!==t&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},merge:function t(e,n,i){if(!n)return e;if("object"!=typeof n){if(Array.isArray(e))e.push(n);else{if("object"!=typeof e)return[e,n];(i.plainObjects||i.allowPrototypes||!r.call(Object.prototype,n))&&(e[n]=!0)}return e}if("object"!=typeof e)return[e].concat(n);var a=e;return Array.isArray(e)&&!Array.isArray(n)&&(a=o(e,i)),Array.isArray(e)&&Array.isArray(n)?(n.forEach(function(n,o){r.call(e,o)?e[o]&&"object"==typeof e[o]?e[o]=t(e[o],n,i):e.push(n):e[o]=n}),e):Object.keys(n).reduce(function(e,o){var a=n[o];return r.call(e,o)?e[o]=t(e[o],a,i):e[o]=a,e},a)}}},qARP:function(t,e,n){"use strict";var r=n("lOnJ");t.exports.f=function(t){return new function(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=r(e),this.reject=r(n)}(t)}},"r35+":function(t,e){},t8x9:function(t,e,n){var r=n("77Pl"),i=n("lOnJ"),o=n("dSzd")("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||void 0==(n=r(a)[o])?e:i(n)}},tz7a:function(t,e){},"xH/j":function(t,e,n){var r=n("hJx8");t.exports=function(t,e,n){for(var i in e)n&&t[i]?t[i]=e[i]:r(t,i,e[i]);return t}}});
\ No newline at end of file
webpackJsonp([12],{"0mrY":function(e,t){},P19g:function(e,t){},SGyq:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r("319J"),a=r("mvHQ"),n=r.n(a),i=r("P9l9"),s=r("TUB1"),l=r("LlAa"),c={name:"error-code-edit",props:{showDialog:{type:Boolean,default:!1},editRow:{type:Object,default:function(){return{errorSettingId:"",interfaceName:"",projectAndGroup:"",errorCode:"",errorInfo:""}}}},data:function(){return{customDialog:!1,formData:{errorSettingId:"",interfaceName:"",projectAndGroup:"",errorCode:"",errorInfo:""},rules:{errorCode:[{required:!0,message:"请输入错误码",trigger:"blur"}],errorInfo:[{required:!0,message:"请输入错误消息",trigger:"blur"}]}}},methods:{handleClose:function(e){e(),this.hideDialog()},customCancel:function(){this.hideDialog()},hideDialog:function(){this.customDialog=!1,this.formData.errorCode="",this.formData.errorInfo="",this.$emit("hideDialog","")},customConfirm:function(e){var t=this;t.formData.errorCode=String(t.formData.errorCode).replace(/\s+/g,""),t.formData.errorInfo=String(t.formData.errorInfo).replace(/\s+/g,""),t.$refs[e].validate(function(e){if(!e)return!1;t.postEditData()})},postEditData:function(){var e=this,t={errorSettingId:e.formData.errorSettingId,errorCode:e.formData.errorCode,errorInfo:e.formData.errorInfo};Object(i.a)(e.editRow.errorSettingId?"/gateway-manage/update-error-setting":"/gateway-manage/create-error-setting",t).then(function(t){var r=t.data;if("0000"==r.code)return s.a.showmsg("保存成功","success"),void e.setData();l.a.errorInfo(r)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},setData:function(e){this.$emit("hideDialog",this.formData)}},watch:{showDialog:function(e,t){this.customDialog=e},editRow:function(e,t){this.formData=JSON.parse(n()(e))}},mounted:function(){this.customDialog=this.showDialog,this.formData=JSON.parse(n()(this.editRow))}},d={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{directives:[{name:"show",rawName:"v-show",value:e.customDialog,expression:"customDialog"}]},[r("el-dialog",{staticClass:"edit-dialog",attrs:{title:"编辑",visible:e.customDialog,width:"600px","before-close":e.handleClose},on:{"update:visible":function(t){e.customDialog=t}}},[r("div",{staticClass:"edit-dialog-body"},[r("el-form",{ref:"errorCodeForm",attrs:{model:e.formData,"label-width":"94px",rules:e.rules}},[r("el-form-item",{attrs:{label:"接口名称:"}},[e._v("\n "+e._s(e.formData.interfaceName)+"\n ")]),e._v(" "),r("el-form-item",{attrs:{label:"项目分组:"}},[e._v("\n "+e._s(e.formData.projectAndGroup)+"\n ")]),e._v(" "),r("el-form-item",{attrs:{label:"错误码:",prop:"errorCode"}},[r("el-input",{model:{value:e.formData.errorCode,callback:function(t){e.$set(e.formData,"errorCode",t)},expression:"formData.errorCode"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"错误消息:",prop:"errorCode"}},[r("el-input",{model:{value:e.formData.errorInfo,callback:function(t){e.$set(e.formData,"errorInfo",t)},expression:"formData.errorInfo"}})],1)],1)],1),e._v(" "),r("div",{staticClass:"dialog-footer",staticStyle:{"padding-bottom":"10px"},attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.customCancel}},[e._v("取 消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:function(t){e.customConfirm("errorCodeForm")}}},[e._v("保 存")])],1)])],1)},staticRenderFns:[]};var u=r("VU/8")(c,d,!1,function(e){r("0mrY")},"data-v-d982c7e6",null).exports,f=r("jvWE"),h={name:"errorCode",components:{navBread:o.a,errorCodeEdit:u},data:function(){return{navPath:[{name:"错误码",path:""}],searchValue:"",tableData:[{errorSettingId:"1",interfaceName:"测试",projectAndGroup:"会员",errorCode:"404",errorInfo:"页面不存在"}],pageSize:20,currentPage:1,totalCount:0,showDialog:!1,editIndex:"",editRow:{}}},methods:{searchData:Object(f.a)(function(e){this.currentPage,this.getData()},500),clearInput:function(){this.currentPage=1,this.getData()},handleSizeChange:function(e){this.pageSize=e,this.getData()},handleCurrentChange:function(e){this.currentPage=e,this.getData()},handleEdit:function(e,t){this.editIndex=e,this.editRow=t,this.showDialog=!0},hideDialog:function(e){if(!e)return this.editIndex="",this.editRow={},this.showDialog=!1,!1;this.tableData[this.editIndex].errorCode=e.errorCode,this.tableData[this.editIndex].errorInfo=e.errorInfo,this.editIndex="",this.editRow={},this.showDialog=!1,this.$forceUpdate()},getData:function(){var e=this,t={search:e.searchValue,pageNum:e.currentPage,pageSize:e.pageSize};Object(i.b)("/gateway-manage/page-error-setting",t).then(function(t){var r=t.data;if("0000"==r.code)return e.tableData=r.result.result||[],void(e.totalCount=r.result.totalCount);l.a.errorInfo(r)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{$route:{handler:function(e,t){},deep:!0}},mounted:function(){this.$emit("showTab",6),this.getData()}},m={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"api-body-content border-box"},[r("div",{staticClass:"common-nav"},[r("nav-bread",{attrs:{navPath:e.navPath}})],1),e._v(" "),r("div",{staticClass:"api-body-main common-body-main border-box"},[r("div",{staticClass:"api-main-content border-box"},[r("div",{staticClass:"search-wrap m-b-20"},[r("el-input",{staticClass:"w-320",attrs:{clearable:"",placeholder:"请输入接口名称/错误码"},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return r=t,e.searchData(r);var r}},model:{value:e.searchValue,callback:function(t){e.searchValue=t},expression:"searchValue"}},[r("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),e._v(" "),r("div",{staticClass:"table-wrap"},[r("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[r("el-table-column",{attrs:{prop:"interfaceName",label:"接口名称","show-overflow-tooltip":""}}),e._v(" "),r("el-table-column",{attrs:{label:"项目/分组","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.projectAndGroup)+"\n ")]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"错误码","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.errorCode)+"\n ")]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"错误消息","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.errorInfo)+"\n ")]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"操作","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-button",{attrs:{disabled:"true",type:"text"},on:{click:function(r){e.handleEdit(t.$index,t.row)}}},[e._v("编辑")])]}}])})],1),e._v(" "),e.totalCount?r("div",{staticClass:"pagination text-right m-t-14"},[r("el-pagination",{attrs:{small:"","page-size":e.pageSize,"current-page":e.currentPage,layout:"prev, pager, next",total:e.totalCount},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])]),e._v(" "),r("error-code-edit",{attrs:{editRow:e.editRow,showDialog:e.showDialog},on:{hideDialog:e.hideDialog}})],1)},staticRenderFns:[]};var g=r("VU/8")(h,m,!1,function(e){r("P19g")},"data-v-50d41c31",null);t.default=g.exports}});
\ No newline at end of file
webpackJsonp([12],{"6XGN":function(M,L,j){"use strict";Object.defineProperty(L,"__esModule",{value:!0});var N=j("CkW6"),u=j.n(N),w={name:"page403",data:function(){return{img_403:u.a}},computed:{message:function(){return"抱歉,你无权访问该页面"}}},D={render:function(){var M=this.$createElement,L=this._self._c||M;return L("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100%"}},[L("div",{staticClass:"wscn-http404"},[L("div",{staticClass:"pic-404"},[L("img",{staticClass:"pic-404__parent",attrs:{src:this.img_403,alt:"403"}})]),this._v(" "),L("div",{staticClass:"bullshit"},[L("div",{staticClass:"bullshit__headline"},[this._v(this._s(this.message))]),this._v(" "),L("a",{staticClass:"bullshit__return-home",attrs:{href:"#/companyGroup"}},[this._v("返回首页")])])])])},staticRenderFns:[]};var C=j("VU/8")(w,D,!1,function(M){j("GVON")},"data-v-34b4b20b",null);L.default=C.exports},CkW6:function(M,L){M.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMS4wLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0i5Zu+5bGCXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgNDAwIDMzNSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNDAwIDMzNTsiIHhtbDpzcGFjZT0icHJlc2VydmUiPg0KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4NCgkuc3Qwe2ZpbGw6I0ZBRkNGRjt9DQoJLnN0MXtmaWxsOiNEQkU1RjE7fQ0KCS5zdDJ7ZmlsbDojREVFN0Y0O30NCgkuc3Qze2ZpbGw6I0I5QzdEQjt9DQoJLnN0NHtmaWxsOiNGRkZGRkY7fQ0KCS5zdDV7ZmlsbDpub25lO3N0cm9rZTojQjlDN0RCO3N0cm9rZS13aWR0aDo0O3N0cm9rZS1taXRlcmxpbWl0OjEwO30NCgkuc3Q2e2ZpbGw6bm9uZTtzdHJva2U6I0I2QzdEODtzdHJva2UtbWl0ZXJsaW1pdDoxMDt9DQo8L3N0eWxlPg0KPHBhdGggY2xhc3M9InN0NSIgZD0iTTI3NC41LDI0MS4zYy01LjMtNS4zLTQuNCw0LjQtNi43LDYuN2MtMy4xLDMuMS02LjMsNi05LjcsOC42SDEyNS4yYy0zLjQtMi43LTYuNi01LjYtOS43LTguNw0KCWMtMjguNC0yOC41LTM4LjYtNzAuNS0yNi42LTEwOWwtMTAuNS0xMC42Yy01LjMtNS4zLTUuMy0xMy44LDAtMTkuMmM1LjItNS4zLDEzLjctNS4zLDE5LTAuMWMwLDAsMCwwLDAuMSwwLjFsNi42LDYuOA0KCWMzLjEsMy4yLDguMiwzLjIsMTEuNCwwbDAsMGMzLjItMy4yLDMuMi04LjMsMC0xMS41TDEwMy4xLDkyYy0zLjItMy4yLTMuMi04LjMsMC0xMS41YzMuMS0zLjIsOC4yLTMuMiwxMS40LDBsMCwwbDE3LjIsMTcuMg0KCWMtMC45LDMuNywwLjksNy42LDQuNCw5LjNjMy41LDEuNyw3LjcsMC42LDkuOS0yLjVjMi4zLTMuMSwyLjEtNy40LTAuNS0xMC4zYy0zLjMtMy44LTYuNS03LjItNi41LTcuMmwtNy4zLTcuNA0KCWMzNC44LTIxLjMsODIuNi0yMS43LDExNy4yLDBjMzQuNSwyMS43LDUzLjksNjEuMiw1MCwxMDEuOWwxNS40LDE1LjZjMy4yLDMuMiwzLjIsOC4zLDAsMTEuNWMtMy4xLDMuMi04LjIsMy4yLTExLjQsMGwwLDANCglsLTE1LjEtMTUuM2MtMy4xLTMuMi04LjItMy4yLTExLjQsMGwwLDBjLTMuMiwzLjItMy4yLDguMywwLDExLjVsMTcuMSwxNy4yYzUuMiw1LjMsNS4yLDEzLjgsMCwxOS4xDQoJQzI4OC40LDI0Ni42LDI3OS45LDI0Ni42LDI3NC41LDI0MS4zQzI3NC42LDI0MS4zLDI3NC42LDI0MS4zLDI3NC41LDI0MS4zTDI3NC41LDI0MS4zeiIvPg0KPHBhdGggY2xhc3M9InN0MyIgZD0iTTg2LjYsNzEuNGMwLDQuNywzLjgsOC41LDguNSw4LjVjMS41LDAsMy0wLjQsNC4zLTEuMWM0LjEtMi4zLDUuNS03LjUsMy4xLTExLjZjLTEuNS0yLjYtNC4zLTQuMy03LjQtNC4zDQoJQzkwLjQsNjIuOSw4Ni42LDY2LjcsODYuNiw3MS40Ii8+DQo8cGF0aCBjbGFzcz0ic3QzIiBkPSJNMjE2LjQsMTQ1LjRoMjQuM2wtNy40LDE3LjljMi42LDEuOCw0LjUsMy44LDUuOCw2YzEuMiwyLjIsMS45LDQuOCwxLjksNy44YzAsNC42LTEuNiw4LjQtNC44LDExLjINCgljLTMuMiwyLjktNy4zLDQuMy0xMi4zLDQuM2MtMi41LDAtNS4xLTAuNC03LjUtMS4xdi0xMy4xYzIsMC45LDMuOSwxLjQsNS41LDEuNHMyLjktMC41LDMuNy0xLjRjMC45LTEsMS4zLTIuMywxLjMtNC4xDQoJYzAtMS45LTAuOC0zLjQtMi40LTQuNmMtMS42LTEuMi0zLjctMS43LTYuNC0xLjdsMy40LTkuMWgtNS4xVjE0NS40TDIxNi40LDE0NS40eiBNMjA3LjUsMTgxLjZjMCwxLjUtMC4zLDMtMC44LDQuMw0KCXMtMS4zLDIuNS0yLjMsMy41cy0yLjIsMS44LTMuNCwyLjNjLTEuMywwLjYtMi44LDAuOS00LjMsMC45aC05LjZjLTEuNSwwLTIuOS0wLjMtNC4zLTAuOWMtMS4zLTAuNi0yLjUtMS4zLTMuNC0yLjMNCgljLTAuNC0wLjQtMC44LTAuOS0xLjItMS40bDExLjctMTcuM3Y2YzAsMC42LDAuMiwxLjEsMC42LDEuNGMwLjQsMC40LDAuOCwwLjYsMS40LDAuNmMxLjEsMCwyLTAuOCwyLTEuOXYtMC4xdi0xMS45bDEwLjktMTYuMQ0KCWMxLjgsMiwyLjgsNC42LDIuNyw3LjNMMjA3LjUsMTgxLjZMMjA3LjUsMTgxLjZMMjA3LjUsMTgxLjZ6IE0xNzcuMSwxODUuOWMtMC42LTEuNC0wLjktMi44LTAuOC00LjNWMTU2YzAtMS41LDAuMy0zLDAuOC00LjMNCglzMS4zLTIuNSwyLjMtMy41czIuMi0xLjgsMy40LTIuM2MxLjMtMC42LDIuOC0wLjksNC4zLTAuOWg5LjZjMS41LDAsMi45LDAuMyw0LjMsMC45YzEuMywwLjUsMi40LDEuMywzLjQsMi4zbC0xMC41LDE1LjR2LTIuNw0KCWMwLTAuNS0wLjItMS4xLTAuNi0xLjRjLTAuNC0wLjQtMC45LTAuNi0xLjQtMC42Yy0xLjEsMC0yLDAuOC0yLDEuOXYwLjF2OC42bC0xMi4xLDE3LjlDMTc3LjUsMTg2LjksMTc3LjMsMTg2LjQsMTc3LjEsMTg1LjkNCglMMTc3LjEsMTg1Ljl6IE0yNDMuOCwxOTIuN2MzLjUtNy40LDUuMy0xNS41LDUuMy0yMy43YzAtMzAuNS0yNC40LTU1LjItNTQuNi01NS4ycy01NC42LDI0LjctNTQuNiw1NS4yYzAsMC40LDAsMC44LDAsMS4xDQoJbDE5LjYtMjQuNmgxMS40TDE1NCwxNzEuM2g1LjV2LTYuNWwxMS43LTE4LjV2NDYuOGgtMTEuN3YtOS44aC0xNy44YzUuMSwxOS4yLDIwLjEsMzQuMywzOS4yLDM5LjJjLTEuMiwzLjEtNC44LDEwLjctMTAuNywxMg0KCWMtNy4zLDEuNywxOS45LDAuNCwzOS40LTEyLjVjMTQuOS00LjQsMjcuMi0xNSwzMy45LTI4LjlMMjQzLjgsMTkyLjdMMjQzLjgsMTkyLjd6Ii8+DQo8cGF0aCBjbGFzcz0ic3Q0IiBkPSJNMjM4LjksMTU0LjNsLTI0LjQsMzUuNGwwLjUsMC4zbDI0LjQtMzUuNEwyMzguOSwxNTQuM3oiLz4NCjxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik0yNjYuMiw2Ni42aDhjMC43LDAsMS4zLDAuNiwxLjMsMS4zbDAsMGMwLDAuNC0wLjEsMC43LTAuNCwxYy0wLjIsMC4zLTAuNiwwLjQtMC45LDAuNGgtOA0KCWMtMC40LDAtMC43LTAuMS0wLjktMC40Yy0wLjUtMC41LTAuNS0xLjQsMC0xLjlDMjY1LjUsNjYuNywyNjUuOCw2Ni42LDI2Ni4yLDY2LjYgTTExNi41LDIwMS45Yy00LjQsMC04LDMuNi04LDguMXMzLjYsOC4xLDgsOC4xDQoJczgtMy42LDgtOC4xUzEyMC45LDIwMS45LDExNi41LDIwMS45TDExNi41LDIwMS45eiBNMTIxLjQsMjEyLjFjLTAuOCwyLTIuOCwzLjMtNC45LDMuM2MtMywwLTUuMy0yLjQtNS4zLTUuNGMwLTIuMiwxLjMtNC4xLDMuMy01DQoJYzItMC44LDQuMy0wLjQsNS44LDEuMkMxMjEuOCwyMDcuNywxMjIuMiwyMTAsMTIxLjQsMjEyLjFMMTIxLjQsMjEyLjF6IE0xOTEuMyw3OC43Yy00LjQsMC04LDMuNi04LDguMXMzLjYsOC4xLDgsOC4xDQoJYzIuMSwwLDQuMi0wLjksNS43LTIuNHMyLjMtMy42LDIuMy01LjdDMTk5LjMsODIuNCwxOTUuNyw3OC43LDE5MS4zLDc4Ljd6IE0xOTYuMyw4OC45Yy0wLjgsMi0yLjgsMy4zLTQuOSwzLjMNCgljLTMsMC01LjMtMi40LTUuMy01LjRjMC0yLjIsMS4zLTQuMiwzLjMtNXM0LjMtMC40LDUuOCwxLjJDMTk2LjYsODQuNiwxOTcuMSw4Ni45LDE5Ni4zLDg4LjlMMTk2LjMsODguOXogTTI3MC4yLDE2Mi42DQoJYy00LjQsMC04LDMuNi04LDguMXMzLjYsOC4xLDgsOC4xczgtMy42LDgtOC4xQzI3OC4yLDE2Ni4zLDI3NC42LDE2Mi42LDI3MC4yLDE2Mi42eiBNMjc1LjEsMTcyLjhjLTAuOCwyLTIuOCwzLjMtNC45LDMuMw0KCWMtMywwLTUuMy0yLjQtNS4zLTUuNGMwLTIuMiwxLjMtNC4yLDMuMy01czQuMy0wLjQsNS44LDEuMlMyNzUuOSwxNzAuOCwyNzUuMSwxNzIuOHogTTIzMC4xLDMxLjRjLTQuNCwwLTgsMy42LTgsOC4xczMuNiw4LjEsOCw4LjENCgljMi4xLDAsNC4yLTAuOSw1LjctMi40czIuMy0zLjYsMi4zLTUuN0MyMzguMSwzNSwyMzQuNSwzMS40LDIzMC4xLDMxLjR6IE0yMzUsNDEuNmMtMC44LDItMi44LDMuMy00LjksMy4zYy0zLDAtNS4zLTIuNC01LjMtNS40DQoJYzAtMi4yLDEuMy00LjIsMy4zLTVzNC4zLTAuNCw1LjgsMS4yQzIzNS40LDM3LjIsMjM1LjgsMzkuNSwyMzUsNDEuNnoiLz4NCjxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik0xNjMuMiw0NS45aDguMmMwLjQsMCwwLjcsMC4xLDEsMC40YzAuNSwwLjUsMC41LDEuMywwLDEuOWwwLDBjLTAuMywwLjMtMC42LDAuNC0xLDAuNGgtOC4yDQoJYy0wLjQsMC0wLjctMC4xLTEtMC40Yy0wLjUtMC41LTAuNS0xLjMsMC0xLjlsMCwwQzE2Mi40LDQ2LjEsMTYyLjgsNDUuOSwxNjMuMiw0NS45IE0yNzEuNyw2My41djhjMCwwLjQtMC4xLDAuNy0wLjQsMC45DQoJYy0wLjMsMC4zLTAuNiwwLjQtMSwwLjRjLTAuNywwLTEuNC0wLjYtMS40LTEuM2wwLDB2LThjMC0wLjQsMC4xLTAuNywwLjQtMC45YzAuNS0wLjUsMS40LTAuNSwxLjksMA0KCUMyNzEuNiw2Mi44LDI3MS43LDYzLjIsMjcxLjcsNjMuNSIvPg0KPHBhdGggY2xhc3M9InN0MyIgZD0iTTEwNy40LDE1NC44aDguMmMwLjQsMCwwLjcsMC4xLDEsMC40YzAuMywwLjIsMC40LDAuNiwwLjQsMC45YzAsMC43LTAuNiwxLjMtMS40LDEuM2gtOC4yDQoJYy0wLjUsMC0wLjktMC4zLTEuMi0wLjdjLTAuMi0wLjQtMC4yLTAuOSwwLTEuM0MxMDYuNCwxNTUuMSwxMDYuOSwxNTQuOCwxMDcuNCwxNTQuOCBNMTY5LDQyLjd2OGMwLDAuNC0wLjEsMC43LTAuNCwwLjkNCgljLTAuNSwwLjUtMS40LDAuNS0yLDBjLTAuMi0wLjItMC40LTAuNi0wLjQtMC45di04YzAtMC40LDAuMS0wLjcsMC40LTAuOWMwLjUtMC41LDEuNC0wLjUsMS45LDBDMTY4LjgsNDIsMTY5LDQyLjMsMTY5LDQyLjciLz4NCjxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik0yMzAuOSwxMTAuM2g4LjFjMC43LDAsMS4zLDAuNiwxLjMsMS40YzAsMC43LTAuNiwxLjMtMS4zLDEuNGgtOC4xYy0wLjgsMC0xLjQtMC42LTEuNC0xLjQNCgljMC0wLjQsMC4xLTAuNywwLjQtMUMyMzAuMiwxMTAuNCwyMzAuNiwxMTAuMywyMzAuOSwxMTAuMyIvPg0KPHBhdGggY2xhc3M9InN0MyIgZD0iTTExNC42LDE2My44djguMmMwLDAuNC0wLjEsMC43LTAuNCwxYy0wLjUsMC41LTEuNCwwLjUtMS45LDBjLTAuMy0wLjMtMC40LTAuNi0wLjQtMXYtOC4yYzAtMC40LDAuMS0wLjcsMC40LTENCgljMC41LTAuNSwxLjQtMC41LDEuOSwwbDAsMEMxMTQuNCwxNjMuMSwxMTQuNiwxNjMuNCwxMTQuNiwxNjMuOCIvPg0KPHBhdGggY2xhc3M9InN0MSIgZD0iTTEyNiwyNzIuN2g2MC40YzAuNywwLDEuMywwLjYsMS4zLDEuM2wwLDBjMCwwLjctMC42LDEuMy0xLjMsMS40SDEyNmMtMC43LDAtMS4zLTAuNi0xLjMtMS4zDQoJQzEyNC43LDI3My4zLDEyNS4zLDI3Mi43LDEyNiwyNzIuNyIvPg0KPHBhdGggY2xhc3M9InN0MSIgZD0iTTIxOC42LDI3Mi43aDM0LjljMC43LDAsMS4zLDAuNiwxLjMsMS4zYzAsMC43LTAuNiwxLjMtMS4zLDEuM2gtMzQuOWMtMC43LDAtMS4zLTAuNi0xLjQtMS4zDQoJYzAtMC40LDAuMS0wLjcsMC40LTFDMjE3LjksMjcyLjksMjE4LjIsMjcyLjcsMjE4LjYsMjcyLjciLz4NCjxwYXRoIGNsYXNzPSJzdDEiIGQ9Ik0xNTguMiwyODIuMmgxMzEuNWMwLjcsMCwxLjMsMC42LDEuNCwxLjNjMCwwLjQtMC4xLDAuNy0wLjQsMWMtMC4zLDAuMy0wLjYsMC40LTEsMC40SDE1OC4yDQoJYy0wLjcsMC0xLjMtMC42LTEuMy0xLjNsMCwwQzE1Ni45LDI4Mi44LDE1Ny41LDI4Mi4yLDE1OC4yLDI4Mi4yIi8+DQo8cGF0aCBjbGFzcz0ic3QxIiBkPSJNOTMuOCwyODIuMmgzNC45YzAuNywwLDEuMywwLjYsMS4zLDEuM2wwLDBjMCwwLjctMC42LDEuMy0xLjMsMS40bDAsMEg5My44Yy0wLjcsMC0xLjMtMC42LTEuNC0xLjMNCgljMC0wLjQsMC4xLTAuNywwLjQtMUM5My4xLDI4Mi4zLDkzLjUsMjgyLjIsOTMuOCwyODIuMiIvPg0KPHBhdGggY2xhc3M9InN0MSIgZD0iTTE5Ny4xLDI3Mi43aDguMWMwLjcsMCwxLjMsMC42LDEuMywxLjNjMCwwLjctMC42LDEuMy0xLjMsMS4zaC04LjFjLTAuNywwLjEtMS40LTAuNS0xLjQtMS4zDQoJYy0wLjEtMC43LDAuNS0xLjQsMS4zLTEuNEMxOTcsMjcyLjcsMTk3LjEsMjcyLjcsMTk3LjEsMjcyLjciLz4NCjxwYXRoIGNsYXNzPSJzdDEiIGQ9Ik0yODQuNCwyNjQuNmg4LjFjMC43LDAsMS4zLDAuNiwxLjMsMS4zbDAsMGMwLDAuNy0wLjYsMS4zLTEuMywxLjNoLTguMWMtMC43LDAtMS4zLTAuNi0xLjMtMS4zDQoJQzI4MywyNjUuMywyODMuNiwyNjQuNiwyODQuNCwyNjQuNiIvPg0KPHBhdGggY2xhc3M9InN0MSIgZD0iTTk5LjIsMjY0LjZoMTcxLjdjMC40LDAsMC43LDAuMSwwLjksMC40YzAuNCwwLjQsMC41LDEsMC4zLDEuNWMtMC4yLDAuNS0wLjcsMC44LTEuMiwwLjhIOTkuMQ0KCWMtMC43LDAtMS4zLTAuNi0xLjMtMS4zQzk3LjgsMjY1LjMsOTguNCwyNjQuNiw5OS4yLDI2NC42Ii8+DQo8cGF0aCBjbGFzcz0ic3QzIiBkPSJNMjM1LDk1Ljh2OC4xYzAsMC43LTAuNiwxLjMtMS4zLDEuM3MtMS4zLTAuNi0xLjMtMS4zdi04LjFjMC0wLjcsMC42LTEuMywxLjMtMS40QzIzNC40LDk0LjQsMjM1LDk1LDIzNSw5NS44Ig0KCS8+DQo8L3N2Zz4NCg=="},GVON:function(M,L){}});
\ No newline at end of file
webpackJsonp([13],{"6XGN":function(M,L,j){"use strict";Object.defineProperty(L,"__esModule",{value:!0});var N=j("CkW6"),u=j.n(N),w={name:"page403",data:function(){return{img_403:u.a}},computed:{message:function(){return"抱歉,你无权访问该页面"}}},D={render:function(){var M=this.$createElement,L=this._self._c||M;return L("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100%"}},[L("div",{staticClass:"wscn-http404"},[L("div",{staticClass:"pic-404"},[L("img",{staticClass:"pic-404__parent",attrs:{src:this.img_403,alt:"403"}})]),this._v(" "),L("div",{staticClass:"bullshit"},[L("div",{staticClass:"bullshit__headline"},[this._v(this._s(this.message))]),this._v(" "),L("a",{staticClass:"bullshit__return-home",attrs:{href:"#/companyGroup"}},[this._v("返回首页")])])])])},staticRenderFns:[]};var C=j("VU/8")(w,D,!1,function(M){j("GVON")},"data-v-34b4b20b",null);L.default=C.exports},CkW6:function(M,L){M.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMS4wLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0i5Zu+5bGCXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgNDAwIDMzNSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNDAwIDMzNTsiIHhtbDpzcGFjZT0icHJlc2VydmUiPg0KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4NCgkuc3Qwe2ZpbGw6I0ZBRkNGRjt9DQoJLnN0MXtmaWxsOiNEQkU1RjE7fQ0KCS5zdDJ7ZmlsbDojREVFN0Y0O30NCgkuc3Qze2ZpbGw6I0I5QzdEQjt9DQoJLnN0NHtmaWxsOiNGRkZGRkY7fQ0KCS5zdDV7ZmlsbDpub25lO3N0cm9rZTojQjlDN0RCO3N0cm9rZS13aWR0aDo0O3N0cm9rZS1taXRlcmxpbWl0OjEwO30NCgkuc3Q2e2ZpbGw6bm9uZTtzdHJva2U6I0I2QzdEODtzdHJva2UtbWl0ZXJsaW1pdDoxMDt9DQo8L3N0eWxlPg0KPHBhdGggY2xhc3M9InN0NSIgZD0iTTI3NC41LDI0MS4zYy01LjMtNS4zLTQuNCw0LjQtNi43LDYuN2MtMy4xLDMuMS02LjMsNi05LjcsOC42SDEyNS4yYy0zLjQtMi43LTYuNi01LjYtOS43LTguNw0KCWMtMjguNC0yOC41LTM4LjYtNzAuNS0yNi42LTEwOWwtMTAuNS0xMC42Yy01LjMtNS4zLTUuMy0xMy44LDAtMTkuMmM1LjItNS4zLDEzLjctNS4zLDE5LTAuMWMwLDAsMCwwLDAuMSwwLjFsNi42LDYuOA0KCWMzLjEsMy4yLDguMiwzLjIsMTEuNCwwbDAsMGMzLjItMy4yLDMuMi04LjMsMC0xMS41TDEwMy4xLDkyYy0zLjItMy4yLTMuMi04LjMsMC0xMS41YzMuMS0zLjIsOC4yLTMuMiwxMS40LDBsMCwwbDE3LjIsMTcuMg0KCWMtMC45LDMuNywwLjksNy42LDQuNCw5LjNjMy41LDEuNyw3LjcsMC42LDkuOS0yLjVjMi4zLTMuMSwyLjEtNy40LTAuNS0xMC4zYy0zLjMtMy44LTYuNS03LjItNi41LTcuMmwtNy4zLTcuNA0KCWMzNC44LTIxLjMsODIuNi0yMS43LDExNy4yLDBjMzQuNSwyMS43LDUzLjksNjEuMiw1MCwxMDEuOWwxNS40LDE1LjZjMy4yLDMuMiwzLjIsOC4zLDAsMTEuNWMtMy4xLDMuMi04LjIsMy4yLTExLjQsMGwwLDANCglsLTE1LjEtMTUuM2MtMy4xLTMuMi04LjItMy4yLTExLjQsMGwwLDBjLTMuMiwzLjItMy4yLDguMywwLDExLjVsMTcuMSwxNy4yYzUuMiw1LjMsNS4yLDEzLjgsMCwxOS4xDQoJQzI4OC40LDI0Ni42LDI3OS45LDI0Ni42LDI3NC41LDI0MS4zQzI3NC42LDI0MS4zLDI3NC42LDI0MS4zLDI3NC41LDI0MS4zTDI3NC41LDI0MS4zeiIvPg0KPHBhdGggY2xhc3M9InN0MyIgZD0iTTg2LjYsNzEuNGMwLDQuNywzLjgsOC41LDguNSw4LjVjMS41LDAsMy0wLjQsNC4zLTEuMWM0LjEtMi4zLDUuNS03LjUsMy4xLTExLjZjLTEuNS0yLjYtNC4zLTQuMy03LjQtNC4zDQoJQzkwLjQsNjIuOSw4Ni42LDY2LjcsODYuNiw3MS40Ii8+DQo8cGF0aCBjbGFzcz0ic3QzIiBkPSJNMjE2LjQsMTQ1LjRoMjQuM2wtNy40LDE3LjljMi42LDEuOCw0LjUsMy44LDUuOCw2YzEuMiwyLjIsMS45LDQuOCwxLjksNy44YzAsNC42LTEuNiw4LjQtNC44LDExLjINCgljLTMuMiwyLjktNy4zLDQuMy0xMi4zLDQuM2MtMi41LDAtNS4xLTAuNC03LjUtMS4xdi0xMy4xYzIsMC45LDMuOSwxLjQsNS41LDEuNHMyLjktMC41LDMuNy0xLjRjMC45LTEsMS4zLTIuMywxLjMtNC4xDQoJYzAtMS45LTAuOC0zLjQtMi40LTQuNmMtMS42LTEuMi0zLjctMS43LTYuNC0xLjdsMy40LTkuMWgtNS4xVjE0NS40TDIxNi40LDE0NS40eiBNMjA3LjUsMTgxLjZjMCwxLjUtMC4zLDMtMC44LDQuMw0KCXMtMS4zLDIuNS0yLjMsMy41cy0yLjIsMS44LTMuNCwyLjNjLTEuMywwLjYtMi44LDAuOS00LjMsMC45aC05LjZjLTEuNSwwLTIuOS0wLjMtNC4zLTAuOWMtMS4zLTAuNi0yLjUtMS4zLTMuNC0yLjMNCgljLTAuNC0wLjQtMC44LTAuOS0xLjItMS40bDExLjctMTcuM3Y2YzAsMC42LDAuMiwxLjEsMC42LDEuNGMwLjQsMC40LDAuOCwwLjYsMS40LDAuNmMxLjEsMCwyLTAuOCwyLTEuOXYtMC4xdi0xMS45bDEwLjktMTYuMQ0KCWMxLjgsMiwyLjgsNC42LDIuNyw3LjNMMjA3LjUsMTgxLjZMMjA3LjUsMTgxLjZMMjA3LjUsMTgxLjZ6IE0xNzcuMSwxODUuOWMtMC42LTEuNC0wLjktMi44LTAuOC00LjNWMTU2YzAtMS41LDAuMy0zLDAuOC00LjMNCglzMS4zLTIuNSwyLjMtMy41czIuMi0xLjgsMy40LTIuM2MxLjMtMC42LDIuOC0wLjksNC4zLTAuOWg5LjZjMS41LDAsMi45LDAuMyw0LjMsMC45YzEuMywwLjUsMi40LDEuMywzLjQsMi4zbC0xMC41LDE1LjR2LTIuNw0KCWMwLTAuNS0wLjItMS4xLTAuNi0xLjRjLTAuNC0wLjQtMC45LTAuNi0xLjQtMC42Yy0xLjEsMC0yLDAuOC0yLDEuOXYwLjF2OC42bC0xMi4xLDE3LjlDMTc3LjUsMTg2LjksMTc3LjMsMTg2LjQsMTc3LjEsMTg1LjkNCglMMTc3LjEsMTg1Ljl6IE0yNDMuOCwxOTIuN2MzLjUtNy40LDUuMy0xNS41LDUuMy0yMy43YzAtMzAuNS0yNC40LTU1LjItNTQuNi01NS4ycy01NC42LDI0LjctNTQuNiw1NS4yYzAsMC40LDAsMC44LDAsMS4xDQoJbDE5LjYtMjQuNmgxMS40TDE1NCwxNzEuM2g1LjV2LTYuNWwxMS43LTE4LjV2NDYuOGgtMTEuN3YtOS44aC0xNy44YzUuMSwxOS4yLDIwLjEsMzQuMywzOS4yLDM5LjJjLTEuMiwzLjEtNC44LDEwLjctMTAuNywxMg0KCWMtNy4zLDEuNywxOS45LDAuNCwzOS40LTEyLjVjMTQuOS00LjQsMjcuMi0xNSwzMy45LTI4LjlMMjQzLjgsMTkyLjdMMjQzLjgsMTkyLjd6Ii8+DQo8cGF0aCBjbGFzcz0ic3Q0IiBkPSJNMjM4LjksMTU0LjNsLTI0LjQsMzUuNGwwLjUsMC4zbDI0LjQtMzUuNEwyMzguOSwxNTQuM3oiLz4NCjxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik0yNjYuMiw2Ni42aDhjMC43LDAsMS4zLDAuNiwxLjMsMS4zbDAsMGMwLDAuNC0wLjEsMC43LTAuNCwxYy0wLjIsMC4zLTAuNiwwLjQtMC45LDAuNGgtOA0KCWMtMC40LDAtMC43LTAuMS0wLjktMC40Yy0wLjUtMC41LTAuNS0xLjQsMC0xLjlDMjY1LjUsNjYuNywyNjUuOCw2Ni42LDI2Ni4yLDY2LjYgTTExNi41LDIwMS45Yy00LjQsMC04LDMuNi04LDguMXMzLjYsOC4xLDgsOC4xDQoJczgtMy42LDgtOC4xUzEyMC45LDIwMS45LDExNi41LDIwMS45TDExNi41LDIwMS45eiBNMTIxLjQsMjEyLjFjLTAuOCwyLTIuOCwzLjMtNC45LDMuM2MtMywwLTUuMy0yLjQtNS4zLTUuNGMwLTIuMiwxLjMtNC4xLDMuMy01DQoJYzItMC44LDQuMy0wLjQsNS44LDEuMkMxMjEuOCwyMDcuNywxMjIuMiwyMTAsMTIxLjQsMjEyLjFMMTIxLjQsMjEyLjF6IE0xOTEuMyw3OC43Yy00LjQsMC04LDMuNi04LDguMXMzLjYsOC4xLDgsOC4xDQoJYzIuMSwwLDQuMi0wLjksNS43LTIuNHMyLjMtMy42LDIuMy01LjdDMTk5LjMsODIuNCwxOTUuNyw3OC43LDE5MS4zLDc4Ljd6IE0xOTYuMyw4OC45Yy0wLjgsMi0yLjgsMy4zLTQuOSwzLjMNCgljLTMsMC01LjMtMi40LTUuMy01LjRjMC0yLjIsMS4zLTQuMiwzLjMtNXM0LjMtMC40LDUuOCwxLjJDMTk2LjYsODQuNiwxOTcuMSw4Ni45LDE5Ni4zLDg4LjlMMTk2LjMsODguOXogTTI3MC4yLDE2Mi42DQoJYy00LjQsMC04LDMuNi04LDguMXMzLjYsOC4xLDgsOC4xczgtMy42LDgtOC4xQzI3OC4yLDE2Ni4zLDI3NC42LDE2Mi42LDI3MC4yLDE2Mi42eiBNMjc1LjEsMTcyLjhjLTAuOCwyLTIuOCwzLjMtNC45LDMuMw0KCWMtMywwLTUuMy0yLjQtNS4zLTUuNGMwLTIuMiwxLjMtNC4yLDMuMy01czQuMy0wLjQsNS44LDEuMlMyNzUuOSwxNzAuOCwyNzUuMSwxNzIuOHogTTIzMC4xLDMxLjRjLTQuNCwwLTgsMy42LTgsOC4xczMuNiw4LjEsOCw4LjENCgljMi4xLDAsNC4yLTAuOSw1LjctMi40czIuMy0zLjYsMi4zLTUuN0MyMzguMSwzNSwyMzQuNSwzMS40LDIzMC4xLDMxLjR6IE0yMzUsNDEuNmMtMC44LDItMi44LDMuMy00LjksMy4zYy0zLDAtNS4zLTIuNC01LjMtNS40DQoJYzAtMi4yLDEuMy00LjIsMy4zLTVzNC4zLTAuNCw1LjgsMS4yQzIzNS40LDM3LjIsMjM1LjgsMzkuNSwyMzUsNDEuNnoiLz4NCjxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik0xNjMuMiw0NS45aDguMmMwLjQsMCwwLjcsMC4xLDEsMC40YzAuNSwwLjUsMC41LDEuMywwLDEuOWwwLDBjLTAuMywwLjMtMC42LDAuNC0xLDAuNGgtOC4yDQoJYy0wLjQsMC0wLjctMC4xLTEtMC40Yy0wLjUtMC41LTAuNS0xLjMsMC0xLjlsMCwwQzE2Mi40LDQ2LjEsMTYyLjgsNDUuOSwxNjMuMiw0NS45IE0yNzEuNyw2My41djhjMCwwLjQtMC4xLDAuNy0wLjQsMC45DQoJYy0wLjMsMC4zLTAuNiwwLjQtMSwwLjRjLTAuNywwLTEuNC0wLjYtMS40LTEuM2wwLDB2LThjMC0wLjQsMC4xLTAuNywwLjQtMC45YzAuNS0wLjUsMS40LTAuNSwxLjksMA0KCUMyNzEuNiw2Mi44LDI3MS43LDYzLjIsMjcxLjcsNjMuNSIvPg0KPHBhdGggY2xhc3M9InN0MyIgZD0iTTEwNy40LDE1NC44aDguMmMwLjQsMCwwLjcsMC4xLDEsMC40YzAuMywwLjIsMC40LDAuNiwwLjQsMC45YzAsMC43LTAuNiwxLjMtMS40LDEuM2gtOC4yDQoJYy0wLjUsMC0wLjktMC4zLTEuMi0wLjdjLTAuMi0wLjQtMC4yLTAuOSwwLTEuM0MxMDYuNCwxNTUuMSwxMDYuOSwxNTQuOCwxMDcuNCwxNTQuOCBNMTY5LDQyLjd2OGMwLDAuNC0wLjEsMC43LTAuNCwwLjkNCgljLTAuNSwwLjUtMS40LDAuNS0yLDBjLTAuMi0wLjItMC40LTAuNi0wLjQtMC45di04YzAtMC40LDAuMS0wLjcsMC40LTAuOWMwLjUtMC41LDEuNC0wLjUsMS45LDBDMTY4LjgsNDIsMTY5LDQyLjMsMTY5LDQyLjciLz4NCjxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik0yMzAuOSwxMTAuM2g4LjFjMC43LDAsMS4zLDAuNiwxLjMsMS40YzAsMC43LTAuNiwxLjMtMS4zLDEuNGgtOC4xYy0wLjgsMC0xLjQtMC42LTEuNC0xLjQNCgljMC0wLjQsMC4xLTAuNywwLjQtMUMyMzAuMiwxMTAuNCwyMzAuNiwxMTAuMywyMzAuOSwxMTAuMyIvPg0KPHBhdGggY2xhc3M9InN0MyIgZD0iTTExNC42LDE2My44djguMmMwLDAuNC0wLjEsMC43LTAuNCwxYy0wLjUsMC41LTEuNCwwLjUtMS45LDBjLTAuMy0wLjMtMC40LTAuNi0wLjQtMXYtOC4yYzAtMC40LDAuMS0wLjcsMC40LTENCgljMC41LTAuNSwxLjQtMC41LDEuOSwwbDAsMEMxMTQuNCwxNjMuMSwxMTQuNiwxNjMuNCwxMTQuNiwxNjMuOCIvPg0KPHBhdGggY2xhc3M9InN0MSIgZD0iTTEyNiwyNzIuN2g2MC40YzAuNywwLDEuMywwLjYsMS4zLDEuM2wwLDBjMCwwLjctMC42LDEuMy0xLjMsMS40SDEyNmMtMC43LDAtMS4zLTAuNi0xLjMtMS4zDQoJQzEyNC43LDI3My4zLDEyNS4zLDI3Mi43LDEyNiwyNzIuNyIvPg0KPHBhdGggY2xhc3M9InN0MSIgZD0iTTIxOC42LDI3Mi43aDM0LjljMC43LDAsMS4zLDAuNiwxLjMsMS4zYzAsMC43LTAuNiwxLjMtMS4zLDEuM2gtMzQuOWMtMC43LDAtMS4zLTAuNi0xLjQtMS4zDQoJYzAtMC40LDAuMS0wLjcsMC40LTFDMjE3LjksMjcyLjksMjE4LjIsMjcyLjcsMjE4LjYsMjcyLjciLz4NCjxwYXRoIGNsYXNzPSJzdDEiIGQ9Ik0xNTguMiwyODIuMmgxMzEuNWMwLjcsMCwxLjMsMC42LDEuNCwxLjNjMCwwLjQtMC4xLDAuNy0wLjQsMWMtMC4zLDAuMy0wLjYsMC40LTEsMC40SDE1OC4yDQoJYy0wLjcsMC0xLjMtMC42LTEuMy0xLjNsMCwwQzE1Ni45LDI4Mi44LDE1Ny41LDI4Mi4yLDE1OC4yLDI4Mi4yIi8+DQo8cGF0aCBjbGFzcz0ic3QxIiBkPSJNOTMuOCwyODIuMmgzNC45YzAuNywwLDEuMywwLjYsMS4zLDEuM2wwLDBjMCwwLjctMC42LDEuMy0xLjMsMS40bDAsMEg5My44Yy0wLjcsMC0xLjMtMC42LTEuNC0xLjMNCgljMC0wLjQsMC4xLTAuNywwLjQtMUM5My4xLDI4Mi4zLDkzLjUsMjgyLjIsOTMuOCwyODIuMiIvPg0KPHBhdGggY2xhc3M9InN0MSIgZD0iTTE5Ny4xLDI3Mi43aDguMWMwLjcsMCwxLjMsMC42LDEuMywxLjNjMCwwLjctMC42LDEuMy0xLjMsMS4zaC04LjFjLTAuNywwLjEtMS40LTAuNS0xLjQtMS4zDQoJYy0wLjEtMC43LDAuNS0xLjQsMS4zLTEuNEMxOTcsMjcyLjcsMTk3LjEsMjcyLjcsMTk3LjEsMjcyLjciLz4NCjxwYXRoIGNsYXNzPSJzdDEiIGQ9Ik0yODQuNCwyNjQuNmg4LjFjMC43LDAsMS4zLDAuNiwxLjMsMS4zbDAsMGMwLDAuNy0wLjYsMS4zLTEuMywxLjNoLTguMWMtMC43LDAtMS4zLTAuNi0xLjMtMS4zDQoJQzI4MywyNjUuMywyODMuNiwyNjQuNiwyODQuNCwyNjQuNiIvPg0KPHBhdGggY2xhc3M9InN0MSIgZD0iTTk5LjIsMjY0LjZoMTcxLjdjMC40LDAsMC43LDAuMSwwLjksMC40YzAuNCwwLjQsMC41LDEsMC4zLDEuNWMtMC4yLDAuNS0wLjcsMC44LTEuMiwwLjhIOTkuMQ0KCWMtMC43LDAtMS4zLTAuNi0xLjMtMS4zQzk3LjgsMjY1LjMsOTguNCwyNjQuNiw5OS4yLDI2NC42Ii8+DQo8cGF0aCBjbGFzcz0ic3QzIiBkPSJNMjM1LDk1Ljh2OC4xYzAsMC43LTAuNiwxLjMtMS4zLDEuM3MtMS4zLTAuNi0xLjMtMS4zdi04LjFjMC0wLjcsMC42LTEuMywxLjMtMS40QzIzNC40LDk0LjQsMjM1LDk1LDIzNSw5NS44Ig0KCS8+DQo8L3N2Zz4NCg=="},GVON:function(M,L){}});
\ No newline at end of file
webpackJsonp([14],{"2wAe":function(e,t){},SGyq:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o("319J"),a=o("mvHQ"),n=o.n(a),i=o("P9l9"),s=o("TUB1"),l=o("LlAa"),c={name:"error-code-edit",props:{showDialog:{type:Boolean,default:!1},editRow:{type:Object,default:function(){return{errorSettingId:"",interfaceName:"",projectAndGroup:"",errorCode:"",errorInfo:""}}}},data:function(){return{customDialog:!1,formData:{errorSettingId:"",interfaceName:"",projectAndGroup:"",errorCode:"",errorInfo:""},rules:{errorCode:[{required:!0,message:"请输入错误码",trigger:"blur"}],errorInfo:[{required:!0,message:"请输入错误消息",trigger:"blur"}]}}},methods:{handleClose:function(e){e(),this.hideDialog()},customCancel:function(){this.hideDialog()},hideDialog:function(){this.customDialog=!1,this.formData.errorCode="",this.formData.errorInfo="",this.$emit("hideDialog","")},customConfirm:function(e){var t=this;t.formData.errorCode=String(t.formData.errorCode).replace(/\s+/g,""),t.formData.errorInfo=String(t.formData.errorInfo).replace(/\s+/g,""),t.$refs[e].validate(function(e){if(!e)return!1;t.postEditData()})},postEditData:function(){var e=this,t={errorSettingId:e.formData.errorSettingId,errorCode:e.formData.errorCode,errorInfo:e.formData.errorInfo};Object(i.a)(e.editRow.errorSettingId?"/gateway-manage/update-error-setting":"/gateway-manage/create-error-setting",t).then(function(t){var o=t.data;if(1==o.code)return s.a.showmsg("保存成功","success"),void e.setData();l.a.errorInfo(o)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},setData:function(e){this.$emit("hideDialog",this.formData)}},watch:{showDialog:function(e,t){this.customDialog=e},editRow:function(e,t){this.formData=JSON.parse(n()(e))}},mounted:function(){this.customDialog=this.showDialog,this.formData=JSON.parse(n()(this.editRow))}},d={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{directives:[{name:"show",rawName:"v-show",value:e.customDialog,expression:"customDialog"}]},[o("el-dialog",{staticClass:"edit-dialog",attrs:{title:"编辑",visible:e.customDialog,width:"600px","before-close":e.handleClose},on:{"update:visible":function(t){e.customDialog=t}}},[o("div",{staticClass:"edit-dialog-body"},[o("el-form",{ref:"errorCodeForm",attrs:{model:e.formData,"label-width":"94px",rules:e.rules}},[o("el-form-item",{attrs:{label:"接口名称:"}},[e._v("\n "+e._s(e.formData.interfaceName)+"\n ")]),e._v(" "),o("el-form-item",{attrs:{label:"项目分组:"}},[e._v("\n "+e._s(e.formData.projectAndGroup)+"\n ")]),e._v(" "),o("el-form-item",{attrs:{label:"错误码:",prop:"errorCode"}},[o("el-input",{model:{value:e.formData.errorCode,callback:function(t){e.$set(e.formData,"errorCode",t)},expression:"formData.errorCode"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"错误消息:",prop:"errorCode"}},[o("el-input",{model:{value:e.formData.errorInfo,callback:function(t){e.$set(e.formData,"errorInfo",t)},expression:"formData.errorInfo"}})],1)],1)],1),e._v(" "),o("div",{staticClass:"dialog-footer",staticStyle:{"padding-bottom":"10px"},attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:e.customCancel}},[e._v("取 消")]),e._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:function(t){e.customConfirm("errorCodeForm")}}},[e._v("保 存")])],1)])],1)},staticRenderFns:[]};var u=o("VU/8")(c,d,!1,function(e){o("zBjL")},"data-v-00281df6",null).exports,f=o("jvWE"),h={name:"errorCode",components:{navBread:r.a,errorCodeEdit:u},data:function(){return{navPath:[{name:"错误码",path:""}],searchValue:"",tableData:[{errorSettingId:"1",interfaceName:"测试",projectAndGroup:"会员",errorCode:"404",errorInfo:"页面不存在"}],pageSize:20,currentPage:1,totalCount:0,showDialog:!1,editIndex:"",editRow:{}}},methods:{searchData:Object(f.a)(function(e){this.currentPage,this.getData()},500),clearInput:function(){this.currentPage=1,this.getData()},handleSizeChange:function(e){this.pageSize=e,this.getData()},handleCurrentChange:function(e){this.currentPage=e,this.getData()},handleEdit:function(e,t){this.editIndex=e,this.editRow=t,this.showDialog=!0},hideDialog:function(e){if(!e)return this.editIndex="",this.editRow={},this.showDialog=!1,!1;this.tableData[this.editIndex].errorCode=e.errorCode,this.tableData[this.editIndex].errorInfo=e.errorInfo,this.editIndex="",this.editRow={},this.showDialog=!1,this.$forceUpdate()},getData:function(){var e=this,t={search:e.searchValue,pageNum:e.currentPage,pageSize:e.pageSize};Object(i.a)("/gateway-manage/page-error-setting",t).then(function(t){var o=t.data;if(1==o.code)return e.tableData=o.result.result||[],void(e.totalCount=o.result.totalCount);l.a.errorInfo(o)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{$route:{handler:function(e,t){},deep:!0}},mounted:function(){this.$emit("showTab",6)}},m={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"api-body-content border-box"},[o("div",{staticClass:"common-nav"},[o("nav-bread",{attrs:{navPath:e.navPath}})],1),e._v(" "),o("div",{staticClass:"api-body-main common-body-main border-box"},[o("div",{staticClass:"api-main-content border-box"},[o("div",{staticClass:"search-wrap m-b-20"},[o("el-input",{staticClass:"w-320",attrs:{clearable:"",placeholder:"请输入接口名称/错误码"},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return o=t,e.searchData(o);var o}},model:{value:e.searchValue,callback:function(t){e.searchValue=t},expression:"searchValue"}},[o("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),e._v(" "),o("div",{staticClass:"table-wrap"},[o("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[o("el-table-column",{attrs:{prop:"interfaceName",label:"接口名称","show-overflow-tooltip":""}}),e._v(" "),o("el-table-column",{attrs:{label:"项目/分组","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.projectAndGroup)+"\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"错误码","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.errorCode)+"\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"错误消息","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.errorInfo)+"\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"操作","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[o("el-button",{attrs:{type:"text"},on:{click:function(o){e.handleEdit(t.$index,t.row)}}},[e._v("编辑")])]}}])})],1),e._v(" "),e.totalCount?o("div",{staticClass:"pagination text-right m-t-14"},[o("el-pagination",{attrs:{small:"","page-size":e.pageSize,"current-page":e.currentPage,layout:"prev, pager, next",total:e.totalCount},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])]),e._v(" "),o("error-code-edit",{attrs:{editRow:e.editRow,showDialog:e.showDialog},on:{hideDialog:e.hideDialog}})],1)},staticRenderFns:[]};var g=o("VU/8")(h,m,!1,function(e){o("2wAe")},"data-v-6e5b9a33",null);t.default=g.exports},zBjL:function(e,t){}});
\ No newline at end of file
webpackJsonp([13],{AejC:function(t,s,i){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var e=i("Minx"),a=i.n(e),n={name:"page404",data:function(){return{img_404:a.a}},computed:{message:function(){return"抱歉,你访问的页面不存在"}},mounted:function(){}},r={render:function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100%"}},[s("div",{staticClass:"wscn-http404"},[s("div",{staticClass:"pic-404"},[s("img",{staticClass:"pic-404__parent",attrs:{src:this.img_404,alt:"404"}})]),this._v(" "),s("div",{staticClass:"bullshit"},[s("div",{staticClass:"bullshit__headline"},[this._v(this._s(this.message))]),this._v(" "),s("a",{staticClass:"bullshit__return-home",attrs:{href:"#/companyGroup"}},[this._v("返回首页")])])])])},staticRenderFns:[]};var c=i("VU/8")(n,r,!1,function(t){i("AsY3")},"data-v-18a2f51c",null);s.default=c.exports},AsY3:function(t,s){},Minx:function(t,s,i){t.exports=i.p+"static/img/error_404.bf58747.svg"}});
\ No newline at end of file
webpackJsonp([14],{AejC:function(t,s,i){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var e=i("Minx"),a=i.n(e),n={name:"page404",data:function(){return{img_404:a.a}},computed:{message:function(){return"抱歉,你访问的页面不存在"}},mounted:function(){}},r={render:function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100%"}},[s("div",{staticClass:"wscn-http404"},[s("div",{staticClass:"pic-404"},[s("img",{staticClass:"pic-404__parent",attrs:{src:this.img_404,alt:"404"}})]),this._v(" "),s("div",{staticClass:"bullshit"},[s("div",{staticClass:"bullshit__headline"},[this._v(this._s(this.message))]),this._v(" "),s("a",{staticClass:"bullshit__return-home",attrs:{href:"#/companyGroup"}},[this._v("返回首页")])])])])},staticRenderFns:[]};var c=i("VU/8")(n,r,!1,function(t){i("AsY3")},"data-v-18a2f51c",null);s.default=c.exports},AsY3:function(t,s){},Minx:function(t,s,i){t.exports=i.p+"static/img/error_404.bf58747.svg"}});
\ No newline at end of file
webpackJsonp([15],{hlbb:function(e,t){},vm6Q:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("mvHQ"),n=a.n(o),r=a("319J"),s=a("l46T"),i=a("Kkt8"),l=a("P9l9"),c=a("TUB1"),d=a("LlAa"),p={name:"createEnvSet",components:{navBread:r.a,limitInput:s.a,limitTextarea:i.a},data:function(){return{navPath:[{name:"环境管理",path:"/envManage"},{name:"环境列表",path:"/envManage"},{name:"新增配置",path:""}],formData:{backendProxyId:this.$route.query.backendProxyId||"",proxyType:this.$route.query.proxyType||"0",proxyCode:"",proxyName:"",description:"",envParams:""},rules:{proxyName:[{required:!0,message:"请输入配置名称",trigger:"blur"}],proxyCode:[{required:!0,message:"请输入配置code",trigger:"blur"}]},shoEnvFlag:!1,tableData:[{sceneCode:"",ips:[{ip:""}]}],envOptions:[{sceneCode:"1",sceneName:"测试"},{sceneCode:"2",sceneName:"正式"}]}},methods:{showEnvSet:function(){this.shoEnvFlag=!0},toDel:function(e,t,a){e.ips.splice(a,1)},toAdd:function(e,t,a){e.ips.push({ip:""})},handleDel:function(e,t){var a=this;a.$confirm("确定删除该环境?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.tableData.splice(e,1)}).catch(function(){})},toAddRow:function(){this.tableData.push({envName:"",ips:[{ip:""}]})},handleSave:function(e){var t=this;t.formData.proxyName=String(t.formData.proxyName).replace(/\s+/g,""),t.formData.proxyCode=String(t.formData.proxyCode).replace(/\s+/g,""),t.$refs[e].validate(function(e){if(!e)return!1;t.saveData()})},saveData:function(){var e=this,t={backendProxyId:e.formData.backendProxyId,proxyType:e.formData.proxyType,proxyName:e.formData.proxyName,proxyCode:e.formData.proxyCode,description:e.formData.description,envParams:e.shoEnvFlag?JSON.parse(n()(e.tableData)):""};Object(l.a)(e.$route.query.backendProxyId?"/gateway-manage/update-proxy":"/gateway-manage/create-proxy",t).then(function(t){var a=t.data;if(1==a.code)return c.a.showmsg("保存成功","success"),void e.$router.push("/envManage");d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getEnvData:function(){var e=this;Object(l.a)("/gateway-manage/list-all-scene",{}).then(function(t){var a=t.data;1!=a.code?d.a.errorMsg(a):e.envOptions=a.result||[]}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getData:function(){var e=this,t={backendProxyId:e.backendProxyId};Object(l.a)("/gateway-manage/get-proxy",t).then(function(t){var a=t.data;if(1==a.code)return e.formData=a.result,void(e.tableData=JSON.parse(a.result.envParams));d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{$route:{handler:function(e,t){},deep:!0}},mounted:function(){this.$emit("showTab",3)}},u={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"api-body-content border-box"},[a("div",{staticClass:"common-nav"},[a("nav-bread",{attrs:{navPath:e.navPath}})],1),e._v(" "),a("div",{staticClass:"api-body-main common-body-main border-box"},[a("div",{staticClass:"api-main-content border-box"},[a("div",{staticClass:"base-set-wrap"},[a("div",{staticClass:"set-title font-14 color-303133"},[e._v("基础配置")]),e._v(" "),a("el-form",{ref:"envForm",attrs:{model:e.formData,"label-width":"94px",rules:e.rules}},[a("el-form-item",{attrs:{label:"配置名称:",prop:"proxyName"}},[a("limitInput",{attrs:{inputWidth:440,inputValue:e.formData.proxyName,holder:"请输入配置名称",getByType:"word",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.formData,"proxyName",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"配置code:",prop:"proxyCode"}},[a("limitInput",{attrs:{inputWidth:440,disflag:!!e.formData.setId,inputValue:e.formData.proxyCode,holder:"请输入配置code",getByType:"word",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.formData,"proxyCode",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"备注:",prop:"description"}},[a("limit-textarea",{attrs:{inputWidth:440,inputValue:e.formData.description,holder:"请输入备注内容",getByType:"word",maxLength:100},on:{"update:inputValue":function(t){e.$set(e.formData,"description",t)}}})],1),e._v(" "),e.shoEnvFlag?e._e():a("el-form-item",{attrs:{label:""}},[a("div",{staticClass:"show-set-env",on:{click:e.showEnvSet}},[a("span",{staticClass:"font-14 color-5584FF"},[e._v("添加环境配置")]),a("i",{staticClass:"iconfont iconxiala1 font-14 color-5584FF p-l-10"})])])],1)],1),e._v(" "),e.shoEnvFlag?a("div",{staticClass:"env-set-wrap"},[a("div",{staticClass:"set-title font-14 color-303133"},[e._v("环境配置")]),e._v(" "),a("div",{staticClass:"env-set-body"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{prop:"envName",label:"配置名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-select",{attrs:{placeholder:"请选择"},model:{value:t.row.sceneCode,callback:function(a){e.$set(t.row,"sceneCode",a)},expression:"scope.row.sceneCode"}},e._l(e.envOptions,function(e){return a("el-option",{key:e.sceneCode,attrs:{label:e.sceneName,value:e.sceneCode}})}))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"IP地址","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(t.row.ips,function(o,n){return a("div",{key:n,class:["ip-cell w-206",0==n?"":"m-t-18"]},[a("el-input",{attrs:{placeholder:""},model:{value:o.ip,callback:function(t){e.$set(o,"ip",t)},expression:"item.ip"}}),e._v(" "),t.row.ips.length>1&&n<t.row.ips.length-1?a("i",{staticClass:"inline-block pointer el-icon-minus p-l-10",on:{click:function(a){e.toDel(t.row,t.$index,n)}}}):e._e(),e._v(" "),t.row.ips.length-1==n?a("i",{staticClass:"inline-block pointer el-icon-plus p-l-10",on:{click:function(a){e.toAdd(t.row,t.$index,n)}}}):e._e()],1)})}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e.tableData.length>1?a("el-button",{attrs:{type:"text"},on:{click:function(a){e.handleDel(t.$index,t.row)}}},[e._v("删除")]):e._e()]}}])})],1)],1),e._v(" "),a("div",{staticClass:"add-row text-center pointer",on:{click:e.toAddRow}},[a("i",{staticClass:"el-icon-circle-plus-outline font-14 color-5584FF"}),a("span",{staticClass:"font-14 color-5584FF p-l-4"},[e._v("添加行")])])]):e._e(),e._v(" "),a("div",{staticClass:"save-wrap",style:{"padding-left":e.shoEnvFlag?"0":"97px"}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.handleSave("envForm")}}},[e._v("保存")])],1)])])])},staticRenderFns:[]};var m=a("VU/8")(p,u,!1,function(e){a("hlbb")},"data-v-e71f7816",null);t.default=m.exports}});
\ No newline at end of file
webpackJsonp([15],{"5OtP":function(e,t){},vm6Q:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("mvHQ"),r=a.n(o),n=a("319J"),s=a("l46T"),l=a("Kkt8"),i=a("P9l9"),c=a("TUB1"),d=a("LlAa"),p={name:"createEnvSet",components:{navBread:n.a,limitInput:s.a,limitTextarea:l.a},data:function(){return{navPath:[{name:"环境管理",path:"/envManage"},{name:"环境列表",path:"/envManage"},{name:this.$route.query.backendProxyId?"修改配置":"新增配置",path:""}],formData:{backendProxyId:this.$route.query.backendProxyId||"",proxyType:this.$route.query.proxyType||"0",proxyCode:"",proxyName:"",description:"",envParams:""},rules:{proxyName:[{required:!0,message:"请输入配置名称",trigger:"blur"}],proxyCode:[{required:!0,message:"请输入配置code",trigger:"blur"}]},shoEnvFlag:!1,tableData:[{sceneCode:"",proxyParams:[{balence:"random",url:"",weight:"",zookeeperUrl:""}]}],envOptions:[{sceneCode:"1",sceneName:"测试"},{sceneCode:"2",sceneName:"正式"}]}},methods:{showEnvSet:function(){this.shoEnvFlag=!0},toDel:function(e,t,a){e.proxyParams.splice(a,1)},toAdd:function(e,t,a){e.proxyParams.push({balence:"",url:"",weight:"",zookeeperUrl:""})},handleDel:function(e,t){var a=this;a.$confirm("确定删除该环境?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.tableData.splice(e,1)}).catch(function(){})},toAddRow:function(){this.tableData.push({sceneCode:"",proxyParams:[{balence:"",url:"",weight:"",zookeeperUrl:""}]})},handleSave:function(e){var t=this;t.formData.proxyName=String(t.formData.proxyName).replace(/\s+/g,""),t.formData.proxyCode=String(t.formData.proxyCode).replace(/\s+/g,""),t.$refs[e].validate(function(e){if(!e)return!1;t.saveData()})},saveData:function(){var e=this;e.tableData.forEach(function(t){0==e.formData.proxyType?t.proxyParams.forEach(function(t){e.$delete(t,"zookeeperUrl")}):t.proxyParams.forEach(function(t){e.$delete(t,"balence"),e.$delete(t,"url"),e.$delete(t,"weight")})});var t={backendProxyId:e.formData.backendProxyId,proxyType:e.formData.proxyType,proxyName:e.formData.proxyName,proxyCode:e.formData.proxyCode,description:e.formData.description,envParams:e.shoEnvFlag?r()(e.tableData):""};Object(i.a)(e.$route.query.backendProxyId?"/gateway-manage/update-proxy":"/gateway-manage/create-proxy",t).then(function(t){var a=t.data;if("0000"==a.code)return c.a.showmsg("保存成功","success"),void e.$router.push("/envManage?tabChildid=second");d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getEnvData:function(){var e=this;Object(i.a)("/gateway-manage/list-all-scene",{}).then(function(t){var a=t.data;"0000"!=a.code?d.a.errorMsg(a):e.envOptions=a.result||[]}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getData:function(){var e=this,t={backendProxyId:e.formData.backendProxyId};Object(i.a)("/gateway-manage/get-proxy",t).then(function(t){var a=t.data;if("0000"==a.code)return e.formData=a.result,void(e.tableData=JSON.parse(a.result.envParams));d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{$route:{handler:function(e,t){},deep:!0}},mounted:function(){this.$emit("showTab",3),this.getEnvData(),this.$route.query.backendProxyId&&this.getData()}},u={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"api-body-content border-box"},[a("div",{staticClass:"common-nav"},[a("nav-bread",{attrs:{navPath:e.navPath}})],1),e._v(" "),a("div",{staticClass:"api-body-main common-body-main border-box"},[a("div",{staticClass:"api-main-content border-box"},[a("div",{staticClass:"base-set-wrap"},[a("div",{staticClass:"set-title font-14 color-303133"},[e._v("基础配置")]),e._v(" "),a("el-form",{ref:"envForm",attrs:{model:e.formData,"label-width":"94px",rules:e.rules}},[a("el-form-item",{attrs:{label:"参数类型:"}},[e._v("\n "+e._s(0==e.formData.proxyType?"http":"dubbo")+"\n ")]),e._v(" "),a("el-form-item",{attrs:{label:"配置名称:",prop:"proxyName"}},[a("limitInput",{attrs:{inputWidth:440,inputValue:e.formData.proxyName,holder:"请输入配置名称",getByType:"word",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.formData,"proxyName",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"配置code:",prop:"proxyCode"}},[a("limitInput",{attrs:{inputWidth:440,disflag:!!e.formData.setId,inputValue:e.formData.proxyCode,holder:"请输入配置code",getByType:"word",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.formData,"proxyCode",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"备注:",prop:"description"}},[a("limit-textarea",{attrs:{inputWidth:440,inputValue:e.formData.description,holder:"请输入备注内容",getByType:"word",maxLength:100},on:{"update:inputValue":function(t){e.$set(e.formData,"description",t)}}})],1),e._v(" "),e.shoEnvFlag?e._e():a("el-form-item",{attrs:{label:""}},[a("div",{staticClass:"show-set-env",on:{click:e.showEnvSet}},[a("span",{staticClass:"font-14 color-5584FF"},[e._v("添加环境配置")]),a("i",{staticClass:"iconfont iconxiala1 font-14 color-5584FF p-l-10"})])])],1)],1),e._v(" "),e.shoEnvFlag?a("div",{staticClass:"env-set-wrap"},[a("div",{staticClass:"set-title font-14 color-303133"},[e._v("环境配置")]),e._v(" "),a("div",{staticClass:"env-set-body"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{prop:"envName",label:"配置名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-select",{attrs:{placeholder:"请选择"},model:{value:t.row.sceneCode,callback:function(a){e.$set(t.row,"sceneCode",a)},expression:"scope.row.sceneCode"}},e._l(e.envOptions,function(e){return a("el-option",{key:e.sceneCode,attrs:{label:e.sceneName,value:e.sceneCode}})}))]}}])}),e._v(" "),0==e.$route.query.proxyType?a("el-table-column",{attrs:{label:"IP地址",width:"550px"},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(t.row.proxyParams,function(o,r){return a("div",{key:r,class:["ip-cell ",0==r?"":"m-t-18"]},[a("el-input",{staticClass:"w-200 font-14",attrs:{placeholder:"请输入ip地址"},model:{value:o.url,callback:function(t){e.$set(o,"url",t)},expression:"item.url"}}),a("el-input",{staticClass:"w-200 font-14 m-l-10",attrs:{placeholder:"请输入权重值"},model:{value:o.weight,callback:function(t){e.$set(o,"weight",t)},expression:"item.weight"}}),e._v(" "),t.row.proxyParams.length>1&&r<t.row.proxyParams.length-1?a("i",{staticClass:"inline-block vertical-middle pointer el-icon-minus font-14 p-l-10",on:{click:function(a){e.toDel(t.row,t.$index,r)}}}):e._e(),e._v(" "),t.row.proxyParams.length-1==r?a("i",{staticClass:"inline-block vertical-middle pointer el-icon-plus font-14 p-l-10",on:{click:function(a){e.toAdd(t.row,t.$index,r)}}}):e._e()],1)})}}])}):e._e(),e._v(" "),1==e.$route.query.proxyType?a("el-table-column",{attrs:{label:"注册中心",width:"550px"},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(t.row.proxyParams,function(t,o){return a("div",{key:o,class:["ip-cell w-206",0==o?"":"m-t-18"]},[a("el-input",{staticClass:"font-14",attrs:{placeholder:""},model:{value:t.zookeeperUrl,callback:function(a){e.$set(t,"zookeeperUrl",a)},expression:"item.zookeeperUrl"}})],1)})}}])}):e._e(),e._v(" "),a("el-table-column",{attrs:{label:"操作","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e.tableData.length>1?a("el-button",{attrs:{type:"text"},on:{click:function(a){e.handleDel(t.$index,t.row)}}},[e._v("删除")]):e._e()]}}])})],1)],1),e._v(" "),a("div",{staticClass:"add-row text-center pointer",on:{click:e.toAddRow}},[a("i",{staticClass:"el-icon-circle-plus-outline font-14 color-5584FF"}),a("span",{staticClass:"font-14 color-5584FF p-l-4"},[e._v("添加行")])])]):e._e(),e._v(" "),a("div",{staticClass:"save-wrap",style:{"padding-left":e.shoEnvFlag?"0":"97px"}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.handleSave("envForm")}}},[e._v("保存")])],1)])])])},staticRenderFns:[]};var m=a("VU/8")(p,u,!1,function(e){a("5OtP")},"data-v-efc6e180",null);t.default=m.exports}});
\ No newline at end of file
webpackJsonp([2],{"/ZYZ":function(t,e){},"12wI":function(t,e){},"6XAZ":function(t,e){},"7xIC":function(t,e){},"87en":function(t,e){},C6gy:function(t,e){},S7Op:function(t,e){},fZOT:function(t,e){},p3pD:function(t,e){},r4m9:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("319J"),i={name:"base-info-show",props:{apiData:{type:[Object,Array],default:function(){return{}}}},data:function(){return{apiInfoData:{interfaceName:"1",interfaceType:"http",requestType:"GET",interfaceDescribe:"test"}}},watch:{apiData:function(t,e){this.apiInfoData=t}},mounted:function(){this.apiInfoData=this.apiData}},o={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"base-info-show border-box"},[a("el-form",{attrs:{"label-width":"104px",model:t.apiInfoData}},[a("el-form-item",{attrs:{label:"API名称:"}},[t._v("\n "+t._s(t.apiInfoData.interfaceName)+"\n ")]),t._v(" "),a("el-form-item",{attrs:{label:"API类型:"}},[t._v("\n "+t._s(t.apiInfoData.interfaceType)+"\n ")]),t._v(" "),a("el-form-item",{attrs:{label:"访问类型:"}},[t._v("\n "+t._s(t.apiInfoData.requestType)+"\n ")]),t._v(" "),a("el-form-item",{attrs:{label:"描述:"}},[t._v("\n "+t._s(t.apiInfoData.interfaceDescribe)+"\n ")])],1)],1)},staticRenderFns:[]};var l=a("VU/8")(i,o,!1,function(t){a("vrRu")},"data-v-082f54d8",null).exports,r={name:"table-row",props:{itemData:{type:[Object,Array],default:function(){return{}}}},data:function(){return{trData:{protocol:"http",interfaceUrl:"/",requestType:"post",frontParams:{type:"object",properties:{name:{originType:"query",type:"object",isBackendField:0,defaultVal:"val",isRootKey:0,rootKey:"",objectClass:"",description:"描述",check:!0,required:[],properties:{nameId:{originType:"query",type:"object",isBackendField:0,defaultVal:"val",isRootKey:0,rootKey:"",objectClass:"",description:"描述",check:!0}}},id:{originType:"query",type:"string",isBackendField:0,defaultVal:"val",isRootKey:0,rootKey:"",objectClass:"",description:"描述",check:!0}},required:[]}}}},watch:{itemData:function(t,e){this.trData=t}},mounted:function(){this.trData=this.itemData}},n={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t._l(t.itemData,function(e,s,i){return[a("table",{key:i+s+121,staticClass:"el-table__body",staticStyle:{width:"100%","table-layout":"fixed"},attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[a("tbody",[a("tr",{staticClass:"el-table__row"},[a("td",{staticClass:"el-table_1_column_1",staticStyle:{width:"36px"},attrs:{rowspan:"1",colspan:"1"}},["object"==e.type||"array"==e.type?a("div",{staticClass:"cell"},[a("i",{staticClass:"el-icon-minus"})]):t._e()]),t._v(" "),a("td",{staticClass:"el-table_1_column_1",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[t._v(t._s(s))])]),t._v(" "),a("td",{staticClass:"el-table_1_column_2",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[t._v(t._s(e.type))])]),t._v(" "),a("td",{staticClass:"el-table_1_column_3",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[a("el-checkbox",{attrs:{disabled:"true"},model:{value:e.check,callback:function(a){t.$set(e,"check",a)},expression:"itemValue.check"}})],1)]),t._v(" "),a("td",{staticClass:"el-table_1_column_3",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[t._v(t._s(e.defaultVal))])]),t._v(" "),a("td",{staticClass:"el-table_1_column_3",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[t._v(t._s(e.description))])])])])]),t._v(" "),"array"==e.type?a("table-row",{key:i+"122"+s,staticClass:"el-table__row",staticStyle:{"padding-left":"10px"},attrs:{itemData:e.items.properties}}):t._e(),t._v(" "),"object"==e.type?a("table-row",{key:i+"122"+s,staticClass:"el-table__row",staticStyle:{"padding-left":"10px"},attrs:{itemData:e.properties}}):t._e()]})],2)},staticRenderFns:[]};var c={name:"frontend-info-show",components:{tableTr:a("VU/8")(r,n,!1,function(t){a("87en")},"data-v-abec1a40",null).exports},props:{apiData:{type:[Object,Array],default:function(){return{}}}},data:function(){return{apiInfoData:{protocol:"http",interfaceUrl:"/",requestType:"post",frontParams:{type:"object",properties:{name:{originType:"query",type:"object",isBackendField:0,defaultVal:"val",isRootKey:0,rootKey:"",objectClass:"",description:"描述",check:!0,required:[],properties:{nameId:{originType:"query",type:"object",isBackendField:0,defaultVal:"val",isRootKey:0,rootKey:"",objectClass:"",description:"描述",check:!0,properties:{age:{originType:"query",type:"string",isBackendField:0,defaultVal:"val",isRootKey:0,rootKey:"",objectClass:"",description:"描述",check:!0},email:{originType:"query",type:"string",isBackendField:0,defaultVal:"val",isRootKey:0,rootKey:"",objectClass:"",description:"描述",check:!0}}}}},id:{originType:"query",type:"string",isBackendField:0,defaultVal:"val",isRootKey:0,rootKey:"",objectClass:"",description:"描述",check:!0}},required:[]}}}},watch:{apiData:function(t,e){this.apiInfoData=t}},mounted:function(){this.apiInfoData=this.apiData}},d={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"frontend-info-show border-box"},[a("el-form",{attrs:{"label-width":"104px",model:t.apiInfoData}},[a("el-form-item",{attrs:{label:"协议:"}},[t._v("\n "+t._s(t.apiInfoData.protocol)+"\n ")]),t._v(" "),a("el-form-item",{attrs:{label:"请求路径:"}},[t._v("\n "+t._s(t.apiInfoData.interfaceUrl)+"\n ")]),t._v(" "),a("el-form-item",{attrs:{label:"请求方法:"}},[t._v("\n "+t._s(t.apiInfoData.requestType)+"\n ")]),t._v(" "),a("el-form-item",{attrs:{label:"参数配置:"}},[a("div",{staticClass:"el-table el-table--fit el-table--enable-row-hover el-table--enable-row-transition",staticStyle:{width:"100%","table-layout":"fixed"}},[a("div",{staticClass:"el-table__header-wrapper"},[a("table",{staticClass:"el-table__header",staticStyle:{width:"100%"},attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[a("thead",{staticClass:"has-gutter"},[a("tr",{},[a("th",{staticClass:"el-table_1_column_1 is-leaf",staticStyle:{width:"36px"},attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"})]),t._v(" "),a("th",{staticClass:"el-table_1_column_1 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"},[t._v("参数名")])]),t._v(" "),a("th",{staticClass:"el-table_1_column_2 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"},[t._v("参数类型")])]),t._v(" "),a("th",{staticClass:"el-table_1_column_3 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"},[t._v("必选")])]),t._v(" "),a("th",{staticClass:"el-table_1_column_4 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"},[t._v("示例")])]),t._v(" "),a("th",{staticClass:"el-table_1_column_5 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"},[t._v("描述")])])])])])]),t._v(" "),a("div",{staticClass:"el-table__body-wrapper is-scrolling-none"},[a("div",{staticClass:"table-content"},[a("table-tr",{attrs:{itemData:t.apiInfoData.frontParams.properties}})],1)])])])],1)],1)},staticRenderFns:[]};var p=a("VU/8")(c,d,!1,function(t){a("7xIC")},"data-v-3e0bcf0f",null).exports,u={name:"back-table-row",props:{itemData:{type:[Object,Array],default:function(){return{}}}},data:function(){return{trData:{}}},watch:{itemData:function(t,e){this.trData=t}},mounted:function(){this.trData=this.itemData}},f={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t._l(t.itemData,function(e,s,i){return[a("table",{key:i+s+121,staticClass:"el-table__body",staticStyle:{width:"100%","table-layout":"fixed"},attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[a("tbody",[a("tr",{staticClass:"el-table__row"},[a("td",{staticClass:"el-table_1_column_1",staticStyle:{width:"36px"},attrs:{rowspan:"1",colspan:"1"}},["object"==e.type||"array"==e.type?a("div",{staticClass:"cell"},[a("i",{staticClass:"el-icon-minus"})]):t._e()]),t._v(" "),a("td",{staticClass:"el-table_1_column_1",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[t._v(t._s(s))])]),t._v(" "),a("td",{staticClass:"el-table_1_column_2",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[t._v(t._s(e.httpPath))])]),t._v(" "),a("td",{staticClass:"el-table_1_column_2",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[t._v(t._s(e.type))])])])])]),t._v(" "),"array"==e.type?a("back-table-row",{key:i+"122"+s,staticClass:"el-table__row",staticStyle:{"padding-left":"10px"},attrs:{itemData:e.items.properties}}):t._e(),t._v(" "),"object"==e.type?a("back-table-row",{key:i+"122"+s,staticClass:"el-table__row",staticStyle:{"padding-left":"10px"},attrs:{itemData:e.properties}}):t._e()]})],2)},staticRenderFns:[]};var _=a("VU/8")(u,f,!1,function(t){a("C6gy")},"data-v-60486036",null).exports,m={name:"back-table-row",props:{itemData:{type:[Object,Array],default:function(){return{}}}},data:function(){return{trData:{}}},watch:{itemData:function(t,e){this.trData=t}},mounted:function(){this.trData=this.itemData}},b={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t._l(t.itemData,function(e,s,i){return[a("table",{key:i+s+121,staticClass:"el-table__body",staticStyle:{width:"100%","table-layout":"fixed"},attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[a("tbody",[a("tr",{staticClass:"el-table__row"},[a("td",{staticClass:"el-table_1_column_1",staticStyle:{width:"36px"},attrs:{rowspan:"1",colspan:"1"}},["object"==e.type||"array"==e.type?a("div",{staticClass:"cell"},[a("i",{staticClass:"el-icon-minus"})]):t._e()]),t._v(" "),a("td",{staticClass:"el-table_1_column_1",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[t._v(t._s(s))])]),t._v(" "),a("td",{staticClass:"el-table_1_column_2",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[t._v(t._s(e.type))])]),t._v(" "),a("td",{staticClass:"el-table_1_column_3",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[t._v(t._s(e.type))])]),t._v(" "),a("td",{staticClass:"el-table_1_column_4",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[t._v(t._s(e.defaultVal))])])])])]),t._v(" "),"array"==e.type?a("back-table-row",{key:i+"122"+s,staticClass:"el-table__row child-row",attrs:{itemData:e.items.properties}}):t._e(),t._v(" "),"object"==e.type?a("back-table-row",{key:i+"122"+s,staticClass:"el-table__row child-row",attrs:{itemData:e.properties}}):t._e()]})],2)},staticRenderFns:[]};var h={name:"backend-info-show",components:{backTableTr:_,backTableRight:a("VU/8")(m,b,!1,function(t){a("6XAZ")},"data-v-249b4581",null).exports},props:{apiData:{type:[Object,Array],default:function(){return{}}}},data:function(){return{apiInfoData:{protocol:"http",interfaceUrl:"/",requestType:"post",endParams:{type:"object",properties:{name:{originType:"query",type:"object",isBackendField:0,defaultVal:"val",isRootKey:0,rootKey:"",objectClass:"",description:"描述",check:!0,required:[],properties:{nameId:{originType:"query",type:"object",isBackendField:0,defaultVal:"val",isRootKey:0,rootKey:"",objectClass:"",description:"描述",check:!0,properties:{age:{originType:"query",type:"string",isBackendField:0,defaultVal:"val",isRootKey:0,rootKey:"",objectClass:"",description:"描述",check:!0},email:{originType:"query",type:"string",isBackendField:0,defaultVal:"val",isRootKey:0,rootKey:"",objectClass:"",description:"描述",check:!0}}}}},id:{originType:"query",type:"string",isBackendField:0,defaultVal:"val",isRootKey:0,rootKey:"",objectClass:"",description:"描述",check:!0}},required:[]}}}},watch:{apiData:function(t,e){this.apiInfoData=t}},mounted:function(){this.apiInfoData=this.apiData}},v={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"backend-info-show border-box"},[a("el-form",{attrs:{"label-width":"104px",model:t.apiInfoData}},[a("el-form-item",{attrs:{label:"后端服务:"}},[t._v("\n "+t._s(t.apiInfoData.protocol)+"\n ")]),t._v(" "),a("el-form-item",{attrs:{label:"环境:"}},[t._v("\n "+t._s(t.apiInfoData.protocol)+"\n ")]),t._v(" "),a("el-form-item",{attrs:{label:"API版本号:"}},[t._v("\n "+t._s(t.apiInfoData.protocol)+"\n ")]),t._v(" "),a("el-form-item",{attrs:{label:"请求路径:"}},[t._v("\n "+t._s(t.apiInfoData.httpPath)+"\n ")]),t._v(" "),a("el-form-item",{attrs:{label:"超时时长:"}},[t._v("\n "+t._s(t.apiInfoData.timeout)+"\n ")]),t._v(" "),a("el-form-item",{attrs:{label:"参数映射:"}},[a("div",{staticClass:"table-wrap-body font-0"},[a("div",{staticClass:"el-table el-table--fit el-table--enable-row-hover el-table--enable-row-transition inline-block vertical-top",staticStyle:{width:"395px","table-layout":"fixed"}},[a("div",{staticClass:"el-table__header-wrapper"},[a("table",{staticClass:"el-table__header",staticStyle:{width:"395px","table-layout":"fixed"},attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[a("thead",{staticClass:"has-gutter"},[a("tr",{},[a("th",{staticClass:"el-table_1_column_1 is-leaf",staticStyle:{width:"36px"},attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"})]),t._v(" "),a("th",{staticClass:"el-table_1_column_1 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"},[t._v("参数名")])]),t._v(" "),a("th",{staticClass:"el-table_1_column_2 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"},[t._v("参数位置")])]),t._v(" "),a("th",{staticClass:"el-table_1_column_3 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"},[t._v("参数类型")])])])])])]),t._v(" "),a("div",{staticClass:"el-table__body-wrapper is-scrolling-none"},[a("div",{staticClass:"table-content"},[a("back-table-tr",{attrs:{itemData:t.apiInfoData.endParams.properties}})],1)])]),t._v(" "),a("div",{staticClass:"el-table el-table--fit el-table--enable-row-hover el-table--enable-row-transition inline-block vertical-top",staticStyle:{width:"683px","table-layout":"fixed"}},[a("div",{staticClass:"el-table__header-wrapper"},[a("table",{staticClass:"el-table__header",staticStyle:{width:"683px","table-layout":"fixed"},attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[a("thead",{staticClass:"has-gutter"},[a("tr",{},[a("th",{staticClass:"el-table_1_column_1 is-leaf",staticStyle:{width:"36px"},attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"})]),t._v(" "),a("th",{staticClass:"el-table_1_column_1 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"},[t._v("参数名映射")])]),t._v(" "),a("th",{staticClass:"el-table_1_column_2 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"},[t._v("参数类型映射")])]),t._v(" "),a("th",{staticClass:"el-table_1_column_3 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"},[t._v("包名")])]),t._v(" "),a("th",{staticClass:"el-table_1_column_4 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"},[t._v("参数值")])])])])])]),t._v(" "),a("div",{staticClass:"el-table__body-wrapper is-scrolling-none"},[a("div",{staticClass:"table-content"},[a("back-table-right",{attrs:{itemData:t.apiInfoData.endParams.properties}})],1)])])])])],1)],1)},staticRenderFns:[]};var y=a("VU/8")(h,v,!1,function(t){a("ynkT")},"data-v-d99694de",null).exports,g={name:"table-row",props:{itemData:{type:[Object,Array],default:function(){return{}}}},data:function(){return{trData:{protocol:"http",interfaceUrl:"/",requestType:"post",frontParams:{type:"object",properties:{name:{originType:"query",type:"object",isBackendField:0,defaultVal:"val",isRootKey:0,rootKey:"",objectClass:"",description:"描述",check:!0,required:[],properties:{nameId:{originType:"query",type:"object",isBackendField:0,defaultVal:"val",isRootKey:0,rootKey:"",objectClass:"",description:"描述",check:!0}}},id:{originType:"query",type:"string",isBackendField:0,defaultVal:"val",isRootKey:0,rootKey:"",objectClass:"",description:"描述",check:!0}},required:[]}}}},watch:{itemData:function(t,e){this.trData=t}},mounted:function(){this.trData=this.itemData}},C={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t._l(t.itemData,function(e,s,i){return[a("table",{key:i+s+121,staticClass:"el-table__body",staticStyle:{width:"100%","table-layout":"fixed"},attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[a("tbody",[a("tr",{staticClass:"el-table__row"},[a("td",{staticClass:"el-table_1_column_1",staticStyle:{width:"36px"},attrs:{rowspan:"1",colspan:"1"}},["object"==e.type||"array"==e.type?a("div",{staticClass:"cell"},[a("i",{staticClass:"el-icon-minus"})]):t._e()]),t._v(" "),a("td",{staticClass:"el-table_1_column_1",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[t._v(t._s(s))])]),t._v(" "),a("td",{staticClass:"el-table_1_column_2",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[t._v(t._s(e.type))])]),t._v(" "),a("td",{staticClass:"el-table_1_column_3",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[t._v(t._s(e.defaultVal))])])])])]),t._v(" "),"array"==e.type?a("table-row",{key:i+"122"+s,staticClass:"el-table__row",staticStyle:{"padding-left":"10px"},attrs:{itemData:e.items.properties}}):t._e(),t._v(" "),"object"==e.type?a("table-row",{key:i+"122"+s,staticClass:"el-table__row",staticStyle:{"padding-left":"10px"},attrs:{itemData:e.properties}}):t._e()]})],2)},staticRenderFns:[]};var w={name:"back-info-show",components:{backInfoTable:a("VU/8")(g,C,!1,function(t){a("12wI")},"data-v-797e5a22",null).exports},props:{apiData:{type:[Object,Array],default:function(){return{interfaceName:"1",interfaceType:"http",requestType:"GET",interfaceDescribe:"test",errCode:[{errorCode:"1",errorInfo:"添加成功"}]}}}},data:function(){return{apiInfoData:{interfaceName:"1",interfaceType:"http",requestType:"GET",interfaceDescribe:"test",errCode:[{errorCode:"1",errorInfo:"添加成功"}],resultParams:{type:"object",properties:{name:{originType:"query",type:"object",isBackendField:0,defaultVal:"val",isRootKey:0,rootKey:"",objectClass:"",description:"描述",check:!0,required:[],properties:{nameId:{originType:"query",type:"object",isBackendField:0,defaultVal:"val",isRootKey:0,rootKey:"",objectClass:"",description:"描述",check:!0,properties:{age:{originType:"query",type:"string",isBackendField:0,defaultVal:"val",isRootKey:0,rootKey:"",objectClass:"",description:"描述",check:!0},email:{originType:"query",type:"string",isBackendField:0,defaultVal:"val",isRootKey:0,rootKey:"",objectClass:"",description:"描述",check:!0}}}}},id:{originType:"query",type:"string",isBackendField:0,defaultVal:"val",isRootKey:0,rootKey:"",objectClass:"",description:"描述",check:!0}},required:[]}}}},watch:{apiData:function(t,e){this.apiInfoData=t}},mounted:function(){this.apiInfoData=this.apiData}},D={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"back-info-show border-box"},[a("el-form",{attrs:{"label-width":"104px",model:t.apiInfoData}},[a("el-form-item",{attrs:{label:"返回参数:"}},[a("div",{staticClass:"el-table el-table--fit el-table--enable-row-hover el-table--enable-row-transition",staticStyle:{width:"100%","table-layout":"fixed"}},[a("div",{staticClass:"el-table__header-wrapper"},[a("table",{staticClass:"el-table__header",staticStyle:{width:"100%"},attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[a("thead",{staticClass:"has-gutter"},[a("tr",{},[a("th",{staticClass:"el-table_1_column_1 is-leaf",staticStyle:{width:"36px"},attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"})]),t._v(" "),a("th",{staticClass:"el-table_1_column_1 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"},[t._v("参数名")])]),t._v(" "),a("th",{staticClass:"el-table_1_column_2 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"},[t._v("参数类型")])]),t._v(" "),a("th",{staticClass:"el-table_1_column_4 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"},[t._v("示例")])])])])])]),t._v(" "),a("div",{staticClass:"el-table__body-wrapper is-scrolling-none"},[a("div",{staticClass:"table-content"},[a("back-info-table",{attrs:{itemData:t.apiInfoData.resultParams.properties}})],1)])])]),t._v(" "),a("el-form-item",{attrs:{label:"错误码:"}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.apiInfoData.errCode}},[a("el-table-column",{attrs:{prop:"errorCode",label:"错误码"}}),t._v(" "),a("el-table-column",{attrs:{prop:"errorInfo",label:"错误信息"}})],1)],1),t._v(" "),a("el-form-item",{attrs:{label:"成功返回示例:"}},[a("div",{staticClass:"common-back-pre"})]),t._v(" "),a("el-form-item",{attrs:{label:"失败返回示例:"}},[a("div",{staticClass:"common-back-pre"})])],1)],1)},staticRenderFns:[]};var k=a("VU/8")(w,D,!1,function(t){a("p3pD")},"data-v-5a365dd4",null).exports,x=a("znuk"),I=a("P9l9"),S=a("LlAa"),T=a("TUB1"),j={name:"go-history",props:{historyShow:{type:Boolean,default:!1},apiData:{type:[Object,Array],default:function(){return{}}}},data:function(){return{customDialog:!1,selectVersion:"",tableData:[{interfaceVersionId:"1",version:"123",status:"",proxyType:"",defaultFlag:!1,sceneCode:"",sceneName:"测试",remark:"test",createTime:1564455643252}],pageSize:20,currentPage:1,totalCount:0}},methods:{handleClose:function(t){t(),this.hideDialog()},customCancel:function(){this.hideDialog()},hideDialog:function(){this.customDialog=!1,this.$emit("hideHistoryDialog")},customConfirm:function(){if(!this.selectVersion)return this.$message.error({duration:1e3,message:"请选择回退版本"}),!1;this.postEditData()},postEditData:function(){var t=this,e={interfaceVersionId:t.apiData.interfaceVersionId,target:t.selectVersion};Object(I.a)("/gateway-manage/reset-api",e).then(function(e){var a=e.data;if("0000"==a.code)return T.a.showmsg("回退成功","success"),void t.setData();S.a.errorInfo(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},setData:function(t){this.$emit("hideHistoryDialog")},handleSizeChange:function(t){this.pageSize=t,this.getData()},handleCurrentChange:function(t){this.currentPage=t,this.getData()},handleShow:function(t,e){this.$router.push("/apiListManageShow")},getData:function(){var t=this,e={pageNum:t.currentPage,pageSize:t.pageSize,sceneCode:t.apiData.sceneCode,interfaceId:t.apiData.interfaceId};Object(I.a)("/gateway-manage/page-api-publish-record",e).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.result||[],void(t.totalCount=a.result.totalCount);S.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{$route:{handler:function(t,e){},deep:!0},historyShow:function(t,e){this.customDialog=t}},mounted:function(){this.customDialog=this.historyShow}},V={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"show",rawName:"v-show",value:t.customDialog,expression:"customDialog"}]},[a("el-dialog",{staticClass:"edit-dialog",attrs:{title:"选择回退版本",visible:t.customDialog,width:"600px","before-close":t.handleClose},on:{"update:visible":function(e){t.customDialog=e}}},[a("div",{staticClass:"table-wrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData}},[a("el-table-column",{attrs:{label:"","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-radio",{attrs:{label:e.row.interfaceVersionId},model:{value:t.selectVersion,callback:function(e){t.selectVersion=e},expression:"selectVersion"}})]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"version",label:"发布版本","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{label:"发布备注","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.remark)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"发布时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime)))]),t._v(" "),a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){t.handleShow(e.$index,e.row)}}},[t._v("查看")])]}}])})],1),t._v(" "),t.totalCount?a("div",{staticClass:"pagination text-right m-t-14"},[a("el-pagination",{attrs:{small:"","page-size":t.pageSize,"current-page":t.currentPage,layout:"prev, pager, next",total:t.totalCount},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1),t._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{"padding-bottom":"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.customCancel}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.customConfirm("syncForm")}}},[t._v("确 定")])],1)])],1)},staticRenderFns:[]};var q=a("VU/8")(j,V,!1,function(t){a("S7Op")},"data-v-0be74abb",null).exports,F={name:"api-version-show",components:{baseInfoShow:l,frontendInfoShow:p,backendInfoShow:y,backInfoShow:k,publishSet:x.a,goHistory:q},data:function(){return{apiData:{interfaceId:"nisi exercitation ipsum et dolore",interfaceName:"查询",interfaceGroupId:"1",interfaceUrl:"ex laborum Excepteur aliquip labore",interfaceDescribe:"test",projectId:"irure ",optType:"exercitation",sucReturn:"ex Excepteur",errReturn:"culpa nisi magna consequat velit",errCode:"nostrud proident ",frontParams:"id labore",endParams:"deserunt Ut",target:78473123.86374778,requestType:"POST",protocol:"http",version:"elit",interfaceType:"HTTP",dubboMethod:"in ess",dubboInterface:"ad",httpPath:"commodo minim ex sunt",proxyCode:"amet proident fugiat anim commodo",resultParams:"veniam dolore Ut",backendRequestType:"est laborum cillum commodo mini",timeout:43087112},activeInfo:0,editRow:{},publishShow:!1,historyShow:!1}},methods:{handlePublish:function(t,e){this.publishShow=!0,this.editRow=this.apiData},hidePublishDialog:function(){this.publishShow=!1,this.editRow={}},handleGoHistory:function(){this.historyShow=!0},hideHistoryDialog:function(){this.historyShow=!1},handleDel:function(){var t=this;t.$confirm("确认删除此版本吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){t.postDelData()}).catch(function(){})},postDelData:function(){var t=this,e={interfaceVerionId:t.apiData.interfaceVerionId};Object(I.a)("/gateway-manage/delete-api-version",e).then(function(e){var a=e.data;if("0000"==a.code)return T.a.showmsg("删除成功","success"),void t.$router.push("/apiListManage");S.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleGoBack:function(){var t=this;t.$confirm("确认将【当前版本】回滚到【已发布版本号】吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){t.postGoBack()}).catch(function(){})},postGoBack:function(){var t=this,e={interfaceVerionId:t.apiData.interfaceVerionId};Object(I.a)("/gateway-manage/rollback-api",e).then(function(t){var e=t.data;"0000"!=e.code?S.a.errorMsg(e):T.a.showmsg("回滚成功","success")}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},goAuthor:function(t,e){this.activeInfo=e,this.$el.querySelector(t).scrollIntoView()},getData:function(){var t=this,e={search:t.searchValue,pageNum:t.currentPage,pageSize:t.pageSize,sceneCode:t.sceneCode,interfaceId:t.$route.query.interfaceId};Object(I.a)("/gateway-manage/page-proxy",e).then(function(e){var a=e.data;if("0000"==a.code)return t.tableData=a.result.result||[],void(t.totalCount=a.result.totalCount);S.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},init:function(){document.getElementsByClassName("api-body-content")[0].addEventListener("scroll",this.scroll)},scroll:function(){var t=this,e=document.querySelectorAll(".api-body-content")[0].scrollTop;document.querySelectorAll(".info-wrap").forEach(function(a,s){e>=a.offsetTop&&(t.activeInfo=s)})}},mounted:function(){var t=this;t.$nextTick(function(){t.init()})},destroyed:function(){document.getElementsByClassName("api-body-content")[0].removeEventListener("scroll",this.scroll)}},R={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"api-version-content border-box"},[a("div",{staticClass:"api-version-body"},[a("div",{staticClass:"operate-btns"},[a("el-button",{attrs:{type:"primary",plain:""},on:{click:t.handlePublish}},[t._v("发布")]),t._v(" "),a("el-button",{attrs:{type:"primary",plain:""},on:{click:t.handleDel}},[t._v("删除")]),t._v(" "),a("el-button",{attrs:{type:"primary",plain:""},on:{click:t.handleGoHistory}},[t._v("回退")]),t._v(" "),a("el-button",{attrs:{type:"primary",plain:""},on:{click:t.handleGoBack}},[t._v("回滚")])],1),t._v(" "),a("div",{staticClass:"anchor-wrap"},[a("div",{staticClass:"el-tabs el-tabs--right"},[a("div",{staticClass:"el-tabs__header is-right"},[a("div",{staticClass:"el-tabs__nav-wrap is-right"},[a("div",{staticClass:"el-tabs__nav-scroll"},[a("div",{staticClass:"el-tabs__nav is-right",staticStyle:{transform:"translateY(0px)"},attrs:{role:"tablist"}},[a("div",{staticClass:"el-tabs__active-bar is-right",style:{transform:"translateY("+24*t.activeInfo+"px)",height:"24px"}}),t._v(" "),a("div",{class:["el-tabs__item h-24 is-right",0==t.activeInfo?"is-active":""],attrs:{id:"tab-0"},on:{click:function(e){t.goAuthor("#base",0)}}},[t._v("基础配置")]),t._v(" "),a("div",{class:["el-tabs__item h-24 is-right",1==t.activeInfo?"is-active":""],attrs:{id:"tab-1"},on:{click:function(e){t.goAuthor("#frontend",1)}}},[t._v("前端配置")]),t._v(" "),a("div",{class:["el-tabs__item h-24 is-right",2==t.activeInfo?"is-active":""],attrs:{id:"tab-2"},on:{click:function(e){t.goAuthor("#backend",2)}}},[t._v("后端配置")]),t._v(" "),a("div",{class:["el-tabs__item h-24 is-right",3==t.activeInfo?"is-active":""],attrs:{id:"tab-3"},on:{click:function(e){t.goAuthor("#result",3)}}},[t._v("返回结果")])])])])])])]),t._v(" "),a("div",{staticClass:"base-info-wrap info-wrap",attrs:{id:"base"}},[a("div",{staticClass:"commont-info-title font-14 color-303133"},[t._v("基础信息")]),t._v(" "),a("base-info-show",{attrs:{apiData:t.apiData}})],1),t._v(" "),a("div",{staticClass:"frontend-set-wrap info-wrap",attrs:{id:"frontend"}},[a("div",{staticClass:"commont-info-title font-14 color-303133 m-t-47"},[t._v("前端配置")]),t._v(" "),a("frontend-info-show")],1),t._v(" "),a("div",{staticClass:"backend-set-wrap info-wrap",attrs:{id:"backend"}},[a("div",{staticClass:"commont-info-title font-14 color-303133 m-t-47"},[t._v("后端配置")]),t._v(" "),a("backend-info-show")],1),t._v(" "),a("div",{staticClass:"back-result-wrap info-wrap",attrs:{id:"result"}},[a("div",{staticClass:"commont-info-title font-14 color-303133 m-t-47"},[t._v("返回结果")]),t._v(" "),a("back-info-show")],1)]),t._v(" "),a("go-history",{attrs:{apiData:t.apiData,historyShow:t.historyShow},on:{hideHistoryDialog:t.hideHistoryDialog}}),t._v(" "),a("publish-set",{attrs:{editRow:t.editRow,publishShow:t.publishShow},on:{hidePublishDialog:t.hidePublishDialog}})],1)},staticRenderFns:[]};var P=a("VU/8")(F,R,!1,function(t){a("wwUV")},"data-v-d0db18d6",null).exports,K={name:"apiListManageShow",components:{navBread:s.a,apiVersionShow:P},data:function(){return{navPath:[{name:"API管理",path:"/apiProgram"},{name:"API列表",path:"/apiList"},{name:"管理",path:"/apiListManage"},{name:"查看",path:""}]}},methods:{getData:function(){var t=this,e={project:t.repProjectName,router:t.pathName,requestProject:t.repProjectName};Object(I.a)("/haoban-manage-web/menu-detail",e).then(function(e){var a=e.data;if(1==a.errorCode)return a.result?void 0:void t.$message.error({duration:1e3,message:"暂无数据"});t.$message.error({duration:1e3,message:a.message})}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{$route:{handler:function(t,e){},deep:!0}},mounted:function(){this.$emit("showTab",22)}},$={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"api-body-content border-box"},[e("div",{staticClass:"common-nav"},[e("nav-bread",{attrs:{navPath:this.navPath}})],1),this._v(" "),e("div",{staticClass:"api-body-main common-body-main border-box",staticStyle:{height:"auto"}},[e("div",{staticClass:"api-main-content border-box"},[e("api-version-show")],1)])])},staticRenderFns:[]};var B=a("VU/8")(K,$,!1,function(t){a("/ZYZ")},"data-v-aace81b4",null);e.default=B.exports},vrRu:function(t,e){},wwUV:function(t,e){},ynkT:function(t,e){},znuk:function(t,e,a){"use strict";var s=a("mvHQ"),i=a.n(s),o=a("Kkt8"),l=a("P9l9"),r=a("TUB1"),n=a("LlAa"),c={name:"publish-set",components:{limitTextarea:o.a},props:{publishShow:{type:Boolean,default:!1},editRow:{type:Object,default:function(){return{interfaceVersionId:"",version:"",status:"",description:"",proxyType:"",defaultFlag:!1,sceneCode:"",sceneName:"",remark:""}}}},data:function(){return{customDialog:!1,formData:{interfaceVersionId:"",version:"",status:"",description:"",proxyType:"",defaultFlag:!1,sceneCode:"",sceneName:"",remark:""},rules:{}}},methods:{handleClose:function(t){t(),this.hideDialog()},customCancel:function(){this.hideDialog()},hideDialog:function(){this.customDialog=!1,this.$emit("hidePublishDialog")},customConfirm:function(t){var e=this;e.$refs[t].validate(function(t){if(!t)return!1;e.postEditData()})},postEditData:function(){var t=this,e={interfaceVersionId:t.formData.interfaceVersionId,defaultFlag:t.formData.defaultFlag?"1":"0",remark:t.formData.remark};Object(l.a)("/gateway-manage/publish-api",e).then(function(e){var a=e.data;if("0000"==a.code)return r.a.showmsg("发布成功","success"),void t.setData();n.a.errorInfo(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},setData:function(t){this.$emit("hidePublishDialog")}},watch:{publishShow:function(t,e){this.customDialog=t},editRow:function(t,e){this.formData=JSON.parse(i()(t)),this.formData.defaultFlag=1==t.defaultFlag}},mounted:function(){this.customDialog=this.publishShow,this.formData=JSON.parse(i()(this.editRow)),this.formData.defaultFlag=1==this.editRow.defaultFlag}},d={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"show",rawName:"v-show",value:t.customDialog,expression:"customDialog"}]},[a("el-dialog",{staticClass:"edit-dialog",attrs:{title:"发布",visible:t.customDialog,width:"600px","before-close":t.handleClose},on:{"update:visible":function(e){t.customDialog=e}}},[a("div",{staticClass:"edit-dialog-body"},[a("el-form",{ref:"publishForm",attrs:{model:t.formData,"label-width":"160px",rules:t.rules}},[a("el-form-item",{attrs:{label:"API名称:"}},[t._v("\n "+t._s(t.$route.query.interfaceName)+"\n ")]),t._v(" "),a("el-form-item",{attrs:{label:"发布环境:"}},[t._v("\n "+t._s(t.formData.sceneName)+"\n ")]),t._v(" "),a("el-form-item",{attrs:{label:"设置为默认版本:"}},[a("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:t.formData.defaultFlag,callback:function(e){t.$set(t.formData,"defaultFlag",e)},expression:"formData.defaultFlag"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"备注:"}},[a("limit-textarea",{attrs:{inputWidth:370,inputValue:t.formData.remark,holder:"请输入备注内容",getByType:"word",maxLength:100},on:{"update:inputValue":function(e){t.$set(t.formData,"remark",e)}}})],1)],1)],1),t._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{"padding-bottom":"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.customCancel}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.customConfirm("publishForm")}}},[t._v("发 布")])],1)])],1)},staticRenderFns:[]};var p=a("VU/8")(c,d,!1,function(t){a("fZOT")},"data-v-1c124c15",null);e.a=p.exports}});
\ No newline at end of file
webpackJsonp([2],{"+8wL":function(t,e){},"/ZYZ":function(t,e){},"12wI":function(t,e){},"6XAZ":function(t,e){},"6rTp":function(t,e){},"7xIC":function(t,e){},"87en":function(t,e){},C6gy:function(t,e){},RE2v:function(t,e){},p3pD:function(t,e){},r4m9:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("319J"),i={name:"base-info-show",props:{apiData:{type:[Object,Array],default:function(){return{}}}},data:function(){return{apiInfoData:{interfaceName:"1",interfaceType:"http",requestType:"GET",interfaceDescribe:"test"}}},watch:{apiData:function(t,e){this.apiInfoData=t}},mounted:function(){this.apiInfoData=this.apiData}},o={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"base-info-show border-box"},[a("el-form",{attrs:{"label-width":"104px",model:t.apiInfoData}},[a("el-form-item",{attrs:{label:"API名称:"}},[t._v("\n "+t._s(t.apiInfoData.interfaceName)+"\n ")]),t._v(" "),a("el-form-item",{attrs:{label:"API类型:"}},[t._v("\n "+t._s(t.apiInfoData.interfaceType)+"\n ")]),t._v(" "),a("el-form-item",{attrs:{label:"访问类型:"}},[t._v("\n "+t._s(t.apiInfoData.requestType)+"\n ")]),t._v(" "),a("el-form-item",{attrs:{label:"描述:"}},[t._v("\n "+t._s(t.apiInfoData.interfaceDescribe)+"\n ")])],1)],1)},staticRenderFns:[]};var l=a("VU/8")(i,o,!1,function(t){a("vrRu")},"data-v-082f54d8",null).exports,r={name:"table-row",props:{itemData:{type:[Object,Array],default:function(){return{}}}},data:function(){return{trData:{protocol:"http",interfaceUrl:"/",requestType:"post",frontParams:{type:"object",properties:{name:{originType:"query",type:"object",isBackendField:0,defaultVal:"val",isRootKey:0,rootKey:"",objectClass:"",description:"描述",check:!0,required:[],properties:{nameId:{originType:"query",type:"object",isBackendField:0,defaultVal:"val",isRootKey:0,rootKey:"",objectClass:"",description:"描述",check:!0}}},id:{originType:"query",type:"string",isBackendField:0,defaultVal:"val",isRootKey:0,rootKey:"",objectClass:"",description:"描述",check:!0}},required:[]}}}},watch:{itemData:function(t,e){this.trData=t}},mounted:function(){this.trData=this.itemData}},n={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t._l(t.itemData,function(e,s,i){return[a("table",{key:i+s+121,staticClass:"el-table__body",staticStyle:{width:"100%","table-layout":"fixed"},attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[a("tbody",[a("tr",{staticClass:"el-table__row"},[a("td",{staticClass:"el-table_1_column_1",staticStyle:{width:"36px"},attrs:{rowspan:"1",colspan:"1"}},["object"==e.type||"array"==e.type?a("div",{staticClass:"cell"},[a("i",{staticClass:"el-icon-minus"})]):t._e()]),t._v(" "),a("td",{staticClass:"el-table_1_column_1",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[t._v(t._s(s))])]),t._v(" "),a("td",{staticClass:"el-table_1_column_2",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[t._v(t._s(e.type))])]),t._v(" "),a("td",{staticClass:"el-table_1_column_3",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[a("el-checkbox",{attrs:{disabled:"true"},model:{value:e.check,callback:function(a){t.$set(e,"check",a)},expression:"itemValue.check"}})],1)]),t._v(" "),a("td",{staticClass:"el-table_1_column_3",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[t._v(t._s(e.defaultVal))])]),t._v(" "),a("td",{staticClass:"el-table_1_column_3",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[t._v(t._s(e.description))])])])])]),t._v(" "),"array"==e.type?a("table-row",{key:i+"122"+s,staticClass:"el-table__row",staticStyle:{"padding-left":"10px"},attrs:{itemData:e.items.properties}}):t._e(),t._v(" "),"object"==e.type?a("table-row",{key:i+"122"+s,staticClass:"el-table__row",staticStyle:{"padding-left":"10px"},attrs:{itemData:e.properties}}):t._e()]})],2)},staticRenderFns:[]};var c={name:"frontend-info-show",components:{tableTr:a("VU/8")(r,n,!1,function(t){a("87en")},"data-v-abec1a40",null).exports},props:{apiData:{type:[Object,Array],default:function(){return{}}}},data:function(){return{apiInfoData:{protocol:"http",interfaceUrl:"/",requestType:"post",frontParams:{type:"object",properties:{name:{originType:"query",type:"object",isBackendField:0,defaultVal:"val",isRootKey:0,rootKey:"",objectClass:"",description:"描述",check:!0,required:[],properties:{nameId:{originType:"query",type:"object",isBackendField:0,defaultVal:"val",isRootKey:0,rootKey:"",objectClass:"",description:"描述",check:!0,properties:{age:{originType:"query",type:"string",isBackendField:0,defaultVal:"val",isRootKey:0,rootKey:"",objectClass:"",description:"描述",check:!0},email:{originType:"query",type:"string",isBackendField:0,defaultVal:"val",isRootKey:0,rootKey:"",objectClass:"",description:"描述",check:!0}}}}},id:{originType:"query",type:"string",isBackendField:0,defaultVal:"val",isRootKey:0,rootKey:"",objectClass:"",description:"描述",check:!0}},required:[]}}}},watch:{apiData:function(t,e){this.apiInfoData=t}},mounted:function(){this.apiInfoData=this.apiData}},d={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"frontend-info-show border-box"},[a("el-form",{attrs:{"label-width":"104px",model:t.apiInfoData}},[a("el-form-item",{attrs:{label:"协议:"}},[t._v("\n "+t._s(t.apiInfoData.protocol)+"\n ")]),t._v(" "),a("el-form-item",{attrs:{label:"请求路径:"}},[t._v("\n "+t._s(t.apiInfoData.interfaceUrl)+"\n ")]),t._v(" "),a("el-form-item",{attrs:{label:"请求方法:"}},[t._v("\n "+t._s(t.apiInfoData.requestType)+"\n ")]),t._v(" "),a("el-form-item",{attrs:{label:"参数配置:"}},[a("div",{staticClass:"el-table el-table--fit el-table--enable-row-hover el-table--enable-row-transition",staticStyle:{width:"100%","table-layout":"fixed"}},[a("div",{staticClass:"el-table__header-wrapper"},[a("table",{staticClass:"el-table__header",staticStyle:{width:"100%"},attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[a("thead",{staticClass:"has-gutter"},[a("tr",{},[a("th",{staticClass:"el-table_1_column_1 is-leaf",staticStyle:{width:"36px"},attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"})]),t._v(" "),a("th",{staticClass:"el-table_1_column_1 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"},[t._v("参数名")])]),t._v(" "),a("th",{staticClass:"el-table_1_column_2 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"},[t._v("参数类型")])]),t._v(" "),a("th",{staticClass:"el-table_1_column_3 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"},[t._v("必选")])]),t._v(" "),a("th",{staticClass:"el-table_1_column_4 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"},[t._v("示例")])]),t._v(" "),a("th",{staticClass:"el-table_1_column_5 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"},[t._v("描述")])])])])])]),t._v(" "),a("div",{staticClass:"el-table__body-wrapper is-scrolling-none"},[a("div",{staticClass:"table-content"},[a("table-tr",{attrs:{itemData:t.apiInfoData.frontParams.properties}})],1)])])])],1)],1)},staticRenderFns:[]};var p=a("VU/8")(c,d,!1,function(t){a("7xIC")},"data-v-3e0bcf0f",null).exports,u={name:"back-table-row",props:{itemData:{type:[Object,Array],default:function(){return{}}}},data:function(){return{trData:{}}},watch:{itemData:function(t,e){this.trData=t}},mounted:function(){this.trData=this.itemData}},f={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t._l(t.itemData,function(e,s,i){return[a("table",{key:i+s+121,staticClass:"el-table__body",staticStyle:{width:"100%","table-layout":"fixed"},attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[a("tbody",[a("tr",{staticClass:"el-table__row"},[a("td",{staticClass:"el-table_1_column_1",staticStyle:{width:"36px"},attrs:{rowspan:"1",colspan:"1"}},["object"==e.type||"array"==e.type?a("div",{staticClass:"cell"},[a("i",{staticClass:"el-icon-minus"})]):t._e()]),t._v(" "),a("td",{staticClass:"el-table_1_column_1",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[t._v(t._s(s))])]),t._v(" "),a("td",{staticClass:"el-table_1_column_2",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[t._v(t._s(e.httpPath))])]),t._v(" "),a("td",{staticClass:"el-table_1_column_2",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[t._v(t._s(e.type))])])])])]),t._v(" "),"array"==e.type?a("back-table-row",{key:i+"122"+s,staticClass:"el-table__row",staticStyle:{"padding-left":"10px"},attrs:{itemData:e.items.properties}}):t._e(),t._v(" "),"object"==e.type?a("back-table-row",{key:i+"122"+s,staticClass:"el-table__row",staticStyle:{"padding-left":"10px"},attrs:{itemData:e.properties}}):t._e()]})],2)},staticRenderFns:[]};var _=a("VU/8")(u,f,!1,function(t){a("C6gy")},"data-v-60486036",null).exports,m={name:"back-table-row",props:{itemData:{type:[Object,Array],default:function(){return{}}}},data:function(){return{trData:{}}},watch:{itemData:function(t,e){this.trData=t}},mounted:function(){this.trData=this.itemData}},b={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t._l(t.itemData,function(e,s,i){return[a("table",{key:i+s+121,staticClass:"el-table__body",staticStyle:{width:"100%","table-layout":"fixed"},attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[a("tbody",[a("tr",{staticClass:"el-table__row"},[a("td",{staticClass:"el-table_1_column_1",staticStyle:{width:"36px"},attrs:{rowspan:"1",colspan:"1"}},["object"==e.type||"array"==e.type?a("div",{staticClass:"cell"},[a("i",{staticClass:"el-icon-minus"})]):t._e()]),t._v(" "),a("td",{staticClass:"el-table_1_column_1",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[t._v(t._s(s))])]),t._v(" "),a("td",{staticClass:"el-table_1_column_2",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[t._v(t._s(e.type))])]),t._v(" "),a("td",{staticClass:"el-table_1_column_3",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[t._v(t._s(e.type))])]),t._v(" "),a("td",{staticClass:"el-table_1_column_4",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[t._v(t._s(e.defaultVal))])])])])]),t._v(" "),"array"==e.type?a("back-table-row",{key:i+"122"+s,staticClass:"el-table__row child-row",attrs:{itemData:e.items.properties}}):t._e(),t._v(" "),"object"==e.type?a("back-table-row",{key:i+"122"+s,staticClass:"el-table__row child-row",attrs:{itemData:e.properties}}):t._e()]})],2)},staticRenderFns:[]};var v={name:"backend-info-show",components:{backTableTr:_,backTableRight:a("VU/8")(m,b,!1,function(t){a("6XAZ")},"data-v-249b4581",null).exports},props:{apiData:{type:[Object,Array],default:function(){return{}}}},data:function(){return{apiInfoData:{protocol:"http",interfaceUrl:"/",requestType:"post",endParams:{type:"object",properties:{name:{originType:"query",type:"object",isBackendField:0,defaultVal:"val",isRootKey:0,rootKey:"",objectClass:"",description:"描述",check:!0,required:[],properties:{nameId:{originType:"query",type:"object",isBackendField:0,defaultVal:"val",isRootKey:0,rootKey:"",objectClass:"",description:"描述",check:!0,properties:{age:{originType:"query",type:"string",isBackendField:0,defaultVal:"val",isRootKey:0,rootKey:"",objectClass:"",description:"描述",check:!0},email:{originType:"query",type:"string",isBackendField:0,defaultVal:"val",isRootKey:0,rootKey:"",objectClass:"",description:"描述",check:!0}}}}},id:{originType:"query",type:"string",isBackendField:0,defaultVal:"val",isRootKey:0,rootKey:"",objectClass:"",description:"描述",check:!0}},required:[]}}}},watch:{apiData:function(t,e){this.apiInfoData=t}},mounted:function(){this.apiInfoData=this.apiData}},h={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"backend-info-show border-box"},[a("el-form",{attrs:{"label-width":"104px",model:t.apiInfoData}},[a("el-form-item",{attrs:{label:"后端服务:"}},[t._v("\n "+t._s(t.apiInfoData.protocol)+"\n ")]),t._v(" "),a("el-form-item",{attrs:{label:"环境:"}},[t._v("\n "+t._s(t.apiInfoData.protocol)+"\n ")]),t._v(" "),a("el-form-item",{attrs:{label:"API版本号:"}},[t._v("\n "+t._s(t.apiInfoData.protocol)+"\n ")]),t._v(" "),a("el-form-item",{attrs:{label:"请求路径:"}},[t._v("\n "+t._s(t.apiInfoData.httpPath)+"\n ")]),t._v(" "),a("el-form-item",{attrs:{label:"超时时长:"}},[t._v("\n "+t._s(t.apiInfoData.timeout)+"\n ")]),t._v(" "),a("el-form-item",{attrs:{label:"参数映射:"}},[a("div",{staticClass:"table-wrap-body font-0"},[a("div",{staticClass:"el-table el-table--fit el-table--enable-row-hover el-table--enable-row-transition inline-block vertical-top",staticStyle:{width:"395px","table-layout":"fixed"}},[a("div",{staticClass:"el-table__header-wrapper"},[a("table",{staticClass:"el-table__header",staticStyle:{width:"395px","table-layout":"fixed"},attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[a("thead",{staticClass:"has-gutter"},[a("tr",{},[a("th",{staticClass:"el-table_1_column_1 is-leaf",staticStyle:{width:"36px"},attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"})]),t._v(" "),a("th",{staticClass:"el-table_1_column_1 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"},[t._v("参数名")])]),t._v(" "),a("th",{staticClass:"el-table_1_column_2 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"},[t._v("参数位置")])]),t._v(" "),a("th",{staticClass:"el-table_1_column_3 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"},[t._v("参数类型")])])])])])]),t._v(" "),a("div",{staticClass:"el-table__body-wrapper is-scrolling-none"},[a("div",{staticClass:"table-content"},[a("back-table-tr",{attrs:{itemData:t.apiInfoData.endParams.properties}})],1)])]),t._v(" "),a("div",{staticClass:"el-table el-table--fit el-table--enable-row-hover el-table--enable-row-transition inline-block vertical-top",staticStyle:{width:"683px","table-layout":"fixed"}},[a("div",{staticClass:"el-table__header-wrapper"},[a("table",{staticClass:"el-table__header",staticStyle:{width:"683px","table-layout":"fixed"},attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[a("thead",{staticClass:"has-gutter"},[a("tr",{},[a("th",{staticClass:"el-table_1_column_1 is-leaf",staticStyle:{width:"36px"},attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"})]),t._v(" "),a("th",{staticClass:"el-table_1_column_1 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"},[t._v("参数名映射")])]),t._v(" "),a("th",{staticClass:"el-table_1_column_2 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"},[t._v("参数类型映射")])]),t._v(" "),a("th",{staticClass:"el-table_1_column_3 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"},[t._v("包名")])]),t._v(" "),a("th",{staticClass:"el-table_1_column_4 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"},[t._v("参数值")])])])])])]),t._v(" "),a("div",{staticClass:"el-table__body-wrapper is-scrolling-none"},[a("div",{staticClass:"table-content"},[a("back-table-right",{attrs:{itemData:t.apiInfoData.endParams.properties}})],1)])])])])],1)],1)},staticRenderFns:[]};var y=a("VU/8")(v,h,!1,function(t){a("ynkT")},"data-v-d99694de",null).exports,g={name:"table-row",props:{itemData:{type:[Object,Array],default:function(){return{}}}},data:function(){return{trData:{protocol:"http",interfaceUrl:"/",requestType:"post",frontParams:{type:"object",properties:{name:{originType:"query",type:"object",isBackendField:0,defaultVal:"val",isRootKey:0,rootKey:"",objectClass:"",description:"描述",check:!0,required:[],properties:{nameId:{originType:"query",type:"object",isBackendField:0,defaultVal:"val",isRootKey:0,rootKey:"",objectClass:"",description:"描述",check:!0}}},id:{originType:"query",type:"string",isBackendField:0,defaultVal:"val",isRootKey:0,rootKey:"",objectClass:"",description:"描述",check:!0}},required:[]}}}},watch:{itemData:function(t,e){this.trData=t}},mounted:function(){this.trData=this.itemData}},C={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t._l(t.itemData,function(e,s,i){return[a("table",{key:i+s+121,staticClass:"el-table__body",staticStyle:{width:"100%","table-layout":"fixed"},attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[a("tbody",[a("tr",{staticClass:"el-table__row"},[a("td",{staticClass:"el-table_1_column_1",staticStyle:{width:"36px"},attrs:{rowspan:"1",colspan:"1"}},["object"==e.type||"array"==e.type?a("div",{staticClass:"cell"},[a("i",{staticClass:"el-icon-minus"})]):t._e()]),t._v(" "),a("td",{staticClass:"el-table_1_column_1",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[t._v(t._s(s))])]),t._v(" "),a("td",{staticClass:"el-table_1_column_2",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[t._v(t._s(e.type))])]),t._v(" "),a("td",{staticClass:"el-table_1_column_3",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[t._v(t._s(e.defaultVal))])])])])]),t._v(" "),"array"==e.type?a("table-row",{key:i+"122"+s,staticClass:"el-table__row",staticStyle:{"padding-left":"10px"},attrs:{itemData:e.items.properties}}):t._e(),t._v(" "),"object"==e.type?a("table-row",{key:i+"122"+s,staticClass:"el-table__row",staticStyle:{"padding-left":"10px"},attrs:{itemData:e.properties}}):t._e()]})],2)},staticRenderFns:[]};var w={name:"back-info-show",components:{backInfoTable:a("VU/8")(g,C,!1,function(t){a("12wI")},"data-v-797e5a22",null).exports},props:{apiData:{type:[Object,Array],default:function(){return{interfaceName:"1",interfaceType:"http",requestType:"GET",interfaceDescribe:"test",errCode:[{errorCode:"1",errorInfo:"添加成功"}]}}}},data:function(){return{apiInfoData:{interfaceName:"1",interfaceType:"http",requestType:"GET",interfaceDescribe:"test",errCode:[{errorCode:"1",errorInfo:"添加成功"}],resultParams:{type:"object",properties:{name:{originType:"query",type:"object",isBackendField:0,defaultVal:"val",isRootKey:0,rootKey:"",objectClass:"",description:"描述",check:!0,required:[],properties:{nameId:{originType:"query",type:"object",isBackendField:0,defaultVal:"val",isRootKey:0,rootKey:"",objectClass:"",description:"描述",check:!0,properties:{age:{originType:"query",type:"string",isBackendField:0,defaultVal:"val",isRootKey:0,rootKey:"",objectClass:"",description:"描述",check:!0},email:{originType:"query",type:"string",isBackendField:0,defaultVal:"val",isRootKey:0,rootKey:"",objectClass:"",description:"描述",check:!0}}}}},id:{originType:"query",type:"string",isBackendField:0,defaultVal:"val",isRootKey:0,rootKey:"",objectClass:"",description:"描述",check:!0}},required:[]}}}},watch:{apiData:function(t,e){this.apiInfoData=t}},mounted:function(){this.apiInfoData=this.apiData}},D={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"back-info-show border-box"},[a("el-form",{attrs:{"label-width":"104px",model:t.apiInfoData}},[a("el-form-item",{attrs:{label:"返回参数:"}},[a("div",{staticClass:"el-table el-table--fit el-table--enable-row-hover el-table--enable-row-transition",staticStyle:{width:"100%","table-layout":"fixed"}},[a("div",{staticClass:"el-table__header-wrapper"},[a("table",{staticClass:"el-table__header",staticStyle:{width:"100%"},attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[a("thead",{staticClass:"has-gutter"},[a("tr",{},[a("th",{staticClass:"el-table_1_column_1 is-leaf",staticStyle:{width:"36px"},attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"})]),t._v(" "),a("th",{staticClass:"el-table_1_column_1 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"},[t._v("参数名")])]),t._v(" "),a("th",{staticClass:"el-table_1_column_2 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"},[t._v("参数类型")])]),t._v(" "),a("th",{staticClass:"el-table_1_column_4 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"},[t._v("示例")])])])])])]),t._v(" "),a("div",{staticClass:"el-table__body-wrapper is-scrolling-none"},[a("div",{staticClass:"table-content"},[a("back-info-table",{attrs:{itemData:t.apiInfoData.resultParams.properties}})],1)])])]),t._v(" "),a("el-form-item",{attrs:{label:"错误码:"}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.apiInfoData.errCode}},[a("el-table-column",{attrs:{prop:"errorCode",label:"错误码"}}),t._v(" "),a("el-table-column",{attrs:{prop:"errorInfo",label:"错误信息"}})],1)],1),t._v(" "),a("el-form-item",{attrs:{label:"成功返回示例:"}},[a("div",{staticClass:"common-back-pre"})]),t._v(" "),a("el-form-item",{attrs:{label:"失败返回示例:"}},[a("div",{staticClass:"common-back-pre"})])],1)],1)},staticRenderFns:[]};var k=a("VU/8")(w,D,!1,function(t){a("p3pD")},"data-v-5a365dd4",null).exports,x=a("znuk"),I=a("P9l9"),S=a("LlAa"),T=a("TUB1"),j={name:"go-history",props:{historyShow:{type:Boolean,default:!1},apiData:{type:[Object,Array],default:function(){return{}}}},data:function(){return{customDialog:!1,selectVersion:"",tableData:[{interfaceVersionId:"1",version:"123",status:"",proxyType:"",defaultFlag:!1,sceneCode:"",sceneName:"测试",remark:"test",createTime:1564455643252}],pageSize:20,currentPage:1,totalCount:0}},methods:{handleClose:function(t){t(),this.hideDialog()},customCancel:function(){this.hideDialog()},hideDialog:function(){this.customDialog=!1,this.$emit("hideHistoryDialog")},customConfirm:function(){if(!this.selectVersion)return this.$message.error({duration:1e3,message:"请选择回退版本"}),!1;this.postEditData()},postEditData:function(){var t=this,e={interfaceVersionId:t.apiData.interfaceVersionId,target:t.selectVersion};Object(I.a)("/gateway-manage/reset-api",e).then(function(e){var a=e.data;if(1==a.code)return T.a.showmsg("回退成功","success"),void t.setData();S.a.errorInfo(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},setData:function(t){this.$emit("hideHistoryDialog")},handleSizeChange:function(t){this.pageSize=t,this.getData()},handleCurrentChange:function(t){this.currentPage=t,this.getData()},handleShow:function(t,e){this.$router.push("/apiListManageShow")},getData:function(){var t=this,e={pageNum:t.currentPage,pageSize:t.pageSize,sceneCode:t.apiData.sceneCode,interfaceId:t.apiData.interfaceId};Object(I.a)("/gateway-manage/page-api-publish-record",e).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.result||[],void(t.totalCount=a.result.totalCount);S.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{$route:{handler:function(t,e){},deep:!0},historyShow:function(t,e){this.customDialog=t}},mounted:function(){this.customDialog=this.historyShow}},V={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"show",rawName:"v-show",value:t.customDialog,expression:"customDialog"}]},[a("el-dialog",{staticClass:"edit-dialog",attrs:{title:"选择回退版本",visible:t.customDialog,width:"600px","before-close":t.handleClose},on:{"update:visible":function(e){t.customDialog=e}}},[a("div",{staticClass:"table-wrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData}},[a("el-table-column",{attrs:{label:"","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-radio",{attrs:{label:e.row.interfaceVersionId},model:{value:t.selectVersion,callback:function(e){t.selectVersion=e},expression:"selectVersion"}})]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"version",label:"发布版本","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{label:"发布备注","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.remark)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"发布时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime)))]),t._v(" "),a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){t.handleShow(e.$index,e.row)}}},[t._v("查看")])]}}])})],1),t._v(" "),t.totalCount?a("div",{staticClass:"pagination text-right m-t-14"},[a("el-pagination",{attrs:{small:"","page-size":t.pageSize,"current-page":t.currentPage,layout:"prev, pager, next",total:t.totalCount},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1),t._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{"padding-bottom":"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.customCancel}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.customConfirm("syncForm")}}},[t._v("确 定")])],1)])],1)},staticRenderFns:[]};var q=a("VU/8")(j,V,!1,function(t){a("+8wL")},"data-v-00e3c166",null).exports,R={name:"api-version-show",components:{baseInfoShow:l,frontendInfoShow:p,backendInfoShow:y,backInfoShow:k,publishSet:x.a,goHistory:q},data:function(){return{apiData:{interfaceId:"nisi exercitation ipsum et dolore",interfaceName:"查询",interfaceGroupId:"1",interfaceUrl:"ex laborum Excepteur aliquip labore",interfaceDescribe:"test",projectId:"irure ",optType:"exercitation",sucReturn:"ex Excepteur",errReturn:"culpa nisi magna consequat velit",errCode:"nostrud proident ",frontParams:"id labore",endParams:"deserunt Ut",target:78473123.86374778,requestType:"POST",protocol:"http",version:"elit",interfaceType:"HTTP",dubboMethod:"in ess",dubboInterface:"ad",httpPath:"commodo minim ex sunt",proxyCode:"amet proident fugiat anim commodo",resultParams:"veniam dolore Ut",backendRequestType:"est laborum cillum commodo mini",timeout:43087112},activeInfo:0,editRow:{},publishShow:!1,historyShow:!1}},methods:{handlePublish:function(t,e){this.publishShow=!0,this.editRow=this.apiData},hidePublishDialog:function(){this.publishShow=!1,this.editRow={}},handleGoHistory:function(){this.historyShow=!0},hideHistoryDialog:function(){this.historyShow=!1},handleDel:function(){var t=this;t.$confirm("确认删除此版本吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){t.postDelData()}).catch(function(){})},postDelData:function(){var t=this,e={interfaceVerionId:t.apiData.interfaceVerionId};Object(I.a)("/gateway-manage/delete-api-version",e).then(function(e){var a=e.data;if(1==a.code)return T.a.showmsg("删除成功","success"),void t.$router.push("/apiListManage");S.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleGoBack:function(){var t=this;t.$confirm("确认将【当前版本】回滚到【已发布版本号】吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){t.postGoBack()}).catch(function(){})},postGoBack:function(){var t=this,e={interfaceVerionId:t.apiData.interfaceVerionId};Object(I.a)("/gateway-manage/rollback-api",e).then(function(t){var e=t.data;1!=e.code?S.a.errorMsg(e):T.a.showmsg("回滚成功","success")}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},goAuthor:function(t,e){this.activeInfo=e,this.$el.querySelector(t).scrollIntoView()},getData:function(){var t=this,e={search:t.searchValue,pageNum:t.currentPage,pageSize:t.pageSize,sceneCode:t.sceneCode,interfaceId:t.$route.query.interfaceId};Object(I.a)("/gateway-manage/page-proxy",e).then(function(e){var a=e.data;if(1==a.code)return t.tableData=a.result.result||[],void(t.totalCount=a.result.totalCount);S.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},init:function(){document.getElementsByClassName("api-body-content")[0].addEventListener("scroll",this.scroll)},scroll:function(){var t=this,e=document.querySelectorAll(".api-body-content")[0].scrollTop;document.querySelectorAll(".info-wrap").forEach(function(a,s){e>=a.offsetTop&&(t.activeInfo=s)})}},mounted:function(){var t=this;t.$nextTick(function(){t.init()})},destroyed:function(){document.getElementsByClassName("api-body-content")[0].removeEventListener("scroll",this.scroll)}},F={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"api-version-content border-box"},[a("div",{staticClass:"api-version-body"},[a("div",{staticClass:"operate-btns"},[a("el-button",{attrs:{type:"primary",plain:""},on:{click:t.handlePublish}},[t._v("发布")]),t._v(" "),a("el-button",{attrs:{type:"primary",plain:""},on:{click:t.handleDel}},[t._v("删除")]),t._v(" "),a("el-button",{attrs:{type:"primary",plain:""},on:{click:t.handleGoHistory}},[t._v("回退")]),t._v(" "),a("el-button",{attrs:{type:"primary",plain:""},on:{click:t.handleGoBack}},[t._v("回滚")])],1),t._v(" "),a("div",{staticClass:"anchor-wrap"},[a("div",{staticClass:"el-tabs el-tabs--right"},[a("div",{staticClass:"el-tabs__header is-right"},[a("div",{staticClass:"el-tabs__nav-wrap is-right"},[a("div",{staticClass:"el-tabs__nav-scroll"},[a("div",{staticClass:"el-tabs__nav is-right",staticStyle:{transform:"translateY(0px)"},attrs:{role:"tablist"}},[a("div",{staticClass:"el-tabs__active-bar is-right",style:{transform:"translateY("+24*t.activeInfo+"px)",height:"24px"}}),t._v(" "),a("div",{class:["el-tabs__item h-24 is-right",0==t.activeInfo?"is-active":""],attrs:{id:"tab-0"},on:{click:function(e){t.goAuthor("#base",0)}}},[t._v("基础配置")]),t._v(" "),a("div",{class:["el-tabs__item h-24 is-right",1==t.activeInfo?"is-active":""],attrs:{id:"tab-1"},on:{click:function(e){t.goAuthor("#frontend",1)}}},[t._v("前端配置")]),t._v(" "),a("div",{class:["el-tabs__item h-24 is-right",2==t.activeInfo?"is-active":""],attrs:{id:"tab-2"},on:{click:function(e){t.goAuthor("#backend",2)}}},[t._v("后端配置")]),t._v(" "),a("div",{class:["el-tabs__item h-24 is-right",3==t.activeInfo?"is-active":""],attrs:{id:"tab-3"},on:{click:function(e){t.goAuthor("#result",3)}}},[t._v("返回结果")])])])])])])]),t._v(" "),a("div",{staticClass:"base-info-wrap info-wrap",attrs:{id:"base"}},[a("div",{staticClass:"commont-info-title font-14 color-303133"},[t._v("基础信息")]),t._v(" "),a("base-info-show",{attrs:{apiData:t.apiData}})],1),t._v(" "),a("div",{staticClass:"frontend-set-wrap info-wrap",attrs:{id:"frontend"}},[a("div",{staticClass:"commont-info-title font-14 color-303133 m-t-47"},[t._v("前端配置")]),t._v(" "),a("frontend-info-show")],1),t._v(" "),a("div",{staticClass:"backend-set-wrap info-wrap",attrs:{id:"backend"}},[a("div",{staticClass:"commont-info-title font-14 color-303133 m-t-47"},[t._v("后端配置")]),t._v(" "),a("backend-info-show")],1),t._v(" "),a("div",{staticClass:"back-result-wrap info-wrap",attrs:{id:"result"}},[a("div",{staticClass:"commont-info-title font-14 color-303133 m-t-47"},[t._v("返回结果")]),t._v(" "),a("back-info-show")],1)]),t._v(" "),a("go-history",{attrs:{apiData:t.apiData,historyShow:t.historyShow},on:{hideHistoryDialog:t.hideHistoryDialog}}),t._v(" "),a("publish-set",{attrs:{editRow:t.editRow,publishShow:t.publishShow},on:{hidePublishDialog:t.hidePublishDialog}})],1)},staticRenderFns:[]};var P=a("VU/8")(R,F,!1,function(t){a("RE2v")},"data-v-66a7f100",null).exports,K={name:"apiListManageShow",components:{navBread:s.a,apiVersionShow:P},data:function(){return{navPath:[{name:"API管理",path:"/apiProgram"},{name:"API列表",path:"/apiList"},{name:"管理",path:"/apiListManage"},{name:"查看",path:""}]}},methods:{getData:function(){var t=this,e={project:t.repProjectName,router:t.pathName,requestProject:t.repProjectName};Object(I.a)("/haoban-manage-web/menu-detail",e).then(function(e){var a=e.data;if(1==a.errorCode)return a.result?void 0:void t.$message.error({duration:1e3,message:"暂无数据"});t.$message.error({duration:1e3,message:a.message})}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{$route:{handler:function(t,e){},deep:!0}},mounted:function(){this.$emit("showTab",22)}},$={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"api-body-content border-box"},[e("div",{staticClass:"common-nav"},[e("nav-bread",{attrs:{navPath:this.navPath}})],1),this._v(" "),e("div",{staticClass:"api-body-main common-body-main border-box",staticStyle:{height:"auto"}},[e("div",{staticClass:"api-main-content border-box"},[e("api-version-show")],1)])])},staticRenderFns:[]};var B=a("VU/8")(K,$,!1,function(t){a("/ZYZ")},"data-v-aace81b4",null);e.default=B.exports},vrRu:function(t,e){},ynkT:function(t,e){},znuk:function(t,e,a){"use strict";var s=a("mvHQ"),i=a.n(s),o=a("Kkt8"),l=a("P9l9"),r=a("TUB1"),n=a("LlAa"),c={name:"publish-set",components:{limitTextarea:o.a},props:{publishShow:{type:Boolean,default:!1},editRow:{type:Object,default:function(){return{interfaceVersionId:"",version:"",status:"",description:"",proxyType:"",defaultFlag:!1,sceneCode:"",sceneName:"",remark:""}}}},data:function(){return{customDialog:!1,formData:{interfaceVersionId:"",version:"",status:"",description:"",proxyType:"",defaultFlag:!1,sceneCode:"",sceneName:"",remark:""},rules:{}}},methods:{handleClose:function(t){t(),this.hideDialog()},customCancel:function(){this.hideDialog()},hideDialog:function(){this.customDialog=!1,this.$emit("hidePublishDialog")},customConfirm:function(t){var e=this;e.$refs[t].validate(function(t){if(!t)return!1;e.postEditData()})},postEditData:function(){var t=this,e={interfaceVersionId:t.formData.interfaceVersionId,defaultFlag:t.formData.defaultFlag?"1":"0",remark:t.formData.remark};Object(l.a)("/gateway-manage/publish-api",e).then(function(e){var a=e.data;if(1==a.code)return r.a.showmsg("发布成功","success"),void t.setData();n.a.errorInfo(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},setData:function(t){this.$emit("hidePublishDialog")}},watch:{publishShow:function(t,e){this.customDialog=t},editRow:function(t,e){this.formData=JSON.parse(i()(t)),this.formData.defaultFlag=1==t.defaultFlag}},mounted:function(){this.customDialog=this.publishShow,this.formData=JSON.parse(i()(this.editRow)),this.formData.defaultFlag=1==this.editRow.defaultFlag}},d={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"show",rawName:"v-show",value:t.customDialog,expression:"customDialog"}]},[a("el-dialog",{staticClass:"edit-dialog",attrs:{title:"发布",visible:t.customDialog,width:"600px","before-close":t.handleClose},on:{"update:visible":function(e){t.customDialog=e}}},[a("div",{staticClass:"edit-dialog-body"},[a("el-form",{ref:"publishForm",attrs:{model:t.formData,"label-width":"160px",rules:t.rules}},[a("el-form-item",{attrs:{label:"API名称:"}},[t._v("\n "+t._s(t.$route.query.interfaceName)+"\n ")]),t._v(" "),a("el-form-item",{attrs:{label:"发布环境:"}},[t._v("\n "+t._s(t.formData.sceneName)+"\n ")]),t._v(" "),a("el-form-item",{attrs:{label:"设置为默认版本:"}},[a("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:t.formData.defaultFlag,callback:function(e){t.$set(t.formData,"defaultFlag",e)},expression:"formData.defaultFlag"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"备注:"}},[a("limit-textarea",{attrs:{inputWidth:370,inputValue:t.formData.remark,holder:"请输入备注内容",getByType:"word",maxLength:100},on:{"update:inputValue":function(e){t.$set(t.formData,"remark",e)}}})],1)],1)],1),t._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{"padding-bottom":"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.customCancel}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.customConfirm("publishForm")}}},[t._v("发 布")])],1)])],1)},staticRenderFns:[]};var p=a("VU/8")(c,d,!1,function(t){a("6rTp")},"data-v-f5608418",null);e.a=p.exports}});
\ No newline at end of file
webpackJsonp([3],{"6rTp":function(e,t){},CFUI:function(e,t){},HdHu:function(e,t){},WxQW:function(e,t){},"YPu+":function(e,t){},dqHC:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("319J"),n=a("znuk"),i=a("mvHQ"),s=a.n(i),r=a("P9l9"),l=a("TUB1"),c=a("LlAa"),u={name:"sync-set",props:{syncShow:{type:Boolean,default:!1},editRow:{type:Object,default:function(){return{interfaceVersionId:"",version:"",status:"",description:"",proxyType:"",defaultFlag:!1}}}},data:function(){return{customDialog:!1,formData:{interfaceVersionId:"",version:"",status:"",description:"",proxyType:"",sceneCode:""},rules:{sceneCode:[{required:!0,message:"请选择环境",trigger:"change"}]},envOptions:[{sceneCode:"1",sceneName:"测试"},{sceneCode:"2",sceneName:"正式"}]}},methods:{handleClose:function(e){e(),this.hideDialog()},customCancel:function(){this.hideDialog()},hideDialog:function(){this.customDialog=!1,this.$emit("hideSyncDialog")},customConfirm:function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return!1;t.postEditData()})},postEditData:function(){var e=this,t={interfaceVersionId:e.formData.interfaceVersionId,sceneCode:e.formData.sceneCode};Object(r.a)("/gateway-manage/async-api",t).then(function(t){var a=t.data;if(1==a.code)return l.a.showmsg("同步成功","success"),void e.setData();c.a.errorInfo(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},setData:function(e){this.$emit("hideSyncDialog")},getEnvData:function(){var e=this;Object(r.a)("/gateway-manage/list-all-scene",{}).then(function(t){var a=t.data;1!=a.code?c.a.errorMsg(a):e.envOptions=a.result||[]}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{syncShow:function(e,t){this.customDialog=e},editRow:function(e,t){this.formData=JSON.parse(s()(e))}},mounted:function(){this.customDialog=this.syncShow,this.formData=JSON.parse(s()(this.editRow))}},d={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"show",rawName:"v-show",value:e.customDialog,expression:"customDialog"}]},[a("el-dialog",{staticClass:"edit-dialog",attrs:{title:"同步",visible:e.customDialog,width:"424px","before-close":e.handleClose},on:{"update:visible":function(t){e.customDialog=t}}},[a("div",{staticClass:"edit-dialog-body"},[a("el-form",{ref:"syncForm",attrs:{model:e.formData,"label-width":"110px",rules:e.rules}},[a("el-form-item",{attrs:{label:"API名称:"}},[e._v("\n "+e._s(e.$route.query.interfaceName)+"\n ")]),e._v(" "),a("el-form-item",{attrs:{label:"API版本:"}},[e._v("\n "+e._s(e.formData.version)+"\n ")]),e._v(" "),a("el-form-item",{attrs:{label:"同步至环境:",prop:"sceneCode"}},[a("el-select",{staticClass:"w-190",attrs:{placeholder:"请选择"},model:{value:e.formData.sceneCode,callback:function(t){e.$set(e.formData,"sceneCode",t)},expression:"formData.sceneCode"}},e._l(e.envOptions,function(e){return a("el-option",{key:e.sceneCode,attrs:{label:e.sceneName,value:e.sceneCode}})}))],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{"padding-bottom":"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.customCancel}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.customConfirm("syncForm")}}},[e._v("同 步")])],1)])],1)},staticRenderFns:[]};var f=a("VU/8")(u,d,!1,function(e){a("YPu+")},"data-v-8e404d2c",null).exports,h={name:"record-list",props:{recordShow:{type:Boolean,default:!1},editRow:{type:Object,default:function(){return{interfaceVersionId:"",version:"",status:"",description:"",proxyType:"",defaultFlag:!1,sceneCode:"",sceneName:"",remark:""}}}},data:function(){return{customDialog:!1,formData:{interfaceVersionId:"",version:"",status:"",description:"",proxyType:"",defaultFlag:!1,sceneCode:"",sceneName:"",remark:""},rules:{},tableData:[{interfaceVersionId:"1",version:"测试",remark:"描述内容",createTime:1564455643252}],pageSize:5,currentPage:1,totalCount:0}},methods:{handleClose:function(e){e(),this.hideDialog()},customCancel:function(){this.hideDialog()},hideDialog:function(){this.customDialog=!1,this.$emit("hideRecordDialog")},handleSizeChange:function(e){this.pageSize=e,this.getData()},handleCurrentChange:function(e){this.currentPage=e,this.getData()},handleShow:function(e,t){this.$router.push("/")},getData:function(){var e=this,t={pageNum:e.currentPage,pageSize:e.pageSize,version:e.formData.version,sceneCode:e.formData.sceneCode,interfaceId:e.formData.interfaceId};Object(r.a)("/gateway-manage/page-api-publish-record",t).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.result||[],void(e.totalCount=a.result.totalCount);c.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{recordShow:function(e,t){this.customDialog=e},editRow:function(e,t){this.formData=JSON.parse(s()(e))}},mounted:function(){this.customDialog=this.publishShow,this.formData=JSON.parse(s()(this.editRow))}},m={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"show",rawName:"v-show",value:e.customDialog,expression:"customDialog"}]},[a("el-dialog",{staticClass:"edit-dialog",attrs:{title:"发布记录",visible:e.customDialog,width:"600px","before-close":e.handleClose},on:{"update:visible":function(t){e.customDialog=t}}},[a("div",{staticClass:"edit-dialog-body"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{prop:"version",label:"发布版本","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{label:"发布备注","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.remark)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"发布时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.createTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.createTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){e.handleShow(t.$index,t.row)}}},[e._v("查看")])]}}])})],1),e._v(" "),e.totalCount?a("div",{staticClass:"pagination text-right m-t-14"},[a("el-pagination",{attrs:{small:"","page-size":e.pageSize,"current-page":e.currentPage,layout:"prev, pager, next",total:e.totalCount},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])],1)},staticRenderFns:[]};var p=a("VU/8")(h,m,!1,function(e){a("WxQW")},"data-v-940ae3ca",null).exports,g=a("jvWE"),v={name:"env-set-list",components:{publishSet:n.a,syncSet:f,recordList:p},data:function(){return{searchValue:"",sceneCode:"",envOptions:[{sceneCode:"1",sceneName:"测试"},{sceneCode:"2",sceneName:"正式"}],tableData:[{interfaceVersionId:"1",version:"测试",status:"1",description:"234",proxyType:"0",defaultFlag:!1,createTime:1564455643252,updateTime:1564455643252,publishTime:1564455643252}],pageSize:20,currentPage:1,totalCount:0,syncShow:!1,editRow:{},publishShow:!1,recordShow:!1}},methods:{searchData:Object(g.a)(function(e){this.currentPage,this.getData()},500),clearInput:function(){this.currentPage=1,this.getData()},changeType:function(e){this.currentPage=1,this.getData()},handleSizeChange:function(e){this.pageSize=e,this.getData()},handleCurrentChange:function(e){this.currentPage=e,this.getData()},changeVersion:function(e,t){this.postChangeVersion(e,t)},postChangeVersion:function(e,t){var a=this,o={defaultFlag:t?"1":"0",interfaceVerionId:e.interfaceVerionId};Object(r.a)("/gateway-manage/set-default-version",o).then(function(e){var t=e.data;1!=t.code?c.a.errorMsg(t):l.a.showmsg("设置成功","success")}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},handlePublish:function(e,t){this.publishShow=!0,this.editRow=t},hidePublishDialog:function(){this.publishShow=!1,this.editRow={}},handleSync:function(e,t){this.syncShow=!0,this.editRow=t},hideSyncDialog:function(){this.syncShow=!1,this.editRow={}},handleRecord:function(e,t){this.recordShow=!0,this.editRow=t},hideRecordDialog:function(){this.recordShow=!1,this.editRow={}},handleShow:function(e,t){this.$router.push("/apiListManageShow?interfaceId="+this.$route.query.interfaceId+"&interfaceName="+this.$route.query.interfaceName+"&interfaceVersionId="+t.interfaceVersionId)},handleEdit:function(e,t){this.$router.push("/createApi?interfaceId="+this.$route.query.interfaceId+"&interfaceName="+this.$route.query.interfaceName+"&interfaceVersionId="+t.interfaceVersionId)},handleDown:function(e,t){var a=this;a.$confirm("确认将【"+t.version+"】的【"+a.$route.query.interfaceName+"】API下线吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDownData(e,t)}).catch(function(){})},postDownData:function(e,t){var a=this,o={interfaceVerionId:t.interfaceVerionId};Object(r.a)("/gateway-manage/offline-api",o).then(function(e){var t=e.data;1!=t.code?c.a.errorMsg(t):l.a.showmsg("下线成功","success")}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},getEnvData:function(){var e=this;Object(r.a)("/gateway-manage/list-all-scene",{}).then(function(t){var a=t.data;1!=a.code?c.a.errorMsg(a):e.envOptions=a.result||[]}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getData:function(){var e=this,t={search:e.searchValue,pageNum:e.currentPage,pageSize:e.pageSize,sceneCode:e.sceneCode,interfaceId:e.$route.query.interfaceId};Object(r.a)("/gateway-manage/page-proxy",t).then(function(t){var a=t.data;if(1==a.code)return e.tableData=a.result.result||[],void(e.totalCount=a.result.totalCount);c.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}}},w={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"search-wrap m-b-20 flex flex-space-between"},[a("el-input",{staticClass:"w-320",attrs:{clearable:"",placeholder:"请输入版本号"},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.searchData(a);var a}},model:{value:e.searchValue,callback:function(t){e.searchValue=t},expression:"searchValue"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),e._v(" "),a("div",{staticClass:"search-wrap-right"},[a("el-radio-group",{on:{change:e.changeType},model:{value:e.sceneCode,callback:function(t){e.sceneCode=t},expression:"sceneCode"}},e._l(e.envOptions,function(t,o){return a("el-radio-button",{key:o,attrs:{label:t.sceneCode}},[e._v(e._s(t.sceneName))])}))],1)],1),e._v(" "),a("div",{staticClass:"table-wrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{prop:"version",label:"版本号","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"status",label:"发布状态","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.status)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"创建时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.createTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.createTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"发布时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.publishTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.publishTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"更新时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.updateTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.updateTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"默认版本","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:function(a){e.changeVersion(t.row,t.row.defaultFlag)}},model:{value:t.row.defaultFlag,callback:function(a){e.$set(t.row,"defaultFlag",a)},expression:"scope.row.defaultFlag"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",width:"340"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){e.handleEdit(t.$index,t.row)}}},[e._v("编辑")]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){e.handlePublish(t.$index,t.row)}}},[e._v("发布")]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){e.handleSync(t.$index,t.row)}}},[e._v("同步")]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){e.handleShow(t.$index,t.row)}}},[e._v("查看")]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){e.handleDown(t.$index,t.row)}}},[e._v("下线")]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){e.handleRecord(t.$index,t.row)}}},[e._v("发布记录")])]}}])})],1),e._v(" "),e.totalCount?a("div",{staticClass:"pagination text-right m-t-14"},[a("el-pagination",{attrs:{small:"","page-size":e.pageSize,"current-page":e.currentPage,layout:"prev, pager, next",total:e.totalCount},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1),e._v(" "),a("sync-set",{attrs:{editRow:e.editRow,syncShow:e.syncShow},on:{hideSyncDialog:e.hideSyncDialog}}),e._v(" "),a("publish-set",{attrs:{editRow:e.editRow,publishShow:e.publishShow},on:{hidePublishDialog:e.hidePublishDialog}}),e._v(" "),a("record-list",{attrs:{editRow:e.editRow,recordShow:e.recordShow},on:{hideRecordDialog:e.hideRecordDialog}})],1)},staticRenderFns:[]};var b=a("VU/8")(v,w,!1,function(e){a("CFUI")},"data-v-29f54f68",null).exports,_={name:"publish-list",data:function(){return{navPath:[{name:"发布记录",path:""}],searchValue:"",tableData:[{interfaceVersionId:"",version:"123",status:"",proxyType:"",defaultFlag:!1,sceneCode:"",sceneName:"测试",remark:"test",createTime:1564455643252}],pageSize:20,currentPage:1,totalCount:0}},methods:{searchData:Object(g.a)(function(e){this.currentPage,this.getData()},500),clearInput:function(){this.currentPage=1,this.getData()},handleSizeChange:function(e){this.pageSize=e,this.getData()},handleCurrentChange:function(e){this.currentPage=e,this.getData()},handleShow:function(e,t){this.$router.push("/apiListManageShow")},getData:function(){var e=this,t={pageNum:e.currentPage,pageSize:e.pageSize,version:e.formData.version,sceneCode:e.formData.sceneCode,interfaceId:e.formData.interfaceId};Object(r.a)("/gateway-manage/page-api-publish-record",t).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.result||[],void(e.totalCount=a.result.totalCount);c.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{$route:{handler:function(e,t){},deep:!0}}},D={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"table-wrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{prop:"version",label:"发布版本","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{label:"版本号","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.publishVersion)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"环境","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.sceneName)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"发布备注","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.remark)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"发布时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.createTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.createTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){e.handleShow(t.$index,t.row)}}},[e._v("查看")])]}}])})],1),e._v(" "),e.totalCount?a("div",{staticClass:"pagination text-right m-t-14"},[a("el-pagination",{attrs:{small:"","page-size":e.pageSize,"current-page":e.currentPage,layout:"prev, pager, next",total:e.totalCount},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])},staticRenderFns:[]};var C=a("VU/8")(_,D,!1,function(e){a("HdHu")},"data-v-7c9a23fa",null).exports,y={name:"apiListManage",components:{navBread:o.a,versionList:b,publishList:C},data:function(){return{navPath:[{name:"API管理",path:"/apiProgram"},{name:"API列表",path:"/apiList"},{name:"管理",path:""}],activeName:"first"}},methods:{handleClick:function(e,t){console.log(e,t)},getData:function(){var e=this,t={project:e.repProjectName,router:e.pathName,requestProject:e.repProjectName};Object(r.a)("/haoban-manage-web/menu-detail",t).then(function(t){var a=t.data;if(1==a.errorCode)return a.result?void 0:void e.$message.error({duration:1e3,message:"暂无数据"});e.$message.error({duration:1e3,message:a.message})}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{$route:{handler:function(e,t){},deep:!0}},mounted:function(){this.$emit("showTab",22)}},S={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"api-body-content border-box"},[a("div",{staticClass:"common-nav"},[a("nav-bread",{attrs:{navPath:e.navPath}})],1),e._v(" "),a("div",{staticClass:"api-body-main common-body-main border-box"},[a("div",{staticClass:"api-main-content border-box"},[a("div",{staticClass:"api-tab-wrap"},[a("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"版本",name:"first"}},[a("version-list")],1),e._v(" "),a("el-tab-pane",{attrs:{label:"发布记录",name:"second"}},[a("publish-list")],1)],1)],1)])])])},staticRenderFns:[]};var x=a("VU/8")(y,S,!1,function(e){a("exBO")},"data-v-21a0b18c",null);t.default=x.exports},exBO:function(e,t){},znuk:function(e,t,a){"use strict";var o=a("mvHQ"),n=a.n(o),i=a("Kkt8"),s=a("P9l9"),r=a("TUB1"),l=a("LlAa"),c={name:"publish-set",components:{limitTextarea:i.a},props:{publishShow:{type:Boolean,default:!1},editRow:{type:Object,default:function(){return{interfaceVersionId:"",version:"",status:"",description:"",proxyType:"",defaultFlag:!1,sceneCode:"",sceneName:"",remark:""}}}},data:function(){return{customDialog:!1,formData:{interfaceVersionId:"",version:"",status:"",description:"",proxyType:"",defaultFlag:!1,sceneCode:"",sceneName:"",remark:""},rules:{}}},methods:{handleClose:function(e){e(),this.hideDialog()},customCancel:function(){this.hideDialog()},hideDialog:function(){this.customDialog=!1,this.$emit("hidePublishDialog")},customConfirm:function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return!1;t.postEditData()})},postEditData:function(){var e=this,t={interfaceVersionId:e.formData.interfaceVersionId,defaultFlag:e.formData.defaultFlag?"1":"0",remark:e.formData.remark};Object(s.a)("/gateway-manage/publish-api",t).then(function(t){var a=t.data;if(1==a.code)return r.a.showmsg("发布成功","success"),void e.setData();l.a.errorInfo(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},setData:function(e){this.$emit("hidePublishDialog")}},watch:{publishShow:function(e,t){this.customDialog=e},editRow:function(e,t){this.formData=JSON.parse(n()(e)),this.formData.defaultFlag=1==e.defaultFlag}},mounted:function(){this.customDialog=this.publishShow,this.formData=JSON.parse(n()(this.editRow)),this.formData.defaultFlag=1==this.editRow.defaultFlag}},u={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"show",rawName:"v-show",value:e.customDialog,expression:"customDialog"}]},[a("el-dialog",{staticClass:"edit-dialog",attrs:{title:"发布",visible:e.customDialog,width:"600px","before-close":e.handleClose},on:{"update:visible":function(t){e.customDialog=t}}},[a("div",{staticClass:"edit-dialog-body"},[a("el-form",{ref:"publishForm",attrs:{model:e.formData,"label-width":"160px",rules:e.rules}},[a("el-form-item",{attrs:{label:"API名称:"}},[e._v("\n "+e._s(e.$route.query.interfaceName)+"\n ")]),e._v(" "),a("el-form-item",{attrs:{label:"发布环境:"}},[e._v("\n "+e._s(e.formData.sceneName)+"\n ")]),e._v(" "),a("el-form-item",{attrs:{label:"设置为默认版本:"}},[a("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.formData.defaultFlag,callback:function(t){e.$set(e.formData,"defaultFlag",t)},expression:"formData.defaultFlag"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"备注:"}},[a("limit-textarea",{attrs:{inputWidth:370,inputValue:e.formData.remark,holder:"请输入备注内容",getByType:"word",maxLength:100},on:{"update:inputValue":function(t){e.$set(e.formData,"remark",t)}}})],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{"padding-bottom":"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.customCancel}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.customConfirm("publishForm")}}},[e._v("发 布")])],1)])],1)},staticRenderFns:[]};var d=a("VU/8")(c,u,!1,function(e){a("6rTp")},"data-v-f5608418",null);t.a=d.exports}});
\ No newline at end of file
webpackJsonp([3],{"1n7+":function(e,t){},"4xc4":function(e,t){},HdHu:function(e,t){},WxQW:function(e,t){},dqHC:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("319J"),n=a("znuk"),i=a("mvHQ"),s=a.n(i),r=a("P9l9"),l=a("TUB1"),c=a("LlAa"),u={name:"sync-set",props:{syncShow:{type:Boolean,default:!1},editRow:{type:Object,default:function(){return{interfaceVersionId:"",version:"",status:"",description:"",proxyType:"",defaultFlag:!1}}}},data:function(){return{customDialog:!1,formData:{interfaceVersionId:"",version:"",status:"",description:"",proxyType:"",sceneCode:""},rules:{sceneCode:[{required:!0,message:"请选择环境",trigger:"change"}]},envOptions:[{sceneCode:"1",sceneName:"测试"},{sceneCode:"2",sceneName:"正式"}]}},methods:{handleClose:function(e){e(),this.hideDialog()},customCancel:function(){this.hideDialog()},hideDialog:function(){this.customDialog=!1,this.$emit("hideSyncDialog")},customConfirm:function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return!1;t.postEditData()})},postEditData:function(){var e=this,t={interfaceVersionId:e.formData.interfaceVersionId,sceneCode:e.formData.sceneCode};Object(r.a)("/gateway-manage/async-api",t).then(function(t){var a=t.data;if("0000"==a.code)return l.a.showmsg("同步成功","success"),void e.setData();c.a.errorInfo(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},setData:function(e){this.$emit("hideSyncDialog")},getEnvData:function(){var e=this;Object(r.a)("/gateway-manage/list-all-scene",{}).then(function(t){var a=t.data;"0000"!=a.code?c.a.errorMsg(a):e.envOptions=a.result||[]}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{syncShow:function(e,t){this.customDialog=e},editRow:function(e,t){this.formData=JSON.parse(s()(e))}},mounted:function(){this.customDialog=this.syncShow,this.formData=JSON.parse(s()(this.editRow))}},d={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"show",rawName:"v-show",value:e.customDialog,expression:"customDialog"}]},[a("el-dialog",{staticClass:"edit-dialog",attrs:{title:"同步",visible:e.customDialog,width:"424px","before-close":e.handleClose},on:{"update:visible":function(t){e.customDialog=t}}},[a("div",{staticClass:"edit-dialog-body"},[a("el-form",{ref:"syncForm",attrs:{model:e.formData,"label-width":"110px",rules:e.rules}},[a("el-form-item",{attrs:{label:"API名称:"}},[e._v("\n "+e._s(e.$route.query.interfaceName)+"\n ")]),e._v(" "),a("el-form-item",{attrs:{label:"API版本:"}},[e._v("\n "+e._s(e.formData.version)+"\n ")]),e._v(" "),a("el-form-item",{attrs:{label:"同步至环境:",prop:"sceneCode"}},[a("el-select",{staticClass:"w-190",attrs:{placeholder:"请选择"},model:{value:e.formData.sceneCode,callback:function(t){e.$set(e.formData,"sceneCode",t)},expression:"formData.sceneCode"}},e._l(e.envOptions,function(e){return a("el-option",{key:e.sceneCode,attrs:{label:e.sceneName,value:e.sceneCode}})}))],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{"padding-bottom":"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.customCancel}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.customConfirm("syncForm")}}},[e._v("同 步")])],1)])],1)},staticRenderFns:[]};var f=a("VU/8")(u,d,!1,function(e){a("4xc4")},"data-v-6285ac0c",null).exports,h={name:"record-list",props:{recordShow:{type:Boolean,default:!1},editRow:{type:Object,default:function(){return{interfaceVersionId:"",version:"",status:"",description:"",proxyType:"",defaultFlag:!1,sceneCode:"",sceneName:"",remark:""}}}},data:function(){return{customDialog:!1,formData:{interfaceVersionId:"",version:"",status:"",description:"",proxyType:"",defaultFlag:!1,sceneCode:"",sceneName:"",remark:""},rules:{},tableData:[{interfaceVersionId:"1",version:"测试",remark:"描述内容",createTime:1564455643252}],pageSize:5,currentPage:1,totalCount:0}},methods:{handleClose:function(e){e(),this.hideDialog()},customCancel:function(){this.hideDialog()},hideDialog:function(){this.customDialog=!1,this.$emit("hideRecordDialog")},handleSizeChange:function(e){this.pageSize=e,this.getData()},handleCurrentChange:function(e){this.currentPage=e,this.getData()},handleShow:function(e,t){this.$router.push("/")},getData:function(){var e=this,t={pageNum:e.currentPage,pageSize:e.pageSize,version:e.formData.version,sceneCode:e.formData.sceneCode,interfaceId:e.formData.interfaceId};Object(r.a)("/gateway-manage/page-api-publish-record",t).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.result||[],void(e.totalCount=a.result.totalCount);c.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{recordShow:function(e,t){this.customDialog=e},editRow:function(e,t){this.formData=JSON.parse(s()(e))}},mounted:function(){this.customDialog=this.publishShow,this.formData=JSON.parse(s()(this.editRow))}},m={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"show",rawName:"v-show",value:e.customDialog,expression:"customDialog"}]},[a("el-dialog",{staticClass:"edit-dialog",attrs:{title:"发布记录",visible:e.customDialog,width:"600px","before-close":e.handleClose},on:{"update:visible":function(t){e.customDialog=t}}},[a("div",{staticClass:"edit-dialog-body"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{prop:"version",label:"发布版本","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{label:"发布备注","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.remark)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"发布时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.createTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.createTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){e.handleShow(t.$index,t.row)}}},[e._v("查看")])]}}])})],1),e._v(" "),e.totalCount?a("div",{staticClass:"pagination text-right m-t-14"},[a("el-pagination",{attrs:{small:"","page-size":e.pageSize,"current-page":e.currentPage,layout:"prev, pager, next",total:e.totalCount},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])],1)},staticRenderFns:[]};var p=a("VU/8")(h,m,!1,function(e){a("WxQW")},"data-v-940ae3ca",null).exports,g=a("jvWE"),v={name:"env-set-list",components:{publishSet:n.a,syncSet:f,recordList:p},data:function(){return{searchValue:"",sceneCode:"",envOptions:[{sceneCode:"1",sceneName:"测试"},{sceneCode:"2",sceneName:"正式"}],tableData:[{interfaceVersionId:"1",version:"测试",status:"1",description:"234",proxyType:"0",defaultFlag:!1,createTime:1564455643252,updateTime:1564455643252,publishTime:1564455643252}],pageSize:20,currentPage:1,totalCount:0,syncShow:!1,editRow:{},publishShow:!1,recordShow:!1}},methods:{searchData:Object(g.a)(function(e){this.currentPage,this.getData()},500),clearInput:function(){this.currentPage=1,this.getData()},changeType:function(e){this.currentPage=1,this.getData()},handleSizeChange:function(e){this.pageSize=e,this.getData()},handleCurrentChange:function(e){this.currentPage=e,this.getData()},changeVersion:function(e,t){this.postChangeVersion(e,t)},postChangeVersion:function(e,t){var a=this,o={defaultFlag:t?"1":"0",interfaceVerionId:e.interfaceVerionId};Object(r.a)("/gateway-manage/set-default-version",o).then(function(e){var t=e.data;"0000"!=t.code?c.a.errorMsg(t):l.a.showmsg("设置成功","success")}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},handlePublish:function(e,t){this.publishShow=!0,this.editRow=t},hidePublishDialog:function(){this.publishShow=!1,this.editRow={}},handleSync:function(e,t){this.syncShow=!0,this.editRow=t},hideSyncDialog:function(){this.syncShow=!1,this.editRow={}},handleRecord:function(e,t){this.recordShow=!0,this.editRow=t},hideRecordDialog:function(){this.recordShow=!1,this.editRow={}},handleShow:function(e,t){this.$router.push("/apiListManageShow?interfaceId="+this.$route.query.interfaceId+"&interfaceName="+this.$route.query.interfaceName+"&interfaceVersionId="+t.interfaceVersionId)},handleEdit:function(e,t){this.$router.push("/createApi?interfaceId="+this.$route.query.interfaceId+"&interfaceName="+this.$route.query.interfaceName+"&interfaceVersionId="+t.interfaceVersionId)},handleDown:function(e,t){var a=this;a.$confirm("确认将【"+t.version+"】的【"+a.$route.query.interfaceName+"】API下线吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDownData(e,t)}).catch(function(){})},postDownData:function(e,t){var a=this,o={interfaceVerionId:t.interfaceVerionId};Object(r.a)("/gateway-manage/offline-api",o).then(function(e){var t=e.data;"0000"!=t.code?c.a.errorMsg(t):l.a.showmsg("下线成功","success")}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},getEnvData:function(){var e=this;Object(r.a)("/gateway-manage/list-all-scene",{}).then(function(t){var a=t.data;"0000"!=a.code?c.a.errorMsg(a):e.envOptions=a.result||[]}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getData:function(){var e=this,t={search:e.searchValue,pageNum:e.currentPage,pageSize:e.pageSize,sceneCode:e.sceneCode,interfaceId:e.$route.query.interfaceId};Object(r.a)("/gateway-manage/page-proxy",t).then(function(t){var a=t.data;if("0000"==a.code)return e.tableData=a.result.result||[],void(e.totalCount=a.result.totalCount);c.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}}},w={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"search-wrap m-b-20 flex flex-space-between"},[a("el-input",{staticClass:"w-320",attrs:{clearable:"",placeholder:"请输入版本号"},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.searchData(a);var a}},model:{value:e.searchValue,callback:function(t){e.searchValue=t},expression:"searchValue"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),e._v(" "),a("div",{staticClass:"search-wrap-right"},[a("el-radio-group",{on:{change:e.changeType},model:{value:e.sceneCode,callback:function(t){e.sceneCode=t},expression:"sceneCode"}},e._l(e.envOptions,function(t,o){return a("el-radio-button",{key:o,attrs:{label:t.sceneCode}},[e._v(e._s(t.sceneName))])}))],1)],1),e._v(" "),a("div",{staticClass:"table-wrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{prop:"version",label:"版本号","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"status",label:"发布状态","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.status)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"创建时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.createTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.createTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"发布时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.publishTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.publishTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"更新时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.updateTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.updateTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"默认版本","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:function(a){e.changeVersion(t.row,t.row.defaultFlag)}},model:{value:t.row.defaultFlag,callback:function(a){e.$set(t.row,"defaultFlag",a)},expression:"scope.row.defaultFlag"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",width:"340"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){e.handleEdit(t.$index,t.row)}}},[e._v("编辑")]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){e.handlePublish(t.$index,t.row)}}},[e._v("发布")]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){e.handleSync(t.$index,t.row)}}},[e._v("同步")]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){e.handleShow(t.$index,t.row)}}},[e._v("查看")]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){e.handleDown(t.$index,t.row)}}},[e._v("下线")]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){e.handleRecord(t.$index,t.row)}}},[e._v("发布记录")])]}}])})],1),e._v(" "),e.totalCount?a("div",{staticClass:"pagination text-right m-t-14"},[a("el-pagination",{attrs:{small:"","page-size":e.pageSize,"current-page":e.currentPage,layout:"prev, pager, next",total:e.totalCount},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1),e._v(" "),a("sync-set",{attrs:{editRow:e.editRow,syncShow:e.syncShow},on:{hideSyncDialog:e.hideSyncDialog}}),e._v(" "),a("publish-set",{attrs:{editRow:e.editRow,publishShow:e.publishShow},on:{hidePublishDialog:e.hidePublishDialog}}),e._v(" "),a("record-list",{attrs:{editRow:e.editRow,recordShow:e.recordShow},on:{hideRecordDialog:e.hideRecordDialog}})],1)},staticRenderFns:[]};var b=a("VU/8")(v,w,!1,function(e){a("1n7+")},"data-v-56f22904",null).exports,_={name:"publish-list",data:function(){return{navPath:[{name:"发布记录",path:""}],searchValue:"",tableData:[{interfaceVersionId:"",version:"123",status:"",proxyType:"",defaultFlag:!1,sceneCode:"",sceneName:"测试",remark:"test",createTime:1564455643252}],pageSize:20,currentPage:1,totalCount:0}},methods:{searchData:Object(g.a)(function(e){this.currentPage,this.getData()},500),clearInput:function(){this.currentPage=1,this.getData()},handleSizeChange:function(e){this.pageSize=e,this.getData()},handleCurrentChange:function(e){this.currentPage=e,this.getData()},handleShow:function(e,t){this.$router.push("/apiListManageShow")},getData:function(){var e=this,t={pageNum:e.currentPage,pageSize:e.pageSize,version:e.formData.version,sceneCode:e.formData.sceneCode,interfaceId:e.formData.interfaceId};Object(r.a)("/gateway-manage/page-api-publish-record",t).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.result||[],void(e.totalCount=a.result.totalCount);c.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{$route:{handler:function(e,t){},deep:!0}}},D={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"table-wrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{prop:"version",label:"发布版本","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{label:"版本号","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.publishVersion)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"环境","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.sceneName)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"发布备注","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.remark)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"发布时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.createTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.createTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){e.handleShow(t.$index,t.row)}}},[e._v("查看")])]}}])})],1),e._v(" "),e.totalCount?a("div",{staticClass:"pagination text-right m-t-14"},[a("el-pagination",{attrs:{small:"","page-size":e.pageSize,"current-page":e.currentPage,layout:"prev, pager, next",total:e.totalCount},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])},staticRenderFns:[]};var C=a("VU/8")(_,D,!1,function(e){a("HdHu")},"data-v-7c9a23fa",null).exports,y={name:"apiListManage",components:{navBread:o.a,versionList:b,publishList:C},data:function(){return{navPath:[{name:"API管理",path:"/apiProgram"},{name:"API列表",path:"/apiList"},{name:"管理",path:""}],activeName:"first"}},methods:{handleClick:function(e,t){console.log(e,t)},getData:function(){var e=this,t={project:e.repProjectName,router:e.pathName,requestProject:e.repProjectName};Object(r.a)("/haoban-manage-web/menu-detail",t).then(function(t){var a=t.data;if(1==a.errorCode)return a.result?void 0:void e.$message.error({duration:1e3,message:"暂无数据"});e.$message.error({duration:1e3,message:a.message})}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{$route:{handler:function(e,t){},deep:!0}},mounted:function(){this.$emit("showTab",22)}},S={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"api-body-content border-box"},[a("div",{staticClass:"common-nav"},[a("nav-bread",{attrs:{navPath:e.navPath}})],1),e._v(" "),a("div",{staticClass:"api-body-main common-body-main border-box"},[a("div",{staticClass:"api-main-content border-box"},[a("div",{staticClass:"api-tab-wrap"},[a("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"版本",name:"first"}},[a("version-list")],1),e._v(" "),a("el-tab-pane",{attrs:{label:"发布记录",name:"second"}},[a("publish-list")],1)],1)],1)])])])},staticRenderFns:[]};var x=a("VU/8")(y,S,!1,function(e){a("exBO")},"data-v-21a0b18c",null);t.default=x.exports},exBO:function(e,t){},fZOT:function(e,t){},znuk:function(e,t,a){"use strict";var o=a("mvHQ"),n=a.n(o),i=a("Kkt8"),s=a("P9l9"),r=a("TUB1"),l=a("LlAa"),c={name:"publish-set",components:{limitTextarea:i.a},props:{publishShow:{type:Boolean,default:!1},editRow:{type:Object,default:function(){return{interfaceVersionId:"",version:"",status:"",description:"",proxyType:"",defaultFlag:!1,sceneCode:"",sceneName:"",remark:""}}}},data:function(){return{customDialog:!1,formData:{interfaceVersionId:"",version:"",status:"",description:"",proxyType:"",defaultFlag:!1,sceneCode:"",sceneName:"",remark:""},rules:{}}},methods:{handleClose:function(e){e(),this.hideDialog()},customCancel:function(){this.hideDialog()},hideDialog:function(){this.customDialog=!1,this.$emit("hidePublishDialog")},customConfirm:function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return!1;t.postEditData()})},postEditData:function(){var e=this,t={interfaceVersionId:e.formData.interfaceVersionId,defaultFlag:e.formData.defaultFlag?"1":"0",remark:e.formData.remark};Object(s.a)("/gateway-manage/publish-api",t).then(function(t){var a=t.data;if("0000"==a.code)return r.a.showmsg("发布成功","success"),void e.setData();l.a.errorInfo(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},setData:function(e){this.$emit("hidePublishDialog")}},watch:{publishShow:function(e,t){this.customDialog=e},editRow:function(e,t){this.formData=JSON.parse(n()(e)),this.formData.defaultFlag=1==e.defaultFlag}},mounted:function(){this.customDialog=this.publishShow,this.formData=JSON.parse(n()(this.editRow)),this.formData.defaultFlag=1==this.editRow.defaultFlag}},u={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"show",rawName:"v-show",value:e.customDialog,expression:"customDialog"}]},[a("el-dialog",{staticClass:"edit-dialog",attrs:{title:"发布",visible:e.customDialog,width:"600px","before-close":e.handleClose},on:{"update:visible":function(t){e.customDialog=t}}},[a("div",{staticClass:"edit-dialog-body"},[a("el-form",{ref:"publishForm",attrs:{model:e.formData,"label-width":"160px",rules:e.rules}},[a("el-form-item",{attrs:{label:"API名称:"}},[e._v("\n "+e._s(e.$route.query.interfaceName)+"\n ")]),e._v(" "),a("el-form-item",{attrs:{label:"发布环境:"}},[e._v("\n "+e._s(e.formData.sceneName)+"\n ")]),e._v(" "),a("el-form-item",{attrs:{label:"设置为默认版本:"}},[a("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.formData.defaultFlag,callback:function(t){e.$set(e.formData,"defaultFlag",t)},expression:"formData.defaultFlag"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"备注:"}},[a("limit-textarea",{attrs:{inputWidth:370,inputValue:e.formData.remark,holder:"请输入备注内容",getByType:"word",maxLength:100},on:{"update:inputValue":function(t){e.$set(e.formData,"remark",t)}}})],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{"padding-bottom":"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.customCancel}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.customConfirm("publishForm")}}},[e._v("发 布")])],1)])],1)},staticRenderFns:[]};var d=a("VU/8")(c,u,!1,function(e){a("fZOT")},"data-v-1c124c15",null);t.a=d.exports}});
\ No newline at end of file
webpackJsonp([4],{"4egr":function(t,e){},DtbT:function(t,e){},"Yns/":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=a("319J"),s=a("Kkt8"),i=a("l46T"),r={name:"create-base",components:{limitTextarea:s.a,limitInput:i.a},data:function(){return{apiInfoData:{interfaceName:"",target:"1",optType:"GET",interfaceUrl:"",interfaceDescribe:""},rules:{interfaceName:[{required:!0,message:"请输入API名称",trigger:"blur"}],interfaceUrl:[{required:!0,message:"请输入请求路径",trigger:"blur"}]}}},methods:{submitForm:function(t){var e=this;e.$refs[t].validate(function(t){if(!t)return!1;e.$emit("submitNext",e.apiInfoData),e.$store.dispatch("saveBaseInfo",e.apiInfoData)})}},mounted:function(){console.log(this.$store)}},n={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"base-info-show border-box"},[a("el-form",{ref:"baseForm",attrs:{"label-width":"104px",model:t.apiInfoData,rules:t.rules}},[a("el-form-item",{attrs:{label:"API名称:",prop:"interfaceName"}},[a("limitInput",{attrs:{inputWidth:329,inputValue:t.apiInfoData.interfaceName,holder:"请输入API名称",getByType:"word",maxLength:20},on:{"update:inputValue":function(e){t.$set(t.apiInfoData,"interfaceName",e)}}})],1),t._v(" "),a("el-form-item",{attrs:{label:"API类型:",prop:"target"}},[a("el-radio-group",{model:{value:t.apiInfoData.target,callback:function(e){t.$set(t.apiInfoData,"target",e)},expression:"apiInfoData.target"}},[a("el-radio",{attrs:{label:"1"}},[t._v("公开")]),t._v(" "),a("el-radio",{attrs:{label:"0"}},[t._v("私有")])],1)],1),t._v(" "),a("el-form-item",{attrs:{label:"访问类型:",prop:"optType"}},[a("el-select",{attrs:{placeholder:"请选择"},model:{value:t.apiInfoData.optType,callback:function(e){t.$set(t.apiInfoData,"optType",e)},expression:"apiInfoData.optType"}},[a("el-option",{attrs:{label:"GET",value:"GET"}}),t._v(" "),a("el-option",{attrs:{label:"POST",value:"POST"}})],1)],1),t._v(" "),a("el-form-item",{attrs:{label:"请求路径:",prop:"interfaceUrl"}},[a("el-input",{staticClass:"w-329",model:{value:t.apiInfoData.interfaceUrl,callback:function(e){t.$set(t.apiInfoData,"interfaceUrl",e)},expression:"apiInfoData.interfaceUrl"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"描述:"}},[a("limit-textarea",{attrs:{inputWidth:500,inputValue:t.apiInfoData.interfaceDescribe,holder:"",getByType:"word",maxLength:100},on:{"update:inputValue":function(e){t.$set(t.apiInfoData,"interfaceDescribe",e)}}})],1),t._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.submitForm("baseForm")}}},[t._v("下一步")])],1)],1)],1)},staticRenderFns:[]};var o=a("VU/8")(r,n,!1,function(t){a("yc77")},"data-v-fd7aaf1c",null).exports,c=a("mvHQ"),p=a.n(c),u=a("fZjL"),d=a.n(u),m={name:"header-param",props:{itemData:{type:Object,default:function(){return{}}},originType:{type:String,default:function(){return""}}},data:function(){return{trData:{type:"object",properties:{name:{originType:this.originType,type:"string",currentKey:"name",isBackendField:0,defaultVal:"val",isRootKey:0,rootKey:"",objectClass:"",description:"描述",example:"示例",check:!0}}}}},methods:{handleDel:function(t,e,a){this.$delete(this.trData.properties,e)},toAddItem:function(){var t=d()(this.trData.properties).length;this.$set(this.trData.properties,"field"+t,{originType:this.originType,type:"string",currentKey:"field"+t,isBackendField:0,defaultVal:"val",isRootKey:0,rootKey:"",objectClass:"",description:"描述",example:"示例",check:!0})}},watch:{itemData:function(t,e){this.trData=JSON.parse(p()(t))}},mounted:function(){this.trData=JSON.parse(p()(this.itemData))}},f={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"el-table el-table--fit el-table--enable-row-hover el-table--enable-row-transition",staticStyle:{width:"100%","table-layout":"fixed"}},[t._m(0),t._v(" "),a("div",{staticClass:"el-table__body-wrapper is-scrolling-none"},[a("div",{staticClass:"table-content"},[t._l(t.trData.properties,function(e,l,s){return[a("table",{key:s+l+121,staticClass:"el-table__body",staticStyle:{width:"100%","table-layout":"fixed"},attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[a("tbody",[a("tr",{staticClass:"el-table__row"},[a("td",{staticClass:"el-table_1_column_1",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[a("el-input",{model:{value:e.currentKey,callback:function(a){t.$set(e,"currentKey",a)},expression:"itemValue.currentKey"}})],1)]),t._v(" "),a("td",{staticClass:"el-table_1_column_2",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[a("el-select",{attrs:{placeholder:"请选择参数类型"},model:{value:e.type,callback:function(a){t.$set(e,"type",a)},expression:"itemValue.type"}},[a("el-option",{attrs:{label:"string",value:"string"}}),t._v(" "),a("el-option",{attrs:{label:"number",value:"number"}}),t._v(" "),a("el-option",{attrs:{label:"boolean",value:"boolean"}})],1)],1)]),t._v(" "),a("td",{staticClass:"el-table_1_column_3",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[a("el-checkbox",{model:{value:e.check,callback:function(a){t.$set(e,"check",a)},expression:"itemValue.check"}})],1)]),t._v(" "),a("td",{staticClass:"el-table_1_column_3",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[a("el-input",{model:{value:e.defaultVal,callback:function(a){t.$set(e,"defaultVal",a)},expression:"itemValue.defaultVal"}})],1)]),t._v(" "),a("td",{staticClass:"el-table_1_column_3",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[a("el-input",{model:{value:e.example,callback:function(a){t.$set(e,"example",a)},expression:"itemValue.example"}})],1)]),t._v(" "),a("td",{staticClass:"el-table_1_column_3",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[a("el-input",{model:{value:e.description,callback:function(a){t.$set(e,"description",a)},expression:"itemValue.description"}})],1)]),t._v(" "),a("td",{staticClass:"el-table_1_column_3",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[a("el-button",{attrs:{type:"text"},on:{click:function(a){t.handleDel(e,l,s)}}},[t._v("删除")])],1)])])])])]})],2)])]),t._v(" "),a("div",{staticClass:"add-line text-center",on:{click:t.toAddItem}},[a("i",{staticClass:"el-icon-circle-plus-outline color-5584FF"}),a("span",{staticClass:"color-5584FF font-14 p-l-4"},[t._v("添加行")])])])},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"el-table__header-wrapper"},[a("table",{staticClass:"el-table__header",staticStyle:{width:"100%","table-layout":"fixed"},attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[a("thead",{staticClass:"has-gutter"},[a("tr",{},[a("th",{staticClass:"el-table_1_column_1 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"},[t._v("参数名")])]),t._v(" "),a("th",{staticClass:"el-table_1_column_2 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"},[t._v("参数类型")])]),t._v(" "),a("th",{staticClass:"el-table_1_column_3 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"},[t._v("必选")])]),t._v(" "),a("th",{staticClass:"el-table_1_column_4 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"},[t._v("默认值")])]),t._v(" "),a("th",{staticClass:"el-table_1_column_5 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"},[t._v("示例")])]),t._v(" "),a("th",{staticClass:"el-table_1_column_6 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"},[t._v("描述")])]),t._v(" "),a("th",{staticClass:"el-table_1_column_7 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"},[t._v("操作")])])])])])])}]};var b=a("VU/8")(m,f,!1,function(t){a("e/0u")},"data-v-0b1062f8",null).exports,v={name:"body-row",props:{itemData:{type:Object,default:function(){return{}}},originType:{type:String,default:function(){return""}}},data:function(){return{trData:{},keyLength:1}},methods:{handleDel:function(t,e,a,l){this.handleDelData(this.itemData,t,e)},handleDelData:function(t,e,a){this.handleObjData(t,e,a)},handleObjData:function(t,e,a){for(var l in t)t[l]==e&&this.$delete(t.properties,a)},changeType:function(t,e,a,l){"string"!=t&&"boolean"!=t&&"number"!=t&&"object"!=t||(e.properties={},e.hasOwnProperty("items")&&this.$delete(e,"items")),"array"==t&&this.$set(e,"items",{parentKey:a,level:parseInt(l)+1,originType:this.originType,type:"string",isBackendField:0,defaultVal:"val",isRootKey:0,rootKey:"",objectClass:"",description:"描述",example:"示例",check:!0,properties:{}}),this.$forceUpdate()},handleAdd:function(t,e,a,l){var s=this.keyLength++;if("array"==t.type)return this.$set(t.items.properties,"field"+s,{parentKey:e,level:parseInt(l)+1,originType:this.originType,type:"string",currentKey:"field"+s,isBackendField:0,defaultVal:"val",isRootKey:0,rootKey:"",objectClass:"",description:"描述",example:"示例",check:!0,properties:{}}),this.$forceUpdate(),!1;this.$set(t.properties,"field"+s,{parentKey:e,level:parseInt(l)+1,originType:this.originType,type:"string",currentKey:"field"+s,isBackendField:0,defaultVal:"val",isRootKey:0,rootKey:"",objectClass:"",description:"描述",example:"示例",check:!0,properties:{}}),this.$forceUpdate()}},watch:{itemData:function(t,e){t&&(this.trData=JSON.parse(p()(t)))}},mounted:function(){this.trData=JSON.parse(p()(this.itemData))}},_={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t._l(t.itemData.properties,function(e,l,s){return[a("table",{key:s+l+121,staticClass:"el-table__body",staticStyle:{width:"100%","table-layout":"fixed"},attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[a("tbody",[a("tr",{staticClass:"el-table__row"},[a("td",{staticClass:"el-table_1_column_1",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[a("el-input",{model:{value:e.currentKey,callback:function(a){t.$set(e,"currentKey",a)},expression:"itemValue.currentKey"}})],1)]),t._v(" "),a("td",{staticClass:"el-table_1_column_2",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[a("el-select",{attrs:{placeholder:"请选择参数类型"},on:{change:function(a){t.changeType(e.type,e,e.currentKey,e.level)}},model:{value:e.type,callback:function(a){t.$set(e,"type",a)},expression:"itemValue.type"}},[a("el-option",{attrs:{label:"string",value:"string"}}),t._v(" "),a("el-option",{attrs:{label:"number",value:"number"}}),t._v(" "),a("el-option",{attrs:{label:"boolean",value:"boolean"}}),t._v(" "),a("el-option",{attrs:{label:"object",value:"object"}}),t._v(" "),a("el-option",{attrs:{label:"array",value:"array"}})],1)],1)]),t._v(" "),a("td",{staticClass:"el-table_1_column_3",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[a("el-checkbox",{model:{value:e.check,callback:function(a){t.$set(e,"check",a)},expression:"itemValue.check"}})],1)]),t._v(" "),a("td",{staticClass:"el-table_1_column_3",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[a("el-input",{model:{value:e.defaultVal,callback:function(a){t.$set(e,"defaultVal",a)},expression:"itemValue.defaultVal"}})],1)]),t._v(" "),a("td",{staticClass:"el-table_1_column_3",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[a("el-input",{model:{value:e.example,callback:function(a){t.$set(e,"example",a)},expression:"itemValue.example"}})],1)]),t._v(" "),a("td",{staticClass:"el-table_1_column_3",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[a("el-input",{model:{value:e.description,callback:function(a){t.$set(e,"description",a)},expression:"itemValue.description"}})],1)]),t._v(" "),a("td",{staticClass:"el-table_1_column_3",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},["array"==e.type||"object"==e.type?a("el-button",{attrs:{type:"text"},on:{click:function(a){t.handleAdd(e,e.currentKey,s,e.level)}}},[t._v("添加子属性")]):t._e(),t._v(" "),2!=e.level?a("el-button",{attrs:{type:"text"},on:{click:function(a){t.handleDel(e.parentKey,e.currentKey,s,e.level)}}},[t._v("删除")]):t._e()],1)])])])]),t._v(" "),"array"==e.type&&Object.keys(e.items.properties).length?a("body-row",{key:s+"122"+l,staticClass:"el-table__row",staticStyle:{"padding-left":"10px"},attrs:{itemData:e.items}}):t._e(),t._v(" "),"object"==e.type&&Object.keys(e.properties).length?a("body-row",{key:s+"122"+l,staticClass:"el-table__row",staticStyle:{"padding-left":"10px"},attrs:{itemData:e}}):t._e()]})],2)},staticRenderFns:[]};var h=a("VU/8")(v,_,!1,function(t){a("DtbT")},"data-v-557ec6dc",null).exports,y={name:"create-front",components:{limitTextarea:s.a,limitInput:i.a,headerParam:b,bodyParam:h},data:function(){return{apiInfoData:{protocol:"http",originType:"header",frontParams:{}},frontData:{type:"object",level:1,properties:{root:{level:2,currentKey:"root",originType:"header",type:"object",isBackendField:0,defaultVal:"val",isRootKey:0,rootKey:"",objectClass:"",description:"描述",example:"示例",check:!0,properties:{}}}},rules:{interfaceName:[{required:!0,message:"请输入API名称",trigger:"blur"}],interfaceUrl:[{required:!0,message:"请输入请求路径",trigger:"blur"}]}}},methods:{refreshData:function(t){this.frontData=t},submitback:function(){this.$emit("submitBack")},submitForm:function(t){this.$refs[t].validate(function(t){if(!t)return!1})}},mounted:function(){console.log(this.$store)}},C={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"base-info-show border-box"},[a("el-form",{ref:"baseForm",attrs:{"label-width":"104px",model:t.apiInfoData,rules:t.rules}},[a("el-form-item",{attrs:{label:"协议:",prop:"protocol"}},[t._v(t._s(t.apiInfoData.protocol))]),t._v(" "),a("el-form-item",{attrs:{label:"请求方法:",prop:"requestType"}},[a("el-select",{attrs:{placeholder:"请选择"},model:{value:t.apiInfoData.requestType,callback:function(e){t.$set(t.apiInfoData,"requestType",e)},expression:"apiInfoData.requestType"}},[a("el-option",{attrs:{label:"GET",value:"GET"}}),t._v(" "),a("el-option",{attrs:{label:"POST",value:"POST"}})],1)],1),t._v(" "),a("el-form-item",{staticClass:"color-303133 font-w-700",attrs:{label:"参数配置"}}),t._v(" "),a("el-form-item",{attrs:{label:"参数位置:"}},[a("div",{staticClass:"font-14 color-303133"},[t._v("header")])]),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("header-param",{ref:"frontHeaderTable",attrs:{itemData:t.frontData,originType:"header"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"参数位置:"}},[a("div",{staticClass:"font-14 color-303133"},[t._v("query")])]),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("header-param",{ref:"frontQueryTable",attrs:{itemData:t.frontData,originType:"query"}})],1),t._v(" "),"POST"==t.apiInfoData.requestType?a("el-form-item",{attrs:{label:"参数位置:"}},[a("div",{staticClass:"font-14 color-303133"},[t._v("body")])]):t._e(),t._v(" "),"POST"==t.apiInfoData.requestType?a("el-form-item",{attrs:{label:""}},[a("div",{staticClass:"body-param-wrap"},[a("div",{staticClass:"el-table el-table--fit el-table--enable-row-hover el-table--enable-row-transition",staticStyle:{width:"100%","table-layout":"fixed"}},[a("div",{staticClass:"el-table__header-wrapper"},[a("table",{staticClass:"el-table__header",staticStyle:{width:"100%","table-layout":"fixed"},attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[a("thead",{staticClass:"has-gutter"},[a("tr",{},[a("th",{staticClass:"el-table_1_column_1 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"},[t._v("参数名")])]),t._v(" "),a("th",{staticClass:"el-table_1_column_2 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"},[t._v("参数类型")])]),t._v(" "),a("th",{staticClass:"el-table_1_column_3 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"},[t._v("必选")])]),t._v(" "),a("th",{staticClass:"el-table_1_column_4 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"},[t._v("默认值")])]),t._v(" "),a("th",{staticClass:"el-table_1_column_5 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"},[t._v("示例")])]),t._v(" "),a("th",{staticClass:"el-table_1_column_6 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"},[t._v("描述")])]),t._v(" "),a("th",{staticClass:"el-table_1_column_7 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"},[t._v("操作")])])])])])]),t._v(" "),a("div",{staticClass:"el-table__body-wrapper is-scrolling-none"},[a("div",{staticClass:"table-content"},[a("body-param",{ref:"frontBodyTable",attrs:{itemData:t.frontData,originType:"body"},on:{refreshData:t.refreshData}})],1)])])])]):t._e(),t._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:t.submitback}},[t._v("上一步")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.submitForm("baseForm")}}},[t._v("下一步")])],1)],1)],1)},staticRenderFns:[]};var g=a("VU/8")(y,C,!1,function(t){a("lCKr")},"data-v-40ba76d1",null).exports,D=a("P9l9"),x={name:"createApi",components:{navBread:l.a,createBase:o,createFront:g},data:function(){return{navPath:[{name:"API管理",path:"/apiProgram"},{name:"API列表",path:"/apiList"},{name:"创建API",path:""}],activeStep:1,stepData:[{stepName:"基础信息"},{stepName:"前端配置"},{stepName:"后端配置"},{stepName:"定义返回"}]}},methods:{submitNext:function(){this.activeStep++},submitBack:function(){this.activeStep--},getData:function(){var t=this,e={project:t.repProjectName,router:t.pathName,requestProject:t.repProjectName};Object(D.a)("/haoban-manage-web/menu-detail",e).then(function(e){var a=e.data;if(1==a.errorCode)return a.result?void 0:void t.$message.error({duration:1e3,message:"暂无数据"});t.$message.error({duration:1e3,message:a.message})}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{$route:{handler:function(t,e){},deep:!0}},mounted:function(){this.$emit("showTab",22)}},w={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"api-body-content border-box"},[a("div",{staticClass:"common-nav"},[a("nav-bread",{attrs:{navPath:t.navPath}})],1),t._v(" "),a("div",{staticClass:"api-body-main common-body-main border-box"},[a("div",{staticClass:"api-main-content border-box"},[a("div",{staticClass:"create-api-body"},[a("div",{staticClass:"create-api-step font-0"},t._l(t.stepData,function(e,l){return a("div",{key:l+e.stepName,class:["api-step-cell inline-block border-box",l+1==t.activeStep?"active-step":""],style:{width:100/t.stepData.length+"%","max-width":100/t.stepData.length+"%"}},[a("div",{staticClass:"api-step-cell_inner border-box"},[l<t.stepData.length-1?a("div",{staticClass:"api-step-cell_line"}):t._e(),t._v(" "),a("div",{staticClass:"api-step-cell_title"},[a("div",{staticClass:"el-step__icon is-text inline-block"},[a("div",{staticClass:"el-step__icon-inner font-14"},[t._v(t._s(l+1))])]),t._v(" "),a("div",{staticClass:"api-step-cell_txt p-lr-10 bg-fff inline-block font-16"},[t._v(t._s(e.stepName))])])])])})),t._v(" "),"2"==t.activeStep?a("div",{staticClass:"create-api-base"},[a("create-base",{on:{submitNext:t.submitNext}})],1):t._e(),t._v(" "),"1"==t.activeStep?a("div",{staticClass:"create-api-front"},[a("create-front",{on:{submitBack:t.submitBack,submitNext:t.submitNext}})],1):t._e()])])])])},staticRenderFns:[]};var k=a("VU/8")(x,w,!1,function(t){a("4egr")},"data-v-3e97579a",null);e.default=k.exports},"e/0u":function(t,e){},lCKr:function(t,e){},yc77:function(t,e){}});
\ No newline at end of file
webpackJsonp([4],{"4egr":function(t,e){},DtbT:function(t,e){},"Yns/":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=a("319J"),s=a("Kkt8"),i=a("l46T"),r={name:"create-base",components:{limitTextarea:s.a,limitInput:i.a},data:function(){return{apiInfoData:{interfaceName:"",target:"1",optType:"GET",interfaceUrl:"",interfaceDescribe:""},rules:{interfaceName:[{required:!0,message:"请输入API名称",trigger:"blur"}],interfaceUrl:[{required:!0,message:"请输入请求路径",trigger:"blur"}]}}},methods:{submitForm:function(t){var e=this;e.$refs[t].validate(function(t){if(!t)return!1;e.$emit("submitNext",e.apiInfoData),e.$store.dispatch("saveBaseInfo",e.apiInfoData)})}},mounted:function(){console.log(this.$store)}},n={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"base-info-show border-box"},[a("el-form",{ref:"baseForm",attrs:{"label-width":"104px",model:t.apiInfoData,rules:t.rules}},[a("el-form-item",{attrs:{label:"API名称:",prop:"interfaceName"}},[a("limitInput",{attrs:{inputWidth:329,inputValue:t.apiInfoData.interfaceName,holder:"请输入API名称",getByType:"word",maxLength:20},on:{"update:inputValue":function(e){t.$set(t.apiInfoData,"interfaceName",e)}}})],1),t._v(" "),a("el-form-item",{attrs:{label:"API类型:",prop:"target"}},[a("el-radio-group",{model:{value:t.apiInfoData.target,callback:function(e){t.$set(t.apiInfoData,"target",e)},expression:"apiInfoData.target"}},[a("el-radio",{attrs:{label:"1"}},[t._v("公开")]),t._v(" "),a("el-radio",{attrs:{label:"0"}},[t._v("私有")])],1)],1),t._v(" "),a("el-form-item",{attrs:{label:"访问类型:",prop:"optType"}},[a("el-select",{attrs:{placeholder:"请选择"},model:{value:t.apiInfoData.optType,callback:function(e){t.$set(t.apiInfoData,"optType",e)},expression:"apiInfoData.optType"}},[a("el-option",{attrs:{label:"GET",value:"GET"}}),t._v(" "),a("el-option",{attrs:{label:"POST",value:"POST"}})],1)],1),t._v(" "),a("el-form-item",{attrs:{label:"请求路径:",prop:"interfaceUrl"}},[a("el-input",{staticClass:"w-329",model:{value:t.apiInfoData.interfaceUrl,callback:function(e){t.$set(t.apiInfoData,"interfaceUrl",e)},expression:"apiInfoData.interfaceUrl"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"描述:"}},[a("limit-textarea",{attrs:{inputWidth:500,inputValue:t.apiInfoData.interfaceDescribe,holder:"",getByType:"word",maxLength:100},on:{"update:inputValue":function(e){t.$set(t.apiInfoData,"interfaceDescribe",e)}}})],1),t._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.submitForm("baseForm")}}},[t._v("下一步")])],1)],1)],1)},staticRenderFns:[]};var o=a("VU/8")(r,n,!1,function(t){a("yc77")},"data-v-fd7aaf1c",null).exports,c=a("mvHQ"),p=a.n(c),d={name:"header-param",props:{itemData:{type:Object,default:function(){return{}}},originType:{type:String,default:function(){return""}}},data:function(){return{trData:{type:"object",properties:{name:{originType:this.originType,type:"string",currentKey:"name",isBackendField:0,defaultVal:"val",isRootKey:0,rootKey:"",objectClass:"",description:"描述",example:"示例",check:!0}}},keyLength:1}},methods:{handleDel:function(t,e,a){this.$delete(this.trData.properties,e)},toAddItem:function(){var t=this.keyLength++;this.$set(this.trData.properties,"field"+t,{originType:this.originType,type:"string",currentKey:"field"+t,isBackendField:0,defaultVal:"val",isRootKey:0,rootKey:"",objectClass:"",description:"描述",example:"示例",check:!0})}},watch:{itemData:function(t,e){this.trData=JSON.parse(p()(t))}},mounted:function(){this.trData=JSON.parse(p()(this.itemData))}},u={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"el-table el-table--fit el-table--enable-row-hover el-table--enable-row-transition",staticStyle:{width:"100%","table-layout":"fixed"}},[t._m(0),t._v(" "),a("div",{staticClass:"el-table__body-wrapper is-scrolling-none"},[a("div",{staticClass:"table-content"},[t._l(t.trData.properties,function(e,l,s){return[a("table",{key:s+l+121,staticClass:"el-table__body",staticStyle:{width:"100%","table-layout":"fixed"},attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[a("tbody",[a("tr",{staticClass:"el-table__row"},[a("td",{staticClass:"el-table_1_column_1",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[a("el-input",{model:{value:e.currentKey,callback:function(a){t.$set(e,"currentKey",a)},expression:"itemValue.currentKey"}})],1)]),t._v(" "),a("td",{staticClass:"el-table_1_column_2",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[a("el-select",{attrs:{placeholder:"请选择参数类型"},model:{value:e.type,callback:function(a){t.$set(e,"type",a)},expression:"itemValue.type"}},[a("el-option",{attrs:{label:"string",value:"string"}}),t._v(" "),a("el-option",{attrs:{label:"number",value:"number"}}),t._v(" "),a("el-option",{attrs:{label:"boolean",value:"boolean"}})],1)],1)]),t._v(" "),a("td",{staticClass:"el-table_1_column_3",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[a("el-checkbox",{model:{value:e.check,callback:function(a){t.$set(e,"check",a)},expression:"itemValue.check"}})],1)]),t._v(" "),a("td",{staticClass:"el-table_1_column_3",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[a("el-input",{model:{value:e.defaultVal,callback:function(a){t.$set(e,"defaultVal",a)},expression:"itemValue.defaultVal"}})],1)]),t._v(" "),a("td",{staticClass:"el-table_1_column_3",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[a("el-input",{model:{value:e.example,callback:function(a){t.$set(e,"example",a)},expression:"itemValue.example"}})],1)]),t._v(" "),a("td",{staticClass:"el-table_1_column_3",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[a("el-input",{model:{value:e.description,callback:function(a){t.$set(e,"description",a)},expression:"itemValue.description"}})],1)]),t._v(" "),a("td",{staticClass:"el-table_1_column_3",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[a("el-button",{attrs:{type:"text"},on:{click:function(a){t.handleDel(e,l,s)}}},[t._v("删除")])],1)])])])])]})],2)])]),t._v(" "),a("div",{staticClass:"add-line text-center",on:{click:t.toAddItem}},[a("i",{staticClass:"el-icon-circle-plus-outline color-5584FF"}),a("span",{staticClass:"color-5584FF font-14 p-l-4"},[t._v("添加行")])])])},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"el-table__header-wrapper"},[a("table",{staticClass:"el-table__header",staticStyle:{width:"100%","table-layout":"fixed"},attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[a("thead",{staticClass:"has-gutter"},[a("tr",{},[a("th",{staticClass:"el-table_1_column_1 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"},[t._v("参数名")])]),t._v(" "),a("th",{staticClass:"el-table_1_column_2 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"},[t._v("参数类型")])]),t._v(" "),a("th",{staticClass:"el-table_1_column_3 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"},[t._v("必选")])]),t._v(" "),a("th",{staticClass:"el-table_1_column_4 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"},[t._v("默认值")])]),t._v(" "),a("th",{staticClass:"el-table_1_column_5 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"},[t._v("示例")])]),t._v(" "),a("th",{staticClass:"el-table_1_column_6 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"},[t._v("描述")])]),t._v(" "),a("th",{staticClass:"el-table_1_column_7 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"},[t._v("操作")])])])])])])}]};var m=a("VU/8")(d,u,!1,function(t){a("dMXr")},"data-v-24ec2ce0",null).exports,f={name:"body-row",props:{itemData:{type:Object,default:function(){return{}}},originType:{type:String,default:function(){return""}}},data:function(){return{trData:{},keyLength:1}},methods:{handleDel:function(t,e,a,l){this.handleDelData(this.itemData,t,e)},handleDelData:function(t,e,a){this.handleObjData(t,e,a)},handleObjData:function(t,e,a){for(var l in t)t[l]==e&&this.$delete(t.properties,a)},changeType:function(t,e,a,l){"string"!=t&&"boolean"!=t&&"number"!=t&&"object"!=t||(e.properties={},e.hasOwnProperty("items")&&this.$delete(e,"items")),"array"==t&&this.$set(e,"items",{parentKey:a,level:parseInt(l)+1,originType:this.originType,type:"string",isBackendField:0,defaultVal:"val",isRootKey:0,rootKey:"",objectClass:"",description:"描述",example:"示例",check:!0,properties:{}}),this.$forceUpdate()},handleAdd:function(t,e,a,l){var s=this.keyLength++;if("array"==t.type)return this.$set(t.items.properties,"field"+s,{parentKey:e,level:parseInt(l)+1,originType:this.originType,type:"string",currentKey:"field"+s,isBackendField:0,defaultVal:"val",isRootKey:0,rootKey:"",objectClass:"",description:"描述",example:"示例",check:!0,properties:{}}),this.$forceUpdate(),!1;this.$set(t.properties,"field"+s,{parentKey:e,level:parseInt(l)+1,originType:this.originType,type:"string",currentKey:"field"+s,isBackendField:0,defaultVal:"val",isRootKey:0,rootKey:"",objectClass:"",description:"描述",example:"示例",check:!0,properties:{}}),this.$forceUpdate()}},watch:{itemData:function(t,e){t&&(this.trData=JSON.parse(p()(t)))}},mounted:function(){this.trData=JSON.parse(p()(this.itemData))}},v={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t._l(t.itemData.properties,function(e,l,s){return[a("table",{key:s+l+121,staticClass:"el-table__body",staticStyle:{width:"100%","table-layout":"fixed"},attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[a("tbody",[a("tr",{staticClass:"el-table__row"},[a("td",{staticClass:"el-table_1_column_1",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[a("el-input",{model:{value:e.currentKey,callback:function(a){t.$set(e,"currentKey",a)},expression:"itemValue.currentKey"}})],1)]),t._v(" "),a("td",{staticClass:"el-table_1_column_2",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[a("el-select",{attrs:{placeholder:"请选择参数类型"},on:{change:function(a){t.changeType(e.type,e,e.currentKey,e.level)}},model:{value:e.type,callback:function(a){t.$set(e,"type",a)},expression:"itemValue.type"}},[a("el-option",{attrs:{label:"string",value:"string"}}),t._v(" "),a("el-option",{attrs:{label:"number",value:"number"}}),t._v(" "),a("el-option",{attrs:{label:"boolean",value:"boolean"}}),t._v(" "),a("el-option",{attrs:{label:"object",value:"object"}}),t._v(" "),a("el-option",{attrs:{label:"array",value:"array"}})],1)],1)]),t._v(" "),a("td",{staticClass:"el-table_1_column_3",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[a("el-checkbox",{model:{value:e.check,callback:function(a){t.$set(e,"check",a)},expression:"itemValue.check"}})],1)]),t._v(" "),a("td",{staticClass:"el-table_1_column_3",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[a("el-input",{model:{value:e.defaultVal,callback:function(a){t.$set(e,"defaultVal",a)},expression:"itemValue.defaultVal"}})],1)]),t._v(" "),a("td",{staticClass:"el-table_1_column_3",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[a("el-input",{model:{value:e.example,callback:function(a){t.$set(e,"example",a)},expression:"itemValue.example"}})],1)]),t._v(" "),a("td",{staticClass:"el-table_1_column_3",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},[a("el-input",{model:{value:e.description,callback:function(a){t.$set(e,"description",a)},expression:"itemValue.description"}})],1)]),t._v(" "),a("td",{staticClass:"el-table_1_column_3",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell"},["array"==e.type||"object"==e.type?a("el-button",{attrs:{type:"text"},on:{click:function(a){t.handleAdd(e,e.currentKey,s,e.level)}}},[t._v("添加子属性")]):t._e(),t._v(" "),2!=e.level?a("el-button",{attrs:{type:"text"},on:{click:function(a){t.handleDel(e.parentKey,e.currentKey,s,e.level)}}},[t._v("删除")]):t._e()],1)])])])]),t._v(" "),"array"==e.type&&Object.keys(e.items.properties).length?a("body-row",{key:s+"122"+l,staticClass:"el-table__row",staticStyle:{"padding-left":"10px"},attrs:{itemData:e.items}}):t._e(),t._v(" "),"object"==e.type&&Object.keys(e.properties).length?a("body-row",{key:s+"122"+l,staticClass:"el-table__row",staticStyle:{"padding-left":"10px"},attrs:{itemData:e}}):t._e()]})],2)},staticRenderFns:[]};var b=a("VU/8")(f,v,!1,function(t){a("DtbT")},"data-v-557ec6dc",null).exports,_={name:"create-front",components:{limitTextarea:s.a,limitInput:i.a,headerParam:m,bodyParam:b},data:function(){return{apiInfoData:{protocol:"http",originType:"header",frontParams:{}},frontData:{type:"object",level:1,properties:{root:{level:2,currentKey:"root",originType:"header",type:"object",isBackendField:0,defaultVal:"val",isRootKey:0,rootKey:"",objectClass:"",description:"描述",example:"示例",check:!0,properties:{}}}},rules:{interfaceName:[{required:!0,message:"请输入API名称",trigger:"blur"}],interfaceUrl:[{required:!0,message:"请输入请求路径",trigger:"blur"}]}}},methods:{refreshData:function(t){this.frontData=t},submitback:function(){this.$emit("submitBack")},submitForm:function(t){this.$refs[t].validate(function(t){if(!t)return!1})}},mounted:function(){console.log(this.$store)}},h={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"base-info-show border-box"},[a("el-form",{ref:"baseForm",attrs:{"label-width":"104px",model:t.apiInfoData,rules:t.rules}},[a("el-form-item",{attrs:{label:"协议:",prop:"protocol"}},[t._v(t._s(t.apiInfoData.protocol))]),t._v(" "),a("el-form-item",{attrs:{label:"请求方法:",prop:"requestType"}},[a("el-select",{attrs:{placeholder:"请选择"},model:{value:t.apiInfoData.requestType,callback:function(e){t.$set(t.apiInfoData,"requestType",e)},expression:"apiInfoData.requestType"}},[a("el-option",{attrs:{label:"GET",value:"GET"}}),t._v(" "),a("el-option",{attrs:{label:"POST",value:"POST"}})],1)],1),t._v(" "),a("el-form-item",{staticClass:"color-303133 font-w-700",attrs:{label:"参数配置"}}),t._v(" "),a("el-form-item",{attrs:{label:"参数位置:"}},[a("div",{staticClass:"font-14 color-303133"},[t._v("header")])]),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("header-param",{ref:"frontHeaderTable",attrs:{itemData:t.frontData,originType:"header"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"参数位置:"}},[a("div",{staticClass:"font-14 color-303133"},[t._v("query")])]),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("header-param",{ref:"frontQueryTable",attrs:{itemData:t.frontData,originType:"query"}})],1),t._v(" "),"POST"==t.apiInfoData.requestType?a("el-form-item",{attrs:{label:"参数位置:"}},[a("div",{staticClass:"font-14 color-303133"},[t._v("body")])]):t._e(),t._v(" "),"POST"==t.apiInfoData.requestType?a("el-form-item",{attrs:{label:""}},[a("div",{staticClass:"body-param-wrap"},[a("div",{staticClass:"el-table el-table--fit el-table--enable-row-hover el-table--enable-row-transition",staticStyle:{width:"100%","table-layout":"fixed"}},[a("div",{staticClass:"el-table__header-wrapper"},[a("table",{staticClass:"el-table__header",staticStyle:{width:"100%","table-layout":"fixed"},attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[a("thead",{staticClass:"has-gutter"},[a("tr",{},[a("th",{staticClass:"el-table_1_column_1 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"},[t._v("参数名")])]),t._v(" "),a("th",{staticClass:"el-table_1_column_2 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"},[t._v("参数类型")])]),t._v(" "),a("th",{staticClass:"el-table_1_column_3 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"},[t._v("必选")])]),t._v(" "),a("th",{staticClass:"el-table_1_column_4 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"},[t._v("默认值")])]),t._v(" "),a("th",{staticClass:"el-table_1_column_5 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"},[t._v("示例")])]),t._v(" "),a("th",{staticClass:"el-table_1_column_6 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"},[t._v("描述")])]),t._v(" "),a("th",{staticClass:"el-table_1_column_7 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"},[t._v("操作")])])])])])]),t._v(" "),a("div",{staticClass:"el-table__body-wrapper is-scrolling-none"},[a("div",{staticClass:"table-content"},[a("body-param",{ref:"frontBodyTable",attrs:{itemData:t.frontData,originType:"body"},on:{refreshData:t.refreshData}})],1)])])])]):t._e(),t._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:t.submitback}},[t._v("上一步")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.submitForm("baseForm")}}},[t._v("下一步")])],1)],1)],1)},staticRenderFns:[]};var y=a("VU/8")(_,h,!1,function(t){a("lCKr")},"data-v-40ba76d1",null).exports,C=a("P9l9"),g={name:"createApi",components:{navBread:l.a,createBase:o,createFront:y},data:function(){return{navPath:[{name:"API管理",path:"/apiProgram"},{name:"API列表",path:"/apiList"},{name:"创建API",path:""}],activeStep:1,stepData:[{stepName:"基础信息"},{stepName:"前端配置"},{stepName:"后端配置"},{stepName:"定义返回"}]}},methods:{submitNext:function(){this.activeStep++},submitBack:function(){this.activeStep--},getData:function(){var t=this,e={project:t.repProjectName,router:t.pathName,requestProject:t.repProjectName};Object(C.a)("/haoban-manage-web/menu-detail",e).then(function(e){var a=e.data;if(1==a.errorCode)return a.result?void 0:void t.$message.error({duration:1e3,message:"暂无数据"});t.$message.error({duration:1e3,message:a.message})}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{$route:{handler:function(t,e){},deep:!0}},mounted:function(){this.$emit("showTab",22)}},D={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"api-body-content border-box"},[a("div",{staticClass:"common-nav"},[a("nav-bread",{attrs:{navPath:t.navPath}})],1),t._v(" "),a("div",{staticClass:"api-body-main common-body-main border-box"},[a("div",{staticClass:"api-main-content border-box"},[a("div",{staticClass:"create-api-body"},[a("div",{staticClass:"create-api-step font-0"},t._l(t.stepData,function(e,l){return a("div",{key:l+e.stepName,class:["api-step-cell inline-block border-box",l+1==t.activeStep?"active-step":""],style:{width:100/t.stepData.length+"%","max-width":100/t.stepData.length+"%"}},[a("div",{staticClass:"api-step-cell_inner border-box"},[l<t.stepData.length-1?a("div",{staticClass:"api-step-cell_line"}):t._e(),t._v(" "),a("div",{staticClass:"api-step-cell_title"},[a("div",{staticClass:"el-step__icon is-text inline-block"},[a("div",{staticClass:"el-step__icon-inner font-14"},[t._v(t._s(l+1))])]),t._v(" "),a("div",{staticClass:"api-step-cell_txt p-lr-10 bg-fff inline-block font-16"},[t._v(t._s(e.stepName))])])])])})),t._v(" "),"2"==t.activeStep?a("div",{staticClass:"create-api-base"},[a("create-base",{on:{submitNext:t.submitNext}})],1):t._e(),t._v(" "),"1"==t.activeStep?a("div",{staticClass:"create-api-front"},[a("create-front",{on:{submitBack:t.submitBack,submitNext:t.submitNext}})],1):t._e()])])])])},staticRenderFns:[]};var x=a("VU/8")(g,D,!1,function(t){a("4egr")},"data-v-3e97579a",null);e.default=x.exports},dMXr:function(t,e){},lCKr:function(t,e){},yc77:function(t,e){}});
\ No newline at end of file
webpackJsonp([5],{"3OG2":function(e,t){},"5TZM":function(e,t){},"7Otq":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAohJREFUSA3llr9vjlEUx/u0fkVaWiQGtPEGVYnBJMwmE5PJwtbBYqhB/AESQUSnpiFCaMTAJKIq1GBQNWgTQyPKIKlfg2q1fX2+b+6t+97nXs9zG1tP8nnvueeec773+f1mDYlWrVb3UHIQqjCcZdl4SossJRmxbeSfAFsn0T5EP5bt01g20eR1MVoxheR3yilrqYI/A42nA7FoKFVwhE5fnW5f8F8780LXPT2FyUrgOq5hOAILcJ/r94uxtK0onWkSJYDoFNO5VDG1SBZETDVrYV4+onNqVNYKTylNV9JMj0OHYSuj3ajEPsB7wyQb+I0ftaAgIluo0CMgEfllb655cvVMagNjiH9irLNYo29kzcAmiOXUNTKTJlOjG+l7KCHW7AHJ++AqDIHEi0wig9AL++Ee5CwmuJHMy/AK2uASPINZ8E2xp6CczTAKF0B1OYsJ2sSdONrpQ/gB2sQL0M2im2MYJGSPbgC/AmnGTTMKvi0QuAUd0ALNUIEBCNnL0qpUvwl1MDE9+EfhGMyYWGgICtrnyd+MPjsxW83CLtC4KpYUixddw1jdkuPLV/Daks/Z38Jgj9wp5XbbTc0ZOA93IdVuU3ARztJrh19cu0tZaGfhAOgd2g/XefH2MOqDe5zhCqzX/B+mfwLd1ElQdXqvDjKeZNwA+oc3qYXDoGfLmt6HdcZCOzyxCYw9cM6ZP8LXV2XRmGfw3MmZxj8kwbdOUK7EmxcrjUOsEU6bdSuoJqcg95kj1gaz4NqIdqF3ZIsnUOHwJ7xYbUr+XpztoMuhb95YbcH7IU9/H8e98JSO8A64piPO7dgrLJzSowneuY3xb0iwFST6GR6DvhD/xejVBUOg3jdh3R/Z4PK7K+X7nwAAAABJRU5ErkJggg=="},JXTs:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("mvHQ"),i=a.n(n),r=a("P9l9"),o=a("LlAa"),s=a("TUB1"),c={name:"vue-api-header",data:function(){return{baseInfo:{}}},methods:{toLoginOut:function(){var e=this;e.$confirm("确认退出吗?","提示",{type:"warning"}).then(function(){e.postLoginOut()}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},postLoginOut:function(){var e=this;Object(r.a)("/gateway-manage/invalidate",{}).then(function(t){var a=t.data;if("0000"==a.code)return s.a.showmsg("退出成功","success"),e.$store.dispatch("clearUserInfo"),e.$router.push("/login"),!1;o.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getUserInfo:function(){var e=this;Object(r.a)("/gateway-manage/get-login-userInfo",{}).then(function(t){var a=t.data;if("0000"==a.code)return e.baseInfo=a.result,localStorage.removeItem("userInfo"),void localStorage.setItem("userInfo",i()(a.result));o.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{$route:{handler:function(e,t){},deep:!0}},mounted:function(){this.pathName=this.$route.path,this.getUserInfo()}},l={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"api-header"},[a("div",{staticClass:"api-header-wrap border-box flex flex-space-between"},[e._m(0),e._v(" "),a("div",{staticClass:"api-header-right"},[a("div",{staticClass:"api-header-right_info"},[a("span",{staticClass:"api-header-message"},[e._v("消息")]),e._v(" "),a("el-popover",{staticStyle:{"min-width":"95px","margin-left":"10px"},attrs:{placement:"bottom",title:"",width:"95",trigger:"hover","popper-class":"user-header-pop"}},[a("ul",{staticClass:"navsuerwrap"},[a("li",{staticClass:"user-item loginout",staticStyle:{"text-align":"center"},on:{click:function(t){return t.stopPropagation(),e.toLoginOut(t)}}},[a("a",{staticClass:"usertext "},[e._v("退出登录")])])]),e._v(" "),a("div",{staticClass:"nav-user-name",staticStyle:{display:"inline-block"},attrs:{slot:"reference"},slot:"reference"},[a("a",{staticClass:"user-left-img flex flex-align-center"},[a("img",{staticStyle:{width:"30px",height:"30px","border-radius":"15px","padding-right":"2px"},attrs:{src:e.baseInfo.avatar,alt:""}}),a("span",{staticClass:"color-fff font-14 p-r-14"},[e._v(e._s(e.baseInfo.userName))]),a("i",{staticClass:"el-icon-arrow-down font-14 color-fff"})])])])],1)])])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"api-header-left"},[t("img",{attrs:{src:a("7Otq"),alt:""}}),t("span",{staticClass:"color-fff "},[this._v("API网关管理后台")])])}]};var d=a("VU/8")(c,l,!1,function(e){a("zlfk")},"data-v-9d63dad0",null).exports,b={name:"vue-api-aside",props:{activeSelTab:{type:String,default:function(){return"1"}}},data:function(){return{activeTab:this.activeSelTab,leftMenuData:[{tabId:1,tabCode:1,tabName:"概览",tabIcon:"icongailan-",collapsFlag:!1,tabUrl:"/overview",children:[]},{tabId:2,tabCode:2,tabName:"API管理",tabIcon:"iconapi",collapsFlag:!0,tabUrl:"/apiProgram",children:[{tabId:21,tabCode:21,tabName:"项目列表",tabIcon:"",tabUrl:"/apiProgram"},{tabId:22,tabCode:22,tabName:"API列表",tabIcon:"",tabUrl:"/apiList"}]},{tabId:3,tabCode:3,tabName:"环境管理",tabIcon:"iconhuanjingguanli",collapsFlag:!1,tabUrl:"/envManage",children:[]},{tabId:4,tabCode:4,tabName:"发布记录",tabIcon:"iconfabu",collapsFlag:!1,tabUrl:"/releaseRecords",children:[]},{tabId:5,tabCode:5,tabName:"插件管理",tabIcon:"iconchajianguanli",collapsFlag:!1,tabUrl:"/pluginManage",children:[]},{tabId:6,tabCode:6,tabName:"错误码",tabIcon:"iconcuowu",collapsFlag:!1,tabUrl:"/errorCode",children:[]},{tabId:7,tabCode:7,tabName:"预警系统",tabIcon:"iconRectangleCopy",collapsFlag:!1,tabUrl:"/",children:[]},{tabId:8,tabCode:8,tabName:"日志管理",tabIcon:"iconrizhiguanli",collapsFlag:!1,tabUrl:"/",children:[]},{tabId:9,tabCode:9,tabName:"权限管理",tabIcon:"iconquanxian",collapsFlag:!1,tabUrl:"/",children:[]}]}},methods:{selectTab:function(e,t,a){if(t?this.leftMenuData[a].onlyIconActive=!0:(this.leftMenuData.forEach(function(e){e.onlyIconActive=!1}),e.collapsFlag=!(e.collapsFlag&&e.hasOwnProperty("children")&&e.children.length>0),this.$forceUpdate()),e.hasOwnProperty("children")&&e.children.length>0)return this.leftMenuData[a].onlyIconActive=!0,e.children[0].hasOwnProperty("children")&&e.children[0].hasOwnProperty("children").length>0?(this.activeTab=e.children[0].children[0].tabCode,this.$emit("setSelectTab",e),!1):(this.activeTab=e.children[0].tabCode,this.$emit("setSelectTab",e),!1);this.activeTab=e.tabCode,this.$emit("setSelectTab",e)},getLeftMenu:function(){var e=this,t={project:e.repProjectName,router:e.pathName,requestProject:e.repProjectName};Object(r.a)("/haoban-manage-web/menu-detail",t).then(function(t){var a=t.data;if(1==a.errorCode)return a.result?void 0:void e.$message.error({duration:1e3,message:"暂无数据"});e.$message.error({duration:1e3,message:a.message})}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{$route:{handler:function(e,t){},deep:!0},activeSelTab:function(e,t){this.activeTab=e}},mounted:function(){this.activeTab=this.activeSelTab}},h={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"api-body-left border-box"},[a("ul",{staticClass:"tab-left-list border-box"},[e._l(e.leftMenuData,function(t,n){return[a("li",{key:n,class:["tab-left-list-cell color-606266 font-14 border-box my-first-level",t.tabCode==e.activeTab?"active-tab":""],on:{click:function(a){e.selectTab(t,!1,n)}}},[a("i",{class:["iconfont tab-icon",t.tabIcon,t.onlyIconActive?"iconActive":""]}),e._v(e._s(t.tabName)+"\n ")]),e._v(" "),t.collapsFlag?a("ul",{key:"childitem"+n,staticClass:"child-tab-left-list"},[e._l(t.children,function(t,i){return[a("li",{key:i,class:["tab-left-list-cell color-606266 font-14 border-box",t.tabCode==e.activeTab?"active-tab":""],on:{click:function(a){e.selectTab(t,"child",n)}}},[e._v(e._s(t.tabName))])]})],2):e._e()]})],2)])},staticRenderFns:[]};var u={name:"index",data:function(){return{projectName:"haoban-manage-web",windowH:window.screen.height-104-56-40+"px",collapseFlag:!1,activeSelTab:""}},methods:{changeRoute:function(e){this.$router.push(e)},toRouterView:function(e){this.$router.push({path:e.path})},showTab:function(e){this.activeSelTab=e},setSelectTab:function(e){var t=e.tabCode;e.hasOwnProperty("children")&&e.children.length&&(t=e.children[0].tabCode,e.children[0].hasOwnProperty("children")&&e.children[0].hasOwnProperty("children").length&&(t=e.children[0].children[0].tabCode)),this.$router.push({path:e.tabUrl,query:{tabCode:t}})},getDataOverview:function(){}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-204+"px"},components:{vueApiHeader:d,vueApiAside:a("VU/8")(b,h,!1,function(e){a("3OG2")},"data-v-ab24bd8c",null).exports}},f={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"index"}},[t("vue-api-header"),this._v(" "),t("div",{staticClass:"api-body border-box",style:{height:this.windowH}},[t("div",{staticClass:"api-body-wrap flex border-box"},[t("vue-api-aside",{attrs:{activeSelTab:this.activeSelTab},on:{setSelectTab:this.setSelectTab}}),this._v(" "),t("div",{staticClass:"api-body-right border-box"},[t("transition",{attrs:{name:"fade",mode:"out-in"}},[t("router-view",{on:{showTab:this.showTab}})],1)],1)],1)])],1)},staticRenderFns:[]};var g=a("VU/8")(u,f,!1,function(e){a("5TZM")},null,null);t.default=g.exports},zlfk:function(e,t){}});
\ No newline at end of file
webpackJsonp([5],{H6Jm:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAbCAYAAABvCO8sAAAAAXNSR0IArs4c6QAAAu9JREFUSA3lVjtoFFEUPXd2ExRiI4iIKCSFGCKKjT8UlTR+QYR8bMTGaCGCjYTsCoNkY8BGMIVoIxaSzYKIaNAIiWIhwUobbSQkwR+CICpK2JnnuePO+nYyyWQCVr5lMvdz7jlv7rybXUHK1dlndvk+tmqZ42B8sEeepaFw0oCPXTQtvodWGDTopbbG0nCkEvQcNEXJ42JRjO2nEoSDL3ZxYMfFZoH+BlIJmhm8EGAyLFdbY6H/z+7tveawXosRyC6miAfm56LqWMSuLHy5rsm+yWKVL9itVY7B0/VlfHBdKS+UZV7BE65ZMpPBGt/BWuPzEqzm09V2RVAWg3fiYMrxMVXvYfqmK7/m2kCsYEe/2WTK2M7nXwk/XRd4kg0/nySL58VueRkVjj2lHOhL8DBBsffRgkRfawQTAUcMOFaQO9xvMriPDDawVfcImo6prQkpRrFaYwxryVEDqDjxgn+SWb63s77BY0+wVDK4zXZNzSJhTHOKUazWEFP7nq2iORMWZjntqyR6zVadM8AYd7lH8z7whIdgHXN36TZrLGktRDDgoFAz2/RQBMPFvBzUIIf/Adt3IEnEzs/XUhtXtSlcFbDtKiDBSC2YwJeY/k8FeTCGEnuTAJiLY1ZL23rNFp7GfRyBAjknE3jj0pNBLTkCrggiGIu2PrMiY7CRw1vmcN3h6cuVcjLQ1m8ui4drPPqdkbpYl081yP9Qp0vd8pViHyk83N5vjjoe6sj9qtQjn6WzYFo9Ewxug7JwkG8M5aXLZuwomOMc8gE++TKNl/Kk5iIp98Yl+MZWnSnm5FbgV/5wTq8TcLLifs8IjvAbBVcYCMQ0QcC2CqB6UyKnDptJPF4NhgZjmouKaTrC1aBa+g4bw1q9c+9Nth/axfPytmUHdvLResMYN1DQmOaqMcuI4WrMsiljxByycKOWXWO6e4Nv9gthkO85Xwqd+Lty2b99Rh3UBz0e4W5+8HpUD5yKr00fVS7lVG5Wj5g6dP0G1knsu3TLcRIAAAAASUVORK5CYII="},NC6I:function(module,exports,__webpack_require__){(function(process,global){var __WEBPACK_AMD_DEFINE_RESULT__;
webpackJsonp([6],{H6Jm:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAbCAYAAABvCO8sAAAAAXNSR0IArs4c6QAAAu9JREFUSA3lVjtoFFEUPXd2ExRiI4iIKCSFGCKKjT8UlTR+QYR8bMTGaCGCjYTsCoNkY8BGMIVoIxaSzYKIaNAIiWIhwUobbSQkwR+CICpK2JnnuePO+nYyyWQCVr5lMvdz7jlv7rybXUHK1dlndvk+tmqZ42B8sEeepaFw0oCPXTQtvodWGDTopbbG0nCkEvQcNEXJ42JRjO2nEoSDL3ZxYMfFZoH+BlIJmhm8EGAyLFdbY6H/z+7tveawXosRyC6miAfm56LqWMSuLHy5rsm+yWKVL9itVY7B0/VlfHBdKS+UZV7BE65ZMpPBGt/BWuPzEqzm09V2RVAWg3fiYMrxMVXvYfqmK7/m2kCsYEe/2WTK2M7nXwk/XRd4kg0/nySL58VueRkVjj2lHOhL8DBBsffRgkRfawQTAUcMOFaQO9xvMriPDDawVfcImo6prQkpRrFaYwxryVEDqDjxgn+SWb63s77BY0+wVDK4zXZNzSJhTHOKUazWEFP7nq2iORMWZjntqyR6zVadM8AYd7lH8z7whIdgHXN36TZrLGktRDDgoFAz2/RQBMPFvBzUIIf/Adt3IEnEzs/XUhtXtSlcFbDtKiDBSC2YwJeY/k8FeTCGEnuTAJiLY1ZL23rNFp7GfRyBAjknE3jj0pNBLTkCrggiGIu2PrMiY7CRw1vmcN3h6cuVcjLQ1m8ui4drPPqdkbpYl081yP9Qp0vd8pViHyk83N5vjjoe6sj9qtQjn6WzYFo9Ewxug7JwkG8M5aXLZuwomOMc8gE++TKNl/Kk5iIp98Yl+MZWnSnm5FbgV/5wTq8TcLLifs8IjvAbBVcYCMQ0QcC2CqB6UyKnDptJPF4NhgZjmouKaTrC1aBa+g4bw1q9c+9Nth/axfPytmUHdvLResMYN1DQmOaqMcuI4WrMsiljxByycKOWXWO6e4Nv9gthkO85Xwqd+Lty2b99Rh3UBz0e4W5+8HpUD5yKr00fVS7lVG5Wj5g6dP0G1knsu3TLcRIAAAAASUVORK5CYII="},NC6I:function(module,exports,__webpack_require__){(function(process,global){var __WEBPACK_AMD_DEFINE_RESULT__;
/**
* [js-md5]{@link https://github.com/emn178/js-md5}
*
......@@ -17,4 +17,4 @@ webpackJsonp([5],{H6Jm:function(t,e){t.exports="data:image/png;base64,iVBORw0KGg
* @copyright Chen, Yi-Cyuan 2014-2017
* @license MIT
*/
!function(){"use strict";var ERROR="input is invalid type",WINDOW="object"==typeof window,root=WINDOW?window:{};root.JS_MD5_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"==typeof self,NODE_JS=!root.JS_MD5_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_MD5_NO_COMMON_JS&&"object"==typeof module&&module.exports,AMD=__webpack_require__("nErl"),ARRAY_BUFFER=!root.JS_MD5_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[128,32768,8388608,-2147483648],SHIFT=[0,8,16,24],OUTPUT_TYPES=["hex","array","digest","buffer","arrayBuffer","base64"],BASE64_ENCODE_CHAR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),blocks=[],buffer8;if(ARRAY_BUFFER){var buffer=new ArrayBuffer(68);buffer8=new Uint8Array(buffer),blocks=new Uint32Array(buffer)}!root.JS_MD5_NO_NODE_JS&&Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),!ARRAY_BUFFER||!root.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});var createOutputMethod=function(t){return function(e){return new Md5(!0).update(e)[t]()}},createMethod=function(){var t=createOutputMethod("hex");NODE_JS&&(t=nodeWrap(t)),t.create=function(){return new Md5},t.update=function(e){return t.create().update(e)};for(var e=0;e<OUTPUT_TYPES.length;++e){var r=OUTPUT_TYPES[e];t[r]=createOutputMethod(r)}return t},nodeWrap=function(method){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),nodeMethod=function(t){if("string"==typeof t)return crypto.createHash("md5").update(t,"utf8").digest("hex");if(null===t||void 0===t)throw ERROR;return t.constructor===ArrayBuffer&&(t=new Uint8Array(t)),Array.isArray(t)||ArrayBuffer.isView(t)||t.constructor===Buffer?crypto.createHash("md5").update(new Buffer(t)).digest("hex"):method(t)};return nodeMethod};function Md5(t){if(t)blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks,this.buffer8=buffer8;else if(ARRAY_BUFFER){var e=new ArrayBuffer(68);this.buffer8=new Uint8Array(e),this.blocks=new Uint32Array(e)}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}Md5.prototype.update=function(t){if(!this.finalized){var e,r=typeof t;if("string"!==r){if("object"!==r)throw ERROR;if(null===t)throw ERROR;if(ARRAY_BUFFER&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||ARRAY_BUFFER&&ArrayBuffer.isView(t)))throw ERROR;e=!0}for(var s,o,i=0,a=t.length,n=this.blocks,h=this.buffer8;i<a;){if(this.hashed&&(this.hashed=!1,n[0]=n[16],n[16]=n[1]=n[2]=n[3]=n[4]=n[5]=n[6]=n[7]=n[8]=n[9]=n[10]=n[11]=n[12]=n[13]=n[14]=n[15]=0),e)if(ARRAY_BUFFER)for(o=this.start;i<a&&o<64;++i)h[o++]=t[i];else for(o=this.start;i<a&&o<64;++i)n[o>>2]|=t[i]<<SHIFT[3&o++];else if(ARRAY_BUFFER)for(o=this.start;i<a&&o<64;++i)(s=t.charCodeAt(i))<128?h[o++]=s:s<2048?(h[o++]=192|s>>6,h[o++]=128|63&s):s<55296||s>=57344?(h[o++]=224|s>>12,h[o++]=128|s>>6&63,h[o++]=128|63&s):(s=65536+((1023&s)<<10|1023&t.charCodeAt(++i)),h[o++]=240|s>>18,h[o++]=128|s>>12&63,h[o++]=128|s>>6&63,h[o++]=128|63&s);else for(o=this.start;i<a&&o<64;++i)(s=t.charCodeAt(i))<128?n[o>>2]|=s<<SHIFT[3&o++]:s<2048?(n[o>>2]|=(192|s>>6)<<SHIFT[3&o++],n[o>>2]|=(128|63&s)<<SHIFT[3&o++]):s<55296||s>=57344?(n[o>>2]|=(224|s>>12)<<SHIFT[3&o++],n[o>>2]|=(128|s>>6&63)<<SHIFT[3&o++],n[o>>2]|=(128|63&s)<<SHIFT[3&o++]):(s=65536+((1023&s)<<10|1023&t.charCodeAt(++i)),n[o>>2]|=(240|s>>18)<<SHIFT[3&o++],n[o>>2]|=(128|s>>12&63)<<SHIFT[3&o++],n[o>>2]|=(128|s>>6&63)<<SHIFT[3&o++],n[o>>2]|=(128|63&s)<<SHIFT[3&o++]);this.lastByteIndex=o,this.bytes+=o-this.start,o>=64?(this.start=o-64,this.hash(),this.hashed=!0):this.start=o}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Md5.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex;t[e>>2]|=EXTRA[3&e],e>=56&&(this.hashed||this.hash(),t[0]=t[16],t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.bytes<<3,t[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},Md5.prototype.hash=function(){var t,e,r,s,o,i,a=this.blocks;this.first?e=((e=((t=((t=a[0]-680876937)<<7|t>>>25)-271733879<<0)^(r=((r=(-271733879^(s=((s=(-1732584194^2004318071&t)+a[1]-117830708)<<12|s>>>20)+t<<0)&(-271733879^t))+a[2]-1126478375)<<17|r>>>15)+s<<0)&(s^t))+a[3]-1316259209)<<22|e>>>10)+r<<0:(t=this.h0,e=this.h1,r=this.h2,e=((e+=((t=((t+=((s=this.h3)^e&(r^s))+a[0]-680876936)<<7|t>>>25)+e<<0)^(r=((r+=(e^(s=((s+=(r^t&(e^r))+a[1]-389564586)<<12|s>>>20)+t<<0)&(t^e))+a[2]+606105819)<<17|r>>>15)+s<<0)&(s^t))+a[3]-1044525330)<<22|e>>>10)+r<<0),e=((e+=((t=((t+=(s^e&(r^s))+a[4]-176418897)<<7|t>>>25)+e<<0)^(r=((r+=(e^(s=((s+=(r^t&(e^r))+a[5]+1200080426)<<12|s>>>20)+t<<0)&(t^e))+a[6]-1473231341)<<17|r>>>15)+s<<0)&(s^t))+a[7]-45705983)<<22|e>>>10)+r<<0,e=((e+=((t=((t+=(s^e&(r^s))+a[8]+1770035416)<<7|t>>>25)+e<<0)^(r=((r+=(e^(s=((s+=(r^t&(e^r))+a[9]-1958414417)<<12|s>>>20)+t<<0)&(t^e))+a[10]-42063)<<17|r>>>15)+s<<0)&(s^t))+a[11]-1990404162)<<22|e>>>10)+r<<0,e=((e+=((t=((t+=(s^e&(r^s))+a[12]+1804603682)<<7|t>>>25)+e<<0)^(r=((r+=(e^(s=((s+=(r^t&(e^r))+a[13]-40341101)<<12|s>>>20)+t<<0)&(t^e))+a[14]-1502002290)<<17|r>>>15)+s<<0)&(s^t))+a[15]+1236535329)<<22|e>>>10)+r<<0,e=((e+=((s=((s+=(e^r&((t=((t+=(r^s&(e^r))+a[1]-165796510)<<5|t>>>27)+e<<0)^e))+a[6]-1069501632)<<9|s>>>23)+t<<0)^t&((r=((r+=(t^e&(s^t))+a[11]+643717713)<<14|r>>>18)+s<<0)^s))+a[0]-373897302)<<20|e>>>12)+r<<0,e=((e+=((s=((s+=(e^r&((t=((t+=(r^s&(e^r))+a[5]-701558691)<<5|t>>>27)+e<<0)^e))+a[10]+38016083)<<9|s>>>23)+t<<0)^t&((r=((r+=(t^e&(s^t))+a[15]-660478335)<<14|r>>>18)+s<<0)^s))+a[4]-405537848)<<20|e>>>12)+r<<0,e=((e+=((s=((s+=(e^r&((t=((t+=(r^s&(e^r))+a[9]+568446438)<<5|t>>>27)+e<<0)^e))+a[14]-1019803690)<<9|s>>>23)+t<<0)^t&((r=((r+=(t^e&(s^t))+a[3]-187363961)<<14|r>>>18)+s<<0)^s))+a[8]+1163531501)<<20|e>>>12)+r<<0,e=((e+=((s=((s+=(e^r&((t=((t+=(r^s&(e^r))+a[13]-1444681467)<<5|t>>>27)+e<<0)^e))+a[2]-51403784)<<9|s>>>23)+t<<0)^t&((r=((r+=(t^e&(s^t))+a[7]+1735328473)<<14|r>>>18)+s<<0)^s))+a[12]-1926607734)<<20|e>>>12)+r<<0,e=((e+=((i=(s=((s+=((o=e^r)^(t=((t+=(o^s)+a[5]-378558)<<4|t>>>28)+e<<0))+a[8]-2022574463)<<11|s>>>21)+t<<0)^t)^(r=((r+=(i^e)+a[11]+1839030562)<<16|r>>>16)+s<<0))+a[14]-35309556)<<23|e>>>9)+r<<0,e=((e+=((i=(s=((s+=((o=e^r)^(t=((t+=(o^s)+a[1]-1530992060)<<4|t>>>28)+e<<0))+a[4]+1272893353)<<11|s>>>21)+t<<0)^t)^(r=((r+=(i^e)+a[7]-155497632)<<16|r>>>16)+s<<0))+a[10]-1094730640)<<23|e>>>9)+r<<0,e=((e+=((i=(s=((s+=((o=e^r)^(t=((t+=(o^s)+a[13]+681279174)<<4|t>>>28)+e<<0))+a[0]-358537222)<<11|s>>>21)+t<<0)^t)^(r=((r+=(i^e)+a[3]-722521979)<<16|r>>>16)+s<<0))+a[6]+76029189)<<23|e>>>9)+r<<0,e=((e+=((i=(s=((s+=((o=e^r)^(t=((t+=(o^s)+a[9]-640364487)<<4|t>>>28)+e<<0))+a[12]-421815835)<<11|s>>>21)+t<<0)^t)^(r=((r+=(i^e)+a[15]+530742520)<<16|r>>>16)+s<<0))+a[2]-995338651)<<23|e>>>9)+r<<0,e=((e+=((s=((s+=(e^((t=((t+=(r^(e|~s))+a[0]-198630844)<<6|t>>>26)+e<<0)|~r))+a[7]+1126891415)<<10|s>>>22)+t<<0)^((r=((r+=(t^(s|~e))+a[14]-1416354905)<<15|r>>>17)+s<<0)|~t))+a[5]-57434055)<<21|e>>>11)+r<<0,e=((e+=((s=((s+=(e^((t=((t+=(r^(e|~s))+a[12]+1700485571)<<6|t>>>26)+e<<0)|~r))+a[3]-1894986606)<<10|s>>>22)+t<<0)^((r=((r+=(t^(s|~e))+a[10]-1051523)<<15|r>>>17)+s<<0)|~t))+a[1]-2054922799)<<21|e>>>11)+r<<0,e=((e+=((s=((s+=(e^((t=((t+=(r^(e|~s))+a[8]+1873313359)<<6|t>>>26)+e<<0)|~r))+a[15]-30611744)<<10|s>>>22)+t<<0)^((r=((r+=(t^(s|~e))+a[6]-1560198380)<<15|r>>>17)+s<<0)|~t))+a[13]+1309151649)<<21|e>>>11)+r<<0,e=((e+=((s=((s+=(e^((t=((t+=(r^(e|~s))+a[4]-145523070)<<6|t>>>26)+e<<0)|~r))+a[11]-1120210379)<<10|s>>>22)+t<<0)^((r=((r+=(t^(s|~e))+a[2]+718787259)<<15|r>>>17)+s<<0)|~t))+a[9]-343485551)<<21|e>>>11)+r<<0,this.first?(this.h0=t+1732584193<<0,this.h1=e-271733879<<0,this.h2=r-1732584194<<0,this.h3=s+271733878<<0,this.first=!1):(this.h0=this.h0+t<<0,this.h1=this.h1+e<<0,this.h2=this.h2+r<<0,this.h3=this.h3+s<<0)},Md5.prototype.hex=function(){this.finalize();var t=this.h0,e=this.h1,r=this.h2,s=this.h3;return HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[s>>4&15]+HEX_CHARS[15&s]+HEX_CHARS[s>>12&15]+HEX_CHARS[s>>8&15]+HEX_CHARS[s>>20&15]+HEX_CHARS[s>>16&15]+HEX_CHARS[s>>28&15]+HEX_CHARS[s>>24&15]},Md5.prototype.toString=Md5.prototype.hex,Md5.prototype.digest=function(){this.finalize();var t=this.h0,e=this.h1,r=this.h2,s=this.h3;return[255&t,t>>8&255,t>>16&255,t>>24&255,255&e,e>>8&255,e>>16&255,e>>24&255,255&r,r>>8&255,r>>16&255,r>>24&255,255&s,s>>8&255,s>>16&255,s>>24&255]},Md5.prototype.array=Md5.prototype.digest,Md5.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(16),e=new Uint32Array(t);return e[0]=this.h0,e[1]=this.h1,e[2]=this.h2,e[3]=this.h3,t},Md5.prototype.buffer=Md5.prototype.arrayBuffer,Md5.prototype.base64=function(){for(var t,e,r,s="",o=this.array(),i=0;i<15;)t=o[i++],e=o[i++],r=o[i++],s+=BASE64_ENCODE_CHAR[t>>>2]+BASE64_ENCODE_CHAR[63&(t<<4|e>>>4)]+BASE64_ENCODE_CHAR[63&(e<<2|r>>>6)]+BASE64_ENCODE_CHAR[63&r];return t=o[i],s+=BASE64_ENCODE_CHAR[t>>>2]+BASE64_ENCODE_CHAR[t<<4&63]+"=="};var exports=createMethod();COMMON_JS?module.exports=exports:(root.md5=exports,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))}()}).call(exports,__webpack_require__("W2nU"),__webpack_require__("DuR2"))},PLJ1:function(t,e){},"T+/8":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=r("jvWE"),o=r("LlAa"),i=r("P9l9"),a=r("NC6I"),n=r.n(a),h={name:"login",data:function(){return{windowH:window.screen.availHeight-104+"px",loginForm:{userName:"",password:"",checked:!1},rules:{userName:[{required:!0,message:"请输入账号",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}]}}},computed:{},methods:{toRouterView:function(t){this.$router.push({path:t.path})},submitForm:Object(s.a)(function(t){var e=this;e.$refs[t].validate(function(t){if(!t)return!1;e.postPassLogin()})},500),postPassLogin:function(){var t=this,e={userName:t.loginForm.userName,password:n()(t.loginForm.password)};Object(i.b)("/gateway-manage/login",e).then(function(t){var e=t.data;1!=e.code&&o.a.errorMsg(e)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){localStorage.getItem("userInfo")&&localStorage.removeItem("userInfo")},components:{}},l={render:function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"login-wrap",style:{height:t.windowH}},[t._m(0),t._v(" "),r("section",[r("div",{staticClass:"login-wrap-body"},[r("div",{staticClass:"login-wrap-form"},[r("div",{staticClass:"form-title font-24 color-303133 text-center"},[t._v("登录")]),t._v(" "),r("el-form",{ref:"loginForm",staticClass:"loginForm",attrs:{model:t.loginForm,rules:t.rules}},[r("el-form-item",{attrs:{label:"",prop:"userName"}},[r("el-input",{staticClass:"w-318",attrs:{placeholder:"请输入账号"},model:{value:t.loginForm.userName,callback:function(e){t.$set(t.loginForm,"userName",e)},expression:"loginForm.userName"}},[r("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),t._v(" "),r("el-form-item",{attrs:{label:"",prop:"password"}},[r("el-input",{staticClass:"w-318",attrs:{type:"password",placeholder:"请输入密码"},model:{value:t.loginForm.password,callback:function(e){t.$set(t.loginForm,"password",e)},expression:"loginForm.password"}},[r("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),t._v(" "),r("el-form-item",{attrs:{label:"",prop:"checked"}},[r("el-checkbox",{model:{value:t.loginForm.checked,callback:function(e){t.$set(t.loginForm,"checked",e)},expression:"loginForm.checked"}},[t._v("记住我的登录状态")])],1),t._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:function(e){t.submitForm("loginForm")}}},[t._v("登录")])],1)],1)],1)])]),t._v(" "),r("div",{staticClass:"login-footer font-12 color-909399"},[t._v("Copyright "+t._s((new Date).getFullYear())+" Demogic.com All Rights Reserved 浙ICP备15033117号-1")])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("header",[e("div",{staticClass:"login-wrap-header"},[e("img",{staticClass:"login-wrap-inline",attrs:{src:r("H6Jm"),alt:"logo"}}),this._v(" "),e("span",{staticClass:"login-wrap-inline"},[this._v("API网关管理后台")])])])}]};var c=r("VU/8")(h,l,!1,function(t){r("PLJ1")},"data-v-eed089c6",null);e.default=c.exports},nErl:function(t,e){(function(e){t.exports=e}).call(e,{})}});
\ No newline at end of file
!function(){"use strict";var ERROR="input is invalid type",WINDOW="object"==typeof window,root=WINDOW?window:{};root.JS_MD5_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"==typeof self,NODE_JS=!root.JS_MD5_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_MD5_NO_COMMON_JS&&"object"==typeof module&&module.exports,AMD=__webpack_require__("nErl"),ARRAY_BUFFER=!root.JS_MD5_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[128,32768,8388608,-2147483648],SHIFT=[0,8,16,24],OUTPUT_TYPES=["hex","array","digest","buffer","arrayBuffer","base64"],BASE64_ENCODE_CHAR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),blocks=[],buffer8;if(ARRAY_BUFFER){var buffer=new ArrayBuffer(68);buffer8=new Uint8Array(buffer),blocks=new Uint32Array(buffer)}!root.JS_MD5_NO_NODE_JS&&Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),!ARRAY_BUFFER||!root.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});var createOutputMethod=function(t){return function(e){return new Md5(!0).update(e)[t]()}},createMethod=function(){var t=createOutputMethod("hex");NODE_JS&&(t=nodeWrap(t)),t.create=function(){return new Md5},t.update=function(e){return t.create().update(e)};for(var e=0;e<OUTPUT_TYPES.length;++e){var r=OUTPUT_TYPES[e];t[r]=createOutputMethod(r)}return t},nodeWrap=function(method){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),nodeMethod=function(t){if("string"==typeof t)return crypto.createHash("md5").update(t,"utf8").digest("hex");if(null===t||void 0===t)throw ERROR;return t.constructor===ArrayBuffer&&(t=new Uint8Array(t)),Array.isArray(t)||ArrayBuffer.isView(t)||t.constructor===Buffer?crypto.createHash("md5").update(new Buffer(t)).digest("hex"):method(t)};return nodeMethod};function Md5(t){if(t)blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks,this.buffer8=buffer8;else if(ARRAY_BUFFER){var e=new ArrayBuffer(68);this.buffer8=new Uint8Array(e),this.blocks=new Uint32Array(e)}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}Md5.prototype.update=function(t){if(!this.finalized){var e,r=typeof t;if("string"!==r){if("object"!==r)throw ERROR;if(null===t)throw ERROR;if(ARRAY_BUFFER&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||ARRAY_BUFFER&&ArrayBuffer.isView(t)))throw ERROR;e=!0}for(var s,o,i=0,a=t.length,n=this.blocks,h=this.buffer8;i<a;){if(this.hashed&&(this.hashed=!1,n[0]=n[16],n[16]=n[1]=n[2]=n[3]=n[4]=n[5]=n[6]=n[7]=n[8]=n[9]=n[10]=n[11]=n[12]=n[13]=n[14]=n[15]=0),e)if(ARRAY_BUFFER)for(o=this.start;i<a&&o<64;++i)h[o++]=t[i];else for(o=this.start;i<a&&o<64;++i)n[o>>2]|=t[i]<<SHIFT[3&o++];else if(ARRAY_BUFFER)for(o=this.start;i<a&&o<64;++i)(s=t.charCodeAt(i))<128?h[o++]=s:s<2048?(h[o++]=192|s>>6,h[o++]=128|63&s):s<55296||s>=57344?(h[o++]=224|s>>12,h[o++]=128|s>>6&63,h[o++]=128|63&s):(s=65536+((1023&s)<<10|1023&t.charCodeAt(++i)),h[o++]=240|s>>18,h[o++]=128|s>>12&63,h[o++]=128|s>>6&63,h[o++]=128|63&s);else for(o=this.start;i<a&&o<64;++i)(s=t.charCodeAt(i))<128?n[o>>2]|=s<<SHIFT[3&o++]:s<2048?(n[o>>2]|=(192|s>>6)<<SHIFT[3&o++],n[o>>2]|=(128|63&s)<<SHIFT[3&o++]):s<55296||s>=57344?(n[o>>2]|=(224|s>>12)<<SHIFT[3&o++],n[o>>2]|=(128|s>>6&63)<<SHIFT[3&o++],n[o>>2]|=(128|63&s)<<SHIFT[3&o++]):(s=65536+((1023&s)<<10|1023&t.charCodeAt(++i)),n[o>>2]|=(240|s>>18)<<SHIFT[3&o++],n[o>>2]|=(128|s>>12&63)<<SHIFT[3&o++],n[o>>2]|=(128|s>>6&63)<<SHIFT[3&o++],n[o>>2]|=(128|63&s)<<SHIFT[3&o++]);this.lastByteIndex=o,this.bytes+=o-this.start,o>=64?(this.start=o-64,this.hash(),this.hashed=!0):this.start=o}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Md5.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex;t[e>>2]|=EXTRA[3&e],e>=56&&(this.hashed||this.hash(),t[0]=t[16],t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.bytes<<3,t[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},Md5.prototype.hash=function(){var t,e,r,s,o,i,a=this.blocks;this.first?e=((e=((t=((t=a[0]-680876937)<<7|t>>>25)-271733879<<0)^(r=((r=(-271733879^(s=((s=(-1732584194^2004318071&t)+a[1]-117830708)<<12|s>>>20)+t<<0)&(-271733879^t))+a[2]-1126478375)<<17|r>>>15)+s<<0)&(s^t))+a[3]-1316259209)<<22|e>>>10)+r<<0:(t=this.h0,e=this.h1,r=this.h2,e=((e+=((t=((t+=((s=this.h3)^e&(r^s))+a[0]-680876936)<<7|t>>>25)+e<<0)^(r=((r+=(e^(s=((s+=(r^t&(e^r))+a[1]-389564586)<<12|s>>>20)+t<<0)&(t^e))+a[2]+606105819)<<17|r>>>15)+s<<0)&(s^t))+a[3]-1044525330)<<22|e>>>10)+r<<0),e=((e+=((t=((t+=(s^e&(r^s))+a[4]-176418897)<<7|t>>>25)+e<<0)^(r=((r+=(e^(s=((s+=(r^t&(e^r))+a[5]+1200080426)<<12|s>>>20)+t<<0)&(t^e))+a[6]-1473231341)<<17|r>>>15)+s<<0)&(s^t))+a[7]-45705983)<<22|e>>>10)+r<<0,e=((e+=((t=((t+=(s^e&(r^s))+a[8]+1770035416)<<7|t>>>25)+e<<0)^(r=((r+=(e^(s=((s+=(r^t&(e^r))+a[9]-1958414417)<<12|s>>>20)+t<<0)&(t^e))+a[10]-42063)<<17|r>>>15)+s<<0)&(s^t))+a[11]-1990404162)<<22|e>>>10)+r<<0,e=((e+=((t=((t+=(s^e&(r^s))+a[12]+1804603682)<<7|t>>>25)+e<<0)^(r=((r+=(e^(s=((s+=(r^t&(e^r))+a[13]-40341101)<<12|s>>>20)+t<<0)&(t^e))+a[14]-1502002290)<<17|r>>>15)+s<<0)&(s^t))+a[15]+1236535329)<<22|e>>>10)+r<<0,e=((e+=((s=((s+=(e^r&((t=((t+=(r^s&(e^r))+a[1]-165796510)<<5|t>>>27)+e<<0)^e))+a[6]-1069501632)<<9|s>>>23)+t<<0)^t&((r=((r+=(t^e&(s^t))+a[11]+643717713)<<14|r>>>18)+s<<0)^s))+a[0]-373897302)<<20|e>>>12)+r<<0,e=((e+=((s=((s+=(e^r&((t=((t+=(r^s&(e^r))+a[5]-701558691)<<5|t>>>27)+e<<0)^e))+a[10]+38016083)<<9|s>>>23)+t<<0)^t&((r=((r+=(t^e&(s^t))+a[15]-660478335)<<14|r>>>18)+s<<0)^s))+a[4]-405537848)<<20|e>>>12)+r<<0,e=((e+=((s=((s+=(e^r&((t=((t+=(r^s&(e^r))+a[9]+568446438)<<5|t>>>27)+e<<0)^e))+a[14]-1019803690)<<9|s>>>23)+t<<0)^t&((r=((r+=(t^e&(s^t))+a[3]-187363961)<<14|r>>>18)+s<<0)^s))+a[8]+1163531501)<<20|e>>>12)+r<<0,e=((e+=((s=((s+=(e^r&((t=((t+=(r^s&(e^r))+a[13]-1444681467)<<5|t>>>27)+e<<0)^e))+a[2]-51403784)<<9|s>>>23)+t<<0)^t&((r=((r+=(t^e&(s^t))+a[7]+1735328473)<<14|r>>>18)+s<<0)^s))+a[12]-1926607734)<<20|e>>>12)+r<<0,e=((e+=((i=(s=((s+=((o=e^r)^(t=((t+=(o^s)+a[5]-378558)<<4|t>>>28)+e<<0))+a[8]-2022574463)<<11|s>>>21)+t<<0)^t)^(r=((r+=(i^e)+a[11]+1839030562)<<16|r>>>16)+s<<0))+a[14]-35309556)<<23|e>>>9)+r<<0,e=((e+=((i=(s=((s+=((o=e^r)^(t=((t+=(o^s)+a[1]-1530992060)<<4|t>>>28)+e<<0))+a[4]+1272893353)<<11|s>>>21)+t<<0)^t)^(r=((r+=(i^e)+a[7]-155497632)<<16|r>>>16)+s<<0))+a[10]-1094730640)<<23|e>>>9)+r<<0,e=((e+=((i=(s=((s+=((o=e^r)^(t=((t+=(o^s)+a[13]+681279174)<<4|t>>>28)+e<<0))+a[0]-358537222)<<11|s>>>21)+t<<0)^t)^(r=((r+=(i^e)+a[3]-722521979)<<16|r>>>16)+s<<0))+a[6]+76029189)<<23|e>>>9)+r<<0,e=((e+=((i=(s=((s+=((o=e^r)^(t=((t+=(o^s)+a[9]-640364487)<<4|t>>>28)+e<<0))+a[12]-421815835)<<11|s>>>21)+t<<0)^t)^(r=((r+=(i^e)+a[15]+530742520)<<16|r>>>16)+s<<0))+a[2]-995338651)<<23|e>>>9)+r<<0,e=((e+=((s=((s+=(e^((t=((t+=(r^(e|~s))+a[0]-198630844)<<6|t>>>26)+e<<0)|~r))+a[7]+1126891415)<<10|s>>>22)+t<<0)^((r=((r+=(t^(s|~e))+a[14]-1416354905)<<15|r>>>17)+s<<0)|~t))+a[5]-57434055)<<21|e>>>11)+r<<0,e=((e+=((s=((s+=(e^((t=((t+=(r^(e|~s))+a[12]+1700485571)<<6|t>>>26)+e<<0)|~r))+a[3]-1894986606)<<10|s>>>22)+t<<0)^((r=((r+=(t^(s|~e))+a[10]-1051523)<<15|r>>>17)+s<<0)|~t))+a[1]-2054922799)<<21|e>>>11)+r<<0,e=((e+=((s=((s+=(e^((t=((t+=(r^(e|~s))+a[8]+1873313359)<<6|t>>>26)+e<<0)|~r))+a[15]-30611744)<<10|s>>>22)+t<<0)^((r=((r+=(t^(s|~e))+a[6]-1560198380)<<15|r>>>17)+s<<0)|~t))+a[13]+1309151649)<<21|e>>>11)+r<<0,e=((e+=((s=((s+=(e^((t=((t+=(r^(e|~s))+a[4]-145523070)<<6|t>>>26)+e<<0)|~r))+a[11]-1120210379)<<10|s>>>22)+t<<0)^((r=((r+=(t^(s|~e))+a[2]+718787259)<<15|r>>>17)+s<<0)|~t))+a[9]-343485551)<<21|e>>>11)+r<<0,this.first?(this.h0=t+1732584193<<0,this.h1=e-271733879<<0,this.h2=r-1732584194<<0,this.h3=s+271733878<<0,this.first=!1):(this.h0=this.h0+t<<0,this.h1=this.h1+e<<0,this.h2=this.h2+r<<0,this.h3=this.h3+s<<0)},Md5.prototype.hex=function(){this.finalize();var t=this.h0,e=this.h1,r=this.h2,s=this.h3;return HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[s>>4&15]+HEX_CHARS[15&s]+HEX_CHARS[s>>12&15]+HEX_CHARS[s>>8&15]+HEX_CHARS[s>>20&15]+HEX_CHARS[s>>16&15]+HEX_CHARS[s>>28&15]+HEX_CHARS[s>>24&15]},Md5.prototype.toString=Md5.prototype.hex,Md5.prototype.digest=function(){this.finalize();var t=this.h0,e=this.h1,r=this.h2,s=this.h3;return[255&t,t>>8&255,t>>16&255,t>>24&255,255&e,e>>8&255,e>>16&255,e>>24&255,255&r,r>>8&255,r>>16&255,r>>24&255,255&s,s>>8&255,s>>16&255,s>>24&255]},Md5.prototype.array=Md5.prototype.digest,Md5.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(16),e=new Uint32Array(t);return e[0]=this.h0,e[1]=this.h1,e[2]=this.h2,e[3]=this.h3,t},Md5.prototype.buffer=Md5.prototype.arrayBuffer,Md5.prototype.base64=function(){for(var t,e,r,s="",o=this.array(),i=0;i<15;)t=o[i++],e=o[i++],r=o[i++],s+=BASE64_ENCODE_CHAR[t>>>2]+BASE64_ENCODE_CHAR[63&(t<<4|e>>>4)]+BASE64_ENCODE_CHAR[63&(e<<2|r>>>6)]+BASE64_ENCODE_CHAR[63&r];return t=o[i],s+=BASE64_ENCODE_CHAR[t>>>2]+BASE64_ENCODE_CHAR[t<<4&63]+"=="};var exports=createMethod();COMMON_JS?module.exports=exports:(root.md5=exports,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))}()}).call(exports,__webpack_require__("W2nU"),__webpack_require__("DuR2"))},"T+/8":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=r("jvWE"),o=r("LlAa"),i=r("TUB1"),a=r("P9l9"),n=r("NC6I"),h=r.n(n),f={name:"login",data:function(){return{windowH:window.screen.availHeight-104+"px",loginForm:{userName:"",password:"",checked:!1},rules:{userName:[{required:!0,message:"请输入账号",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}]}}},computed:{},methods:{toRouterView:function(t){this.$router.push({path:t.path})},submitForm:Object(s.a)(function(t){var e=this;e.$refs[t].validate(function(t){if(!t)return!1;e.postPassLogin()})},500),postPassLogin:function(){var t=this,e={userName:t.loginForm.userName,password:h()(t.loginForm.password)};Object(a.b)("/gateway-manage/login",e).then(function(e){var r=e.data;if("0000"==r.code)return i.a.showmsg("登录成功","success"),t.$router.push("/overview"),!1;o.a.errorMsg(r)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getUserInfo:function(){var t=this;Object(a.b)("/gateway-manage/get-login-userInfo",{}).then(function(e){if("0000"==e.data.code)return i.a.showmsg("用户已登录","success"),void t.$router.push("/overview")}).catch(function(t){})}},mounted:function(){this.getUserInfo()},components:{}},c={render:function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"login-wrap",style:{height:t.windowH}},[t._m(0),t._v(" "),r("section",[r("div",{staticClass:"login-wrap-body"},[r("div",{staticClass:"login-wrap-form"},[r("div",{staticClass:"form-title font-24 color-303133 text-center"},[t._v("登录")]),t._v(" "),r("el-form",{ref:"loginForm",staticClass:"loginForm",attrs:{model:t.loginForm,rules:t.rules}},[r("el-form-item",{attrs:{label:"",prop:"userName"}},[r("el-input",{staticClass:"w-318",attrs:{placeholder:"请输入账号"},model:{value:t.loginForm.userName,callback:function(e){t.$set(t.loginForm,"userName",e)},expression:"loginForm.userName"}},[r("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),t._v(" "),r("el-form-item",{attrs:{label:"",prop:"password"}},[r("el-input",{staticClass:"w-318",attrs:{type:"password",placeholder:"请输入密码"},model:{value:t.loginForm.password,callback:function(e){t.$set(t.loginForm,"password",e)},expression:"loginForm.password"}},[r("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),t._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:function(e){t.submitForm("loginForm")}}},[t._v("登录")])],1)],1)],1)])]),t._v(" "),r("div",{staticClass:"login-footer font-12 color-909399"},[t._v("Copyright "+t._s((new Date).getFullYear())+" Demogic.com All Rights Reserved 浙ICP备15033117号-1")])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("header",[e("div",{staticClass:"login-wrap-header"},[e("img",{staticClass:"login-wrap-inline",attrs:{src:r("H6Jm"),alt:"logo"}}),this._v(" "),e("span",{staticClass:"login-wrap-inline"},[this._v("API网关管理后台")])])])}]};var u=r("VU/8")(f,c,!1,function(t){r("e1Tv")},"data-v-37af437e",null);e.default=u.exports},e1Tv:function(t,e){},nErl:function(t,e){(function(e){t.exports=e}).call(e,{})}});
\ No newline at end of file
webpackJsonp([6],{"3OG2":function(e,t){},"5TZM":function(e,t){},"7Otq":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAohJREFUSA3llr9vjlEUx/u0fkVaWiQGtPEGVYnBJMwmE5PJwtbBYqhB/AESQUSnpiFCaMTAJKIq1GBQNWgTQyPKIKlfg2q1fX2+b+6t+97nXs9zG1tP8nnvueeec773+f1mDYlWrVb3UHIQqjCcZdl4SossJRmxbeSfAFsn0T5EP5bt01g20eR1MVoxheR3yilrqYI/A42nA7FoKFVwhE5fnW5f8F8780LXPT2FyUrgOq5hOAILcJ/r94uxtK0onWkSJYDoFNO5VDG1SBZETDVrYV4+onNqVNYKTylNV9JMj0OHYSuj3ajEPsB7wyQb+I0ftaAgIluo0CMgEfllb655cvVMagNjiH9irLNYo29kzcAmiOXUNTKTJlOjG+l7KCHW7AHJ++AqDIHEi0wig9AL++Ee5CwmuJHMy/AK2uASPINZ8E2xp6CczTAKF0B1OYsJ2sSdONrpQ/gB2sQL0M2im2MYJGSPbgC/AmnGTTMKvi0QuAUd0ALNUIEBCNnL0qpUvwl1MDE9+EfhGMyYWGgICtrnyd+MPjsxW83CLtC4KpYUixddw1jdkuPLV/Daks/Z38Jgj9wp5XbbTc0ZOA93IdVuU3ARztJrh19cu0tZaGfhAOgd2g/XefH2MOqDe5zhCqzX/B+mfwLd1ElQdXqvDjKeZNwA+oc3qYXDoGfLmt6HdcZCOzyxCYw9cM6ZP8LXV2XRmGfw3MmZxj8kwbdOUK7EmxcrjUOsEU6bdSuoJqcg95kj1gaz4NqIdqF3ZIsnUOHwJ7xYbUr+XpztoMuhb95YbcH7IU9/H8e98JSO8A64piPO7dgrLJzSowneuY3xb0iwFST6GR6DvhD/xejVBUOg3jdh3R/Z4PK7K+X7nwAAAABJRU5ErkJggg=="},JXTs:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("P9l9"),i=a("LlAa"),r=a("TUB1"),o={name:"vue-api-header",data:function(){return{baseInfo:{userId:"",avatar:"http://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTIByXn17AiaibMrdKnDR52QkALMQeRrIUBvSc1Qj9wKyEHRehGErvm45cMZrics3GnC6sxXPwWlafZBQ/132",userName:"管理员"}}},methods:{toLoginOut:function(){var e=this;e.$confirm("确认退出吗?","提示",{type:"warning"}).then(function(){e.postLoginOut()}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},postLoginOut:function(){var e=this;Object(n.a)("/gateway-manage/invalidate",{}).then(function(e){var t=e.data;if(1==t.code)return Object(r.a)("退出成功","success"),void(window.location.href=window.location.origin+"/api-gateway-web/#/login");i.a.errorMsg(t)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getUserInfo:function(){var e=this;Object(n.a)("/gateway-manage/get-login-userInfo",{}).then(function(t){var a=t.data;1!=a.code?i.a.errorMsg(a):e.baseInfo=a.result}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{$route:{handler:function(e,t){},deep:!0}},mounted:function(){this.pathName=this.$route.path}},s={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"api-header"},[a("div",{staticClass:"api-header-wrap border-box flex flex-space-between"},[e._m(0),e._v(" "),a("div",{staticClass:"api-header-right"},[a("div",{staticClass:"api-header-right_info"},[a("span",{staticClass:"api-header-message"},[e._v("消息")]),e._v(" "),a("el-popover",{staticStyle:{"min-width":"95px","margin-left":"10px"},attrs:{placement:"bottom",title:"",width:"95",trigger:"hover","popper-class":"user-header-pop"}},[a("ul",{staticClass:"navsuerwrap"},[a("li",{staticClass:"user-item loginout",staticStyle:{"text-align":"center"},on:{click:function(t){return t.stopPropagation(),e.toLoginOut(t)}}},[a("a",{staticClass:"usertext "},[e._v("退出登录")])])]),e._v(" "),a("div",{staticClass:"nav-user-name",staticStyle:{display:"inline-block"},attrs:{slot:"reference"},slot:"reference"},[a("a",{staticClass:"user-left-img flex flex-align-center"},[a("img",{staticStyle:{width:"30px",height:"30px","border-radius":"15px","padding-right":"2px"},attrs:{src:e.baseInfo.avatar,alt:""}}),a("span",{staticClass:"color-fff font-14 p-r-14"},[e._v(e._s(e.baseInfo.userName))]),a("i",{staticClass:"el-icon-arrow-down font-14 color-fff"})])])])],1)])])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"api-header-left"},[t("img",{attrs:{src:a("7Otq"),alt:""}}),t("span",{staticClass:"color-fff "},[this._v("API网关管理后台")])])}]};var c=a("VU/8")(o,s,!1,function(e){a("s2mx")},"data-v-f3356ee2",null).exports,l={name:"vue-api-aside",props:{activeSelTab:{type:String,default:function(){return"1"}}},data:function(){return{activeTab:this.activeSelTab,leftMenuData:[{tabId:1,tabCode:1,tabName:"概览",tabIcon:"icongailan-",collapsFlag:!1,tabUrl:"/overview",children:[]},{tabId:2,tabCode:2,tabName:"API管理",tabIcon:"iconapi",collapsFlag:!0,tabUrl:"/apiProgram",children:[{tabId:21,tabCode:21,tabName:"项目列表",tabIcon:"",tabUrl:"/apiProgram"},{tabId:22,tabCode:22,tabName:"API列表",tabIcon:"",tabUrl:"/apiList"}]},{tabId:3,tabCode:3,tabName:"环境管理",tabIcon:"iconhuanjingguanli",collapsFlag:!1,tabUrl:"/envManage",children:[]},{tabId:4,tabCode:4,tabName:"发布记录",tabIcon:"iconfabu",collapsFlag:!1,tabUrl:"/releaseRecords",children:[]},{tabId:5,tabCode:5,tabName:"插件管理",tabIcon:"iconchajianguanli",collapsFlag:!1,tabUrl:"/pluginManage",children:[]},{tabId:6,tabCode:6,tabName:"错误码",tabIcon:"iconcuowu",collapsFlag:!1,tabUrl:"/errorCode",children:[]},{tabId:7,tabCode:7,tabName:"预警系统",tabIcon:"iconRectangleCopy",collapsFlag:!1,tabUrl:"/",children:[]},{tabId:8,tabCode:8,tabName:"日志管理",tabIcon:"iconrizhiguanli",collapsFlag:!1,tabUrl:"/",children:[]},{tabId:9,tabCode:9,tabName:"权限管理",tabIcon:"iconquanxian",collapsFlag:!1,tabUrl:"/",children:[]}]}},methods:{selectTab:function(e,t,a){if(t?this.leftMenuData[a].onlyIconActive=!0:(this.leftMenuData.forEach(function(e){e.onlyIconActive=!1}),e.collapsFlag=!(e.collapsFlag&&e.hasOwnProperty("children")&&e.children.length>0),this.$forceUpdate()),e.hasOwnProperty("children")&&e.children.length>0)return this.leftMenuData[a].onlyIconActive=!0,e.children[0].hasOwnProperty("children")&&e.children[0].hasOwnProperty("children").length>0?(this.activeTab=e.children[0].children[0].tabCode,this.$emit("setSelectTab",e),!1):(this.activeTab=e.children[0].tabCode,this.$emit("setSelectTab",e),!1);this.activeTab=e.tabCode,this.$emit("setSelectTab",e)},getLeftMenu:function(){var e=this,t={project:e.repProjectName,router:e.pathName,requestProject:e.repProjectName};Object(n.a)("/haoban-manage-web/menu-detail",t).then(function(t){var a=t.data;if(1==a.errorCode)return a.result?void 0:void e.$message.error({duration:1e3,message:"暂无数据"});e.$message.error({duration:1e3,message:a.message})}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{$route:{handler:function(e,t){},deep:!0},activeSelTab:function(e,t){this.activeTab=e}},mounted:function(){this.activeTab=this.activeSelTab}},d={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"api-body-left border-box"},[a("ul",{staticClass:"tab-left-list border-box"},[e._l(e.leftMenuData,function(t,n){return[a("li",{key:n,class:["tab-left-list-cell color-606266 font-14 border-box my-first-level",t.tabCode==e.activeTab?"active-tab":""],on:{click:function(a){e.selectTab(t,!1,n)}}},[a("i",{class:["iconfont tab-icon",t.tabIcon,t.onlyIconActive?"iconActive":""]}),e._v(e._s(t.tabName)+"\n ")]),e._v(" "),t.collapsFlag?a("ul",{key:"childitem"+n,staticClass:"child-tab-left-list"},[e._l(t.children,function(t,i){return[a("li",{key:i,class:["tab-left-list-cell color-606266 font-14 border-box",t.tabCode==e.activeTab?"active-tab":""],on:{click:function(a){e.selectTab(t,"child",n)}}},[e._v(e._s(t.tabName))])]})],2):e._e()]})],2)])},staticRenderFns:[]};var b={name:"index",data:function(){return{projectName:"haoban-manage-web",windowH:window.screen.height-104-56-40+"px",collapseFlag:!1,activeSelTab:""}},methods:{changeRoute:function(e){this.$router.push(e)},toRouterView:function(e){this.$router.push({path:e.path})},showTab:function(e){this.activeSelTab=e},setSelectTab:function(e){var t=e.tabCode;e.hasOwnProperty("children")&&e.children.length&&(t=e.children[0].tabCode,e.children[0].hasOwnProperty("children")&&e.children[0].hasOwnProperty("children").length&&(t=e.children[0].children[0].tabCode)),this.$router.push({path:e.tabUrl,query:{tabCode:t}})},getDataOverview:function(){}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-204+"px"},components:{vueApiHeader:c,vueApiAside:a("VU/8")(l,d,!1,function(e){a("3OG2")},"data-v-ab24bd8c",null).exports}},h={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"index"}},[t("vue-api-header"),this._v(" "),t("div",{staticClass:"api-body border-box",style:{height:this.windowH}},[t("div",{staticClass:"api-body-wrap flex border-box"},[t("vue-api-aside",{attrs:{activeSelTab:this.activeSelTab},on:{setSelectTab:this.setSelectTab}}),this._v(" "),t("div",{staticClass:"api-body-right border-box"},[t("transition",{attrs:{name:"fade",mode:"out-in"}},[t("router-view",{on:{showTab:this.showTab}})],1)],1)],1)])],1)},staticRenderFns:[]};var u=a("VU/8")(b,h,!1,function(e){a("5TZM")},null,null);t.default=u.exports},s2mx:function(e,t){}});
\ No newline at end of file
webpackJsonp([7],{"1C1D":function(e,t){},I3qt:function(e,t){},ZT99:function(e,t){},iGM1:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("319J"),n=a("mvHQ"),i=a.n(n),s=a("l46T"),r=a("P9l9"),l=a("TUB1"),c=a("LlAa"),u={name:"new-env",props:{showDialog:{type:Boolean,default:!1},editRow:{type:Object,default:function(){return{sceneName:"",sceneCode:"",domainUrl:"",defaultFlag:!1}}}},components:{limitInput:s.a},data:function(){return{customDialog:!1,formData:{sceneName:"",sceneCode:"",domainUrl:"",defaultFlag:!1},rules:{sceneName:[{required:!0,message:"请输入环境名称",trigger:"blur"}],sceneCode:[{required:!0,message:"请输入环境code",trigger:"blur"}],domainUrl:[{required:!0,message:"请输入环境域名",trigger:"blur"}]}}},methods:{handleClose:function(e){this.$refs.envForm.resetFields(),e(),this.hideDialog()},customCancel:function(){this.$refs.envForm.resetFields(),this.hideDialog()},hideDialog:function(){this.customDialog=!1,this.formData.sceneName="",this.formData.sceneCode="",this.formData.domainUrl="",this.$emit("hideDialog","")},customConfirm:function(e){var t=this;t.formData.sceneName=String(t.formData.sceneName).replace(/\s+/g,""),t.formData.sceneCode=String(t.formData.sceneCode).replace(/\s+/g,""),t.formData.domainUrl=String(t.formData.domainUrl).replace(/\s+/g,""),t.$refs[e].validate(function(e){if(!e)return!1;t.postEditData()})},postEditData:function(){var e=this,t={sceneName:e.formData.sceneName,sceneCode:e.formData.sceneCode,domainUrl:e.formData.domainUrl,defaultFlag:e.formData.defaultFlag?"1":"0"};Object(r.a)(e.editRow.sceneCode?"/gateway-manage/update-scene":"/gateway-manage/create-scene",t).then(function(t){var a=t.data;if("0000"==a.code)return l.a.showmsg("保存成功","success"),void e.setData();c.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},setData:function(e){this.$emit("hideDialog",this.formData)}},watch:{showDialog:function(e,t){this.customDialog=e},editRow:function(e,t){this.formData=JSON.parse(i()(e))}},mounted:function(){this.customDialog=this.showDialog,this.formData=JSON.parse(i()(this.editRow))}},d={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"show",rawName:"v-show",value:e.customDialog,expression:"customDialog"}]},[a("el-dialog",{staticClass:"edit-dialog",attrs:{title:e.editRow.sceneCode?"编辑环境":"新建环境",visible:e.customDialog,width:"600px","before-close":e.handleClose},on:{"update:visible":function(t){e.customDialog=t}}},[a("div",{staticClass:"edit-dialog-body"},[a("el-form",{ref:"envForm",attrs:{model:e.formData,"label-width":"94px",rules:e.rules}},[a("el-form-item",{attrs:{label:"环境名称:",prop:"sceneName"}},[a("limitInput",{attrs:{inputWidth:400,inputValue:e.formData.sceneName,holder:"请输入环境名称",getByType:"word",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.formData,"sceneName",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"环境code:",prop:"sceneCode"}},[a("limitInput",{attrs:{inputWidth:400,disflag:!!e.editRow.sceneCode,inputValue:e.formData.sceneCode,holder:"请输入环境code",getByType:"word",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.formData,"sceneCode",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"环境域名:",prop:"domainUrl"}},[a("limitInput",{attrs:{inputWidth:400,inputValue:e.formData.domainUrl,holder:"请输入环境域名",getByType:"word",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.formData,"domainUrl",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"默认环境:"}},[a("el-checkbox",{model:{value:e.formData.defaultFlag,callback:function(t){e.$set(e.formData,"defaultFlag",t)},expression:"formData.defaultFlag"}},[e._v("设置为默认环境")])],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{"padding-bottom":"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.customCancel}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.customConfirm("envForm")}}},[e._v(e._s(e.editRow.sceneCode?"保 存":"新 建"))])],1)])],1)},staticRenderFns:[]};var h=a("VU/8")(u,d,!1,function(e){a("1C1D")},"data-v-4040c646",null).exports,f=a("jvWE"),m={name:"env-list",data:function(){return{searchValue:"",tableData:[{sceneName:"测试",sceneCode:"234",domainUrl:"http://123.com",defaultFlag:!1,createTime:1564455643252}],showDialog:!1,editIndex:"",editRow:{}}},components:{newEnv:h},methods:{editEnv:function(){this.showDialog=!0},hideDialog:function(e){if(!e)return this.editIndex="",this.editRow={},this.showDialog=!1,!1;this.editRow.sceneCode?(this.tableData[this.editIndex].sceneName=e.sceneName,this.tableData[this.editIndex].domainUrl=e.domainUrl,this.tableData[this.editIndex].defaultFlag=e.defaultFlag):(this.currentPage=1,this.getData()),this.editIndex="",this.editRow={},this.showDialog=!1,this.$forceUpdate()},searchData:Object(f.a)(function(e){this.currentPage,this.getData()},500),clearInput:function(){this.currentPage=1,this.getData()},handleSizeChange:function(e){this.pageSize=e,this.getData()},handleCurrentChange:function(e){this.currentPage=e,this.getData()},handleEdit:function(e,t){this.editIndex=e,this.editRow=t,this.showDialog=!0},handleDel:function(e,t){var a=this;a.$confirm("确定删除该环境?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDelData(e,t)}).catch(function(){})},postDelData:function(e,t){var a=this,o={sceneCode:t.sceneCode};Object(r.a)("/gateway-manage/delete-scene",o).then(function(t){var o=t.data;if("0000"==o.code)return l.a.showmsg("删除成功","success"),void a.tableData.splice(e,1);c.a.errorMsg(o)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},changeEnv:function(e,t){this.postChangeEnv(e,t)},postChangeEnv:function(e,t){var a=this,o={defaultFlag:t?"1":"0",sceneCode:e.sceneCode};Object(r.a)("/gateway-manage/set-default-scene",o).then(function(e){var t=e.data;if("0000"==t.code)return l.a.showmsg("设置成功","success"),void a.getData();c.a.errorMsg(t)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},getData:function(){var e=this;Object(r.a)("/gateway-manage/list-all-scene",{}).then(function(t){var a=t.data;if("0000"==a.code)return a.result&&a.result.length&&a.result.forEach(function(e){e.defaultFlag=1==e.defaultFlag}),void(e.tableData=a.result||[]);c.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getData()}},p={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"search-wrap m-b-20 flex flex-space-between"},[a("el-input",{staticClass:"w-320 serach",attrs:{clearable:"",placeholder:"请输入发布版本"},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.searchData(a);var a}},model:{value:e.searchValue,callback:function(t){e.searchValue=t},expression:"searchValue"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.editEnv}},[e._v("新建环境")])],1),e._v(" "),a("div",{staticClass:"table-wrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{prop:"sceneName",label:"环境名称","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{label:"环境code","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.sceneCode)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"环境域名","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.domainUrl)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"默认环境","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:function(a){e.changeEnv(t.row,t.row.defaultFlag)}},model:{value:t.row.defaultFlag,callback:function(a){e.$set(t.row,"defaultFlag",a)},expression:"scope.row.defaultFlag"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"创建时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.createTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.createTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){e.handleEdit(t.$index,t.row)}}},[e._v("编辑")]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){e.handleDel(t.$index,t.row)}}},[e._v("删除")])]}}])})],1)],1),e._v(" "),a("new-env",{attrs:{editRow:e.editRow,showDialog:e.showDialog},on:{hideDialog:e.hideDialog}})],1)},staticRenderFns:[]};var g=a("VU/8")(m,p,!1,function(e){a("oSTL")},"data-v-0c33a274",null).exports,v={name:"env-set-list",data:function(){return{proxyType:"0",searchValue:"",tableData:[],pageSize:20,currentPage:1,totalCount:0}},methods:{toCreatSet:function(){this.$router.push("/createEnvSet?proxyType="+this.proxyType)},searchData:Object(f.a)(function(e){this.currentPage,this.getData()},500),clearInput:function(){this.currentPage=1,this.getData()},changeType:function(e){this.currentPage=1,this.getData()},handleSizeChange:function(e){this.pageSize=e,this.getData()},handleCurrentChange:function(e){this.currentPage=e,this.getData()},handleShow:function(e,t){this.$router.push("/createEnvSet?proxyType="+t.proxyType+"&backendProxyId="+t.backendProxyId)},handleEdit:function(e,t){this.$router.push("/createEnvSet?proxyType="+t.proxyType+"&backendProxyId="+t.backendProxyId)},handleDel:function(e,t){var a=this;a.$confirm("确定删除该环境?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDelData(e,t)}).catch(function(){})},postDelData:function(e,t){var a=this,o={project:a.repProjectName,router:a.pathName,requestProject:a.repProjectName};Object(r.a)("/gateway-manage/delete-proxy",o).then(function(t){var o=t.data;if("0000"==o.code)return l.a.showmsg("删除成功","success"),void a.tableData.splice(e,1);c.a.errorMsg(o)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},getData:function(){var e=this,t={search:e.searchValue,pageNum:e.currentPage,pageSize:e.pageSize,proxyType:e.proxyType};Object(r.a)("/gateway-manage/page-proxy",t).then(function(t){var a=t.data;if("0000"==a.code)return e.tableData=a.result.result||[],void(e.totalCount=a.result.totalCount);c.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getData()}},b={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"search-wrap m-b-20 flex flex-space-between"},[a("el-input",{staticClass:"w-320",attrs:{clearable:"",placeholder:"请输入注册中心地址搜索"},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.searchData(a);var a}},model:{value:e.searchValue,callback:function(t){e.searchValue=t},expression:"searchValue"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),e._v(" "),a("div",{staticClass:"search-wrap-right"},[a("el-button",{attrs:{type:"primary"},on:{click:e.toCreatSet}},[e._v("新建配置")]),e._v(" "),a("el-radio-group",{on:{change:e.changeType},model:{value:e.proxyType,callback:function(t){e.proxyType=t},expression:"proxyType"}},[a("el-radio-button",{attrs:{label:"0"}},[e._v("http")]),e._v(" "),a("el-radio-button",{attrs:{label:"1"}},[e._v("dubbo")])],1)],1)],1),e._v(" "),a("div",{staticClass:"table-wrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{prop:"proxyName",label:"配置名称","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"proxyCode",label:"配置code","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{label:"描述","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.description)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"创建时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.createTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.createTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){e.handleShow(t.$index,t.row)}}},[e._v("查看")]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){e.handleEdit(t.$index,t.row)}}},[e._v("编辑")]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){e.handleDel(t.$index,t.row)}}},[e._v("删除")])]}}])})],1),e._v(" "),e.totalCount?a("div",{staticClass:"pagination text-right m-t-14"},[a("el-pagination",{attrs:{small:"","page-size":e.pageSize,"current-page":e.currentPage,layout:"prev, pager, next",total:e.totalCount},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])},staticRenderFns:[]};var w=a("VU/8")(v,b,!1,function(e){a("I3qt")},"data-v-35f3e00f",null).exports,D={name:"envManage",components:{navBread:o.a,envList:g,envSetList:w},data:function(){return{navPath:[{name:"环境管理",path:""}],activeName:"first"}},methods:{handleClick:function(e,t){console.log(e,t)},getData:function(){var e=this,t={project:e.repProjectName,router:e.pathName,requestProject:e.repProjectName};Object(r.a)("/haoban-manage-web/menu-detail",t).then(function(t){var a=t.data;1!=a.errorCode&&e.$message.error({duration:1e3,message:a.message})}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{$route:{handler:function(e,t){},deep:!0}},mounted:function(){this.$emit("showTab",3),this.$route.query.tabChildid&&(this.activeName=this.$route.query.tabChildid)}},y={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"api-body-content border-box"},[a("div",{staticClass:"common-nav"},[a("nav-bread",{attrs:{navPath:e.navPath}})],1),e._v(" "),a("div",{staticClass:"api-body-main common-body-main border-box"},[a("div",{staticClass:"api-main-content border-box"},[a("div",{staticClass:"env-tab-wrap"},[a("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"环境列表",name:"first"}},[a("env-list")],1),e._v(" "),a("el-tab-pane",{attrs:{label:"配置列表",name:"second"}},[a("env-set-list")],1)],1)],1)])])])},staticRenderFns:[]};var _=a("VU/8")(D,y,!1,function(e){a("ZT99")},"data-v-7f14fefd",null);t.default=_.exports},oSTL:function(e,t){}});
\ No newline at end of file
webpackJsonp([7],{"0n5g":function(e,t){},VRKb:function(e,t){},iGM1:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("319J"),o=a("mvHQ"),r=a.n(o),i=a("l46T"),s=a("P9l9"),l=a("TUB1"),c=a("LlAa"),u={name:"new-env",props:{showDialog:{type:Boolean,default:!1},editRow:{type:Object,default:function(){return{sceneName:"",sceneCode:"",domainUrl:"",defaultFlag:!1}}}},components:{limitInput:i.a},data:function(){return{customDialog:!1,formData:{sceneName:"",sceneCode:"",domainUrl:"",defaultFlag:!1},rules:{sceneName:[{required:!0,message:"请输入环境名称",trigger:"blur"}],sceneCode:[{required:!0,message:"请输入环境code",trigger:"blur"}],domainUrl:[{required:!0,message:"请输入环境域名",trigger:"blur"}]}}},methods:{handleClose:function(e){this.$refs.envForm.resetFields(),e(),this.hideDialog()},customCancel:function(){this.$refs.envForm.resetFields(),this.hideDialog()},hideDialog:function(){this.customDialog=!1,this.formData.sceneName="",this.formData.sceneCode="",this.formData.domainUrl="",this.$emit("hideDialog","")},customConfirm:function(e){var t=this;t.formData.sceneName=String(t.formData.sceneName).replace(/\s+/g,""),t.formData.sceneCode=String(t.formData.sceneCode).replace(/\s+/g,""),t.formData.domainUrl=String(t.formData.domainUrl).replace(/\s+/g,""),t.$refs[e].validate(function(e){if(!e)return!1;t.postEditData()})},postEditData:function(){var e=this,t={sceneName:e.formData.sceneName,sceneCode:e.formData.sceneCode,domainUrl:e.formData.domainUrl,defaultFlag:e.formData.defaultFlag?"1":"0"};Object(s.a)(e.editRow.sceneCode?"/gateway-manage/update-scene":"/gateway-manage/create-scene",t).then(function(t){var a=t.data;if(1==a.code)return l.a.showmsg("保存成功","success"),void e.setData();c.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},setData:function(e){this.$emit("hideDialog",this.formData)}},watch:{showDialog:function(e,t){this.customDialog=e},editRow:function(e,t){this.formData=JSON.parse(r()(e))}},mounted:function(){this.customDialog=this.showDialog,this.formData=JSON.parse(r()(this.editRow))}},d={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"show",rawName:"v-show",value:e.customDialog,expression:"customDialog"}]},[a("el-dialog",{staticClass:"edit-dialog",attrs:{title:e.editRow.sceneCode?"编辑环境":"新建环境",visible:e.customDialog,width:"600px","before-close":e.handleClose},on:{"update:visible":function(t){e.customDialog=t}}},[a("div",{staticClass:"edit-dialog-body"},[a("el-form",{ref:"envForm",attrs:{model:e.formData,"label-width":"94px",rules:e.rules}},[a("el-form-item",{attrs:{label:"环境名称:",prop:"sceneName"}},[a("limitInput",{attrs:{inputWidth:400,inputValue:e.formData.sceneName,holder:"请输入环境名称",getByType:"word",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.formData,"sceneName",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"环境code:",prop:"sceneCode"}},[a("limitInput",{attrs:{inputWidth:400,disflag:!!e.editRow.sceneCode,inputValue:e.formData.sceneCode,holder:"请输入环境code",getByType:"word",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.formData,"sceneCode",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"环境域名:",prop:"domainUrl"}},[a("limitInput",{attrs:{inputWidth:400,inputValue:e.formData.domainUrl,holder:"请输入环境域名",getByType:"word",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.formData,"domainUrl",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"默认环境:"}},[a("el-checkbox",{model:{value:e.formData.defaultFlag,callback:function(t){e.$set(e.formData,"defaultFlag",t)},expression:"formData.defaultFlag"}},[e._v("设置为默认环境")])],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{"padding-bottom":"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.customCancel}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.customConfirm("envForm")}}},[e._v(e._s(e.editRow.sceneCode?"保 存":"新 建"))])],1)])],1)},staticRenderFns:[]};var h=a("VU/8")(u,d,!1,function(e){a("wEdo")},"data-v-8b2a694e",null).exports,f=a("jvWE"),m={name:"env-list",data:function(){return{searchValue:"",tableData:[{sceneName:"测试",sceneCode:"234",domainUrl:"http://123.com",defaultFlag:!1,createTime:1564455643252}],showDialog:!1,editIndex:"",editRow:{}}},components:{newEnv:h},methods:{editEnv:function(){this.showDialog=!0},hideDialog:function(e){if(!e)return this.editIndex="",this.editRow={},this.showDialog=!1,!1;this.editRow.sceneCode?(this.tableData[this.editIndex].sceneName=e.sceneName,this.tableData[this.editIndex].domainUrl=e.domainUrl,this.tableData[this.editIndex].defaultFlag=e.defaultFlag):(this.currentPage=1,this.getData()),this.editIndex="",this.editRow={},this.showDialog=!1,this.$forceUpdate()},searchData:Object(f.a)(function(e){this.currentPage,this.getData()},500),clearInput:function(){this.currentPage=1,this.getData()},handleSizeChange:function(e){this.pageSize=e,this.getData()},handleCurrentChange:function(e){this.currentPage=e,this.getData()},handleEdit:function(e,t){this.editIndex=e,this.editRow=t,this.showDialog=!0},handleDel:function(e,t){var a=this;a.$confirm("确定删除该环境?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDelData(e,t)}).catch(function(){})},postDelData:function(e,t){var a=this,n={sceneCode:t.sceneCode};Object(s.a)("/gateway-manage/delete-scene",n).then(function(t){var n=t.data;if(1==n.code)return l.a.showmsg("删除成功","warning"),void a.tableData.splice(e,1);c.a.errorMsg(n)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},changeEnv:function(e,t){this.postChangeEnv(e,t)},postChangeEnv:function(e,t){var a=this,n={defaultFlag:t?"1":"0",sceneCode:e.sceneCode};Object(s.a)("/gateway-manage/set-default-scene",n).then(function(e){var t=e.data;1!=t.code?c.a.errorMsg(t):l.a.showmsg("设置成功","success")}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},getData:function(){var e=this;Object(s.a)("/gateway-manage/list-all-scene",{}).then(function(t){var a=t.data;if(1==a.code)return a.result&&a.result.length&&a.result.forEach(function(e){e.defaultFlag=1==e.defaultFlag}),void(e.tableData=a.result||[]);c.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}}},p={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"search-wrap m-b-20 flex flex-space-between"},[a("el-input",{staticClass:"w-320 serach",attrs:{clearable:"",placeholder:"请输入发布版本"},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.searchData(a);var a}},model:{value:e.searchValue,callback:function(t){e.searchValue=t},expression:"searchValue"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.editEnv}},[e._v("新建环境")])],1),e._v(" "),a("div",{staticClass:"table-wrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{prop:"sceneName",label:"环境名称","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{label:"环境code","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.sceneCode)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"环境域名","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.domainUrl)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"默认环境","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:function(a){e.changeEnv(t.row,t.row.defaultFlag)}},model:{value:t.row.defaultFlag,callback:function(a){e.$set(t.row,"defaultFlag",a)},expression:"scope.row.defaultFlag"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"创建时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.createTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.createTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){e.handleEdit(t.$index,t.row)}}},[e._v("编辑")]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){e.handleDel(t.$index,t.row)}}},[e._v("删除")])]}}])})],1)],1),e._v(" "),a("new-env",{attrs:{editRow:e.editRow,showDialog:e.showDialog},on:{hideDialog:e.hideDialog}})],1)},staticRenderFns:[]};var g=a("VU/8")(m,p,!1,function(e){a("0n5g")},"data-v-e3927b06",null).exports,v={name:"env-set-list",data:function(){return{proxyType:"0",searchValue:"",tableData:[{backendProxyId:"1",proxyName:"测试",proxyCode:"123",description:"234",proxyType:"0",createTime:1564455643252}],pageSize:20,currentPage:1,totalCount:0}},methods:{toCreatSet:function(){this.$router.push("/createEnvSet?proxyType="+this.proxyType)},searchData:Object(f.a)(function(e){this.currentPage,this.getData()},500),clearInput:function(){this.currentPage=1,this.getData()},changeType:function(e){this.currentPage=1,this.getData()},handleSizeChange:function(e){this.pageSize=e,this.getData()},handleCurrentChange:function(e){this.currentPage=e,this.getData()},handleShow:function(e,t){this.$router.push("/createEnvSet?proxyType="+t.proxyType+"&backendProxyId="+t.backendProxyId)},handleEdit:function(e,t){this.$router.push("/createEnvSet?proxyType="+t.proxyType+"&backendProxyId="+t.backendProxyId)},handleDel:function(e,t){var a=this;a.$confirm("确定删除该环境?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDelData(e,t)}).catch(function(){})},postDelData:function(e,t){var a=this,n={project:a.repProjectName,router:a.pathName,requestProject:a.repProjectName};Object(s.a)("/gateway-manage/delete-proxy",n).then(function(t){var n=t.data;if(1==n.code)return l.a.showmsg("删除成功","warning"),void a.tableData.splice(e,1);c.a.errorMsg(n)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},getData:function(){var e=this,t={search:e.searchValue,pageNum:e.currentPage,pageSize:e.pageSize,proxyType:e.proxyType};Object(s.a)("/gateway-manage/page-proxy",t).then(function(t){var a=t.data;if(1==a.code)return e.tableData=a.result.result||[],void(e.totalCount=a.result.totalCount);c.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}}},b={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"search-wrap m-b-20 flex flex-space-between"},[a("el-input",{staticClass:"w-320",attrs:{clearable:"",placeholder:"请输入注册中心地址搜索"},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.searchData(a);var a}},model:{value:e.searchValue,callback:function(t){e.searchValue=t},expression:"searchValue"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),e._v(" "),a("div",{staticClass:"search-wrap-right"},[a("el-button",{attrs:{type:"primary"},on:{click:e.toCreatSet}},[e._v("新建配置")]),e._v(" "),a("el-radio-group",{on:{change:e.changeType},model:{value:e.proxyType,callback:function(t){e.proxyType=t},expression:"proxyType"}},[a("el-radio-button",{attrs:{label:"0"}},[e._v("http")]),e._v(" "),a("el-radio-button",{attrs:{label:"1"}},[e._v("dubbo")])],1)],1)],1),e._v(" "),a("div",{staticClass:"table-wrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{prop:"proxyName",label:"配置名称","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"proxyCode",label:"配置code","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{label:"描述","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.description)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"创建时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.createTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.createTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){e.handleShow(t.$index,t.row)}}},[e._v("查看")]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){e.handleEdit(t.$index,t.row)}}},[e._v("编辑")]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){e.handleDel(t.$index,t.row)}}},[e._v("删除")])]}}])})],1),e._v(" "),e.totalCount?a("div",{staticClass:"pagination text-right m-t-14"},[a("el-pagination",{attrs:{small:"","page-size":e.pageSize,"current-page":e.currentPage,layout:"prev, pager, next",total:e.totalCount},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])},staticRenderFns:[]};var w=a("VU/8")(v,b,!1,function(e){a("klrC")},"data-v-ff84aab2",null).exports,D={name:"envManage",components:{navBread:n.a,envList:g,envSetList:w},data:function(){return{navPath:[{name:"环境管理",path:""}],activeName:"first"}},methods:{handleClick:function(e,t){console.log(e,t)},getData:function(){var e=this,t={project:e.repProjectName,router:e.pathName,requestProject:e.repProjectName};Object(s.a)("/haoban-manage-web/menu-detail",t).then(function(t){var a=t.data;1!=a.errorCode&&e.$message.error({duration:1e3,message:a.message})}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{$route:{handler:function(e,t){},deep:!0}},mounted:function(){this.$emit("showTab",3)}},y={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"api-body-content border-box"},[a("div",{staticClass:"common-nav"},[a("nav-bread",{attrs:{navPath:e.navPath}})],1),e._v(" "),a("div",{staticClass:"api-body-main common-body-main border-box"},[a("div",{staticClass:"api-main-content border-box"},[a("div",{staticClass:"env-tab-wrap"},[a("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"环境列表",name:"first"}},[a("env-list")],1),e._v(" "),a("el-tab-pane",{attrs:{label:"配置列表",name:"second"}},[a("env-set-list")],1)],1)],1)])])])},staticRenderFns:[]};var _=a("VU/8")(D,y,!1,function(e){a("VRKb")},"data-v-623230a3",null);t.default=_.exports},klrC:function(e,t){},wEdo:function(e,t){}});
\ No newline at end of file
webpackJsonp([20],{"/NA0":function(e,n){},0:function(e,n,t){t("j1ja"),e.exports=t("NHnr")},"4qCZ":function(e,n){},"5tgt":function(e,n,t){e.exports=function(e,n){return function(o){t("Opzk")("./"+e+"/"+n+".vue").then(function(e){o(e)})}}},NHnr:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=t("fZjL"),a=t.n(o),r=(t("j1ja"),t("hKoQ")),i=t.n(r),u={render:function(){var e=this.$createElement,n=this._self._c||e;return n("div",{attrs:{id:"app"}},[n("transition",{attrs:{name:"fade",mode:"out-in"}},[n("router-view")],1)],1)},staticRenderFns:[]};var s=t("VU/8")({name:"App",data:function(){return{}}},u,!1,function(e){t("/NA0")},null,null).exports,c=t("lRwf"),p=t.n(c),g=t("pRNm"),m=t.n(g),d=t("5tgt"),f=t.n(d);p.a.use(m.a);var l,v=function(e){t.e(1).then(t.bind(null,"ODjX")).then(function(n){e(n)})},h=[{path:"/",name:"/",redirect:"login"},{path:"/login",name:"登录",component:f()("login","index")},{path:"/index",name:"概览",redirect:"overview",component:f()("index","index"),children:[{path:"/overview",name:"概览",component:f()("index","overview")},{path:"/apiProgram",name:"项目列表",component:f()("index","apiProgram")},{path:"/apiProgramGroup",name:"分组列表",component:f()("index","apiProgramGroup")},{path:"/apiList",name:"API列表",component:f()("index","apiList")},{path:"/createApi",name:"创建API",component:f()("index","createApi")},{path:"/apiListManage",name:"API列表管理",component:f()("index","apiListManage")},{path:"/apiListManageShow",name:"API列表管理查看",component:f()("index","apiListManageShow")},{path:"/envManage",name:"环境管理",component:f()("index","envManage")},{path:"/createEnvSet",name:"新建配置",component:f()("index","createEnvSet")},{path:"/releaseRecords",name:"发布记录",component:f()("index","releaseRecords")},{path:"/pluginManage",name:"插件管理",component:f()("index","pluginManage")},{path:"/errorCode",name:"错误码",component:f()("index","errorCode")}]},{path:"/403",name:"无权访问",component:v},{path:"/404",name:"error404",component:v},{path:"/500",name:"error500",component:v},{path:"*",redirect:"/404",hidden:!0}],x=new m.a({routes:h,scrollBehavior:function(){return{y:0}}}),M=t("zL8q"),w=t.n(M),S=t("Rf8U"),D=t.n(S),I=t("mtWM"),A=t.n(I),P=t("bOdI"),k=t.n(P),R=t("SJI6"),b=t.n(R);p.a.use(b.a);var E=new b.a.Store({state:{user:{},token:null,title:"",show:!1,bgHeight:window.screen.availHeight-440-24+"px",baseInfo:{},frontInfo:{},backInfo:{}},mutations:(l={},k()(l,"login",function(e,n){sessionStorage.token=n,e.token=n}),k()(l,"logout",function(e){sessionStorage.removeItem("token"),e.token=null}),k()(l,"title",function(e,n){e.title=n}),k()(l,"show",function(e,n){e.show=n}),k()(l,"saveBase",function(e,n){e.baseInfo=n}),k()(l,"saveFront",function(e,n){e.frontInfo=n}),k()(l,"clearData",function(e){e.baseInfo={},e.frontInfo={},e.backInfo={}}),l),actions:{saveBaseInfo:function(e,n){e.commit("saveBase",n)},saveFrontInfo:function(e,n){e.commit("saveBase",n)},clearApiData:function(e,n){e.commit("clearData")}}}),H=(t("4qCZ"),t("uKUT"),t("Xcu2"),{dateFormat:function(e,n){if(e){e=10===e.toString().length?1e3*e:e;var t=new Date(e),o={"M+":t.getMonth()+1,"D+":t.getDate(),W:"日一二三四五六".charAt(t.getDay()),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds(),"q+":Math.floor((t.getMonth()+3)/3),S:t.getMilliseconds()};for(var a in/(Y+)/.test(n)&&(n=n.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length))),o)new RegExp("("+a+")").test(n)&&(n=n.replace(RegExp.$1,1===RegExp.$1.length?o[a]:("00"+o[a]).substr((""+o[a]).length)));return n}},formatTimeStamp:function(e){var n=new Date(e),t=n.getMonth()+1,o=n.getDate()<10?"0"+n.getDate():n.getDate(),a=t<10?"0"+t:t,r=n.getHours()<10?"0"+n.getHours():n.getHours(),i=n.getMinutes()<10?"0"+n.getMinutes():n.getMinutes(),u=n.getSeconds()<10?"0"+n.getSeconds():n.getSeconds();return n.getFullYear()+"-"+a+"-"+o+" "+r+":"+i+":"+u},timeStampToYmd:function(e){var n=new Date(e),t=n.getMonth()+1,o=n.getDate()<10?"0"+n.getDate():n.getDate(),a=t<10?"0"+t:t;return n.getFullYear()+"-"+a+"-"+o},timeStampToHms:function(e){var n=new Date(e);return(n.getHours()<10?"0"+n.getHours():n.getHours())+":"+(n.getMinutes()<10?"0"+n.getMinutes():n.getMinutes())+":"+(n.getSeconds()<10?"0"+n.getSeconds():n.getSeconds())}});i.a.polyfill(),Vue.config.productionTip=!1,Vue.use(w.a,{size:"large"}),Vue.use(D.a,A.a),Vue.axios.defaults.withCredentials=!0,a()(H).forEach(function(e){Vue.filter(e,H[e])}),new Vue({el:"#app",router:x,store:E,components:{App:s},template:"<App/>"})},Opzk:function(e,n,t){var o={"./errorPage/403.vue":["6XGN",12],"./errorPage/404.vue":["AejC",13],"./errorPage/500.vue":["FskK",10],"./errorPage/index.vue":["ODjX",1],"./index/apiList.vue":["tiLT",0,9],"./index/apiListManage.vue":["dqHC",0,3],"./index/apiListManageShow.vue":["r4m9",0,2],"./index/apiProgram.vue":["kAqA",0,11],"./index/apiProgramGroup.vue":["G8l+",0,8],"./index/createApi.vue":["Yns/",0,4],"./index/createEnvSet.vue":["vm6Q",0,15],"./index/envManage.vue":["iGM1",0,7],"./index/errorCode.vue":["SGyq",0,14],"./index/index.vue":["JXTs",0,6],"./index/overview.vue":["EBdF",0,18],"./index/pluginManage.vue":["K0rJ",0,16],"./index/releaseRecords.vue":["OEJD",0,17],"./login/index.vue":["T+/8",0,5]};function a(e){var n=o[e];return n?Promise.all(n.slice(1).map(t.e)).then(function(){return t(n[0])}):Promise.reject(new Error("Cannot find module '"+e+"'."))}a.keys=function(){return Object.keys(o)},a.id="Opzk",e.exports=a},SJI6:function(e,n){e.exports=Vuex},Xcu2:function(e,n){},lRwf:function(e,n){e.exports=Vue},pRNm:function(e,n){e.exports=VueRouter},uKUT:function(e,n){}},[0]);
\ No newline at end of file
webpackJsonp([20],{"/NA0":function(e,n){},0:function(e,n,t){t("j1ja"),e.exports=t("NHnr")},"4qCZ":function(e,n){},"5tgt":function(e,n,t){e.exports=function(e,n){return function(o){t("Opzk")("./"+e+"/"+n+".vue").then(function(e){o(e)})}}},NHnr:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=t("fZjL"),a=t.n(o),r=(t("j1ja"),t("hKoQ")),i=t.n(r),u={render:function(){var e=this.$createElement,n=this._self._c||e;return n("div",{attrs:{id:"app"}},[n("transition",{attrs:{name:"fade",mode:"out-in"}},[n("router-view")],1)],1)},staticRenderFns:[]};var s=t("VU/8")({name:"App",data:function(){return{}}},u,!1,function(e){t("/NA0")},null,null).exports,c=t("lRwf"),p=t.n(c),g=t("pRNm"),m=t.n(g),f=t("5tgt"),l=t.n(f);p.a.use(m.a);var d,v=function(e){t.e(1).then(t.bind(null,"ODjX")).then(function(n){e(n)})},h=[{path:"/",name:"/",redirect:"login"},{path:"/login",name:"登录",component:l()("login","index")},{path:"/index",name:"概览",redirect:"overview",component:l()("index","index"),children:[{path:"/overview",name:"概览",component:l()("index","overview")},{path:"/apiProgram",name:"项目列表",component:l()("index","apiProgram")},{path:"/apiProgramGroup",name:"分组列表",component:l()("index","apiProgramGroup")},{path:"/apiList",name:"API列表",component:l()("index","apiList")},{path:"/createApi",name:"创建API",component:l()("index","createApi")},{path:"/apiListManage",name:"API列表管理",component:l()("index","apiListManage")},{path:"/apiListManageShow",name:"API列表管理查看",component:l()("index","apiListManageShow")},{path:"/envManage",name:"环境管理",component:l()("index","envManage")},{path:"/createEnvSet",name:"新建配置",component:l()("index","createEnvSet")},{path:"/releaseRecords",name:"发布记录",component:l()("index","releaseRecords")},{path:"/pluginManage",name:"插件管理",component:l()("index","pluginManage")},{path:"/errorCode",name:"错误码",component:l()("index","errorCode")}]},{path:"/403",name:"无权访问",component:v},{path:"/404",name:"error404",component:v},{path:"/500",name:"error500",component:v},{path:"*",redirect:"/404",hidden:!0}],x=new m.a({routes:h,scrollBehavior:function(){return{y:0}}}),I=t("zL8q"),S=t.n(I),M=t("Rf8U"),w=t.n(M),k=t("mtWM"),D=t.n(k),A=t("bOdI"),P=t.n(A),R=t("mvHQ"),b=t.n(R),H=t("SJI6"),E=t.n(H);p.a.use(E.a);var L=new E.a.Store({state:{userInfo:{},token:null,title:"",show:!1,bgHeight:window.screen.availHeight-440-24+"px",baseInfo:{},frontInfo:{},backInfo:{}},mutations:(d={},P()(d,"login",function(e,n){sessionStorage.token=n,e.token=n}),P()(d,"logout",function(e){sessionStorage.removeItem("token"),e.token=null}),P()(d,"title",function(e,n){e.title=n}),P()(d,"show",function(e,n){e.show=n}),P()(d,"saveUser",function(e,n){localStorage.removeItem("userInfo"),localStorage.setItem("userInfo",b()(n)),e.userInfo=JSON.parse(localStorage.getItem("userInfo"))}),P()(d,"clearUser",function(e){e.userInfo={},localStorage.getItem("userInfo")&&localStorage.removeItem("userInfo")}),P()(d,"saveBase",function(e,n){e.baseInfo=n}),P()(d,"saveFront",function(e,n){e.frontInfo=n}),P()(d,"saveBack",function(e,n){e.backInfo=n}),P()(d,"clearData",function(e){e.baseInfo={},e.frontInfo={},e.backInfo={}}),d),actions:{saveUserInfo:function(e,n){e.commit("saveUser",n)},clearUserInfo:function(e,n){e.commit("clearUser",n)},saveBaseInfo:function(e,n){e.commit("saveBase",n)},saveFrontInfo:function(e,n){e.commit("saveFront",n)},saveBackInfo:function(e,n){e.commit("saveBack",n)},clearApiData:function(e,n){e.commit("clearData")}}}),j=(t("4qCZ"),t("uKUT"),t("Xcu2"),{dateFormat:function(e,n){if(e){e=10===e.toString().length?1e3*e:e;var t=new Date(e),o={"M+":t.getMonth()+1,"D+":t.getDate(),W:"日一二三四五六".charAt(t.getDay()),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds(),"q+":Math.floor((t.getMonth()+3)/3),S:t.getMilliseconds()};for(var a in/(Y+)/.test(n)&&(n=n.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length))),o)new RegExp("("+a+")").test(n)&&(n=n.replace(RegExp.$1,1===RegExp.$1.length?o[a]:("00"+o[a]).substr((""+o[a]).length)));return n}},formatTimeStamp:function(e){var n=new Date(e),t=n.getMonth()+1,o=n.getDate()<10?"0"+n.getDate():n.getDate(),a=t<10?"0"+t:t,r=n.getHours()<10?"0"+n.getHours():n.getHours(),i=n.getMinutes()<10?"0"+n.getMinutes():n.getMinutes(),u=n.getSeconds()<10?"0"+n.getSeconds():n.getSeconds();return n.getFullYear()+"-"+a+"-"+o+" "+r+":"+i+":"+u},timeStampToYmd:function(e){var n=new Date(e),t=n.getMonth()+1,o=n.getDate()<10?"0"+n.getDate():n.getDate(),a=t<10?"0"+t:t;return n.getFullYear()+"-"+a+"-"+o},timeStampToHms:function(e){var n=new Date(e);return(n.getHours()<10?"0"+n.getHours():n.getHours())+":"+(n.getMinutes()<10?"0"+n.getMinutes():n.getMinutes())+":"+(n.getSeconds()<10?"0"+n.getSeconds():n.getSeconds())}});i.a.polyfill(),Vue.config.productionTip=!1,Vue.use(S.a,{size:"large"}),Vue.use(w.a,D.a),Vue.axios.defaults.withCredentials=!0,a()(j).forEach(function(e){Vue.filter(e,j[e])}),new Vue({el:"#app",router:x,store:L,components:{App:s},template:"<App/>"})},Opzk:function(e,n,t){var o={"./errorPage/403.vue":["6XGN",13],"./errorPage/404.vue":["AejC",14],"./errorPage/500.vue":["FskK",10],"./errorPage/index.vue":["ODjX",1],"./index/apiList.vue":["tiLT",0,9],"./index/apiListManage.vue":["dqHC",0,3],"./index/apiListManageShow.vue":["r4m9",0,2],"./index/apiProgram.vue":["kAqA",0,11],"./index/apiProgramGroup.vue":["G8l+",0,8],"./index/createApi.vue":["Yns/",0,4],"./index/createEnvSet.vue":["vm6Q",0,15],"./index/envManage.vue":["iGM1",0,7],"./index/errorCode.vue":["SGyq",0,12],"./index/index.vue":["JXTs",0,5],"./index/overview.vue":["EBdF",0,18],"./index/pluginManage.vue":["K0rJ",0,16],"./index/releaseRecords.vue":["OEJD",0,17],"./login/index.vue":["T+/8",0,6]};function a(e){var n=o[e];return n?Promise.all(n.slice(1).map(t.e)).then(function(){return t(n[0])}):Promise.reject(new Error("Cannot find module '"+e+"'."))}a.keys=function(){return Object.keys(o)},a.id="Opzk",e.exports=a},SJI6:function(e,n){e.exports=Vuex},Xcu2:function(e,n){},lRwf:function(e,n){e.exports=Vue},pRNm:function(e,n){e.exports=VueRouter},uKUT:function(e,n){}},[0]);
\ 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={21: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:"6ee593ed24aeaae90b72",1:"0ebe3ead93207dc78a78",2:"da32c7bad2bdd8df1cba",3:"7b91b8ddfc5f62f2e6ee",4:"6c62c4939004d4aec0a0",5:"a98c2aa73a7d98f7ee03",6:"57ef47ff6cd9b813a5bd",7:"ffadddec97f0f45def9a",8:"675b2562df7e8ed66bcc",9:"ba9ebe66529be9c17b84",10:"638039a7b39908980436",11:"32491f06181505e45739",12:"3b9c756b15cf547445f5",13:"6c760e15d9a57478de92",14:"683da61d9e6779bd972c",15:"1f73b9f7ee64e2c866b4",16:"71781076180fa67766a9",17:"180df87ba95cffdf25b7",18:"37321ffca9347a60b988"}[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
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,a,c){for(var f,i,u,b=0,d=[];b<r.length;b++)i=r[b],t[i]&&d.push(t[i][0]),t[i]=0;for(f in a)Object.prototype.hasOwnProperty.call(a,f)&&(e[f]=a[f]);for(n&&n(r,a,c);d.length;)d.shift()();if(c)for(b=0;b<c.length;b++)u=o(o.s=c[b]);return u};var r={},t={21: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 a=document.getElementsByTagName("head")[0],c=document.createElement("script");c.type="text/javascript",c.charset="utf-8",c.async=!0,c.timeout=12e4,o.nc&&c.setAttribute("nonce",o.nc),c.src=o.p+"static/js/"+e+"."+{0:"050890b13c40d69478cf",1:"0ebe3ead93207dc78a78",2:"bb199c33c8faf00725e4",3:"9fd76f48b7aba3c71a9f",4:"9b9834cc983b50dd66c8",5:"f5fa3d932b333b154e0e",6:"03233da003452ba92dd2",7:"db1a432f457b681ff3ca",8:"675b2562df7e8ed66bcc",9:"ba9ebe66529be9c17b84",10:"638039a7b39908980436",11:"32491f06181505e45739",12:"2a09290d3e01e60808e3",13:"3f70345d9260ae04ca59",14:"9825bb69e60b8030c230",15:"46bcca2885e37e37de23",16:"71781076180fa67766a9",17:"180df87ba95cffdf25b7",18:"37321ffca9347a60b988"}[e]+".js";var f=setTimeout(i,12e4);function i(){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=i,a.appendChild(c),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
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.
......@@ -200,6 +200,7 @@ export default {
let resData = res.data;
if (resData.code == '0000') {
showMsg.showmsg('设置成功', 'success');
that.getData();
return;
}
errMsg.errorMsg(resData);
......
......@@ -54,7 +54,7 @@ export default {
name: 'env-set-list',
data() {
return {
proxyType: '0',
proxyType: '0', // http: 0, dubbo: 1
searchValue: '',
tableData: [
/* {
......
......@@ -121,7 +121,7 @@ export default {
/* 接收数据 */
mounted() {
var that = this;
console.log(that.$store);
// console.log(that.$store);
that.pathName = that.$route.path;
that.getUserInfo();
}
......
......@@ -8,6 +8,9 @@
<div class="base-set-wrap">
<div class="set-title font-14 color-303133">基础配置</div>
<el-form :model="formData" label-width="94px" :rules="rules" ref="envForm">
<el-form-item label="参数类型:">
{{ formData.proxyType == 0 ? 'http' : 'dubbo' }}
</el-form-item>
<el-form-item label="配置名称:" prop="proxyName">
<limitInput :inputWidth="440" :inputValue.sync="formData.proxyName" :holder="'请输入配置名称'" :getByType="'word'" :maxLength="20"> </limitInput>
</el-form-item>
......@@ -33,12 +36,19 @@
</el-select>
</template>
</el-table-column>
<el-table-column label="IP地址" show-overflow-tooltip>
<el-table-column v-if="$route.query.proxyType == 0" label="IP地址" width="550px">
<template slot-scope="scope">
<div :class="['ip-cell ', index == 0 ? '' : 'm-t-18']" v-for="(item, index) in scope.row.proxyParams" :key="index">
<el-input class="w-200 font-14" v-model="item.url" placeholder="请输入ip地址"></el-input><el-input class="w-200 font-14 m-l-10" v-model="item.weight" placeholder="请输入权重值"></el-input>
<i v-if="scope.row.proxyParams.length > 1 && index < scope.row.proxyParams.length - 1" class="inline-block vertical-middle pointer el-icon-minus font-14 p-l-10" @click="toDel(scope.row, scope.$index, index)"></i>
<i v-if="scope.row.proxyParams.length - 1 == index" class="inline-block vertical-middle pointer el-icon-plus font-14 p-l-10" @click="toAdd(scope.row, scope.$index, index)"></i>
</div>
</template>
</el-table-column>
<el-table-column v-if="$route.query.proxyType == 1" label="注册中心" width="550px">
<template slot-scope="scope">
<div :class="['ip-cell w-206', index == 0 ? '' : 'm-t-18']" v-for="(item, index) in scope.row.ips" :key="index">
<el-input v-model="item.ip" placeholder=""></el-input>
<i v-if="scope.row.ips.length > 1 && index < scope.row.ips.length - 1" class="inline-block pointer el-icon-minus p-l-10" @click="toDel(scope.row, scope.$index, index)"></i>
<i v-if="scope.row.ips.length - 1 == index" class="inline-block pointer el-icon-plus p-l-10" @click="toAdd(scope.row, scope.$index, index)"></i>
<div :class="['ip-cell w-206', index == 0 ? '' : 'm-t-18']" v-for="(item, index) in scope.row.proxyParams" :key="index">
<el-input class="font-14" v-model="item.zookeeperUrl" placeholder=""></el-input>
</div>
</template>
</el-table-column>
......@@ -85,7 +95,7 @@ export default {
path: '/envManage'
},
{
name: '新增配置',
name: this.$route.query.backendProxyId ? '修改配置' : '新增配置',
path: ''
}
],
......@@ -105,9 +115,12 @@ export default {
tableData: [
{
sceneCode: '',
ips: [
proxyParams: [
{
ip: ''
balence: 'random',
url: '',
weight: '',
zookeeperUrl: ''
}
]
}
......@@ -136,14 +149,17 @@ export default {
* 删除 ip
*/
toDel(row, index, child) {
row.ips.splice(child, 1);
row.proxyParams.splice(child, 1);
},
/**
* 删除 ip
* 添加 ip
*/
toAdd(row, index, child) {
row.ips.push({
ip: ''
row.proxyParams.push({
balence: '',
url: '',
weight: '',
zookeeperUrl: ''
});
},
/**
......@@ -169,10 +185,13 @@ export default {
toAddRow() {
const that = this;
that.tableData.push({
envName: '',
ips: [
sceneCode: '',
proxyParams: [
{
ip: ''
balence: '',
url: '',
weight: '',
zookeeperUrl: ''
}
]
});
......@@ -194,20 +213,34 @@ export default {
},
saveData() {
const that = this;
that.tableData.forEach(ele => {
if (that.formData.proxyType == 0) {
ele.proxyParams.forEach(child => {
that.$delete(child, 'zookeeperUrl');
});
} else {
ele.proxyParams.forEach(child => {
that.$delete(child, 'balence');
that.$delete(child, 'url');
that.$delete(child, 'weight');
});
}
});
// console.log(that.tableData);
let para = {
backendProxyId: that.formData.backendProxyId,
proxyType: that.formData.proxyType,
proxyName: that.formData.proxyName,
proxyCode: that.formData.proxyCode,
description: that.formData.description,
envParams: that.shoEnvFlag ? JSON.parse(JSON.stringify(that.tableData)) : ''
envParams: that.shoEnvFlag ? JSON.stringify(that.tableData) : ''
};
getRequest(that.$route.query.backendProxyId ? '/gateway-manage/update-proxy' : '/gateway-manage/create-proxy', para)
.then(res => {
let resData = res.data;
if (resData.code == '0000') {
showMsg.showmsg('保存成功', 'success');
that.$router.push('/envManage');
that.$router.push(`/envManage?tabChildid=second`);
return;
}
errMsg.errorMsg(resData);
......@@ -247,7 +280,7 @@ export default {
getData() {
const that = this;
let para = {
backendProxyId: that.backendProxyId
backendProxyId: that.formData.backendProxyId
};
getRequest('/gateway-manage/get-proxy', para)
.then(res => {
......@@ -279,6 +312,10 @@ export default {
mounted() {
const that = this;
that.$emit('showTab', 3);
that.getEnvData();
if (that.$route.query.backendProxyId) {
that.getData();
}
}
};
</script>
......@@ -287,6 +324,15 @@ export default {
.w-206 {
width: 206px;
}
.w-200 {
width: 200px;
}
.vertical-middle {
vertical-align: middle;
}
.ip-cell {
font-size: 0;
}
.set-title {
margin-bottom: 20px;
font-weight: 600;
......
......@@ -92,6 +92,9 @@ export default {
mounted() {
const that = this;
that.$emit('showTab', 3);
if (that.$route.query.tabChildid) {
that.activeName = that.$route.query.tabChildid;
}
}
};
</script>
......
......@@ -30,7 +30,7 @@
</el-table-column>
<el-table-column label="操作" show-overflow-tooltip>
<template slot-scope="scope">
<el-button @click="handleEdit(scope.$index, scope.row)" type="text">编辑</el-button>
<el-button disabled="true" @click="handleEdit(scope.$index, scope.row)" type="text">编辑</el-button>
</template>
</el-table-column>
</el-table>
......@@ -46,7 +46,7 @@
<script>
import navBread from '@/components/nav/nav-bread.vue';
import errorCodeEdit from '@/components/error/error-code-edit.vue';
import { getRequest } from '@/api/api';
import { postRequest } from '@/api/api';
import { _debounce } from '@/assets/js/public';
import errMsg from '@/assets/js/error';
export default {
......@@ -144,7 +144,7 @@ export default {
pageNum: that.currentPage,
pageSize: that.pageSize
};
getRequest('/gateway-manage/page-error-setting', para)
postRequest('/gateway-manage/page-error-setting', para)
.then(res => {
let resData = res.data;
if (resData.code == '0000') {
......@@ -174,7 +174,7 @@ export default {
mounted() {
const that = this;
that.$emit('showTab', 6);
// that.getData();
that.getData();
}
};
</script>
......
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