Commit 97264499 by 无尘

fix:修改状态码和日志

parent 46e5a84e
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>API网关管理平台</title><link href=./static/css/app.7300d05a7cf6ade668c124362a83d8e6.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.e560e04bdb8b056eaf69.js></script><script type=text/javascript src=./static/js/vendor.289e40671dbfc6af0fe7.js></script><script type=text/javascript src=./static/js/app.53e4e5cac4cc823e38d9.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>API网关管理平台</title><link href=./static/css/app.7300d05a7cf6ade668c124362a83d8e6.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.10250307e08881275aaa.js></script><script type=text/javascript src=./static/js/vendor.289e40671dbfc6af0fe7.js></script><script type=text/javascript src=./static/js/app.53e4e5cac4cc823e38d9.js></script></body></html>
\ 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"),a={name:"nav-bread",data:function(){return{projectName:"api-gateway-web"}},props:{navPath:{type:Array,default:function(){return[]}},slotFlag:{type:Boolean,default:!1},navtip:{type:Boolean,default:!1},subNavText:{type:String,default:""}},methods:{changeRoute:function(t,e){if(e)window.location.href=t;else{if(this.$route.fullPath.includes("?")){var n=t+("?"+this.$route.fullPath.split("?")[1]);return t.includes("?")&&(n=t+"&"+this.$route.fullPath.split("?")[1]),this.$router.push(n),!1}this.$router.push(t)}},getNavPath:function(){var t=this,e={project:t.projectName,path:t.$route.path.split("/")[1]};Object(r.b)("/api-auth/get-current-memu-data",e).then(function(e){var n=e.data;if(0==n.errorCode)return!!n.result&&(t.navpath=[],void(n.result.list&&n.result.list.length&&n.result.list.forEach(function(e,r){e.name=e.menuName,e.path="",r==n.result.list.length-1&&(e.path="/"+e.menuUrl),r>0&&t.navpath.push(e)})));i.a.errorMsg(n)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){}},o={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"nav-wrap boxbttom border-box"},[n("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},[t._l(t.navPath,function(e,r){return[e.path?[n("el-breadcrumb-item",{key:"nav"+r,on:{click:function(n){t.changeRoute(e.path,e.relocation)}}},[n("span",{staticClass:"el-breadcrumb__inner is-link",on:{click:function(n){t.changeRoute(e.path,e.relocation)}}},[t._v("\n "+t._s(e.name))])])]:[n("el-breadcrumb-item",{key:"nav"+r},[t._v(t._s(e.name))])]]})],2)],1)},staticRenderFns:[]};var u=n("VU/8")(a,o,!1,function(t){n("stDC")},"data-v-69d0394e",null);e.a=u.exports},"3fs2":function(t,e,n){var r=n("RY/4"),i=n("dSzd")("iterator"),a=n("/bQp");t.exports=n("FeBl").getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||a[r(t)]}},"82Mu":function(t,e,n){var r=n("7KvD"),i=n("L42u").set,a=r.MutationObserver||r.WebKitMutationObserver,o=r.process,u=r.Promise,s="process"==n("R9M2")(o);t.exports=function(){var t,e,n,l=function(){var r,i;for(s&&(r=o.domain)&&r.exit();t;){i=t.fn,t=t.next;try{i()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(s)n=function(){o.nextTick(l)};else if(!a||r.navigator&&r.navigator.standalone)if(u&&u.resolve){var c=u.resolve(void 0);n=function(){c.then(l)}}else n=function(){i.call(r,l)};else{var f=!0,p=document.createTextNode("");new a(l).observe(p,{characterData:!0}),n=function(){p.data=f=!f}}return function(r){var i={fn:r,next:void 0};e&&(e.next=i),t||(t=i,n()),e=i}}},BL1t:function(t,e){},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||"",L=s.Promise,O="process"==c(j),P=function(){},C=i=b.f,k=!!function(){try{var t=L.resolve(1),e=(t.constructor={})[n("dSzd")("species")]=function(t){t(P,P)};return(O||"function"==typeof PromiseRejectionEvent)&&t.then(P)instanceof e&&0!==V.indexOf("6.6")&&-1===x.indexOf("Chrome/66")}catch(t){}}(),F=function(t){var e;return!(!p(t)||"function"!=typeof(e=t.then))&&e},R=function(t,e){if(!t._n){t._n=!0;var 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&&B(t)})}},B=function(t){v.call(s,function(){var e,n,r,i=t._v,a=S(t);if(a&&(e=w(function(){O?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=O||S(t)?2:1),t._a=void 0,a&&e.e)throw e.v})},S=function(t){return 1!==t._h&&0===(t._a||t._c).length},A=function(t){v.call(s,function(){var e;O?j.emit("rejectionHandled",t):(e=s.onrejectionhandled)&&e({promise:t,reason:t._v})})},T=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),R(e,!0))},I=function(t){var e,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||(L=function(t){h(this,L,"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")(L.prototype,{then:function(t,e){var n=C(g(this,L));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=O?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===L||t===o?new a(t):i(t)}),f(f.G+f.W+f.F*!k,{Promise:L}),n("e6n0")(L,"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?L:this,t)}}),f(f.S+f.F*!(k&&n("dY0y")(function(t){L.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),L=!0===o.addQueryPrefix?"?":"";return V.length>0?L+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("BL1t")},"data-v-409f610b",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)}},Myvy:function(t,e){},"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 console.log(t),t.status&&200==t.status&&"0000"!=t.data.code?(4!=t.data.code&&2003!=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("Myvy")},"data-v-68c6e65c",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)}},stDC: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)}},"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"),a={name:"nav-bread",data:function(){return{projectName:"api-gateway-web"}},props:{navPath:{type:Array,default:function(){return[]}},slotFlag:{type:Boolean,default:!1},navtip:{type:Boolean,default:!1},subNavText:{type:String,default:""}},methods:{changeRoute:function(t,e){if(e)window.location.href=t;else{if(this.$route.fullPath.includes("?")){var n=t+("?"+this.$route.fullPath.split("?")[1]);return t.includes("?")&&(n=t+"&"+this.$route.fullPath.split("?")[1]),this.$router.push(n),!1}this.$router.push(t)}},getNavPath:function(){var t=this,e={project:t.projectName,path:t.$route.path.split("/")[1]};Object(r.b)("/api-auth/get-current-memu-data",e).then(function(e){var n=e.data;if(0==n.errorCode)return!!n.result&&(t.navpath=[],void(n.result.list&&n.result.list.length&&n.result.list.forEach(function(e,r){e.name=e.menuName,e.path="",r==n.result.list.length-1&&(e.path="/"+e.menuUrl),r>0&&t.navpath.push(e)})));i.a.errorMsg(n)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){}},o={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"nav-wrap boxbttom border-box"},[n("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},[t._l(t.navPath,function(e,r){return[e.path?[n("el-breadcrumb-item",{key:"nav"+r,on:{click:function(n){t.changeRoute(e.path,e.relocation)}}},[n("span",{staticClass:"el-breadcrumb__inner is-link",on:{click:function(n){t.changeRoute(e.path,e.relocation)}}},[t._v("\n "+t._s(e.name))])])]:[n("el-breadcrumb-item",{key:"nav"+r},[t._v(t._s(e.name))])]]})],2)],1)},staticRenderFns:[]};var u=n("VU/8")(a,o,!1,function(t){n("stDC")},"data-v-69d0394e",null);e.a=u.exports},"3fs2":function(t,e,n){var r=n("RY/4"),i=n("dSzd")("iterator"),a=n("/bQp");t.exports=n("FeBl").getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||a[r(t)]}},"82Mu":function(t,e,n){var r=n("7KvD"),i=n("L42u").set,a=r.MutationObserver||r.WebKitMutationObserver,o=r.process,u=r.Promise,s="process"==n("R9M2")(o);t.exports=function(){var t,e,n,l=function(){var r,i;for(s&&(r=o.domain)&&r.exit();t;){i=t.fn,t=t.next;try{i()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(s)n=function(){o.nextTick(l)};else if(!a||r.navigator&&r.navigator.standalone)if(u&&u.resolve){var c=u.resolve(void 0);n=function(){c.then(l)}}else n=function(){i.call(r,l)};else{var f=!0,p=document.createTextNode("");new a(l).observe(p,{characterData:!0}),n=function(){p.data=f=!f}}return function(r){var i={fn:r,next:void 0};e&&(e.next=i),t||(t=i,n()),e=i}}},BL1t:function(t,e){},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||"",L=s.Promise,O="process"==c(j),P=function(){},C=i=b.f,k=!!function(){try{var t=L.resolve(1),e=(t.constructor={})[n("dSzd")("species")]=function(t){t(P,P)};return(O||"function"==typeof PromiseRejectionEvent)&&t.then(P)instanceof e&&0!==V.indexOf("6.6")&&-1===x.indexOf("Chrome/66")}catch(t){}}(),F=function(t){var e;return!(!p(t)||"function"!=typeof(e=t.then))&&e},R=function(t,e){if(!t._n){t._n=!0;var 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&&B(t)})}},B=function(t){v.call(s,function(){var e,n,r,i=t._v,a=S(t);if(a&&(e=w(function(){O?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=O||S(t)?2:1),t._a=void 0,a&&e.e)throw e.v})},S=function(t){return 1!==t._h&&0===(t._a||t._c).length},A=function(t){v.call(s,function(){var e;O?j.emit("rejectionHandled",t):(e=s.onrejectionhandled)&&e({promise:t,reason:t._v})})},T=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),R(e,!0))},I=function(t){var e,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||(L=function(t){h(this,L,"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")(L.prototype,{then:function(t,e){var n=C(g(this,L));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=O?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===L||t===o?new a(t):i(t)}),f(f.G+f.W+f.F*!k,{Promise:L}),n("e6n0")(L,"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?L:this,t)}}),f(f.S+f.F*!(k&&n("dY0y")(function(t){L.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),L=!0===o.addQueryPrefix?"?":"";return V.length>0?L+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("BL1t")},"data-v-409f610b",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)}},Myvy:function(t,e){},"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 console.log(t),t.status&&200==t.status&&"0000"!=t.data.code?(4!=t.data.code&&2003!=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("Myvy")},"data-v-68c6e65c",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)}},stDC: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)}},"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
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,a,o){for(var f,d,i,u=0,b=[];u<r.length;u++)d=r[u],c[d]&&b.push(c[d][0]),c[d]=0;for(f in a)Object.prototype.hasOwnProperty.call(a,f)&&(e[f]=a[f]);for(n&&n(r,a,o);b.length;)b.shift()();if(o)for(u=0;u<o.length;u++)i=t(t.s=o[u]);return i};var r={},c={25:0};function t(n){if(r[n])return r[n].exports;var c=r[n]={i:n,l:!1,exports:{}};return e[n].call(c.exports,c,c.exports,t),c.l=!0,c.exports}t.e=function(e){var n=c[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var r=new Promise(function(r,t){n=c[e]=[r,t]});n[2]=r;var a=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:"21eb44c0f92862aed7d5",1:"0ebe3ead93207dc78a78",2:"746c1aff28909fa81065",3:"ee2db5932cf0c94dec20",4:"c872205e76fc2e211c44",5:"79669dea02bc4dbeebf1",6:"49af429925a1e8f0f2bd",7:"b2a85a42ddd430235a63",8:"7b30654eb23787b522cc",9:"a7997e12a098f7b54ed3",10:"638039a7b39908980436",11:"a856aed440077049c707",12:"3b9c756b15cf547445f5",13:"6c760e15d9a57478de92",14:"1cc6cb28c0c58bea9145",15:"384267038af31c9086d9",16:"57d016308e690b422d49",17:"7e4aa3cd1b6feb0ffcd6",18:"67aef9456764e44190e3",19:"f5c5139410c25373666b",20:"c163ea91d150e0ca1cb1",21:"c18c8eba63a78b9bfc1e",22:"6fda5833364e602fa76a"}[e]+".js";var f=setTimeout(d,12e4);function d(){o.onerror=o.onload=null,clearTimeout(f);var n=c[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),c[e]=void 0)}return o.onerror=o.onload=d,a.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
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(n,a,o){for(var f,d,i,u=0,b=[];u<n.length;u++)d=n[u],r[d]&&b.push(r[d][0]),r[d]=0;for(f in a)Object.prototype.hasOwnProperty.call(a,f)&&(e[f]=a[f]);for(c&&c(n,a,o);b.length;)b.shift()();if(o)for(u=0;u<o.length;u++)i=t(t.s=o[u]);return i};var n={},r={25:0};function t(c){if(n[c])return n[c].exports;var r=n[c]={i:c,l:!1,exports:{}};return e[c].call(r.exports,r,r.exports,t),r.l=!0,r.exports}t.e=function(e){var c=r[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var n=new Promise(function(n,t){c=r[e]=[n,t]});c[2]=n;var a=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:"808c6b2c88428074a2da",1:"0ebe3ead93207dc78a78",2:"746c1aff28909fa81065",3:"ee2db5932cf0c94dec20",4:"c872205e76fc2e211c44",5:"79669dea02bc4dbeebf1",6:"49af429925a1e8f0f2bd",7:"b2a85a42ddd430235a63",8:"7b30654eb23787b522cc",9:"a7997e12a098f7b54ed3",10:"638039a7b39908980436",11:"a856aed440077049c707",12:"3b9c756b15cf547445f5",13:"6c760e15d9a57478de92",14:"1cc6cb28c0c58bea9145",15:"384267038af31c9086d9",16:"57d016308e690b422d49",17:"7e4aa3cd1b6feb0ffcd6",18:"67aef9456764e44190e3",19:"f5c5139410c25373666b",20:"c163ea91d150e0ca1cb1",21:"c18c8eba63a78b9bfc1e",22:"6fda5833364e602fa76a"}[e]+".js";var f=setTimeout(d,12e4);function d(){o.onerror=o.onload=null,clearTimeout(f);var c=r[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),r[e]=void 0)}return o.onerror=o.onload=d,a.appendChild(o),n},t.m=e,t.c=n,t.d=function(e,c,n){t.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(c,"a",c),c},t.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},t.p="./",t.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
......@@ -25,10 +25,10 @@ Vue.axios.interceptors.response.use(
if (data.status && data.status == 200 && data.data.code != '0000') {
// Message.error({message: data.data.message});
if (data.data.code == 4 || data.data.code == 2003) {
window.location.href = local + 'gateway-web/#/login';
window.location.href = local + '/gateway-web/#/login';
}
if (data.data.code == 10 || data.data.code == 7) {
window.location.href = local + 'gateway-web/#/overview';
window.location.href = local + '/gateway-web/#/overview';
}
return data;
}
......
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