<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f963fe30","chunk-1fc63ab4"],{"00a6":function(t,e,r){"use strict";r("f3b6")},"3cfd":function(t,e,r){"use strict";r("8e4f")},"603e":function(t,e,r){"use strict";r.r(e);var a=function(){var t=this,e=t._self._c;return e("a-card",{attrs:{bordered:!1}},[e("div",{staticClass:"table-operator"},[e("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:function(e){return t.showModal(null)}}},[t._v("æ–°å¢ž")])],1),e("div",[e("a-table",{ref:"table",staticClass:"j-table-force-nowrap",attrs:{size:"middle",scroll:{x:!0},bordered:"",rowKey:"id",columns:t.columns,dataSource:t.dataSource,pagination:!1,loading:t.loading},on:{change:t.handleTableChange},scopedSlots:t._u([{key:"status",fn:function(r,a,n){return e("span",{},[0==r?e("a-tag",{attrs:{color:"pink"}},[t._v("ç¦ç”¨")]):t._e(),1==r?e("a-tag",{attrs:{color:"#87d068"}},[t._v("æ­£å¸¸")]):t._e()],1)}},{key:"action",fn:function(r,a){return e("span",{},[e("a",{on:{click:function(e){return t.showModal(a)}}},[t._v("ç¼–è¾‘")]),e("a-divider",{attrs:{type:"vertical"}}),e("a-dropdown",[e("a",{staticClass:"ant-dropdown-link"},[t._v("æ›´å¤š "),e("a-icon",{attrs:{type:"down"}})],1),e("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[e("a-menu-item",[e("a-popconfirm",{attrs:{title:"ç¡®å®šåˆ&nbsp;é™¤å—?"},on:{confirm:function(){return t.handleDelete(a.id)}}},[e("a",[t._v("åˆ&nbsp;é™¤")])])],1)],1)],1)],1)}}])})],1),e("gate-way-route-modal",{ref:"modalForm",on:{ok:t.modalFormOk}})],1)},n=[],i=(r("6eb7"),r("ac0d")),o=r("b65a"),l=r("ece6"),s={name:"TenantList",mixins:[o["a"],i["b"]],components:{GateWayRouteModal:l["default"]},data:function(){return{description:"adadç®¡ç†é¡µé¢",columns:[{title:"è·¯ç”±ID",align:"center",dataIndex:"routerId"},{title:"è·¯ç”±åç§°",align:"center",dataIndex:"name"},{title:"è·¯ç”±URI",align:"center",dataIndex:"uri"},{title:"çŠ¶æ€",align:"center",dataIndex:"status",scopedSlots:{customRender:"status"}},{title:"æ“ä½œ",dataIndex:"action",align:"center",fixed:"right",width:147,scopedSlots:{customRender:"action"}}],url:{list:"/sys/gatewayRoute/list",delete:"/sys/gatewayRoute/delete"},dictOptions:{}}},created:function(){},methods:{showModal:function(t){this.$refs["modalForm"].show(t)}}},u=s,c=(r("3cfd"),r("2877")),d=Object(c["a"])(u,a,n,!1,null,"28fc92be",null);e["default"]=d.exports},"6eb7":function(t,e,r){},"8e4f":function(t,e,r){},ece6:function(t,e,r){"use strict";r.r(e);var a=function(){var t=this,e=t._self._c;return t.visible?e("a-drawer",{staticStyle:{overflow:"auto","padding-bottom":"53px"},attrs:{title:t.title,maskClosable:!0,width:"45%",placement:"right",closable:!0,visible:t.visible},on:{close:t.handleCancel}},[e("a-form-model",{ref:"form",attrs:{layout:t.layout,"label-col":t.labelCol,"wrapper-col":t.wrapperCol,model:t.router}},[e("a-form-model-item",{attrs:{label:"è·¯ç”±ID"}},[e("a-input",{attrs:{placeholder:"è·¯ç”±å”¯ä¸€ID"},model:{value:t.router.routerId,callback:function(e){t.$set(t.router,"routerId",e)},expression:"router.routerId"}})],1),e("a-form-model-item",{attrs:{label:"è·¯ç”±åç§°"}},[e("a-input",{attrs:{placeholder:"è·¯ç”±åç§°"},model:{value:t.router.name,callback:function(e){t.$set(t.router,"name",e)},expression:"router.name"}})],1),e("a-form-model-item",{attrs:{label:"è·¯ç”±URI"}},[e("a-input",{attrs:{placeholder:"è·¯ç”±URL"},model:{value:t.router.uri,callback:function(e){t.$set(t.router,"uri",e)},expression:"router.uri"}})],1),e("a-form-model-item",{attrs:{label:"è·¯ç”±çŠ¶æ€",prop:"status"}},[e("a-switch",{attrs:{"default-checked":""},model:{value:t.router.status,callback:function(e){t.$set(t.router,"status",e)},expression:"router.status"}})],1),e("a-form-model-item",{attrs:{prop:"predicates",label:"è·¯ç”±æ¡ä»¶"}},[t._l(t.router.predicates,(function(r,a){return e("div",[e("a-divider",[t._v(t._s(r.name)+"\n          "),e("a-icon",{attrs:{type:"delete",size:"22"},on:{click:function(e){return t.removePredicate(t.router,a)}}})],1),e("div",[t._l(r.args,(function(a,n){return[n==t.currentTagIndex?e("a-input",{ref:"input",refInFor:!0,style:{width:"190px"},attrs:{type:"text",size:"small",value:a},on:{change:t.handleInputChange,blur:function(e){return t.handleInputEditConfirm(r,a,n)},keyup:function(e){return!e.type.indexOf("key")&amp;&amp;t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleInputEditConfirm(r,a,n)}}}):e("a-tag",{key:a,attrs:{closable:!0},on:{close:function(){return t.removeTag(r,a)},click:function(e){return t.editTag(a,n)}}},[t._v("\n              "+t._s(a)+"\n            ")])]})),t.inputVisible&amp;&amp;a==t.currentNameIndex?e("a-input",{ref:"input",refInFor:!0,style:{width:"100px"},attrs:{type:"text",size:"small",value:t.inputValue},on:{change:t.handleInputChange,blur:function(e){return t.handleInputConfirm(r)},keyup:function(e){return!e.type.indexOf("key")&amp;&amp;t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleInputConfirm(r)}}}):e("a-tag",{staticStyle:{background:"#fff",borderStyle:"dashed"},on:{click:function(e){return t.showInput(r,a)}}},[e("a-icon",{attrs:{type:"plus"}}),t._v("\n            æ–°å»º"+t._s(r.name)+"\n          ")],1)],2)],1)})),e("p",{staticClass:"btn",staticStyle:{"padding-top":"10px"}},[e("a-dropdown",[e("a-menu",{attrs:{slot:"overlay"},on:{click:t.predicatesHandleMenuClick},slot:"overlay"},t._l(t.tagArray,(function(r){return e("a-menu-item",{key:r},[t._v(t._s(r))])})),1),e("a-button",{staticStyle:{"margin-left":"8px",width:"100%"},attrs:{type:"dashed"}},[t._v(" æ·»åŠ&nbsp;è·¯ç”±æ¡ä»¶\n            "),e("a-icon",{attrs:{type:"down"}})],1)],1)],1)],2),e("a-form-model-item",{attrs:{prop:"predicates",label:"è¿‡æ»¤å™¨"}},[t._l(t.router.filters,(function(r,a){return e("div",[e("a-divider",[t._v(t._s(r.name)+"\n          "),e("a-icon",{attrs:{type:"delete",size:"22"},on:{click:function(e){return t.removeFilter(t.router,a)}}})],1),t._l(r.args,(function(a,n){return e("div",{key:a.key},[e("a-input",{staticStyle:{width:"45%","margin-right":"8px"},attrs:{placeholder:"å‚æ•°é”®"},model:{value:a.key,callback:function(e){t.$set(a,"key",e)},expression:"tag.key"}}),e("a-input",{staticStyle:{width:"40%","margin-right":"8px"},attrs:{placeholder:"å‚æ•°å€¼"},model:{value:a.value,callback:function(e){t.$set(a,"value",e)},expression:"tag.value"}}),e("a-icon",{staticClass:"dynamic-delete-button",attrs:{type:"minus-circle-o"},on:{click:function(e){return t.removeFilterParams(r,n)}}})],1)})),e("a-button",{staticStyle:{"margin-left":"28%",width:"30%"},attrs:{type:"dashed",size:"small"},on:{click:function(e){return t.addFilterParams(r)}}},[e("a-icon",{attrs:{type:"plus"}}),t._v("\n          æ·»åŠ&nbsp;å‚æ•°\n        ")],1)],2)})),e("p",{staticClass:"btn",staticStyle:{"padding-top":"10px"}},[e("a-dropdown",[e("a-menu",{attrs:{slot:"overlay"},on:{click:t.filterHandleMenuClick},slot:"overlay"},t._l(t.filterArray,(function(r){return e("a-menu-item",{key:r.key,attrs:{name:r.name}},[t._v(t._s(r.name))])})),1),e("a-button",{staticStyle:{"margin-left":"8px",width:"100%"},attrs:{type:"dashed"}},[t._v(" æ·»åŠ&nbsp;è¿‡æ»¤å™¨\n            "),e("a-icon",{attrs:{type:"down"}})],1)],1)],1)],2),e("a-row",{staticClass:"drawer-bootom-button",style:{textAlign:"right"}},[e("a-button",{style:{marginRight:"8px"},on:{click:t.handleCancel}},[t._v("\n        å…³é—­\n      ")]),e("a-button",{attrs:{type:"primary"},on:{click:t.handleSubmit}},[t._v("ç¡®å®š")])],1)],1)],1):t._e()},n=[],i=r("0fea"),o=["predicates","filters"];function l(t,e){if(null==t)return{};var r,a,n=s(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a&lt;i.length;a++)r=i[a],-1===e.indexOf(r)&amp;&amp;{}.propertyIsEnumerable.call(t,r)&amp;&amp;(n[r]=t[r])}return n}function s(t,e){if(null==t)return{};var r={};for(var a in t)if({}.hasOwnProperty.call(t,a)){if(-1!==e.indexOf(a))continue;r[a]=t[a]}return r}function u(t){return p(t)||f(t)||d(t)||c()}function c(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(t,e){if(t){if("string"==typeof t)return m(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&amp;&amp;t.constructor&amp;&amp;(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?m(t,e):void 0}}function f(t){if("undefined"!=typeof Symbol&amp;&amp;null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function p(t){if(Array.isArray(t))return m(t)}function m(t,e){(null==e||e&gt;t.length)&amp;&amp;(e=t.length);for(var r=0,a=Array(e);r&lt;e;r++)a[r]=t[r];return a}var y={name:"GateWayRouteModal",components:{},data:function(){return{layout:"horizontal",labelCol:{span:3},wrapperCol:{span:14},currentNameIndex:0,currentTagIndex:-1,predicates:{},filterArray:[{key:0,name:"ç†”æ–­å™¨"},{key:1,name:"é™æµè¿‡æ»¤å™¨"}],tagArray:["Path","Host","Cookie","Header","Method","Query","After","Before","Between","RemoteAddr"],inputVisible:!1,inputValue:"",url:{update:"/sys/gatewayRoute/updateAll",clear:"/sys/gatewayRoute/clearRedis"},router:this.getRouter(),title:"è·¯ç”±ç¼–è¾‘",visible:!1,loading:!1}},methods:{getRouter:function(){return{routerId:"",name:"",uri:"",predicates:[],filters:[]}},show:function(t){t?(t.status=Boolean(t.status),this.router=t):(this.router=this.getRouter(),this.inputValue=""),this.visible=!0,this.currentTagIndex=-1,this.currentNameIndex=-1},close:function(){this.reset(),this.$emit("close"),this.$refs["form"].resetFields(),this.visible=!1},removeTag:function(t,e){var r=t.args.filter((function(t){return t!==e}));t.args=r},predicatesHandleMenuClick:function(t){this.router.predicates.push({args:[],name:t.key})},editTag:function(t,e){this.currentTagIndex=e},showInput:function(t,e){this.inputVisible=!0,this.currentNameIndex=e},handleInputChange:function(t){this.inputValue=t.target.value},removePredicate:function(t,e){t.predicates.splice(e,1)},removeFilterParams:function(t,e){t.args.splice(e,1)},removeFilter:function(t,e){t.filters.splice(e,1)},addFilterParams:function(t){t.args.push({key:"key"+t.args.length+1,value:""})},filterHandleMenuClick:function(t){0==t.key&amp;&amp;this.router.filters.push({args:[{key:"name",value:"default"},{key:"fallbackUri",value:"forward:/fallback"}],name:"Hystrix",title:this.filterArray[0].name}),1==t.key&amp;&amp;this.router.filters.push({args:[{key:"key-resolver",value:"#{@ipKeyResolver}"},{key:"redis-rate-limiter.replenishRate",value:20},{key:"redis-rate-limiter.burstCapacity",value:20}],name:"RequestRateLimiter",title:this.filterArray[1].name})},handleInputConfirm:function(t){var e=this.inputValue,r=t.args;e&amp;&amp;-1===r.indexOf(e)&amp;&amp;(t.args=[].concat(u(r),[e])),Object.assign(this,{tags:r,inputVisible:!1,inputValue:""}),this.currentTagIndex=-1},handleInputEditConfirm:function(t,e,r){if(this.inputValue){var a=this.inputValue;t.args[r]=a}this.currentTagIndex=-1},reset:function(){this.expandedKeysss=[],this.checkedKeys=[],this.defaultCheckedKeys=[],this.loading=!1},handleCancel:function(){this.close()},handleSubmit:function(){var t=this,e=this.router,r=(e.predicates,e.filters,l(e,o)),a=r;a.predicates=JSON.stringify(this.router.predicates),a.filters=JSON.stringify(this.router.filters),Object(i["i"])(this.url.update,{router:a}).then((function(e){e.success?(t.close(),t.$emit("ok"),t.$message.success(e.message)):t.$message.error(e.message)}))}}},h=y,g=(r("00a6"),r("2877")),v=Object(g["a"])(h,a,n,!1,null,"7df3d545",null);e["default"]=v.exports},f3b6:function(t,e,r){}}]);</pre></body></html>