(function(){"use strict";var e={92549:function(e,t,n){n.d(t,{aU:function(){return c},ec:function(){return a},hG:function(){return s},iD:function(){return o},kg:function(){return i},mD:function(){return u},ox:function(){return l}});var r=n(35720);function o(e){return(0,r.A)("POST","/user/login",{account:e.account,password:e.password},null)}function i(e){return(0,r.A)("POST","/user",e,null)}function s(e){return(0,r.A)("DELETE","/user",null,{account:e})}function a(e){return(0,r.A)("PUT","/user/password",e,null)}function c(){return(0,r.A)("GET","/user",null,null)}function l(e,t){return(0,r.A)("GET","/permission/list",null,{account:e,pid:t})}function u(e){return(0,r.A)("PUT","/permission",e,null)}},64855:function(e,t,n){var r=n(85471),o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-app",[n("v-main",[n("router-view")],1)],1)},i=[],s={name:"App",data:()=>({})},a=s,c=n(81656),l=n(9963),u=n.n(l),d=n(78505),m=n(17954),f=(0,c.A)(a,o,i,!1,null,null,null),h=f.exports;u()(f,{VApp:d.A,VMain:m.A});var p=n(28441),v=n(95353);r["default"].use(v.Ay);var g=new v.Ay.Store({state:{},mutations:{},actions:{},modules:{}}),w=n(5453);r["default"].use(w.A);var y=new w.A({icons:{iconfont:"fa"}}),k=n(28721),b=n.n(k),A=n(65293),_={install(e){e.prototype.checkPer=e=>localStorage.getItem("role")<=e}},C=n(7609);r["default"].prototype.$echarts=C,r["default"].use(C),r["default"].use(_),r["default"].prototype.$message=A.A,r["default"].config.productionTip=!1,r["default"].use(b()),new r["default"]({router:p.A,store:g,vuetify:y,render:e=>e(h)}).$mount("#app")},65293:function(e,t,n){n.d(t,{A:function(){return v}});var r=n(85471),o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"message-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"message",class:e.typeClass,attrs:{role:"alert"}},["message--error"==e.typeClass?n("svg",{staticClass:"v-icon__svg",attrs:{xmlns:"http://www.w3.org/2000/svg",role:"img"}},[n("path",{attrs:{d:"M8.27,3L3,8.27V15.73L8.27,21H15.73C17.5,19.24 21,15.73 21,15.73V8.27L15.73,3M9.1,5H14.9L19,9.1V14.9L14.9,19H9.1L5,14.9V9.1M11,15H13V17H11V15M11,7H13V13H11V7"}})]):n("svg",{staticClass:"v-icon__svg",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"}},[n("path",{attrs:{d:"M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z"}})]),n("p",{staticClass:"message__content",staticStyle:{"margin-left":"10px"}},[e._v(" "+e._s(e.message)+" ")])])])},i=[],s={name:"message",data(){return{visible:!1,duration:2e3,message:"",timer:null,closed:!1,color:"",icon:"",typeClass:""}},watch:{closed(e){e&&(this.visible=!1,this.$el.addEventListener("transitionend",this.destroyElement))}},methods:{destroyElement(){this.$el.removeEventListener("transitionend",this.destroyElement),this.$destroy(!0),this.$el.parentNode.removeChild(this.$el)},startTimer(){this.duration>0&&(this.timer=setTimeout((()=>{this.closed||this.close()}),this.duration))},close(){this.closed=!0}},mounted(){this.startTimer()}},a=s,c=n(81656),l=(0,c.A)(a,o,i,!1,null,"20a7bf17",null),u=l.exports;let d,m=r["default"].extend(u),f=[],h=1;const p=function(e,t,n,r){e=e||{},"string"===typeof e&&(e={message:e,color:t,icon:n,typeClass:r});let o="message_"+h++;return d=new m({data:e}),d.id=o,d.vm=d.$mount(),document.body.appendChild(d.vm.$el),d.vm.visible=!0,d.dom=d.vm.$el,d.dom.style.zIndex=1e4,f.push(d),d.vm};p.success=function(e){p(e,"green","mdi-check-circle","message--success")},p.error=function(e){p(e,"red","mdi-alert-circle","message--error")},p.close=function(e){for(let t=0,n=f.length;t=0;e--)f[e].close()};var v=p},28441:function(e,t,n){n.d(t,{A:function(){return Y}});var r=n(85471),o=n(40173),i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-container",{staticStyle:{background:"rgb(120, 144, 156)"},attrs:{"fill-height":"",fluid:""}},[n("v-row",{attrs:{justify:"center"}},[n("v-col",{staticClass:"d-flex justify-center"},[n("v-card",{attrs:{elevation:"12","min-width":"300",width:"500",color:"white"}},[n("v-toolbar",{attrs:{color:"primary"}},[n("v-toolbar-title",[e._v("进程管理系统")]),n("v-spacer")],1),n("v-card-text",[n("v-form",[n("v-text-field",{ref:"username",attrs:{"prepend-icon":"mdi-account",label:"account",required:""},model:{value:e.loginForm.account,callback:function(t){e.$set(e.loginForm,"account",t)},expression:"loginForm.account"}}),n("v-text-field",{ref:"password",attrs:{readonly:e.readonly,"append-icon":e.showPassword?"mdi-eye-off":"mdi-eye",type:e.showPassword?"text":"password","prepend-icon":"mdi-lock",label:"Password",placeholder:"*********",counter:"",required:""},on:{focus:function(t){e.readonly=!1},keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleLogin.apply(null,arguments)},"click:append":function(t){e.showPassword=!e.showPassword}},model:{value:e.loginForm.password,callback:function(t){e.$set(e.loginForm,"password",t)},expression:"loginForm.password"}})],1)],1),n("v-divider",{staticClass:"mt-5"}),n("v-card-actions",[n("v-spacer"),n("v-btn",{attrs:{"align-center":"","justify-center":"",color:"#ffc107 "},on:{click:e.handleLogin}},[e._v(" 登入 ")])],1)],1)],1)],1)],1)},s=[],a=n(92549),c={data:()=>({step:1,readonly:!0,loginForm:{account:"",password:""},color:"general",showPassword:!1}),methods:{handleLogin(){(0,a.iD)(this.loginForm).then((e=>{0===e.code&&(localStorage.setItem("token",e.data.token),localStorage.setItem("user",this.loginForm.account),localStorage.setItem("role",e.data.role),this.$message.success("登入成功"),this.$router.push("/"))}))}},props:{source:String}},l=c,u=n(81656),d=n(9963),m=n.n(d),f=n(375),h=n(47210),p=n(98834),v=n(51526),g=n(4739),w=n(1770),y=n(58230),k=n(18412),b=n(67410),A=n(83406),_=n(97043),C=n(71735),S=(0,u.A)(l,i,s,!1,null,"1244bed2",null),x=S.exports;m()(S,{VBtn:f.A,VCard:h.A,VCardActions:p.SL,VCardText:p.OQ,VCol:v.A,VContainer:g.A,VDivider:w.A,VForm:y.A,VRow:k.A,VSpacer:b.A,VTextField:A.A,VToolbar:_.A,VToolbarTitle:C.sw});var E=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-card",{staticStyle:{height:"100%"}},[n("v-layout",{staticStyle:{height:"100%"}},[n("v-navigation-drawer",{attrs:{permanent:"","expand-on-hover":""}},[n("v-list",{staticStyle:{"background-color":"rgb(241, 241, 232)"},attrs:{nav:""}},[n("v-list-item",{staticClass:"px-2"},[n("v-list-item-icon",[n("v-icon",[e._v("mdi-account")])],1),n("v-list-item-title",{staticClass:"text-h6"},[e._v(" "+e._s(this.user)+" ")]),n("v-list-item-avatar")],1)],1),n("v-divider"),n("v-list",{attrs:{rounded:"",nav:"",dense:""}},[n("v-list-item",{attrs:{link:""},on:{click:function(t){return e.route("/process")}}},[n("v-list-item-icon",[n("v-icon",[e._v(" mdi-application-brackets-outline")])],1),n("v-list-item-title",[e._v(" 进程管理 ")])],1),e.checkPer(1)?n("v-list-item",{attrs:{link:""},on:{click:function(t){return e.route("/task")}}},[n("v-list-item-icon",[n("v-icon",[e._v(" mdi-calendar-check")])],1),n("v-list-item-title",[e._v(" 任务管理 ")])],1):e._e(),e.checkPer(0)?n("v-list-item",{attrs:{link:""},on:{click:function(t){return e.route("/user")}}},[n("v-list-item-icon",[n("v-icon",[e._v("mdi-account-multiple")])],1),n("v-list-item-title",[e._v("用户管理")])],1):e._e(),n("v-list-item",{attrs:{link:""},on:{click:function(t){return e.route("/log")}}},[n("v-list-item-icon",[n("v-icon",[e._v("mdi-information-slab-circle")])],1),n("v-list-item-title",[e._v("日志中心")])],1),e.checkPer(1)?n("v-list-item",{attrs:{link:""},on:{click:function(t){return e.route("/push")}}},[n("v-list-item-icon",[n("v-icon",[e._v("mdi-message-fast")])],1),n("v-list-item-title",[e._v("推送配置")])],1):e._e(),n("v-list-item",{attrs:{link:""},on:{click:function(t){return e.route("/config")}}},[n("v-list-item-icon",[n("v-icon",[e._v("mdi-cog")])],1),n("v-list-item-title",[e._v("系统设置")])],1)],1),n("v-btn",{staticClass:"mx-2",staticStyle:{position:"fixed",bottom:"1%"},attrs:{fab:"",small:""},on:{click:e.logout}},[n("v-icon",{attrs:{dark:""}},[e._v(" mdi-logout ")])],1)],1),n("v-main",{staticStyle:{width:"0px"}},[n("router-view")],1)],1)],1)},L=[],T={data(){return{user:""}},created(){const e=localStorage.getItem("user");console.log(e),this.user=e},methods:{route(e){this.$router.push(e)},logout(){localStorage.removeItem("token"),localStorage.removeItem("user"),this.$router.push("/login")},print(){}}},V=T,P=n(69456),O=n(23224),I=n(72987),$=n(81075),M=n(62100),j=n(60024),F=n(17537),N=n(17954),H=n(95464),D=(0,u.A)(V,E,L,!1,null,null,null),B=D.exports;m()(D,{VBtn:f.A,VCard:h.A,VDivider:w.A,VIcon:P.A,VLayout:O.A,VList:I.A,VListItem:$.A,VListItemAvatar:M.A,VListItemIcon:j.A,VListItemTitle:F.UZ,VMain:N.A,VNavigationDrawer:H.A});var U=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{height:"100%",background:"black"}},[n("div",{ref:"xterm",attrs:{id:"xterm"+e.index}})])},G=[],q=n(62975),W=n(29195),z=n(93875),R={data:()=>({step:1,readonly:!0,loginForm:{account:"",password:""},color:"general",showPassword:!1}),created(){const e=new URLSearchParams(window.location.search),t=e.get("token");this.initWebSocketPty(t)},methods:{initWebSocketPty(e){const t="ws://"+window.location.hostname+":"+window.location.port+"/api/ws/share",n=t+"?token="+e+"&cols="+parseInt(Math.floor((window.innerWidth-21)/9))+"&rows="+parseInt(Math.floor((window.innerHeight-48)/19));this.initSocket(n)},initTerm(){let e=new q.Terminal({rendererType:"canvas",rows:parseInt(Math.floor((window.innerHeight-48)/19)),cols:parseInt(Math.floor((window.innerWidth-21)/9)),convertEol:!0,disableStdin:!1,lineHeight:1.12,cursorBlink:!0,theme:{foreground:"#ECECEC",cursor:"help"}});const t=new z.AttachAddon(this.socket),n=new W.FitAddon;e.loadAddon(t),e.loadAddon(n),e.open(document.getElementById("xterm"+this.index)),n.fit(),e.focus(),this.term=e,window.addEventListener("resize",this.handleResize)},initSocket(e){this.socket=new WebSocket(e),this.socketOnClose(),this.socketOnOpen(),this.socketOnError()},socketOnClose(){this.socket.onclose=()=>{this.term.dispose()}},socketOnOpen(){this.socket.onopen=()=>{this.initTerm()}},socketOnError(){this.socket.onerror=()=>{this.term.dispose(),this.$message.error("终端连接断开")}}}},Z=R,K=(0,u.A)(Z,U,G,!1,null,null,null),Q=K.exports;r["default"].use(o.A);const J=[{path:"/login",name:"Login",component:x},{path:"/share",name:"ProcessShare",component:Q},{path:"/",name:"Index",component:B,redirect:"/process",children:[{path:"/process",name:"Process",component:()=>n.e(594).then(n.bind(n,60378))},{path:"/user",name:"User",component:()=>n.e(594).then(n.bind(n,11241))},{path:"/log",name:"Log",component:()=>n.e(594).then(n.bind(n,88974))},{path:"/push",name:"Push",component:()=>n.e(594).then(n.bind(n,80791))},{path:"/config",name:"Config",component:()=>n.e(594).then(n.bind(n,75872))},{path:"/task",name:"Task",component:()=>n.e(594).then(n.bind(n,22578))}]}],X=new o.A({mode:"history",base:"/",routes:J});var Y=X},35720:function(e,t,n){var r=n(91250),o=n(65293),i=n(28441);const s=r.A.create({headers:{"Content-Type":"application/json"},timeout:3e4});async function a(e,t,n,r){let o;t="/api"+t;let i={code:-1,message:"http访问失败!"};switch(e){case"GET":try{o=await s.get(t,{params:r})}catch(a){return i}break;case"POST":try{o=await s.post(t,n,{params:r})}catch(a){return i}break;case"PUT":try{o=await s.put(t,n,{params:r})}catch(a){return i}break;case"DELETE":try{o=await s.delete(t,{params:r})}catch(a){return i}break;default:return i}return o.data}s.interceptors.request.use((e=>(localStorage.getItem("token")&&(e.headers={token:localStorage.getItem("token"),...e.headers}),e)),(e=>Promise.reject(e))),s.interceptors.response.use((e=>e),(async function(e){console.dir(e),401===e.response.status&&(o.A.error("身份失效"),i.A.push("/login")),500===e.response.status&&o.A.error(e.response.data.msg)})),t.A=a}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.m=e,function(){var e=[];n.O=function(t,r,o,i){if(!r){var s=1/0;for(u=0;u=i)&&Object.keys(n.O).every((function(e){return n.O[e](r[c])}))?r.splice(c--,1):(a=!1,i0&&e[u-1][2]>i;u--)e[u]=e[u-1];e[u]=[r,o,i]}}(),function(){n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,{a:t}),t}}(),function(){n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}}(),function(){n.f={},n.e=function(e){return Promise.all(Object.keys(n.f).reduce((function(t,r){return n.f[r](e,t),t}),[]))}}(),function(){n.u=function(e){return"js/about.eacc2ace.js"}}(),function(){n.miniCssF=function(e){return"css/about.5661316a.css"}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){var e={},t="GPM:";n.l=function(r,o,i,s){if(e[r])e[r].push(o);else{var a,c;if(void 0!==i)for(var l=document.getElementsByTagName("script"),u=0;u