Commit c1b90832 by fairyly

feat: 增加日志

parent c9f6381c
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>API网关管理平台</title><link href=./static/css/app.88984a7c7be462dedbcca470f93350a7.css rel=stylesheet></head><body style="min-width: 1400px;"><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js></script><script>// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script src=//web-1251519181.file.myqcloud.com/components/input.2.0.15.js></script><script src=//web-1251519181.file.myqcloud.com/components/delete.2.0.01.js></script><script type=text/javascript src=./static/js/manifest.b1317e589672f79ab5e7.js></script><script type=text/javascript src=./static/js/vendor.71dc162eb690bf6a36a0.js></script><script type=text/javascript src=./static/js/app.80268ec4d989f50283bc.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>API网关管理平台</title><link href=./static/css/app.1af31f5f691ceecb355ed5e63386f9c3.css rel=stylesheet></head><body style="min-width: 1400px;"><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js></script><script>// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script src=//web-1251519181.file.myqcloud.com/components/input.2.0.15.js></script><script src=//web-1251519181.file.myqcloud.com/components/delete.2.0.01.js></script><script type=text/javascript src=./static/js/manifest.851300d7cd23493536c6.js></script><script type=text/javascript src=./static/js/vendor.8a7d9b6a240a44fbfea8.js></script><script type=text/javascript src=./static/js/app.7423e4bab678b44fea0c.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}},"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"),a={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 t.includes("?")&&(n=t+"&"+this.$route.fullPath.split("?")[1]),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(){}},o={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")(a,o,!1,function(t){n("StRu")},"data-v-31a66722",null);e.a=u.exports},"3fs2":function(t,e,n){var r=n("RY/4"),i=n("dSzd")("iterator"),a=n("/bQp");t.exports=n("FeBl").getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||a[r(t)]}},"82Mu":function(t,e,n){var r=n("7KvD"),i=n("L42u").set,a=r.MutationObserver||r.WebKitMutationObserver,o=r.process,u=r.Promise,s="process"==n("R9M2")(o);t.exports=function(){var t,e,n,l=function(){var r,i;for(s&&(r=o.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(){o.nextTick(l)};else if(!a||r.navigator&&r.navigator.standalone)if(u&&u.resolve){var c=u.resolve(void 0);n=function(){c.then(l)}}else n=function(){i.call(r,l)};else{var f=!0,p=document.createTextNode("");new a(l).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}}},BO1k:function(t,e,n){t.exports={default:n("fxRn"),__esModule:!0}},CXw9:function(t,e,n){"use strict";var r,i,a,o,u=n("O4g8"),s=n("7KvD"),l=n("+ZMJ"),c=n("RY/4"),f=n("kM2E"),p=n("EqjI"),d=n("lOnJ"),h=n("2KxR"),m=n("NWt+"),g=n("t8x9"),v=n("L42u").set,y=n("82Mu")(),b=n("qARP"),w=n("dNDb"),x=n("iUbK"),_=n("fJUb"),D=s.TypeError,j=s.process,N=j&&j.versions,V=N&&N.v8||"",O=s.Promise,L="process"==c(j),P=function(){},C=i=b.f,k=!!function(){try{var t=O.resolve(1),e=(t.constructor={})[n("dSzd")("species")]=function(t){t(P,P)};return(L||"function"==typeof PromiseRejectionEvent)&&t.then(P)instanceof e&&0!==V.indexOf("6.6")&&-1===x.indexOf("Chrome/66")}catch(t){}}(),R=function(t){var e;return!(!p(t)||"function"!=typeof(e=t.then))&&e},F=function(t,e){if(!t._n){t._n=!0;var n=t._c;y(function(){for(var r=t._v,i=1==t._s,a=0,o=function(e){var n,a,o,u=i?e.ok:e.fail,s=e.resolve,l=e.reject,c=e.domain;try{u?(i||(2==t._h&&A(t),t._h=1),!0===u?n=r:(c&&c.enter(),n=u(r),c&&(c.exit(),o=!0)),n===e.promise?l(D("Promise-chain cycle")):(a=R(n))?a.call(n,s,l):s(n)):l(r)}catch(t){c&&!o&&c.exit(),l(t)}};n.length>a;)o(n[a++]);t._c=[],t._n=!1,e&&!t._h&&S(t)})}},S=function(t){v.call(s,function(){var e,n,r,i=t._v,a=B(t);if(a&&(e=w(function(){L?j.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=L||B(t)?2:1),t._a=void 0,a&&e.e)throw e.v})},B=function(t){return 1!==t._h&&0===(t._a||t._c).length},A=function(t){v.call(s,function(){var e;L?j.emit("rejectionHandled",t):(e=s.onrejectionhandled)&&e({promise:t,reason:t._v})})},T=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()),F(e,!0))},I=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw D("Promise can't be resolved itself");(e=R(t))?y(function(){var r={_w:n,_d:!1};try{e.call(t,l(I,r,1),l(T,r,1))}catch(t){T.call(r,t)}}):(n._v=t,n._s=1,F(n,!1))}catch(t){T.call({_w:n,_d:!1},t)}}};k||(O=function(t){h(this,O,"Promise","_h"),d(t),r.call(this);try{t(l(I,this,1),l(T,this,1))}catch(t){T.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")(O.prototype,{then:function(t,e){var n=C(g(this,O));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=L?j.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&F(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),a=function(){var t=new r;this.promise=t,this.resolve=l(I,t,1),this.reject=l(T,t,1)},b.f=C=function(t){return t===O||t===o?new a(t):i(t)}),f(f.G+f.W+f.F*!k,{Promise:O}),n("e6n0")(O,"Promise"),n("bRrM")("Promise"),o=n("FeBl").Promise,f(f.S+f.F*!k,"Promise",{reject:function(t){var e=C(this);return(0,e.reject)(t),e.promise}}),f(f.S+f.F*(u||!k),"Promise",{resolve:function(t){return _(u&&this===o?O:this,t)}}),f(f.S+f.F*!(k&&n("dY0y")(function(t){O.all(t).catch(P)})),"Promise",{all:function(t){var e=this,n=C(e),r=n.resolve,i=n.reject,a=w(function(){var n=[],a=0,o=1;m(t,!1,function(t){var u=a++,s=!1;n.push(void 0),o++,e.resolve(t).then(function(t){s||(s=!0,n[u]=t,--o||r(n))},i)}),--o||r(n)});return a.e&&i(a.v),n.promise},race:function(t){var e=this,n=C(e),r=n.reject,i=w(function(){m(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"),a={brackets:function(t){return t+"[]"},indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},o=Date.prototype.toISOString,u={delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,serializeDate:function(t){return o.call(t)},skipNulls:!1,strictNullHandling:!1},s=function t(e,n,i,a,o,s,l,c,f,p,d,h){var m=e;if("function"==typeof l)m=l(n,m);else if(m instanceof Date)m=p(m);else if(null===m){if(a)return s&&!h?s(n,u.encoder):n;m=""}if("string"==typeof m||"number"==typeof m||"boolean"==typeof m||r.isBuffer(m))return s?[d(h?n:s(n,u.encoder))+"="+d(s(m,u.encoder))]:[d(n)+"="+d(String(m))];var g,v=[];if(void 0===m)return v;if(Array.isArray(l))g=l;else{var y=Object.keys(m);g=c?y.sort(c):y}for(var b=0;b<g.length;++b){var w=g[b];o&&null===m[w]||(v=Array.isArray(m)?v.concat(t(m[w],i(n,w),i,a,o,s,l,c,f,p,d,h)):v.concat(t(m[w],n+(f?"."+w:"["+w+"]"),i,a,o,s,l,c,f,p,d,h)))}return v};t.exports=function(t,e){var n=t,o=e?r.assign({},e):{};if(null!==o.encoder&&void 0!==o.encoder&&"function"!=typeof o.encoder)throw new TypeError("Encoder has to be a function.");var l=void 0===o.delimiter?u.delimiter:o.delimiter,c="boolean"==typeof o.strictNullHandling?o.strictNullHandling:u.strictNullHandling,f="boolean"==typeof o.skipNulls?o.skipNulls:u.skipNulls,p="boolean"==typeof o.encode?o.encode:u.encode,d="function"==typeof o.encoder?o.encoder:u.encoder,h="function"==typeof o.sort?o.sort:null,m=void 0!==o.allowDots&&o.allowDots,g="function"==typeof o.serializeDate?o.serializeDate:u.serializeDate,v="boolean"==typeof o.encodeValuesOnly?o.encodeValuesOnly:u.encodeValuesOnly;if(void 0===o.format)o.format=i.default;else if(!Object.prototype.hasOwnProperty.call(i.formatters,o.format))throw new TypeError("Unknown format option provided.");var y,b,w=i.formatters[o.format];"function"==typeof o.filter?n=(b=o.filter)("",n):Array.isArray(o.filter)&&(y=b=o.filter);var x,_=[];if("object"!=typeof n||null===n)return"";x=o.arrayFormat in a?o.arrayFormat:"indices"in o?o.indices?"indices":"repeat":"indices";var D=a[x];y||(y=Object.keys(n)),h&&y.sort(h);for(var j=0;j<y.length;++j){var N=y[j];f&&null===n[N]||(_=_.concat(s(n[N],N,D,c,f,p?d:null,b,h,m,g,w,v)))}var V=_.join(l),O=!0===o.addQueryPrefix?"?":"";return V.length>0?O+V:""}},DDCP:function(t,e,n){"use strict";var r=n("p8xL"),i=Object.prototype.hasOwnProperty,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:r.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},o=function(t,e,n){if(t){var r=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/g,o=/(\[[^[\]]*])/.exec(r),u=o?r.slice(0,o.index):r,s=[];if(u){if(!n.plainObjects&&i.call(Object.prototype,u)&&!n.allowPrototypes)return;s.push(u)}for(var l=0;null!==(o=a.exec(r))&&l<n.depth;){if(l+=1,!n.plainObjects&&i.call(Object.prototype,o[1].slice(1,-1))&&!n.allowPrototypes)return;s.push(o[1])}return o&&s.push("["+r.slice(o.index)+"]"),function(t,e,n){for(var r=e,i=t.length-1;i>=0;--i){var a,o=t[i];if("[]"===o)a=(a=[]).concat(r);else{a=n.plainObjects?Object.create(null):{};var u="["===o.charAt(0)&&"]"===o.charAt(o.length-1)?o.slice(1,-1):o,s=parseInt(u,10);!isNaN(s)&&o!==u&&String(s)===u&&s>=0&&n.parseArrays&&s<=n.arrayLimit?(a=[])[s]=r:a[u]=r}r=a}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:a.delimiter,n.depth="number"==typeof n.depth?n.depth:a.depth,n.arrayLimit="number"==typeof n.arrayLimit?n.arrayLimit:a.arrayLimit,n.parseArrays=!1!==n.parseArrays,n.decoder="function"==typeof n.decoder?n.decoder:a.decoder,n.allowDots="boolean"==typeof n.allowDots?n.allowDots:a.allowDots,n.plainObjects="boolean"==typeof n.plainObjects?n.plainObjects:a.plainObjects,n.allowPrototypes="boolean"==typeof n.allowPrototypes?n.allowPrototypes:a.allowPrototypes,n.parameterLimit="number"==typeof n.parameterLimit?n.parameterLimit:a.parameterLimit,n.strictNullHandling="boolean"==typeof n.strictNullHandling?n.strictNullHandling:a.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,o=e.parameterLimit===1/0?void 0:e.parameterLimit,u=r.split(e.delimiter,o),s=0;s<u.length;++s){var l,c,f=u[s],p=f.indexOf("]="),d=-1===p?f.indexOf("="):p+1;-1===d?(l=e.decoder(f,a.decoder),c=e.strictNullHandling?null:""):(l=e.decoder(f.slice(0,d),a.decoder),c=e.decoder(f.slice(d+1),a.decoder)),i.call(n,l)?n[l]=[].concat(n[l]).concat(c):n[l]=c}return n}(t,n):t,s=n.plainObjects?Object.create(null):{},l=Object.keys(u),c=0;c<l.length;++c){var f=l[c],p=o(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"),a=n("7KvD"),o=n("t8x9"),u=n("fJUb");r(r.P+r.R,"Promise",{finally:function(t){var e=o(this,i.Promise||a.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)}},a={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 o=n("VU/8")(i,a,!1,function(t){n("r1x4")},"data-v-a0c20e4e",null);e.a=o.exports},L42u:function(t,e,n){var r,i,a,o=n("+ZMJ"),u=n("knuC"),s=n("RPLV"),l=n("ON07"),c=n("7KvD"),f=c.process,p=c.setImmediate,d=c.clearImmediate,h=c.MessageChannel,m=c.Dispatch,g=0,v={},y=function(){var t=+this;if(v.hasOwnProperty(t)){var e=v[t];delete v[t],e()}},b=function(t){y.call(t.data)};p&&d||(p=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return v[++g]=function(){u("function"==typeof t?t:Function(t),e)},r(g),g},d=function(t){delete v[t]},"process"==n("R9M2")(f)?r=function(t){f.nextTick(o(y,t,1))}:m&&m.now?r=function(t){m.now(o(y,t,1))}:h?(a=(i=new h).port2,i.port1.onmessage=b,r=o(a.postMessage,a,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(r=function(t){c.postMessage(t+"","*")},c.addEventListener("message",b,!1)):r="onreadystatechange"in l("script")?function(t){s.appendChild(l("script")).onreadystatechange=function(){s.removeChild(this),y.call(t)}}:function(t){setTimeout(o(y,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"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||a[i]===t)}},"NWt+":function(t,e,n){var r=n("+ZMJ"),i=n("msXi"),a=n("Mhyx"),o=n("77Pl"),u=n("QRG4"),s=n("3fs2"),l={},c={};(e=t.exports=function(t,e,n,f,p){var d,h,m,g,v=p?function(){return t}:s(t),y=r(n,f,e?2:1),b=0;if("function"!=typeof v)throw TypeError(t+" is not iterable!");if(a(v)){for(d=u(t.length);d>b;b++)if((g=e?y(o(h=t[b])[0],h[1]):y(t[b]))===l||g===c)return g}else for(m=v.call(t);!(h=m.next()).done;)if((g=i(m,y,h.value,e))===l||g===c)return g}).BREAK=l,e.RETURN=c},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),a=n("lRwf"),o=n.n(a),u=n("mw3O"),s=n.n(u),l=n("zL8q");n.n(l);o.a.axios.defaults.timeout=25e3;var c=window.location.origin;o.a.axios.interceptors.request.use(function(t){return t},function(t){return l.Message.error({message:"请求超时!"}),i.a.resolve(t)}),o.a.axios.interceptors.response.use(function(t){return t.status&&200==t.status&&"0000"!=t.data.code?(4==t.data.code&&(window.location.href=c+"gateway-web/#/login"),10!=t.data.code&&7!=t.data.code||(window.location.href=c+"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",o.a.axios({method:"get",url:""+c+t,data:{},params:e,headers:{"Content-type":"application/x-www-form-urlencoded"}})},p=function(t,e){return e.requestProject="api-gateway-web",o.a.axios({method:"post",url:""+c+t,data:s.a.stringify(e),headers:{"Content-type":"application/x-www-form-urlencoded"}})}},PEkr:function(t,e,n){"use strict";var r=n("BO1k"),i=n.n(r),a=n("P9l9"),o={props:{pluginId:{type:String,default:function(){return""}},pluginType:{type:Number,default:function(){return 0}}},data:function(){return{dialogVisible:!0,tableData:[],loading:!1}},created:function(){this.dialogVisible=!0,this.getData()},methods:{getData:function(){var t=this,e=this,n={pluginId:this.pluginId};this.loading=!0,Object(a.a)("/gateway-manage/plugin/scene/list",n).then(function(e){if("0000"==e.data.code){if(e.data.result){t.tableData=e.data.result;var n=!0,r=!1,a=void 0;try{for(var o,u=i()(t.tableData);!(n=(o=u.next()).done);n=!0){var s=o.value;s.enableFlag=1===s.enableFlag}}catch(t){r=!0,a=t}finally{try{!n&&u.return&&u.return()}finally{if(r)throw a}}}else t.tableData=[];t.loading=!1}else t.$message.error(e.data.message)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},changeFlag:function(t){var e=this,n=this,r={pluginId:this.pluginId,sceneCode:t.sceneCode,enableFlag:t.enableFlag?1:0};Object(a.a)("/gateway-manage/plugin/scene/enable",r).then(function(n){"0000"==n.data.code?e.getData():(t.enableFlag=!t.enableFlag,e.$message.error(n.data.message))}).catch(function(t){n.$message.error({duration:1e3,message:t.message})})},goList:function(t){this.dialogVisible=!1,0===this.pluginType?this.$router.push({path:"/plugAhsh",query:{sceneCode:t.sceneCode,pluginId:this.pluginId}}):1===this.pluginType&&this.$router.push({path:"/plugPlatform",query:{sceneCode:t.sceneCode,pluginId:this.pluginId}})},close:function(){this.dialogVisible=!1,this.$emit("closeDialog")}}},u={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-dialog",{attrs:{title:"选择环境",visible:t.dialogVisible,width:"600px"},on:{"update:visible":function(e){t.dialogVisible=e},close:t.close}},[n("div",{staticClass:"dialog-body"},[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"dialog-table",staticStyle:{width:"100%"},attrs:{data:t.tableData}},[n("el-table-column",{attrs:{prop:"sceneName",label:"环境名称"}}),t._v(" "),n("el-table-column",{attrs:{prop:"updateTime",label:"更新时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.updateTime)))]),t._v(" "),n("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.updateTime)))])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"enableFlag",label:"开启状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-switch",{on:{change:function(n){t.changeFlag(e.row)}},model:{value:e.row.enableFlag,callback:function(n){t.$set(e.row,"enableFlag",n)},expression:"scope.row.enableFlag"}})]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text"},on:{click:function(n){t.goList(e.row)}}},[t._v("立即进入")])]}}])})],1)],1)])},staticRenderFns:[]};var s=n("VU/8")(o,u,!1,function(t){n("ZIFW")},"data-v-456c7494",null);e.a=s.exports},"RY/4":function(t,e,n){var r=n("R9M2"),i=n("dSzd")("toStringTag"),a="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,o;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:a?r(e):"Object"==(o=r(e))&&"function"==typeof e.callee?"Arguments":o}},StRu:function(t,e){},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=""==t||null==t?"":t,n=0,r=0;r<e.length;r++){null!=e.charAt(r).match(/[^\x00-\xff]/gi)?n+=2:n+=1}return n},getZhLen:function(t){for(var e=""==t||null==t?"":t,n=0,r=0;r<e.length;r++){null!=e.charAt(r).match(/[^\x00-\xff]/gi)?n+=1:n+=.5}return Math.ceil(n)},cutStr:function(t,e,n){for(var r=0,i=0;i<t.length;i++){var a=t.charAt(i);if(1==n&&(encodeURI(a).length>2?r+=1:r+=.5),2==n&&(r+=1),r>=e){var o=r==e?i+1:i;return t.substr(0,o)}}},getByteVal:function(t,e){for(var n=""==t||null==t?"":t,r="",i=0,a=0;a<n.length&&(null!=n[a].match(/[^\x00-\xff]/gi)?i+=1:i+=.5,!(i>e));a++)r+=n[a];return r},getCharVal:function(t,e){for(var n=""==t||null==t?"":t,r="",i=0,a=0;a<n.length&&(null!=n[a].match(/[^\x00-\xff]/gi)?i+=2:i+=1,!(i>e));a++)r+=n[a];return r},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"}},ZIFW:function(t,e){},arKS:function(t,e){},bRrM:function(t,e,n){"use strict";var r=n("7KvD"),i=n("FeBl"),a=n("evD5"),o=n("+E39"),u=n("dSzd")("species");t.exports=function(t){var e="function"==typeof i[t]?i[t]:r[t];o&&e&&!e[u]&&a.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 a=[7][r]();a.return=function(){i=!0},Array.from(a,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var a=[7],o=a[r]();o.next=function(){return{done:n=!0}},a[r]=function(){return o},t(a)}catch(t){}return n}},f2i8:function(t,e,n){"use strict";var r=n("mvHQ"),i=n.n(r),a=n("fZjL"),o=n.n(a),u=n("l46T"),s=n("Kkt8"),l=n("P9l9"),c=n("TUB1"),f=n("LlAa"),p={name:"new-api-group",props:{showDialog:{type:Boolean,default:!1},editRow:{type:Object,default:function(){return{interfaceGroupId:"",groupName:"",remark:""}}}},components:{limitInput:u.a,limitTextarea:s.a},data:function(){return{customDialog:!1,formData:{interfaceGroupId:"",groupName:"",remark:""},rules:{groupName:[{required:!0,message:"请输入分组名称",trigger:"blur"}],remark:[{required:!0,message:"请输入描述",trigger:"blur"}]}}},methods:{handleClose:function(t){this.$refs.programGroupForm.resetFields(),t(),this.hideDialog()},customCancel:function(){this.$refs.programGroupForm.resetFields(),this.hideDialog()},hideDialog:function(){this.customDialog=!1,this.formData.groupName="",this.formData.remark="",this.$emit("hideDialog","")},customConfirm:function(t){var e=this;e.formData.groupName=e.formData.groupName?String(e.formData.groupName).replace(/\s+/g,""):"",e.formData.remark=e.formData.remark?String(e.formData.remark).replace(/\s+/g,""):"",e.$refs[t].validate(function(t){if(!t)return!1;e.postEditData()})},postEditData:function(){var t=this,e={interfaceGroupId:t.formData.interfaceGroupId,groupName:t.formData.groupName,remark:t.formData.remark,projectId:t.$route.query.projectId};Object(l.a)(t.editRow.interfaceGroupId?"/gateway-manage/update-api-group":"/gateway-manage/create-api-group",e).then(function(e){var n=e.data;if("0000"==n.code)return c.a.showmsg("保存成功","success"),void t.setData();f.a.errorMsg(n)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},setData:function(t){var e=this;e.$emit("hideDialog",e.formData),e.$nextTick(function(){e.formData.groupName="",e.formData.remark=""})}},watch:{showDialog:function(t,e){this.customDialog=t},editRow:function(t,e){o()(t).length&&(this.formData=JSON.parse(i()(t)))}},mounted:function(){this.customDialog=this.showDialog,o()(this.editRow).length&&(this.formData=JSON.parse(i()(this.editRow)))}},d={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"show",rawName:"v-show",value:t.customDialog,expression:"customDialog"}]},[n("el-dialog",{staticClass:"edit-dialog",attrs:{title:t.formData.interfaceGroupId?"编辑分组":"新建分组",visible:t.customDialog,width:"600px","before-close":t.handleClose},on:{"update:visible":function(e){t.customDialog=e}}},[n("div",{staticClass:"edit-dialog-body"},[n("el-form",{ref:"programGroupForm",attrs:{model:t.formData,"label-width":"94px",rules:t.rules}},[n("el-form-item",{attrs:{label:"分组名称:",prop:"groupName"}},[n("limitInput",{attrs:{inputWidth:440,inputValue:t.formData.groupName,holder:"请输入分组名称",getByType:"word",maxLength:20},on:{"update:inputValue":function(e){t.$set(t.formData,"groupName",e)}}})],1),t._v(" "),n("el-form-item",{attrs:{label:"描述:"}},[n("limit-textarea",{attrs:{inputWidth:440,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(" "),n("div",{staticClass:"dialog-footer",staticStyle:{"padding-bottom":"10px"},attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:t.customCancel}},[t._v("取 消")]),t._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:function(e){t.customConfirm("programGroupForm")}}},[t._v(t._s(t.formData.interfaceGroupId?"保 存":"新 建"))])],1)])],1)},staticRenderFns:[]};var h=n("VU/8")(p,d,!1,function(t){n("arKS")},"data-v-78ce30dc",null);e.a=h.exports},fJUb:function(t,e,n){var r=n("77Pl"),i=n("EqjI"),a=n("qARP");t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=a.f(t);return(0,n.resolve)(e),n.promise}},fxRn:function(t,e,n){n("+tPU"),n("zQR9"),t.exports=n("g8Ux")},g8Ux:function(t,e,n){var r=n("77Pl"),i=n("3fs2");t.exports=n("FeBl").getIterator=function(t){var e=i(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return r(e.call(t))}},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"),a=n("dNDb");r(r.S,"Promise",{try:function(t){var e=i.f(this),n=a(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)}},e.b=function(t){var e={};for(var n in t){if(e[t[n]])return!0;e[t[n]]=!0}return!1}},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)}},a={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 o=n("VU/8")(i,a,!1,function(t){n("tz7a")},"data-v-093222f7",null);e.a=o.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 a=t.return;throw void 0!==a&&r(a.call(t)),e}}},mw3O:function(t,e,n){"use strict";var r=n("CwSZ"),i=n("DDCP"),a=n("XgCd");t.exports={formats:a,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}(),a=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:a,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],a=i.obj[i.prop],o=Object.keys(a),u=0;u<o.length;++u){var s=o[u],l=a[s];"object"==typeof l&&null!==l&&-1===n.indexOf(l)&&(e.push({obj:a,prop:s}),n.push(l))}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 a=e.charCodeAt(r);45===a||46===a||95===a||126===a||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?n+=e.charAt(r):a<128?n+=i[a]:a<2048?n+=i[192|a>>6]+i[128|63&a]:a<55296||a>=57344?n+=i[224|a>>12]+i[128|a>>6&63]+i[128|63&a]:(r+=1,a=65536+((1023&a)<<10|1023&e.charCodeAt(r)),n+=i[240|a>>18]+i[128|a>>12&63]+i[128|a>>6&63]+i[128|63&a])}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 o=e;return Array.isArray(e)&&!Array.isArray(n)&&(o=a(e,i)),Array.isArray(e)&&Array.isArray(n)?(n.forEach(function(n,a){r.call(e,a)?e[a]&&"object"==typeof e[a]?e[a]=t(e[a],n,i):e.push(n):e[a]=n}),e):Object.keys(n).reduce(function(e,a){var o=n[a];return r.call(e,a)?e[a]=t(e[a],o,i):e[a]=o,e},o)}}},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)}},r1x4:function(t,e){},t8x9:function(t,e,n){var r=n("77Pl"),i=n("lOnJ"),a=n("dSzd")("species");t.exports=function(t,e){var n,o=r(t).constructor;return void 0===o||void 0==(n=r(o)[a])?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,r){t.exports={default:r("U5ju"),__esModule:!0}},"2KxR":function(t,e){t.exports=function(t,e,r,n){if(!(t instanceof e)||void 0!==n&&n in t)throw TypeError(r+": incorrect invocation!");return t}},"319J":function(t,e,r){"use strict";var n=r("P9l9"),i=r("LlAa"),a={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 r=t+("?"+this.$route.fullPath.split("?")[1]);return t.includes("?")&&(r=t+"&"+this.$route.fullPath.split("?")[1]),this.$router.push(r),!1}this.$router.push(t)}},getNavPath:function(){var t=this,e={project:t.projectName,path:t.$route.path.split("/")[1]};Object(n.b)("/api-auth/get-current-memu-data",e).then(function(e){var r=e.data;if(0==r.errorCode)return!!r.result&&(t.navpath=[],void(r.result.list&&r.result.list.length&&r.result.list.forEach(function(e,n){e.name=e.menuName,e.path="",n==r.result.list.length-1&&(e.path="/"+e.menuUrl),n>0&&t.navpath.push(e)})));i.a.errorMsg(r)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){}},o={render:function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"nav-wrap boxbttom border-box"},[r("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},[t._l(t.navPath,function(e,n){return[e.path?[r("el-breadcrumb-item",{key:"nav"+n,on:{click:function(r){return t.changeRoute(e.path,e.relocation)}}},[r("span",{staticClass:"el-breadcrumb__inner is-link",on:{click:function(r){return t.changeRoute(e.path,e.relocation)}}},[t._v("\n "+t._s(e.name))])])]:[r("el-breadcrumb-item",{key:"nav"+n},[t._v(t._s(e.name))])]]})],2)],1)},staticRenderFns:[]};var u=r("VU/8")(a,o,!1,function(t){r("stDC")},"data-v-69d0394e",null);e.a=u.exports},"3fs2":function(t,e,r){var n=r("RY/4"),i=r("dSzd")("iterator"),a=r("/bQp");t.exports=r("FeBl").getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||a[n(t)]}},"82Mu":function(t,e,r){var n=r("7KvD"),i=r("L42u").set,a=n.MutationObserver||n.WebKitMutationObserver,o=n.process,u=n.Promise,s="process"==r("R9M2")(o);t.exports=function(){var t,e,r,l=function(){var n,i;for(s&&(n=o.domain)&&n.exit();t;){i=t.fn,t=t.next;try{i()}catch(n){throw t?r():e=void 0,n}}e=void 0,n&&n.enter()};if(s)r=function(){o.nextTick(l)};else if(!a||n.navigator&&n.navigator.standalone)if(u&&u.resolve){var c=u.resolve(void 0);r=function(){c.then(l)}}else r=function(){i.call(n,l)};else{var f=!0,p=document.createTextNode("");new a(l).observe(p,{characterData:!0}),r=function(){p.data=f=!f}}return function(n){var i={fn:n,next:void 0};e&&(e.next=i),t||(t=i,r()),e=i}}},BL1t:function(t,e){},BO1k:function(t,e,r){t.exports={default:r("fxRn"),__esModule:!0}},CXw9:function(t,e,r){"use strict";var n,i,a,o,u=r("O4g8"),s=r("7KvD"),l=r("+ZMJ"),c=r("RY/4"),f=r("kM2E"),p=r("EqjI"),d=r("lOnJ"),h=r("2KxR"),m=r("NWt+"),g=r("t8x9"),v=r("L42u").set,y=r("82Mu")(),b=r("qARP"),w=r("dNDb"),x=r("iUbK"),_=r("fJUb"),D=s.TypeError,j=s.process,N=j&&j.versions,V=N&&N.v8||"",L=s.Promise,O="process"==c(j),P=function(){},C=i=b.f,k=!!function(){try{var t=L.resolve(1),e=(t.constructor={})[r("dSzd")("species")]=function(t){t(P,P)};return(O||"function"==typeof PromiseRejectionEvent)&&t.then(P)instanceof e&&0!==V.indexOf("6.6")&&-1===x.indexOf("Chrome/66")}catch(t){}}(),F=function(t){var e;return!(!p(t)||"function"!=typeof(e=t.then))&&e},R=function(t,e){if(!t._n){t._n=!0;var r=t._c;y(function(){for(var n=t._v,i=1==t._s,a=0,o=function(e){var r,a,o,u=i?e.ok:e.fail,s=e.resolve,l=e.reject,c=e.domain;try{u?(i||(2==t._h&&A(t),t._h=1),!0===u?r=n:(c&&c.enter(),r=u(n),c&&(c.exit(),o=!0)),r===e.promise?l(D("Promise-chain cycle")):(a=F(r))?a.call(r,s,l):s(r)):l(n)}catch(t){c&&!o&&c.exit(),l(t)}};r.length>a;)o(r[a++]);t._c=[],t._n=!1,e&&!t._h&&B(t)})}},B=function(t){v.call(s,function(){var e,r,n,i=t._v,a=S(t);if(a&&(e=w(function(){O?j.emit("unhandledRejection",i,t):(r=s.onunhandledrejection)?r({promise:t,reason:i}):(n=s.console)&&n.error&&n.error("Unhandled promise rejection",i)}),t._h=O||S(t)?2:1),t._a=void 0,a&&e.e)throw e.v})},S=function(t){return 1!==t._h&&0===(t._a||t._c).length},A=function(t){v.call(s,function(){var e;O?j.emit("rejectionHandled",t):(e=s.onrejectionhandled)&&e({promise:t,reason:t._v})})},T=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()),R(e,!0))},I=function(t){var e,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw D("Promise can't be resolved itself");(e=F(t))?y(function(){var n={_w:r,_d:!1};try{e.call(t,l(I,n,1),l(T,n,1))}catch(t){T.call(n,t)}}):(r._v=t,r._s=1,R(r,!1))}catch(t){T.call({_w:r,_d:!1},t)}}};k||(L=function(t){h(this,L,"Promise","_h"),d(t),n.call(this);try{t(l(I,this,1),l(T,this,1))}catch(t){T.call(this,t)}},(n=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=r("xH/j")(L.prototype,{then:function(t,e){var r=C(g(this,L));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=O?j.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&R(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),a=function(){var t=new n;this.promise=t,this.resolve=l(I,t,1),this.reject=l(T,t,1)},b.f=C=function(t){return t===L||t===o?new a(t):i(t)}),f(f.G+f.W+f.F*!k,{Promise:L}),r("e6n0")(L,"Promise"),r("bRrM")("Promise"),o=r("FeBl").Promise,f(f.S+f.F*!k,"Promise",{reject:function(t){var e=C(this);return(0,e.reject)(t),e.promise}}),f(f.S+f.F*(u||!k),"Promise",{resolve:function(t){return _(u&&this===o?L:this,t)}}),f(f.S+f.F*!(k&&r("dY0y")(function(t){L.all(t).catch(P)})),"Promise",{all:function(t){var e=this,r=C(e),n=r.resolve,i=r.reject,a=w(function(){var r=[],a=0,o=1;m(t,!1,function(t){var u=a++,s=!1;r.push(void 0),o++,e.resolve(t).then(function(t){s||(s=!0,r[u]=t,--o||n(r))},i)}),--o||n(r)});return a.e&&i(a.v),r.promise},race:function(t){var e=this,r=C(e),n=r.reject,i=w(function(){m(t,!1,function(t){e.resolve(t).then(r.resolve,n)})});return i.e&&n(i.v),r.promise}})},CwSZ:function(t,e,r){"use strict";var n=r("p8xL"),i=r("XgCd"),a={brackets:function(t){return t+"[]"},indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},o=Date.prototype.toISOString,u={delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,serializeDate:function(t){return o.call(t)},skipNulls:!1,strictNullHandling:!1},s=function t(e,r,i,a,o,s,l,c,f,p,d,h){var m=e;if("function"==typeof l)m=l(r,m);else if(m instanceof Date)m=p(m);else if(null===m){if(a)return s&&!h?s(r,u.encoder):r;m=""}if("string"==typeof m||"number"==typeof m||"boolean"==typeof m||n.isBuffer(m))return s?[d(h?r:s(r,u.encoder))+"="+d(s(m,u.encoder))]:[d(r)+"="+d(String(m))];var g,v=[];if(void 0===m)return v;if(Array.isArray(l))g=l;else{var y=Object.keys(m);g=c?y.sort(c):y}for(var b=0;b<g.length;++b){var w=g[b];o&&null===m[w]||(v=Array.isArray(m)?v.concat(t(m[w],i(r,w),i,a,o,s,l,c,f,p,d,h)):v.concat(t(m[w],r+(f?"."+w:"["+w+"]"),i,a,o,s,l,c,f,p,d,h)))}return v};t.exports=function(t,e){var r=t,o=e?n.assign({},e):{};if(null!==o.encoder&&void 0!==o.encoder&&"function"!=typeof o.encoder)throw new TypeError("Encoder has to be a function.");var l=void 0===o.delimiter?u.delimiter:o.delimiter,c="boolean"==typeof o.strictNullHandling?o.strictNullHandling:u.strictNullHandling,f="boolean"==typeof o.skipNulls?o.skipNulls:u.skipNulls,p="boolean"==typeof o.encode?o.encode:u.encode,d="function"==typeof o.encoder?o.encoder:u.encoder,h="function"==typeof o.sort?o.sort:null,m=void 0!==o.allowDots&&o.allowDots,g="function"==typeof o.serializeDate?o.serializeDate:u.serializeDate,v="boolean"==typeof o.encodeValuesOnly?o.encodeValuesOnly:u.encodeValuesOnly;if(void 0===o.format)o.format=i.default;else if(!Object.prototype.hasOwnProperty.call(i.formatters,o.format))throw new TypeError("Unknown format option provided.");var y,b,w=i.formatters[o.format];"function"==typeof o.filter?r=(b=o.filter)("",r):Array.isArray(o.filter)&&(y=b=o.filter);var x,_=[];if("object"!=typeof r||null===r)return"";x=o.arrayFormat in a?o.arrayFormat:"indices"in o?o.indices?"indices":"repeat":"indices";var D=a[x];y||(y=Object.keys(r)),h&&y.sort(h);for(var j=0;j<y.length;++j){var N=y[j];f&&null===r[N]||(_=_.concat(s(r[N],N,D,c,f,p?d:null,b,h,m,g,w,v)))}var V=_.join(l),L=!0===o.addQueryPrefix?"?":"";return V.length>0?L+V:""}},DDCP:function(t,e,r){"use strict";var n=r("p8xL"),i=Object.prototype.hasOwnProperty,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:n.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},o=function(t,e,r){if(t){var n=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/g,o=/(\[[^[\]]*])/.exec(n),u=o?n.slice(0,o.index):n,s=[];if(u){if(!r.plainObjects&&i.call(Object.prototype,u)&&!r.allowPrototypes)return;s.push(u)}for(var l=0;null!==(o=a.exec(n))&&l<r.depth;){if(l+=1,!r.plainObjects&&i.call(Object.prototype,o[1].slice(1,-1))&&!r.allowPrototypes)return;s.push(o[1])}return o&&s.push("["+n.slice(o.index)+"]"),function(t,e,r){for(var n=e,i=t.length-1;i>=0;--i){var a,o=t[i];if("[]"===o)a=(a=[]).concat(n);else{a=r.plainObjects?Object.create(null):{};var u="["===o.charAt(0)&&"]"===o.charAt(o.length-1)?o.slice(1,-1):o,s=parseInt(u,10);!isNaN(s)&&o!==u&&String(s)===u&&s>=0&&r.parseArrays&&s<=r.arrayLimit?(a=[])[s]=n:a[u]=n}n=a}return n}(s,e,r)}};t.exports=function(t,e){var r=e?n.assign({},e):{};if(null!==r.decoder&&void 0!==r.decoder&&"function"!=typeof r.decoder)throw new TypeError("Decoder has to be a function.");if(r.ignoreQueryPrefix=!0===r.ignoreQueryPrefix,r.delimiter="string"==typeof r.delimiter||n.isRegExp(r.delimiter)?r.delimiter:a.delimiter,r.depth="number"==typeof r.depth?r.depth:a.depth,r.arrayLimit="number"==typeof r.arrayLimit?r.arrayLimit:a.arrayLimit,r.parseArrays=!1!==r.parseArrays,r.decoder="function"==typeof r.decoder?r.decoder:a.decoder,r.allowDots="boolean"==typeof r.allowDots?r.allowDots:a.allowDots,r.plainObjects="boolean"==typeof r.plainObjects?r.plainObjects:a.plainObjects,r.allowPrototypes="boolean"==typeof r.allowPrototypes?r.allowPrototypes:a.allowPrototypes,r.parameterLimit="number"==typeof r.parameterLimit?r.parameterLimit:a.parameterLimit,r.strictNullHandling="boolean"==typeof r.strictNullHandling?r.strictNullHandling:a.strictNullHandling,""===t||null===t||void 0===t)return r.plainObjects?Object.create(null):{};for(var u="string"==typeof t?function(t,e){for(var r={},n=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,o=e.parameterLimit===1/0?void 0:e.parameterLimit,u=n.split(e.delimiter,o),s=0;s<u.length;++s){var l,c,f=u[s],p=f.indexOf("]="),d=-1===p?f.indexOf("="):p+1;-1===d?(l=e.decoder(f,a.decoder),c=e.strictNullHandling?null:""):(l=e.decoder(f.slice(0,d),a.decoder),c=e.decoder(f.slice(d+1),a.decoder)),i.call(r,l)?r[l]=[].concat(r[l]).concat(c):r[l]=c}return r}(t,r):t,s=r.plainObjects?Object.create(null):{},l=Object.keys(u),c=0;c<l.length;++c){var f=l[c],p=o(f,u[f],r);s=n.merge(s,p,r)}return n.compact(s)}},EqBC:function(t,e,r){"use strict";var n=r("kM2E"),i=r("FeBl"),a=r("7KvD"),o=r("t8x9"),u=r("fJUb");n(n.P+n.R,"Promise",{finally:function(t){var e=o(this,i.Promise||a.Promise),r="function"==typeof t;return this.then(r?function(r){return u(e,t()).then(function(){return r})}:t,r?function(r){return u(e,t()).then(function(){throw r})}:t)}})},Kkt8:function(t,e,r){"use strict";var n=r("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=n.a.getByteVal(t.target.value,this.limitLength),this.itemValue=e.trim(),this.inputNum=n.a.getZhLen(this.itemValue)):(e=n.a.getCharVal(t.target.value,this.limitLength),this.itemValue=e.trim(),this.inputNum=n.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=n.a.getZhLen(this.itemValue):this.inputNum=n.a.getByteLen(this.itemValue)}},mounted:function(){this.limitLength=this.maxLength,this.itemValue=this.inputValue||"","word"==this.getByType?this.inputNum=n.a.getZhLen(this.inputValue):this.inputNum=n.a.getByteLen(this.inputValue)}},a={render:function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"input-line-cell",style:{width:t.inputWidth+"px"}},[r("el-input",{style:{width:t.inputWidth+"px"},attrs:{placeholder:t.holder,type:"textarea",rows:3,disabled:t.disInput},on:{blur:function(e){return t.inputBlur()},focus:function(e){return t.inputFocus()}},nativeOn:{keyup:function(e){return r=e,t.toInput(r);var r}},model:{value:t.itemValue,callback:function(e){t.itemValue=e},expression:"itemValue"}}),t._v(" "),r("span",{staticClass:"tip"},[r("span",{staticClass:"len_span"},[t._v(t._s(t.inputNum))]),t._v("/"+t._s(t.limitLength))])],1)},staticRenderFns:[]};var o=r("VU/8")(i,a,!1,function(t){r("BL1t")},"data-v-409f610b",null);e.a=o.exports},L42u:function(t,e,r){var n,i,a,o=r("+ZMJ"),u=r("knuC"),s=r("RPLV"),l=r("ON07"),c=r("7KvD"),f=c.process,p=c.setImmediate,d=c.clearImmediate,h=c.MessageChannel,m=c.Dispatch,g=0,v={},y=function(){var t=+this;if(v.hasOwnProperty(t)){var e=v[t];delete v[t],e()}},b=function(t){y.call(t.data)};p&&d||(p=function(t){for(var e=[],r=1;arguments.length>r;)e.push(arguments[r++]);return v[++g]=function(){u("function"==typeof t?t:Function(t),e)},n(g),g},d=function(t){delete v[t]},"process"==r("R9M2")(f)?n=function(t){f.nextTick(o(y,t,1))}:m&&m.now?n=function(t){m.now(o(y,t,1))}:h?(a=(i=new h).port2,i.port1.onmessage=b,n=o(a.postMessage,a,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(n=function(t){c.postMessage(t+"","*")},c.addEventListener("message",b,!1)):n="onreadystatechange"in l("script")?function(t){s.appendChild(l("script")).onreadystatechange=function(){s.removeChild(this),y.call(t)}}:function(t){setTimeout(o(y,t,1),0)}),t.exports={set:p,clear:d}},LlAa:function(t,e,r){"use strict";var n=r("zL8q");r.n(n);e.a={errorMsg:function(t){var e=window.location.origin;if("0000"!=t.code&&(n.Message.error({duration:1e3,message:t.message}),"2003"==t.code))return window.location.href=e+"/gateway-web/#/login",!1}}},Mhyx:function(t,e,r){var n=r("/bQp"),i=r("dSzd")("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||a[i]===t)}},Myvy:function(t,e){},"NWt+":function(t,e,r){var n=r("+ZMJ"),i=r("msXi"),a=r("Mhyx"),o=r("77Pl"),u=r("QRG4"),s=r("3fs2"),l={},c={};(e=t.exports=function(t,e,r,f,p){var d,h,m,g,v=p?function(){return t}:s(t),y=n(r,f,e?2:1),b=0;if("function"!=typeof v)throw TypeError(t+" is not iterable!");if(a(v)){for(d=u(t.length);d>b;b++)if((g=e?y(o(h=t[b])[0],h[1]):y(t[b]))===l||g===c)return g}else for(m=v.call(t);!(h=m.next()).done;)if((g=i(m,y,h.value,e))===l||g===c)return g}).BREAK=l,e.RETURN=c},P9l9:function(t,e,r){"use strict";r.d(e,"a",function(){return f}),r.d(e,"b",function(){return p});var n=r("//Fk"),i=r.n(n),a=r("lRwf"),o=r.n(a),u=r("mw3O"),s=r.n(u),l=r("zL8q");r.n(l);o.a.axios.defaults.timeout=25e3;var c=window.location.origin;o.a.axios.interceptors.request.use(function(t){return t},function(t){return l.Message.error({message:"请求超时!"}),i.a.resolve(t)}),o.a.axios.interceptors.response.use(function(t){return t.status&&200==t.status&&"0000"!=t.data.code?(4==t.data.code&&(window.location.href=c+"gateway-web/#/login"),10!=t.data.code&&7!=t.data.code||(window.location.href=c+"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",o.a.axios({method:"get",url:""+c+t,data:{},params:e,headers:{"Content-type":"application/x-www-form-urlencoded"}})},p=function(t,e){return e.requestProject="api-gateway-web",o.a.axios({method:"post",url:""+c+t,data:s.a.stringify(e),headers:{"Content-type":"application/x-www-form-urlencoded"}})}},PEkr:function(t,e,r){"use strict";var n=r("BO1k"),i=r.n(n),a=r("P9l9"),o={props:{pluginId:{type:String,default:function(){return""}},pluginType:{type:Number,default:function(){return 0}}},data:function(){return{dialogVisible:!0,tableData:[],loading:!1}},created:function(){this.dialogVisible=!0,this.getData()},methods:{getData:function(){var t=this,e=this,r={pluginId:this.pluginId};this.loading=!0,Object(a.a)("/gateway-manage/plugin/scene/list",r).then(function(e){if("0000"==e.data.code){if(e.data.result){t.tableData=e.data.result;var r=!0,n=!1,a=void 0;try{for(var o,u=i()(t.tableData);!(r=(o=u.next()).done);r=!0){var s=o.value;s.enableFlag=1===s.enableFlag}}catch(t){n=!0,a=t}finally{try{!r&&u.return&&u.return()}finally{if(n)throw a}}}else t.tableData=[];t.loading=!1}else t.$message.error(e.data.message)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},changeFlag:function(t){var e=this,r=this,n={pluginId:this.pluginId,sceneCode:t.sceneCode,enableFlag:t.enableFlag?1:0};Object(a.a)("/gateway-manage/plugin/scene/enable",n).then(function(r){"0000"==r.data.code?e.getData():(t.enableFlag=!t.enableFlag,e.$message.error(r.data.message))}).catch(function(t){r.$message.error({duration:1e3,message:t.message})})},goList:function(t){this.dialogVisible=!1,0===this.pluginType?this.$router.push({path:"/plugAhsh",query:{sceneCode:t.sceneCode,pluginId:this.pluginId}}):1===this.pluginType&&this.$router.push({path:"/plugPlatform",query:{sceneCode:t.sceneCode,pluginId:this.pluginId}})},close:function(){this.dialogVisible=!1,this.$emit("closeDialog")}}},u={render:function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("el-dialog",{attrs:{title:"选择环境",visible:t.dialogVisible,width:"600px"},on:{"update:visible":function(e){t.dialogVisible=e},close:t.close}},[r("div",{staticClass:"dialog-body"},[r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"dialog-table",staticStyle:{width:"100%"},attrs:{data:t.tableData}},[r("el-table-column",{attrs:{prop:"sceneName",label:"环境名称"}}),t._v(" "),r("el-table-column",{attrs:{prop:"updateTime",label:"更新时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.updateTime)))]),t._v(" "),r("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.updateTime)))])]}}])}),t._v(" "),r("el-table-column",{attrs:{prop:"enableFlag",label:"开启状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-switch",{on:{change:function(r){return t.changeFlag(e.row)}},model:{value:e.row.enableFlag,callback:function(r){t.$set(e.row,"enableFlag",r)},expression:"scope.row.enableFlag"}})]}}])}),t._v(" "),r("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-button",{attrs:{type:"text"},on:{click:function(r){return t.goList(e.row)}}},[t._v("立即进入")])]}}])})],1)],1)])},staticRenderFns:[]};var s=r("VU/8")(o,u,!1,function(t){r("ZIFW")},"data-v-456c7494",null);e.a=s.exports},"RY/4":function(t,e,r){var n=r("R9M2"),i=r("dSzd")("toStringTag"),a="Arguments"==n(function(){return arguments}());t.exports=function(t){var e,r,o;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),i))?r:a?n(e):"Object"==(o=n(e))&&"function"==typeof e.callee?"Arguments":o}},TUB1:function(t,e,r){"use strict";var n=r("zL8q");r.n(n);e.a={showmsg:function(t,e){Object(n.Message)({duration:1e3,message:t,type:e})}}},U5ju:function(t,e,r){r("M6a0"),r("zQR9"),r("+tPU"),r("CXw9"),r("EqBC"),r("jKW+"),t.exports=r("FeBl").Promise},UlGk:function(t,e,r){"use strict";e.a={getByteLen:function(t){for(var e=""==t||null==t?"":t,r=0,n=0;n<e.length;n++){null!=e.charAt(n).match(/[^\x00-\xff]/gi)?r+=2:r+=1}return r},getZhLen:function(t){for(var e=""==t||null==t?"":t,r=0,n=0;n<e.length;n++){null!=e.charAt(n).match(/[^\x00-\xff]/gi)?r+=1:r+=.5}return Math.ceil(r)},cutStr:function(t,e,r){for(var n=0,i=0;i<t.length;i++){var a=t.charAt(i);if(1==r&&(encodeURI(a).length>2?n+=1:n+=.5),2==r&&(n+=1),n>=e){var o=n==e?i+1:i;return t.substr(0,o)}}},getByteVal:function(t,e){for(var r=""==t||null==t?"":t,n="",i=0,a=0;a<r.length&&(null!=r[a].match(/[^\x00-\xff]/gi)?i+=1:i+=.5,!(i>e));a++)n+=r[a];return n},getCharVal:function(t,e){for(var r=""==t||null==t?"":t,n="",i=0,a=0;a<r.length&&(null!=r[a].match(/[^\x00-\xff]/gi)?i+=2:i+=1,!(i>e));a++)n+=r[a];return n},regPos:function(t){return/^\d+(\.\d+)?$/.test(t)}}},XgCd:function(t,e,r){"use strict";var n=String.prototype.replace,i=/%20/g;t.exports={default:"RFC3986",formatters:{RFC1738:function(t){return n.call(t,i,"+")},RFC3986:function(t){return t}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},ZIFW:function(t,e){},arKS:function(t,e){},bRrM:function(t,e,r){"use strict";var n=r("7KvD"),i=r("FeBl"),a=r("evD5"),o=r("+E39"),u=r("dSzd")("species");t.exports=function(t){var e="function"==typeof i[t]?i[t]:n[t];o&&e&&!e[u]&&a.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,r){var n=r("dSzd")("iterator"),i=!1;try{var a=[7][n]();a.return=function(){i=!0},Array.from(a,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var r=!1;try{var a=[7],o=a[n]();o.next=function(){return{done:r=!0}},a[n]=function(){return o},t(a)}catch(t){}return r}},f2i8:function(t,e,r){"use strict";var n=r("mvHQ"),i=r.n(n),a=r("fZjL"),o=r.n(a),u=r("l46T"),s=r("Kkt8"),l=r("P9l9"),c=r("TUB1"),f=r("LlAa"),p={name:"new-api-group",props:{showDialog:{type:Boolean,default:!1},editRow:{type:Object,default:function(){return{interfaceGroupId:"",groupName:"",remark:""}}}},components:{limitInput:u.a,limitTextarea:s.a},data:function(){return{customDialog:!1,formData:{interfaceGroupId:"",groupName:"",remark:""},rules:{groupName:[{required:!0,message:"请输入分组名称",trigger:"blur"}],remark:[{required:!0,message:"请输入描述",trigger:"blur"}]}}},methods:{handleClose:function(t){this.$refs.programGroupForm.resetFields(),t(),this.hideDialog()},customCancel:function(){this.$refs.programGroupForm.resetFields(),this.hideDialog()},hideDialog:function(){this.customDialog=!1,this.formData.groupName="",this.formData.remark="",this.$emit("hideDialog","")},customConfirm:function(t){var e=this;e.formData.groupName=e.formData.groupName?String(e.formData.groupName).replace(/\s+/g,""):"",e.formData.remark=e.formData.remark?String(e.formData.remark).replace(/\s+/g,""):"",e.$refs[t].validate(function(t){if(!t)return!1;e.postEditData()})},postEditData:function(){var t=this,e={interfaceGroupId:t.formData.interfaceGroupId,groupName:t.formData.groupName,remark:t.formData.remark,projectId:t.$route.query.projectId};Object(l.a)(t.editRow.interfaceGroupId?"/gateway-manage/update-api-group":"/gateway-manage/create-api-group",e).then(function(e){var r=e.data;if("0000"==r.code)return c.a.showmsg("保存成功","success"),void t.setData();f.a.errorMsg(r)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},setData:function(t){var e=this;e.$emit("hideDialog",e.formData),e.$nextTick(function(){e.formData.groupName="",e.formData.remark=""})}},watch:{showDialog:function(t,e){this.customDialog=t},editRow:function(t,e){o()(t).length&&(this.formData=JSON.parse(i()(t)))}},mounted:function(){this.customDialog=this.showDialog,o()(this.editRow).length&&(this.formData=JSON.parse(i()(this.editRow)))}},d={render:function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{directives:[{name:"show",rawName:"v-show",value:t.customDialog,expression:"customDialog"}]},[r("el-dialog",{staticClass:"edit-dialog",attrs:{title:t.formData.interfaceGroupId?"编辑分组":"新建分组",visible:t.customDialog,width:"600px","before-close":t.handleClose},on:{"update:visible":function(e){t.customDialog=e}}},[r("div",{staticClass:"edit-dialog-body"},[r("el-form",{ref:"programGroupForm",attrs:{model:t.formData,"label-width":"94px",rules:t.rules}},[r("el-form-item",{attrs:{label:"分组名称:",prop:"groupName"}},[r("limitInput",{attrs:{inputWidth:440,inputValue:t.formData.groupName,holder:"请输入分组名称",getByType:"word",maxLength:20},on:{"update:inputValue":function(e){return t.$set(t.formData,"groupName",e)},"update:input-value":function(e){return t.$set(t.formData,"groupName",e)}}})],1),t._v(" "),r("el-form-item",{attrs:{label:"描述:"}},[r("limit-textarea",{attrs:{inputWidth:440,inputValue:t.formData.remark,holder:"请输入描述内容",getByType:"word",maxLength:100},on:{"update:inputValue":function(e){return t.$set(t.formData,"remark",e)},"update:input-value":function(e){return t.$set(t.formData,"remark",e)}}})],1)],1)],1),t._v(" "),r("div",{staticClass:"dialog-footer",staticStyle:{"padding-bottom":"10px"},attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:t.customCancel}},[t._v("取 消")]),t._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.customConfirm("programGroupForm")}}},[t._v(t._s(t.formData.interfaceGroupId?"保 存":"新 建"))])],1)])],1)},staticRenderFns:[]};var h=r("VU/8")(p,d,!1,function(t){r("arKS")},"data-v-78ce30dc",null);e.a=h.exports},fJUb:function(t,e,r){var n=r("77Pl"),i=r("EqjI"),a=r("qARP");t.exports=function(t,e){if(n(t),i(e)&&e.constructor===t)return e;var r=a.f(t);return(0,r.resolve)(e),r.promise}},fxRn:function(t,e,r){r("+tPU"),r("zQR9"),t.exports=r("g8Ux")},g8Ux:function(t,e,r){var n=r("77Pl"),i=r("3fs2");t.exports=r("FeBl").getIterator=function(t){var e=i(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return n(e.call(t))}},iUbK:function(t,e,r){var n=r("7KvD").navigator;t.exports=n&&n.userAgent||""},"jKW+":function(t,e,r){"use strict";var n=r("kM2E"),i=r("qARP"),a=r("dNDb");n(n.S,"Promise",{try:function(t){var e=i.f(this),r=a(t);return(r.e?e.reject:e.resolve)(r.v),e.promise}})},jvWE:function(t,e,r){"use strict";e.a=function(t,e){var r,e=e||200;return function(){var n=this,i=arguments;r&&clearTimeout(r),r=setTimeout(function(){r=null,t.apply(n,i)},e)}},e.b=function(t){var e={};for(var r in t){if(e[t[r]])return!0;e[t[r]]=!0}return!1}},knuC:function(t,e){t.exports=function(t,e,r){var n=void 0===r;switch(e.length){case 0:return n?t():t.call(r);case 1:return n?t(e[0]):t.call(r,e[0]);case 2:return n?t(e[0],e[1]):t.call(r,e[0],e[1]);case 3:return n?t(e[0],e[1],e[2]):t.call(r,e[0],e[1],e[2]);case 4:return n?t(e[0],e[1],e[2],e[3]):t.call(r,e[0],e[1],e[2],e[3])}return t.apply(r,e)}},l46T:function(t,e,r){"use strict";var n=r("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=n.a.getByteVal(t.target.value,this.limitLength),this.itemValue=e.trim(),this.inputNum=n.a.getZhLen(this.itemValue)):(e=n.a.getCharVal(t.target.value,this.limitLength),this.itemValue=e.trim(),this.inputNum=n.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=n.a.getZhLen(this.itemValue):this.inputNum=n.a.getByteLen(this.itemValue)}},mounted:function(){this.limitLength=this.maxLength,this.itemValue=this.inputValue||"","word"==this.getByType?this.inputNum=n.a.getZhLen(this.inputValue):this.inputNum=n.a.getByteLen(this.inputValue)}},a={render:function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{class:["input-line-cell",t.limitClass],style:{width:t.inputWidth+"px"}},[r("el-input",{style:{width:t.inputWidth+"px"},attrs:{disabled:t.disflag,placeholder:t.holder},on:{blur:function(e){return t.inputBlur()},focus:function(e){return t.inputFocus()}},nativeOn:{keyup:function(e){return r=e,t.toInput(r);var r}},model:{value:t.itemValue,callback:function(e){t.itemValue=e},expression:"itemValue"}}),t._v(" "),r("span",{staticClass:"tip"},[r("span",{staticClass:"len_span"},[t._v(t._s(t.inputNum))]),t._v("/"+t._s(t.limitLength))])],1)},staticRenderFns:[]};var o=r("VU/8")(i,a,!1,function(t){r("Myvy")},"data-v-68c6e65c",null);e.a=o.exports},msXi:function(t,e,r){var n=r("77Pl");t.exports=function(t,e,r,i){try{return i?e(n(r)[0],r[1]):e(r)}catch(e){var a=t.return;throw void 0!==a&&n(a.call(t)),e}}},mw3O:function(t,e,r){"use strict";var n=r("CwSZ"),i=r("DDCP"),a=r("XgCd");t.exports={formats:a,parse:i,stringify:n}},p8xL:function(t,e,r){"use strict";var n=Object.prototype.hasOwnProperty,i=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),a=function(t,e){for(var r=e&&e.plainObjects?Object.create(null):{},n=0;n<t.length;++n)void 0!==t[n]&&(r[n]=t[n]);return r};t.exports={arrayToObject:a,assign:function(t,e){return Object.keys(e).reduce(function(t,r){return t[r]=e[r],t},t)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],n=0;n<e.length;++n)for(var i=e[n],a=i.obj[i.prop],o=Object.keys(a),u=0;u<o.length;++u){var s=o[u],l=a[s];"object"==typeof l&&null!==l&&-1===r.indexOf(l)&&(e.push({obj:a,prop:s}),r.push(l))}return function(t){for(var e;t.length;){var r=t.pop();if(e=r.obj[r.prop],Array.isArray(e)){for(var n=[],i=0;i<e.length;++i)void 0!==e[i]&&n.push(e[i]);r.obj[r.prop]=n}}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),r="",n=0;n<e.length;++n){var a=e.charCodeAt(n);45===a||46===a||95===a||126===a||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?r+=e.charAt(n):a<128?r+=i[a]:a<2048?r+=i[192|a>>6]+i[128|63&a]:a<55296||a>=57344?r+=i[224|a>>12]+i[128|a>>6&63]+i[128|63&a]:(n+=1,a=65536+((1023&a)<<10|1023&e.charCodeAt(n)),r+=i[240|a>>18]+i[128|a>>12&63]+i[128|a>>6&63]+i[128|63&a])}return r},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,r,i){if(!r)return e;if("object"!=typeof r){if(Array.isArray(e))e.push(r);else{if("object"!=typeof e)return[e,r];(i.plainObjects||i.allowPrototypes||!n.call(Object.prototype,r))&&(e[r]=!0)}return e}if("object"!=typeof e)return[e].concat(r);var o=e;return Array.isArray(e)&&!Array.isArray(r)&&(o=a(e,i)),Array.isArray(e)&&Array.isArray(r)?(r.forEach(function(r,a){n.call(e,a)?e[a]&&"object"==typeof e[a]?e[a]=t(e[a],r,i):e.push(r):e[a]=r}),e):Object.keys(r).reduce(function(e,a){var o=r[a];return n.call(e,a)?e[a]=t(e[a],o,i):e[a]=o,e},o)}}},qARP:function(t,e,r){"use strict";var n=r("lOnJ");t.exports.f=function(t){return new function(t){var e,r;this.promise=new t(function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n}),this.resolve=n(e),this.reject=n(r)}(t)}},stDC:function(t,e){},t8x9:function(t,e,r){var n=r("77Pl"),i=r("lOnJ"),a=r("dSzd")("species");t.exports=function(t,e){var r,o=n(t).constructor;return void 0===o||void 0==(r=n(o)[a])?e:i(r)}},"xH/j":function(t,e,r){var n=r("hJx8");t.exports=function(t,e,r){for(var i in e)r&&t[i]?t[i]=e[i]:n(t,i,e[i]);return t}}});
\ No newline at end of file
webpackJsonp([1],{"2X9c":function(M,L,j){M.exports=j.p+"static/img/error_500.ed0cba4.svg"},CkW6:function(M,L){M.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMS4wLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0i5Zu+5bGCXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgNDAwIDMzNSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNDAwIDMzNTsiIHhtbDpzcGFjZT0icHJlc2VydmUiPg0KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4NCgkuc3Qwe2ZpbGw6I0ZBRkNGRjt9DQoJLnN0MXtmaWxsOiNEQkU1RjE7fQ0KCS5zdDJ7ZmlsbDojREVFN0Y0O30NCgkuc3Qze2ZpbGw6I0I5QzdEQjt9DQoJLnN0NHtmaWxsOiNGRkZGRkY7fQ0KCS5zdDV7ZmlsbDpub25lO3N0cm9rZTojQjlDN0RCO3N0cm9rZS13aWR0aDo0O3N0cm9rZS1taXRlcmxpbWl0OjEwO30NCgkuc3Q2e2ZpbGw6bm9uZTtzdHJva2U6I0I2QzdEODtzdHJva2UtbWl0ZXJsaW1pdDoxMDt9DQo8L3N0eWxlPg0KPHBhdG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wwLjQsMC41LDEsMC4zLDEuNWMtMC4yLDAuNS0wLjcsMC44LTEuMiwwLjhIOTkuMQ0KCWMtMC43LDAtMS4zLTAuNi0xLjMtMS4zQzk3LjgsMjY1LjMsOTguNCwyNjQuNiw5OS4yLDI2NC42Ii8+DQo8cGF0aCBjbGFzcz0ic3QzIiBkPSJNMjM1LDk1Ljh2OC4xYzAsMC43LTAuNiwxLjMtMS4zLDEuM3MtMS4zLTAuNi0xLjMtMS4zdi04LjFjMC0wLjcsMC42LTEuMywxLjMtMS40QzIzNC40LDk0LjQsMjM1LDk1LDIzNSw5NS44Ig0KCS8+DQo8L3N2Zz4NCg=="},Minx:function(M,L,j){M.exports=j.p+"static/img/error_404.bf58747.svg"},ODjX:function(M,L,j){"use strict";Object.defineProperty(L,"__esModule",{value:!0});var u=j("CkW6"),N=j.n(u),w=j("Minx"),D=j.n(w),C=j("2X9c"),s=j.n(C),y={name:"errpage",data:function(){return{imgSrc:"",message:"",srcList:{403:N.a,404:D.a,500:s.a},msgList:{403:"抱歉,你无权访问该页面",404:"抱歉,你访问的页面不存在",500:"抱歉,服务器出错了"}}},mounted:function(){var M=this.$route.path.split("/")[1];this.imgSrc=this.srcList[M],this.message=this.msgList[M]}},t={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.imgSrc,alt:"404"}})]),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:"#/index"}},[this._v("返回首页")])])])])},staticRenderFns:[]};var i=j("VU/8")(y,t,!1,function(M){j("hUzu")},"data-v-44d58fb6",null);L.default=i.exports},hUzu:function(M,L){}});
\ No newline at end of file
webpackJsonp([1],{"2X9c":function(M,L,j){M.exports=j.p+"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GF0aCBjbGFzcz0ic3QzIiBkPSJNMjM1LDk1Ljh2OC4xYzAsMC43LTAuNiwxLjMtMS4zLDEuM3MtMS4zLTAuNi0xLjMtMS4zdi04LjFjMC0wLjcsMC42LTEuMywxLjMtMS40QzIzNC40LDk0LjQsMjM1LDk1LDIzNSw5NS44Ig0KCS8+DQo8L3N2Zz4NCg=="},Minx:function(M,L,j){M.exports=j.p+"static/img/error_404.bf58747.svg"},ODjX:function(M,L,j){"use strict";Object.defineProperty(L,"__esModule",{value:!0});var N=j("CkW6"),u=j.n(N),w=j("Minx"),D=j.n(w),C=j("2X9c"),s=j.n(C),y={name:"errpage",data:function(){return{imgSrc:"",message:"",srcList:{403:u.a,404:D.a,500:s.a},msgList:{403:"抱歉,你无权访问该页面",404:"抱歉,你访问的页面不存在",500:"抱歉,服务器出错了"}}},mounted:function(){var M=this.$route.path.split("/")[1];this.imgSrc=this.srcList[M],this.message=this.msgList[M]}},t={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.imgSrc,alt:"404"}})]),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:"#/index"}},[this._v("返回首页")])])])])},staticRenderFns:[]};var i=j("VU/8")(y,t,!1,function(M){j("fm9S")},"data-v-44d58fb6",null);L.default=i.exports},fm9S:function(M,L){}});
\ No newline at end of file
webpackJsonp([10],{"2X9c":function(t,s,i){t.exports=i.p+"static/img/error_500.ed0cba4.svg"},FskK:function(t,s,i){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var a=i("2X9c"),e=i.n(a),n={name:"page500",data:function(){return{img_500:e.a}},computed:{message:function(){return"抱歉,服务器出错了"}}},c={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_500,alt:"500"}})]),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 r=i("VU/8")(n,c,!1,function(t){i("wJ+N")},"data-v-d1f21788",null);s.default=r.exports},"wJ+N":function(t,s){}});
\ No newline at end of file
webpackJsonp([10],{"2X9c":function(t,s,i){t.exports=i.p+"static/img/error_500.ed0cba4.svg"},FskK:function(t,s,i){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var a=i("2X9c"),e=i.n(a),n={name:"page500",data:function(){return{img_500:e.a}},computed:{message:function(){return"抱歉,服务器出错了"}}},c={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_500,alt:"500"}})]),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 r=i("VU/8")(n,c,!1,function(t){i("Zwp/")},"data-v-d1f21788",null);s.default=r.exports},"Zwp/":function(t,s){}});
\ No newline at end of file
webpackJsonp([11],{"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+5bGCXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgNDAwIDMzNSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNDAwIDMzNTsiIHhtbDpzcGFjZT0icHJlc2VydmUiPg0KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4NCgkuc3Qwe2ZpbGw6I0ZBRkNGRjt9DQoJLnN0MXtmaWxsOiNEQkU1RjE7fQ0KCS5zdDJ7ZmlsbDojREVFN0Y0O30NCgkuc3Qze2ZpbGw6I0I5QzdEQjt9DQoJLnN0NHtmaWxsOiNGRkZGRkY7fQ0KCS5zdDV7ZmlsbDpub25lO3N0cm9rZTojQjlDN0RCO3N0cm9rZS13aWR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JQzI4MywyNjUuMywyODMuNiwyNjQuNiwyODQuNCwyNjQuNiIvPg0KPHBhdGggY2xhc3M9InN0MSIgZD0iTTk5LjIsMjY0LjZoMTcxLjdjMC40LDAsMC43LDAuMSwwLjksMC40YzAuNCwwLjQsMC41LDEsMC4zLDEuNWMtMC4yLDAuNS0wLjcsMC44LTEuMiwwLjhIOTkuMQ0KCWMtMC43LDAtMS4zLTAuNi0xLjMtMS4zQzk3LjgsMjY1LjMsOTguNCwyNjQuNiw5OS4yLDI2NC42Ii8+DQo8cGF0aCBjbGFzcz0ic3QzIiBkPSJNMjM1LDk1Ljh2OC4xYzAsMC43LTAuNiwxLjMtMS4zLDEuM3MtMS4zLTAuNi0xLjMtMS4zdi04LjFjMC0wLjcsMC42LTEuMywxLjMtMS40QzIzNC40LDk0LjQsMjM1LDk1LDIzNSw5NS44Ig0KCS8+DQo8L3N2Zz4NCg=="},GVON:function(M,L){}});
\ No newline at end of file
webpackJsonp([11],{"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("dq3G")},"data-v-34b4b20b",null);L.default=C.exports},CkW6:function(M,L){M.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4N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04LjFjMC0wLjcsMC42LTEuMywxLjMtMS40QzIzNC40LDk0LjQsMjM1LDk1LDIzNSw5NS44Ig0KCS8+DQo8L3N2Zz4NCg=="},dq3G:function(M,L){}});
\ No newline at end of file
webpackJsonp([12],{auIj:function(t,e){},kAqA:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("319J"),r=a("mvHQ"),i=a.n(r),n=a("fZjL"),s=a.n(n),c=a("l46T"),l=a("Kkt8"),u=a("P9l9"),p=a("TUB1"),d=a("LlAa"),m={name:"new-env",props:{showDialog:{type:Boolean,default:!1},editRow:{type:Object,default:function(){return{projectId:"",projectName:"",projectDescribe:""}}}},components:{limitInput:c.a,limitTextarea:l.a},data:function(){return{customDialog:!1,formData:{projectId:"",projectName:"",projectDescribe:""},rules:{projectName:[{required:!0,message:"请输入项目名称",trigger:"blur"}],projectDescribe:[{required:!0,message:"请输入描述",trigger:"blur"}]}}},methods:{handleClose:function(t){this.$refs.programForm.resetFields(),t(),this.hideDialog()},customCancel:function(){this.$refs.programForm.resetFields(),this.hideDialog()},hideDialog:function(){this.customDialog=!1,this.formData.projectName="",this.formData.projectDescribe="",this.$emit("hideDialog","")},customConfirm:function(t){var e=this;e.formData.projectName=e.formData.projectName?String(e.formData.projectName).replace(/\s+/g,""):"",e.formData.projectDescribe=e.formData.projectDescribe?String(e.formData.projectDescribe).replace(/\s+/g,""):"",e.$refs[t].validate(function(t){if(!t)return!1;e.postEditData()})},postEditData:function(){var t=this,e={projectId:t.formData.projectId,projectName:t.formData.projectName,projectDescribe:t.formData.projectDescribe};Object(u.a)(t.editRow.projectId?"/gateway-manage/update-project":"/gateway-manage/create-project",e).then(function(e){var a=e.data;if("0000"==a.code)return p.a.showmsg("保存成功","success"),void t.setData();d.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},setData:function(t){var e=this;e.$emit("hideDialog",e.formData),e.$nextTick(function(){e.formData.projectName="",e.formData.projectDescribe=""})}},watch:{showDialog:function(t,e){this.customDialog=t},editRow:function(t,e){s()(t).length&&(this.formData=JSON.parse(i()(t)))}},mounted:function(){this.customDialog=this.showDialog,s()(this.editRow).length&&(this.formData=JSON.parse(i()(this.editRow)))}},h={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:t.formData.projectId?"编辑项目":"新建项目",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:"programForm",attrs:{model:t.formData,"label-width":"94px",rules:t.rules}},[a("el-form-item",{attrs:{label:"项目名称:",prop:"projectName"}},[a("limitInput",{attrs:{inputWidth:440,inputValue:t.formData.projectName,holder:"请输入项目名称",getByType:"word",maxLength:20},on:{"update:inputValue":function(e){return t.$set(t.formData,"projectName",e)},"update:input-value":function(e){return t.$set(t.formData,"projectName",e)}}})],1),t._v(" "),a("el-form-item",{attrs:{label:"描述:"}},[a("limit-textarea",{attrs:{inputWidth:440,inputValue:t.formData.projectDescribe,holder:"请输入描述内容",getByType:"word",maxLength:100},on:{"update:inputValue":function(e){return t.$set(t.formData,"projectDescribe",e)},"update:input-value":function(e){return t.$set(t.formData,"projectDescribe",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){return t.customConfirm("programForm")}}},[t._v(t._s(t.formData.projectId?"保 存":"新 建"))])],1)])],1)},staticRenderFns:[]};var f=a("VU/8")(m,h,!1,function(t){a("auIj")},"data-v-255c0ab0",null).exports,g=a("jvWE"),D={name:"apiProgram",components:{navBread:o.a,newProgram:f},data:function(){return{navPath:[{name:"API管理",path:"/apiProgram"},{name:"项目列表",path:""}],searchValue:"",tableData:[],pageSize:20,currentPage:1,totalCount:0,showDialog:!1,editIndex:"",editRow:{}}},methods:{editProgram:function(){this.showDialog=!0},hideDialog:function(t){if(!t)return this.editIndex="",this.editRow={},this.showDialog=!1,!1;this.currentPage=1,this.getData(),this.editIndex="",this.editRow={},this.showDialog=!1,this.$forceUpdate()},searchData:Object(g.a)(function(t){this.currentPage,this.getData()},500),clearInput:function(){this.currentPage=1,this.getData()},handleSizeChange:function(t){this.pageSize=t,this.getData()},handleCurrentChange:function(t){this.currentPage=t,this.getData()},toGroupList:function(t,e){this.$router.push("/apiProgramGroup?projectId="+e.projectId+"&projectName="+e.projectName)},handleEdit:function(t,e){this.editIndex=t,this.editRow=e,this.showDialog=!0},handleDel:function(t,e){var a=this;a.$confirm("【"+e.projectName+"】下的接口将全部被删除,确认删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDelData(t,e)}).catch(function(){})},postDelData:function(t,e){var a=this,o={projectId:e.projectId};Object(u.a)("/gateway-manage/delete-project",o).then(function(e){var o=e.data;if("0000"==o.code)return p.a.showmsg("删除成功","success"),void a.tableData.splice(t,1);d.a.errorMsg(o)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},getData:function(){var t=this,e={search:t.searchValue,pageSize:t.pageSize,pageNum:t.currentPage};Object(u.a)("/gateway-manage/page-project",e).then(function(e){var a=e.data;if("0000"==a.code)return t.tableData=a.result.result,void(t.totalCount=a.result.totalCount);d.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{$route:{handler:function(t,e){},deep:!0}},mounted:function(){this.$emit("showTab",21),this.getData()}},v={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:"search-wrap m-b-20 flex flex-space-between"},[a("el-input",{staticClass:"w-320",attrs:{clearable:"",placeholder:"请输入项目名称"},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.searchData(a);var a}},model:{value:t.searchValue,callback:function(e){t.searchValue=e},expression:"searchValue"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.editProgram}},[t._v("新建项目")])],1),t._v(" "),a("div",{staticClass:"table-wrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData}},[a("el-table-column",{attrs:{prop:"projectName",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.projectDescribe)+"\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){return t.toGroupList(e.$index,e.row)}}},[t._v("分组列表")]),t._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.handleEdit(e.$index,e.row)}}},[t._v("编辑")]),t._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.handleDel(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("new-program",{attrs:{editRow:t.editRow,showDialog:t.showDialog},on:{hideDialog:t.hideDialog}})],1)},staticRenderFns:[]};var b=a("VU/8")(D,v,!1,function(t){a("quM8")},"data-v-b5cbbb7a",null);e.default=b.exports},quM8:function(t,e){}});
\ No newline at end of file
webpackJsonp([12],{auIj:function(t,e){},kAqA:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("319J"),r=a("mvHQ"),i=a.n(r),n=a("fZjL"),s=a.n(n),c=a("l46T"),l=a("Kkt8"),u=a("P9l9"),d=a("TUB1"),p=a("LlAa"),m={name:"new-env",props:{showDialog:{type:Boolean,default:!1},editRow:{type:Object,default:function(){return{projectId:"",projectName:"",projectDescribe:""}}}},components:{limitInput:c.a,limitTextarea:l.a},data:function(){return{customDialog:!1,formData:{projectId:"",projectName:"",projectDescribe:""},rules:{projectName:[{required:!0,message:"请输入项目名称",trigger:"blur"}],projectDescribe:[{required:!0,message:"请输入描述",trigger:"blur"}]}}},methods:{handleClose:function(t){this.$refs.programForm.resetFields(),t(),this.hideDialog()},customCancel:function(){this.$refs.programForm.resetFields(),this.hideDialog()},hideDialog:function(){this.customDialog=!1,this.formData.projectName="",this.formData.projectDescribe="",this.$emit("hideDialog","")},customConfirm:function(t){var e=this;e.formData.projectName=e.formData.projectName?String(e.formData.projectName).replace(/\s+/g,""):"",e.formData.projectDescribe=e.formData.projectDescribe?String(e.formData.projectDescribe).replace(/\s+/g,""):"",e.$refs[t].validate(function(t){if(!t)return!1;e.postEditData()})},postEditData:function(){var t=this,e={projectId:t.formData.projectId,projectName:t.formData.projectName,projectDescribe:t.formData.projectDescribe};Object(u.a)(t.editRow.projectId?"/gateway-manage/update-project":"/gateway-manage/create-project",e).then(function(e){var a=e.data;if("0000"==a.code)return d.a.showmsg("保存成功","success"),void t.setData();p.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},setData:function(t){var e=this;e.$emit("hideDialog",e.formData),e.$nextTick(function(){e.formData.projectName="",e.formData.projectDescribe=""})}},watch:{showDialog:function(t,e){this.customDialog=t},editRow:function(t,e){s()(t).length&&(this.formData=JSON.parse(i()(t)))}},mounted:function(){this.customDialog=this.showDialog,s()(this.editRow).length&&(this.formData=JSON.parse(i()(this.editRow)))}},h={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:t.formData.projectId?"编辑项目":"新建项目",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:"programForm",attrs:{model:t.formData,"label-width":"94px",rules:t.rules}},[a("el-form-item",{attrs:{label:"项目名称:",prop:"projectName"}},[a("limitInput",{attrs:{inputWidth:440,inputValue:t.formData.projectName,holder:"请输入项目名称",getByType:"word",maxLength:20},on:{"update:inputValue":function(e){t.$set(t.formData,"projectName",e)}}})],1),t._v(" "),a("el-form-item",{attrs:{label:"描述:"}},[a("limit-textarea",{attrs:{inputWidth:440,inputValue:t.formData.projectDescribe,holder:"请输入描述内容",getByType:"word",maxLength:100},on:{"update:inputValue":function(e){t.$set(t.formData,"projectDescribe",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("programForm")}}},[t._v(t._s(t.formData.projectId?"保 存":"新 建"))])],1)])],1)},staticRenderFns:[]};var f=a("VU/8")(m,h,!1,function(t){a("auIj")},"data-v-255c0ab0",null).exports,g=a("jvWE"),D={name:"apiProgram",components:{navBread:o.a,newProgram:f},data:function(){return{navPath:[{name:"API管理",path:"/apiProgram"},{name:"项目列表",path:""}],searchValue:"",tableData:[],pageSize:20,currentPage:1,totalCount:0,showDialog:!1,editIndex:"",editRow:{}}},methods:{editProgram:function(){this.showDialog=!0},hideDialog:function(t){if(!t)return this.editIndex="",this.editRow={},this.showDialog=!1,!1;this.currentPage=1,this.getData(),this.editIndex="",this.editRow={},this.showDialog=!1,this.$forceUpdate()},searchData:Object(g.a)(function(t){this.currentPage,this.getData()},500),clearInput:function(){this.currentPage=1,this.getData()},handleSizeChange:function(t){this.pageSize=t,this.getData()},handleCurrentChange:function(t){this.currentPage=t,this.getData()},toGroupList:function(t,e){this.$router.push("/apiProgramGroup?projectId="+e.projectId+"&projectName="+e.projectName)},handleEdit:function(t,e){this.editIndex=t,this.editRow=e,this.showDialog=!0},handleDel:function(t,e){var a=this;a.$confirm("【"+e.projectName+"】下的接口将全部被删除,确认删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDelData(t,e)}).catch(function(){})},postDelData:function(t,e){var a=this,o={projectId:e.projectId};Object(u.a)("/gateway-manage/delete-project",o).then(function(e){var o=e.data;if("0000"==o.code)return d.a.showmsg("删除成功","success"),void a.tableData.splice(t,1);p.a.errorMsg(o)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},getData:function(){var t=this,e={search:t.searchValue,pageSize:t.pageSize,pageNum:t.currentPage};Object(u.a)("/gateway-manage/page-project",e).then(function(e){var a=e.data;if("0000"==a.code)return t.tableData=a.result.result,void(t.totalCount=a.result.totalCount);p.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{$route:{handler:function(t,e){},deep:!0}},mounted:function(){this.$emit("showTab",21),this.getData()}},v={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:"search-wrap m-b-20 flex flex-space-between"},[a("el-input",{staticClass:"w-320",attrs:{clearable:"",placeholder:"请输入项目名称"},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.searchData(a);var a}},model:{value:t.searchValue,callback:function(e){t.searchValue=e},expression:"searchValue"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.editProgram}},[t._v("新建项目")])],1),t._v(" "),a("div",{staticClass:"table-wrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData}},[a("el-table-column",{attrs:{prop:"projectName",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.projectDescribe)+"\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.toGroupList(e.$index,e.row)}}},[t._v("分组列表")]),t._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){t.handleEdit(e.$index,e.row)}}},[t._v("编辑")]),t._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){t.handleDel(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("new-program",{attrs:{editRow:t.editRow,showDialog:t.showDialog},on:{hideDialog:t.hideDialog}})],1)},staticRenderFns:[]};var b=a("VU/8")(D,v,!1,function(t){a("quM8")},"data-v-b5cbbb7a",null);e.default=b.exports},quM8:function(t,e){}});
\ No newline at end of file
webpackJsonp([13],{"OBz+":function(e,t){},SGyq:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("319J"),o=r("mvHQ"),n=r.n(o),i=r("fZjL"),s=r.n(i),l=r("P9l9"),c=r("TUB1"),d=r("LlAa"),u={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=t.formData.errorCode?String(t.formData.errorCode).replace(/\s+/g,""):"",t.formData.errorInfo=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(l.b)(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 c.a.showmsg("保存成功","success"),void e.setData();d.a.errorMsg(r)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},setData:function(e){var t=this;t.$emit("hideDialog",t.formData),t.$nextTick(function(){t.formData.errorCode="",t.formData.errorInfo=""})}},watch:{showDialog:function(e,t){this.customDialog=e},editRow:function(e,t){s()(e).length&&(this.formData=JSON.parse(n()(e)))}},mounted:function(){this.customDialog=this.showDialog,s()(this.editRow).length&&(this.formData=JSON.parse(n()(this.editRow)))}},f={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}},[e.formData.interfaceName?r("el-form-item",{attrs:{label:"接口名称:"}},[e._v("\n "+e._s(e.formData.interfaceName)+"\n ")]):e._e(),e._v(" "),e.formData.projectAndGroup?r("el-form-item",{attrs:{label:"项目分组:"}},[e._v("\n "+e._s(e.formData.projectAndGroup)+"\n ")]):e._e(),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){return e.customConfirm("errorCodeForm")}}},[e._v("保 存")])],1)])],1)},staticRenderFns:[]};var h=r("VU/8")(u,f,!1,function(e){r("SymU")},"data-v-20bc08a0",null).exports,m=r("jvWE"),g={name:"errorCode",components:{navBread:a.a,errorCodeEdit:h},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(m.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.currentPage,this.getData(),this.editIndex="",this.editRow={},this.showDialog=!1,this.$forceUpdate()},handleDel:function(e,t){var r=this;r.$confirm("确认删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){r.postDel(e,t)}).catch(function(){})},postDel:function(e,t){var r=this,a={errorSettingId:t.errorSettingId};Object(l.b)("/gateway-manage/delete-error-setting",a).then(function(e){var t=e.data;if("0000"==t.code)return c.a.showmsg("删除成功","success"),void r.getData();d.a.errorMsg(t)}).catch(function(e){r.$message.error({duration:1e3,message:e.message})})},getData:function(){var e=this,t={search:e.searchValue,pageNum:e.currentPage,pageSize:e.pageSize};Object(l.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);d.a.errorMsg(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()}},p={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 flex flex-space-between"},[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"})]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:e.handleEdit}},[e._v("新建错误码")])],1),e._v(" "),r("div",{staticClass:"table-wrap"},[r("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[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:{type:"text"},on:{click:function(r){return 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 v=r("VU/8")(g,p,!1,function(e){r("OBz+")},"data-v-475b60a0",null);t.default=v.exports},SymU:function(e,t){}});
\ No newline at end of file
webpackJsonp([13],{"OBz+":function(e,t){},SGyq:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("319J"),o=r("mvHQ"),n=r.n(o),i=r("fZjL"),s=r.n(i),l=r("P9l9"),c=r("TUB1"),d=r("LlAa"),u={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=t.formData.errorCode?String(t.formData.errorCode).replace(/\s+/g,""):"",t.formData.errorInfo=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(l.b)(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 c.a.showmsg("保存成功","success"),void e.setData();d.a.errorMsg(r)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},setData:function(e){var t=this;t.$emit("hideDialog",t.formData),t.$nextTick(function(){t.formData.errorCode="",t.formData.errorInfo=""})}},watch:{showDialog:function(e,t){this.customDialog=e},editRow:function(e,t){s()(e).length&&(this.formData=JSON.parse(n()(e)))}},mounted:function(){this.customDialog=this.showDialog,s()(this.editRow).length&&(this.formData=JSON.parse(n()(this.editRow)))}},f={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}},[e.formData.interfaceName?r("el-form-item",{attrs:{label:"接口名称:"}},[e._v("\n "+e._s(e.formData.interfaceName)+"\n ")]):e._e(),e._v(" "),e.formData.projectAndGroup?r("el-form-item",{attrs:{label:"项目分组:"}},[e._v("\n "+e._s(e.formData.projectAndGroup)+"\n ")]):e._e(),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 h=r("VU/8")(u,f,!1,function(e){r("SymU")},"data-v-20bc08a0",null).exports,m=r("jvWE"),g={name:"errorCode",components:{navBread:a.a,errorCodeEdit:h},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(m.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.currentPage,this.getData(),this.editIndex="",this.editRow={},this.showDialog=!1,this.$forceUpdate()},handleDel:function(e,t){var r=this;r.$confirm("确认删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){r.postDel(e,t)}).catch(function(){})},postDel:function(e,t){var r=this,a={errorSettingId:t.errorSettingId};Object(l.b)("/gateway-manage/delete-error-setting",a).then(function(e){var t=e.data;if("0000"==t.code)return c.a.showmsg("删除成功","success"),void r.getData();d.a.errorMsg(t)}).catch(function(e){r.$message.error({duration:1e3,message:e.message})})},getData:function(){var e=this,t={search:e.searchValue,pageNum:e.currentPage,pageSize:e.pageSize};Object(l.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);d.a.errorMsg(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()}},p={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 flex flex-space-between"},[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"})]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:e.handleEdit}},[e._v("新建错误码")])],1),e._v(" "),r("div",{staticClass:"table-wrap"},[r("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[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:{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 v=r("VU/8")(g,p,!1,function(e){r("OBz+")},"data-v-475b60a0",null);t.default=v.exports},SymU:function(e,t){}});
\ No newline at end of file
webpackJsonp([14],{ALsN:function(t,s){},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("ALsN")},"data-v-18a2f51c",null);s.default=c.exports},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],{OEJD:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("319J"),o=a("P9l9"),r=a("jvWE"),l=a("LlAa"),s={name:"releaseRecords",components:{navBread:n.a},data:function(){return{navPath:[{name:"发布记录",path:""}],searchValue:"",tableData:[],pageSize:20,currentPage:1,totalCount:0}},methods:{searchData:Object(r.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?editFlag=0&interfaceId="+t.interfaceId+"&interfaceName="+t.interfaceName+"&interfaceVersionId="+t.interfaceVersionId+"&publishRecordId="+t.publishRecordId+"&projectId="+t.projectId+"&projectName="+t.projectName+"&interfaceGroupId="+t.interfaceGroupId+"&interfaceGroupName="+t.interfaceGroupName)},getData:function(){var e=this,t={search:e.searchValue,pageNum:e.currentPage,pageSize:e.pageSize};Object(o.a)("/gateway-manage/page-api-publish-record",t).then(function(t){var a=t.data;if("0000"==a.code)return e.tableData=a.result.result||[],void(e.totalCount=a.result.totalCount);l.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",4),this.getData()}},i={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:"search-wrap m-b-20"},[a("el-input",{staticClass:"w-320",attrs:{clearable:"",placeholder:"请输入版本号/API名称"},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"})])],1),e._v(" "),a("div",{staticClass:"table-wrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{prop:"publishRecordId",label:"发布版本","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{label:"API名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.interfaceName)+"\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.version)+"\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")(s,i,!1,function(e){a("U/YX")},"data-v-de7e81a8",null);t.default=c.exports},"U/YX":function(e,t){}});
\ No newline at end of file
webpackJsonp([15],{OEJD:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("319J"),o=a("P9l9"),r=a("jvWE"),l=a("LlAa"),s={name:"releaseRecords",components:{navBread:n.a},data:function(){return{navPath:[{name:"发布记录",path:""}],searchValue:"",tableData:[],pageSize:20,currentPage:1,totalCount:0}},methods:{searchData:Object(r.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?editFlag=0&interfaceId="+t.interfaceId+"&interfaceName="+t.interfaceName+"&interfaceVersionId="+t.interfaceVersionId+"&publishRecordId="+t.publishRecordId+"&projectId="+t.projectId+"&projectName="+t.projectName+"&interfaceGroupId="+t.interfaceGroupId+"&interfaceGroupName="+t.interfaceGroupName)},getData:function(){var e=this,t={search:e.searchValue,pageNum:e.currentPage,pageSize:e.pageSize};Object(o.a)("/gateway-manage/page-api-publish-record",t).then(function(t){var a=t.data;if("0000"==a.code)return e.tableData=a.result.result||[],void(e.totalCount=a.result.totalCount);l.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",4),this.getData()}},i={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:"search-wrap m-b-20"},[a("el-input",{staticClass:"w-320",attrs:{clearable:"",placeholder:"请输入版本号/API名称"},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"})])],1),e._v(" "),a("div",{staticClass:"table-wrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{prop:"publishRecordId",label:"发布版本","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{label:"API名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.interfaceName)+"\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.version)+"\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){return 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")(s,i,!1,function(e){a("U/YX")},"data-v-de7e81a8",null);t.default=c.exports},"U/YX":function(e,t){}});
\ No newline at end of file
webpackJsonp([16],{hMb6: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"),u=a("LlAa"),d={name:"createEnvSet",components:{navBread:n.a,limitInput:s.a,limitTextarea:l.a},data:function(){return{navPath:[{name:"环境管理",path:"/envManage"},{name:"配置列表",path:"/envManage?tabChildid=second"},{name:this.$route.query.backendProxyId?"show"==this.$route.query.envSetFlag?"查看配置":"修改配置":"新增配置",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:[]}},methods:{showEnvSet:function(){this.shoEnvFlag=!0},toDel:function(e,t,a){if("show"==this.$route.query.envSetFlag)return!1;e.proxyParams.splice(a,1)},toAdd:function(e,t,a){if("show"==this.$route.query.envSetFlag)return!1;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,t=!0,a=!0,o=!0;if(e.tableData.forEach(function(r){""==r.sceneCode&&(t=!1),0==e.formData.proxyType?r.proxyParams.forEach(function(r){!1===/((2(5[0-5]|[0-4]\d))|[0-1]?\d{1,2})(\.((2(5[0-5]|[0-4]\d))|[0-1]?\d{1,2})){3}/g.test(r.url)&&(o=!1),r.weight<1e4||(a=!1),""!=r.url&&""!=r.weight||(t=!1),e.$delete(r,"zookeeperUrl")}):r.proxyParams.forEach(function(a){""==a.zookeeperUrl&&(t=!1),e.$delete(a,"balence"),e.$delete(a,"url"),e.$delete(a,"weight")})}),!t)return e.$message.error({duration:1e3,message:"请完善环境配置"}),!1;if(!a)return e.$message.error({duration:1e3,message:"请填写小于10000以内的权重值"}),!1;if(!o)return e.$message.error({duration:1e3,message:"请填写正确的 IP 地址"}),!1;var n={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.b)(e.$route.query.backendProxyId?"/gateway-manage/update-proxy":"/gateway-manage/create-proxy",n).then(function(t){var a=t.data;if("0000"==a.code)return c.a.showmsg("保存成功","success"),void e.$router.push("/envManage?tabChildid=second");u.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?u.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){e.formData=a.result;var o=JSON.parse(a.result.envParams);return e.tableData=o,void(e.tableData.length&&(e.shoEnvFlag=!0))}u.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()}},p={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,disflag:"show"==e.$route.query.envSetFlag,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.backendProxyId,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:{disInput:"show"==e.$route.query.envSetFlag,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:"请选择",disabled:"show"==e.$route.query.envSetFlag},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地址",disabled:"show"==e.$route.query.envSetFlag},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:"请输入权重值",disabled:"show"==e.$route.query.envSetFlag},model:{value:o.weight,callback:function(t){e.$set(o,"weight",t)},expression:"item.weight"}}),e._v(" "),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:{disabled:"show"==e.$route.query.envSetFlag,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"},[a("el-button",{attrs:{disabled:"show"==e.$route.query.envSetFlag,type:"text"},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("添加行")])])],1)]):e._e(),e._v(" "),a("div",{staticClass:"save-wrap",style:{"padding-left":e.shoEnvFlag?"0":"97px"}},[a("el-button",{attrs:{disabled:"show"==e.$route.query.envSetFlag,type:"primary"},on:{click:function(t){e.handleSave("envForm")}}},[e._v("保存")])],1)])])])},staticRenderFns:[]};var m=a("VU/8")(d,p,!1,function(e){a("hMb6")},"data-v-c53f5054",null);t.default=m.exports}});
\ No newline at end of file
webpackJsonp([16],{hMb6: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"),u=a("TUB1"),c=a("LlAa"),d={name:"createEnvSet",components:{navBread:n.a,limitInput:s.a,limitTextarea:l.a},data:function(){return{navPath:[{name:"环境管理",path:"/envManage"},{name:"配置列表",path:"/envManage?tabChildid=second"},{name:this.$route.query.backendProxyId?"show"==this.$route.query.envSetFlag?"查看配置":"修改配置":"新增配置",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:[]}},methods:{showEnvSet:function(){this.shoEnvFlag=!0},toDel:function(e,t,a){if("show"==this.$route.query.envSetFlag)return!1;e.proxyParams.splice(a,1)},toAdd:function(e,t,a){if("show"==this.$route.query.envSetFlag)return!1;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,t=!0,a=!0,o=!0;if(e.tableData.forEach(function(r){""==r.sceneCode&&(t=!1),0==e.formData.proxyType?r.proxyParams.forEach(function(r){!1===/((2(5[0-5]|[0-4]\d))|[0-1]?\d{1,2})(\.((2(5[0-5]|[0-4]\d))|[0-1]?\d{1,2})){3}/g.test(r.url)&&(o=!1),r.weight<1e4||(a=!1),""!=r.url&&""!=r.weight||(t=!1),e.$delete(r,"zookeeperUrl")}):r.proxyParams.forEach(function(a){""==a.zookeeperUrl&&(t=!1),e.$delete(a,"balence"),e.$delete(a,"url"),e.$delete(a,"weight")})}),!t)return e.$message.error({duration:1e3,message:"请完善环境配置"}),!1;if(!a)return e.$message.error({duration:1e3,message:"请填写小于10000以内的权重值"}),!1;if(!o)return e.$message.error({duration:1e3,message:"请填写正确的 IP 地址"}),!1;var n={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.b)(e.$route.query.backendProxyId?"/gateway-manage/update-proxy":"/gateway-manage/create-proxy",n).then(function(t){var a=t.data;if("0000"==a.code)return u.a.showmsg("保存成功","success"),void e.$router.push("/envManage?tabChildid=second");c.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?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={backendProxyId:e.formData.backendProxyId};Object(i.a)("/gateway-manage/get-proxy",t).then(function(t){var a=t.data;if("0000"==a.code){e.formData=a.result;var o=JSON.parse(a.result.envParams);return e.tableData=o,void(e.tableData.length&&(e.shoEnvFlag=!0))}c.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()}},p={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,disflag:"show"==e.$route.query.envSetFlag,inputValue:e.formData.proxyName,holder:"请输入配置名称",getByType:"word",maxLength:20},on:{"update:inputValue":function(t){return e.$set(e.formData,"proxyName",t)},"update:input-value":function(t){return 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.backendProxyId,inputValue:e.formData.proxyCode,holder:"请输入配置code",getByType:"word",maxLength:20},on:{"update:inputValue":function(t){return e.$set(e.formData,"proxyCode",t)},"update:input-value":function(t){return e.$set(e.formData,"proxyCode",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"备注:",prop:"description"}},[a("limit-textarea",{attrs:{disInput:"show"==e.$route.query.envSetFlag,inputWidth:440,inputValue:e.formData.description,holder:"请输入备注内容",getByType:"word",maxLength:100},on:{"update:inputValue":function(t){return e.$set(e.formData,"description",t)},"update:input-value":function(t){return 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:"请选择",disabled:"show"==e.$route.query.envSetFlag},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}})}),1)]}}],null,!1,3851186050)}),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地址",disabled:"show"==e.$route.query.envSetFlag},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:"请输入权重值",disabled:"show"==e.$route.query.envSetFlag},model:{value:o.weight,callback:function(t){e.$set(o,"weight",t)},expression:"item.weight"}}),e._v(" "),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){return 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){return e.toAdd(t.row,t.$index,r)}}}):e._e()],1)})}}],null,!1,3025208577)}):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)})}}],null,!1,2000410145)}):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:{disabled:"show"==e.$route.query.envSetFlag,type:"text"},on:{click:function(a){return e.handleDel(t.$index,t.row)}}},[e._v("删除")]):e._e()]}}],null,!1,487348483)})],1)],1),e._v(" "),a("div",{staticClass:"add-row text-center pointer"},[a("el-button",{attrs:{disabled:"show"==e.$route.query.envSetFlag,type:"text"},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("添加行")])])],1)]):e._e(),e._v(" "),a("div",{staticClass:"save-wrap",style:{"padding-left":e.shoEnvFlag?"0":"97px"}},[a("el-button",{attrs:{disabled:"show"==e.$route.query.envSetFlag,type:"primary"},on:{click:function(t){return e.handleSave("envForm")}}},[e._v("保存")])],1)])])])},staticRenderFns:[]};var m=a("VU/8")(d,p,!1,function(e){a("hMb6")},"data-v-c53f5054",null);t.default=m.exports}});
\ No newline at end of file
webpackJsonp([17],{BQCD:function(e,t){},S82n:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("319J"),o=a("f2i8"),n=a("P9l9"),i=a("jvWE"),l=a("LlAa"),c={name:"apiProgramGroup",components:{navBread:r.a,newApiGroup:o.a},data:function(){return{navPath:[{name:"API管理",path:"/apiProgram"},{name:this.$route.query.projectName+"项目列表",path:"/apiProgramGroup"},{name:this.$route.query.interfaceGroupName+"分组列表",path:"/groupApiList"},{name:"API列表",path:""}],projectId:this.$route.query.projectId||"",interfaceGroupId:this.$route.query.interfaceGroupId||"",searchValue:"",targetType:"-1",targetTypeOptions:[{value:"-1",label:"所有"},{value:"0",label:"私有"},{value:"1",label:"公开"}],tableData:[],pageSize:20,currentPage:1,totalCount:0,showDialog:!1,editIndex:"",editRow:{}}},methods:{searchData:Object(i.a)(function(e){this.currentPage,this.getData()},500),clearInput:function(){this.currentPage=1,this.getData()},changeTargetType:function(e){this.currentPage=1,this.getData()},createApi:function(){this.$router.push("/createApi?projectId="+this.$route.query.projectId+"&projectName="+this.$route.query.projectName+"&interfaceGroupId="+this.$route.query.interfaceGroupId+"&interfaceGroupName="+this.$route.query.interfaceGroupName)},handleSizeChange:function(e){this.pageSize=e,this.getData()},handleCurrentChange:function(e){this.currentPage=e,this.getData()},toApiListManage:function(e,t){this.$router.push("/apiListManage?interfaceId="+t.interfaceId+"&interfaceName="+t.interfaceName+"&projectId="+t.projectId+"&projectName="+t.projectName+"&interfaceGroupId="+t.interfaceGroupId+"&interfaceGroupName="+t.interfaceGroupName)},getData:function(){var e=this,t={projectId:e.projectId,interfaceGroupId:e.interfaceGroupId,search:e.searchValue,target:e.targetType,pageSize:e.pageSize,pageNum:e.currentPage};Object(n.a)("/gateway-manage/page-api",t).then(function(t){var a=t.data;if("0000"==a.code)return e.tableData=a.result.result,void(e.totalCount=a.result.totalCount);l.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",21),this.getData()}},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:"search-wrap m-b-20 flex flex-space-between"},[a("div",{staticStyle:{"font-size":"0"}},[a("el-input",{staticClass:"w-320",attrs:{clearable:"",placeholder:"请输入API名称"},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-select",{staticClass:"w-137 margin-left10",attrs:{placeholder:"请选择"},on:{change:e.changeTargetType},model:{value:e.targetType,callback:function(t){e.targetType=t},expression:"targetType"}},e._l(e.targetTypeOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}))],1),e._v(" "),e.$route.query.projectName&&e.$route.query.interfaceGroupId?a("div",[a("el-button",{attrs:{type:"primary"},on:{click:e.createApi}},[e._v("创建API")])],1):e._e()]),e._v(" "),a("div",{staticClass:"table-wrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{prop:"interfaceName",label:"API名称","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{label:"API类型","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s("0"==t.row.interfaceType?"http":"1"==t.row.interfaceType?"dubbo ":"自定义返回")+"\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.interfaceUrl)+"\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.optType)+"\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.projectName+"/"+t.row.interfaceGroupName)+"\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.toApiListManage(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("new-api-group",{attrs:{editRow:e.editRow,showDialog:e.showDialog},on:{hideDialog:e.hideDialog}})],1)},staticRenderFns:[]};var u=a("VU/8")(c,s,!1,function(e){a("BQCD")},"data-v-8f41f928",null);t.default=u.exports}});
\ No newline at end of file
webpackJsonp([17],{BQCD:function(e,t){},S82n:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("319J"),o=a("f2i8"),n=a("P9l9"),i=a("jvWE"),l=a("LlAa"),c={name:"apiProgramGroup",components:{navBread:r.a,newApiGroup:o.a},data:function(){return{navPath:[{name:"API管理",path:"/apiProgram"},{name:this.$route.query.projectName+"项目列表",path:"/apiProgramGroup"},{name:this.$route.query.interfaceGroupName+"分组列表",path:"/groupApiList"},{name:"API列表",path:""}],projectId:this.$route.query.projectId||"",interfaceGroupId:this.$route.query.interfaceGroupId||"",searchValue:"",targetType:"-1",targetTypeOptions:[{value:"-1",label:"所有"},{value:"0",label:"私有"},{value:"1",label:"公开"}],tableData:[],pageSize:20,currentPage:1,totalCount:0,showDialog:!1,editIndex:"",editRow:{}}},methods:{searchData:Object(i.a)(function(e){this.currentPage,this.getData()},500),clearInput:function(){this.currentPage=1,this.getData()},changeTargetType:function(e){this.currentPage=1,this.getData()},createApi:function(){this.$router.push("/createApi?projectId="+this.$route.query.projectId+"&projectName="+this.$route.query.projectName+"&interfaceGroupId="+this.$route.query.interfaceGroupId+"&interfaceGroupName="+this.$route.query.interfaceGroupName)},handleSizeChange:function(e){this.pageSize=e,this.getData()},handleCurrentChange:function(e){this.currentPage=e,this.getData()},toApiListManage:function(e,t){this.$router.push("/apiListManage?interfaceId="+t.interfaceId+"&interfaceName="+t.interfaceName+"&projectId="+t.projectId+"&projectName="+t.projectName+"&interfaceGroupId="+t.interfaceGroupId+"&interfaceGroupName="+t.interfaceGroupName)},getData:function(){var e=this,t={projectId:e.projectId,interfaceGroupId:e.interfaceGroupId,search:e.searchValue,target:e.targetType,pageSize:e.pageSize,pageNum:e.currentPage};Object(n.a)("/gateway-manage/page-api",t).then(function(t){var a=t.data;if("0000"==a.code)return e.tableData=a.result.result,void(e.totalCount=a.result.totalCount);l.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",21),this.getData()}},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:"search-wrap m-b-20 flex flex-space-between"},[a("div",{staticStyle:{"font-size":"0"}},[a("el-input",{staticClass:"w-320",attrs:{clearable:"",placeholder:"请输入API名称"},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-select",{staticClass:"w-137 margin-left10",attrs:{placeholder:"请选择"},on:{change:e.changeTargetType},model:{value:e.targetType,callback:function(t){e.targetType=t},expression:"targetType"}},e._l(e.targetTypeOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),e.$route.query.projectName&&e.$route.query.interfaceGroupId?a("div",[a("el-button",{attrs:{type:"primary"},on:{click:e.createApi}},[e._v("创建API")])],1):e._e()]),e._v(" "),a("div",{staticClass:"table-wrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{prop:"interfaceName",label:"API名称","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{label:"API类型","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s("0"==t.row.interfaceType?"http":"1"==t.row.interfaceType?"dubbo ":"自定义返回")+"\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.interfaceUrl)+"\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.optType)+"\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.projectName+"/"+t.row.interfaceGroupName)+"\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){return e.toApiListManage(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("new-api-group",{attrs:{editRow:e.editRow,showDialog:e.showDialog},on:{hideDialog:e.hideDialog}})],1)},staticRenderFns:[]};var u=a("VU/8")(c,s,!1,function(e){a("BQCD")},"data-v-8f41f928",null);t.default=u.exports}});
\ No newline at end of file
webpackJsonp([18],{"G8l+":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("319J"),r=a("f2i8"),n=a("P9l9"),i=a("jvWE"),s=a("TUB1"),c=a("LlAa"),l={name:"apiProgramGroup",components:{navBread:o.a,newApiGroup:r.a},data:function(){return{navPath:[{name:"API管理",path:"/apiProgram"},{name:this.$route.query.projectName+"项目列表",path:"/apiProgramGroup"},{name:"分组列表",path:""}],searchValue:"",tableData:[],pageSize:20,currentPage:1,totalCount:0,showDialog:!1,editIndex:"",editRow:{}}},methods:{createApi:function(t,e){this.$router.push("/createApi?projectId="+e.projectId+"&projectName="+this.$route.query.projectName+"&interfaceGroupId="+e.interfaceGroupId+"&interfaceGroupName="+e.groupName)},editProgram:function(){this.showDialog=!0},hideDialog:function(t){if(!t)return this.editIndex="",this.editRow={},this.showDialog=!1,!1;this.currentPage=1,this.getData(),this.editIndex="",this.editRow={},this.showDialog=!1,this.$forceUpdate()},searchData:Object(i.a)(function(t){this.currentPage,this.getData()},500),clearInput:function(){this.currentPage=1,this.getData()},handleSizeChange:function(t){this.pageSize=t,this.getData()},handleCurrentChange:function(t){this.currentPage=t,this.getData()},toApiList:function(t,e){this.$router.push("/groupApiList?projectId="+e.projectId+"&projectName="+this.$route.query.projectName+"&interfaceGroupId="+e.interfaceGroupId+"&interfaceGroupName="+e.groupName)},handleEdit:function(t,e){this.editIndex=t,this.editRow=e,this.showDialog=!0},handleDel:function(t,e){var a=this;a.$confirm("【"+e.groupName+"】下的接口将全部被删除,确认删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDelData(t,e)}).catch(function(){})},postDelData:function(t,e){var a=this,o={interfaceGroupId:e.interfaceGroupId};Object(n.a)("/gateway-manage/delete-api-group",o).then(function(e){var o=e.data;if("0000"==o.code)return s.a.showmsg("删除成功","success"),void a.tableData.splice(t,1);c.a.errorMsg(o)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},getData:function(){var t=this,e={search:t.searchValue,pageSize:t.pageSize,pageNum:t.currentPage,projectId:t.$route.query.projectId};Object(n.a)("/gateway-manage/page-api-group",e).then(function(e){var a=e.data;if("0000"==a.code)return t.tableData=a.result.result,void(t.totalCount=a.result.totalCount);c.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{$route:{handler:function(t,e){},deep:!0}},mounted:function(){this.$emit("showTab",21),this.getData()}},u={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:"search-wrap m-b-20 flex flex-space-between"},[a("el-input",{staticClass:"w-320",attrs:{clearable:"",placeholder:"请输入分组名称"},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.searchData(a);var a}},model:{value:t.searchValue,callback:function(e){t.searchValue=e},expression:"searchValue"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.editProgram}},[t._v("新建分组")])],1),t._v(" "),a("div",{staticClass:"table-wrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData}},[a("el-table-column",{attrs:{prop:"groupName",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.toApiList(e.$index,e.row)}}},[t._v("API列表")]),t._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){t.handleEdit(e.$index,e.row)}}},[t._v("编辑")]),t._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){t.handleDel(e.$index,e.row)}}},[t._v("删除")]),t._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){t.createApi(e.$index,e.row)}}},[t._v("新建API")])]}}])})],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("new-api-group",{attrs:{editRow:t.editRow,showDialog:t.showDialog},on:{hideDialog:t.hideDialog}})],1)},staticRenderFns:[]};var p=a("VU/8")(l,u,!1,function(t){a("GGCd")},"data-v-5ad098a6",null);e.default=p.exports},GGCd:function(t,e){}});
\ No newline at end of file
webpackJsonp([18],{"G8l+":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("319J"),r=a("f2i8"),n=a("P9l9"),i=a("jvWE"),s=a("TUB1"),c=a("LlAa"),l={name:"apiProgramGroup",components:{navBread:o.a,newApiGroup:r.a},data:function(){return{navPath:[{name:"API管理",path:"/apiProgram"},{name:this.$route.query.projectName+"项目列表",path:"/apiProgramGroup"},{name:"分组列表",path:""}],searchValue:"",tableData:[],pageSize:20,currentPage:1,totalCount:0,showDialog:!1,editIndex:"",editRow:{}}},methods:{createApi:function(t,e){this.$router.push("/createApi?projectId="+e.projectId+"&projectName="+this.$route.query.projectName+"&interfaceGroupId="+e.interfaceGroupId+"&interfaceGroupName="+e.groupName)},editProgram:function(){this.showDialog=!0},hideDialog:function(t){if(!t)return this.editIndex="",this.editRow={},this.showDialog=!1,!1;this.currentPage=1,this.getData(),this.editIndex="",this.editRow={},this.showDialog=!1,this.$forceUpdate()},searchData:Object(i.a)(function(t){this.currentPage,this.getData()},500),clearInput:function(){this.currentPage=1,this.getData()},handleSizeChange:function(t){this.pageSize=t,this.getData()},handleCurrentChange:function(t){this.currentPage=t,this.getData()},toApiList:function(t,e){this.$router.push("/groupApiList?projectId="+e.projectId+"&projectName="+this.$route.query.projectName+"&interfaceGroupId="+e.interfaceGroupId+"&interfaceGroupName="+e.groupName)},handleEdit:function(t,e){this.editIndex=t,this.editRow=e,this.showDialog=!0},handleDel:function(t,e){var a=this;a.$confirm("【"+e.groupName+"】下的接口将全部被删除,确认删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDelData(t,e)}).catch(function(){})},postDelData:function(t,e){var a=this,o={interfaceGroupId:e.interfaceGroupId};Object(n.a)("/gateway-manage/delete-api-group",o).then(function(e){var o=e.data;if("0000"==o.code)return s.a.showmsg("删除成功","success"),void a.tableData.splice(t,1);c.a.errorMsg(o)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},getData:function(){var t=this,e={search:t.searchValue,pageSize:t.pageSize,pageNum:t.currentPage,projectId:t.$route.query.projectId};Object(n.a)("/gateway-manage/page-api-group",e).then(function(e){var a=e.data;if("0000"==a.code)return t.tableData=a.result.result,void(t.totalCount=a.result.totalCount);c.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{$route:{handler:function(t,e){},deep:!0}},mounted:function(){this.$emit("showTab",21),this.getData()}},u={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:"search-wrap m-b-20 flex flex-space-between"},[a("el-input",{staticClass:"w-320",attrs:{clearable:"",placeholder:"请输入分组名称"},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.searchData(a);var a}},model:{value:t.searchValue,callback:function(e){t.searchValue=e},expression:"searchValue"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.editProgram}},[t._v("新建分组")])],1),t._v(" "),a("div",{staticClass:"table-wrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData}},[a("el-table-column",{attrs:{prop:"groupName",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){return t.toApiList(e.$index,e.row)}}},[t._v("API列表")]),t._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.handleEdit(e.$index,e.row)}}},[t._v("编辑")]),t._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.handleDel(e.$index,e.row)}}},[t._v("删除")]),t._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.createApi(e.$index,e.row)}}},[t._v("新建API")])]}}])})],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("new-api-group",{attrs:{editRow:t.editRow,showDialog:t.showDialog},on:{hideDialog:t.hideDialog}})],1)},staticRenderFns:[]};var p=a("VU/8")(l,u,!1,function(t){a("GGCd")},"data-v-5ad098a6",null);e.default=p.exports},GGCd:function(t,e){}});
\ No newline at end of file
webpackJsonp([19],{"T+se":function(e,t){},tiLT:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("319J"),n=a("f2i8"),r=a("P9l9"),l=a("jvWE"),i=a("LlAa"),s={name:"apiProgramGroup",components:{navBread:o.a,newApiGroup:n.a},data:function(){return{navPath:[{name:"API管理",path:"/apiProgram"},{name:"API列表",path:""}],projectId:this.$route.query.projectId||"",interfaceGroupId:this.$route.query.interfaceGroupId||"",searchValue:"",targetType:"-1",targetTypeOptions:[{value:"-1",label:"所有"},{value:"0",label:"私有"},{value:"1",label:"公开"}],tableData:[],pageSize:20,currentPage:1,totalCount:0,showDialog:!1,editIndex:"",editRow:{}}},methods:{searchData:Object(l.a)(function(e){this.currentPage,this.getData()},500),clearInput:function(){this.currentPage=1,this.getData()},changeTargetType:function(e){this.currentPage=1,this.getData()},handleSizeChange:function(e){this.pageSize=e,this.getData()},handleCurrentChange:function(e){this.currentPage=e,this.getData()},toApiListManage:function(e,t){this.$router.push("/apiListManage?interfaceId="+t.interfaceId+"&interfaceName="+t.interfaceName+"&projectId="+t.projectId+"&projectName="+t.projectName+"&interfaceGroupId="+t.interfaceGroupId+"&interfaceGroupName="+t.interfaceGroupName)},getData:function(){var e=this,t={projectId:e.projectId,interfaceGroupId:e.interfaceGroupId,search:e.searchValue,target:e.targetType,pageSize:e.pageSize,pageNum:e.currentPage};Object(r.a)("/gateway-manage/page-api",t).then(function(t){var a=t.data;if("0000"==a.code)return e.tableData=a.result.result,void(e.totalCount=a.result.totalCount);i.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",22),this.getData()}},c={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:"search-wrap m-b-20 flex flex-space-between"},[a("div",{staticStyle:{"font-size":"0"}},[a("el-input",{staticClass:"w-320",attrs:{clearable:"",placeholder:"请输入API名称"},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-select",{staticClass:"w-137 margin-left10",attrs:{placeholder:"请选择"},on:{change:e.changeTargetType},model:{value:e.targetType,callback:function(t){e.targetType=t},expression:"targetType"}},e._l(e.targetTypeOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}))],1)]),e._v(" "),a("div",{staticClass:"table-wrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{prop:"interfaceName",label:"API名称","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{label:"API类型","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s("0"==t.row.interfaceType?"http":"1"==t.row.interfaceType?"dubbo ":"自定义返回")+"\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.interfaceUrl)+"\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.optType)+"\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.projectName+"/"+t.row.interfaceGroupName)+"\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.toApiListManage(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("new-api-group",{attrs:{editRow:e.editRow,showDialog:e.showDialog},on:{hideDialog:e.hideDialog}})],1)},staticRenderFns:[]};var u=a("VU/8")(s,c,!1,function(e){a("T+se")},"data-v-32f45152",null);t.default=u.exports}});
\ No newline at end of file
webpackJsonp([19],{"T+se":function(e,t){},tiLT:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("319J"),r=a("f2i8"),n=a("P9l9"),l=a("jvWE"),i=a("LlAa"),s={name:"apiProgramGroup",components:{navBread:o.a,newApiGroup:r.a},data:function(){return{navPath:[{name:"API管理",path:"/apiProgram"},{name:"API列表",path:""}],projectId:this.$route.query.projectId||"",interfaceGroupId:this.$route.query.interfaceGroupId||"",searchValue:"",targetType:"-1",targetTypeOptions:[{value:"-1",label:"所有"},{value:"0",label:"私有"},{value:"1",label:"公开"}],tableData:[],pageSize:20,currentPage:1,totalCount:0,showDialog:!1,editIndex:"",editRow:{}}},methods:{searchData:Object(l.a)(function(e){this.currentPage,this.getData()},500),clearInput:function(){this.currentPage=1,this.getData()},changeTargetType:function(e){this.currentPage=1,this.getData()},handleSizeChange:function(e){this.pageSize=e,this.getData()},handleCurrentChange:function(e){this.currentPage=e,this.getData()},toApiListManage:function(e,t){this.$router.push("/apiListManage?interfaceId="+t.interfaceId+"&interfaceName="+t.interfaceName+"&projectId="+t.projectId+"&projectName="+t.projectName+"&interfaceGroupId="+t.interfaceGroupId+"&interfaceGroupName="+t.interfaceGroupName)},getData:function(){var e=this,t={projectId:e.projectId,interfaceGroupId:e.interfaceGroupId,search:e.searchValue,target:e.targetType,pageSize:e.pageSize,pageNum:e.currentPage};Object(n.a)("/gateway-manage/page-api",t).then(function(t){var a=t.data;if("0000"==a.code)return e.tableData=a.result.result,void(e.totalCount=a.result.totalCount);i.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",22),this.getData()}},c={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:"search-wrap m-b-20 flex flex-space-between"},[a("div",{staticStyle:{"font-size":"0"}},[a("el-input",{staticClass:"w-320",attrs:{clearable:"",placeholder:"请输入API名称"},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-select",{staticClass:"w-137 margin-left10",attrs:{placeholder:"请选择"},on:{change:e.changeTargetType},model:{value:e.targetType,callback:function(t){e.targetType=t},expression:"targetType"}},e._l(e.targetTypeOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),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:"interfaceName",label:"API名称","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{label:"API类型","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s("0"==t.row.interfaceType?"http":"1"==t.row.interfaceType?"dubbo ":"自定义返回")+"\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.interfaceUrl)+"\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.optType)+"\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.projectName+"/"+t.row.interfaceGroupName)+"\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){return e.toApiListManage(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("new-api-group",{attrs:{editRow:e.editRow,showDialog:e.showDialog},on:{hideDialog:e.hideDialog}})],1)},staticRenderFns:[]};var u=a("VU/8")(s,c,!1,function(e){a("T+se")},"data-v-32f45152",null);t.default=u.exports}});
\ 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([20],{K0rJ:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n("319J"),i=n("P9l9"),s=n("PEkr"),o={name:"pluginManage",components:{navBread:a.a,selectEnv:s.a},data:function(){return{navPath:[{name:"插件管理",path:""}],search:"",list:[],showdialog:!1,pluginType:0,pluginId:"",loading:!1}},methods:{getList:function(){var t=this,e=this,n={search:this.search};this.loading=!0,Object(i.a)("/gateway-manage/plugin/list",n).then(function(e){"0000"==e.data.code?(e.data.result?t.list=e.data.result:t.list=[],t.loading=!1):t.$message.error(e.data.message)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},goEnvList:function(t){this.showdialog=!0,this.pluginId=t.pluginId,this.pluginType=t.pluginType},closeDialog:function(){this.showdialog=!1}},watch:{$route:{handler:function(t,e){},deep:!0}},mounted:function(){this.getList()}},l={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"api-body-content border-box"},[n("div",{staticClass:"common-nav"},[n("nav-bread",{attrs:{navPath:t.navPath}})],1),t._v(" "),n("div",{staticClass:"api-body-main common-body-main border-box"},[n("div",{staticClass:"api-main-content border-box"},[n("el-input",{staticClass:"w-320",attrs:{placeholder:"请输入插件名称","prefix-icon":"el-icon-search",clearable:""},on:{clear:function(e){return t.getList()}},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList()}},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}}),t._v(" "),n("div",{directives:[{name:"loadingh",rawName:"v-loadingh",value:t.loading,expression:"loading"}],staticClass:"list-content"},t._l(t.list,function(e,a){return n("div",{key:a,staticClass:"list-item"},[n("div",{staticClass:"item-top"},[n("span",{staticClass:"icon-content"},[0===e.pluginType?n("i",{staticClass:"iconfont iconahas"}):t._e(),t._v(" "),1===e.pluginType?n("i",{staticClass:"iconfont iconkaifangpingtai"}):t._e()]),t._v(" "),n("div",{staticClass:"item-info"},[n("h3",[t._v("插件名称")]),t._v(" "),n("p",[t._v(t._s(e.pluginName))])])]),t._v(" "),n("div",{staticClass:"item-bottom"},[n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.goEnvList(e)}}},[t._v("选择环境进入"),n("i",{staticClass:"iconfont iconjiantou-zuo"})])],1)])}),0)],1)]),t._v(" "),t.showdialog?n("selectEnv",{attrs:{pluginId:t.pluginId,pluginType:t.pluginType},on:{closeDialog:t.closeDialog}}):t._e()],1)},staticRenderFns:[]};var c=n("VU/8")(o,l,!1,function(t){n("jbD3")},"data-v-2e0e7926",null);e.default=c.exports},jbD3:function(t,e){}});
\ No newline at end of file
webpackJsonp([20],{K0rJ:function(t,i,a){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=a("319J"),e=a("P9l9"),s=a("PEkr"),o={name:"pluginManage",components:{navBread:n.a,selectEnv:s.a},data:function(){return{navPath:[{name:"插件管理",path:""}],search:"",list:[],showdialog:!1,pluginType:0,pluginId:"",loading:!1}},methods:{getList:function(){var t=this,i=this,a={search:this.search};this.loading=!0,Object(e.a)("/gateway-manage/plugin/list",a).then(function(i){"0000"==i.data.code?(i.data.result?t.list=i.data.result:t.list=[],t.loading=!1):t.$message.error(i.data.message)}).catch(function(t){i.$message.error({duration:1e3,message:t.message})})},goEnvList:function(t){this.showdialog=!0,this.pluginId=t.pluginId,this.pluginType=t.pluginType},closeDialog:function(){this.showdialog=!1}},watch:{$route:{handler:function(t,i){},deep:!0}},mounted:function(){this.getList()}},l={render:function(){var t=this,i=t.$createElement,a=t._self._c||i;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("el-input",{staticClass:"w-320",attrs:{placeholder:"请输入插件名称","prefix-icon":"el-icon-search",clearable:""},on:{clear:function(i){t.getList()}},nativeOn:{keyup:function(i){if(!("button"in i)&&t._k(i.keyCode,"enter",13,i.key,"Enter"))return null;t.getList()}},model:{value:t.search,callback:function(i){t.search=i},expression:"search"}}),t._v(" "),a("div",{directives:[{name:"loadingh",rawName:"v-loadingh",value:t.loading,expression:"loading"}],staticClass:"list-content"},t._l(t.list,function(i,n){return a("div",{key:n,staticClass:"list-item"},[a("div",{staticClass:"item-top"},[a("span",{staticClass:"icon-content"},[0===i.pluginType?a("i",{staticClass:"iconfont iconahas"}):t._e(),t._v(" "),1===i.pluginType?a("i",{staticClass:"iconfont iconkaifangpingtai"}):t._e()]),t._v(" "),a("div",{staticClass:"item-info"},[a("h3",[t._v("插件名称")]),t._v(" "),a("p",[t._v(t._s(i.pluginName))])])]),t._v(" "),a("div",{staticClass:"item-bottom"},[a("el-button",{attrs:{type:"text"},on:{click:function(a){t.goEnvList(i)}}},[t._v("选择环境进入"),a("i",{staticClass:"iconfont iconjiantou-zuo"})])],1)])}))],1)]),t._v(" "),t.showdialog?a("selectEnv",{attrs:{pluginId:t.pluginId,pluginType:t.pluginType},on:{closeDialog:t.closeDialog}}):t._e()],1)},staticRenderFns:[]};var c=a("VU/8")(o,l,!1,function(t){a("jbD3")},"data-v-2e0e7926",null);i.default=c.exports},jbD3:function(t,i){}});
\ No newline at end of file
webpackJsonp([3],{"5U0k":function(t,a){},Fyz7:function(t,a){},Nw81:function(t,a){},SNE5:function(t,a){},U0Nl:function(t,a){},UcDr:function(t,a){},XVVL:function(t,a){},"ZS1/":function(t,a){},dqzs:function(t,a){},lLkb:function(t,a){},meWf:function(t,a){},nium:function(t,a){},r4m9:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var s=e("319J"),i=e("mvHQ"),l=e.n(i),o={name:"base-info-show",props:{apiData:{type:[Object,Array],default:function(){return{}}}},data:function(){return{apiInfoData:{}}},watch:{apiData:function(t,a){this.apiInfoData=t}},mounted:function(){this.apiInfoData=this.apiData}},r={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"base-info-show border-box"},[e("el-form",{attrs:{"label-width":"120px",model:t.apiInfoData}},[e("el-form-item",{attrs:{label:"API名称:"}},[t._v("\n "+t._s(t.apiInfoData.interfaceName)+"\n ")]),t._v(" "),e("el-form-item",{attrs:{label:"API类型:"}},[t._v("\n "+t._s(1==t.apiInfoData.target?"公开":"私有")+"\n ")]),t._v(" "),e("el-form-item",{attrs:{label:"访问类型:"}},[t._v("\n "+t._s(t.apiInfoData.requestType)+"\n ")]),t._v(" "),e("el-form-item",{staticClass:"max-w-1000",attrs:{label:"描述:"}},[t._v("\n "+t._s(t.apiInfoData.interfaceDescribe)+"\n ")])],1)],1)},staticRenderFns:[]};var n=e("VU/8")(o,r,!1,function(t){e("dqzs")},"data-v-4f80eb22",null).exports,c={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,a){this.trData=t}},mounted:function(){this.trData=this.itemData}},p={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",[t._l(t.itemData,function(a,s,i){return[e("table",{key:i+s+121,staticClass:"el-table__body",staticStyle:{width:"100%","table-layout":"fixed"},attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[e("tbody",[e("tr",{staticClass:"el-table__row"},[e("td",{staticClass:"el-table_1_column_1",staticStyle:{width:"36px"},attrs:{rowspan:"1",colspan:"1"}},["object"==a.type||"array"==a.type?e("div",{staticClass:"cell"},[e("i",{staticClass:"el-icon-minus"})]):t._e()]),t._v(" "),e("td",{staticClass:"el-table_1_column_1",attrs:{rowspan:"1",colspan:"1"}},[e("div",{staticClass:"cell el-tooltip"},[e("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:s,placement:"top"}},[e("span",[t._v(t._s(s))])])],1)]),t._v(" "),e("td",{staticClass:"el-table_1_column_1",attrs:{rowspan:"1",colspan:"1"}},[e("div",{staticClass:"cell el-tooltip"},[t._v(t._s(a.frontOriginType))])]),t._v(" "),e("td",{staticClass:"el-table_1_column_2",attrs:{rowspan:"1",colspan:"1"}},[e("div",{staticClass:"cell el-tooltip"},[t._v(t._s(a.type))])]),t._v(" "),e("td",{staticClass:"el-table_1_column_3",attrs:{rowspan:"1",colspan:"1"}},[e("div",{staticClass:"cell el-tooltip"},[e("el-checkbox",{attrs:{disabled:"true"},model:{value:a.check,callback:function(e){t.$set(a,"check",e)},expression:"itemValue.check"}})],1)]),t._v(" "),e("td",{staticClass:"el-table_1_column_3",attrs:{rowspan:"1",colspan:"1"}},[e("div",{staticClass:"cell el-tooltip"},[e("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:a.example,placement:"top"}},[e("span",[t._v(t._s(a.example))])])],1)]),t._v(" "),e("td",{staticClass:"el-table_1_column_3",attrs:{rowspan:"1",colspan:"1"}},[e("div",{staticClass:"cell el-tooltip"},[e("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:a.description,placement:"top"}},[e("span",[t._v(t._s(a.description))])])],1)])])])]),t._v(" "),"array"==a.type?e("table-row",{key:i+"122"+s,staticClass:"el-table__row",staticStyle:{"padding-left":"10px"},attrs:{itemData:a.items.properties}}):t._e(),t._v(" "),"object"==a.type?e("table-row",{key:i+"122"+s,staticClass:"el-table__row",staticStyle:{"padding-left":"10px"},attrs:{itemData:a.properties}}):t._e()]})],2)},staticRenderFns:[]};var d={name:"frontend-info-show",components:{tableTr:e("VU/8")(c,p,!1,function(t){e("ZS1/")},"data-v-33562ba8",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:{}}},required:[]}}}},watch:{apiData:function(t,a){this.apiInfoData=t}},mounted:function(){this.apiInfoData=this.apiData}},u={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"frontend-info-show border-box"},[e("el-form",{attrs:{"label-width":"120px",model:t.apiInfoData}},[e("el-form-item",{attrs:{label:"协议:"}},[t._v("\n "+t._s(t.apiInfoData.protocol)+"\n ")]),t._v(" "),e("el-form-item",{attrs:{label:"请求路径:"}},[t._v("\n "+t._s(t.apiInfoData.interfaceUrl)+"\n ")]),t._v(" "),e("el-form-item",{attrs:{label:"请求方法:"}},[t._v("\n "+t._s(t.apiInfoData.requestType)+"\n ")]),t._v(" "),e("el-form-item",{attrs:{label:"参数配置:"}},[e("div",{staticClass:"el-table el-table--fit el-table--enable-row-hover el-table--enable-row-transition",staticStyle:{width:"100%","table-layout":"fixed"}},[e("div",{staticClass:"el-table__header-wrapper"},[e("table",{staticClass:"el-table__header",staticStyle:{width:"100%"},attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[e("thead",{staticClass:"has-gutter"},[e("tr",{},[e("th",{staticClass:"el-table_1_column_1 is-leaf",staticStyle:{width:"36px"},attrs:{colspan:"1",rowspan:"1"}},[e("div",{staticClass:"cell"})]),t._v(" "),e("th",{staticClass:"el-table_1_column_1 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[e("div",{staticClass:"cell"},[t._v("参数名")])]),t._v(" "),e("th",{staticClass:"el-table_1_column_1 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[e("div",{staticClass:"cell"},[t._v("参数位置")])]),t._v(" "),e("th",{staticClass:"el-table_1_column_2 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[e("div",{staticClass:"cell"},[t._v("参数类型")])]),t._v(" "),e("th",{staticClass:"el-table_1_column_3 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[e("div",{staticClass:"cell"},[t._v("必选")])]),t._v(" "),e("th",{staticClass:"el-table_1_column_4 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[e("div",{staticClass:"cell"},[t._v("示例")])]),t._v(" "),e("th",{staticClass:"el-table_1_column_5 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[e("div",{staticClass:"cell"},[t._v("描述")])])])])])]),t._v(" "),e("div",{staticClass:"el-table__body-wrapper is-scrolling-none"},[e("div",{staticClass:"table-content"},[e("table-tr",{attrs:{itemData:t.apiInfoData.frontParams.properties}})],1)])])])],1)],1)},staticRenderFns:[]};var f=e("VU/8")(d,u,!1,function(t){e("meWf")},"data-v-8935b132",null).exports,_={name:"back-table-row",props:{itemData:{type:[Object,Array],default:function(){return{}}}},data:function(){return{trData:{}}},watch:{itemData:function(t,a){this.trData=t}},mounted:function(){this.trData=this.itemData}},b={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",[t._l(t.itemData.properties,function(a,s,i){return[a.constFlag?t._e():e("table",{key:i+s+121,staticClass:"el-table__body",staticStyle:{width:"100%","table-layout":"fixed"},attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[e("tbody",[e("tr",{staticClass:"el-table__row"},[e("td",{staticClass:"el-table_1_column_1",staticStyle:{width:"36px"},attrs:{rowspan:"1",colspan:"1"}},["object"==a.type||"array"==a.type?e("div",{staticClass:"cell"},[e("i",{staticClass:"el-icon-minus"})]):t._e()]),t._v(" "),e("td",{staticClass:"el-table_1_column_1",attrs:{rowspan:"1",colspan:"1"}},[e("div",{staticClass:"cell el-tooltip"},[e("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:s,placement:"top"}},[e("span",[t._v(t._s(s))])])],1)]),t._v(" "),e("td",{staticClass:"el-table_1_column_2",attrs:{rowspan:"1",colspan:"1"}},[e("div",{staticClass:"cell el-tooltip"},[t._v(t._s(a.frontOriginType))])]),t._v(" "),e("td",{staticClass:"el-table_1_column_2",attrs:{rowspan:"1",colspan:"1"}},[e("div",{staticClass:"cell el-tooltip"},[t._v(t._s(a.type))])])])])]),t._v(" "),"array"==a.type&&Object.keys(a.items.properties).length?e("back-table-row",{key:i+"122"+s,staticClass:"el-table__row",staticStyle:{"padding-left":"10px"},attrs:{itemData:a.items}}):t._e(),t._v(" "),"object"==a.type&&Object.keys(a.properties).length?e("back-table-row",{key:i+"122"+s,staticClass:"el-table__row",staticStyle:{"padding-left":"10px"},attrs:{itemData:a}}):t._e()]})],2)},staticRenderFns:[]};var m=e("VU/8")(_,b,!1,function(t){e("lLkb")},"data-v-0eddcc70",null).exports,v={name:"back-table-row",props:{itemData:{type:[Object,Array],default:function(){return{}}},interfaceType:{type:[String,Number],default:function(){return"0"}}},data:function(){return{trData:{}}},watch:{itemData:function(t,a){this.trData=t}},mounted:function(){this.trData=this.itemData}},h={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",[t._l(t.itemData.properties,function(a,s,i){return[a.constFlag?t._e():e("table",{key:i+s+121,staticClass:"el-table__body",staticStyle:{width:"100%","table-layout":"fixed"},attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[e("tbody",[e("tr",{staticClass:"el-table__row"},[e("td",{staticClass:"el-table_1_column_1",staticStyle:{width:"36px"},attrs:{rowspan:"1",colspan:"1"}},["object"==a.type||"array"==a.type?e("div",{staticClass:"cell"},[e("i",{staticClass:"el-icon-minus"})]):t._e()]),t._v(" "),e("td",{staticClass:"el-table_1_column_1",attrs:{rowspan:"1",colspan:"1"}},[e("div",{staticClass:"cell el-tooltip"},[e("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:s,placement:"top"}},[e("span",[t._v(t._s(s))])])],1)]),t._v(" "),e("td",{staticClass:"el-table_1_column_2",attrs:{rowspan:"1",colspan:"1"}},[e("div",{staticClass:"cell el-tooltip"},[t._v(t._s(a.type))])]),t._v(" "),1==t.interfaceType?e("td",{staticClass:"el-table_1_column_3",attrs:{rowspan:"1",colspan:"1"}},[e("div",{staticClass:"cell el-tooltip"},[t._v(t._s(a.objectClass))])]):t._e(),t._v(" "),e("td",{staticClass:"el-table_1_column_4",attrs:{rowspan:"1",colspan:"1"}},[e("div",{staticClass:"cell el-tooltip"},[e("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:a.defaultVal,placement:"top"}},[e("span",[t._v(t._s(a.defaultVal))])])],1)])])])]),t._v(" "),"array"==a.type&&Object.keys(a.items.properties).length?e("back-table-row",{key:i+"122"+s,staticClass:"el-table__row child-row",attrs:{itemData:a.items}}):t._e(),t._v(" "),"object"==a.type&&Object.keys(a.properties).length?e("back-table-row",{key:i+"123"+s,staticClass:"el-table__row child-row",attrs:{itemData:a}}):t._e()]})],2)},staticRenderFns:[]};var y=e("VU/8")(v,h,!1,function(t){e("SNE5")},"data-v-33918d96",null).exports,g={name:"back-constant",props:{itemData:{type:Object,default:function(){return{}}},interfaceType:{type:[String,Number],default:function(){return"0"}}},data:function(){return{trData:{}}},watch:{itemData:function(t,a){this.trData=JSON.parse(l()(t))}},mounted:function(){this.trData=JSON.parse(l()(this.itemData))}},C={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",[e("div",{staticClass:"el-table el-table--fit el-table--enable-row-hover el-table--enable-row-transition",staticStyle:{width:"100%","table-layout":"fixed"}},[e("div",{staticClass:"el-table__header-wrapper"},[e("table",{staticClass:"el-table__header",staticStyle:{width:"100%","table-layout":"fixed"},attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[e("thead",{staticClass:"has-gutter"},[e("tr",{},[t._m(0),t._v(" "),"0"==t.interfaceType?e("th",{staticClass:"el-table_1_column_2 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[e("div",{staticClass:"cell"},[t._v("参数位置")])]):t._e(),t._v(" "),t._m(1),t._v(" "),t._m(2)])])])]),t._v(" "),e("div",{staticClass:"el-table__body-wrapper is-scrolling-none"},[e("div",{staticClass:"table-content"},[t._l(t.itemData.properties,function(a,s,i){return[a.constFlag?e("table",{key:i+s+121,staticClass:"el-table__body",staticStyle:{width:"100%","table-layout":"fixed"},attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[e("tbody",[e("tr",{staticClass:"el-table__row"},[e("td",{staticClass:"el-table_1_column_1",attrs:{rowspan:"1",colspan:"1"}},[e("div",{staticClass:"cell el-tooltip"},[t._v("\n "+t._s(a.currentKey)+"\n ")])]),t._v(" "),"0"==t.interfaceType?e("td",{staticClass:"el-table_1_column_2",attrs:{rowspan:"1",colspan:"1"}},[e("div",{staticClass:"cell el-tooltip"},[t._v("\n "+t._s(a.backendOriginType)+"\n ")])]):t._e(),t._v(" "),e("td",{staticClass:"el-table_1_column_2",attrs:{rowspan:"1",colspan:"1"}},[e("div",{staticClass:"cell el-tooltip"},[t._v("\n "+t._s(a.type)+"\n ")])]),t._v(" "),e("td",{staticClass:"el-table_1_column_3",attrs:{rowspan:"1",colspan:"1"}},[e("div",{staticClass:"cell el-tooltip"},[t._v("\n "+t._s(a.defaultVal)+"\n ")])])])])]):t._e()]})],2)])])])},staticRenderFns:[function(){var t=this.$createElement,a=this._self._c||t;return a("th",{staticClass:"el-table_1_column_1 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"},[this._v("参数名")])])},function(){var t=this.$createElement,a=this._self._c||t;return a("th",{staticClass:"el-table_1_column_2 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"},[this._v("参数类型")])])},function(){var t=this.$createElement,a=this._self._c||t;return a("th",{staticClass:"el-table_1_column_4 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"},[this._v("参数值")])])}]};var w={name:"backend-info-show",components:{backTableTr:m,backTableRight:y,backConstTable:e("VU/8")(g,C,!1,function(t){e("5U0k")},"data-v-50a6fac0",null).exports},props:{apiData:{type:[Object,Array],default:function(){return{}}}},data:function(){return{apiInfoData:{protocol:"http",interfaceUrl:"/",requestType:"post",endParams:{type:"object",properties:{name:{backendOriginType:"query",type:"object",isBackendField:0,defaultVal:"val",isRootKey:0,rootKey:"",objectClass:"",description:"描述",check:!0,required:[],properties:{nameId:{backendOriginType:"query",type:"object",isBackendField:0,defaultVal:"val",isRootKey:0,rootKey:"",objectClass:"",description:"描述",check:!0,properties:{age:{backendOriginType:"query",type:"string",isBackendField:0,defaultVal:"val",isRootKey:0,rootKey:"",objectClass:"",description:"描述",check:!0}}}}}},required:[]}}}},watch:{apiData:function(t,a){this.apiInfoData=t}},mounted:function(){this.apiInfoData=this.apiData}},D={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"backend-info-show border-box"},[e("el-form",{attrs:{"label-width":"120px",model:t.apiInfoData}},[e("el-form-item",{attrs:{label:"后端服务:"}},[t._v("\n "+t._s(0==t.apiInfoData.interfaceType?"http":"dubbo")+"\n ")]),t._v(" "),e("el-form-item",{attrs:{label:"环境:"}},[t._v("\n "+t._s(t.apiInfoData.protocol)+"\n ")]),t._v(" "),e("el-form-item",{attrs:{label:"API版本号:"}},[t._v("\n "+t._s(t.apiInfoData.version)+"\n ")]),t._v(" "),0==t.apiInfoData.interfaceType?e("el-form-item",{attrs:{label:"请求路径:"}},[t._v("\n "+t._s(t.apiInfoData.backendHttpPath)+"\n ")]):t._e(),t._v(" "),1==t.apiInfoData.interfaceType?e("el-form-item",{attrs:{label:"dubbo接口名称:"}},[t._v("\n "+t._s(t.apiInfoData.dubboInterface)+"\n ")]):t._e(),t._v(" "),1==t.apiInfoData.interfaceType?e("el-form-item",{attrs:{label:"dubbo请求方法:"}},[t._v("\n "+t._s(t.apiInfoData.dubboMethod)+"\n ")]):t._e(),t._v(" "),1==t.apiInfoData.interfaceType?e("el-form-item",{attrs:{label:"注册中心地址:"}},[t._v("\n "+t._s(t.apiInfoData.proxyName)+"\n ")]):t._e(),t._v(" "),1==t.apiInfoData.interfaceType?e("el-form-item",{attrs:{label:"请求版本号:"}},[t._v("\n "+t._s(t.apiInfoData.dubboVersion)+"\n ")]):t._e(),t._v(" "),e("el-form-item",{attrs:{label:"超时时长:"}},[t._v("\n "+t._s(t.apiInfoData.timeout)+"\n ")]),t._v(" "),e("el-form-item",{attrs:{label:"参数映射:"}},[e("div",{staticClass:"table-wrap-body font-0"},[e("div",{staticClass:"el-table el-table--fit el-table--enable-row-hover el-table--enable-row-transition inline-block vertical-top",staticStyle:{width:"30%","table-layout":"fixed"}},[e("div",{staticClass:"el-table__header-wrapper"},[e("table",{staticClass:"el-table__header",staticStyle:{width:"100%","table-layout":"fixed"},attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[e("thead",{staticClass:"has-gutter"},[e("tr",{},[e("th",{staticClass:"el-table_1_column_1 is-leaf",staticStyle:{width:"36px"},attrs:{colspan:"1",rowspan:"1"}},[e("div",{staticClass:"cell"})]),t._v(" "),e("th",{staticClass:"el-table_1_column_1 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[e("div",{staticClass:"cell"},[t._v("参数名")])]),t._v(" "),e("th",{staticClass:"el-table_1_column_2 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[e("div",{staticClass:"cell"},[t._v("参数位置")])]),t._v(" "),e("th",{staticClass:"el-table_1_column_3 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[e("div",{staticClass:"cell"},[t._v("参数类型")])])])])])]),t._v(" "),e("div",{staticClass:"el-table__body-wrapper is-scrolling-none"},[e("div",{staticClass:"table-content"},[e("back-table-tr",{attrs:{itemData:t.apiInfoData.endParams}})],1)])]),t._v(" "),e("div",{staticClass:"el-table el-table--fit el-table--enable-row-hover el-table--enable-row-transition inline-block vertical-top",staticStyle:{width:"70%","table-layout":"fixed"}},[e("div",{staticClass:"el-table__header-wrapper"},[e("table",{staticClass:"el-table__header",staticStyle:{width:"100%","table-layout":"fixed"},attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[e("thead",{staticClass:"has-gutter"},[e("tr",{},[e("th",{staticClass:"el-table_1_column_1 is-leaf",staticStyle:{width:"36px"},attrs:{colspan:"1",rowspan:"1"}},[e("div",{staticClass:"cell"})]),t._v(" "),e("th",{staticClass:"el-table_1_column_1 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[e("div",{staticClass:"cell"},[t._v("参数名映射")])]),t._v(" "),e("th",{staticClass:"el-table_1_column_2 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[e("div",{staticClass:"cell"},[t._v("参数类型映射")])]),t._v(" "),1==t.apiInfoData.interfaceType?e("th",{staticClass:"el-table_1_column_3 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[e("div",{staticClass:"cell"},[t._v("包名")])]):t._e(),t._v(" "),e("th",{staticClass:"el-table_1_column_4 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[e("div",{staticClass:"cell"},[t._v("参数值")])])])])])]),t._v(" "),e("div",{staticClass:"el-table__body-wrapper is-scrolling-none"},[e("div",{staticClass:"table-content"},[e("back-table-right",{attrs:{interfaceType:t.apiInfoData.interfaceType,itemData:t.apiInfoData.endParams}})],1)])])])]),t._v(" "),e("el-form-item",{attrs:{label:"常量参数:"}},[e("back-const-table",{attrs:{itemData:t.apiInfoData.endParams,interfaceType:t.apiInfoData.interfaceType}})],1)],1)],1)},staticRenderFns:[]};var k=e("VU/8")(w,D,!1,function(t){e("XVVL")},"data-v-92a3ed64",null).exports,I={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,a){this.trData=t}},mounted:function(){this.trData=this.itemData}},S={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",[t._l(t.itemData.properties,function(a,s,i){return[e("table",{key:i+s+121,staticClass:"el-table__body",staticStyle:{width:"100%","table-layout":"fixed"},attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[e("tbody",[e("tr",{staticClass:"el-table__row"},[e("td",{staticClass:"el-table_1_column_1",staticStyle:{width:"36px"},attrs:{rowspan:"1",colspan:"1"}},["object"==a.type||"array"==a.type?e("div",{staticClass:"cell"},[e("i",{staticClass:"el-icon-minus"})]):t._e()]),t._v(" "),e("td",{staticClass:"el-table_1_column_1",attrs:{rowspan:"1",colspan:"1"}},[e("div",{staticClass:"cell el-tooltip"},[t._v(t._s(s))])]),t._v(" "),e("td",{staticClass:"el-table_1_column_2",attrs:{rowspan:"1",colspan:"1"}},[e("div",{staticClass:"cell el-tooltip"},[t._v(t._s(a.type))])]),t._v(" "),e("td",{staticClass:"el-table_1_column_3",attrs:{rowspan:"1",colspan:"1"}},[e("div",{staticClass:"cell el-tooltip"},[t._v(t._s(a.example))])])])])]),t._v(" "),"array"==a.type&&Object.keys(a.items.properties).length?e("table-row",{key:i+"122"+s,staticClass:"el-table__row",staticStyle:{"padding-left":"10px"},attrs:{itemData:a.items}}):t._e(),t._v(" "),"object"==a.type&&Object.keys(a.properties).length?e("table-row",{key:i+"122"+s,staticClass:"el-table__row",staticStyle:{"padding-left":"10px"},attrs:{itemData:a}}):t._e()]})],2)},staticRenderFns:[]};var x={name:"back-info-show",components:{backInfoTable:e("VU/8")(I,S,!1,function(t){e("Fyz7")},"data-v-debb8a4c",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,a){this.apiInfoData=t}},mounted:function(){this.apiInfoData=this.apiData}},T={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"back-info-show border-box"},[e("el-form",{attrs:{"label-width":"120px",model:t.apiInfoData}},[e("el-form-item",{attrs:{label:"返回参数:"}},[e("div",{staticClass:"el-table el-table--fit el-table--enable-row-hover el-table--enable-row-transition",staticStyle:{width:"100%","table-layout":"fixed"}},[e("div",{staticClass:"el-table__header-wrapper"},[e("table",{staticClass:"el-table__header",staticStyle:{width:"100%"},attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[e("thead",{staticClass:"has-gutter"},[e("tr",{},[e("th",{staticClass:"el-table_1_column_1 is-leaf",staticStyle:{width:"36px"},attrs:{colspan:"1",rowspan:"1"}},[e("div",{staticClass:"cell"})]),t._v(" "),e("th",{staticClass:"el-table_1_column_1 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[e("div",{staticClass:"cell"},[t._v("参数名")])]),t._v(" "),e("th",{staticClass:"el-table_1_column_2 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[e("div",{staticClass:"cell"},[t._v("参数类型")])]),t._v(" "),e("th",{staticClass:"el-table_1_column_4 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[e("div",{staticClass:"cell"},[t._v("示例")])])])])])]),t._v(" "),e("div",{staticClass:"el-table__body-wrapper is-scrolling-none"},[e("div",{staticClass:"table-content"},[e("back-info-table",{attrs:{itemData:t.apiInfoData.resultParams}})],1)])])]),t._v(" "),e("el-form-item",{attrs:{label:"错误码:"}},[e("el-table",{staticStyle:{width:"100%"},attrs:{data:t.apiInfoData.errCode}},[e("el-table-column",{attrs:{prop:"orig_error_code",label:"原始错误码"}}),t._v(" "),e("el-table-column",{attrs:{prop:"error_code",label:"映射错误码"}}),t._v(" "),e("el-table-column",{attrs:{prop:"error_info",label:"错误信息","show-overflow-tooltip":""}})],1)],1),t._v(" "),e("el-form-item",{attrs:{label:"成功返回示例:"}},[e("div",{staticClass:"common-back-pre"},[e("pre",[t._v(" "+t._s(t.apiInfoData.sucReturn)+"\n ")])])]),t._v(" "),e("el-form-item",{attrs:{label:"失败返回示例:"}},[e("div",{staticClass:"common-back-pre"},[e("pre",[t._v(" "+t._s(t.apiInfoData.errReturn)+"\n ")])])])],1)],1)},staticRenderFns:[]};var j=e("VU/8")(x,T,!1,function(t){e("nium")},"data-v-3c27a45c",null).exports,V=e("znuk"),$=e("P9l9"),q=e("LlAa"),P=e("TUB1"),F={name:"go-history",props:{historyShow:{type:Boolean,default:!1},apiData:{type:[Object,Array],default:function(){return{}}}},data:function(){return{customDialog:!1,selectVersion:"",tableData:[],pageSize:8,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,a={interfaceVersionId:t.apiData.interfaceVersionId,target:t.selectVersion};Object($.a)("/gateway-manage/reset-api",a).then(function(a){var e=a.data;if("0000"==e.code)return P.a.showmsg("回退成功","success"),void t.setData();q.a.errorMsg(e)}).catch(function(a){t.$message.error({duration:1e3,message:a.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,a){window.open("#/apiListManageShow?editFlag=0&interfaceId="+a.interfaceId+"&interfaceName="+a.interfaceName+"&interfaceVersionId="+a.interfaceVersionId+"&publishRecordId="+a.publishRecordId+"&projectId="+a.projectId+"&projectName="+this.$route.query.projectName+"&interfaceGroupId="+a.interfaceGroupId+"&interfaceGroupName="+this.$route.query.interfaceGroupName)},getData:function(){var t=this,a={pageNum:t.currentPage,pageSize:t.pageSize,sceneCode:t.apiData.sceneCode,interfaceId:t.$route.query.interfaceId};Object($.a)("/gateway-manage/page-api-publish-record",a).then(function(a){var e=a.data;if("0000"==e.code)return t.tableData=e.result.result||[],void(t.totalCount=e.result.totalCount);q.a.errorMsg(e)}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})}},watch:{$route:{handler:function(t,a){},deep:!0},historyShow:function(t,a){this.customDialog=t,this.getData()}},mounted:function(){this.customDialog=this.historyShow,this.getData()}},R={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{directives:[{name:"show",rawName:"v-show",value:t.customDialog,expression:"customDialog"}]},[e("el-dialog",{staticClass:"edit-dialog",attrs:{title:"选择回退版本",visible:t.customDialog,width:"600px","before-close":t.handleClose},on:{"update:visible":function(a){t.customDialog=a}}},[e("div",{staticClass:"table-wrap"},[e("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData}},[e("el-table-column",{attrs:{label:"","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(a){return[e("el-radio",{attrs:{label:a.row.publishRecordId},model:{value:t.selectVersion,callback:function(a){t.selectVersion=a},expression:"selectVersion"}},[t._v(t._s(a.row.version))])]}}])}),t._v(" "),e("el-table-column",{attrs:{prop:"publishRecordId",label:"发布版本","show-overflow-tooltip":""}}),t._v(" "),e("el-table-column",{attrs:{label:"发布备注","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(a){return[t._v("\n "+t._s(a.row.remark)+"\n ")]}}])}),t._v(" "),e("el-table-column",{attrs:{label:"发布时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(a){return[e("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToYmd")(a.row.createTime)))]),t._v(" "),e("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(a.row.createTime)))])]}}])}),t._v(" "),e("el-table-column",{attrs:{label:"操作","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(a){return[e("el-button",{attrs:{type:"text"},on:{click:function(e){t.handleShow(a.$index,a.row)}}},[t._v("查看")])]}}])})],1),t._v(" "),t.totalCount?e("div",{staticClass:"pagination text-right m-t-14"},[e("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(" "),e("div",{staticClass:"dialog-footer",staticStyle:{"padding-bottom":"10px"},attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:t.customCancel}},[t._v("取 消")]),t._v(" "),e("el-button",{attrs:{type:"primary"},on:{click:function(a){t.customConfirm("syncForm")}}},[t._v("确 定")])],1)])],1)},staticRenderFns:[]};var N=e("VU/8")(F,R,!1,function(t){e("U0Nl")},"data-v-37c1326e",null).exports,O={name:"api-version-show",components:{baseInfoShow:n,frontendInfoShow:f,backendInfoShow:k,backInfoShow:j,publishSet:V.a,goHistory:N},data:function(){return{apiData:{interfaceId:"",interfaceName:"",interfaceGroupId:"",interfaceUrl:"",interfaceDescribe:"",projectId:"",optType:"",sucReturn:"",errReturn:"",errCode:[],frontParams:{},endParams:{},target:"",requestType:"POST",protocol:"http",version:"",interfaceType:"HTTP",dubboMethod:"",dubboInterface:"",httpPath:"",proxyCode:"",resultParams:"",backendRequestType:"",timeout:43087112},activeInfo:0,editRow:{},publishShow:!1,historyShow:!1}},methods:{handlePublish:function(){this.publishShow=!0,this.editRow=JSON.parse(l()(this.apiData))},hidePublishDialog:function(t){this.publishShow=!1,this.editRow={},t&&(this.apiData.status=2)},handleGoHistory:function(){this.historyShow=!0},hideHistoryDialog:function(){this.historyShow=!1,this.getData()},handleDel:function(){var t=this;t.$confirm("确认删除此版本吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){t.postDelData()}).catch(function(){})},postDelData:function(){var t=this,a={interfaceVersionId:t.apiData.interfaceVersionId};Object($.b)("/gateway-manage/delete-api-version",a).then(function(a){var e=a.data;if("0000"==e.code)return P.a.showmsg("删除成功","success"),void t.$router.push("/apiListManage?interfaceId="+t.$route.query.interfaceId+"&interfaceName="+t.$route.query.interfaceName);q.a.errorMsg(e)}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})},handleGoBack:function(){var t=this;t.$confirm("确认回滚当前版本吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){t.postGoBack()}).catch(function(){})},postGoBack:function(){var t=this,a={interfaceVersionId:t.apiData.interfaceVersionId};Object($.a)("/gateway-manage/rollback-api",a).then(function(a){var e=a.data;if("0000"==e.code)return P.a.showmsg("回滚成功","success"),void t.getData();q.a.errorMsg(e)}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})},goAuthor:function(t,a){this.activeInfo=a,this.$el.querySelector(t).scrollIntoView()},getData:function(){var t=this,a={interfaceVersionId:t.$route.query.interfaceVersionId,interfaceId:t.$route.query.interfaceId,publishRecordId:t.$route.query.publishRecordId||""};Object($.a)("/gateway-manage/get-api",a).then(function(a){var e=a.data;if("0000"==e.code)return e.result.frontParams=JSON.parse(e.result.frontParams),e.result.endParams=JSON.parse(e.result.endParams),e.result.errCode=JSON.parse(e.result.errCode),e.result.resultParams=JSON.parse(e.result.resultParams),void(t.apiData=e.result||{});q.a.errorMsg(e)}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})},init:function(){document.getElementsByClassName("api-body-content")[0].addEventListener("scroll",this.scroll)},scroll:function(){var t=this,a=document.querySelectorAll(".api-body-content")[0].scrollTop;document.querySelectorAll(".info-wrap").forEach(function(e,s){a>=e.offsetTop&&(t.activeInfo=s)})}},mounted:function(){var t=this;t.getData(),t.$nextTick(function(){t.init()})},destroyed:function(){document.getElementsByClassName("api-body-content")[0].removeEventListener("scroll",this.scroll)}},K={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"api-version-content border-box"},[e("div",{staticClass:"api-version-body"},[1==t.$route.query.editFlag?e("div",{staticClass:"operate-btns"},[e("el-button",{attrs:{disabled:2==t.apiData.status&&1!=t.apiData.updateAfterPublish||4==t.apiData.status,type:"primary",plain:""},on:{click:t.handlePublish}},[t._v("发布")]),t._v(" "),e("el-button",{attrs:{disabled:4!=t.apiData.status,type:"primary",plain:""},on:{click:t.handleDel}},[t._v("删除")]),t._v(" "),e("el-button",{attrs:{disabled:4==t.apiData.status,type:"primary",plain:""},on:{click:t.handleGoHistory}},[t._v("回退")]),t._v(" "),e("el-button",{attrs:{disabled:2==t.apiData.status&&1!=t.apiData.updateAfterPublish||4==t.apiData.status,type:"primary",plain:""},on:{click:t.handleGoBack}},[t._v("回滚")])],1):t._e(),t._v(" "),e("div",{staticClass:"anchor-wrap"},[e("div",{staticClass:"el-tabs el-tabs--right"},[e("div",{staticClass:"el-tabs__header is-right"},[e("div",{staticClass:"el-tabs__nav-wrap is-right"},[e("div",{staticClass:"el-tabs__nav-scroll"},[e("div",{staticClass:"el-tabs__nav is-right",staticStyle:{transform:"translateY(0px)"},attrs:{role:"tablist"}},[e("div",{staticClass:"el-tabs__active-bar is-right",style:{transform:"translateY("+24*t.activeInfo+"px)",height:"24px"}}),t._v(" "),e("div",{class:["el-tabs__item h-24 is-right",0==t.activeInfo?"is-active":""],attrs:{id:"tab-0"},on:{click:function(a){t.goAuthor("#base",0)}}},[t._v("基础配置")]),t._v(" "),e("div",{class:["el-tabs__item h-24 is-right",1==t.activeInfo?"is-active":""],attrs:{id:"tab-1"},on:{click:function(a){t.goAuthor("#frontend",1)}}},[t._v("前端配置")]),t._v(" "),e("div",{class:["el-tabs__item h-24 is-right",2==t.activeInfo?"is-active":""],attrs:{id:"tab-2"},on:{click:function(a){t.goAuthor("#backend",2)}}},[t._v("后端配置")]),t._v(" "),e("div",{class:["el-tabs__item h-24 is-right",3==t.activeInfo?"is-active":""],attrs:{id:"tab-3"},on:{click:function(a){t.goAuthor("#result",3)}}},[t._v("返回结果")])])])])])])]),t._v(" "),e("div",{staticClass:"base-info-wrap info-wrap",attrs:{id:"base"}},[e("div",{staticClass:"commont-info-title font-14 color-303133"},[t._v("基础信息")]),t._v(" "),e("base-info-show",{attrs:{apiData:t.apiData}})],1),t._v(" "),e("div",{staticClass:"frontend-set-wrap info-wrap",attrs:{id:"frontend"}},[e("div",{staticClass:"commont-info-title font-14 color-303133 m-t-47"},[t._v("前端配置")]),t._v(" "),e("frontend-info-show",{attrs:{apiData:t.apiData}})],1),t._v(" "),e("div",{staticClass:"backend-set-wrap info-wrap",attrs:{id:"backend"}},[e("div",{staticClass:"commont-info-title font-14 color-303133 m-t-47"},[t._v("后端配置")]),t._v(" "),e("backend-info-show",{attrs:{apiData:t.apiData}})],1),t._v(" "),e("div",{staticClass:"back-result-wrap info-wrap",attrs:{id:"result"}},[e("div",{staticClass:"commont-info-title font-14 color-303133 m-t-47"},[t._v("返回结果")]),t._v(" "),e("back-info-show",{attrs:{apiData:t.apiData}})],1)]),t._v(" "),e("go-history",{attrs:{apiData:t.apiData,historyShow:t.historyShow},on:{hideHistoryDialog:t.hideHistoryDialog}}),t._v(" "),e("publish-set",{attrs:{editRow:t.editRow,publishShow:t.publishShow},on:{hidePublishDialog:t.hidePublishDialog}})],1)},staticRenderFns:[]};var B=e("VU/8")(O,K,!1,function(t){e("UcDr")},"data-v-cfdba452",null).exports,E={name:"apiListManageShow",components:{navBread:s.a,apiVersionShow:B},data:function(){return{navPath:[{name:"API管理",path:"/apiProgram"},{name:this.$route.query.projectName?this.$route.query.projectName+"项目列表":"",path:"/apiProgramGroup"},{name:this.$route.query.interfaceGroupName?this.$route.query.interfaceGroupName+"分组列表":"",path:"/groupApiList"},{name:this.$route.query.interfaceName?""+this.$route.query.interfaceName:"",path:"/apiListManage"},{name:"查看",path:""}]}},methods:{getData:function(){var t=this,a={project:t.repProjectName,router:t.pathName,requestProject:t.repProjectName};Object($.a)("/haoban-manage-web/menu-detail",a).then(function(a){var e=a.data;if(1==e.errorCode)return e.result?void 0:void t.$message.error({duration:1e3,message:"暂无数据"});t.$message.error({duration:1e3,message:e.message})}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})}},watch:{$route:{handler:function(t,a){},deep:!0}},mounted:function(){this.$emit("showTab",22)}},U={render:function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"api-body-content border-box"},[a("div",{staticClass:"common-nav"},[a("nav-bread",{attrs:{navPath:this.navPath}})],1),this._v(" "),a("div",{staticClass:"api-body-main common-body-main border-box"},[a("div",{staticClass:"api-main-content border-box"},[a("api-version-show")],1)])])},staticRenderFns:[]};var A=e("VU/8")(E,U,!1,function(t){e("Nw81")},"data-v-04db5cfc",null);a.default=A.exports},ripu:function(t,a){},znuk:function(t,a,e){"use strict";var s=e("mvHQ"),i=e.n(s),l=e("Kkt8"),o=e("P9l9"),r=e("TUB1"),n=e("LlAa"),c={name:"publish-set",components:{limitTextarea:l.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 a=this;a.$refs[t].validate(function(t){if(!t)return!1;a.postEditData()})},postEditData:function(){var t=this,a={interfaceVersionId:t.formData.interfaceVersionId,defaultFlag:t.formData.defaultFlag?"1":"0",remark:t.formData.remark};Object(o.a)("/gateway-manage/publish-api",a).then(function(a){var e=a.data;if("0000"==e.code)return r.a.showmsg("发布成功","success"),void t.setData();n.a.errorMsg(e)}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})},setData:function(t){this.$emit("hidePublishDialog",!0)}},watch:{publishShow:function(t,a){this.customDialog=t},editRow:function(t,a){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}},p={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{directives:[{name:"show",rawName:"v-show",value:t.customDialog,expression:"customDialog"}]},[e("el-dialog",{staticClass:"edit-dialog",attrs:{title:"发布",visible:t.customDialog,width:"600px","before-close":t.handleClose},on:{"update:visible":function(a){t.customDialog=a}}},[e("div",{staticClass:"edit-dialog-body"},[e("el-form",{ref:"publishForm",attrs:{model:t.formData,"label-width":"160px",rules:t.rules}},[e("el-form-item",{attrs:{label:"API名称:"}},[t._v("\n "+t._s(t.$route.query.interfaceName)+"\n ")]),t._v(" "),e("el-form-item",{attrs:{label:"发布环境:"}},[t._v("\n "+t._s(t.formData.sceneName)+"\n ")]),t._v(" "),e("el-form-item",{attrs:{label:"设置为默认版本:"}},[e("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:t.formData.defaultFlag,callback:function(a){t.$set(t.formData,"defaultFlag",a)},expression:"formData.defaultFlag"}})],1),t._v(" "),e("el-form-item",{attrs:{label:"备注:"}},[e("limit-textarea",{attrs:{inputWidth:370,inputValue:t.formData.remark,holder:"请输入备注内容",getByType:"word",maxLength:100},on:{"update:inputValue":function(a){t.$set(t.formData,"remark",a)}}})],1)],1)],1),t._v(" "),e("div",{staticClass:"dialog-footer",staticStyle:{"padding-bottom":"10px"},attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:t.customCancel}},[t._v("取 消")]),t._v(" "),e("el-button",{attrs:{type:"primary"},on:{click:function(a){t.customConfirm("publishForm")}}},[t._v("发 布")])],1)])],1)},staticRenderFns:[]};var d=e("VU/8")(c,p,!1,function(t){e("ripu")},"data-v-68ac51f7",null);a.a=d.exports}});
\ No newline at end of file
webpackJsonp([3],{"5U0k":function(t,e){},Fyz7:function(t,e){},Nw81:function(t,e){},SNE5:function(t,e){},U0Nl:function(t,e){},UcDr:function(t,e){},XVVL:function(t,e){},"ZS1/":function(t,e){},dqzs:function(t,e){},lLkb:function(t,e){},meWf:function(t,e){},nium:function(t,e){},r4m9:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("319J"),i=a("mvHQ"),l=a.n(i),o={name:"base-info-show",props:{apiData:{type:[Object,Array],default:function(){return{}}}},data:function(){return{apiInfoData:{}}},watch:{apiData:function(t,e){this.apiInfoData=t}},mounted:function(){this.apiInfoData=this.apiData}},r={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":"120px",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(1==t.apiInfoData.target?"公开":"私有")+"\n ")]),t._v(" "),a("el-form-item",{attrs:{label:"访问类型:"}},[t._v("\n "+t._s(t.apiInfoData.requestType)+"\n ")]),t._v(" "),a("el-form-item",{staticClass:"max-w-1000",attrs:{label:"描述:"}},[t._v("\n "+t._s(t.apiInfoData.interfaceDescribe)+"\n ")])],1)],1)},staticRenderFns:[]};var n=a("VU/8")(o,r,!1,function(t){a("dqzs")},"data-v-4f80eb22",null).exports,c={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}},p={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 el-tooltip"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:s,placement:"top"}},[a("span",[t._v(t._s(s))])])],1)]),t._v(" "),a("td",{staticClass:"el-table_1_column_1",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell el-tooltip"},[t._v(t._s(e.frontOriginType))])]),t._v(" "),a("td",{staticClass:"el-table_1_column_2",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell el-tooltip"},[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 el-tooltip"},[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 el-tooltip"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.example,placement:"top"}},[a("span",[t._v(t._s(e.example))])])],1)]),t._v(" "),a("td",{staticClass:"el-table_1_column_3",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell el-tooltip"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.description,placement:"top"}},[a("span",[t._v(t._s(e.description))])])],1)])])])]),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 d={name:"frontend-info-show",components:{tableTr:a("VU/8")(c,p,!1,function(t){a("ZS1/")},"data-v-33562ba8",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:{}}},required:[]}}}},watch:{apiData:function(t,e){this.apiInfoData=t}},mounted:function(){this.apiInfoData=this.apiData}},u={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":"120px",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_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 f=a("VU/8")(d,u,!1,function(t){a("meWf")},"data-v-8935b132",null).exports,_={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.properties,function(e,s,i){return[e.constFlag?t._e():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 el-tooltip"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:s,placement:"top"}},[a("span",[t._v(t._s(s))])])],1)]),t._v(" "),a("td",{staticClass:"el-table_1_column_2",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell el-tooltip"},[t._v(t._s(e.frontOriginType))])]),t._v(" "),a("td",{staticClass:"el-table_1_column_2",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell el-tooltip"},[t._v(t._s(e.type))])])])])]),t._v(" "),"array"==e.type&&Object.keys(e.items.properties).length?a("back-table-row",{key:i+"122"+s,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("back-table-row",{key:i+"122"+s,staticClass:"el-table__row",staticStyle:{"padding-left":"10px"},attrs:{itemData:e}}):t._e()]})],2)},staticRenderFns:[]};var m=a("VU/8")(_,b,!1,function(t){a("lLkb")},"data-v-0eddcc70",null).exports,v={name:"back-table-row",props:{itemData:{type:[Object,Array],default:function(){return{}}},interfaceType:{type:[String,Number],default:function(){return"0"}}},data:function(){return{trData:{}}},watch:{itemData:function(t,e){this.trData=t}},mounted:function(){this.trData=this.itemData}},h={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t._l(t.itemData.properties,function(e,s,i){return[e.constFlag?t._e():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 el-tooltip"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:s,placement:"top"}},[a("span",[t._v(t._s(s))])])],1)]),t._v(" "),a("td",{staticClass:"el-table_1_column_2",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell el-tooltip"},[t._v(t._s(e.type))])]),t._v(" "),1==t.interfaceType?a("td",{staticClass:"el-table_1_column_3",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell el-tooltip"},[t._v(t._s(e.objectClass))])]):t._e(),t._v(" "),a("td",{staticClass:"el-table_1_column_4",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell el-tooltip"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.defaultVal,placement:"top"}},[a("span",[t._v(t._s(e.defaultVal))])])],1)])])])]),t._v(" "),"array"==e.type&&Object.keys(e.items.properties).length?a("back-table-row",{key:i+"122"+s,staticClass:"el-table__row child-row",attrs:{itemData:e.items}}):t._e(),t._v(" "),"object"==e.type&&Object.keys(e.properties).length?a("back-table-row",{key:i+"123"+s,staticClass:"el-table__row child-row",attrs:{itemData:e}}):t._e()]})],2)},staticRenderFns:[]};var y=a("VU/8")(v,h,!1,function(t){a("SNE5")},"data-v-33918d96",null).exports,g={name:"back-constant",props:{itemData:{type:Object,default:function(){return{}}},interfaceType:{type:[String,Number],default:function(){return"0"}}},data:function(){return{trData:{}}},watch:{itemData:function(t,e){this.trData=JSON.parse(l()(t))}},mounted:function(){this.trData=JSON.parse(l()(this.itemData))}},C={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"}},[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",{},[t._m(0),t._v(" "),"0"==t.interfaceType?a("th",{staticClass:"el-table_1_column_2 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"},[t._v("参数位置")])]):t._e(),t._v(" "),t._m(1),t._v(" "),t._m(2)])])])]),t._v(" "),a("div",{staticClass:"el-table__body-wrapper is-scrolling-none"},[a("div",{staticClass:"table-content"},[t._l(t.itemData.properties,function(e,s,i){return[e.constFlag?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",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell el-tooltip"},[t._v("\n "+t._s(e.currentKey)+"\n ")])]),t._v(" "),"0"==t.interfaceType?a("td",{staticClass:"el-table_1_column_2",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell el-tooltip"},[t._v("\n "+t._s(e.backendOriginType)+"\n ")])]):t._e(),t._v(" "),a("td",{staticClass:"el-table_1_column_2",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell el-tooltip"},[t._v("\n "+t._s(e.type)+"\n ")])]),t._v(" "),a("td",{staticClass:"el-table_1_column_3",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell el-tooltip"},[t._v("\n "+t._s(e.defaultVal)+"\n ")])])])])]):t._e()]})],2)])])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("th",{staticClass:"el-table_1_column_1 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[e("div",{staticClass:"cell"},[this._v("参数名")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("th",{staticClass:"el-table_1_column_2 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[e("div",{staticClass:"cell"},[this._v("参数类型")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("th",{staticClass:"el-table_1_column_4 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[e("div",{staticClass:"cell"},[this._v("参数值")])])}]};var w={name:"backend-info-show",components:{backTableTr:m,backTableRight:y,backConstTable:a("VU/8")(g,C,!1,function(t){a("5U0k")},"data-v-50a6fac0",null).exports},props:{apiData:{type:[Object,Array],default:function(){return{}}}},data:function(){return{apiInfoData:{protocol:"http",interfaceUrl:"/",requestType:"post",endParams:{type:"object",properties:{name:{backendOriginType:"query",type:"object",isBackendField:0,defaultVal:"val",isRootKey:0,rootKey:"",objectClass:"",description:"描述",check:!0,required:[],properties:{nameId:{backendOriginType:"query",type:"object",isBackendField:0,defaultVal:"val",isRootKey:0,rootKey:"",objectClass:"",description:"描述",check:!0,properties:{age:{backendOriginType:"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:"backend-info-show border-box"},[a("el-form",{attrs:{"label-width":"120px",model:t.apiInfoData}},[a("el-form-item",{attrs:{label:"后端服务:"}},[t._v("\n "+t._s(0==t.apiInfoData.interfaceType?"http":"dubbo")+"\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.version)+"\n ")]),t._v(" "),0==t.apiInfoData.interfaceType?a("el-form-item",{attrs:{label:"请求路径:"}},[t._v("\n "+t._s(t.apiInfoData.backendHttpPath)+"\n ")]):t._e(),t._v(" "),1==t.apiInfoData.interfaceType?a("el-form-item",{attrs:{label:"dubbo接口名称:"}},[t._v("\n "+t._s(t.apiInfoData.dubboInterface)+"\n ")]):t._e(),t._v(" "),1==t.apiInfoData.interfaceType?a("el-form-item",{attrs:{label:"dubbo请求方法:"}},[t._v("\n "+t._s(t.apiInfoData.dubboMethod)+"\n ")]):t._e(),t._v(" "),1==t.apiInfoData.interfaceType?a("el-form-item",{attrs:{label:"注册中心地址:"}},[t._v("\n "+t._s(t.apiInfoData.proxyName)+"\n ")]):t._e(),t._v(" "),1==t.apiInfoData.interfaceType?a("el-form-item",{attrs:{label:"请求版本号:"}},[t._v("\n "+t._s(t.apiInfoData.dubboVersion)+"\n ")]):t._e(),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:"30%","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",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}})],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:"70%","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",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(" "),1==t.apiInfoData.interfaceType?a("th",{staticClass:"el-table_1_column_3 is-leaf",attrs:{colspan:"1",rowspan:"1"}},[a("div",{staticClass:"cell"},[t._v("包名")])]):t._e(),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:{interfaceType:t.apiInfoData.interfaceType,itemData:t.apiInfoData.endParams}})],1)])])])]),t._v(" "),a("el-form-item",{attrs:{label:"常量参数:"}},[a("back-const-table",{attrs:{itemData:t.apiInfoData.endParams,interfaceType:t.apiInfoData.interfaceType}})],1)],1)],1)},staticRenderFns:[]};var k=a("VU/8")(w,D,!1,function(t){a("XVVL")},"data-v-92a3ed64",null).exports,I={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}},S={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t._l(t.itemData.properties,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 el-tooltip"},[t._v(t._s(s))])]),t._v(" "),a("td",{staticClass:"el-table_1_column_2",attrs:{rowspan:"1",colspan:"1"}},[a("div",{staticClass:"cell el-tooltip"},[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 el-tooltip"},[t._v(t._s(e.example))])])])])]),t._v(" "),"array"==e.type&&Object.keys(e.items.properties).length?a("table-row",{key:i+"122"+s,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("table-row",{key:i+"122"+s,staticClass:"el-table__row",staticStyle:{"padding-left":"10px"},attrs:{itemData:e}}):t._e()]})],2)},staticRenderFns:[]};var x={name:"back-info-show",components:{backInfoTable:a("VU/8")(I,S,!1,function(t){a("Fyz7")},"data-v-debb8a4c",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}},T={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":"120px",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}})],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:"orig_error_code",label:"原始错误码"}}),t._v(" "),a("el-table-column",{attrs:{prop:"error_code",label:"映射错误码"}}),t._v(" "),a("el-table-column",{attrs:{prop:"error_info",label:"错误信息","show-overflow-tooltip":""}})],1)],1),t._v(" "),a("el-form-item",{attrs:{label:"成功返回示例:"}},[a("div",{staticClass:"common-back-pre"},[a("pre",[t._v(" "+t._s(t.apiInfoData.sucReturn)+"\n ")])])]),t._v(" "),a("el-form-item",{attrs:{label:"失败返回示例:"}},[a("div",{staticClass:"common-back-pre"},[a("pre",[t._v(" "+t._s(t.apiInfoData.errReturn)+"\n ")])])])],1)],1)},staticRenderFns:[]};var j=a("VU/8")(x,T,!1,function(t){a("nium")},"data-v-3c27a45c",null).exports,V=a("znuk"),$=a("P9l9"),q=a("LlAa"),P=a("TUB1"),F={name:"go-history",props:{historyShow:{type:Boolean,default:!1},apiData:{type:[Object,Array],default:function(){return{}}}},data:function(){return{customDialog:!1,selectVersion:"",tableData:[],pageSize:8,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($.a)("/gateway-manage/reset-api",e).then(function(e){var a=e.data;if("0000"==a.code)return P.a.showmsg("回退成功","success"),void t.setData();q.a.errorMsg(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){window.open("#/apiListManageShow?editFlag=0&interfaceId="+e.interfaceId+"&interfaceName="+e.interfaceName+"&interfaceVersionId="+e.interfaceVersionId+"&publishRecordId="+e.publishRecordId+"&projectId="+e.projectId+"&projectName="+this.$route.query.projectName+"&interfaceGroupId="+e.interfaceGroupId+"&interfaceGroupName="+this.$route.query.interfaceGroupName)},getData:function(){var t=this,e={pageNum:t.currentPage,pageSize:t.pageSize,sceneCode:t.apiData.sceneCode,interfaceId:t.$route.query.interfaceId};Object($.a)("/gateway-manage/page-api-publish-record",e).then(function(e){var a=e.data;if("0000"==a.code)return t.tableData=a.result.result||[],void(t.totalCount=a.result.totalCount);q.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,this.getData()}},mounted:function(){this.customDialog=this.historyShow,this.getData()}},R={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.publishRecordId},model:{value:t.selectVersion,callback:function(e){t.selectVersion=e},expression:"selectVersion"}},[t._v(t._s(e.row.version))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"publishRecordId",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){return 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){return t.customConfirm("syncForm")}}},[t._v("确 定")])],1)])],1)},staticRenderFns:[]};var N=a("VU/8")(F,R,!1,function(t){a("U0Nl")},"data-v-37c1326e",null).exports,O={name:"api-version-show",components:{baseInfoShow:n,frontendInfoShow:f,backendInfoShow:k,backInfoShow:j,publishSet:V.a,goHistory:N},data:function(){return{apiData:{interfaceId:"",interfaceName:"",interfaceGroupId:"",interfaceUrl:"",interfaceDescribe:"",projectId:"",optType:"",sucReturn:"",errReturn:"",errCode:[],frontParams:{},endParams:{},target:"",requestType:"POST",protocol:"http",version:"",interfaceType:"HTTP",dubboMethod:"",dubboInterface:"",httpPath:"",proxyCode:"",resultParams:"",backendRequestType:"",timeout:43087112},activeInfo:0,editRow:{},publishShow:!1,historyShow:!1}},methods:{handlePublish:function(){this.publishShow=!0,this.editRow=JSON.parse(l()(this.apiData))},hidePublishDialog:function(t){this.publishShow=!1,this.editRow={},t&&(this.apiData.status=2)},handleGoHistory:function(){this.historyShow=!0},hideHistoryDialog:function(){this.historyShow=!1,this.getData()},handleDel:function(){var t=this;t.$confirm("确认删除此版本吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){t.postDelData()}).catch(function(){})},postDelData:function(){var t=this,e={interfaceVersionId:t.apiData.interfaceVersionId};Object($.b)("/gateway-manage/delete-api-version",e).then(function(e){var a=e.data;if("0000"==a.code)return P.a.showmsg("删除成功","success"),void t.$router.push("/apiListManage?interfaceId="+t.$route.query.interfaceId+"&interfaceName="+t.$route.query.interfaceName);q.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={interfaceVersionId:t.apiData.interfaceVersionId};Object($.a)("/gateway-manage/rollback-api",e).then(function(e){var a=e.data;if("0000"==a.code)return P.a.showmsg("回滚成功","success"),void t.getData();q.a.errorMsg(a)}).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={interfaceVersionId:t.$route.query.interfaceVersionId,interfaceId:t.$route.query.interfaceId,publishRecordId:t.$route.query.publishRecordId||""};Object($.a)("/gateway-manage/get-api",e).then(function(e){var a=e.data;if("0000"==a.code)return a.result.frontParams=JSON.parse(a.result.frontParams),a.result.endParams=JSON.parse(a.result.endParams),a.result.errCode=JSON.parse(a.result.errCode),a.result.resultParams=JSON.parse(a.result.resultParams),void(t.apiData=a.result||{});q.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.getData(),t.$nextTick(function(){t.init()})},destroyed:function(){document.getElementsByClassName("api-body-content")[0].removeEventListener("scroll",this.scroll)}},K={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"},[1==t.$route.query.editFlag?a("div",{staticClass:"operate-btns"},[a("el-button",{attrs:{disabled:2==t.apiData.status&&1!=t.apiData.updateAfterPublish||4==t.apiData.status,type:"primary",plain:""},on:{click:t.handlePublish}},[t._v("发布")]),t._v(" "),a("el-button",{attrs:{disabled:4!=t.apiData.status,type:"primary",plain:""},on:{click:t.handleDel}},[t._v("删除")]),t._v(" "),a("el-button",{attrs:{disabled:4==t.apiData.status,type:"primary",plain:""},on:{click:t.handleGoHistory}},[t._v("回退")]),t._v(" "),a("el-button",{attrs:{disabled:2==t.apiData.status&&1!=t.apiData.updateAfterPublish||4==t.apiData.status,type:"primary",plain:""},on:{click:t.handleGoBack}},[t._v("回滚")])],1):t._e(),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){return 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){return 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){return 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){return 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",{attrs:{apiData:t.apiData}})],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",{attrs:{apiData:t.apiData}})],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",{attrs:{apiData:t.apiData}})],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 B=a("VU/8")(O,K,!1,function(t){a("UcDr")},"data-v-cfdba452",null).exports,E={name:"apiListManageShow",components:{navBread:s.a,apiVersionShow:B},data:function(){return{navPath:[{name:"API管理",path:"/apiProgram"},{name:this.$route.query.projectName?this.$route.query.projectName+"项目列表":"",path:"/apiProgramGroup"},{name:this.$route.query.interfaceGroupName?this.$route.query.interfaceGroupName+"分组列表":"",path:"/groupApiList"},{name:this.$route.query.interfaceName?""+this.$route.query.interfaceName:"",path:"/apiListManage"},{name:"查看",path:""}]}},methods:{getData:function(){var t=this,e={project:t.repProjectName,router:t.pathName,requestProject:t.repProjectName};Object($.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)}},U={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"},[e("div",{staticClass:"api-main-content border-box"},[e("api-version-show")],1)])])},staticRenderFns:[]};var A=a("VU/8")(E,U,!1,function(t){a("Nw81")},"data-v-04db5cfc",null);e.default=A.exports},ripu:function(t,e){},znuk:function(t,e,a){"use strict";var s=a("mvHQ"),i=a.n(s),l=a("Kkt8"),o=a("P9l9"),r=a("TUB1"),n=a("LlAa"),c={name:"publish-set",components:{limitTextarea:l.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(o.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.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},setData:function(t){this.$emit("hidePublishDialog",!0)}},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}},p={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){return t.$set(t.formData,"remark",e)},"update:input-value":function(e){return 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){return t.customConfirm("publishForm")}}},[t._v("发 布")])],1)])],1)},staticRenderFns:[]};var d=a("VU/8")(c,p,!1,function(t){a("ripu")},"data-v-68ac51f7",null);e.a=d.exports}});
\ No newline at end of file
webpackJsonp([4],{"+Mqh":function(e,t){},"0amw":function(e,t){},"8PC5":function(e,t){e.exports="data:image/png;base64,iVBORw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cWMnYUuDmyD7YyPCCTHRVEl2XsNKLkVdi0DTV8ncu5OyKD99jINCfbYl//JdKHUs8E8sxtGTV3WH5EbCvpDBHP2QUQUs3yCyYhN7fM1MqcAQ3w2fdWf2fAx6937HuCQB/COzfsQwLZKUHFhH/MZ+8kjlKnbIZp++046bw6cNsLAHnSxNEwWW5ECkMuhATYj8PWDlwrCwKoXMnLFhK93QSYQ3qq/JoOngFFxLnovJIZLBygEpWs5djaB6fiMiciuixpS4MML+qSo/bKQgPCYdKDUd5EChbbUYbFUvLsdz/apLD0QQCyVYkzePQ6gFYD7oOvduhFa7ay8Baq1q2uQY6d3KXftzc9SEDvfbtH328HY8/ka3IaSeLoXLiCDPyOJd6eacV/AHIL53dgZjL3AAAAAElFTkSuQmCC"},DAuE:function(e,t){},FtC4:function(e,t){},"JN/y":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("bOdI"),o=a.n(r),n=a("BO1k"),i=a.n(n),s=a("319J"),l=a("P9l9"),c=a("PEkr"),d={props:{ruleId:{type:String,default:function(){return""}},sceneCode:{type:String,default:function(){return""}}},data:function(){return{dialogVisible:!0,projectList:[],groupList:[],apiList:[],form:{rangeType:0,rangeInfo:"",projectId:"",projectName:"",groupId:"",groupName:"",interfaceId:"",interfaceName:"",ruleContent:"",grade:1,count:"",strategy:0,distFlag:!1,enableFlag:!1},rule:{projectId:[{required:!0,message:"请选择项目",trigger:"change"}],groupId:[{required:!0,message:"请选择分组",trigger:"change"}],interfaceId:[{required:!0,message:"请选择接口",trigger:"change"}],count:[{required:!0,message:"请选择阈值",trigger:"blur"},{validator:function(e,t,a){/^(0|\+?[1-9][0-9]*)$/.test(t)?a():a(new Error("阈值必须输入正整数"))},trigger:"blur"}]}}},created:function(){this.dialogVisible=!0,this.getProjectList(),this.ruleId&&this.getInfo()},methods:{getInfo:function(){var e=this,t=this,a={ruleId:this.ruleId};Object(l.a)("/gateway-manage//rule/ratelimiter/detail",a).then(function(t){"0000"==t.data.code?(e.form.rangeType=t.data.result.rangeType,0===e.form.rangeType?e.getGroupList():1===e.form.rangeType?e.getGroupList():2===e.form.rangeType&&(e.getApiList(),e.getGroupList()),e.form.projectId=t.data.result.projectId,e.form.interfaceId=t.data.result.interfaceId,e.form.groupId=t.data.result.groupId,e.form.grade=t.data.result.grade,e.form.count=t.data.result.count,e.form.strategy=t.data.result.strategy,e.form.distFlag=1===t.data.result.distFlag,e.form.enableFlag=1===t.data.result.enableFlag):e.$message.error(t.data.message)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getProjectList:function(){var e=this,t=this;Object(l.a)("/gateway-manage/plugin/interface/tree",{}).then(function(t){"0000"==t.data.code?t.data.result?e.projectList=t.data.result:e.projectList=[]:e.$message.error(t.data.message)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getGroupList:function(){var e=this,t=this;this.form.groupId="",this.form.interfaceId="";var a={type:0,id:this.form.projectId};Object(l.a)("/gateway-manage/plugin/interface/tree",a).then(function(t){"0000"==t.data.code?t.data.result?e.groupList=t.data.result:e.groupList=[]:e.$message.error(t.data.message)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getApiList:function(){var e=this,t=this;this.form.interfaceId="";var a={type:1,id:this.form.groupId};Object(l.a)("/gateway-manage/plugin/interface/tree",a).then(function(t){"0000"==t.data.code?t.data.result?e.apiList=t.data.result:e.apiList=[]:e.$message.error(t.data.message)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},submitForm:function(e){var t=this;this.$refs[e].validate(function(e){if(!e)return!1;0===t.form.rangeType?(t.form.projectName=t.projectList.find(function(e){return e.id===t.form.projectId}).name,t.form.ruleContent=t.form.projectName,t.form.rangeInfo=t.form.projectId):1===t.form.rangeType?(t.form.projectName=t.projectList.find(function(e){return e.id===t.form.projectId}).name,t.form.groupName=t.groupList.find(function(e){return e.id===t.form.groupId}).name,t.form.ruleContent=t.form.projectName+"-"+t.form.groupName,t.form.rangeInfo=t.form.groupId):2===t.form.rangeType&&(t.form.projectName=t.projectList.find(function(e){return e.id===t.form.projectId}).name,t.form.groupName=t.groupList.find(function(e){return e.id===t.form.groupId}).name,t.form.interfaceName=t.apiList.find(function(e){return e.id===t.form.interfaceId}).name,t.form.ruleContent=t.form.projectName+"-"+t.form.groupName+"-"+t.form.interfaceName,t.form.rangeInfo=t.form.interfaceId);var a={sceneCode:t.sceneCode,rangeType:t.form.rangeType,rangeInfo:t.form.rangeInfo,ruleContent:t.form.ruleContent,grade:t.form.grade,count:t.form.count,strategy:t.form.strategy,distFlag:t.form.distFlag?1:0,enableFlag:t.form.enableFlag?1:0};t.ruleId&&(a.rateLimiterId=t.ruleId),Object(l.a)("/gateway-manage//rule/ratelimiter/save",a).then(function(e){"0000"==e.data.code?(t.dialogVisible=!1,t.$emit("getList"),t.$emit("cancelAdd")):t.$message.error(e.data.message)})})},close:function(e){this.$refs[e].resetFields(),this.$emit("cancelAdd")}}},u={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:e.ruleId?"编辑流控规则":"新建流控规则",visible:e.dialogVisible,width:"400px"},on:{"update:visible":function(t){e.dialogVisible=t},close:function(t){e.close("form")}}},[a("div",{staticClass:"dialog-body"},[a("el-form",{ref:"form",staticClass:"demo-ruleForm",attrs:{model:e.form,rules:e.rule,"label-width":"100px","label-position":"right"}},[a("el-form-item",{attrs:{label:"流控范围",prop:"rangeType"}},[[a("el-radio",{attrs:{label:0},model:{value:e.form.rangeType,callback:function(t){e.$set(e.form,"rangeType",t)},expression:"form.rangeType"}},[e._v("项目")]),e._v(" "),a("el-radio",{attrs:{label:1},model:{value:e.form.rangeType,callback:function(t){e.$set(e.form,"rangeType",t)},expression:"form.rangeType"}},[e._v("分组")]),e._v(" "),a("el-radio",{attrs:{label:2},model:{value:e.form.rangeType,callback:function(t){e.$set(e.form,"rangeType",t)},expression:"form.rangeType"}},[e._v("接口")])]],2),e._v(" "),a("el-form-item",{attrs:{label:"流控内容",prop:"projectId"}},[a("el-select",{attrs:{placeholder:"请选择项目"},on:{change:e.getGroupList},model:{value:e.form.projectId,callback:function(t){e.$set(e.form,"projectId",t)},expression:"form.projectId"}},e._l(e.projectList,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))],1),e._v(" "),0!==e.form.rangeType?a("el-form-item",{attrs:{prop:"groupId"}},[a("el-select",{attrs:{placeholder:"请选择分组",disabled:""===e.form.projectId},on:{change:e.getApiList},model:{value:e.form.groupId,callback:function(t){e.$set(e.form,"groupId",t)},expression:"form.groupId"}},e._l(e.groupList,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))],1):e._e(),e._v(" "),2===e.form.rangeType?a("el-form-item",{attrs:{prop:"interfaceId"}},[a("el-select",{attrs:{placeholder:"请选择接口",disabled:""===e.form.groupId},model:{value:e.form.interfaceId,callback:function(t){e.$set(e.form,"interfaceId",t)},expression:"form.interfaceId"}},e._l(e.apiList,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))],1):e._e(),e._v(" "),a("el-form-item",{attrs:{label:"阈值类型",prop:"grade"}},[[a("el-radio",{attrs:{label:1},model:{value:e.form.grade,callback:function(t){e.$set(e.form,"grade",t)},expression:"form.grade"}},[e._v("QPS")])]],2),e._v(" "),a("el-form-item",{attrs:{label:"阈值",prop:"count"}},[a("el-input",{staticClass:"w-220",attrs:{placeholder:"请输入阈值"},model:{value:e.form.count,callback:function(t){e.$set(e.form,"count",t)},expression:"form.count"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"流控方式",prop:"rangeType"}},[[a("el-radio",{attrs:{label:0},model:{value:e.form.strategy,callback:function(t){e.$set(e.form,"strategy",t)},expression:"form.strategy"}},[e._v("快速失败")])]],2),e._v(" "),a("el-form-item",{attrs:{label:"分布式限流",prop:"count"}},[a("el-switch",{model:{value:e.form.distFlag,callback:function(t){e.$set(e.form,"distFlag",t)},expression:"form.distFlag"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"是否开启",prop:"count"}},[a("el-switch",{model:{value:e.form.enableFlag,callback:function(t){e.$set(e.form,"enableFlag",t)},expression:"form.enableFlag"}})],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.close("form")}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("form")}}},[e._v("确定")])],1)])},staticRenderFns:[]};var g=a("VU/8")(d,u,!1,function(e){a("0amw")},"data-v-7928b793",null).exports,m={props:{ruleId:{type:String,default:function(){return""}},alarmType:{type:Number,default:function(){return 0}},sceneCode:{type:String,default:function(){return""}}},data:function(){return{dialogVisible:!0,tableData:[],total:0,currentPage:1,pageSize:5}},created:function(){this.dialogVisible=!0,this.getList()},methods:{handleCurrentChange:function(e){this.currentPage=e,this.getList()},getList:function(){var e=this,t={ruleId:this.ruleId,sceneCode:this.sceneCode,alarmType:this.alarmType,currentPage:this.currentPage,pageSize:this.pageSize},a=this;Object(l.a)("/gateway-manage/rule/alarm/log",t).then(function(t){"0000"==t.data.code?t.data.result.result.length?(e.tableData=t.data.result.result,e.total=t.data.result.totalCount):(e.tableData=[],e.total=0):e.$message.error(t.data.message)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},close:function(){this.dialogVisible=!1,this.$emit("cancelLog")}}},f={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:1===e.alarmType?"流控日志":"熔断日志",visible:e.dialogVisible,width:"600px"},on:{"update:visible":function(t){e.dialogVisible=t},close:e.close}},[a("div",{staticClass:"dialog-body"},[a("el-table",{staticClass:"dialog-table",staticStyle:{width:"100%"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{prop:"alarmType",label:"告警类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.alarmType?a("div",[e._v("流控告警")]):e._e(),e._v(" "),2===t.row.alarmType?a("div",[e._v("熔断告警")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"alarmContent",label:1===e.alarmType?"流控内容":"熔断内容",width:"300px","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"updateTime",label:"发生时间"},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)))])]}}])})],1),e._v(" "),e.total>0?a("div",{staticClass:"page-content"},[a("el-pagination",{attrs:{small:"","current-page":e.currentPage,"page-size":e.pageSize,layout:"prev, pager, next",total:e.total},on:{"current-change":e.handleCurrentChange,"update:currentPage":function(t){e.currentPage=t}}})],1):e._e()],1)])},staticRenderFns:[]};var p=a("VU/8")(m,f,!1,function(e){a("+Mqh")},"data-v-d52bf870",null).exports,h={props:{tableData:{type:Array,default:function(){return[]}},sceneCode:{type:String,default:function(){return""}}},components:{newRule:g,ahshLog:p},data:function(){return{showRuleDialog:!1,ruleId:"",showDialog:"",alarmType:1}},methods:{deleteList:function(e){var t=this,a=this,r={rateLimiterId:e.rateLimiterId};Object(l.a)("/gateway-manage/rule/ratelimiter/del",r).then(function(e){"0000"==e.data.code?t.getList():t.$message.error(e.data.message)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},getList:function(){this.$emit("getList")},changeFlag:function(e){var t=this,a={enableFlag:e.enableFlag?1:0,rateLimiterId:e.rateLimiterId};Object(l.a)("/gateway-manage/rule/ratelimiter/enable",a).then(function(a){"0000"==a.data.code?t.$emit("getList"):(e.enableFlag=!e.enableFlag,t.$message.error(a.data.message))})},edit:function(e){this.ruleId=e.rateLimiterId,this.showRuleDialog=!0},cancelAdd:function(){this.showRuleDialog=!1},seeLog:function(e){this.ruleId=e.rateLimiterId,this.showDialog=!0},cancelLog:function(){this.showDialog=!1}}},v={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{"margin-top":"20px"}},[a("div",{staticClass:"table-content"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark",height:e.tableHeight}},[a("el-table-column",{attrs:{label:"流控ID",prop:"ruleCode"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.ruleCode))]),e._v(" "),1===t.row.editeFlag?a("span",{staticClass:"sign-design"},[e._v("未发布")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"rangeType",label:"流控范围"},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.rangeType?a("p",[e._v("项目")]):e._e(),e._v(" "),1===t.row.rangeType?a("p",[e._v("分组")]):e._e(),e._v(" "),2===t.row.rangeType?a("p",[e._v("接口")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"ruleContent",label:"流控内容","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"grade",label:"阈值类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.grade?a("p",[e._v("QPS")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"count",label:"阈值"}}),e._v(" "),a("el-table-column",{attrs:{prop:"strategy",label:"流控方式"},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.strategy?a("p",[e._v("快速失败")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"grade",label:"分布式限流"},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.distFlag?a("p",[e._v("是")]):e._e(),e._v(" "),0===t.row.distFlag?a("p",[e._v("否")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"enableFlag",label:"开启状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{on:{change:function(a){e.changeFlag(t.row)}},model:{value:t.row.enableFlag,callback:function(a){e.$set(t.row,"enableFlag",a)},expression:"scope.row.enableFlag"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){e.edit(t.row)}}},[e._v("编辑")]),e._v(" "),a("dm-delete",{attrs:{tips:"确定要删除该数据吗?"},on:{confirm:function(a){e.deleteList(t.row)}}},[a("el-button",{attrs:{type:"text"}},[e._v("删除")])],1),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){e.seeLog(t.row)}}},[e._v("日志")])]}}])})],1)],1),e._v(" "),e.showRuleDialog?a("newRule",{attrs:{sceneCode:e.sceneCode,ruleId:e.ruleId},on:{cancelAdd:e.cancelAdd,getList:e.getList}}):e._e(),e._v(" "),e.showDialog?a("ahshLog",{attrs:{alarmType:e.alarmType,sceneCode:e.sceneCode,ruleId:e.ruleId},on:{cancelLog:e.cancelLog}}):e._e()],1)},staticRenderFns:[]};var b=a("VU/8")(h,v,!1,function(e){a("Twux")},"data-v-70574bb8",null).exports,y={props:{degradeId:{type:String,default:function(){return""}},sceneCode:{type:String,default:function(){return""}}},data:function(){return{dialogVisible:!0,projectList:[],groupList:[],apiList:[],form:{rangeType:0,rangeInfo:"",ruleContent:"",projectId:"",projectName:"",groupId:"",groupName:"",interfaceId:"",interfaceName:"",grade:1,count:"",timeWindow:"",enableFlag:!1},rule:{projectId:[{required:!0,message:"请选择项目",trigger:"change"}],groupId:[{required:!0,message:"请选择分组",trigger:"change"}],interfaceId:[{required:!0,message:"请选择接口",trigger:"change"}],count:[{required:!0,message:"请输入异常比例",trigger:"blur"},{validator:function(e,t,a){/^\d{0,8}\.{0,1}(\d{1,2})?$/.test(t)?a():a(new Error("请输入0-1且小数不超过两位的数字"))},trigger:"blur"}],timeWindow:[{required:!0,message:"请输入时间窗口",trigger:"blur"},{validator:function(e,t,a){/^(0|\+?[1-9][0-9]*)$/.test(t)?a():a(new Error("时间必须输入正整数"))},trigger:"blur"}]}}},created:function(){this.dialogVisible=!0,this.getProjectList(),this.degradeId&&this.getInfo()},methods:{getInfo:function(){var e=this,t=this,a={ruleId:this.degradeId};Object(l.a)("/gateway-manage/rule/degrade/detail",a).then(function(t){"0000"==t.data.code?(e.form.rangeType=t.data.result.rangeType,0===e.form.rangeType?e.getGroupList():1===e.form.rangeType?e.getGroupList():2===e.form.rangeType&&(e.getApiList(),e.getGroupList()),e.form.projectId=t.data.result.projectId,e.form.interfaceId=t.data.result.interfaceId,e.form.groupId=t.data.result.groupId,e.form.grade=t.data.result.grade,e.form.count=t.data.result.count,e.form.timeWindow=t.data.result.timeWindow,e.form.enableFlag=1===t.data.result.enableFlag):e.$message.error(t.data.message)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getProjectList:function(){var e=this,t=this;Object(l.a)("/gateway-manage/plugin/interface/tree",{}).then(function(t){"0000"==t.data.code?t.data.result?e.projectList=t.data.result:e.projectList=[]:e.$message.error(t.data.message)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getGroupList:function(){var e=this,t=this;this.form.groupId="",this.form.interfaceId="";var a={type:0,id:this.form.projectId};Object(l.a)("/gateway-manage/plugin/interface/tree",a).then(function(t){"0000"==t.data.code?t.data.result?e.groupList=t.data.result:e.groupList=[]:e.$message.error(t.data.message)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getApiList:function(){var e=this,t=this;this.form.interfaceId="";var a={type:1,id:this.form.groupId};Object(l.a)("/gateway-manage/plugin/interface/tree",a).then(function(t){"0000"==t.data.code?t.data.result?e.apiList=t.data.result:e.apiList=[]:e.$message.error(t.data.message)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},submitForm:function(e){var t=this,a=this;this.$refs[e].validate(function(e){if(!e)return!1;0===t.form.rangeType?(t.form.projectName=t.projectList.find(function(e){return e.id===t.form.projectId}).name,t.form.ruleContent=t.form.projectName,t.form.rangeInfo=t.form.projectId):1===t.form.rangeType?(t.form.projectName=t.projectList.find(function(e){return e.id===t.form.projectId}).name,t.form.groupName=t.groupList.find(function(e){return e.id===t.form.groupId}).name,t.form.ruleContent=t.form.projectName+"-"+t.form.groupName,t.form.rangeInfo=t.form.groupId):2===t.form.rangeType&&(t.form.projectName=t.projectList.find(function(e){return e.id===t.form.projectId}).name,t.form.groupName=t.groupList.find(function(e){return e.id===t.form.groupId}).name,t.form.interfaceName=t.apiList.find(function(e){return e.id===t.form.interfaceId}).name,t.form.ruleContent=t.form.projectName+"-"+t.form.groupName+"-"+t.form.interfaceName,t.form.rangeInfo=t.form.interfaceId);var r={sceneCode:t.sceneCode,rangeType:t.form.rangeType,rangeInfo:t.form.rangeInfo,ruleContent:t.form.ruleContent,grade:t.form.grade,count:t.form.count,timeWindow:t.form.timeWindow,enableFlag:t.form.enableFlag?1:0};t.degradeId&&(r.degradeId=t.degradeId),Object(l.a)("/gateway-manage/rule/degrade/save",r).then(function(e){"0000"==e.data.code?(t.dialogVisible=!1,t.$emit("cancelAddFlus"),t.$emit("getList")):t.$message.error(e.data.message)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})})},close:function(e){this.$refs[e].resetFields(),this.$emit("cancelAddFlus")}}},I={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:e.degradeId?"编辑熔断规则":"新建熔断规则",visible:e.dialogVisible,width:"400px"},on:{"update:visible":function(t){e.dialogVisible=t},close:function(t){e.close("form")}}},[a("div",{staticClass:"dialog-body"},[a("el-form",{ref:"form",staticClass:"demo-ruleForm",attrs:{model:e.form,rules:e.rule,"label-width":"100px","label-position":"right"}},[a("el-form-item",{attrs:{label:"熔断范围",prop:"rangeType"}},[[a("el-radio",{attrs:{label:0},model:{value:e.form.rangeType,callback:function(t){e.$set(e.form,"rangeType",t)},expression:"form.rangeType"}},[e._v("项目")]),e._v(" "),a("el-radio",{attrs:{label:1},model:{value:e.form.rangeType,callback:function(t){e.$set(e.form,"rangeType",t)},expression:"form.rangeType"}},[e._v("分组")]),e._v(" "),a("el-radio",{attrs:{label:2},model:{value:e.form.rangeType,callback:function(t){e.$set(e.form,"rangeType",t)},expression:"form.rangeType"}},[e._v("接口")])]],2),e._v(" "),a("el-form-item",{attrs:{label:"熔断内容",prop:"projectId"}},[a("el-select",{attrs:{placeholder:"请选择项目"},on:{change:e.getGroupList},model:{value:e.form.projectId,callback:function(t){e.$set(e.form,"projectId",t)},expression:"form.projectId"}},e._l(e.projectList,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))],1),e._v(" "),0!==e.form.rangeType?a("el-form-item",{attrs:{prop:"groupId"}},[a("el-select",{attrs:{placeholder:"请选择分组",disabled:""===e.form.projectId},on:{change:e.getApiList},model:{value:e.form.groupId,callback:function(t){e.$set(e.form,"groupId",t)},expression:"form.groupId"}},e._l(e.groupList,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))],1):e._e(),e._v(" "),2===e.form.rangeType?a("el-form-item",{attrs:{prop:"interfaceId"}},[a("el-select",{attrs:{placeholder:"请选择接口",disabled:""===e.form.groupId},model:{value:e.form.interfaceId,callback:function(t){e.$set(e.form,"interfaceId",t)},expression:"form.interfaceId"}},e._l(e.apiList,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))],1):e._e(),e._v(" "),a("el-form-item",{attrs:{label:"阈值类型",prop:"grade"}},[[a("el-radio",{attrs:{label:1},model:{value:e.form.grade,callback:function(t){e.$set(e.form,"grade",t)},expression:"form.grade"}},[e._v("异常比例")])]],2),e._v(" "),a("el-form-item",{attrs:{label:"异常比例",prop:"count"}},[a("el-input",{staticClass:"w-220",attrs:{placeholder:"请输入异常比例"},model:{value:e.form.count,callback:function(t){e.$set(e.form,"count",t)},expression:"form.count"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"时间窗口",prop:"timeWindow"}},[a("el-input-number",{staticClass:"w-220",attrs:{placeholder:"请输入时间窗口","controls-position":"right"},model:{value:e.form.timeWindow,callback:function(t){e.$set(e.form,"timeWindow",t)},expression:"form.timeWindow"}}),e._v(" 秒\n ")],1),e._v(" "),a("el-form-item",{attrs:{label:"是否开启",prop:"enableFlag"}},[a("el-switch",{model:{value:e.form.enableFlag,callback:function(t){e.$set(e.form,"enableFlag",t)},expression:"form.enableFlag"}})],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.close("form")}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("form")}}},[e._v("确定")])],1)])},staticRenderFns:[]};var w=a("VU/8")(y,I,!1,function(e){a("FtC4")},"data-v-ba38da90",null).exports,L={props:{tableData:{type:Array,default:function(){return[]}},sceneCode:{type:String,default:function(){return""}}},data:function(){return{showFlusDialog:!1,showDialog:!1,alarmType:2}},methods:{deleteList:function(e){var t=this,a=this,r={degradeId:e.degradeId};Object(l.a)("/gateway-manage/rule/degrade/del",r).then(function(e){"0000"==e.data.code?t.getList():t.$message.error(e.data.message)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},getList:function(){this.$emit("getList")},edit:function(e){this.degradeId=e.degradeId,this.showFlusDialog=!0},cancelAddFlus:function(){this.showFlusDialog=!1},changeFlag:function(e){var t=this,a=this,r={enableFlag:e.enableFlag?1:0,degradeId:e.degradeId};Object(l.a)("/gateway-manage/rule/degrade/enable",r).then(function(a){"0000"==a.data.code?t.$emit("getList"):(e.enableFlag=!e.enableFlag,t.$message.error(a.data.message))}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},seeLog:function(e){this.ruleId=e.degradeId,this.showDialog=!0},cancelLog:function(){this.showDialog=!1}},components:{newSet:w,ahshLog:p}},C={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{"margin-top":"20px"}},[a("div",{staticClass:"table-content"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark",height:e.tableHeight}},[a("el-table-column",{attrs:{label:"熔断ID",prop:"ruleCode"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.ruleCode))]),e._v(" "),1===t.row.editeFlag?a("span",{staticClass:"sign-design"},[e._v("未发布")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"rangeType",label:"熔断范围"},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.rangeType?a("p",[e._v("项目")]):e._e(),e._v(" "),1===t.row.rangeType?a("p",[e._v("分组")]):e._e(),e._v(" "),2===t.row.rangeType?a("p",[e._v("接口")]):e._e(),e._v(" "),3===t.row.rangeType?a("p",[e._v("其他")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"ruleContent",label:"熔断内容","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"grade",label:"阈值类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.grade?a("p",[e._v("异常比例")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"count",label:"阈值"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("p",[e._v(e._s(100*t.row.count)+"%")])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"timeWindow",label:"时间窗口"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("p",[e._v(e._s(t.row.timeWindow)+"秒")])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"enableFlag",label:"开启状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{on:{change:function(a){e.changeFlag(t.row)}},model:{value:t.row.enableFlag,callback:function(a){e.$set(t.row,"enableFlag",a)},expression:"scope.row.enableFlag"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){e.edit(t.row)}}},[e._v("编辑")]),e._v(" "),a("dm-delete",{attrs:{tips:"确定要删除该数据吗?"},on:{confirm:function(a){e.deleteList(t.row)}}},[a("el-button",{attrs:{type:"text"}},[e._v("删除")])],1),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){e.seeLog(t.row)}}},[e._v("日志")])]}}])})],1)],1),e._v(" "),e.showFlusDialog?a("newSet",{attrs:{sceneCode:e.sceneCode,degradeId:e.degradeId},on:{cancelAddFlus:e.cancelAddFlus,getList:e.getList}}):e._e(),e._v(" "),e.showDialog?a("ahshLog",{attrs:{sceneCode:e.sceneCode,ruleId:e.ruleId,alarmType:e.alarmType},on:{cancelLog:e.cancelLog}}):e._e()],1)},staticRenderFns:[]};var _=a("VU/8")(L,C,!1,function(e){a("DAuE")},"data-v-cd61b720",null).exports,F={props:{alarmType:{type:Number,default:function(){return 0}},sceneCode:{type:String,default:function(){return""}}},data:function(){return{dialogVisible:!0,tableData:[],total:0,currentPage:1,pageSize:5}},created:function(){this.dialogVisible=!0,this.getList()},methods:{handleCurrentChange:function(e){this.currentPage=e,this.getList()},getList:function(){var e=this,t={sceneCode:this.sceneCode,alarmType:this.alarmType,currentPage:this.currentPage,pageSize:this.pageSize},a=this;Object(l.a)("/gateway-manage/rule/alarm/log",t).then(function(t){"0000"==t.data.code?t.data.result.result.length?(e.tableData=t.data.result.result,e.total=t.data.result.totalCount):(e.tableData=[],e.total=0):e.$message.error(t.data.message)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},close:function(){this.dialogVisible=!1,this.$emit("cancelLog")}}},j={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"日志",visible:e.dialogVisible,width:"600px"},on:{"update:visible":function(t){e.dialogVisible=t},close:e.close}},[a("div",{staticClass:"dialog-body"},[a("el-table",{staticClass:"dialog-table",staticStyle:{width:"100%"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{prop:"alarmType",label:"告警类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.alarmType?a("div",[e._v("流控告警")]):e._e(),e._v(" "),2===t.row.alarmType?a("div",[e._v("熔断告警")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"alarmContent",label:"告警内容",width:"300px","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"updateTime",label:"发生时间"},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)))])]}}])})],1),e._v(" "),e.total>0?a("div",{staticClass:"page-content"},[a("el-pagination",{attrs:{small:"","current-page":e.currentPage,"page-size":e.pageSize,layout:"prev, pager, next",total:e.total},on:{"current-change":e.handleCurrentChange,"update:currentPage":function(t){e.currentPage=t}}})],1):e._e()],1)])},staticRenderFns:[]};var A=a("VU/8")(F,j,!1,function(e){a("pj1/")},"data-v-d3b90fa2",null).exports,D={props:{tableData:{type:Array,default:function(){return[]}},sceneCode:{type:String,default:function(){return""}}},data:function(){return{showDialog:!1,refash:!1}},methods:{handleChange:function(e){this.$emit("changeFlag",e)},seeLog:function(e){this.ruleId=e.sceneCode,this.alarmType=e.alarmType,this.showDialog=!0},cancelLog:function(){this.showDialog=!1},editItemm:function(e){var t=this,a=this;if(this.refash=!this.refash,e.editStatus=!e.editStatus,!e.editStatus){var r={alarmType:e.alarmType,alarmInfo:e.alarmInfo,sceneCode:this.sceneCode};Object(l.a)("/gateway-manage/rule/alarm/edit",r).then(function(a){"0000"==a.data.code?(t.$emit("getList"),t.$message.success("保存成功")):(e.editStatus=!e.editStatus,t.$message.error(a.data.message))}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})}}},components:{alarmLog:A}},T={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticStyle:{"margin-top":"20px"}},[r("div",{staticClass:"list-content"},e._l(e.tableData,function(t,o){return r("div",{key:o,staticClass:"list-item"},[r("div",{staticClass:"item-top"},[1===t.alarmType?r("img",{attrs:{src:a("vgET"),alt:""}}):e._e(),e._v(" "),2===t.alarmType?r("img",{attrs:{src:a("8PC5"),alt:""}}):e._e(),e._v(" "),r("div",{staticClass:"item-info"},[r("p",{staticClass:"info-type"},[e._v(e._s(1===t.alarmType?"流控告警":"熔断告警"))]),e._v(" "),r("p",{staticClass:"name"},[e._v("Webhook通知地址")]),e._v(" "),r("div",{staticClass:"address"},[t.editStatus?r("el-input",{staticStyle:{width:"368px",height:"78px"},attrs:{type:"textarea",resize:"none",placeholder:"请输入内容"},model:{value:t.alarmInfo,callback:function(a){e.$set(t,"alarmInfo",a)},expression:"item.alarmInfo"}}):r("p",[e._v(e._s(t.alarmInfo))])],1)])]),e._v(" "),r("div",{staticClass:"item-bottom"},[r("div",[r("p",{on:{click:function(a){e.editItemm(t)}}},[e._v(e._s(t.editStatus?"保存":"编辑")+"Webhook通知地址")]),e._v(" "),r("p",{on:{click:function(a){e.seeLog(t)}}},[e._v("日志")])]),e._v(" "),r("span",{staticStyle:{display:"none"}},[e._v(e._s(e.refash))]),e._v(" "),r("el-switch",{on:{change:function(a){e.handleChange(t)}},model:{value:t.enableFlag,callback:function(a){e.$set(t,"enableFlag",a)},expression:"item.enableFlag"}})],1)])})),e._v(" "),e.showDialog?r("alarmLog",{attrs:{alarmType:e.alarmType,sceneCode:e.sceneCode},on:{cancelLog:e.cancelLog}}):e._e()],1)},staticRenderFns:[]};var S=a("VU/8")(D,T,!1,function(e){a("bBUd")},"data-v-fd99d76e",null).exports,k={name:"envManage",components:{navBread:s.a,selectEnv:c.a,fluidList:b,fusingList:_,warnSet:S,newRule:g,newSet:w},data:function(){return{navPath:[{name:"插件管理",path:"/pluginManage"},{name:"AHAS",path:""}],activeName:"first",search:"",showdialog:!1,pluginId:"",sceneCode:"",pluginType:0,projectList:[],projectId:"",groupList:[],groupId:"",total:0,currentPage:1,pageSize:20,pageSizes:[20,40,60,80],tableData:[],loading:!1,showRuleDialog:!1,showFlusDialog:!1,publishNum:0}},created:function(){this.pluginId=this.$route.query.pluginId,this.sceneCode=this.$route.query.sceneCode,this.getProjectList(),this.getList()},methods:{handleClick:function(e,t){this.search="",this.projectId="",this.groupId="",this.getList()},goEnvList:function(){this.showdialog=!0,this.pluginId=this.pluginId},closeDialog:function(){this.showdialog=!1},handleSizeChange:function(e){this.pageSize=e,this.getList()},handleCurrentChange:function(e){this.currentPage=e,this.getList()},getChange:function(){this.groupId="",this.currentPage=1,this.getGroupList(),this.getList()},getSearchList:function(){"first"!==this.activeName&&"second"!==this.activeName||(this.currentPage=1,this.getGroupList(),this.getList())},getList:function(){var e=this,t="",a={};"first"===this.activeName?(t="/gateway-manage/rule/ratelimiter/list",a={projectId:this.projectId?this.projectId:null,groupId:this.groupId?this.groupId:null,search:this.search?this.search:null,sceneCode:this.sceneCode,currentPage:this.currentPage,pageSize:this.pageSize}):"second"===this.activeName?(t="/gateway-manage/rule/degrade/list",a={projectId:this.projectId?this.projectId:null,groupId:this.groupId?this.groupId:null,search:this.search?this.search:null,sceneCode:this.sceneCode,currentPage:this.currentPage,pageSize:this.pageSize}):"third"===this.activeName&&(t="/gateway-manage/rule/alarm/list",a={sceneCode:this.sceneCode}),this.tableData=[],this.loading=!0;var r=this;Object(l.a)(t,a).then(function(t){if("0000"==t.data.code){if("first"===e.activeName){t.data.result.result?(e.tableData=t.data.result.result,e.total=t.data.result.totalCount):(e.total=0,e.tableData=[]);var a=!0,r=!1,o=void 0;try{for(var n,s=i()(e.tableData);!(a=(n=s.next()).done);a=!0){var l=n.value;l.enableFlag=1===l.enableFlag}}catch(e){r=!0,o=e}finally{try{!a&&s.return&&s.return()}finally{if(r)throw o}}}else if("second"===e.activeName){t.data.result.result?(e.tableData=t.data.result.result,e.total=t.data.result.totalCount):(e.total=0,e.tableData=[]);var c=!0,d=!1,u=void 0;try{for(var g,m=i()(e.tableData);!(c=(g=m.next()).done);c=!0){var f=g.value;f.enableFlag=1===f.enableFlag}}catch(e){d=!0,u=e}finally{try{!c&&m.return&&m.return()}finally{if(d)throw u}}}else if("third"===e.activeName){t.data.result?e.tableData=t.data.result:e.tableData=[];var p=!0,h=!1,v=void 0;try{for(var b,y=i()(e.tableData);!(p=(b=y.next()).done);p=!0){var I=b.value;I.enableFlag=1===I.enableFlag,I.editStatus=!1}}catch(e){h=!0,v=e}finally{try{!p&&y.return&&y.return()}finally{if(h)throw v}}}e.loading=!1,e.getUpdateStatus()}else e.$message.error(t.data.message)}).catch(function(e){r.$message.error({duration:1e3,message:e.message})})},changeFlag:function(e){var t=this,a=this,r={alarmType:e.alarmType,enableFlag:e.enableFlag?1:0,sceneCode:this.sceneCode};Object(l.a)("/gateway-manage/rule/alarm/enable",r).then(function(a){"0000"==a.data.code?t.getList():(e.enableFlag=!e.enableFlag,t.$message.error(a.data.message))}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},getProjectList:function(){var e=this,t=this;Object(l.a)("/gateway-manage/plugin/interface/tree",{}).then(function(t){"0000"==t.data.code?t.data.result?e.projectList=t.data.result:e.projectList=[]:e.$message.error(t.data.message)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getGroupList:function(){var e=this,t=this,a={type:0,id:this.projectId};Object(l.a)("/gateway-manage/plugin/interface/tree",a).then(function(t){"0000"==t.data.code?t.data.result?e.groupList=t.data.result:e.groupList=[]:e.$message.error(t.data.message)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},addFluid:function(){this.showRuleDialog=!0},cancelAdd:function(){this.showRuleDialog=!1},addFusing:function(){this.showFlusDialog=!0},cancelAddFlus:function(){this.showFlusDialog=!1},publish:function(){var e=this,t={sceneCode:this.sceneCode},a="";"first"===this.activeName?a="/gateway-manage/rule/ratelimiter/publish":"second"===this.activeName&&(a="/gateway-manage/rule/degrade/publish");var r=this;this.$confirm("确定要发布吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(l.a)(a,t).then(function(t){"0000"==t.data.code?e.getList():e.$message.error(t.data.message)}).catch(function(e){r.$message.error({duration:1e3,message:e.message})})}).catch(function(){e.$message({type:"info",message:"已取消发布"})})},getUpdateStatus:function(e){var t=this,a={sceneCode:e||this.sceneCode},r="";r="first"===this.activeName?"/gateway-manage/rule/ratelimiter/has/edit":"/gateway-manage/rule/degrade/has/edit",Object(l.a)(r,a).then(function(e){"0000"==e.data.code?t.publishNum=e.data.result:t.$message.error(e.data.message)})}},watch:o()({$route:{handler:function(e,t){},deep:!0}},"$route",function(e,t){this.pluginId=this.$route.query.pluginId,this.sceneCode=this.$route.query.sceneCode,this.getList()})},N={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}}),e._v(" "),a("div",{staticClass:"change-env",on:{click:e.goEnvList}},[a("span",[e._v("切换环境")]),a("i",{staticClass:"iconfont iconicon-qihuan",on:{click:function(t){e.goEnvList(e.item)}}})])],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"}},["third"!==e.activeName?a("div",{staticClass:"search-box"},[a("div",{staticClass:"left"},[a("el-input",{staticClass:"w-320",attrs:{placeholder:"first"===e.activeName?"请输入接口名称/流控ID":"请输入接口名称/熔断ID","prefix-icon":"el-icon-search",clearable:""},on:{clear:function(t){e.getSearchList()}},nativeOn:{keyup:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.getSearchList()}},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}}),e._v(" "),a("el-select",{staticClass:"w-140 marginLeft10",staticStyle:{display:"inline-block"},attrs:{placeholder:"请选择项目",size:"small",clearable:""},on:{change:e.getChange},model:{value:e.projectId,callback:function(t){e.projectId=t},expression:"projectId"}},e._l(e.projectList,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),e._v(" "),a("el-select",{staticClass:"w-140 marginLeft10",staticStyle:{display:"inline-block"},attrs:{placeholder:"请选择分组",size:"small",clearable:"",disabled:""===e.projectId},on:{change:e.getSearchList},model:{value:e.groupId,callback:function(t){e.groupId=t},expression:"groupId"}},e._l(e.groupList,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))],1),e._v(" "),a("div",["first"===e.activeName?a("el-button",{attrs:{type:"primary"},on:{click:e.addFluid}},[e._v("新建流控规则")]):e._e(),e._v(" "),"second"===e.activeName?a("el-button",{attrs:{type:"primary"},on:{click:e.addFusing}},[e._v("新建熔断规则")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"primary",disabled:e.publishNum<=0},on:{click:e.publish}},[e._v(e._s(e.publishNum>0?"待发布("+e.publishNum+")":"发布"))])],1)]):e._e(),e._v(" "),a("el-tab-pane",{attrs:{label:"流控规则",name:"first"}},["first"===e.activeName?a("fluidList",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{tableData:e.tableData,sceneCode:e.sceneCode},on:{getList:e.getList}}):e._e()],1),e._v(" "),a("el-tab-pane",{attrs:{label:"熔断规则",name:"second"}},["second"===e.activeName?a("fusingList",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{tableData:e.tableData,sceneCode:e.sceneCode},on:{getList:e.getList}}):e._e()],1),e._v(" "),a("el-tab-pane",{attrs:{label:"告警配置",name:"third"}},["third"===e.activeName?a("warnSet",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{tableData:e.tableData,sceneCode:e.sceneCode},on:{getList:e.getList,changeFlag:e.changeFlag}}):e._e()],1)],1),e._v(" "),0===e.total||"first"!==e.activeName&&"second"!==e.activeName?e._e():a("div",{staticStyle:{"text-align":"right","margin-top":"20px"}},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":e.pageSizes,"page-size":e.pageSize,layout:"total, sizes, prev, pager, next",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)],1)])]),e._v(" "),e.showdialog?a("selectEnv",{attrs:{pluginId:e.pluginId,pluginType:e.pluginType},on:{closeDialog:e.closeDialog}}):e._e(),e._v(" "),e.showRuleDialog?a("newRule",{attrs:{sceneCode:e.sceneCode},on:{cancelAdd:e.cancelAdd,getList:e.getList}}):e._e(),e._v(" "),e.showFlusDialog?a("newSet",{attrs:{sceneCode:e.sceneCode},on:{cancelAddFlus:e.cancelAddFlus,getList:e.getList}}):e._e()],1)},staticRenderFns:[]};var x=a("VU/8")(k,N,!1,function(e){a("NPnL")},"data-v-88258f2c",null);t.default=x.exports},NPnL:function(e,t){},Twux:function(e,t){},bBUd:function(e,t){},"pj1/":function(e,t){},vgET:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAACMxJREFUWAmVmFuMVWcVx/97n3NmYG4Mc0EYYJqAQsslVE28pBqsl0hsm2hifDLGxtgaExMffPJF44OtD9XExNrUZ99I1FBNK5H6IGosKbRAOyAjZRhpuA04AzPAzDnb/2/t/Z2ZAUrKgr2/2/rW+q/Lt/Z3JtNd6PPPFqt6cg3NNZXVV6jVmFcGW62hYramrLPaU6t7vODxDemm57q83jTvwJCKbevVUbEp8ce4PatFhorx6UezsVCUNtJ+5afFoOU/U8yrX7mU18rVllSopayWqSg81XLfm7Os5q6B50higXembOMa9W0e0ReZgDG3rHYf3tjsefoMvd7oU0fFVk4+daho2NIfZk31I8BgQkWAMUuAsYCWHwRZUSHAGLR5QkmrUQqfvKDpI6f1+1ahW1hQBINb+vBWczYsKK0vAzT5in5gyRuDw+63sFCU4xn0AMY7wGNQRUjOS/nhAfcb5rVni9zhvDqj+ddOat98U5dCFsqR6TbcXA7bffS2AT3+bPENi/pwUuIwBOVWa3diVDGP18pQFfZWJsJJG40KQBtwgdCmA+dN2Y2bah06oVev3dC/kRKC/AqAMSgBMoYC0GPPFY8a9eN2f1ATS0rFuTl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yPyKZyERHeqJloYlgq9o790PYFLLWCWrLdlucOfb0j2NV0a9t9fXtj3vew061AkNRsBE8DcjbFfll3OuUOyAug9ic2s06aNgPM4wpA2mifJ6u3Q3hefzg6mJVq+u3EikMXTHlsQsiGAEKo4OVV7V3AIYBMIqj7DZbwxEaH51XNPZs97eRnVbcFh86xKMhIK9gUlIFgLkx8UxDr9iq3N73GcGnghM0QZqVq+We6e7Nuk78f6ba//AxcahJX31IAzAAAAAElFTkSuQmCC"}});
\ No newline at end of file
webpackJsonp([4],{"+Mqh":function(e,t){},"0amw":function(e,t){},"8PC5":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAB0NJREFUWAnFl9tvVUUUxteavfdpy6WUq0QuMRrEoIiXhEsiERMjKpjIg6+8kPDsA0/+A8Q/QOODrz4YeUCjhhgj0cSkSgyaFIOGu1y0lpZSaDn7MuNv7d1zaemx1SZl2rP3npk9M9+s9a1v1laZoRweDsskk1VFt2gtiI/rovUukRUioRDRrm4Rq0fUY6szh/0S6hl1m9LJGNX/Vo5o79lycPuwg1fDSjfhj4rzfVHkJWFV0cDdB3VOoziEiHrkrCrK3cdxUJsoqonE6gEZeEN62cve9rlne14my2uu/aXDIST1Mf9Omvu+UHjJvIaMLeeFC0URSRHsLtxVPPXcS/DeaVY4KbyTkIr4zElKPYi7zU6O86N17mUKoD8H5EjIwoYcq9d9HMpF2WooVDMaQ16UC+epuoyq+S8PEXcvBrQOwCyAlj5v/RJnDP+c+tBcIUGBquw/FQ5KLs+mMCPC7JAAyzBdLQ6ixhwDlkgccvX4DHDmOP4K9VxxLa5ytIWQMtxG8ay1OGKwP4lNn6FpU2O9TvcS0N7+8FIust9xiYwzmNzM4m2rrBs0YtuAM98lGqATLyXGlMAY9QDGiPaGsDpzONXCDFXgYuMbjZr8LJIN87CDWscS7/4ubMHch2ymOGJyoBgQUce+2S5EyTVoAiTwliEUMIfL8Ug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vmaaX+Uem+cJfTw5SavCXFXkmMdUzPYT2EL4N1VkA/IuoX7orsWSVyYJ3t4f5yif5HOrDoWl1ufjIYBq5nMszRpngJ/SkcVAJNrBFW4kZHpXSzAroNevs9DbF7SeKtjFsb4re2p6rrRKtvgiga4bR/eLLvRibp6btShkOMlTkJ+RDgC4HjDfepJDgtI7OcTO9nFcZqyanXX7DaiWtT2xq1MyMiX/7RqMEVHJGxtuVQ5h6yCYSw4PQnO7AThT5LhfNJdZ/VQq2pW0/bV4tsRRxnKs+tFNnc1+oxYpj2WCnzf+fBGCE9JC+Qu8BiJHhlRmzv/C9A+F+WdBhp5F/a1mcWMnYUuDmyD7YyPCCTHRVEl2XsNKLkVdi0DTV8ncu5OyKD99jINCfbYl//JdKHUs8E8sxtGTV3WH5EbCvpDBHP2QUQUs3yCyYhN7fM1MqcAQ3w2fdWf2fAx6937HuCQB/COzfsQwLZKUHFhH/MZ+8kjlKnbIZp++046bw6cNsLAHnSxNEwWW5ECkMuhATYj8PWDlwrCwKoXMnLFhK93QSYQ3qq/JoOngFFxLnovJIZLBygEpWs5djaB6fiMiciuixpS4MML+qSo/bKQgPCYdKDUd5EChbbUYbFUvLsdz/apLD0QQCyVYkzePQ6gFYD7oOvduhFa7ay8Baq1q2uQY6d3KXftzc9SEDvfbtH328HY8/ka3IaSeLoXLiCDPyOJd6eacV/AHIL53dgZjL3AAAAAElFTkSuQmCC"},Alw0:function(e,t){},DAuE:function(e,t){},FtC4:function(e,t){},"JN/y":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("bOdI"),n=a.n(r),o=a("BO1k"),i=a.n(o),s=a("319J"),l=a("P9l9"),c=a("PEkr"),d={props:{ruleId:{type:String,default:function(){return""}},sceneCode:{type:String,default:function(){return""}}},data:function(){return{dialogVisible:!0,projectList:[],groupList:[],apiList:[],form:{rangeType:0,rangeInfo:"",projectId:"",projectName:"",groupId:"",groupName:"",interfaceId:"",interfaceName:"",ruleContent:"",grade:1,count:"",strategy:0,distFlag:!1,enableFlag:!1},rule:{projectId:[{required:!0,message:"请选择项目",trigger:"change"}],groupId:[{required:!0,message:"请选择分组",trigger:"change"}],interfaceId:[{required:!0,message:"请选择接口",trigger:"change"}],count:[{required:!0,message:"请选择阈值",trigger:"blur"},{validator:function(e,t,a){/^(0|\+?[1-9][0-9]*)$/.test(t)?a():a(new Error("阈值必须输入正整数"))},trigger:"blur"}]}}},created:function(){this.dialogVisible=!0,this.getProjectList(),this.ruleId&&this.getInfo()},methods:{getInfo:function(){var e=this,t=this,a={ruleId:this.ruleId};Object(l.a)("/gateway-manage//rule/ratelimiter/detail",a).then(function(t){"0000"==t.data.code?(e.form.rangeType=t.data.result.rangeType,0===e.form.rangeType?e.getGroupList():1===e.form.rangeType?e.getGroupList():2===e.form.rangeType&&(e.getApiList(),e.getGroupList()),e.form.projectId=t.data.result.projectId,e.form.interfaceId=t.data.result.interfaceId,e.form.groupId=t.data.result.groupId,e.form.grade=t.data.result.grade,e.form.count=t.data.result.count,e.form.strategy=t.data.result.strategy,e.form.distFlag=1===t.data.result.distFlag,e.form.enableFlag=1===t.data.result.enableFlag):e.$message.error(t.data.message)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getProjectList:function(){var e=this,t=this;Object(l.a)("/gateway-manage/plugin/interface/tree",{}).then(function(t){"0000"==t.data.code?t.data.result?e.projectList=t.data.result:e.projectList=[]:e.$message.error(t.data.message)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getGroupList:function(){var e=this,t=this;this.form.groupId="",this.form.interfaceId="";var a={type:0,id:this.form.projectId};Object(l.a)("/gateway-manage/plugin/interface/tree",a).then(function(t){"0000"==t.data.code?t.data.result?e.groupList=t.data.result:e.groupList=[]:e.$message.error(t.data.message)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getApiList:function(){var e=this,t=this;this.form.interfaceId="";var a={type:1,id:this.form.groupId};Object(l.a)("/gateway-manage/plugin/interface/tree",a).then(function(t){"0000"==t.data.code?t.data.result?e.apiList=t.data.result:e.apiList=[]:e.$message.error(t.data.message)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},submitForm:function(e){var t=this;this.$refs[e].validate(function(e){if(!e)return!1;0===t.form.rangeType?(t.form.projectName=t.projectList.find(function(e){return e.id===t.form.projectId}).name,t.form.ruleContent=t.form.projectName,t.form.rangeInfo=t.form.projectId):1===t.form.rangeType?(t.form.projectName=t.projectList.find(function(e){return e.id===t.form.projectId}).name,t.form.groupName=t.groupList.find(function(e){return e.id===t.form.groupId}).name,t.form.ruleContent=t.form.projectName+"-"+t.form.groupName,t.form.rangeInfo=t.form.groupId):2===t.form.rangeType&&(t.form.projectName=t.projectList.find(function(e){return e.id===t.form.projectId}).name,t.form.groupName=t.groupList.find(function(e){return e.id===t.form.groupId}).name,t.form.interfaceName=t.apiList.find(function(e){return e.id===t.form.interfaceId}).name,t.form.ruleContent=t.form.projectName+"-"+t.form.groupName+"-"+t.form.interfaceName,t.form.rangeInfo=t.form.interfaceId);var a={sceneCode:t.sceneCode,rangeType:t.form.rangeType,rangeInfo:t.form.rangeInfo,ruleContent:t.form.ruleContent,grade:t.form.grade,count:t.form.count,strategy:t.form.strategy,distFlag:t.form.distFlag?1:0,enableFlag:t.form.enableFlag?1:0};t.ruleId&&(a.rateLimiterId=t.ruleId),Object(l.a)("/gateway-manage//rule/ratelimiter/save",a).then(function(e){"0000"==e.data.code?(t.dialogVisible=!1,t.$emit("getList"),t.$emit("cancelAdd")):t.$message.error(e.data.message)})})},close:function(e){this.$refs[e].resetFields(),this.$emit("cancelAdd")}}},u={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:e.ruleId?"编辑流控规则":"新建流控规则",visible:e.dialogVisible,width:"400px"},on:{"update:visible":function(t){e.dialogVisible=t},close:function(t){return e.close("form")}}},[a("div",{staticClass:"dialog-body"},[a("el-form",{ref:"form",staticClass:"demo-ruleForm",attrs:{model:e.form,rules:e.rule,"label-width":"100px","label-position":"right"}},[a("el-form-item",{attrs:{label:"流控范围",prop:"rangeType"}},[[a("el-radio",{attrs:{label:0},model:{value:e.form.rangeType,callback:function(t){e.$set(e.form,"rangeType",t)},expression:"form.rangeType"}},[e._v("项目")]),e._v(" "),a("el-radio",{attrs:{label:1},model:{value:e.form.rangeType,callback:function(t){e.$set(e.form,"rangeType",t)},expression:"form.rangeType"}},[e._v("分组")]),e._v(" "),a("el-radio",{attrs:{label:2},model:{value:e.form.rangeType,callback:function(t){e.$set(e.form,"rangeType",t)},expression:"form.rangeType"}},[e._v("接口")])]],2),e._v(" "),a("el-form-item",{attrs:{label:"流控内容",prop:"projectId"}},[a("el-select",{attrs:{placeholder:"请选择项目"},on:{change:e.getGroupList},model:{value:e.form.projectId,callback:function(t){e.$set(e.form,"projectId",t)},expression:"form.projectId"}},e._l(e.projectList,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}),1)],1),e._v(" "),0!==e.form.rangeType?a("el-form-item",{attrs:{prop:"groupId"}},[a("el-select",{attrs:{placeholder:"请选择分组",disabled:""===e.form.projectId},on:{change:e.getApiList},model:{value:e.form.groupId,callback:function(t){e.$set(e.form,"groupId",t)},expression:"form.groupId"}},e._l(e.groupList,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}),1)],1):e._e(),e._v(" "),2===e.form.rangeType?a("el-form-item",{attrs:{prop:"interfaceId"}},[a("el-select",{attrs:{placeholder:"请选择接口",disabled:""===e.form.groupId},model:{value:e.form.interfaceId,callback:function(t){e.$set(e.form,"interfaceId",t)},expression:"form.interfaceId"}},e._l(e.apiList,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}),1)],1):e._e(),e._v(" "),a("el-form-item",{attrs:{label:"阈值类型",prop:"grade"}},[[a("el-radio",{attrs:{label:1},model:{value:e.form.grade,callback:function(t){e.$set(e.form,"grade",t)},expression:"form.grade"}},[e._v("QPS")])]],2),e._v(" "),a("el-form-item",{attrs:{label:"阈值",prop:"count"}},[a("el-input",{staticClass:"w-220",attrs:{placeholder:"请输入阈值"},model:{value:e.form.count,callback:function(t){e.$set(e.form,"count",t)},expression:"form.count"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"流控方式",prop:"rangeType"}},[[a("el-radio",{attrs:{label:0},model:{value:e.form.strategy,callback:function(t){e.$set(e.form,"strategy",t)},expression:"form.strategy"}},[e._v("快速失败")])]],2),e._v(" "),a("el-form-item",{attrs:{label:"分布式限流",prop:"count"}},[a("el-switch",{model:{value:e.form.distFlag,callback:function(t){e.$set(e.form,"distFlag",t)},expression:"form.distFlag"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"是否开启",prop:"count"}},[a("el-switch",{model:{value:e.form.enableFlag,callback:function(t){e.$set(e.form,"enableFlag",t)},expression:"form.enableFlag"}})],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){return e.close("form")}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitForm("form")}}},[e._v("确定")])],1)])},staticRenderFns:[]};var g=a("VU/8")(d,u,!1,function(e){a("0amw")},"data-v-7928b793",null).exports,m={props:{ruleId:{type:String,default:function(){return""}},alarmType:{type:Number,default:function(){return 0}},sceneCode:{type:String,default:function(){return""}}},data:function(){return{dialogVisible:!0,tableData:[],total:0,currentPage:1,pageSize:5}},created:function(){this.dialogVisible=!0,this.getList()},methods:{handleCurrentChange:function(e){this.currentPage=e,this.getList()},getList:function(){var e=this,t={ruleId:this.ruleId,sceneCode:this.sceneCode,alarmType:this.alarmType,currentPage:this.currentPage,pageSize:this.pageSize},a=this;Object(l.a)("/gateway-manage/rule/alarm/log",t).then(function(t){"0000"==t.data.code?t.data.result.result.length?(e.tableData=t.data.result.result,e.total=t.data.result.totalCount):(e.tableData=[],e.total=0):e.$message.error(t.data.message)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},close:function(){this.dialogVisible=!1,this.$emit("cancelLog")}}},f={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:1===e.alarmType?"流控日志":"熔断日志",visible:e.dialogVisible,width:"600px"},on:{"update:visible":function(t){e.dialogVisible=t},close:e.close}},[a("div",{staticClass:"dialog-body"},[a("el-table",{staticClass:"dialog-table",staticStyle:{width:"100%"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{prop:"alarmType",label:"告警类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.alarmType?a("div",[e._v("流控告警")]):e._e(),e._v(" "),2===t.row.alarmType?a("div",[e._v("熔断告警")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"alarmContent",label:1===e.alarmType?"流控内容":"熔断内容",width:"300px","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"updateTime",label:"发生时间"},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)))])]}}])})],1),e._v(" "),e.total>0?a("div",{staticClass:"page-content"},[a("el-pagination",{attrs:{small:"","current-page":e.currentPage,"page-size":e.pageSize,layout:"prev, pager, next",total:e.total},on:{"current-change":e.handleCurrentChange,"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t}}})],1):e._e()],1)])},staticRenderFns:[]};var p=a("VU/8")(m,f,!1,function(e){a("+Mqh")},"data-v-d52bf870",null).exports,h={props:{tableData:{type:Array,default:function(){return[]}},sceneCode:{type:String,default:function(){return""}}},components:{newRule:g,ahshLog:p},data:function(){return{showRuleDialog:!1,ruleId:"",showDialog:"",alarmType:1}},methods:{deleteList:function(e){var t=this,a=this,r={rateLimiterId:e.rateLimiterId};Object(l.a)("/gateway-manage/rule/ratelimiter/del",r).then(function(e){"0000"==e.data.code?t.getList():t.$message.error(e.data.message)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},getList:function(){this.$emit("getList")},changeFlag:function(e){var t=this,a={enableFlag:e.enableFlag?1:0,rateLimiterId:e.rateLimiterId};Object(l.a)("/gateway-manage/rule/ratelimiter/enable",a).then(function(a){"0000"==a.data.code?t.$emit("getList"):(e.enableFlag=!e.enableFlag,t.$message.error(a.data.message))})},edit:function(e){this.ruleId=e.rateLimiterId,this.showRuleDialog=!0},cancelAdd:function(){this.showRuleDialog=!1},seeLog:function(e){this.ruleId=e.rateLimiterId,this.showDialog=!0},cancelLog:function(){this.showDialog=!1}}},v={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{"margin-top":"20px"}},[a("div",{staticClass:"table-content"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark",height:e.tableHeight}},[a("el-table-column",{attrs:{label:"流控ID",prop:"ruleCode"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.ruleCode))]),e._v(" "),1===t.row.editeFlag?a("span",{staticClass:"sign-design"},[e._v("未发布")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"rangeType",label:"流控范围"},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.rangeType?a("p",[e._v("项目")]):e._e(),e._v(" "),1===t.row.rangeType?a("p",[e._v("分组")]):e._e(),e._v(" "),2===t.row.rangeType?a("p",[e._v("接口")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"ruleContent",label:"流控内容","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"grade",label:"阈值类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.grade?a("p",[e._v("QPS")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"count",label:"阈值"}}),e._v(" "),a("el-table-column",{attrs:{prop:"strategy",label:"流控方式"},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.strategy?a("p",[e._v("快速失败")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"grade",label:"分布式限流"},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.distFlag?a("p",[e._v("是")]):e._e(),e._v(" "),0===t.row.distFlag?a("p",[e._v("否")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"enableFlag",label:"开启状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{on:{change:function(a){return e.changeFlag(t.row)}},model:{value:t.row.enableFlag,callback:function(a){e.$set(t.row,"enableFlag",a)},expression:"scope.row.enableFlag"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.edit(t.row)}}},[e._v("编辑")]),e._v(" "),a("dm-delete",{attrs:{tips:"确定要删除该数据吗?"},on:{confirm:function(a){return e.deleteList(t.row)}}},[a("el-button",{attrs:{type:"text"}},[e._v("删除")])],1),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.seeLog(t.row)}}},[e._v("日志")])]}}])})],1)],1),e._v(" "),e.showRuleDialog?a("newRule",{attrs:{sceneCode:e.sceneCode,ruleId:e.ruleId},on:{cancelAdd:e.cancelAdd,getList:e.getList}}):e._e(),e._v(" "),e.showDialog?a("ahshLog",{attrs:{alarmType:e.alarmType,sceneCode:e.sceneCode,ruleId:e.ruleId},on:{cancelLog:e.cancelLog}}):e._e()],1)},staticRenderFns:[]};var b=a("VU/8")(h,v,!1,function(e){a("Twux")},"data-v-70574bb8",null).exports,y={props:{degradeId:{type:String,default:function(){return""}},sceneCode:{type:String,default:function(){return""}}},data:function(){return{dialogVisible:!0,projectList:[],groupList:[],apiList:[],form:{rangeType:0,rangeInfo:"",ruleContent:"",projectId:"",projectName:"",groupId:"",groupName:"",interfaceId:"",interfaceName:"",grade:1,count:"",timeWindow:"",enableFlag:!1},rule:{projectId:[{required:!0,message:"请选择项目",trigger:"change"}],groupId:[{required:!0,message:"请选择分组",trigger:"change"}],interfaceId:[{required:!0,message:"请选择接口",trigger:"change"}],count:[{required:!0,message:"请输入异常比例",trigger:"blur"},{validator:function(e,t,a){/^\d{0,8}\.{0,1}(\d{1,2})?$/.test(t)?a():a(new Error("请输入0-1且小数不超过两位的数字"))},trigger:"blur"}],timeWindow:[{required:!0,message:"请输入时间窗口",trigger:"blur"},{validator:function(e,t,a){/^(0|\+?[1-9][0-9]*)$/.test(t)?a():a(new Error("时间必须输入正整数"))},trigger:"blur"}]}}},created:function(){this.dialogVisible=!0,this.getProjectList(),this.degradeId&&this.getInfo()},methods:{getInfo:function(){var e=this,t=this,a={ruleId:this.degradeId};Object(l.a)("/gateway-manage/rule/degrade/detail",a).then(function(t){"0000"==t.data.code?(e.form.rangeType=t.data.result.rangeType,0===e.form.rangeType?e.getGroupList():1===e.form.rangeType?e.getGroupList():2===e.form.rangeType&&(e.getApiList(),e.getGroupList()),e.form.projectId=t.data.result.projectId,e.form.interfaceId=t.data.result.interfaceId,e.form.groupId=t.data.result.groupId,e.form.grade=t.data.result.grade,e.form.count=t.data.result.count,e.form.timeWindow=t.data.result.timeWindow,e.form.enableFlag=1===t.data.result.enableFlag):e.$message.error(t.data.message)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getProjectList:function(){var e=this,t=this;Object(l.a)("/gateway-manage/plugin/interface/tree",{}).then(function(t){"0000"==t.data.code?t.data.result?e.projectList=t.data.result:e.projectList=[]:e.$message.error(t.data.message)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getGroupList:function(){var e=this,t=this;this.form.groupId="",this.form.interfaceId="";var a={type:0,id:this.form.projectId};Object(l.a)("/gateway-manage/plugin/interface/tree",a).then(function(t){"0000"==t.data.code?t.data.result?e.groupList=t.data.result:e.groupList=[]:e.$message.error(t.data.message)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getApiList:function(){var e=this,t=this;this.form.interfaceId="";var a={type:1,id:this.form.groupId};Object(l.a)("/gateway-manage/plugin/interface/tree",a).then(function(t){"0000"==t.data.code?t.data.result?e.apiList=t.data.result:e.apiList=[]:e.$message.error(t.data.message)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},submitForm:function(e){var t=this,a=this;this.$refs[e].validate(function(e){if(!e)return!1;0===t.form.rangeType?(t.form.projectName=t.projectList.find(function(e){return e.id===t.form.projectId}).name,t.form.ruleContent=t.form.projectName,t.form.rangeInfo=t.form.projectId):1===t.form.rangeType?(t.form.projectName=t.projectList.find(function(e){return e.id===t.form.projectId}).name,t.form.groupName=t.groupList.find(function(e){return e.id===t.form.groupId}).name,t.form.ruleContent=t.form.projectName+"-"+t.form.groupName,t.form.rangeInfo=t.form.groupId):2===t.form.rangeType&&(t.form.projectName=t.projectList.find(function(e){return e.id===t.form.projectId}).name,t.form.groupName=t.groupList.find(function(e){return e.id===t.form.groupId}).name,t.form.interfaceName=t.apiList.find(function(e){return e.id===t.form.interfaceId}).name,t.form.ruleContent=t.form.projectName+"-"+t.form.groupName+"-"+t.form.interfaceName,t.form.rangeInfo=t.form.interfaceId);var r={sceneCode:t.sceneCode,rangeType:t.form.rangeType,rangeInfo:t.form.rangeInfo,ruleContent:t.form.ruleContent,grade:t.form.grade,count:t.form.count,timeWindow:t.form.timeWindow,enableFlag:t.form.enableFlag?1:0};t.degradeId&&(r.degradeId=t.degradeId),Object(l.a)("/gateway-manage/rule/degrade/save",r).then(function(e){"0000"==e.data.code?(t.dialogVisible=!1,t.$emit("cancelAddFlus"),t.$emit("getList")):t.$message.error(e.data.message)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})})},close:function(e){this.$refs[e].resetFields(),this.$emit("cancelAddFlus")}}},I={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:e.degradeId?"编辑熔断规则":"新建熔断规则",visible:e.dialogVisible,width:"400px"},on:{"update:visible":function(t){e.dialogVisible=t},close:function(t){return e.close("form")}}},[a("div",{staticClass:"dialog-body"},[a("el-form",{ref:"form",staticClass:"demo-ruleForm",attrs:{model:e.form,rules:e.rule,"label-width":"100px","label-position":"right"}},[a("el-form-item",{attrs:{label:"熔断范围",prop:"rangeType"}},[[a("el-radio",{attrs:{label:0},model:{value:e.form.rangeType,callback:function(t){e.$set(e.form,"rangeType",t)},expression:"form.rangeType"}},[e._v("项目")]),e._v(" "),a("el-radio",{attrs:{label:1},model:{value:e.form.rangeType,callback:function(t){e.$set(e.form,"rangeType",t)},expression:"form.rangeType"}},[e._v("分组")]),e._v(" "),a("el-radio",{attrs:{label:2},model:{value:e.form.rangeType,callback:function(t){e.$set(e.form,"rangeType",t)},expression:"form.rangeType"}},[e._v("接口")])]],2),e._v(" "),a("el-form-item",{attrs:{label:"熔断内容",prop:"projectId"}},[a("el-select",{attrs:{placeholder:"请选择项目"},on:{change:e.getGroupList},model:{value:e.form.projectId,callback:function(t){e.$set(e.form,"projectId",t)},expression:"form.projectId"}},e._l(e.projectList,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}),1)],1),e._v(" "),0!==e.form.rangeType?a("el-form-item",{attrs:{prop:"groupId"}},[a("el-select",{attrs:{placeholder:"请选择分组",disabled:""===e.form.projectId},on:{change:e.getApiList},model:{value:e.form.groupId,callback:function(t){e.$set(e.form,"groupId",t)},expression:"form.groupId"}},e._l(e.groupList,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}),1)],1):e._e(),e._v(" "),2===e.form.rangeType?a("el-form-item",{attrs:{prop:"interfaceId"}},[a("el-select",{attrs:{placeholder:"请选择接口",disabled:""===e.form.groupId},model:{value:e.form.interfaceId,callback:function(t){e.$set(e.form,"interfaceId",t)},expression:"form.interfaceId"}},e._l(e.apiList,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}),1)],1):e._e(),e._v(" "),a("el-form-item",{attrs:{label:"阈值类型",prop:"grade"}},[[a("el-radio",{attrs:{label:1},model:{value:e.form.grade,callback:function(t){e.$set(e.form,"grade",t)},expression:"form.grade"}},[e._v("异常比例")])]],2),e._v(" "),a("el-form-item",{attrs:{label:"异常比例",prop:"count"}},[a("el-input",{staticClass:"w-220",attrs:{placeholder:"请输入异常比例"},model:{value:e.form.count,callback:function(t){e.$set(e.form,"count",t)},expression:"form.count"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"时间窗口",prop:"timeWindow"}},[a("el-input-number",{staticClass:"w-220",attrs:{placeholder:"请输入时间窗口","controls-position":"right"},model:{value:e.form.timeWindow,callback:function(t){e.$set(e.form,"timeWindow",t)},expression:"form.timeWindow"}}),e._v(" 秒\n ")],1),e._v(" "),a("el-form-item",{attrs:{label:"是否开启",prop:"enableFlag"}},[a("el-switch",{model:{value:e.form.enableFlag,callback:function(t){e.$set(e.form,"enableFlag",t)},expression:"form.enableFlag"}})],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){return e.close("form")}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitForm("form")}}},[e._v("确定")])],1)])},staticRenderFns:[]};var w=a("VU/8")(y,I,!1,function(e){a("FtC4")},"data-v-ba38da90",null).exports,C={props:{tableData:{type:Array,default:function(){return[]}},sceneCode:{type:String,default:function(){return""}}},data:function(){return{showFlusDialog:!1,showDialog:!1,alarmType:2}},methods:{deleteList:function(e){var t=this,a=this,r={degradeId:e.degradeId};Object(l.a)("/gateway-manage/rule/degrade/del",r).then(function(e){"0000"==e.data.code?t.getList():t.$message.error(e.data.message)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},getList:function(){this.$emit("getList")},edit:function(e){this.degradeId=e.degradeId,this.showFlusDialog=!0},cancelAddFlus:function(){this.showFlusDialog=!1},changeFlag:function(e){var t=this,a=this,r={enableFlag:e.enableFlag?1:0,degradeId:e.degradeId};Object(l.a)("/gateway-manage/rule/degrade/enable",r).then(function(a){"0000"==a.data.code?t.$emit("getList"):(e.enableFlag=!e.enableFlag,t.$message.error(a.data.message))}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},seeLog:function(e){this.ruleId=e.degradeId,this.showDialog=!0},cancelLog:function(){this.showDialog=!1}},components:{newSet:w,ahshLog:p}},L={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{"margin-top":"20px"}},[a("div",{staticClass:"table-content"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark",height:e.tableHeight}},[a("el-table-column",{attrs:{label:"熔断ID",prop:"ruleCode"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.ruleCode))]),e._v(" "),1===t.row.editeFlag?a("span",{staticClass:"sign-design"},[e._v("未发布")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"rangeType",label:"熔断范围"},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.rangeType?a("p",[e._v("项目")]):e._e(),e._v(" "),1===t.row.rangeType?a("p",[e._v("分组")]):e._e(),e._v(" "),2===t.row.rangeType?a("p",[e._v("接口")]):e._e(),e._v(" "),3===t.row.rangeType?a("p",[e._v("其他")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"ruleContent",label:"熔断内容","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"grade",label:"阈值类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.grade?a("p",[e._v("异常比例")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"count",label:"阈值"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("p",[e._v(e._s(100*t.row.count)+"%")])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"timeWindow",label:"时间窗口"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("p",[e._v(e._s(t.row.timeWindow)+"秒")])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"enableFlag",label:"开启状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{on:{change:function(a){return e.changeFlag(t.row)}},model:{value:t.row.enableFlag,callback:function(a){e.$set(t.row,"enableFlag",a)},expression:"scope.row.enableFlag"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.edit(t.row)}}},[e._v("编辑")]),e._v(" "),a("dm-delete",{attrs:{tips:"确定要删除该数据吗?"},on:{confirm:function(a){return e.deleteList(t.row)}}},[a("el-button",{attrs:{type:"text"}},[e._v("删除")])],1),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.seeLog(t.row)}}},[e._v("日志")])]}}])})],1)],1),e._v(" "),e.showFlusDialog?a("newSet",{attrs:{sceneCode:e.sceneCode,degradeId:e.degradeId},on:{cancelAddFlus:e.cancelAddFlus,getList:e.getList}}):e._e(),e._v(" "),e.showDialog?a("ahshLog",{attrs:{sceneCode:e.sceneCode,ruleId:e.ruleId,alarmType:e.alarmType},on:{cancelLog:e.cancelLog}}):e._e()],1)},staticRenderFns:[]};var _=a("VU/8")(C,L,!1,function(e){a("DAuE")},"data-v-cd61b720",null).exports,F={props:{alarmType:{type:Number,default:function(){return 0}},sceneCode:{type:String,default:function(){return""}}},data:function(){return{dialogVisible:!0,tableData:[],total:0,currentPage:1,pageSize:5}},created:function(){this.dialogVisible=!0,this.getList()},methods:{handleCurrentChange:function(e){this.currentPage=e,this.getList()},getList:function(){var e=this,t={sceneCode:this.sceneCode,alarmType:this.alarmType,currentPage:this.currentPage,pageSize:this.pageSize},a=this;Object(l.a)("/gateway-manage/rule/alarm/log",t).then(function(t){"0000"==t.data.code?t.data.result.result.length?(e.tableData=t.data.result.result,e.total=t.data.result.totalCount):(e.tableData=[],e.total=0):e.$message.error(t.data.message)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},close:function(){this.dialogVisible=!1,this.$emit("cancelLog")}}},j={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"日志",visible:e.dialogVisible,width:"600px"},on:{"update:visible":function(t){e.dialogVisible=t},close:e.close}},[a("div",{staticClass:"dialog-body"},[a("el-table",{staticClass:"dialog-table",staticStyle:{width:"100%"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{prop:"alarmType",label:"告警类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.alarmType?a("div",[e._v("流控告警")]):e._e(),e._v(" "),2===t.row.alarmType?a("div",[e._v("熔断告警")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"alarmContent",label:"告警内容",width:"300px","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"updateTime",label:"发生时间"},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)))])]}}])})],1),e._v(" "),e.total>0?a("div",{staticClass:"page-content"},[a("el-pagination",{attrs:{small:"","current-page":e.currentPage,"page-size":e.pageSize,layout:"prev, pager, next",total:e.total},on:{"current-change":e.handleCurrentChange,"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t}}})],1):e._e()],1)])},staticRenderFns:[]};var A=a("VU/8")(F,j,!1,function(e){a("pj1/")},"data-v-d3b90fa2",null).exports,D={props:{tableData:{type:Array,default:function(){return[]}},sceneCode:{type:String,default:function(){return""}}},data:function(){return{showDialog:!1,refash:!1}},methods:{handleChange:function(e){this.$emit("changeFlag",e)},seeLog:function(e){this.ruleId=e.sceneCode,this.alarmType=e.alarmType,this.showDialog=!0},cancelLog:function(){this.showDialog=!1},editItemm:function(e){var t=this,a=this;if(this.refash=!this.refash,e.editStatus=!e.editStatus,!e.editStatus){var r={alarmType:e.alarmType,alarmInfo:e.alarmInfo,sceneCode:this.sceneCode};Object(l.a)("/gateway-manage/rule/alarm/edit",r).then(function(a){"0000"==a.data.code?(t.$emit("getList"),t.$message.success("保存成功")):(e.editStatus=!e.editStatus,t.$message.error(a.data.message))}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})}}},components:{alarmLog:A}},T={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticStyle:{"margin-top":"20px"}},[r("div",{staticClass:"list-content"},e._l(e.tableData,function(t,n){return r("div",{key:n,staticClass:"list-item"},[r("div",{staticClass:"item-top"},[1===t.alarmType?r("img",{attrs:{src:a("vgET"),alt:""}}):e._e(),e._v(" "),2===t.alarmType?r("img",{attrs:{src:a("8PC5"),alt:""}}):e._e(),e._v(" "),r("div",{staticClass:"item-info"},[r("p",{staticClass:"info-type"},[e._v(e._s(1===t.alarmType?"流控告警":"熔断告警"))]),e._v(" "),r("p",{staticClass:"name"},[e._v("Webhook通知地址")]),e._v(" "),r("div",{staticClass:"address"},[t.editStatus?r("el-input",{staticStyle:{width:"368px",height:"78px"},attrs:{type:"textarea",resize:"none",placeholder:"请输入内容"},model:{value:t.alarmInfo,callback:function(a){e.$set(t,"alarmInfo",a)},expression:"item.alarmInfo"}}):r("p",[e._v(e._s(t.alarmInfo))])],1)])]),e._v(" "),r("div",{staticClass:"item-bottom"},[r("div",[r("p",{on:{click:function(a){return e.editItemm(t)}}},[e._v(e._s(t.editStatus?"保存":"编辑")+"Webhook通知地址")]),e._v(" "),r("p",{on:{click:function(a){return e.seeLog(t)}}},[e._v("日志")])]),e._v(" "),r("span",{staticStyle:{display:"none"}},[e._v(e._s(e.refash))]),e._v(" "),r("el-switch",{on:{change:function(a){return e.handleChange(t)}},model:{value:t.enableFlag,callback:function(a){e.$set(t,"enableFlag",a)},expression:"item.enableFlag"}})],1)])}),0),e._v(" "),e.showDialog?r("alarmLog",{attrs:{alarmType:e.alarmType,sceneCode:e.sceneCode},on:{cancelLog:e.cancelLog}}):e._e()],1)},staticRenderFns:[]};var S=a("VU/8")(D,T,!1,function(e){a("bBUd")},"data-v-fd99d76e",null).exports,k={name:"envManage",components:{navBread:s.a,selectEnv:c.a,fluidList:b,fusingList:_,warnSet:S,newRule:g,newSet:w},data:function(){return{navPath:[{name:"插件管理",path:"/pluginManage"},{name:"AHAS",path:""}],activeName:"first",search:"",showdialog:!1,pluginId:"",sceneCode:"",pluginType:0,projectList:[],projectId:"",groupList:[],groupId:"",total:0,currentPage:1,pageSize:20,pageSizes:[20,40,60,80],tableData:[],loading:!1,showRuleDialog:!1,showFlusDialog:!1,publishNum:0}},created:function(){this.pluginId=this.$route.query.pluginId,this.sceneCode=this.$route.query.sceneCode,this.getProjectList(),this.getList()},methods:{handleClick:function(e,t){this.search="",this.projectId="",this.groupId="",this.getList()},goEnvList:function(){this.showdialog=!0,this.pluginId=this.pluginId},closeDialog:function(){this.showdialog=!1},handleSizeChange:function(e){this.pageSize=e,this.getList()},handleCurrentChange:function(e){this.currentPage=e,this.getList()},getChange:function(){this.groupId="",this.currentPage=1,this.getGroupList(),this.getList()},getSearchList:function(){"first"!==this.activeName&&"second"!==this.activeName||(this.currentPage=1,this.getGroupList(),this.getList())},getList:function(){var e=this,t="",a={};"first"===this.activeName?(t="/gateway-manage/rule/ratelimiter/list",a={projectId:this.projectId?this.projectId:null,groupId:this.groupId?this.groupId:null,search:this.search?this.search:null,sceneCode:this.sceneCode,currentPage:this.currentPage,pageSize:this.pageSize}):"second"===this.activeName?(t="/gateway-manage/rule/degrade/list",a={projectId:this.projectId?this.projectId:null,groupId:this.groupId?this.groupId:null,search:this.search?this.search:null,sceneCode:this.sceneCode,currentPage:this.currentPage,pageSize:this.pageSize}):"third"===this.activeName&&(t="/gateway-manage/rule/alarm/list",a={sceneCode:this.sceneCode}),this.tableData=[],this.loading=!0;var r=this;Object(l.a)(t,a).then(function(t){if("0000"==t.data.code){if("first"===e.activeName){t.data.result.result?(e.tableData=t.data.result.result,e.total=t.data.result.totalCount):(e.total=0,e.tableData=[]);var a=!0,r=!1,n=void 0;try{for(var o,s=i()(e.tableData);!(a=(o=s.next()).done);a=!0){var l=o.value;l.enableFlag=1===l.enableFlag}}catch(e){r=!0,n=e}finally{try{!a&&s.return&&s.return()}finally{if(r)throw n}}}else if("second"===e.activeName){t.data.result.result?(e.tableData=t.data.result.result,e.total=t.data.result.totalCount):(e.total=0,e.tableData=[]);var c=!0,d=!1,u=void 0;try{for(var g,m=i()(e.tableData);!(c=(g=m.next()).done);c=!0){var f=g.value;f.enableFlag=1===f.enableFlag}}catch(e){d=!0,u=e}finally{try{!c&&m.return&&m.return()}finally{if(d)throw u}}}else if("third"===e.activeName){t.data.result?e.tableData=t.data.result:e.tableData=[];var p=!0,h=!1,v=void 0;try{for(var b,y=i()(e.tableData);!(p=(b=y.next()).done);p=!0){var I=b.value;I.enableFlag=1===I.enableFlag,I.editStatus=!1}}catch(e){h=!0,v=e}finally{try{!p&&y.return&&y.return()}finally{if(h)throw v}}}e.loading=!1,e.getUpdateStatus()}else e.$message.error(t.data.message)}).catch(function(e){r.$message.error({duration:1e3,message:e.message})})},changeFlag:function(e){var t=this,a=this,r={alarmType:e.alarmType,enableFlag:e.enableFlag?1:0,sceneCode:this.sceneCode};Object(l.a)("/gateway-manage/rule/alarm/enable",r).then(function(a){"0000"==a.data.code?t.getList():(e.enableFlag=!e.enableFlag,t.$message.error(a.data.message))}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},getProjectList:function(){var e=this,t=this;Object(l.a)("/gateway-manage/plugin/interface/tree",{}).then(function(t){"0000"==t.data.code?t.data.result?e.projectList=t.data.result:e.projectList=[]:e.$message.error(t.data.message)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getGroupList:function(){var e=this,t=this,a={type:0,id:this.projectId};Object(l.a)("/gateway-manage/plugin/interface/tree",a).then(function(t){"0000"==t.data.code?t.data.result?e.groupList=t.data.result:e.groupList=[]:e.$message.error(t.data.message)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},addFluid:function(){this.showRuleDialog=!0},cancelAdd:function(){this.showRuleDialog=!1},addFusing:function(){this.showFlusDialog=!0},cancelAddFlus:function(){this.showFlusDialog=!1},publish:function(){var e=this,t={sceneCode:this.sceneCode},a="";"first"===this.activeName?a="/gateway-manage/rule/ratelimiter/publish":"second"===this.activeName&&(a="/gateway-manage/rule/degrade/publish");var r=this;this.$confirm("确定要发布吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(l.a)(a,t).then(function(t){"0000"==t.data.code?e.getList():e.$message.error(t.data.message)}).catch(function(e){r.$message.error({duration:1e3,message:e.message})})}).catch(function(){e.$message({type:"info",message:"已取消发布"})})},getUpdateStatus:function(e){var t=this,a={sceneCode:e||this.sceneCode},r="";r="first"===this.activeName?"/gateway-manage/rule/ratelimiter/has/edit":"/gateway-manage/rule/degrade/has/edit",Object(l.a)(r,a).then(function(e){"0000"==e.data.code?t.publishNum=e.data.result:t.$message.error(e.data.message)})}},watch:n()({$route:{handler:function(e,t){},deep:!0}},"$route",function(e,t){this.pluginId=this.$route.query.pluginId,this.sceneCode=this.$route.query.sceneCode,this.getList()})},N={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}}),e._v(" "),a("div",{staticClass:"change-env",on:{click:e.goEnvList}},[a("span",[e._v("切换环境")]),a("i",{staticClass:"iconfont iconicon-qihuan",on:{click:function(t){return e.goEnvList(e.item)}}})])],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"}},["third"!==e.activeName?a("div",{staticClass:"search-box"},[a("div",{staticClass:"left"},[a("el-input",{staticClass:"w-320",attrs:{placeholder:"first"===e.activeName?"请输入接口名称/流控ID":"请输入接口名称/熔断ID","prefix-icon":"el-icon-search",clearable:""},on:{clear:function(t){return e.getSearchList()}},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.getSearchList()}},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}}),e._v(" "),a("el-select",{staticClass:"w-140 marginLeft10",staticStyle:{display:"inline-block"},attrs:{placeholder:"请选择项目",size:"small",clearable:""},on:{change:e.getChange},model:{value:e.projectId,callback:function(t){e.projectId=t},expression:"projectId"}},e._l(e.projectList,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}),1),e._v(" "),a("el-select",{staticClass:"w-140 marginLeft10",staticStyle:{display:"inline-block"},attrs:{placeholder:"请选择分组",size:"small",clearable:"",disabled:""===e.projectId},on:{change:e.getSearchList},model:{value:e.groupId,callback:function(t){e.groupId=t},expression:"groupId"}},e._l(e.groupList,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}),1)],1),e._v(" "),a("div",["first"===e.activeName?a("el-button",{attrs:{type:"primary"},on:{click:e.addFluid}},[e._v("新建流控规则")]):e._e(),e._v(" "),"second"===e.activeName?a("el-button",{attrs:{type:"primary"},on:{click:e.addFusing}},[e._v("新建熔断规则")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"primary",disabled:e.publishNum<=0},on:{click:e.publish}},[e._v(e._s(e.publishNum>0?"待发布("+e.publishNum+")":"发布"))])],1)]):e._e(),e._v(" "),a("el-tab-pane",{attrs:{label:"流控规则",name:"first"}},["first"===e.activeName?a("fluidList",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{tableData:e.tableData,sceneCode:e.sceneCode},on:{getList:e.getList}}):e._e()],1),e._v(" "),a("el-tab-pane",{attrs:{label:"熔断规则",name:"second"}},["second"===e.activeName?a("fusingList",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{tableData:e.tableData,sceneCode:e.sceneCode},on:{getList:e.getList}}):e._e()],1),e._v(" "),a("el-tab-pane",{attrs:{label:"告警配置",name:"third"}},["third"===e.activeName?a("warnSet",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{tableData:e.tableData,sceneCode:e.sceneCode},on:{getList:e.getList,changeFlag:e.changeFlag}}):e._e()],1)],1),e._v(" "),0===e.total||"first"!==e.activeName&&"second"!==e.activeName?e._e():a("div",{staticStyle:{"text-align":"right","margin-top":"20px"}},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":e.pageSizes,"page-size":e.pageSize,layout:"total, sizes, prev, pager, next",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)],1)])]),e._v(" "),e.showdialog?a("selectEnv",{attrs:{pluginId:e.pluginId,pluginType:e.pluginType},on:{closeDialog:e.closeDialog}}):e._e(),e._v(" "),e.showRuleDialog?a("newRule",{attrs:{sceneCode:e.sceneCode},on:{cancelAdd:e.cancelAdd,getList:e.getList}}):e._e(),e._v(" "),e.showFlusDialog?a("newSet",{attrs:{sceneCode:e.sceneCode},on:{cancelAddFlus:e.cancelAddFlus,getList:e.getList}}):e._e()],1)},staticRenderFns:[]};var x=a("VU/8")(k,N,!1,function(e){a("Alw0")},"data-v-57a03d4d",null);t.default=x.exports},Twux:function(e,t){},bBUd:function(e,t){},"pj1/":function(e,t){},vgET:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAACMxJREFUWAmVmFuMVWcVx/97n3NmYG4Mc0EYYJqAQsslVE28pBqsl0hsm2hifDLGxtgaExMffPJF44OtD9XExNrUZ99I1FBNK5H6IGosKbRAOyAjZRhpuA04AzPAzDnb/2/t/Z2ZAUrKgr2/2/rW+q/Lt/Z3JtNd6PPPFqt6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l/s0aEN8e7I2kpijjodIJJcAiw083Ld9kwyqAwsAfHXDCreBzHPJzcFZvfDUPgN69U1p1yYn8XrnjU8avHw2Tp2Tjk24HjljOH1DXfpSR0N/uzwnVyQTV2CDs3fiVzD5E6iqm1UdryCMbEcAsH1VKCkWq35qWPP8NdeYv/ub9Y+x2F7uZb8NggVZQebtq+tTK7t98q/rOB9TfvOZLX4wkM0hsvJQnP60F0XtXCJsHofXLDn1o2UtzS3tM+dx1DBksZ85Pz5N20Z79WnXJIIRN1DAEE/2OKTj/vnin38JzZLNSUi0fgVI1quFNL8MJOuASzxL2sTn4752Y68eW9mpOmD9s5t0KoxiqmtIzxgbnvMMr/Bb1XgihFcKQjZzfpL1oYR19rN2e8vckicZ5VO2cl2Pvty/Qt2+NXLqbrXq+tlvv55NAyPyKZyERHeqJloYlgq9o790PYFLLWCWrLdlucOfb0j2NV0a9t9fXtj3vew061AkNRsBE8DcjbFfll3OuUOyAug9ic2s06aNgPM4wpA2mifJ6u3Q3hefzg6mJVq+u3EikMXTHlsQsiGAEKo4OVV7V3AIYBMIqj7DZbwxEaH51XNPZs97eRnVbcFh86xKMhIK9gUlIFgLkx8UxDr9iq3N73GcGnghM0QZqVq+We6e7Nuk78f6ba//AxcahJX31IAzAAAAAElFTkSuQmCC"}});
\ No newline at end of file
webpackJsonp([5],{Hvnz:function(e,t){},IvlK:function(e,t){},RPCm:function(e,t){},aXU0: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"),r=a.n(i),s=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,sceneCode:""}}}},data:function(){return{customDialog:!1,formData:{interfaceVersionId:"",version:"",status:"",description:"",proxyType:"",sceneCode:""},rules:{sceneCode:[{required:!0,message:"请选择环境",trigger:"change"}]},envOptions:[]}},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;if(t.editRow.sceneCode==t.formData.sceneCode)return l.a.showmsg("已经在当前环境","warning"),!1;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(s.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.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},setData:function(e){this.$emit("hideSyncDialog")},getEnvData:function(){var e=this;Object(s.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(r()(e))}},mounted:function(){this.getEnvData(),this.customDialog=this.syncShow,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:"同步",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("Hvnz")},"data-v-2e7c53b8",null).exports,h=a("fZjL"),m=a.n(h),p={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:[],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("/apiListManageShow?editFlag=0&interfaceId="+t.interfaceId+"&interfaceName="+t.interfaceName+"&interfaceVersionId="+t.interfaceVersionId+"&publishRecordId="+t.publishRecordId+"&projectId="+t.projectId+"&projectName="+this.$route.query.projectName+"&interfaceGroupId="+t.interfaceGroupId+"&interfaceGroupName="+this.$route.query.interfaceGroupName)},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(s.a)("/gateway-manage/page-api-publish-record",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})})}},watch:{recordShow:function(e,t){this.customDialog=e},editRow:function(e,t){this.formData=JSON.parse(r()(e)),m()(e).length&&this.getData()}},mounted:function(){this.customDialog=this.recordShow,this.formData=JSON.parse(r()(this.editRow))}},g={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:"publishRecordId",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.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("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 v=a("VU/8")(p,g,!1,function(e){a("aXU0")},"data-v-18fba535",null).exports,b=a("jvWE"),w={name:"env-set-list",components:{publishSet:n.a,syncSet:f,recordList:v},data:function(){return{searchValue:"",status:"",statusOptions:[{label:"所有发布状态",value:""},{label:"待发布",value:"1"},{label:"发布",value:"2"},{label:"下线",value:"4"},{label:"上线",value:"5"}],sceneCode:"",envOptions:[],tableData:[],pageSize:20,currentPage:1,totalCount:0,syncShow:!1,editRow:{},publishShow:!1,recordShow:!1}},methods:{searchData:Object(b.a)(function(e){this.currentPage,this.getData()},500),clearInput:function(){this.currentPage=1,this.getData()},changeStatus: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",interfaceVersionId:e.interfaceVersionId};Object(s.a)("/gateway-manage/set-default-version-api",o).then(function(e){var t=e.data;if("0000"==t.code)return l.a.showmsg("设置成功","success"),a.currentPage=1,void a.getData();c.a.errorMsg(t)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},handlePublish:function(e,t){this.publishShow=!0,this.editRow=t},hidePublishDialog:function(){this.getData(),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?editFlag=1&interfaceId="+this.$route.query.interfaceId+"&interfaceName="+this.$route.query.interfaceName+"&projectId="+t.projectId+"&projectName="+this.$route.query.projectName+"&interfaceGroupId="+t.interfaceGroupId+"&interfaceGroupName="+this.$route.query.interfaceGroupName+"&interfaceVersionId="+t.interfaceVersionId)},handleEdit:function(e,t){this.$router.push("/createApi?projectId="+t.projectId+"&projectName="+this.$route.query.projectName+"&interfaceGroupId="+t.interfaceGroupId+"&interfaceGroupName="+this.$route.query.interfaceGroupName+"&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={interfaceVersionId:t.interfaceVersionId};Object(s.a)("/gateway-manage/offline-api",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})})},handleUp:function(e,t){var a=this;a.$confirm("确认将【"+t.version+"】版本的【"+a.$route.query.interfaceName+"】API上线吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postUpData(e,t)}).catch(function(){})},postUpData:function(e,t){var a=this,o={interfaceVersionId:t.interfaceVersionId};Object(s.a)("/gateway-manage/online-api",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})})},getEnvData:function(){var e=this;Object(s.a)("/gateway-manage/list-all-scene",{}).then(function(t){var a=t.data;if("0000"==a.code)return e.envOptions=a.result||[],void(a.result.length&&(a.result.forEach(function(t){1==t.defaultFlag&&(e.sceneCode=t.sceneCode)}),e.$nextTick(function(){e.getData()})));c.a.errorMsg(a)}).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,status:e.status,interfaceId:e.$route.query.interfaceId};Object(s.a)("/gateway-manage/page-api-version-record",t).then(function(t){var a=t.data;if("0000"==a.code)return e.tableData=a.result.result||[],a.result.result.length&&a.result.result.forEach(function(e){e.defaultFlag=1==e.defaultFlag}),void(e.totalCount=a.result.totalCount);c.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getEnvData()}},_={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("div",{staticClass:"font-0"},[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("el-select",{staticClass:"w-137 m-l-10",attrs:{placeholder:"请选择"},on:{change:e.changeStatus},model:{value:e.status,callback:function(t){e.status=t},expression:"status"}},e._l(e.statusOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}))],1),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)]),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.stateName)+"\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[t.row.publishTime?a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.publishTime)))]):e._e(),e._v(" "),t.row.publishTime?a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.publishTime)))]):e._e()]}}])}),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:{disabled:2==t.row.status&&1!=t.row.updateAfterPublish||4==t.row.status,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(" "),5==t.row.status||t.row.status<4?a("el-button",{attrs:{disabled:2!=t.row.status&&1!=t.row.updateAfterPublish,type:"text"},on:{click:function(a){e.handleDown(t.$index,t.row)}}},[e._v("下线")]):e._e(),e._v(" "),4==t.row.status?a("el-button",{attrs:{type:"text"},on:{click:function(a){e.handleUp(t.$index,t.row)}}},[e._v("上线")]):e._e(),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 D=a("VU/8")(w,_,!1,function(e){a("IvlK")},"data-v-599a24f8",null).exports,y={name:"publish-list",data:function(){return{navPath:[{name:"发布记录",path:""}],searchValue:"",tableData:[],pageSize:20,currentPage:1,totalCount:0}},methods:{searchData:Object(b.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?editFlag=0&interfaceId="+this.$route.query.interfaceId+"&interfaceName="+this.$route.query.interfaceName+"&projectId="+t.projectId+"&projectName="+this.$route.query.projectName+"&interfaceGroupId="+t.interfaceGroupId+"&interfaceGroupName="+this.$route.query.interfaceGroupName+"&interfaceVersionId="+t.interfaceVersionId+"&publishRecordId="+t.publishRecordId)},getData:function(){var e=this,t={pageNum:e.currentPage,pageSize:e.pageSize,interfaceId:e.$route.query.interfaceId};Object(s.a)("/gateway-manage/page-api-publish-record",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})})}},watch:{$route:{handler:function(e,t){},deep:!0}},mounted:function(){var e=this;e.$nextTick(function(){e.getData()}),e.$emit("showTab",4)}},C={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:"publishRecordId",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.version)+"\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.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("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 S=a("VU/8")(y,C,!1,function(e){a("RPCm")},"data-v-1c63b1ba",null).exports,$={name:"apiListManage",components:{navBread:o.a,versionList:D,publishList:S},data:function(){return{navPath:[{name:"API管理",path:"/apiProgram"},{name:this.$route.query.projectName?this.$route.query.projectName+"项目列表":"",path:"/apiProgramGroup"},{name:this.$route.query.interfaceGroupName?this.$route.query.interfaceGroupName+"分组列表":"",path:"/groupApiList"},{name:this.$route.query.interfaceName?""+this.$route.query.interfaceName:"",path:"/apiListManage"},{name:"管理",path:""}],activeName:"first"}},methods:{handleClick:function(e,t){"first"==e.name?this.$refs.versionList.getData():this.$refs.publishList.getData()},getNavBarData:function(){var e=this,t={interfaceId:e.$route.query.interfaceId};Object(s.a)("/gateway-manage/get-bar",t).then(function(t){var a=t.data;"0000"!=a.code?errMsg.errorMsg(a):e.navPath=[{name:"API管理",path:"/apiProgram"},{name:"API列表",path:"/apiList"},{name:"管理",path:""}]}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{$route:{handler:function(e,t){},deep:!0}},mounted:function(){this.$emit("showTab",21)}},x={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",{ref:"versionList"})],1),e._v(" "),a("el-tab-pane",{attrs:{label:"发布记录",name:"second"}},[a("publish-list",{ref:"publishList"})],1)],1)],1)])])])},staticRenderFns:[]};var I=a("VU/8")($,x,!1,function(e){a("fxvE")},"data-v-750fa0e6",null);t.default=I.exports},fxvE:function(e,t){},ripu:function(e,t){},znuk:function(e,t,a){"use strict";var o=a("mvHQ"),n=a.n(o),i=a("Kkt8"),r=a("P9l9"),s=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(r.a)("/gateway-manage/publish-api",t).then(function(t){var a=t.data;if("0000"==a.code)return s.a.showmsg("发布成功","success"),void e.setData();l.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},setData:function(e){this.$emit("hidePublishDialog",!0)}},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("ripu")},"data-v-68ac51f7",null);t.a=d.exports}});
\ No newline at end of file
webpackJsonp([5],{"7Jbw":function(e,t){},"ASE+":function(e,t){},dAfO:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("bOdI"),i=a.n(r),n=a("319J"),o=a("P9l9"),s=a("PEkr"),l={props:{tableData:{type:Array,default:function(){return[]}}},data:function(){return{}},methods:{cancelBind:function(e){var t=this,a=this,r={id:e.openPlatformInterfaceId};Object(o.a)("/gateway-manage/platform/white/unbind",r).then(function(e){"0000"==e.data.code?t.$emit("getList"):t.$message.error(e.data.message)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})}},components:{}},c={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{"margin-top":"20px"}},[a("div",{staticClass:"table-content"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark",height:e.tableHeight}},[a("el-table-column",{attrs:{label:"项目名称",prop:"projectName"}}),e._v(" "),a("el-table-column",{attrs:{label:"分组",prop:"groupName"}}),e._v(" "),a("el-table-column",{attrs:{label:"接口名称",prop:"interfaceName"}}),e._v(" "),a("el-table-column",{attrs:{label:"绑定时间",prop:"bindTime"},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.bindTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.bindTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("dm-delete",{attrs:{tips:"确定要解除绑定吗?"},on:{confirm:function(a){return e.cancelBind(t.row)}}},[a("el-button",{attrs:{type:"text"}},[e._v("解除绑定")])],1)]}}])})],1)],1)])},staticRenderFns:[]};var d=a("VU/8")(l,c,!1,function(e){a("xU1Q")},"data-v-f1de626e",null).exports,u={props:{tableData:{type:Array,default:function(){return[]}}},data:function(){return{}},methods:{cancelBind:function(e){var t=this,a=this,r={id:e.openPlatformInterfaceId};Object(o.a)("/gateway-manage/platform/capacity/unbind",r).then(function(e){"0000"==e.data.code?t.$emit("getList"):t.$message.error(e.data.message)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})}},components:{}},g={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{"margin-top":"20px"}},[a("div",{staticClass:"table-content"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark",height:e.tableHeight}},[a("el-table-column",{attrs:{label:"项目名称",prop:"projectName"}}),e._v(" "),a("el-table-column",{attrs:{label:"分组",prop:"groupName"}}),e._v(" "),a("el-table-column",{attrs:{label:"接口名称",prop:"interfaceName"}}),e._v(" "),a("el-table-column",{attrs:{label:"绑定时间",prop:"bindTime"},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.bindTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.bindTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("dm-delete",{attrs:{tips:"确定要接触绑定吗?"},on:{confirm:function(a){return e.cancelBind(t.row)}}},[a("el-button",{attrs:{type:"text"}},[e._v("解除绑定")])],1)]}}])})],1)],1)])},staticRenderFns:[]};var h=a("VU/8")(u,g,!1,function(e){a("7Jbw")},"data-v-2c6d01f2",null).exports,f={props:{errorSettingId:{type:String,default:function(){return""}},errorCode:{type:String,default:function(){return""}},errorInfo:{type:String,default:function(){return""}}},data:function(){return{dialogVisible:!0,errorForm:{errorCode:"",errorInfo:""},modalRules:{errorCode:[{required:!0,message:"请输入错误码",trigger:"blur"}],errorInfo:[{required:!0,message:"请输入错误信息",trigger:"blur"}]}}},created:function(){this.dialogVisible=!0,this.errorForm.errorCode=this.errorCode,this.errorForm.errorInfo=this.errorInfo},methods:{submitForm:function(e){var t=this,a=this;this.$refs[e].validate(function(e){if(!e)return!1;var r="",i={errorCode:t.errorForm.errorCode,errorInfo:t.errorForm.errorInfo,errorType:2};t.errorSettingId?(i.errorSettingId=t.errorSettingId,r="/gateway-manage/update-error-setting"):r="/gateway-manage/create-error-setting",Object(o.b)(r,i).then(function(e){"0000"==e.data.code?(t.$emit("getList"),t.dialogVisible=!1,t.$emit("cancelNewCoce")):t.$message.error(e.data.message)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})})},cancelForm:function(e){this.$refs[e].resetFields(),this.$emit("cancelNewCoce")}}},p={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:e.errorSettingId?"编辑错误码":"新建错误码",visible:e.dialogVisible,width:"500px"},on:{"update:visible":function(t){e.dialogVisible=t},close:function(t){return e.cancelForm("errorForm")}}},[a("el-form",{ref:"errorForm",staticStyle:{width:"450px"},attrs:{model:e.errorForm,rules:e.modalRules}},[a("el-form-item",{attrs:{label:"错误码","label-width":"90px",prop:"errorCode"}},[a("dm-input",{attrs:{byteType:1,type:"text",maxlength:20},model:{value:e.errorForm.errorCode,callback:function(t){e.$set(e.errorForm,"errorCode",t)},expression:"errorForm.errorCode"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"错误信息","label-width":"90px",prop:"errorInfo"}},[a("dm-input",{attrs:{byteType:1,type:"text",maxlength:20},model:{value:e.errorForm.errorInfo,callback:function(t){e.$set(e.errorForm,"errorInfo",t)},expression:"errorForm.errorInfo"}})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){return e.cancelForm("errorForm")}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitForm("errorForm")}}},[e._v(e._s(e.errorSettingId?"保存":"新建"))])],1)],1)},staticRenderFns:[]};var m=a("VU/8")(f,p,!1,function(e){a("ASE+")},"data-v-1f51806f",null).exports,v={props:{tableData:{type:Array,default:function(){return[]}}},data:function(){return{showNewCode:!1,errorSettingId:"",errorInfo:"",errorCode:""}},methods:{getList:function(){this.$emit("getList")},edit:function(e){this.showNewCode=!0,this.errorSettingId=e.errorSettingId,this.errorCode=e.errorCode,this.errorInfo=e.errorInfo},cancelNewCoce:function(){this.showNewCode=!1},deleteList:function(e){var t=this,a={errorSettingId:e.errorSettingId};Object(o.b)("/gateway-manage/delete-error-setting",a).then(function(e){"0000"==e.data.code?t.$emit("getList"):t.$message.error(e.data.message)})}},components:{newErrorCode:m}},b={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{"margin-top":"20px"}},[a("div",{staticClass:"table-content"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark",height:e.tableHeight}},[a("el-table-column",{attrs:{label:"错误码",prop:"errorCode"}}),e._v(" "),a("el-table-column",{attrs:{label:"错误信息",prop:"errorInfo"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.edit(t.row)}}},[e._v("编辑")]),e._v(" "),a("dm-delete",{attrs:{tips:"确定要删除吗?"},on:{confirm:function(a){return e.deleteList(t.row)}}},[a("el-button",{attrs:{type:"text"}},[e._v("删除")])],1)]}}])})],1)],1),e._v(" "),e.showNewCode?a("newErrorCode",{attrs:{errorSettingId:e.errorSettingId,errorCode:e.errorCode,errorInfo:e.errorInfo},on:{getList:e.getList,cancelNewCoce:e.cancelNewCoce}}):e._e()],1)},staticRenderFns:[]};var y=a("VU/8")(v,b,!1,function(e){a("oPMN")},"data-v-78e39e8a",null).exports,_=a("BO1k"),C=a.n(_),w={props:{type:{type:String,default:function(){return 1}},sceneCode:{type:String,default:function(){return""}}},data:function(){return{dialogVisible:!0,checkedAll:!1,isIndeterminate:!1,rightList:[],leftSelectList:[],rightSelectList:[],props:{label:"name",children:"zones",isLeaf:"leaf"},loading:!1,projectList:[],refash:!1,btnLoading:!1}},created:function(){this.dialogVisible=!0},methods:{changeAllTree:function(e){e?(this.$refs.tree.setCheckedNodes(this.projectList),this.leftSelectList=this.$refs.tree.getCheckedNodes()):(this.$refs.tree.setCheckedKeys([]),this.leftSelectList=this.$refs.tree.getCheckedNodes())},handleCheckChange:function(e,t,a){this.leftSelectList=this.$refs.tree.getCheckedNodes();var r=0,i=!0,n=!1,o=void 0;try{for(var s,l=C()(this.leftSelectList);!(i=(s=l.next()).done);i=!0){var c=s.value;this.leftSelectList.every(function(e){return 0!==e.type})?r=1:0===c.type&&(r+=1)}}catch(e){n=!0,o=e}finally{try{!i&&l.return&&l.return()}finally{if(n)throw o}}this.isIndeterminate=r>0&&r<this.projectList.length,this.checkedAll=r===this.projectList.length},transferRight:function(){var e=this;this.rightList=this.leftSelectList.concat(this.rightList),this.rightList=this.rightList.filter(function(e,t,a){return a.indexOf(e)===t});for(var t=function(t){e.rightList.find(function(a){return a.id===e.rightList[t].parentId})&&e.rightList[t].leaf&&(e.rightList.splice(t,1),t=0),a=t},a=0;a<this.rightList.length;a++)t(a);this.$refs.tree.setCheckedKeys([]),this.leftSelectList=[],this.checkedAll=!1},transferLeft:function(){for(var e=0;e<this.rightSelectList.length;e++)for(var t=0;t<this.rightList.length;t++)this.rightSelectList[e].id===this.rightList[t].id&&(this.rightList.splice(t,1),t=0);this.rightSelectList=[]},loadNode:function(e,t){var a=this,r=this;if(0===e.level)return this.loading=!0,Object(o.a)("/gateway-manage/plugin/interface/tree",{}).then(function(e){if("0000"==e.data.code){a.loading=!1,e.data.result?a.projectList=e.data.result:a.projectList=[];var r=!0,i=!1,n=void 0;try{for(var o,s=C()(a.projectList);!(r=(o=s.next()).done);r=!0){var l=o.value;0===l.leafFlag?l.leaf=!1:l.leaf=!0,l.parentId=""}}catch(e){i=!0,n=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw n}}return t(a.projectList)}a.$message.error(e.data.message)}).catch(function(e){r.$message.error({duration:1e3,message:e.message})}),t(this.projectList);if(e.level>2)return t([]);if(1===e.level||2===e.level){var i={type:e.level-1,id:e.data.id},n=[];Object(o.a)("/gateway-manage/plugin/interface/tree",i).then(function(t){if("0000"==t.data.code){n=t.data.result?t.data.result:[];var r=!0,i=!1,o=void 0;try{for(var s,l=C()(n);!(r=(s=l.next()).done);r=!0){var c=s.value;0===c.leafFlag?c.leaf=!1:c.leaf=!0,c.parentId=e.data.id}}catch(e){i=!0,o=e}finally{try{!r&&l.return&&l.return()}finally{if(i)throw o}}}else a.$message.error(t.data.message)}).catch(function(e){r.$message.error({duration:1e3,message:e.message})}),setTimeout(function(){t(n)},2e3)}},handleSelectionChange:function(e){this.rightSelectList=e},submitForm:function(){var e=this,t=this;if(0===this.rightSelectList.length)return this.$message.error("请选择要绑定的API"),!1;var a=[],r=[],i=[],n=!0,s=!1,l=void 0;try{for(var c,d=C()(this.rightSelectList);!(n=(c=d.next()).done);n=!0){var u=c.value;0===u.type?a.push(u.id):1===u.type?r.push(u.id):2===u.type&&i.push(u.id)}}catch(e){s=!0,l=e}finally{try{!n&&d.return&&d.return()}finally{if(s)throw l}}var g={sceneCode:this.sceneCode};a.length&&(g.projectIds=a.join(",")),r.length&&(g.groupIds=r.join(",")),i.length&&(g.interfaceIds=i.join(","));var h="";"1"===this.type?h="/gateway-manage/platform/white/bind":"2"===this.type&&(h="/gateway-manage/platform/capacity/bind"),this.btnLoading=!0,Object(o.a)(h,g).then(function(t){"0000"==t.data.code?(e.dialogVisible=!1,e.$emit("getList"),e.btnLoading=!1):e.$message.error(t.data.message)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},closeDialog:function(){this.$emit("cancelBind")}}},L={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"1"===e.type?"新建绑定白名单接口":"新建绑定能力接口",visible:e.dialogVisible,width:"600px"},on:{"update:visible":function(t){e.dialogVisible=t},close:e.closeDialog}},[a("div",{staticClass:"dialog-body"},[a("div",{staticClass:"content"},[a("div",{staticClass:"left-content"},[a("div",{staticClass:"title"},[a("h3",[a("el-checkbox",{attrs:{indeterminate:e.isIndeterminate},on:{change:e.changeAllTree},model:{value:e.checkedAll,callback:function(t){e.checkedAll=t},expression:"checkedAll"}},[e._v("所有API")])],1)]),e._v(" "),a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"tree-content"},[a("el-tree",{ref:"tree",attrs:{props:e.props,load:e.loadNode,"node-key":"id",lazy:"","show-checkbox":""},on:{"check-change":e.handleCheckChange}})],1)]),e._v(" "),a("div",{staticClass:"left-center"},[a("el-button",{attrs:{type:"primary",disabled:e.leftSelectList.length<=0},on:{click:e.transferRight}},[a("i",{staticClass:"el-icon-arrow-left el-icon--left"}),e._v("转入")]),e._v(" "),a("el-button",{attrs:{type:"primary",disabled:e.rightSelectList.length<=0},on:{click:e.transferLeft}},[e._v("移除"),a("i",{staticClass:"el-icon-arrow-right el-icon--right"})])],1),e._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"list-content table-transfer"},[[a("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.rightList,"tooltip-effect":"dark",height:"305"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"50"}}),e._v(" "),a("el-table-column",{attrs:{label:"已选API",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.name))]}}])})],1)]],2)])])]),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.closeDialog}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary",loading:e.btnLoading},on:{click:e.submitForm}},[e._v("确定")])],1)])},staticRenderFns:[]};var S=a("VU/8")(w,L,!1,function(e){a("pSW5"),a("xklI")},"data-v-05b4ea42",null).exports,I={props:{tableData:{type:Array,default:function(){return[]}}},data:function(){return{}},methods:{cancelBind:function(e){var t=this,a=this,r={id:e.openPlatformInterfaceId};Object(o.a)("/gateway-manage/platform/white/unbind",r).then(function(e){"0000"==e.data.code?t.$emit("getList"):t.$message.error(e.data.message)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})}},components:{}},k={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{"margin-top":"20px"}},[a("div",{staticClass:"table-content"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark",height:e.tableHeight}},[a("el-table-column",{attrs:{label:"请求ip",prop:"projectName"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.requestIp)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"应用",prop:"groupName"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.app)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"开发者账号",prop:"interfaceName"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.developer)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"请求时间",prop:"bindTime"},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.requestTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.requestTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"商户",prop:"interfaceName"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.merchant)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"接口",prop:"interfaceName"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.interface)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"请求内容",prop:"interfaceName"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.requestContent)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"返回内容",prop:"interfaceName"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.responseContent)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"状态",prop:"interfaceName"},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:"备注"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.remarks)+"\n ")]}}])})],1)],1)])},staticRenderFns:[]};var N=a("VU/8")(I,k,!1,function(e){a("hT0t")},"data-v-1f896a4c",null).exports,x={name:"envManage",components:{navBread:n.a,selectEnv:s.a,whiteList:d,capacityList:h,errorCodeList:y,bindTranser:S,newErrorCode:m,logList:N},data:function(){return{navPath:[{name:"插件管理",path:"/pluginManage"},{name:"开放平台",path:""}],activeName:"first",search:"",showdialog:!1,pluginId:"",sceneCode:"",pluginType:1,projectList:[],projectId:"",groupList:[],groupId:"",tableData:[],total:0,currentPage:1,pageSize:20,pageSizes:[20,40,60,80],showNewCode:!1,errorSettingId:"",showBinddialog:!1,type:"",loading:!1,requestDate:"",searchValue:"",requestProjectId:"",requestStatus:""}},methods:{handleClick:function(e,t){this.search="",this.projectId="",this.groupId="",this.getList()},goEnvList:function(){this.showdialog=!0,this.pluginId=this.pluginId},closeDialog:function(){this.showdialog=!1},getChange:function(){this.groupId="",this.getGroupList(),this.getList()},getSearchList:function(){"first"!==this.activeName&&"second"!==this.activeName||(this.currentPage=1,this.getGroupList(),this.getList())},handleSizeChange:function(e){this.pageSize=e,this.getList()},handleCurrentChange:function(e){this.currentPage=e,this.getList()},getList:function(){var e=this,t=this,a="",r={};"first"===this.activeName?(a="/gateway-manage/platform/white/list",r={projectId:this.projectId?this.projectId:null,groupId:this.groupId?this.groupId:null,search:this.search?this.search:null,sceneCode:this.sceneCode,currentPage:this.currentPage,pageSize:this.pageSize}):"second"===this.activeName?(a="/gateway-manage/platform/capacity/list",r={projectId:this.projectId?this.projectId:null,groupId:this.groupId?this.groupId:null,search:this.search?this.search:null,sceneCode:this.sceneCode,currentPage:this.currentPage,pageSize:this.pageSize}):"third"===this.activeName&&(a="/gateway-manage/page-error-setting",r={errorType:2,pageNum:this.currentPage,pageSize:this.pageSize}),"first"===this.activeName||"second"===this.activeName?(this.loading=!0,Object(o.a)(a,r).then(function(t){"0000"==t.data.code?(t.data.result.result?(e.tableData=t.data.result.result,e.total=t.data.result.totalCount):(e.tableData=[],e.total=0),e.loading=!1):e.$message.error(t.data.message)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})):(this.loading=!0,Object(o.b)(a,r).then(function(t){"0000"==t.data.code?(t.data.result.result?(e.tableData=t.data.result.result,e.total=t.data.result.totalCount):(e.tableData=[],e.total=0),e.loading=!1):e.$message.error(t.data.message)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})}))},getProjectList:function(){var e=this,t=this;Object(o.a)("/gateway-manage//plugin/interface/tree",{}).then(function(t){"0000"==t.data.code?t.data.result?e.projectList=t.data.result:e.projectList=[]:e.$message.error(t.data.message)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getGroupList:function(){var e=this,t=this,a={type:0,id:this.projectId};Object(o.a)("/gateway-manage/plugin/interface/tree",a).then(function(t){"0000"==t.data.code?t.data.result?e.groupList=t.data.result:e.groupList=[]:e.$message.error(t.data.message)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},addCode:function(){this.showNewCode=!0,this.errorSettingId=""},cancelNewCoce:function(){this.showNewCode=!1},addBind:function(e){this.showBinddialog=!0,this.type=e},cancelBind:function(){this.showBinddialog=!1}},watch:i()({$route:{handler:function(e,t){},deep:!0}},"$route",function(e,t){this.pluginId=this.$route.query.pluginId,this.sceneCode=this.$route.query.sceneCode,this.getProjectList(),this.getList()}),created:function(){this.pluginId=this.$route.query.pluginId,this.sceneCode=this.$route.query.sceneCode,this.getProjectList(),this.getList()}},$={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}}),e._v(" "),a("div",{staticClass:"change-env",on:{click:e.goEnvList}},[a("span",[e._v("切换环境")]),a("i",{staticClass:"iconfont iconicon-qihuan",on:{click:function(t){return e.goEnvList(e.item)}}})])],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("div",{staticClass:"search-box"},[a("div",{staticClass:"left"},["second"===e.activeName||"first"===e.activeName?a("div",[a("el-input",{staticClass:"w-320",attrs:{placeholder:"请输入接口名称","prefix-icon":"el-icon-search",clearable:""},on:{clear:function(t){return e.getSearchList()}},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.getSearchList()}},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}}),e._v(" "),a("el-select",{staticClass:"w-140 marginLeft10",staticStyle:{display:"inline-block"},attrs:{placeholder:"请选择项目",size:"small",clearable:""},on:{change:function(t){return e.getChange()}},model:{value:e.projectId,callback:function(t){e.projectId=t},expression:"projectId"}},e._l(e.projectList,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}),1),e._v(" "),a("el-select",{staticClass:"w-140 marginLeft10",staticStyle:{display:"inline-block"},attrs:{placeholder:"请选择分组",size:"small",clearable:"",disabled:""===e.projectId},on:{change:function(t){return e.getSearchList()}},model:{value:e.groupId,callback:function(t){e.groupId=t},expression:"groupId"}},e._l(e.groupList,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}),1)],1):e._e()]),e._v(" "),a("div",["third"===e.activeName?a("el-button",{attrs:{type:"primary"},on:{click:e.addCode}},[e._v("新建错误码")]):e._e(),e._v(" "),"first"===e.activeName?a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.addBind("1")}}},[e._v("新建绑定")]):e._e(),e._v(" "),"second"===e.activeName?a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.addBind("2")}}},[e._v("新建绑定")]):e._e()],1)]),e._v(" "),a("el-tab-pane",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{label:"白名单接口",name:"first"}},["first"===e.activeName?a("whiteList",{attrs:{tableData:e.tableData},on:{getList:e.getList}}):e._e()],1),e._v(" "),a("el-tab-pane",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{label:"能力接口",name:"second"}},["second"===e.activeName?a("capacityList",{attrs:{tableData:e.tableData},on:{getList:e.getList}}):e._e()],1),e._v(" "),a("el-tab-pane",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{label:"错误码配置",name:"third"}},["third"===e.activeName?a("errorCodeList",{attrs:{tableData:e.tableData},on:{getList:e.getList}}):e._e()],1),e._v(" "),a("el-tab-pane",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{label:"日志",name:"four"}},[a("div",{staticClass:"log-search flex"},[a("el-date-picker",{attrs:{type:"date",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",placeholder:"选择请求时间",editable:!1},on:{change:e.changeDate},model:{value:e.requestDate,callback:function(t){e.requestDate=t},expression:"requestDate"}}),a("el-input",{staticClass:"w-250 marginLeft10",attrs:{placeholder:"请输入开发者账号/ip/商户名称","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearSearch},nativeOn:{keyup:function(t){return a=t,e.searchEnterFun(a,e.searchValue);var a}},model:{value:e.searchValue,callback:function(t){e.searchValue=t},expression:"searchValue"}}),e._v(" "),a("el-select",{staticClass:"w-140 marginLeft10",staticStyle:{display:"inline-block"},attrs:{placeholder:"请选择项目",size:"small",clearable:""},on:{change:function(t){return e.changePro()}},model:{value:e.requestProjectId,callback:function(t){e.requestProjectId=t},expression:"requestProjectId"}},e._l(e.projectList,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}),1),a("el-select",{staticClass:"w-140 marginLeft10",staticStyle:{display:"inline-block"},attrs:{placeholder:"请选择状态",size:"small",clearable:""},on:{change:function(t){return e.changeStatus()}},model:{value:e.requestStatus,callback:function(t){e.requestStatus=t},expression:"requestStatus"}},[a("el-option",{attrs:{label:"全部状态",value:""}}),e._v(" "),a("el-option",{attrs:{label:"成功",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"失败",value:"0"}})],1)],1),e._v(" "),a("log-list",{attrs:{tableData:e.tableData},on:{getList:e.getList}})],1)],1),e._v(" "),0!==e.total?a("div",{staticStyle:{"text-align":"right","margin-top":"20px"}},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":e.pageSizes,"page-size":e.pageSize,layout:"total, sizes, prev, pager, next",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])]),e._v(" "),e.showdialog?a("selectEnv",{attrs:{pluginId:e.pluginId,pluginType:e.pluginType},on:{closeDialog:e.closeDialog}}):e._e(),e._v(" "),e.showBinddialog?a("bindTranser",{attrs:{type:e.type,sceneCode:e.sceneCode},on:{cancelBind:e.cancelBind,getList:e.getList}}):e._e(),e._v(" "),e.showNewCode?a("newErrorCode",{attrs:{errorSettingId:e.errorSettingId},on:{getList:e.getList,cancelNewCoce:e.cancelNewCoce}}):e._e()],1)},staticRenderFns:[]};var j=a("VU/8")(x,$,!1,function(e){a("dRkI")},"data-v-4b657bc8",null);t.default=j.exports},dRkI:function(e,t){},hT0t:function(e,t){},oPMN:function(e,t){},pSW5:function(e,t){},xU1Q:function(e,t){},xklI:function(e,t){}});
\ No newline at end of file
webpackJsonp([6],{"7Jbw":function(e,t){},"ASE+":function(e,t){},KnBF:function(e,t){},dAfO:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("bOdI"),i=a.n(r),n=a("319J"),o=a("P9l9"),s=a("PEkr"),l={props:{tableData:{type:Array,default:function(){return[]}}},data:function(){return{}},methods:{cancelBind:function(e){var t=this,a=this,r={id:e.openPlatformInterfaceId};Object(o.a)("/gateway-manage/platform/white/unbind",r).then(function(e){"0000"==e.data.code?t.$emit("getList"):t.$message.error(e.data.message)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})}},components:{}},c={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{"margin-top":"20px"}},[a("div",{staticClass:"table-content"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark",height:e.tableHeight}},[a("el-table-column",{attrs:{label:"项目名称",prop:"projectName"}}),e._v(" "),a("el-table-column",{attrs:{label:"分组",prop:"groupName"}}),e._v(" "),a("el-table-column",{attrs:{label:"接口名称",prop:"interfaceName"}}),e._v(" "),a("el-table-column",{attrs:{label:"绑定时间",prop:"bindTime"},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.bindTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.bindTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("dm-delete",{attrs:{tips:"确定要解除绑定吗?"},on:{confirm:function(a){e.cancelBind(t.row)}}},[a("el-button",{attrs:{type:"text"}},[e._v("解除绑定")])],1)]}}])})],1)],1)])},staticRenderFns:[]};var d=a("VU/8")(l,c,!1,function(e){a("xU1Q")},"data-v-f1de626e",null).exports,u={props:{tableData:{type:Array,default:function(){return[]}}},data:function(){return{}},methods:{cancelBind:function(e){var t=this,a=this,r={id:e.openPlatformInterfaceId};Object(o.a)("/gateway-manage/platform/capacity/unbind",r).then(function(e){"0000"==e.data.code?t.$emit("getList"):t.$message.error(e.data.message)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})}},components:{}},g={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{"margin-top":"20px"}},[a("div",{staticClass:"table-content"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark",height:e.tableHeight}},[a("el-table-column",{attrs:{label:"项目名称",prop:"projectName"}}),e._v(" "),a("el-table-column",{attrs:{label:"分组",prop:"groupName"}}),e._v(" "),a("el-table-column",{attrs:{label:"接口名称",prop:"interfaceName"}}),e._v(" "),a("el-table-column",{attrs:{label:"绑定时间",prop:"bindTime"},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.bindTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.bindTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("dm-delete",{attrs:{tips:"确定要接触绑定吗?"},on:{confirm:function(a){e.cancelBind(t.row)}}},[a("el-button",{attrs:{type:"text"}},[e._v("解除绑定")])],1)]}}])})],1)],1)])},staticRenderFns:[]};var h=a("VU/8")(u,g,!1,function(e){a("7Jbw")},"data-v-2c6d01f2",null).exports,f={props:{errorSettingId:{type:String,default:function(){return""}},errorCode:{type:String,default:function(){return""}},errorInfo:{type:String,default:function(){return""}}},data:function(){return{dialogVisible:!0,errorForm:{errorCode:"",errorInfo:""},modalRules:{errorCode:[{required:!0,message:"请输入错误码",trigger:"blur"}],errorInfo:[{required:!0,message:"请输入错误信息",trigger:"blur"}]}}},created:function(){this.dialogVisible=!0,this.errorForm.errorCode=this.errorCode,this.errorForm.errorInfo=this.errorInfo},methods:{submitForm:function(e){var t=this,a=this;this.$refs[e].validate(function(e){if(!e)return!1;var r="",i={errorCode:t.errorForm.errorCode,errorInfo:t.errorForm.errorInfo,errorType:2};t.errorSettingId?(i.errorSettingId=t.errorSettingId,r="/gateway-manage/update-error-setting"):r="/gateway-manage/create-error-setting",Object(o.b)(r,i).then(function(e){"0000"==e.data.code?(t.$emit("getList"),t.dialogVisible=!1,t.$emit("cancelNewCoce")):t.$message.error(e.data.message)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})})},cancelForm:function(e){this.$refs[e].resetFields(),this.$emit("cancelNewCoce")}}},p={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:e.errorSettingId?"编辑错误码":"新建错误码",visible:e.dialogVisible,width:"500px"},on:{"update:visible":function(t){e.dialogVisible=t},close:function(t){e.cancelForm("errorForm")}}},[a("el-form",{ref:"errorForm",staticStyle:{width:"450px"},attrs:{model:e.errorForm,rules:e.modalRules}},[a("el-form-item",{attrs:{label:"错误码","label-width":"90px",prop:"errorCode"}},[a("dm-input",{attrs:{byteType:1,type:"text",maxlength:20},model:{value:e.errorForm.errorCode,callback:function(t){e.$set(e.errorForm,"errorCode",t)},expression:"errorForm.errorCode"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"错误信息","label-width":"90px",prop:"errorInfo"}},[a("dm-input",{attrs:{byteType:1,type:"text",maxlength:20},model:{value:e.errorForm.errorInfo,callback:function(t){e.$set(e.errorForm,"errorInfo",t)},expression:"errorForm.errorInfo"}})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.cancelForm("errorForm")}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("errorForm")}}},[e._v(e._s(e.errorSettingId?"保存":"新建"))])],1)],1)},staticRenderFns:[]};var m=a("VU/8")(f,p,!1,function(e){a("ASE+")},"data-v-1f51806f",null).exports,v={props:{tableData:{type:Array,default:function(){return[]}}},data:function(){return{showNewCode:!1,errorSettingId:"",errorInfo:"",errorCode:""}},methods:{getList:function(){this.$emit("getList")},edit:function(e){this.showNewCode=!0,this.errorSettingId=e.errorSettingId,this.errorCode=e.errorCode,this.errorInfo=e.errorInfo},cancelNewCoce:function(){this.showNewCode=!1},deleteList:function(e){var t=this,a={errorSettingId:e.errorSettingId};Object(o.b)("/gateway-manage/delete-error-setting",a).then(function(e){"0000"==e.data.code?t.$emit("getList"):t.$message.error(e.data.message)})}},components:{newErrorCode:m}},b={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{"margin-top":"20px"}},[a("div",{staticClass:"table-content"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark",height:e.tableHeight}},[a("el-table-column",{attrs:{label:"错误码",prop:"errorCode"}}),e._v(" "),a("el-table-column",{attrs:{label:"错误信息",prop:"errorInfo"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){e.edit(t.row)}}},[e._v("编辑")]),e._v(" "),a("dm-delete",{attrs:{tips:"确定要删除吗?"},on:{confirm:function(a){e.deleteList(t.row)}}},[a("el-button",{attrs:{type:"text"}},[e._v("删除")])],1)]}}])})],1)],1),e._v(" "),e.showNewCode?a("newErrorCode",{attrs:{errorSettingId:e.errorSettingId,errorCode:e.errorCode,errorInfo:e.errorInfo},on:{getList:e.getList,cancelNewCoce:e.cancelNewCoce}}):e._e()],1)},staticRenderFns:[]};var y=a("VU/8")(v,b,!1,function(e){a("oPMN")},"data-v-78e39e8a",null).exports,C=a("BO1k"),L=a.n(C),_={props:{type:{type:String,default:function(){return 1}},sceneCode:{type:String,default:function(){return""}}},data:function(){return{dialogVisible:!0,checkedAll:!1,isIndeterminate:!1,rightList:[],leftSelectList:[],rightSelectList:[],props:{label:"name",children:"zones",isLeaf:"leaf"},loading:!1,projectList:[],refash:!1,btnLoading:!1}},created:function(){this.dialogVisible=!0},methods:{changeAllTree:function(e){e?(this.$refs.tree.setCheckedNodes(this.projectList),this.leftSelectList=this.$refs.tree.getCheckedNodes()):(this.$refs.tree.setCheckedKeys([]),this.leftSelectList=this.$refs.tree.getCheckedNodes())},handleCheckChange:function(e,t,a){this.leftSelectList=this.$refs.tree.getCheckedNodes();var r=0,i=!0,n=!1,o=void 0;try{for(var s,l=L()(this.leftSelectList);!(i=(s=l.next()).done);i=!0){var c=s.value;this.leftSelectList.every(function(e){return 0!==e.type})?r=1:0===c.type&&(r+=1)}}catch(e){n=!0,o=e}finally{try{!i&&l.return&&l.return()}finally{if(n)throw o}}this.isIndeterminate=r>0&&r<this.projectList.length,this.checkedAll=r===this.projectList.length},transferRight:function(){var e=this;this.rightList=this.leftSelectList.concat(this.rightList),this.rightList=this.rightList.filter(function(e,t,a){return a.indexOf(e)===t});for(var t=function(t){e.rightList.find(function(a){return a.id===e.rightList[t].parentId})&&e.rightList[t].leaf&&(e.rightList.splice(t,1),t=0),a=t},a=0;a<this.rightList.length;a++)t(a);this.$refs.tree.setCheckedKeys([]),this.leftSelectList=[],this.checkedAll=!1},transferLeft:function(){for(var e=0;e<this.rightSelectList.length;e++)for(var t=0;t<this.rightList.length;t++)this.rightSelectList[e].id===this.rightList[t].id&&(this.rightList.splice(t,1),t=0);this.rightSelectList=[]},loadNode:function(e,t){var a=this,r=this;if(0===e.level)return this.loading=!0,Object(o.a)("/gateway-manage/plugin/interface/tree",{}).then(function(e){if("0000"==e.data.code){a.loading=!1,e.data.result?a.projectList=e.data.result:a.projectList=[];var r=!0,i=!1,n=void 0;try{for(var o,s=L()(a.projectList);!(r=(o=s.next()).done);r=!0){var l=o.value;0===l.leafFlag?l.leaf=!1:l.leaf=!0,l.parentId=""}}catch(e){i=!0,n=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw n}}return t(a.projectList)}a.$message.error(e.data.message)}).catch(function(e){r.$message.error({duration:1e3,message:e.message})}),t(this.projectList);if(e.level>2)return t([]);if(1===e.level||2===e.level){var i={type:e.level-1,id:e.data.id},n=[];Object(o.a)("/gateway-manage/plugin/interface/tree",i).then(function(t){if("0000"==t.data.code){n=t.data.result?t.data.result:[];var r=!0,i=!1,o=void 0;try{for(var s,l=L()(n);!(r=(s=l.next()).done);r=!0){var c=s.value;0===c.leafFlag?c.leaf=!1:c.leaf=!0,c.parentId=e.data.id}}catch(e){i=!0,o=e}finally{try{!r&&l.return&&l.return()}finally{if(i)throw o}}}else a.$message.error(t.data.message)}).catch(function(e){r.$message.error({duration:1e3,message:e.message})}),setTimeout(function(){t(n)},2e3)}},handleSelectionChange:function(e){this.rightSelectList=e},submitForm:function(){var e=this,t=this;if(0===this.rightSelectList.length)return this.$message.error("请选择要绑定的API"),!1;var a=[],r=[],i=[],n=!0,s=!1,l=void 0;try{for(var c,d=L()(this.rightSelectList);!(n=(c=d.next()).done);n=!0){var u=c.value;0===u.type?a.push(u.id):1===u.type?r.push(u.id):2===u.type&&i.push(u.id)}}catch(e){s=!0,l=e}finally{try{!n&&d.return&&d.return()}finally{if(s)throw l}}var g={sceneCode:this.sceneCode};a.length&&(g.projectIds=a.join(",")),r.length&&(g.groupIds=r.join(",")),i.length&&(g.interfaceIds=i.join(","));var h="";"1"===this.type?h="/gateway-manage/platform/white/bind":"2"===this.type&&(h="/gateway-manage/platform/capacity/bind"),this.btnLoading=!0,Object(o.a)(h,g).then(function(t){"0000"==t.data.code?(e.dialogVisible=!1,e.$emit("getList"),e.btnLoading=!1):e.$message.error(t.data.message)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},closeDialog:function(){this.$emit("cancelBind")}}},w={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"1"===e.type?"新建绑定白名单接口":"新建绑定能力接口",visible:e.dialogVisible,width:"600px"},on:{"update:visible":function(t){e.dialogVisible=t},close:e.closeDialog}},[a("div",{staticClass:"dialog-body"},[a("div",{staticClass:"content"},[a("div",{staticClass:"left-content"},[a("div",{staticClass:"title"},[a("h3",[a("el-checkbox",{attrs:{indeterminate:e.isIndeterminate},on:{change:e.changeAllTree},model:{value:e.checkedAll,callback:function(t){e.checkedAll=t},expression:"checkedAll"}},[e._v("所有API")])],1)]),e._v(" "),a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"tree-content"},[a("el-tree",{ref:"tree",attrs:{props:e.props,load:e.loadNode,"node-key":"id",lazy:"","show-checkbox":""},on:{"check-change":e.handleCheckChange}})],1)]),e._v(" "),a("div",{staticClass:"left-center"},[a("el-button",{attrs:{type:"primary",disabled:e.leftSelectList.length<=0},on:{click:e.transferRight}},[a("i",{staticClass:"el-icon-arrow-left el-icon--left"}),e._v("转入")]),e._v(" "),a("el-button",{attrs:{type:"primary",disabled:e.rightSelectList.length<=0},on:{click:e.transferLeft}},[e._v("移除"),a("i",{staticClass:"el-icon-arrow-right el-icon--right"})])],1),e._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"list-content table-transfer"},[[a("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.rightList,"tooltip-effect":"dark",height:"305"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"50"}}),e._v(" "),a("el-table-column",{attrs:{label:"已选API",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.name))]}}])})],1)]],2)])])]),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.closeDialog}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary",loading:e.btnLoading},on:{click:e.submitForm}},[e._v("确定")])],1)])},staticRenderFns:[]};var I=a("VU/8")(_,w,!1,function(e){a("pSW5"),a("xklI")},"data-v-05b4ea42",null).exports,S={name:"envManage",components:{navBread:n.a,selectEnv:s.a,whiteList:d,capacityList:h,errorCodeList:y,bindTranser:I,newErrorCode:m},data:function(){return{navPath:[{name:"插件管理",path:"/pluginManage"},{name:"开放平台",path:""}],activeName:"first",search:"",showdialog:!1,pluginId:"",sceneCode:"",pluginType:1,projectList:[],projectId:"",groupList:[],groupId:"",tableData:[],total:0,currentPage:1,pageSize:20,pageSizes:[20,40,60,80],showNewCode:!1,errorSettingId:"",showBinddialog:!1,type:"",loading:!1}},methods:{handleClick:function(e,t){this.search="",this.projectId="",this.groupId="",this.getList()},goEnvList:function(){this.showdialog=!0,this.pluginId=this.pluginId},closeDialog:function(){this.showdialog=!1},getChange:function(){this.groupId="",this.getGroupList(),this.getList()},getSearchList:function(){"first"!==this.activeName&&"second"!==this.activeName||(this.currentPage=1,this.getGroupList(),this.getList())},handleSizeChange:function(e){this.pageSize=e,this.getList()},handleCurrentChange:function(e){this.currentPage=e,this.getList()},getList:function(){var e=this,t=this,a="",r={};"first"===this.activeName?(a="/gateway-manage/platform/white/list",r={projectId:this.projectId?this.projectId:null,groupId:this.groupId?this.groupId:null,search:this.search?this.search:null,sceneCode:this.sceneCode,currentPage:this.currentPage,pageSize:this.pageSize}):"second"===this.activeName?(a="/gateway-manage/platform/capacity/list",r={projectId:this.projectId?this.projectId:null,groupId:this.groupId?this.groupId:null,search:this.search?this.search:null,sceneCode:this.sceneCode,currentPage:this.currentPage,pageSize:this.pageSize}):"third"===this.activeName&&(a="/gateway-manage/page-error-setting",r={errorType:2,pageNum:this.currentPage,pageSize:this.pageSize}),"first"===this.activeName||"second"===this.activeName?(this.loading=!0,Object(o.a)(a,r).then(function(t){"0000"==t.data.code?(t.data.result.result?(e.tableData=t.data.result.result,e.total=t.data.result.totalCount):(e.tableData=[],e.total=0),e.loading=!1):e.$message.error(t.data.message)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})):(this.loading=!0,Object(o.b)(a,r).then(function(t){"0000"==t.data.code?(t.data.result.result?(e.tableData=t.data.result.result,e.total=t.data.result.totalCount):(e.tableData=[],e.total=0),e.loading=!1):e.$message.error(t.data.message)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})}))},getProjectList:function(){var e=this,t=this;Object(o.a)("/gateway-manage//plugin/interface/tree",{}).then(function(t){"0000"==t.data.code?t.data.result?e.projectList=t.data.result:e.projectList=[]:e.$message.error(t.data.message)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getGroupList:function(){var e=this,t=this,a={type:0,id:this.projectId};Object(o.a)("/gateway-manage/plugin/interface/tree",a).then(function(t){"0000"==t.data.code?t.data.result?e.groupList=t.data.result:e.groupList=[]:e.$message.error(t.data.message)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},addCode:function(){this.showNewCode=!0,this.errorSettingId=""},cancelNewCoce:function(){this.showNewCode=!1},addBind:function(e){this.showBinddialog=!0,this.type=e},cancelBind:function(){this.showBinddialog=!1}},watch:i()({$route:{handler:function(e,t){},deep:!0}},"$route",function(e,t){this.pluginId=this.$route.query.pluginId,this.sceneCode=this.$route.query.sceneCode,this.getProjectList(),this.getList()}),created:function(){this.pluginId=this.$route.query.pluginId,this.sceneCode=this.$route.query.sceneCode,this.getProjectList(),this.getList()}},k={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}}),e._v(" "),a("div",{staticClass:"change-env",on:{click:e.goEnvList}},[a("span",[e._v("切换环境")]),a("i",{staticClass:"iconfont iconicon-qihuan",on:{click:function(t){e.goEnvList(e.item)}}})])],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("div",{staticClass:"search-box"},[a("div",{staticClass:"left"},["second"===e.activeName||"first"===e.activeName?a("div",[a("el-input",{staticClass:"w-320",attrs:{placeholder:"请输入接口名称","prefix-icon":"el-icon-search",clearable:""},on:{clear:function(t){e.getSearchList()}},nativeOn:{keyup:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.getSearchList()}},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}}),e._v(" "),a("el-select",{staticClass:"w-140 marginLeft10",staticStyle:{display:"inline-block"},attrs:{placeholder:"请选择项目",size:"small",clearable:""},on:{change:function(t){e.getChange()}},model:{value:e.projectId,callback:function(t){e.projectId=t},expression:"projectId"}},e._l(e.projectList,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),e._v(" "),a("el-select",{staticClass:"w-140 marginLeft10",staticStyle:{display:"inline-block"},attrs:{placeholder:"请选择分组",size:"small",clearable:"",disabled:""===e.projectId},on:{change:function(t){e.getSearchList()}},model:{value:e.groupId,callback:function(t){e.groupId=t},expression:"groupId"}},e._l(e.groupList,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))],1):e._e()]),e._v(" "),a("div",["third"===e.activeName?a("el-button",{attrs:{type:"primary"},on:{click:e.addCode}},[e._v("新建错误码")]):e._e(),e._v(" "),"first"===e.activeName?a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.addBind("1")}}},[e._v("新建绑定")]):e._e(),e._v(" "),"second"===e.activeName?a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.addBind("2")}}},[e._v("新建绑定")]):e._e()],1)]),e._v(" "),a("el-tab-pane",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{label:"白名单接口",name:"first"}},["first"===e.activeName?a("whiteList",{attrs:{tableData:e.tableData},on:{getList:e.getList}}):e._e()],1),e._v(" "),a("el-tab-pane",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{label:"能力接口",name:"second"}},["second"===e.activeName?a("capacityList",{attrs:{tableData:e.tableData},on:{getList:e.getList}}):e._e()],1),e._v(" "),a("el-tab-pane",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{label:"错误码配置",name:"third"}},["third"===e.activeName?a("errorCodeList",{attrs:{tableData:e.tableData},on:{getList:e.getList}}):e._e()],1)],1),e._v(" "),0!==e.total?a("div",{staticStyle:{"text-align":"right","margin-top":"20px"}},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":e.pageSizes,"page-size":e.pageSize,layout:"total, sizes, prev, pager, next",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])]),e._v(" "),e.showdialog?a("selectEnv",{attrs:{pluginId:e.pluginId,pluginType:e.pluginType},on:{closeDialog:e.closeDialog}}):e._e(),e._v(" "),e.showBinddialog?a("bindTranser",{attrs:{type:e.type,sceneCode:e.sceneCode},on:{cancelBind:e.cancelBind,getList:e.getList}}):e._e(),e._v(" "),e.showNewCode?a("newErrorCode",{attrs:{errorSettingId:e.errorSettingId},on:{getList:e.getList,cancelNewCoce:e.cancelNewCoce}}):e._e()],1)},staticRenderFns:[]};var N=a("VU/8")(S,k,!1,function(e){a("KnBF")},"data-v-43165c34",null);t.default=N.exports},oPMN:function(e,t){},pSW5:function(e,t){},xU1Q:function(e,t){},xklI:function(e,t){}});
\ No newline at end of file
webpackJsonp([6],{Hvnz:function(e,t){},IvlK:function(e,t){},KMpU:function(e,t){},RPCm:function(e,t){},aXU0: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"),r=a.n(i),s=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,sceneCode:""}}}},data:function(){return{customDialog:!1,formData:{interfaceVersionId:"",version:"",status:"",description:"",proxyType:"",sceneCode:""},rules:{sceneCode:[{required:!0,message:"请选择环境",trigger:"change"}]},envOptions:[]}},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;if(t.editRow.sceneCode==t.formData.sceneCode)return l.a.showmsg("已经在当前环境","warning"),!1;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(s.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.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},setData:function(e){this.$emit("hideSyncDialog")},getEnvData:function(){var e=this;Object(s.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(r()(e))}},mounted:function(){this.getEnvData(),this.customDialog=this.syncShow,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:"同步",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)],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){return e.customConfirm("syncForm")}}},[e._v("同 步")])],1)])],1)},staticRenderFns:[]};var f=a("VU/8")(u,d,!1,function(e){a("Hvnz")},"data-v-2e7c53b8",null).exports,h=a("fZjL"),m=a.n(h),p={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:[],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("/apiListManageShow?editFlag=0&interfaceId="+t.interfaceId+"&interfaceName="+t.interfaceName+"&interfaceVersionId="+t.interfaceVersionId+"&publishRecordId="+t.publishRecordId+"&projectId="+t.projectId+"&projectName="+this.$route.query.projectName+"&interfaceGroupId="+t.interfaceGroupId+"&interfaceGroupName="+this.$route.query.interfaceGroupName)},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(s.a)("/gateway-manage/page-api-publish-record",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})})}},watch:{recordShow:function(e,t){this.customDialog=e},editRow:function(e,t){this.formData=JSON.parse(r()(e)),m()(e).length&&this.getData()}},mounted:function(){this.customDialog=this.recordShow,this.formData=JSON.parse(r()(this.editRow))}},g={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:"publishRecordId",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.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("el-button",{attrs:{type:"text"},on:{click:function(a){return 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 v=a("VU/8")(p,g,!1,function(e){a("aXU0")},"data-v-18fba535",null).exports,b=a("jvWE"),w={name:"env-set-list",components:{publishSet:n.a,syncSet:f,recordList:v},data:function(){return{searchValue:"",status:"",statusOptions:[{label:"所有发布状态",value:""},{label:"待发布",value:"1"},{label:"发布",value:"2"},{label:"下线",value:"4"},{label:"上线",value:"5"}],sceneCode:"",envOptions:[],tableData:[],pageSize:20,currentPage:1,totalCount:0,syncShow:!1,editRow:{},publishShow:!1,recordShow:!1}},methods:{searchData:Object(b.a)(function(e){this.currentPage,this.getData()},500),clearInput:function(){this.currentPage=1,this.getData()},changeStatus: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",interfaceVersionId:e.interfaceVersionId};Object(s.a)("/gateway-manage/set-default-version-api",o).then(function(e){var t=e.data;if("0000"==t.code)return l.a.showmsg("设置成功","success"),a.currentPage=1,void a.getData();c.a.errorMsg(t)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},handlePublish:function(e,t){this.publishShow=!0,this.editRow=t},hidePublishDialog:function(){this.getData(),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?editFlag=1&interfaceId="+this.$route.query.interfaceId+"&interfaceName="+this.$route.query.interfaceName+"&projectId="+t.projectId+"&projectName="+this.$route.query.projectName+"&interfaceGroupId="+t.interfaceGroupId+"&interfaceGroupName="+this.$route.query.interfaceGroupName+"&interfaceVersionId="+t.interfaceVersionId)},handleEdit:function(e,t){this.$router.push("/createApi?projectId="+t.projectId+"&projectName="+this.$route.query.projectName+"&interfaceGroupId="+t.interfaceGroupId+"&interfaceGroupName="+this.$route.query.interfaceGroupName+"&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={interfaceVersionId:t.interfaceVersionId};Object(s.a)("/gateway-manage/offline-api",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})})},handleUp:function(e,t){var a=this;a.$confirm("确认将【"+t.version+"】版本的【"+a.$route.query.interfaceName+"】API上线吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postUpData(e,t)}).catch(function(){})},postUpData:function(e,t){var a=this,o={interfaceVersionId:t.interfaceVersionId};Object(s.a)("/gateway-manage/online-api",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})})},getEnvData:function(){var e=this;Object(s.a)("/gateway-manage/list-all-scene",{}).then(function(t){var a=t.data;if("0000"==a.code)return e.envOptions=a.result||[],void(a.result.length&&(a.result.forEach(function(t){1==t.defaultFlag&&(e.sceneCode=t.sceneCode)}),e.$nextTick(function(){e.getData()})));c.a.errorMsg(a)}).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,status:e.status,interfaceId:e.$route.query.interfaceId};Object(s.a)("/gateway-manage/page-api-version-record",t).then(function(t){var a=t.data;if("0000"==a.code)return e.tableData=a.result.result||[],a.result.result.length&&a.result.result.forEach(function(e){e.defaultFlag=1==e.defaultFlag}),void(e.totalCount=a.result.totalCount);c.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getEnvData()}},_={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("div",{staticClass:"font-0"},[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("el-select",{staticClass:"w-137 m-l-10",attrs:{placeholder:"请选择"},on:{change:e.changeStatus},model:{value:e.status,callback:function(t){e.status=t},expression:"status"}},e._l(e.statusOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1),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.stateName)+"\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[t.row.publishTime?a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.publishTime)))]):e._e(),e._v(" "),t.row.publishTime?a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.publishTime)))]):e._e()]}}])}),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){return 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){return e.handleEdit(t.$index,t.row)}}},[e._v("编辑")]),e._v(" "),a("el-button",{attrs:{disabled:2==t.row.status&&1!=t.row.updateAfterPublish||4==t.row.status,type:"text"},on:{click:function(a){return e.handlePublish(t.$index,t.row)}}},[e._v("发布")]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.handleSync(t.$index,t.row)}}},[e._v("同步")]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.handleShow(t.$index,t.row)}}},[e._v("查看")]),e._v(" "),5==t.row.status||t.row.status<4?a("el-button",{attrs:{disabled:2!=t.row.status&&1!=t.row.updateAfterPublish,type:"text"},on:{click:function(a){return e.handleDown(t.$index,t.row)}}},[e._v("下线")]):e._e(),e._v(" "),4==t.row.status?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.handleUp(t.$index,t.row)}}},[e._v("上线")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){return 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 D=a("VU/8")(w,_,!1,function(e){a("IvlK")},"data-v-599a24f8",null).exports,y={name:"publish-list",data:function(){return{navPath:[{name:"发布记录",path:""}],searchValue:"",tableData:[],pageSize:20,currentPage:1,totalCount:0}},methods:{searchData:Object(b.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?editFlag=0&interfaceId="+this.$route.query.interfaceId+"&interfaceName="+this.$route.query.interfaceName+"&projectId="+t.projectId+"&projectName="+this.$route.query.projectName+"&interfaceGroupId="+t.interfaceGroupId+"&interfaceGroupName="+this.$route.query.interfaceGroupName+"&interfaceVersionId="+t.interfaceVersionId+"&publishRecordId="+t.publishRecordId)},getData:function(){var e=this,t={pageNum:e.currentPage,pageSize:e.pageSize,interfaceId:e.$route.query.interfaceId};Object(s.a)("/gateway-manage/page-api-publish-record",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})})}},watch:{$route:{handler:function(e,t){},deep:!0}},mounted:function(){var e=this;e.$nextTick(function(){e.getData()}),e.$emit("showTab",4)}},C={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:"publishRecordId",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.version)+"\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.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("el-button",{attrs:{type:"text"},on:{click:function(a){return 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 S=a("VU/8")(y,C,!1,function(e){a("RPCm")},"data-v-1c63b1ba",null).exports,$={name:"apiListManage",components:{navBread:o.a,versionList:D,publishList:S},data:function(){return{navPath:[{name:"API管理",path:"/apiProgram"},{name:this.$route.query.projectName?this.$route.query.projectName+"项目列表":"",path:"/apiProgramGroup"},{name:this.$route.query.interfaceGroupName?this.$route.query.interfaceGroupName+"分组列表":"",path:"/groupApiList"},{name:this.$route.query.interfaceName?""+this.$route.query.interfaceName:"",path:"/apiListManage"},{name:"管理",path:""}],activeName:"first"}},methods:{handleClick:function(e,t){"first"==e.name?this.$refs.versionList.getData():this.$refs.publishList.getData()},getNavBarData:function(){var e=this,t={interfaceId:e.$route.query.interfaceId};Object(s.a)("/gateway-manage/get-bar",t).then(function(t){var a=t.data;"0000"!=a.code?errMsg.errorMsg(a):e.navPath=[{name:"API管理",path:"/apiProgram"},{name:"API列表",path:"/apiList"},{name:"管理",path:""}]}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{$route:{handler:function(e,t){},deep:!0}},mounted:function(){this.$emit("showTab",21)}},I={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",{ref:"versionList"})],1),e._v(" "),a("el-tab-pane",{attrs:{label:"发布记录",name:"second"}},[a("publish-list",{ref:"publishList"})],1)],1)],1)])])])},staticRenderFns:[]};var x=a("VU/8")($,I,!1,function(e){a("KMpU")},"data-v-4c0f664c",null);t.default=x.exports},ripu:function(e,t){},znuk:function(e,t,a){"use strict";var o=a("mvHQ"),n=a.n(o),i=a("Kkt8"),r=a("P9l9"),s=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(r.a)("/gateway-manage/publish-api",t).then(function(t){var a=t.data;if("0000"==a.code)return s.a.showmsg("发布成功","success"),void e.setData();l.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},setData:function(e){this.$emit("hidePublishDialog",!0)}},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){return e.$set(e.formData,"remark",t)},"update:input-value":function(t){return 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){return e.customConfirm("publishForm")}}},[e._v("发 布")])],1)])],1)},staticRenderFns:[]};var d=a("VU/8")(c,u,!1,function(e){a("ripu")},"data-v-68ac51f7",null);t.a=d.exports}});
\ No newline at end of file
......@@ -17,4 +17,4 @@ webpackJsonp([7],{"+2KV":function(t,e){},H6Jm:function(t,e){t.exports="data:imag
* @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"))},"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",staticStyle:{height:"100vh"}},[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:{"prefix-icon":"iconfont iconzhanghao",placeholder:"请输入账号"},model:{value:t.loginForm.userName,callback:function(e){t.$set(t.loginForm,"userName",e)},expression:"loginForm.userName"}})],1),t._v(" "),r("el-form-item",{attrs:{label:"",prop:"password"}},[r("el-input",{staticClass:"w-318",attrs:{"prefix-icon":"iconfont iconmima",type:"password",placeholder:"请输入密码"},model:{value:t.loginForm.password,callback:function(e){t.$set(t.loginForm,"password",e)},expression:"loginForm.password"}})],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("+2KV")},"data-v-99ea8192",null);e.default=u.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",staticStyle:{height:"100vh"}},[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:{"prefix-icon":"iconfont iconzhanghao",placeholder:"请输入账号"},model:{value:t.loginForm.userName,callback:function(e){t.$set(t.loginForm,"userName",e)},expression:"loginForm.userName"}})],1),t._v(" "),r("el-form-item",{attrs:{label:"",prop:"password"}},[r("el-input",{staticClass:"w-318",attrs:{"prefix-icon":"iconfont iconmima",type:"password",placeholder:"请输入密码"},model:{value:t.loginForm.password,callback:function(e){t.$set(t.loginForm,"password",e)},expression:"loginForm.password"}})],1),t._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:function(e){return 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("+2KV")},"data-v-99ea8192",null);e.default=u.exports},nErl:function(t,e){(function(e){t.exports=e}).call(e,{})}});
\ No newline at end of file
webpackJsonp([8],{"/UjW":function(e,t){},KZI4: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("fZjL"),s=a.n(i),l=a("l46T"),c=a("P9l9"),u=a("TUB1"),d=a("LlAa"),f={name:"new-env",props:{showDialog:{type:Boolean,default:!1},editRow:{type:Object,default:function(){return{sceneName:"",sceneCode:"",domainUrl:"",defaultFlag:!1}}}},components:{limitInput:l.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=t.formData.sceneName?String(t.formData.sceneName).replace(/\s+/g,""):"",t.formData.sceneCode=t.formData.sceneCode?String(t.formData.sceneCode).replace(/\s+/g,""):"",t.formData.domainUrl=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(c.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 u.a.showmsg("保存成功","success"),void e.setData();d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},setData:function(e){var t=this;t.$emit("hideDialog",t.formData),t.$nextTick(function(){t.formData.sceneName="",t.formData.sceneCode="",t.formData.domainUrl=""})}},watch:{showDialog:function(e,t){this.customDialog=e},editRow:function(e,t){s()(e).length&&(this.formData=JSON.parse(r()(e)))}},mounted:function(){this.customDialog=this.showDialog,s()(this.editRow).length&&(this.formData=JSON.parse(r()(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: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){return e.$set(e.formData,"sceneName",t)},"update:input-value":function(t){return 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){return e.$set(e.formData,"sceneCode",t)},"update:input-value":function(t){return 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:50},on:{"update:inputValue":function(t){return e.$set(e.formData,"domainUrl",t)},"update:input-value":function(t){return 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){return e.customConfirm("envForm")}}},[e._v(e._s(e.editRow.sceneCode?"保 存":"新 建"))])],1)])],1)},staticRenderFns:[]};var h=a("VU/8")(f,m,!1,function(e){a("/UjW")},"data-v-ba325d06",null).exports,p=a("jvWE"),g={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(p.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(c.a)("/gateway-manage/delete-scene",n).then(function(t){var n=t.data;if("0000"==n.code)return u.a.showmsg("删除成功","success"),void a.tableData.splice(e,1);d.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(c.a)("/gateway-manage/set-default-scene",n).then(function(e){var t=e.data;if("0000"==t.code)return u.a.showmsg("设置成功","success"),void a.getData();d.a.errorMsg(t)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},getData:function(){var e=this;Object(c.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||[]);d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getData()}},v={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){return 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){return e.handleEdit(t.$index,t.row)}}},[e._v("编辑")]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){return 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 b=a("VU/8")(g,v,!1,function(e){a("oSTL")},"data-v-0c33a274",null).exports,w={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(p.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?envSetFlag=show&proxyType="+t.proxyType+"&backendProxyId="+t.backendProxyId)},handleEdit:function(e,t){this.$router.push("/createEnvSet?envSetFlag=edit&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={backendProxyId:t.backendProxyId,requestProject:a.repProjectName};Object(c.a)("/gateway-manage/delete-proxy",n).then(function(t){var n=t.data;if("0000"==n.code)return u.a.showmsg("删除成功","success"),void a.tableData.splice(e,1);d.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(c.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);d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getData()}},D={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:"请输入配置名称/code"},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){return e.handleShow(t.$index,t.row)}}},[e._v("查看")]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.handleEdit(t.$index,t.row)}}},[e._v("编辑")]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){return 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 y=a("VU/8")(w,D,!1,function(e){a("pddE")},"data-v-77f8a360",null).exports,_={name:"envManage",components:{navBread:n.a,envList:b,envSetList:y},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(c.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)}},x={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 C=a("VU/8")(_,x,!1,function(e){a("KZI4")},"data-v-6ddcaa4a",null);t.default=C.exports},oSTL:function(e,t){},pddE:function(e,t){}});
\ No newline at end of file
webpackJsonp([8],{"/UjW":function(e,t){},ZT99:function(e,t){},iGM1:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("319J"),o=a("mvHQ"),i=a.n(o),r=a("fZjL"),s=a.n(r),l=a("l46T"),c=a("P9l9"),u=a("TUB1"),d=a("LlAa"),f={name:"new-env",props:{showDialog:{type:Boolean,default:!1},editRow:{type:Object,default:function(){return{sceneName:"",sceneCode:"",domainUrl:"",defaultFlag:!1}}}},components:{limitInput:l.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=t.formData.sceneName?String(t.formData.sceneName).replace(/\s+/g,""):"",t.formData.sceneCode=t.formData.sceneCode?String(t.formData.sceneCode).replace(/\s+/g,""):"",t.formData.domainUrl=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(c.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 u.a.showmsg("保存成功","success"),void e.setData();d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},setData:function(e){var t=this;t.$emit("hideDialog",t.formData),t.$nextTick(function(){t.formData.sceneName="",t.formData.sceneCode="",t.formData.domainUrl=""})}},watch:{showDialog:function(e,t){this.customDialog=e},editRow:function(e,t){s()(e).length&&(this.formData=JSON.parse(i()(e)))}},mounted:function(){this.customDialog=this.showDialog,s()(this.editRow).length&&(this.formData=JSON.parse(i()(this.editRow)))}},h={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:50},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 m=a("VU/8")(f,h,!1,function(e){a("/UjW")},"data-v-ba325d06",null).exports,p=a("jvWE"),g={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:m},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(p.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(c.a)("/gateway-manage/delete-scene",n).then(function(t){var n=t.data;if("0000"==n.code)return u.a.showmsg("删除成功","success"),void a.tableData.splice(e,1);d.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(c.a)("/gateway-manage/set-default-scene",n).then(function(e){var t=e.data;if("0000"==t.code)return u.a.showmsg("设置成功","success"),void a.getData();d.a.errorMsg(t)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},getData:function(){var e=this;Object(c.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||[]);d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getData()}},v={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 b=a("VU/8")(g,v,!1,function(e){a("oSTL")},"data-v-0c33a274",null).exports,w={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(p.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?envSetFlag=show&proxyType="+t.proxyType+"&backendProxyId="+t.backendProxyId)},handleEdit:function(e,t){this.$router.push("/createEnvSet?envSetFlag=edit&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={backendProxyId:t.backendProxyId,requestProject:a.repProjectName};Object(c.a)("/gateway-manage/delete-proxy",n).then(function(t){var n=t.data;if("0000"==n.code)return u.a.showmsg("删除成功","success"),void a.tableData.splice(e,1);d.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(c.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);d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getData()}},D={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:"请输入配置名称/code"},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 y=a("VU/8")(w,D,!1,function(e){a("pddE")},"data-v-77f8a360",null).exports,_={name:"envManage",components:{navBread:n.a,envList:b,envSetList:y},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(c.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)}},x={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 C=a("VU/8")(_,x,!1,function(e){a("ZT99")},"data-v-7f14fefd",null);t.default=C.exports},oSTL:function(e,t){},pddE:function(e,t){}});
\ No newline at end of file
webpackJsonp([9],{"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(e){})},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("WKN7")},"data-v-2884065b",null).exports,u={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:[]}]}},methods:{selectTab:function(e,t,a){if(t?this.leftMenuData[a].onlyIconActive=!0:(this.leftMenuData.forEach(function(e){e.onlyIconActive=!1}),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 b={name:"index",data:function(){return{projectName:"haoban-manage-web",windowH:window.screen.height-56-40-72+"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")(u,h,!1,function(e){a("bcia")},"data-v-7187d995",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"},[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",staticStyle:{height:"calc(100vh - 56px)"}},[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")(b,f,!1,function(e){a("NRyW")},null,null);t.default=g.exports},NRyW:function(e,t){},WKN7:function(e,t){},bcia:function(e,t){}});
\ No newline at end of file
webpackJsonp([9],{"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(e){})},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("WKN7")},"data-v-2884065b",null).exports,u={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:[]}]}},methods:{selectTab:function(e,t,a){if(t?this.leftMenuData[a].onlyIconActive=!0:(this.leftMenuData.forEach(function(e){e.onlyIconActive=!1}),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){return 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){return 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-56-40-72+"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")(u,h,!1,function(e){a("bcia")},"data-v-7187d995",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"},[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",staticStyle:{height:"calc(100vh - 56px)"}},[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")(b,f,!1,function(e){a("NRyW")},null,null);t.default=g.exports},NRyW:function(e,t){},WKN7:function(e,t){},bcia:function(e,t){}});
\ No newline at end of file
webpackJsonp([23],{"/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 c=t("VU/8")({name:"App",data:function(){return{}}},u,!1,function(e){t("/NA0")},null,null).exports,s=t("lRwf"),p=t.n(s),m=t("pRNm"),f=t.n(m),g=t("5tgt"),l=t.n(g);p.a.use(f.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:"/groupApiList",name:"项目分组API列表",component:l()("index","groupApiList")},{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:"/plugAhsh",name:"插件管理",component:l()("index","plugAhsh")},{path:"/plugPlatform",name:"插件管理",component:l()("index","plugPlatform")},{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 f.a({routes:h,scrollBehavior:function(){return{y:0}}}),I=t("zL8q"),S=t.n(I),M=t("Rf8U"),k=t.n(M),w=t("mtWM"),A=t.n(w),D=t("bOdI"),P=t.n(D),R=t("mvHQ"),B=t.n(R),L=t("SJI6"),T=t.n(L);p.a.use(T.a);var b=new T.a.Store({state:{userInfo:{},token:null,title:"",show:!1,bgHeight:window.screen.availHeight-440-24+"px",baseInfo:{},frontInfo:{},backInfo:{},resultInfo:{},tempBackData:[]},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,"saveResult",function(e,n){e.resultInfo=n}),P()(d,"saveTempBack",function(e,n){e.tempBackData=n}),P()(d,"clearTempBack",function(e){e.tempBackData=[]}),P()(d,"clearData",function(e){e.baseInfo={},e.frontInfo={},e.backInfo={},e.resultInfo={}}),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)},saveResultInfo:function(e,n){e.commit("saveResult",n)},saveTempBackData:function(e,n){e.commit("saveTempBack",n)},clearTempBackData:function(e,n){e.commit("clearTempBack")},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){if(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){if(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){if(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(k.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:b,components:{App:c},template:"<App/>"})},Opzk:function(e,n,t){var o={"./errorPage/403.vue":["6XGN",11],"./errorPage/404.vue":["AejC",14],"./errorPage/500.vue":["FskK",10],"./errorPage/index.vue":["ODjX",1],"./index/apiList.vue":["tiLT",0,19],"./index/apiListManage.vue":["dqHC",0,5],"./index/apiListManageShow.vue":["r4m9",0,3],"./index/apiProgram.vue":["kAqA",0,12],"./index/apiProgramGroup.vue":["G8l+",0,18],"./index/createApi.vue":["Yns/",0,2],"./index/createEnvSet.vue":["vm6Q",0,16],"./index/envManage.vue":["iGM1",0,8],"./index/errorCode.vue":["SGyq",0,13],"./index/groupApiList.vue":["S82n",0,17],"./index/index.vue":["JXTs",0,9],"./index/overview.vue":["EBdF",0,21],"./index/plugAhsh.vue":["JN/y",0,4],"./index/plugPlatform.vue":["dAfO",0,6],"./index/pluginManage.vue":["K0rJ",0,20],"./index/releaseRecords.vue":["OEJD",0,15],"./login/index.vue":["T+/8",0,7]};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([23],{"/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 c=t("VU/8")({name:"App",data:function(){return{}}},u,!1,function(e){t("/NA0")},null,null).exports,s=t("lRwf"),p=t.n(s),m=t("pRNm"),f=t.n(m),g=t("5tgt"),l=t.n(g);p.a.use(f.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:"/groupApiList",name:"项目分组API列表",component:l()("index","groupApiList")},{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:"/plugAhsh",name:"插件管理",component:l()("index","plugAhsh")},{path:"/plugPlatform",name:"插件管理",component:l()("index","plugPlatform")},{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 f.a({routes:h,scrollBehavior:function(){return{y:0}}}),I=t("zL8q"),S=t.n(I),M=t("Rf8U"),k=t.n(M),w=t("mtWM"),A=t.n(w),D=t("bOdI"),P=t.n(D),R=t("mvHQ"),B=t.n(R),L=t("SJI6"),T=t.n(L);p.a.use(T.a);var b=new T.a.Store({state:{userInfo:{},token:null,title:"",show:!1,bgHeight:window.screen.availHeight-440-24+"px",baseInfo:{},frontInfo:{},backInfo:{},resultInfo:{},tempBackData:[]},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,"saveResult",function(e,n){e.resultInfo=n}),P()(d,"saveTempBack",function(e,n){e.tempBackData=n}),P()(d,"clearTempBack",function(e){e.tempBackData=[]}),P()(d,"clearData",function(e){e.baseInfo={},e.frontInfo={},e.backInfo={},e.resultInfo={}}),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)},saveResultInfo:function(e,n){e.commit("saveResult",n)},saveTempBackData:function(e,n){e.commit("saveTempBack",n)},clearTempBackData:function(e,n){e.commit("clearTempBack")},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){if(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){if(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){if(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(k.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:b,components:{App:c},template:"<App/>"})},Opzk:function(e,n,t){var o={"./errorPage/403.vue":["6XGN",11],"./errorPage/404.vue":["AejC",14],"./errorPage/500.vue":["FskK",10],"./errorPage/index.vue":["ODjX",1],"./index/apiList.vue":["tiLT",0,19],"./index/apiListManage.vue":["dqHC",0,6],"./index/apiListManageShow.vue":["r4m9",0,3],"./index/apiProgram.vue":["kAqA",0,12],"./index/apiProgramGroup.vue":["G8l+",0,18],"./index/createApi.vue":["Yns/",0,2],"./index/createEnvSet.vue":["vm6Q",0,16],"./index/envManage.vue":["iGM1",0,8],"./index/errorCode.vue":["SGyq",0,13],"./index/groupApiList.vue":["S82n",0,17],"./index/index.vue":["JXTs",0,9],"./index/overview.vue":["EBdF",0,21],"./index/plugAhsh.vue":["JN/y",0,4],"./index/plugPlatform.vue":["dAfO",0,5],"./index/pluginManage.vue":["K0rJ",0,20],"./index/releaseRecords.vue":["OEJD",0,15],"./login/index.vue":["T+/8",0,7]};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,c,o){for(var f,d,b,i=0,u=[];i<r.length;i++)d=r[i],t[d]&&u.push(t[d][0]),t[d]=0;for(f in c)Object.prototype.hasOwnProperty.call(c,f)&&(e[f]=c[f]);for(n&&n(r,c,o);u.length;)u.shift()();if(o)for(i=0;i<o.length;i++)b=a(a.s=o[i]);return b};var r={},t={24:0};function a(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,a),t.l=!0,t.exports}a.e=function(e){var n=t[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var r=new Promise(function(r,a){n=t[e]=[r,a]});n[2]=r;var c=document.getElementsByTagName("head")[0],o=document.createElement("script");o.type="text/javascript",o.charset="utf-8",o.async=!0,o.timeout=12e4,a.nc&&o.setAttribute("nonce",a.nc),o.src=a.p+"static/js/"+e+"."+{0:"90396234095c3f4ccd83",1:"490562478be660678b4c",2:"47bb6e2874f8e7578406",3:"ffd63218b3c917aa590e",4:"49a72b6a8a5a49a5977d",5:"85506cb983e39727ee41",6:"a472d3622176443ad94f",7:"72018c98a73d270fcba1",8:"3843464b156f1ec41255",9:"99830badcedb8c5879ac",10:"5f05f4301a7fb506441d",11:"21a83ee103f75aa57623",12:"b4bc9a8bb8c00fecc268",13:"638b5e98335787cbed36",14:"4e76cd6eb6781cb05160",15:"330f790d2fa7c3ff18e3",16:"bfb5ce49f711622a5d0f",17:"8e5b1f4be69b5a9eacdb",18:"6353172b6ac6d8824ed5",19:"b051cfdb0add5d98aa36",20:"6cb1d673648c9aa3778a",21:"55879284ad4d1f03fbe0"}[e]+".js";var f=setTimeout(d,12e4);function d(){o.onerror=o.onload=null,clearTimeout(f);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return o.onerror=o.onload=d,c.appendChild(o),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,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 a)Object.prototype.hasOwnProperty.call(a,f)&&(e[f]=a[f]);for(n&&n(r,a,c);b.length;)b.shift()();if(c)for(u=0;u<c.length;u++)i=o(o.s=c[u]);return i};var r={},t={24:0};function o(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.e=function(e){var n=t[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var r=new Promise(function(r,o){n=t[e]=[r,o]});n[2]=r;var 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:"52863aa1d72d31066413",1:"0ebe3ead93207dc78a78",2:"1a7d4d11bb591d879df6",3:"ee2db5932cf0c94dec20",4:"42639b6df28493f31a16",5:"842d518baa251c8fedc4",6:"52e14b1f79af7d86f42f",7:"b2a85a42ddd430235a63",8:"81460c8c66d06cfea732",9:"c98145195e68a6e13faf",10:"638039a7b39908980436",11:"f27d1de28264fbbe30ff",12:"ccbc18453e41490e2dba",13:"b109164d2be44afb7733",14:"9825bb69e60b8030c230",15:"6700988b665e14f99d41",16:"6e70f43452cbef826036",17:"8354f7b686256ddf47fb",18:"e7685f45ec4dd5b70ae4",19:"40fd9824f7542ed7f56d",20:"c163ea91d150e0ca1cb1",21:"55879284ad4d1f03fbe0"}[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,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.
<!--
* @Descripttion : 当前组件信息
* @Author : 无尘
* @Date : 2020-04-03 16:18:11
* @LastEditors : 无尘
* @LastEditTime : 2020-04-03 17:59:47
* @FilePath : \Hapi-demoj:\公司\api-gateway\src\components\plug\log-list.vue
-->
<template>
<div style="margin-top:20px">
<div class="table-content">
<el-table :data="tableData" style="width: 100%" tooltip-effect="dark" v-loading="loading" :height="tableHeight">
<el-table-column label="请求ip" prop="projectName">
<template slot-scope="scope">
{{ scope.row.requestIp }}
</template>
</el-table-column>
<el-table-column label="应用" prop="groupName">
<template slot-scope="scope">
{{ scope.row.app }}
</template>
</el-table-column>
<el-table-column label="开发者账号" prop="interfaceName">
<template slot-scope="scope">
{{ scope.row.developer }}
</template>
</el-table-column>
<el-table-column label="请求时间" prop="bindTime">
<template slot-scope="scope">
<div class="color-606266 line-18">{{ scope.row.requestTime | timeStampToYmd }}</div>
<div class="color-606266 line-18">{{ scope.row.requestTime | timeStampToHms }}</div>
</template>
</el-table-column>
<el-table-column label="商户" prop="interfaceName">
<template slot-scope="scope">
{{ scope.row.merchant }}
</template>
</el-table-column>
<el-table-column label="接口" prop="interfaceName">
<template slot-scope="scope">
{{ scope.row.interface }}
</template>
</el-table-column>
<el-table-column label="请求内容" prop="interfaceName">
<template slot-scope="scope">
{{ scope.row.requestContent }}
</template>
</el-table-column>
<el-table-column label="返回内容" prop="interfaceName">
<template slot-scope="scope">
{{ scope.row.responseContent }}
</template>
</el-table-column>
<el-table-column label="状态" prop="interfaceName">
<template slot-scope="scope">
{{ scope.row.status }}
</template>
</el-table-column>
<el-table-column label="备注">
<template slot-scope="scope">
{{ scope.row.remarks }}
</template>
</el-table-column>
</el-table>
</div>
</div>
</template>
<script>
import { getRequest } from '@/api/api';
export default {
props: {
tableData: {
type: Array,
default() {
return [];
}
}
},
data() {
return {};
},
methods: {
cancelBind(item) {
var that = this;
let params = {
id: item.openPlatformInterfaceId
};
getRequest('/gateway-manage/platform/white/unbind', params)
.then(res => {
if (res.data.code == '0000') {
this.$emit('getList');
} else {
this.$message.error(res.data.message);
}
})
.catch(function(error) {
that.$message.error({
duration: 1000,
message: error.message
});
});
}
},
components: {}
};
</script>
<style lang="less" scoped></style>
......@@ -3,8 +3,8 @@
* @version: 1.0.0
* @Author: 无尘
* @Date: 2019-09-05 10:03:31
* @LastEditors: 无尘
* @LastEditTime: 2019-09-05 10:03:31
* @LastEditors : 无尘
* @LastEditTime : 2020-04-03 20:21:55
-->
<template>
<div class="api-body-content border-box">
......@@ -43,6 +43,17 @@
<el-tab-pane label="错误码配置" name="third" v-loading="loading">
<errorCodeList v-if="activeName === 'third'" :tableData="tableData" @getList="getList"></errorCodeList>
</el-tab-pane>
<el-tab-pane label="日志" name="four" v-loading="loading">
<div class="log-search flex">
<el-date-picker class="" v-model="requestDate" type="date" format="yyyy-MM-dd" value-format="yyyy-MM-dd" placeholder="选择请求时间" :editable="false" @change="changeDate"> </el-date-picker><el-input class="w-250 marginLeft10" placeholder="请输入开发者账号/ip/商户名称" prefix-icon="el-icon-search" v-model="searchValue" clearable @clear="clearSearch" @keyup.native="value => searchEnterFun(value, searchValue)"> </el-input> <el-select v-model="requestProjectId" placeholder="请选择项目" class="w-140 marginLeft10" size="small" style="display:inline-block" clearable @change="changePro()"> <el-option v-for="item in projectList" :key="item.id" :label="item.name" :value="item.id"> </el-option> </el-select
><el-select v-model="requestStatus" placeholder="请选择状态" class="w-140 marginLeft10" size="small" style="display:inline-block" clearable @change="changeStatus()">
<el-option label="全部状态" value=""></el-option>
<el-option label="成功" value="1"></el-option>
<el-option label="失败" value="0"></el-option>
</el-select>
</div>
<log-list :tableData="tableData" @getList="getList"></log-list>
</el-tab-pane>
</el-tabs>
<div style="text-align:right;margin-top:20px;" v-if="total !== 0">
<el-pagination background @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage" :page-sizes="pageSizes" :page-size="pageSize" layout="total, sizes, prev, pager, next" :total="total"> </el-pagination>
......@@ -66,6 +77,7 @@ import whiteList from '@/components/plug/white-list';
import capacityList from '@/components/plug/capacity-list';
import errorCodeList from '@/components/plug/error-code';
import bindTranser from '@/components/plug/bind-transfer';
import logList from '@/components/plug/log-list';
import newErrorCode from '@/components/plug/new-error-code';
export default {
name: 'envManage',
......@@ -76,7 +88,8 @@ export default {
capacityList,
errorCodeList,
bindTranser,
newErrorCode
newErrorCode,
logList
},
data() {
return {
......@@ -106,11 +119,16 @@ export default {
currentPage: 1,
pageSize: 20,
pageSizes: [20, 40, 60, 80],
showNewCode:false,
errorSettingId:'',
showBinddialog:false,
type:'',
loading:false
showNewCode: false,
errorSettingId: '',
showBinddialog: false,
type: '',
loading: false,
// log
requestDate: '',
searchValue: '',
requestProjectId: '',
requestStatus: ''
};
},
methods: {
......@@ -119,10 +137,10 @@ export default {
*/
/* eslint-disable */
handleClick(tab, event) {
this.search = ''
this.projectId= ''
this.groupId= ''
this.getList()
this.search = '';
this.projectId = '';
this.groupId = '';
this.getList();
},
goEnvList() {
this.showdialog = true;
......@@ -132,16 +150,15 @@ export default {
this.showdialog = false;
},
getChange() {
this.groupId = ''
this.getGroupList()
this.getList()
this.groupId = '';
this.getGroupList();
this.getList();
},
getSearchList() {
if(this.activeName === 'first'||this.activeName === 'second') {
this.currentPage = 1
this.getGroupList()
this.getList()
if (this.activeName === 'first' || this.activeName === 'second') {
this.currentPage = 1;
this.getGroupList();
this.getList();
}
},
// 分页
......@@ -158,89 +175,89 @@ export default {
//获取列表
getList() {
var that = this;
let url = ''
let params = {}
if(this.activeName === 'first') {//白名单
url='/gateway-manage/platform/white/list'
let url = '';
let params = {};
if (this.activeName === 'first') {
//白名单
url = '/gateway-manage/platform/white/list';
params = {
projectId:this.projectId?this.projectId:null,
groupId:this.groupId?this.groupId:null,
search:this.search?this.search:null,
sceneCode:this.sceneCode,
currentPage:this.currentPage,
pageSize:this.pageSize
}
}else if(this.activeName === 'second') {
url='/gateway-manage/platform/capacity/list'
projectId: this.projectId ? this.projectId : null,
groupId: this.groupId ? this.groupId : null,
search: this.search ? this.search : null,
sceneCode: this.sceneCode,
currentPage: this.currentPage,
pageSize: this.pageSize
};
} else if (this.activeName === 'second') {
url = '/gateway-manage/platform/capacity/list';
params = {
projectId:this.projectId?this.projectId:null,
groupId:this.groupId?this.groupId:null,
search:this.search?this.search:null,
sceneCode:this.sceneCode,
currentPage:this.currentPage,
pageSize:this.pageSize
}
}else if(this.activeName === 'third') {
url='/gateway-manage/page-error-setting'
projectId: this.projectId ? this.projectId : null,
groupId: this.groupId ? this.groupId : null,
search: this.search ? this.search : null,
sceneCode: this.sceneCode,
currentPage: this.currentPage,
pageSize: this.pageSize
};
} else if (this.activeName === 'third') {
url = '/gateway-manage/page-error-setting';
params = {
errorType:2,
pageNum:this.currentPage,
pageSize:this.pageSize
}
errorType: 2,
pageNum: this.currentPage,
pageSize: this.pageSize
};
}
if(this.activeName === 'first'||this.activeName === 'second') {
this.loading = true
if (this.activeName === 'first' || this.activeName === 'second') {
this.loading = true;
getRequest(url, params)
.then(res => {
if (res.data.code == '0000') {
if (res.data.result.result) {
.then(res => {
if (res.data.code == '0000') {
if (res.data.result.result) {
this.tableData = res.data.result.result;
this.total = res.data.result.totalCount
this.total = res.data.result.totalCount;
} else {
this.tableData = [];
this.total = 0
this.total = 0;
}
this.loading = false
} else {
this.$message.error(res.data.message);
}
})
.catch(function(error) {
that.$message.error({
duration: 1000,
message: error.message
this.loading = false;
} else {
this.$message.error(res.data.message);
}
})
.catch(function(error) {
that.$message.error({
duration: 1000,
message: error.message
});
});
});
}else{
this.loading = true
} else {
this.loading = true;
postRequest(url, params)
.then(res => {
if (res.data.code == '0000') {
if (res.data.result.result) {
.then(res => {
if (res.data.code == '0000') {
if (res.data.result.result) {
this.tableData = res.data.result.result;
this.total = res.data.result.totalCount
this.total = res.data.result.totalCount;
} else {
this.tableData = [];
this.total = 0
this.total = 0;
}
this.loading = false
} else {
this.$message.error(res.data.message);
}
})
.catch(function(error) {
that.$message.error({
duration: 1000,
message: error.message
this.loading = false;
} else {
this.$message.error(res.data.message);
}
})
.catch(function(error) {
that.$message.error({
duration: 1000,
message: error.message
});
});
});
}
},
//获取项目列表
getProjectList() {
var that = this;
getRequest('/gateway-manage//plugin/interface/tree',{})
getRequest('/gateway-manage//plugin/interface/tree', {})
.then(res => {
if (res.data.code == '0000') {
if (res.data.result) {
......@@ -262,10 +279,10 @@ export default {
//获取分组列表
getGroupList() {
var that = this;
let params = {
type:0,
id:this.projectId
}
let params = {
type: 0,
id: this.projectId
};
getRequest('/gateway-manage/plugin/interface/tree', params)
.then(res => {
if (res.data.code == '0000') {
......@@ -286,19 +303,19 @@ export default {
});
},
//新建错误码addCode
addCode(){
addCode() {
this.showNewCode = true;
this.errorSettingId =''
this.errorSettingId = '';
},
cancelNewCoce() {
this.showNewCode = false;
},
addBind(val) {
this.showBinddialog = true
this.type = val
this.showBinddialog = true;
this.type = val;
},
cancelBind() {
this.showBinddialog = false
this.showBinddialog = false;
}
},
watch: {
......@@ -308,64 +325,69 @@ export default {
deep: true
},
$route(to, from) {
this.pluginId = this.$route.query.pluginId
this.sceneCode = this.$route.query.sceneCode
this.pluginId = this.$route.query.pluginId;
this.sceneCode = this.$route.query.sceneCode;
this.getProjectList();
this.getList()
this.getList();
}
},
created() {
this.pluginId = this.$route.query.pluginId
this.sceneCode = this.$route.query.sceneCode
this.pluginId = this.$route.query.pluginId;
this.sceneCode = this.$route.query.sceneCode;
this.getProjectList();
this.getList()
this.getList();
}
};
</script>
<style lang="less" scoped>
.w-320{
width:320px;
.w-320 {
width: 320px;
}
.w-140 {
width: 140px;
}
.w-140{
width:140px;
.w-250 {
width: 250px;
}
.marginLeft10{
margin-left:10px;
.marginLeft10 {
margin-left: 10px;
}
.common-nav{
.common-nav {
position: relative;
.change-env{
position: fixed;
right:20px;
font-size:12px;
top: 63px;
width:85px;
height:26px;
color:#606266;
line-height:26px;
text-align: center;
background:#EBECF0;
border-radius:40px;
cursor: pointer;
i{
font-size:12px;
}
}
.change-env:hover{
// box-shadow: 0px 2px 10px 0px rgba(213, 213, 213, 0.5);
cursor: pointer;
.change-env {
position: fixed;
right: 20px;
font-size: 12px;
top: 63px;
width: 85px;
height: 26px;
color: #606266;
line-height: 26px;
text-align: center;
background: #ebecf0;
border-radius: 40px;
cursor: pointer;
i {
font-size: 12px;
}
}
.change-env:hover {
// box-shadow: 0px 2px 10px 0px rgba(213, 213, 213, 0.5);
cursor: pointer;
}
}
.search-box{
display:flex;
.search-box {
display: flex;
justify-content: space-between;
margin-top:5px;
.left{
font-size:0
margin-top: 5px;
.left {
font-size: 0;
}
}
</style>
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