Commit 4c96bd43 by 无尘

fix: 修改api列表和面包屑样式等

parent 4d9bf70f
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>API网关管理平台</title><link href=./static/css/app.489d9f69bd891830c3c66eee2fdb3849.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.faf51f439db4d1db010b.js></script><script type=text/javascript src=./static/js/vendor.0af499866de7ef505f4c.js></script><script type=text/javascript src=./static/js/app.89eba62958dacdc24b81.js></script></body></html> <!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>API网关管理平台</title><link href=./static/css/app.90a256fe0ed9f021ac3db4269fafcb09.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.e7e51689af00e76ac4a0.js></script><script type=text/javascript src=./static/js/vendor.71dc162eb690bf6a36a0.js></script><script type=text/javascript src=./static/js/app.645acae76cd0fc1ae565.js></script></body></html>
\ No newline at end of file \ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
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 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("48Sm")},"data-v-3a22ed89",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)]}},"48Sm":function(t,e){},"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){}}(),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 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=F(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()),R(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=F(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,R(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&&R(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}},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,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"),o={name:"nav-bread",data:function(){return{projectName:"api-gateway-web"}},props:{navPath:{type:Array,default:function(){return[]}},slotFlag:{type:Boolean,default:!1},navtip:{type:Boolean,default:!1},subNavText:{type:String,default:""}},methods:{changeRoute:function(t,e){if(e)window.location.href=t;else{if(this.$route.fullPath.includes("?")){var n=t+("?"+this.$route.fullPath.split("?")[1]);return this.$router.push(n),!1}this.$router.push(t)}},getNavPath:function(){var t=this,e={project:t.projectName,path:t.$route.path.split("/")[1]};Object(r.b)("/api-auth/get-current-memu-data",e).then(function(e){var n=e.data;if(0==n.errorCode)return!!n.result&&(t.navpath=[],void(n.result.list&&n.result.list.length&&n.result.list.forEach(function(e,r){e.name=e.menuName,e.path="",r==n.result.list.length-1&&(e.path="/"+e.menuUrl),r>0&&t.navpath.push(e)})));i.a.errorMsg(n)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){}},a={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"nav-wrap boxbttom border-box"},[n("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},[t._l(t.navPath,function(e,r){return[e.path?[n("el-breadcrumb-item",{key:"nav"+r,on:{click:function(n){t.changeRoute(e.path,e.relocation)}}},[n("span",{staticClass:"el-breadcrumb__inner is-link",on:{click:function(n){t.changeRoute(e.path,e.relocation)}}},[t._v("\n "+t._s(e.name))])])]:[n("el-breadcrumb-item",{key:"nav"+r},[t._v(t._s(e.name))])]]})],2)],1)},staticRenderFns:[]};var u=n("VU/8")(o,a,!1,function(t){n("48Sm")},"data-v-3a22ed89",null);e.a=u.exports},"3fs2":function(t,e,n){var r=n("RY/4"),i=n("dSzd")("iterator"),o=n("/bQp");t.exports=n("FeBl").getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[r(t)]}},"48Sm":function(t,e){},"82Mu":function(t,e,n){var r=n("7KvD"),i=n("L42u").set,o=r.MutationObserver||r.WebKitMutationObserver,a=r.process,u=r.Promise,s="process"==n("R9M2")(a);t.exports=function(){var t,e,n,l=function(){var r,i;for(s&&(r=a.domain)&&r.exit();t;){i=t.fn,t=t.next;try{i()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(s)n=function(){a.nextTick(l)};else if(!o||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 o(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,o,a,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"),v=n("NWt+"),m=n("t8x9"),g=n("L42u").set,y=n("82Mu")(),b=n("qARP"),w=n("dNDb"),x=n("iUbK"),_=n("fJUb"),j=s.TypeError,O=s.process,P=O&&O.versions,V=P&&P.v8||"",L=s.Promise,N="process"==c(O),C=function(){},R=i=b.f,k=!!function(){try{var t=L.resolve(1),e=(t.constructor={})[n("dSzd")("species")]=function(t){t(C,C)};return(N||"function"==typeof PromiseRejectionEvent)&&t.then(C)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},A=function(t,e){if(!t._n){t._n=!0;var n=t._c;y(function(){for(var r=t._v,i=1==t._s,o=0,a=function(e){var n,o,a,u=i?e.ok:e.fail,s=e.resolve,l=e.reject,c=e.domain;try{u?(i||(2==t._h&&D(t),t._h=1),!0===u?n=r:(c&&c.enter(),n=u(r),c&&(c.exit(),a=!0)),n===e.promise?l(j("Promise-chain cycle")):(o=F(n))?o.call(n,s,l):s(n)):l(r)}catch(t){c&&!a&&c.exit(),l(t)}};n.length>o;)a(n[o++]);t._c=[],t._n=!1,e&&!t._h&&B(t)})}},B=function(t){g.call(s,function(){var e,n,r,i=t._v,o=S(t);if(o&&(e=w(function(){N?O.emit("unhandledRejection",i,t):(n=s.onunhandledrejection)?n({promise:t,reason:i}):(r=s.console)&&r.error&&r.error("Unhandled promise rejection",i)}),t._h=N||S(t)?2:1),t._a=void 0,o&&e.e)throw e.v})},S=function(t){return 1!==t._h&&0===(t._a||t._c).length},D=function(t){g.call(s,function(){var e;N?O.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()),A(e,!0))},E=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw j("Promise can't be resolved itself");(e=F(t))?y(function(){var r={_w:n,_d:!1};try{e.call(t,l(E,r,1),l(T,r,1))}catch(t){T.call(r,t)}}):(n._v=t,n._s=1,A(n,!1))}catch(t){T.call({_w:n,_d:!1},t)}}};k||(L=function(t){h(this,L,"Promise","_h"),d(t),r.call(this);try{t(l(E,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")(L.prototype,{then:function(t,e){var n=R(m(this,L));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=N?O.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&A(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r;this.promise=t,this.resolve=l(E,t,1),this.reject=l(T,t,1)},b.f=R=function(t){return t===L||t===a?new o(t):i(t)}),f(f.G+f.W+f.F*!k,{Promise:L}),n("e6n0")(L,"Promise"),n("bRrM")("Promise"),a=n("FeBl").Promise,f(f.S+f.F*!k,"Promise",{reject:function(t){var e=R(this);return(0,e.reject)(t),e.promise}}),f(f.S+f.F*(u||!k),"Promise",{resolve:function(t){return _(u&&this===a?L:this,t)}}),f(f.S+f.F*!(k&&n("dY0y")(function(t){L.all(t).catch(C)})),"Promise",{all:function(t){var e=this,n=R(e),r=n.resolve,i=n.reject,o=w(function(){var n=[],o=0,a=1;v(t,!1,function(t){var u=o++,s=!1;n.push(void 0),a++,e.resolve(t).then(function(t){s||(s=!0,n[u]=t,--a||r(n))},i)}),--a||r(n)});return o.e&&i(o.v),n.promise},race:function(t){var e=this,n=R(e),r=n.reject,i=w(function(){v(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return i.e&&r(i.v),n.promise}})},CwSZ:function(t,e,n){"use strict";var r=n("p8xL"),i=n("XgCd"),o={brackets:function(t){return t+"[]"},indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},a=Date.prototype.toISOString,u={delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,serializeDate:function(t){return a.call(t)},skipNulls:!1,strictNullHandling:!1},s=function t(e,n,i,o,a,s,l,c,f,p,d,h){var v=e;if("function"==typeof l)v=l(n,v);else if(v instanceof Date)v=p(v);else if(null===v){if(o)return s&&!h?s(n,u.encoder):n;v=""}if("string"==typeof v||"number"==typeof v||"boolean"==typeof v||r.isBuffer(v))return s?[d(h?n:s(n,u.encoder))+"="+d(s(v,u.encoder))]:[d(n)+"="+d(String(v))];var m,g=[];if(void 0===v)return g;if(Array.isArray(l))m=l;else{var y=Object.keys(v);m=c?y.sort(c):y}for(var b=0;b<m.length;++b){var w=m[b];a&&null===v[w]||(g=Array.isArray(v)?g.concat(t(v[w],i(n,w),i,o,a,s,l,c,f,p,d,h)):g.concat(t(v[w],n+(f?"."+w:"["+w+"]"),i,o,a,s,l,c,f,p,d,h)))}return g};t.exports=function(t,e){var n=t,a=e?r.assign({},e):{};if(null!==a.encoder&&void 0!==a.encoder&&"function"!=typeof a.encoder)throw new TypeError("Encoder has to be a function.");var l=void 0===a.delimiter?u.delimiter:a.delimiter,c="boolean"==typeof a.strictNullHandling?a.strictNullHandling:u.strictNullHandling,f="boolean"==typeof a.skipNulls?a.skipNulls:u.skipNulls,p="boolean"==typeof a.encode?a.encode:u.encode,d="function"==typeof a.encoder?a.encoder:u.encoder,h="function"==typeof a.sort?a.sort:null,v=void 0!==a.allowDots&&a.allowDots,m="function"==typeof a.serializeDate?a.serializeDate:u.serializeDate,g="boolean"==typeof a.encodeValuesOnly?a.encodeValuesOnly:u.encodeValuesOnly;if(void 0===a.format)a.format=i.default;else if(!Object.prototype.hasOwnProperty.call(i.formatters,a.format))throw new TypeError("Unknown format option provided.");var y,b,w=i.formatters[a.format];"function"==typeof a.filter?n=(b=a.filter)("",n):Array.isArray(a.filter)&&(y=b=a.filter);var x,_=[];if("object"!=typeof n||null===n)return"";x=a.arrayFormat in o?a.arrayFormat:"indices"in a?a.indices?"indices":"repeat":"indices";var j=o[x];y||(y=Object.keys(n)),h&&y.sort(h);for(var O=0;O<y.length;++O){var P=y[O];f&&null===n[P]||(_=_.concat(s(n[P],P,j,c,f,p?d:null,b,h,v,m,w,g)))}var V=_.join(l),L=!0===a.addQueryPrefix?"?":"";return V.length>0?L+V:""}},DDCP:function(t,e,n){"use strict";var r=n("p8xL"),i=Object.prototype.hasOwnProperty,o={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:r.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},a=function(t,e,n){if(t){var r=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,o=/(\[[^[\]]*])/g,a=/(\[[^[\]]*])/.exec(r),u=a?r.slice(0,a.index):r,s=[];if(u){if(!n.plainObjects&&i.call(Object.prototype,u)&&!n.allowPrototypes)return;s.push(u)}for(var l=0;null!==(a=o.exec(r))&&l<n.depth;){if(l+=1,!n.plainObjects&&i.call(Object.prototype,a[1].slice(1,-1))&&!n.allowPrototypes)return;s.push(a[1])}return a&&s.push("["+r.slice(a.index)+"]"),function(t,e,n){for(var r=e,i=t.length-1;i>=0;--i){var o,a=t[i];if("[]"===a)o=(o=[]).concat(r);else{o=n.plainObjects?Object.create(null):{};var u="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,s=parseInt(u,10);!isNaN(s)&&a!==u&&String(s)===u&&s>=0&&n.parseArrays&&s<=n.arrayLimit?(o=[])[s]=r:o[u]=r}r=o}return r}(s,e,n)}};t.exports=function(t,e){var n=e?r.assign({},e):{};if(null!==n.decoder&&void 0!==n.decoder&&"function"!=typeof n.decoder)throw new TypeError("Decoder has to be a function.");if(n.ignoreQueryPrefix=!0===n.ignoreQueryPrefix,n.delimiter="string"==typeof n.delimiter||r.isRegExp(n.delimiter)?n.delimiter:o.delimiter,n.depth="number"==typeof n.depth?n.depth:o.depth,n.arrayLimit="number"==typeof n.arrayLimit?n.arrayLimit:o.arrayLimit,n.parseArrays=!1!==n.parseArrays,n.decoder="function"==typeof n.decoder?n.decoder:o.decoder,n.allowDots="boolean"==typeof n.allowDots?n.allowDots:o.allowDots,n.plainObjects="boolean"==typeof n.plainObjects?n.plainObjects:o.plainObjects,n.allowPrototypes="boolean"==typeof n.allowPrototypes?n.allowPrototypes:o.allowPrototypes,n.parameterLimit="number"==typeof n.parameterLimit?n.parameterLimit:o.parameterLimit,n.strictNullHandling="boolean"==typeof n.strictNullHandling?n.strictNullHandling:o.strictNullHandling,""===t||null===t||void 0===t)return n.plainObjects?Object.create(null):{};for(var u="string"==typeof t?function(t,e){for(var n={},r=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,a=e.parameterLimit===1/0?void 0:e.parameterLimit,u=r.split(e.delimiter,a),s=0;s<u.length;++s){var l,c,f=u[s],p=f.indexOf("]="),d=-1===p?f.indexOf("="):p+1;-1===d?(l=e.decoder(f,o.decoder),c=e.strictNullHandling?null:""):(l=e.decoder(f.slice(0,d),o.decoder),c=e.decoder(f.slice(d+1),o.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=a(f,u[f],n);s=r.merge(s,p,n)}return r.compact(s)}},EqBC:function(t,e,n){"use strict";var r=n("kM2E"),i=n("FeBl"),o=n("7KvD"),a=n("t8x9"),u=n("fJUb");r(r.P+r.R,"Promise",{finally:function(t){var e=a(this,i.Promise||o.Promise),n="function"==typeof t;return this.then(n?function(n){return u(e,t()).then(function(){return n})}:t,n?function(n){return u(e,t()).then(function(){throw n})}:t)}})},Kkt8:function(t,e,n){"use strict";var r=n("UlGk"),i={name:"limittextarea",props:{inputValue:{type:String,default:""},maxLength:{type:Number,default:10},inputWidth:{type:Number,default:500},getByType:{type:String,default:"word"},holder:{type:String,default:"请输入"},disInput:{type:Boolean,default:!1}},data:function(){return{inputNum:0,limitLength:10,itemValue:""}},methods:{inputFocus:function(t){},toInput:function(t){var e="";"word"==this.getByType?(e=r.a.getByteVal(t.target.value,this.limitLength),this.itemValue=e.trim(),this.inputNum=r.a.getZhLen(this.itemValue)):(e=r.a.getCharVal(t.target.value,this.limitLength),this.itemValue=e.trim(),this.inputNum=r.a.getByteLen(this.itemValue)),this.$emit("update:inputValue",this.itemValue)},inputBlur:function(){this.$emit("update:inputValue",this.itemValue)}},watch:{maxLength:function(t,e){this.limitLength=t},inputValue:function(t,e){this.itemValue=t,"word"==this.getByType?this.inputNum=r.a.getZhLen(this.itemValue):this.inputNum=r.a.getByteLen(this.itemValue)}},mounted:function(){this.limitLength=this.maxLength,this.itemValue=this.inputValue||"","word"==this.getByType?this.inputNum=r.a.getZhLen(this.inputValue):this.inputNum=r.a.getByteLen(this.inputValue)}},o={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"input-line-cell",style:{width:t.inputWidth+"px"}},[n("el-input",{style:{width:t.inputWidth+"px"},attrs:{placeholder:t.holder,type:"textarea",rows:3,disabled:t.disInput},on:{blur:function(e){t.inputBlur()},focus:function(e){t.inputFocus()}},nativeOn:{keyup:function(e){return n=e,t.toInput(n);var n}},model:{value:t.itemValue,callback:function(e){t.itemValue=e},expression:"itemValue"}}),t._v(" "),n("span",{staticClass:"tip"},[n("span",{staticClass:"len_span"},[t._v(t._s(t.inputNum))]),t._v("/"+t._s(t.limitLength))])],1)},staticRenderFns:[]};var a=n("VU/8")(i,o,!1,function(t){n("r1x4")},"data-v-a0c20e4e",null);e.a=a.exports},L42u:function(t,e,n){var r,i,o,a=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,v=c.Dispatch,m=0,g={},y=function(){var t=+this;if(g.hasOwnProperty(t)){var e=g[t];delete g[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 g[++m]=function(){u("function"==typeof t?t:Function(t),e)},r(m),m},d=function(t){delete g[t]},"process"==n("R9M2")(f)?r=function(t){f.nextTick(a(y,t,1))}:v&&v.now?r=function(t){v.now(a(y,t,1))}:h?(o=(i=new h).port2,i.port1.onmessage=b,r=a(o.postMessage,o,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(a(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"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},"NWt+":function(t,e,n){var r=n("+ZMJ"),i=n("msXi"),o=n("Mhyx"),a=n("77Pl"),u=n("QRG4"),s=n("3fs2"),l={},c={};(e=t.exports=function(t,e,n,f,p){var d,h,v,m,g=p?function(){return t}:s(t),y=r(n,f,e?2:1),b=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(o(g)){for(d=u(t.length);d>b;b++)if((m=e?y(a(h=t[b])[0],h[1]):y(t[b]))===l||m===c)return m}else for(v=g.call(t);!(h=v.next()).done;)if((m=i(v,y,h.value,e))===l||m===c)return m}).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),o=n("lRwf"),a=n.n(o),u=n("mw3O"),s=n.n(u),l=n("zL8q");n.n(l);a.a.axios.defaults.timeout=25e3;var c=window.location.origin;a.a.axios.interceptors.request.use(function(t){return t},function(t){return l.Message.error({message:"请求超时!"}),i.a.resolve(t)}),a.a.axios.interceptors.response.use(function(t){return t.status&&200==t.status&&"0000"!=t.data.code?(4==t.data.code&&(window.location.href=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",a.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",a.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),o=n("P9l9"),a={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(o.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,o=void 0;try{for(var a,u=i()(t.tableData);!(n=(a=u.next()).done);n=!0){var s=a.value;s.enableFlag=1===s.enableFlag}}catch(t){r=!0,o=t}finally{try{!n&&u.return&&u.return()}finally{if(r)throw o}}}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(o.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")(a,u,!1,function(t){n("yWFr")},"data-v-23f7bdbe",null);e.a=s.exports},"RY/4":function(t,e,n){var r=n("R9M2"),i=n("dSzd")("toStringTag"),o="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),i))?n:o?r(e):"Object"==(a=r(e))&&"function"==typeof e.callee?"Arguments":a}},TUB1:function(t,e,n){"use strict";var r=n("zL8q");n.n(r);e.a={showmsg:function(t,e){Object(r.Message)({duration:1e3,message:t,type:e})}}},U5ju:function(t,e,n){n("M6a0"),n("zQR9"),n("+tPU"),n("CXw9"),n("EqBC"),n("jKW+"),t.exports=n("FeBl").Promise},UlGk:function(t,e,n){"use strict";e.a={getByteLen:function(t){for(var e=""==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 o=t.charAt(i);if(1==n&&(encodeURI(o).length>2?r+=1:r+=.5),2==n&&(r+=1),r>=e){var a=r==e?i+1:i;return t.substr(0,a)}}},getByteVal:function(t,e){for(var n=""==t||null==t?"":t,r="",i=0,o=0;o<n.length&&(null!=n[o].match(/[^\x00-\xff]/gi)?i+=1:i+=.5,!(i>e));o++)r+=n[o];return r},getCharVal:function(t,e){for(var n=""==t||null==t?"":t,r="",i=0,o=0;o<n.length&&(null!=n[o].match(/[^\x00-\xff]/gi)?i+=2:i+=1,!(i>e));o++)r+=n[o];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"}},bRrM:function(t,e,n){"use strict";var r=n("7KvD"),i=n("FeBl"),o=n("evD5"),a=n("+E39"),u=n("dSzd")("species");t.exports=function(t){var e="function"==typeof i[t]?i[t]:r[t];a&&e&&!e[u]&&o.f(e,u,{configurable:!0,get:function(){return this}})}},dNDb:function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},dY0y:function(t,e,n){var r=n("dSzd")("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o=[7],a=o[r]();a.next=function(){return{done:n=!0}},o[r]=function(){return a},t(o)}catch(t){}return n}},fJUb:function(t,e,n){var r=n("77Pl"),i=n("EqjI"),o=n("qARP");t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},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"),o=n("dNDb");r(r.S,"Promise",{try:function(t){var e=i.f(this),n=o(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},jvWE:function(t,e,n){"use strict";e.a=function(t,e){var n,e=e||200;return function(){var r=this,i=arguments;n&&clearTimeout(n),n=setTimeout(function(){n=null,t.apply(r,i)},e)}},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)}},o={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["input-line-cell",t.limitClass],style:{width:t.inputWidth+"px"}},[n("el-input",{style:{width:t.inputWidth+"px"},attrs:{disabled:t.disflag,placeholder:t.holder},on:{blur:function(e){t.inputBlur()},focus:function(e){t.inputFocus()}},nativeOn:{keyup:function(e){return n=e,t.toInput(n);var n}},model:{value:t.itemValue,callback:function(e){t.itemValue=e},expression:"itemValue"}}),t._v(" "),n("span",{staticClass:"tip"},[n("span",{staticClass:"len_span"},[t._v(t._s(t.inputNum))]),t._v("/"+t._s(t.limitLength))])],1)},staticRenderFns:[]};var a=n("VU/8")(i,o,!1,function(t){n("tz7a")},"data-v-093222f7",null);e.a=a.exports},msXi:function(t,e,n){var r=n("77Pl");t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&r(o.call(t)),e}}},mw3O:function(t,e,n){"use strict";var r=n("CwSZ"),i=n("DDCP"),o=n("XgCd");t.exports={formats:o,parse:i,stringify:r}},p8xL:function(t,e,n){"use strict";var r=Object.prototype.hasOwnProperty,i=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),o=function(t,e){for(var n=e&&e.plainObjects?Object.create(null):{},r=0;r<t.length;++r)void 0!==t[r]&&(n[r]=t[r]);return n};t.exports={arrayToObject:o,assign:function(t,e){return Object.keys(e).reduce(function(t,n){return t[n]=e[n],t},t)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],n=[],r=0;r<e.length;++r)for(var i=e[r],o=i.obj[i.prop],a=Object.keys(o),u=0;u<a.length;++u){var s=a[u],l=o[s];"object"==typeof l&&null!==l&&-1===n.indexOf(l)&&(e.push({obj:o,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 o=e.charCodeAt(r);45===o||46===o||95===o||126===o||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122?n+=e.charAt(r):o<128?n+=i[o]:o<2048?n+=i[192|o>>6]+i[128|63&o]:o<55296||o>=57344?n+=i[224|o>>12]+i[128|o>>6&63]+i[128|63&o]:(r+=1,o=65536+((1023&o)<<10|1023&e.charCodeAt(r)),n+=i[240|o>>18]+i[128|o>>12&63]+i[128|o>>6&63]+i[128|63&o])}return n},isBuffer:function(t){return null!==t&&void 0!==t&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},merge:function t(e,n,i){if(!n)return e;if("object"!=typeof n){if(Array.isArray(e))e.push(n);else{if("object"!=typeof e)return[e,n];(i.plainObjects||i.allowPrototypes||!r.call(Object.prototype,n))&&(e[n]=!0)}return e}if("object"!=typeof e)return[e].concat(n);var a=e;return Array.isArray(e)&&!Array.isArray(n)&&(a=o(e,i)),Array.isArray(e)&&Array.isArray(n)?(n.forEach(function(n,o){r.call(e,o)?e[o]&&"object"==typeof e[o]?e[o]=t(e[o],n,i):e.push(n):e[o]=n}),e):Object.keys(n).reduce(function(e,o){var a=n[o];return r.call(e,o)?e[o]=t(e[o],a,i):e[o]=a,e},a)}}},qARP:function(t,e,n){"use strict";var r=n("lOnJ");t.exports.f=function(t){return new function(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=r(e),this.reject=r(n)}(t)}},r1x4:function(t,e){},t8x9:function(t,e,n){var r=n("77Pl"),i=n("lOnJ"),o=n("dSzd")("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||void 0==(n=r(a)[o])?e:i(n)}},tz7a:function(t,e){},"xH/j":function(t,e,n){var r=n("hJx8");t.exports=function(t,e,n){for(var i in e)n&&t[i]?t[i]=e[i]:r(t,i,e[i]);return t}},yWFr:function(t,e){}});
\ No newline at end of file
webpackJsonp([10],{arKS:function(t,e){},f2i8:function(t,e,a){"use strict";var r=a("mvHQ"),o=a.n(r),i=a("fZjL"),n=a.n(i),s=a("l46T"),l=a("Kkt8"),u=a("P9l9"),c=a("TUB1"),p=a("LlAa"),m={name:"new-api-group",props:{showDialog:{type:Boolean,default:!1},editRow:{type:Object,default:function(){return{interfaceGroupId:"",groupName:"",remark:""}}}},components:{limitInput:s.a,limitTextarea:l.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(u.a)(t.editRow.interfaceGroupId?"/gateway-manage/update-api-group":"/gateway-manage/create-api-group",e).then(function(e){var a=e.data;if("0000"==a.code)return c.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.groupName="",e.formData.remark=""})}},watch:{showDialog:function(t,e){this.customDialog=t},editRow:function(t,e){n()(t).length&&(this.formData=JSON.parse(o()(t)))}},mounted:function(){this.customDialog=this.showDialog,n()(this.editRow).length&&(this.formData=JSON.parse(o()(this.editRow)))}},f={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.interfaceGroupId?"编辑分组":"新建分组",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:"programGroupForm",attrs:{model:t.formData,"label-width":"94px",rules:t.rules}},[a("el-form-item",{attrs:{label:"分组名称:",prop:"groupName"}},[a("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(" "),a("el-form-item",{attrs:{label:"描述:"}},[a("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(" "),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("programGroupForm")}}},[t._v(t._s(t.formData.interfaceGroupId?"保 存":"新 建"))])],1)])],1)},staticRenderFns:[]};var d=a("VU/8")(m,f,!1,function(t){a("arKS")},"data-v-78ce30dc",null);e.a=d.exports},pJor:function(t,e){},tiLT:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a("319J"),o=a("f2i8"),i=a("P9l9"),n=a("jvWE"),s=a("LlAa"),l={name:"apiProgramGroup",components:{navBread:r.a,newApiGroup:o.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(n.a)(function(t){this.currentPage,this.getData()},500),clearInput:function(){this.currentPage=1,this.getData()},changeTargetType:function(t){this.currentPage=1,this.getData()},handleSizeChange:function(t){this.pageSize=t,this.getData()},handleCurrentChange:function(t){this.currentPage=t,this.getData()},toApiListManage:function(t,e){this.$router.push("/apiListManage?interfaceId="+e.interfaceId+"&interfaceName="+e.interfaceName)},getData:function(){var t=this,e={projectId:t.projectId,interfaceGroupId:t.interfaceGroupId,search:t.searchValue,target:t.targetType,pageSize:t.pageSize,pageNum:t.currentPage};Object(i.a)("/gateway-manage/page-api",e).then(function(e){var a=e.data;if("0000"==a.code)return t.tableData=a.result.result,void(t.totalCount=a.result.totalCount);s.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{$route:{handler:function(t,e){},deep:!0}},mounted:function(){this.$emit("showTab",22),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("div",{staticStyle:{"font-size":"0"}},[a("el-input",{staticClass:"w-320",attrs:{clearable:"",placeholder:"请输入API名称"},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-select",{staticClass:"w-137 margin-left10",attrs:{placeholder:"请选择"},on:{change:t.changeTargetType},model:{value:t.targetType,callback:function(e){t.targetType=e},expression:"targetType"}},t._l(t.targetTypeOptions,function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}))],1)]),t._v(" "),a("div",{staticClass:"table-wrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData}},[a("el-table-column",{attrs:{prop:"interfaceName",label:"API名称","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{label:"API类型","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s("0"==e.row.interfaceType?"http":"1"==e.row.interfaceType?"dubbo ":"自定义返回")+"\n ")]}}])}),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.interfaceUrl)+"\n ")]}}])}),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.optType)+"\n ")]}}])}),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.interfaceGroupName)+"\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.toApiListManage(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-api-group",{attrs:{editRow:t.editRow,showDialog:t.showDialog},on:{hideDialog:t.hideDialog}})],1)},staticRenderFns:[]};var c=a("VU/8")(l,u,!1,function(t){a("pJor")},"data-v-c098c8c8",null);e.default=c.exports}});
\ No newline at end of file
webpackJsonp([12],{"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){}}); 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 \ No newline at end of file
webpackJsonp([11],{"G8l+":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("319J"),r=a("f2i8"),i=a("P9l9"),n=a("jvWE"),s=a("TUB1"),l=a("LlAa"),u={name:"apiProgramGroup",components:{navBread:o.a,newApiGroup:r.a},data:function(){return{navPath:[{name:"API管理",path:"/apiProgram"},{name:"项目列表",path:"apiProgram"},{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+"&interfaceGroupId="+e.interfaceGroupId)},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(n.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("/apiList?projectId="+e.projectId+"&interfaceGroupId="+e.interfaceGroupId)},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(i.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);l.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(i.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);l.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()}},c={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")(u,c,!1,function(t){a("HSCL")},"data-v-4e3c24de",null);e.default=p.exports},HSCL:function(t,e){},arKS:function(t,e){},f2i8:function(t,e,a){"use strict";var o=a("mvHQ"),r=a.n(o),i=a("fZjL"),n=a.n(i),s=a("l46T"),l=a("Kkt8"),u=a("P9l9"),c=a("TUB1"),p=a("LlAa"),d={name:"new-api-group",props:{showDialog:{type:Boolean,default:!1},editRow:{type:Object,default:function(){return{interfaceGroupId:"",groupName:"",remark:""}}}},components:{limitInput:s.a,limitTextarea:l.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(u.a)(t.editRow.interfaceGroupId?"/gateway-manage/update-api-group":"/gateway-manage/create-api-group",e).then(function(e){var a=e.data;if("0000"==a.code)return c.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.groupName="",e.formData.remark=""})}},watch:{showDialog:function(t,e){this.customDialog=t},editRow:function(t,e){n()(t).length&&(this.formData=JSON.parse(r()(t)))}},mounted:function(){this.customDialog=this.showDialog,n()(this.editRow).length&&(this.formData=JSON.parse(r()(this.editRow)))}},m={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.interfaceGroupId?"编辑分组":"新建分组",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:"programGroupForm",attrs:{model:t.formData,"label-width":"94px",rules:t.rules}},[a("el-form-item",{attrs:{label:"分组名称:",prop:"groupName"}},[a("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(" "),a("el-form-item",{attrs:{label:"描述:"}},[a("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(" "),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("programGroupForm")}}},[t._v(t._s(t.formData.interfaceGroupId?"保 存":"新 建"))])],1)])],1)},staticRenderFns:[]};var f=a("VU/8")(d,m,!1,function(t){a("arKS")},"data-v-78ce30dc",null);e.a=f.exports}});
\ No newline at end of file
webpackJsonp([13],{"6XGN":function(M,L,j){"use strict";Object.defineProperty(L,"__esModule",{value:!0});var N=j("CkW6"),u=j.n(N),w={name:"page403",data:function(){return{img_403:u.a}},computed:{message:function(){return"抱歉,你无权访问该页面"}}},D={render:function(){var M=this.$createElement,L=this._self._c||M;return L("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100%"}},[L("div",{staticClass:"wscn-http404"},[L("div",{staticClass:"pic-404"},[L("img",{staticClass:"pic-404__parent",attrs:{src:this.img_403,alt:"403"}})]),this._v(" "),L("div",{staticClass:"bullshit"},[L("div",{staticClass:"bullshit__headline"},[this._v(this._s(this.message))]),this._v(" "),L("a",{staticClass:"bullshit__return-home",attrs:{href:"#/companyGroup"}},[this._v("返回首页")])])])])},staticRenderFns:[]};var C=j("VU/8")(w,D,!1,function(M){j("GVON")},"data-v-34b4b20b",null);L.default=C.exports},CkW6:function(M,L){M.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMS4wLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0i5Zu+5bGCXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgNDAwIDMzNSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNDAwIDMzNTsiIHhtbDpzcGFjZT0icHJlc2VydmUiPg0KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4NCgkuc3Qwe2ZpbGw6I0ZBRkNGRjt9DQoJLnN0MXtmaWxsOiNEQkU1RjE7fQ0KCS5zdDJ7ZmlsbDojREVFN0Y0O30NCgkuc3Qze2ZpbGw6I0I5QzdEQjt9DQoJLnN0NHtmaWxsOiNGRkZGRkY7fQ0KCS5zdDV7ZmlsbDpub25lO3N0cm9rZTojQjlDN0RCO3N0cm9rZS13aWR0aDo0O3N0cm9rZS1taXRlcmxpbWl0OjEwO30NCgkuc3Q2e2ZpbGw6bm9uZTtzdHJva2U6I0I2QzdEODtzdHJva2UtbWl0ZXJsaW1pdDoxMDt9DQo8L3N0e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wLjksMC40YzAuNCwwLjQsMC41LDEsMC4zLDEuNWMtMC4yLDAuNS0wLjcsMC44LTEuMiwwLjhIOTkuMQ0KCWMtMC43LDAtMS4zLTAuNi0xLjMtMS4zQzk3LjgsMjY1LjMsOTguNCwyNjQuNiw5OS4yLDI2NC42Ii8+DQo8cGF0aCBjbGFzcz0ic3QzIiBkPSJNMjM1LDk1Ljh2OC4xYzAsMC43LTAuNiwxLjMtMS4zLDEuM3MtMS4zLTAuNi0xLjMtMS4zdi04LjFjMC0wLjcsMC42LTEuMywxLjMtMS40QzIzNC40LDk0LjQsMjM1LDk1LDIzNSw5NS44Ig0KCS8+DQo8L3N2Zz4NCg=="},GVON:function(M,L){}}); 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,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMS4wLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4N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sonp([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([15],{"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){}}); 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 \ No newline at end of file
webpackJsonp([14],{"C/ih":function(t,e){},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)},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("C/ih")},"data-v-b5e9cbcc",null);e.default=b.exports}});
\ No newline at end of file
webpackJsonp([16],{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"}}); 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 \ No newline at end of file
webpackJsonp([15],{pJor:function(e,t){},tiLT:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("319J"),o=a("f2i8"),r=a("P9l9"),l=a("jvWE"),i=a("LlAa"),s={name:"apiProgramGroup",components:{navBread:n.a,newApiGroup:o.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)},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.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("pJor")},"data-v-c098c8c8",null);t.default=u.exports}});
\ No newline at end of file
webpackJsonp([16],{"4nDk":function(t,e){},"G8l+":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("319J"),n=a("f2i8"),i=a("P9l9"),r=a("jvWE"),s=a("TUB1"),c=a("LlAa"),l={name:"apiProgramGroup",components:{navBread:o.a,newApiGroup:n.a},data:function(){return{navPath:[{name:"API管理",path:"/apiProgram"},{name:this.$route.query.projectName+"项目列表",path:"apiProgram"},{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+"&interfaceGroupId="+e.interfaceGroupId)},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(r.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+"&groupName="+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(i.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(i.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("4nDk")},"data-v-7fa81535",null);e.default=p.exports}});
\ 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("Uhjd")},"data-v-09c08b49",null);i.default=c.exports},Uhjd:function(t,i){}}); webpackJsonp([18],{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 \ No newline at end of file
webpackJsonp([18],{EBdF:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("319J"),r=a("P9l9"),o={name:"overview",components:{navBread:n.a},data:function(){return{navPath:[{name:"概览",path:""}]}},methods:{getData:function(){var e=this,t={project:e.repProjectName,router:e.pathName,requestProject:e.repProjectName};Object(r.a)("/haoban-manage-web/menu-detail",t).then(function(t){var a=t.data;if(1==a.errorCode)return a.result?void 0:void e.$message.error({duration:1e3,message:"暂无数据"});e.$message.error({duration:1e3,message:a.message})}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{$route:{handler:function(e,t){},deep:!0}},mounted:function(){this.$emit("showTab",1)}},s={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"api-body-content border-box"},[t("div",{staticClass:"common-nav"},[t("nav-bread",{attrs:{navPath:this.navPath}})],1),this._v(" "),this._m(0)])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"api-body-main common-body-main border-box"},[t("div",{staticClass:"api-main-content border-box"})])}]};var i=a("VU/8")(o,s,!1,function(e){a("rypi")},"data-v-1c210dc8",null);t.default=i.exports},rypi:function(e,t){}}); webpackJsonp([19],{EBdF:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("319J"),r=a("P9l9"),o={name:"overview",components:{navBread:n.a},data:function(){return{navPath:[{name:"概览",path:""}]}},methods:{getData:function(){var e=this,t={project:e.repProjectName,router:e.pathName,requestProject:e.repProjectName};Object(r.a)("/haoban-manage-web/menu-detail",t).then(function(t){var a=t.data;if(1==a.errorCode)return a.result?void 0:void e.$message.error({duration:1e3,message:"暂无数据"});e.$message.error({duration:1e3,message:a.message})}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{$route:{handler:function(e,t){},deep:!0}},mounted:function(){this.$emit("showTab",1)}},s={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"api-body-content border-box"},[t("div",{staticClass:"common-nav"},[t("nav-bread",{attrs:{navPath:this.navPath}})],1),this._v(" "),this._m(0)])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"api-body-main common-body-main border-box"},[t("div",{staticClass:"api-main-content border-box"})])}]};var i=a("VU/8")(o,s,!1,function(e){a("rypi")},"data-v-1c210dc8",null);t.default=i.exports},rypi:function(e,t){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([20],{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"),s={name:"apiProgramGroup",components:{navBread:r.a,newApiGroup:o.a},data:function(){return{navPath:[{name:"API管理",path:"/apiProgram"},{name:this.$route.query.projectName+"项目列表",path:"/apiProgram"},{name:this.$route.query.groupName+"分组列表",path:"/apiProgramGroup"},{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+"&interfaceGroupId="+this.$route.query.interfaceGroupId)},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)},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()}},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(" "),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.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("qqjn")},"data-v-17220e26",null);t.default=u.exports},qqjn:function(e,t){}});
\ No newline at end of file
webpackJsonp([19],{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)},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("kv3g")},"data-v-0bba733a",null);t.default=c.exports},kv3g:function(e,t){}}); webpackJsonp([21],{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)},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("kv3g")},"data-v-0bba733a",null);t.default=c.exports},kv3g:function(e,t){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([4],{"0UHt":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+2S5EyTVoAiTwliEUMIfL8UgUJPU+REksuEhiXwQMxVtwyOeGHVzwDtMwtyQaX8a5o7zwSidEznk5BnEfs51BkZK0FrtZqpBT4QaTs0y9MBdE0MaJ99YXpMgdzk3Up6CxwWD0wWEXlgVXCvGN4J7JjfCZmVGSUfb9KVubkewWDmuYZ2eRyTbmZDIjZmUmm6gAVJZZOCl7BrS5CDdadBGNLOLV2rM8QPxIs9RrylIBsCYGRvYME2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RqMEVHJGxtuVQ5h6yCYSw4PQnO7AThT5LhfNJdZ/VQq2pW0/bV4tsRRxnKs+tFNnc1+oxYpj2WCnzf+fBGCE9JC+Qu8BiJHhlRmzv/C9A+F+WdBhp5F/a1mcWMnYUuDmyD7YyPCCTHRVEl2XsNKLkVdi0DTV8ncu5OyKD99jINCfbYl//JdKHUs8E8sxtGTV3WH5EbCvpDBHP2QUQUs3yCyYhN7fM1MqcAQ3w2fdWf2fAx6937HuCQB/COzfsQwLZKUHFhH/MZ+8kjlKnbIZp++046bw6cNsLAHnSxNEwWW5ECkMuhATYj8PWDlwrCwKoXMnLFhK93QSYQ3qq/JoOngFFxLnovJIZLBygEpWs5djaB6fiMiciuixpS4MML+qSo/bKQgPCYdKDUd5EChbbUYbFUvLsdz/apLD0QQCyVYkzePQ6gFYD7oOvduhFa7ay8Baq1q2uQY6d3KXftzc9SEDvfbtH328HY8/ka3IaSeLoXLiCDPyOJd6eacV/AHIL53dgZjL3AAAAAElFTkSuQmCC"},"9OZW":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){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"}}),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("ug40")},"data-v-00bf5f8b",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:"流控内容"}}),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:"操作"},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("LmEw")},"data-v-fa7cb46e",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,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:"熔断内容"}}),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:"操作"},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")(C,L,!1,function(e){a("fTJC")},"data-v-0005e1e2",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"}}),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("9OZW")},"data-v-03610759",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"},attrs:{type:"textarea",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("0UHt")},"data-v-33d17b67",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:"/pluginManage"}],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){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("zwac")},"data-v-1ddfdea1",null);t.default=x.exports},LmEw:function(e,t){},fTJC:function(e,t){},ug40: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+dN2Y2bah06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YR19rN2e8vckicZ5VO2cl2Pvty/Qt2+NXLqbrXq+tlvv55NAyPyKZyERHeqJloYlgq9o790PYFLLWCWrLdlucOfb0j2NV0a9t9fXtj3vew061AkNRsBE8DcjbFfll3OuUOyAug9ic2s06aNgPM4wpA2mifJ6u3Q3hefzg6mJVq+u3EikMXTHlsQsiGAEKo4OVV7V3AIYBMIqj7DZbwxEaH51XNPZs97eRnVbcFh86xKMhIK9gUlIFgLkx8UxDr9iq3N73GcGnghM0QZqVq+We6e7Nuk78f6ba//AxcahJX31IAzAAAAAElFTkSuQmCC"},zwac:function(e,t){}});
\ No newline at end of file
webpackJsonp([4],{"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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svAUXiRzCjGBS4bxVlJyg8Xaoo8LoKGVWC72MvV9bj8vmaaX+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"},"9OZW":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){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"}}),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("ug40")},"data-v-00bf5f8b",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:"流控内容"}}),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:"操作"},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("LmEw")},"data-v-fa7cb46e",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,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:"熔断内容"}}),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:"操作"},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")(C,L,!1,function(e){a("fTJC")},"data-v-0005e1e2",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"}}),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("9OZW")},"data-v-03610759",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){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:"/pluginManage"}],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){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("tF7c")},"data-v-36d437c6",null);t.default=x.exports},LmEw:function(e,t){},bBUd:function(e,t){},fTJC:function(e,t){},tF7c:function(e,t){},ug40:function(e,t){},vgET:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAACMxJREFUWAmVmFuMVWcVx/97n3NmYG4Mc0EYYJqAQsslVE28pBqsl0hsm2hifDLGxtgaExMffPJF44OtD9XExNrUZ99I1FBNK5H6IGosKbRAOyAjZRhpuA04AzPAzDnb/2/t/Z2ZAUrKgr2/2/rW+q/Lt/Z3JtNd6PPPFqt6cg3NNZXVV6jVmFcGW62hYramrLPaU6t7vODxDemm57q83jTvwJCKbevVUbEp8ce4PatFhorx6UezsVCUNtJ+5afF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2Tp2Tjk24HjljOH1DXfpSR0N/uzwnVyQTV2CDs3fiVzD5E6iqm1UdryCMbEcAsH1VKCkWq35qWPP8NdeYv/ub9Y+x2F7uZb8NggVZQebtq+tTK7t98q/rOB9TfvOZLX4wkM0hsvJQnP60F0XtXCJsHofXLDn1o2UtzS3tM+dx1DBksZ85Pz5N20Z79WnXJIIRN1DAEE/2OKTj/vnin38JzZLNSUi0fgVI1quFNL8MJOuASzxL2sTn4752Y68eW9mpOmD9s5t0KoxiqmtIzxgbnvMMr/Bb1XgihFcKQjZzfpL1oYR19rN2e8vckicZ5VO2cl2Pvty/Qt2+NXLqbrXq+tlvv55NAyPyKZyERHeqJloYlgq9o790PYFLLWCWrLdlucOfb0j2NV0a9t9fXtj3vew061AkNRsBE8DcjbFfll3OuUOyAug9ic2s06aNgPM4wpA2mifJ6u3Q3hefzg6mJVq+u3EikMXTHlsQsiGAEKo4OVV7V3AIYBMIqj7DZbwxEaH51XNPZs97eRnVbcFh86xKMhIK9gUlIFgLkx8UxDr9iq3N73GcGnghM0QZqVq+We6e7Nuk78f6ba//AxcahJX31IAzAAAAAElFTkSuQmCC"}});
\ 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,15],"./index/apiListManage.vue":["dqHC",0,5],"./index/apiListManageShow.vue":["r4m9",0,3],"./index/apiProgram.vue":["kAqA",0,12],"./index/apiProgramGroup.vue":["G8l+",0,16],"./index/createApi.vue":["Yns/",0,2],"./index/createEnvSet.vue":["vm6Q",0,17],"./index/envManage.vue":["iGM1",0,8],"./index/errorCode.vue":["SGyq",0,13],"./index/groupApiList.vue":["S82n",0,20],"./index/index.vue":["JXTs",0,9],"./index/overview.vue":["EBdF",0,19],"./index/plugAhsh.vue":["JN/y",0,4],"./index/plugPlatform.vue":["dAfO",0,6],"./index/pluginManage.vue":["K0rJ",0,18],"./index/releaseRecords.vue":["OEJD",0,21],"./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([22],{"/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:"/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"),D=t.n(w),A=t("bOdI"),P=t.n(A),R=t("mvHQ"),B=t.n(R),T=t("SJI6"),b=t.n(T);p.a.use(b.a);var H=new b.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")}}}),E=(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,D.a),Vue.axios.defaults.withCredentials=!0,a()(E).forEach(function(e){Vue.filter(e,E[e])}),new Vue({el:"#app",router:x,store:H,components:{App:c},template:"<App/>"})},Opzk:function(e,n,t){var o={"./errorPage/403.vue":["6XGN",13],"./errorPage/404.vue":["AejC",16],"./errorPage/500.vue":["FskK",12],"./errorPage/index.vue":["ODjX",1],"./index/apiList.vue":["tiLT",0,10],"./index/apiListManage.vue":["dqHC",0,5],"./index/apiListManageShow.vue":["r4m9",0,3],"./index/apiProgram.vue":["kAqA",0,14],"./index/apiProgramGroup.vue":["G8l+",0,11],"./index/createApi.vue":["Yns/",0,2],"./index/createEnvSet.vue":["vm6Q",0,17],"./index/envManage.vue":["iGM1",0,8],"./index/errorCode.vue":["SGyq",0,15],"./index/index.vue":["JXTs",0,9],"./index/overview.vue":["EBdF",0,18],"./index/plugAhsh.vue":["JN/y",0,4],"./index/plugPlatform.vue":["dAfO",0,6],"./index/pluginManage.vue":["K0rJ",0,20],"./index/releaseRecords.vue":["OEJD",0,19],"./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,o,a){for(var f,d,i,u=0,b=[];u<r.length;u++)d=r[u],t[d]&&b.push(t[d][0]),t[d]=0;for(f in o)Object.prototype.hasOwnProperty.call(o,f)&&(e[f]=o[f]);for(n&&n(r,o,a);b.length;)b.shift()();if(a)for(u=0;u<a.length;u++)i=c(c.s=a[u]);return i};var r={},t={24:0};function c(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,c),t.l=!0,t.exports}c.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,c){n=t[e]=[r,c]});n[2]=r;var o=document.getElementsByTagName("head")[0],a=document.createElement("script");a.type="text/javascript",a.charset="utf-8",a.async=!0,a.timeout=12e4,c.nc&&a.setAttribute("nonce",c.nc),a.src=c.p+"static/js/"+e+"."+{0:"328c0e8d9613932adc7a",1:"0ebe3ead93207dc78a78",2:"67913a1620c8c992c41c",3:"a8d420228e979157d71a",4:"83b134741cef8a1fc258",5:"61455822347fda4022ec",6:"7a4f7f41cea5405e209f",7:"b2a85a42ddd430235a63",8:"81460c8c66d06cfea732",9:"9c96ae683c51b04359d0",10:"638039a7b39908980436",11:"f27d1de28264fbbe30ff",12:"ccbc18453e41490e2dba",13:"b109164d2be44afb7733",14:"9825bb69e60b8030c230",15:"ffd723714f3c604ae809",16:"825722b083bcf8e5877e",17:"d9cbca5f2fdb5b14e1b4",18:"ebf8edd37453b58275c4",19:"237102ab58f0569908b0",20:"106676f1ed05cab7702b",21:"9811614945523e2ab002"}[e]+".js";var f=setTimeout(d,12e4);function d(){a.onerror=a.onload=null,clearTimeout(f);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return a.onerror=a.onload=d,o.appendChild(a),r},c.m=e,c.c=r,c.d=function(e,n,r){c.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},c.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return c.d(n,"a",n),n},c.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},c.p="./",c.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,c,o){for(var f,d,i,u=0,b=[];u<r.length;u++)d=r[u],a[d]&&b.push(a[d][0]),a[d]=0;for(f in c)Object.prototype.hasOwnProperty.call(c,f)&&(e[f]=c[f]);for(n&&n(r,c,o);b.length;)b.shift()();if(o)for(u=0;u<o.length;u++)i=t(t.s=o[u]);return i};var r={},a={23:0};function t(n){if(r[n])return r[n].exports;var a=r[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,t),a.l=!0,a.exports}t.e=function(e){var n=a[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var r=new Promise(function(r,t){n=a[e]=[r,t]});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,t.nc&&o.setAttribute("nonce",t.nc),o.src=t.p+"static/js/"+e+"."+{0:"ec5db7aec77791a6ab55",1:"0ebe3ead93207dc78a78",2:"67913a1620c8c992c41c",3:"a8d420228e979157d71a",4:"6ee5676b60e1cd6d55bf",5:"61455822347fda4022ec",6:"7a4f7f41cea5405e209f",7:"b2a85a42ddd430235a63",8:"81460c8c66d06cfea732",9:"9c96ae683c51b04359d0",10:"00b5cb52af41eef87b8e",11:"32590d64e6a2596dc470",12:"1485471e961ae619c2aa",13:"3f70345d9260ae04ca59",14:"8ac6c7a502d766777382",15:"017813cd47956e42ab00",16:"67a2914524ec26eb9128",17:"d9cbca5f2fdb5b14e1b4",18:"37321ffca9347a60b988",19:"03cbfddf207d95b51065",20:"0f4e26c8c5cbbfaffbaa"}[e]+".js";var f=setTimeout(d,12e4);function d(){o.onerror=o.onload=null,clearTimeout(f);var n=a[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),a[e]=void 0)}return o.onerror=o.onload=d,c.appendChild(o),r},t.m=e,t.c=r,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="./",t.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
<!--
* @Descripttion: 当前组件信息
* @version: 1.0.0
* @Author: 无尘
* @Date: 2019-09-05 10:03:30
* @LastEditors: 无尘
* @LastEditTime: 2019-09-05 10:03:30
-->
<template> <template>
<el-dialog title="选择环境" :visible.sync="dialogVisible" width="600px" @close="close"> <el-dialog title="选择环境" :visible.sync="dialogVisible" width="600px" @close="close">
<div class="dialog-body"> <div class="dialog-body">
...@@ -125,5 +133,12 @@ export default { ...@@ -125,5 +133,12 @@ export default {
<style lang="less" scoped> <style lang="less" scoped>
.dialog-table { .dialog-table {
margin-bottom: 30px; margin-bottom: 30px;
.el-button {
&.el-button--text:hover,
&.el-button--text:focus {
color: #2656d4;
}
}
} }
</style> </style>
<!--
* @Descripttion: 当前组件信息
* @version: 1.0.0
* @Author: 无尘
* @Date: 2019-09-05 10:03:31
* @LastEditors: 无尘
* @LastEditTime: 2019-09-30 16:18:26
-->
<template> <template>
<div style="margin-top:20px"> <div style="margin-top:20px">
<div class="list-content"> <div class="list-content">
...@@ -10,7 +18,7 @@ ...@@ -10,7 +18,7 @@
<p class="name">Webhook通知地址</p> <p class="name">Webhook通知地址</p>
<div class="address"> <div class="address">
<p v-if="!item.editStatus">{{ item.alarmInfo }}</p> <p v-if="!item.editStatus">{{ item.alarmInfo }}</p>
<el-input v-else type="textarea" placeholder="请输入内容" v-model="item.alarmInfo" style="width:368px;"> </el-input> <el-input v-else type="textarea" resize="none" placeholder="请输入内容" v-model="item.alarmInfo" style="width:368px; height: 78px;"> </el-input>
</div> </div>
</div> </div>
</div> </div>
...@@ -104,12 +112,18 @@ export default { ...@@ -104,12 +112,18 @@ export default {
.list-item { .list-item {
display: inline-block; display: inline-block;
margin-right: 10px; margin-right: 10px;
width: 420px; width: 460px;
height: 150px; height: 196px;
padding: 20px 18px; padding: 20px 18px;
background: rgba(255, 255, 255, 1); background: rgba(255, 255, 255, 1);
border-radius: 4px; border-radius: 4px;
border: 1px solid rgba(220, 223, 230, 1); border: 1px solid rgba(220, 223, 230, 1);
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
&:hover {
box-shadow: 0px 2px 10px 0px rgba(213, 213, 213, 0.5);
}
.item-top { .item-top {
display: flex; display: flex;
img { img {
...@@ -127,12 +141,17 @@ export default { ...@@ -127,12 +141,17 @@ export default {
.name { .name {
color: #909399; color: #909399;
font-size: 12px; font-size: 12px;
margin: 15px 0 5px 0; margin: 5px 0;
} }
.address { .address {
color: #606266; color: #606266;
font-size: 14px; font-size: 14px;
min-height: 60px; min-height: 78px;
.el-textarea {
/deep/ .el-textarea__inner {
height: 100%;
}
}
p { p {
word-wrap: break-word; word-wrap: break-word;
width: 350px; width: 350px;
......
/*
* @Descripttion: 当前组件信息
* @version: 1.0.0
* @Author: 无尘
* @Date: 2019-07-22 17:33:54
* @LastEditors: 无尘
* @LastEditTime: 2019-07-22 17:33:54
*/
import Vue from 'vue'; import Vue from 'vue';
import Router from 'vue-router'; import Router from 'vue-router';
import _import from './_import.js'; import _import from './_import.js';
...@@ -63,6 +71,11 @@ export const constantRouterMap = [ ...@@ -63,6 +71,11 @@ export const constantRouterMap = [
component: _import('index', 'apiList') component: _import('index', 'apiList')
}, },
{ {
path: '/groupApiList',
name: '项目分组API列表',
component: _import('index', 'groupApiList')
},
{
path: '/createApi', path: '/createApi',
name: '创建API', name: '创建API',
component: _import('index', 'createApi') component: _import('index', 'createApi')
......
<!--
* @Descripttion: 当前组件信息
* @version: 1.0.0
* @Author: 无尘
* @Date: 2019-07-22 19:14:44
* @LastEditors: 无尘
* @LastEditTime: 2019-07-22 19:14:44
-->
<template> <template>
<div class="api-body-content border-box"> <div class="api-body-content border-box">
<div class="common-nav"> <div class="common-nav">
...@@ -142,7 +150,7 @@ export default { ...@@ -142,7 +150,7 @@ export default {
*/ */
toGroupList(index, row) { toGroupList(index, row) {
const that = this; const that = this;
that.$router.push(`/apiProgramGroup?projectId=${row.projectId}`); that.$router.push(`/apiProgramGroup?projectId=${row.projectId}&projectName=${row.projectName}`);
}, },
/** /**
* 编辑 * 编辑
......
<!--
* @Descripttion: 当前组件信息
* @version: 1.0.0
* @Author: 无尘
* @Date: 2019-07-22 19:22:46
* @LastEditors: 无尘
* @LastEditTime: 2019-09-30 15:38:56
-->
<template> <template>
<div class="api-body-content border-box"> <div class="api-body-content border-box">
<div class="common-nav"> <div class="common-nav">
...@@ -65,11 +73,11 @@ export default { ...@@ -65,11 +73,11 @@ export default {
path: '/apiProgram' path: '/apiProgram'
}, },
{ {
name: '项目列表', name: `${this.$route.query.projectName}项目列表`,
path: 'apiProgram' path: 'apiProgram'
}, },
{ {
name: '分组列表', name: `分组列表`,
path: '' path: ''
} }
], ],
...@@ -154,7 +162,7 @@ export default { ...@@ -154,7 +162,7 @@ export default {
*/ */
toApiList(index, row) { toApiList(index, row) {
const that = this; const that = this;
that.$router.push(`/apiList?projectId=${row.projectId}&interfaceGroupId=${row.interfaceGroupId}`); that.$router.push(`/groupApiList?projectId=${row.projectId}&projectName=${that.$route.query.projectName}&interfaceGroupId=${row.interfaceGroupId}&groupName=${row.groupName}`);
}, },
/** /**
* 编辑 * 编辑
......
<!--
* @Descripttion: 当前组件信息
* @version: 1.0.0
* @Author: 无尘
* @Date: 2019-07-22 19:14:58
* @LastEditors: 无尘
* @LastEditTime: 2019-09-30 15:43:22
-->
<template>
<div class="api-body-content border-box">
<div class="common-nav">
<nav-bread :navPath="navPath"></nav-bread>
</div>
<div class="api-body-main common-body-main border-box">
<div class="api-main-content border-box">
<div class="search-wrap m-b-20 flex flex-space-between">
<div style="font-size:0">
<el-input clearable class="w-320" placeholder="请输入API名称" v-model="searchValue" @keyup.native="value => searchData(value)" @clear="clearInput">
<i slot="prefix" class="el-input__icon el-icon-search"></i>
</el-input>
<el-select class="w-137 margin-left10" v-model="targetType" placeholder="请选择" @change="changeTargetType">
<el-option v-for="item in targetTypeOptions" :key="item.value" :label="item.label" :value="item.value"> </el-option>
</el-select>
</div>
<div v-if="$route.query.projectName && $route.query.interfaceGroupId">
<el-button type="primary" @click="createApi">创建API</el-button>
</div>
</div>
<div class="table-wrap">
<el-table :data="tableData" style="width: 100%">
<el-table-column prop="interfaceName" label="API名称" show-overflow-tooltip> </el-table-column>
<el-table-column label="API类型" show-overflow-tooltip>
<template slot-scope="scope">
{{ scope.row.interfaceType == '0' ? 'http' : scope.row.interfaceType == '1' ? 'dubbo ' : '自定义返回' }}
</template>
</el-table-column>
<el-table-column label="访问路径" show-overflow-tooltip>
<template slot-scope="scope">
{{ scope.row.interfaceUrl }}
</template>
</el-table-column>
<el-table-column label="访问类型" show-overflow-tooltip>
<template slot-scope="scope">
{{ scope.row.optType }}
</template>
</el-table-column>
<el-table-column label="项目/分组" show-overflow-tooltip>
<template slot-scope="scope">
{{ scope.row.interfaceGroupName }}
</template>
</el-table-column>
<el-table-column label="创建时间" show-overflow-tooltip>
<template slot-scope="scope">
<div class="color-606266 line-18">{{ scope.row.createTime | timeStampToYmd }}</div>
<div class="color-606266 line-18">{{ scope.row.createTime | timeStampToHms }}</div>
</template>
</el-table-column>
<el-table-column label="操作" show-overflow-tooltip>
<template slot-scope="scope">
<el-button @click="toApiListManage(scope.$index, scope.row)" type="text">管理</el-button>
<!-- <el-button @click="handleEdit(scope.$index, scope.row)" type="text">编辑</el-button>
<el-button @click="handleDel(scope.$index, scope.row)" type="text">删除</el-button> -->
</template>
</el-table-column>
</el-table>
<div class="pagination text-right m-t-14" v-if="!!totalCount">
<el-pagination small :page-size="pageSize" :current-page="currentPage" layout="prev, pager, next" :total="totalCount" @size-change="handleSizeChange" @current-change="handleCurrentChange"> </el-pagination>
</div>
</div>
</div>
</div>
<new-api-group :editRow="editRow" :showDialog="showDialog" @hideDialog="hideDialog"> </new-api-group>
</div>
</template>
<script>
import navBread from '@/components/nav/nav-bread.vue';
import newApiGroup from '@/components/program/new-api-group.vue';
import { getRequest } from '@/api/api';
import { _debounce } from '@/assets/js/public';
// import showMsg from '@/assets/js/showmsg';
import errMsg from '@/assets/js/error';
export default {
name: 'apiProgramGroup',
components: {
navBread,
newApiGroup
},
data() {
return {
// 面包屑参数
navPath: [
{
name: 'API管理',
path: '/apiProgram'
},
{
name: `${this.$route.query.projectName}项目列表`,
path: '/apiProgram'
},
{
name: `${this.$route.query.groupName}分组列表`,
path: '/apiProgramGroup'
},
{
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: [
/*{
interfaceId: '1',
interfaceName: '测试',
interfaceGroupName: '234',
interfaceType: '0',
optType: 'get',
createTime: 1564455643252
} */
],
pageSize: 20,
currentPage: 1,
totalCount: 0,
showDialog: false,
editIndex: '',
editRow: {}
};
},
methods: {
/**
* 搜索
*/
searchData: _debounce(function(value) {
const that = this;
that.currentPage == 1;
that.getData();
}, 500),
/**
* 搜索清除
*/
clearInput() {
this.currentPage = 1;
this.getData();
},
/**
* 选择 API类型
*/
changeTargetType(val) {
this.currentPage = 1;
this.getData();
},
/**
* 创建 API
*/
createApi() {
const that = this;
that.$router.push(`/createApi?projectId=${that.$route.query.projectId}&interfaceGroupId=${that.$route.query.interfaceGroupId}`);
},
/**
* 分页
*/
handleSizeChange(val) {
this.pageSize = val;
this.getData();
},
handleCurrentChange(val) {
this.currentPage = val;
this.getData();
},
/**
* 管理
*/
toApiListManage(index, row) {
const that = this;
that.$router.push(`/apiListManage?interfaceId=${row.interfaceId}&interfaceName=${row.interfaceName}`);
},
/**
* 获取数据
*/
getData() {
const that = this;
let para = {
projectId: that.projectId,
interfaceGroupId: that.interfaceGroupId,
search: that.searchValue,
target: that.targetType, //对象 0 对内 1对外 2对部分
pageSize: that.pageSize,
pageNum: that.currentPage
};
getRequest('/gateway-manage/page-api', para)
.then(res => {
let resData = res.data;
if (resData.code == '0000') {
that.tableData = resData.result.result;
that.totalCount = resData.result.totalCount;
return;
}
errMsg.errorMsg(resData);
})
.catch(function(error) {
that.$message.error({
duration: 1000,
message: error.message
});
});
}
},
watch: {
$route: {
handler: function(val, oldVal) {},
// 深度观察监听
deep: true
}
},
/* 接收数据 */
mounted() {
const that = this;
that.$emit('showTab', 21);
that.getData();
}
};
</script>
<style lang="less" scoped>
.w-137 {
width: 137px;
}
.w-320 {
width: 320px;
}
.m-t-14 {
margin-top: 14px;
}
.margin-left10 {
margin-left: 10px;
}
</style>
<!--
* @Descripttion: 当前组件信息
* @version: 1.0.0
* @Author: 无尘
* @Date: 2019-09-05 10:03:31
* @LastEditors: 无尘
* @LastEditTime: 2019-09-05 10:03:31
-->
<template> <template>
<div class="api-body-content border-box"> <div class="api-body-content border-box">
<div class="common-nav"> <div class="common-nav">
...@@ -448,4 +456,10 @@ export default { ...@@ -448,4 +456,10 @@ export default {
} }
} }
.el-tabs {
/deep/ .el-tabs__content {
padding-bottom: 10px;
}
}
</style> </style>
<!--
* @Descripttion: 当前组件信息
* @version: 1.0.0
* @Author: 无尘
* @Date: 2019-07-22 19:15:16
* @LastEditors: 无尘
* @LastEditTime: 2019-09-30 16:23:24
-->
<template> <template>
<div class="api-body-content border-box"> <div class="api-body-content border-box">
<div class="common-nav"> <div class="common-nav">
...@@ -124,6 +132,9 @@ export default { ...@@ -124,6 +132,9 @@ export default {
background: rgba(255, 255, 255, 1); background: rgba(255, 255, 255, 1);
border-radius: 4px; border-radius: 4px;
border: 1px solid rgba(228, 231, 237, 1); border: 1px solid rgba(228, 231, 237, 1);
&:hover {
box-shadow: 0px 2px 7px 0px rgba(213, 213, 213, 0.5);
}
.item-top { .item-top {
margin-top: 20px; margin-top: 20px;
display: flex; display: flex;
...@@ -166,6 +177,10 @@ export default { ...@@ -166,6 +177,10 @@ export default {
font-size: 14px; font-size: 14px;
margin-left: 65px; margin-left: 65px;
margin-top: 10px; margin-top: 10px;
&.el-button--text:hover,
&.el-button--text:focus {
color: #2656d4;
}
} }
} }
} }
......
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