(function(){"use strict";var t={92549:function(t,e,n){n.d(e,{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(t){return(0,r.A)("POST","/user/login",{account:t.account,password:t.password},null)}function i(t){return(0,r.A)("POST","/user",t,null)}function s(t){return(0,r.A)("DELETE","/user",null,{account:t})}function a(t){return(0,r.A)("PUT","/user/password",t,null)}function c(){return(0,r.A)("GET","/user",null,null)}function l(t,e){return(0,r.A)("GET","/permission/list",null,{account:t,pid:e})}function u(t){return(0,r.A)("PUT","/permission",t,null)}},64855:function(t,e,n){var r=n(85471),o=function(){var t=this,e=t.$createElement,n=t._self._c||e;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),f=n(17954),m=(0,c.A)(a,o,i,!1,null,null,null),v=m.exports;u()(m,{VApp:d.A,VMain:f.A});var p=n(89116),h=n(95353);r["default"].use(h.Ay);var g=new h.Ay.Store({state:{},mutations:{},actions:{},modules:{}}),y=n(5453);r["default"].use(y.A);var b=new y.A({icons:{iconfont:"fa"}}),w=n(28721),k=n.n(w),A=n(65293),_={install(t){t.prototype.checkPer=t=>localStorage.getItem("role")<=t}},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(k()),new r["default"]({router:p.A,store:g,vuetify:b,render:t=>t(v)}).$mount("#app")},65293:function(t,e,n){n.d(e,{A:function(){return h}});var r=n(85471),o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"message-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"message",class:t.typeClass,attrs:{role:"alert"}},["message--error"==t.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"}},[t._v(" "+t._s(t.message)+" ")])])])},i=[],s={name:"message",data(){return{visible:!1,duration:2e3,message:"",timer:null,closed:!1,color:"",icon:"",typeClass:""}},watch:{closed(t){t&&(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,f=r["default"].extend(u),m=[],v=1;const p=function(t,e,n,r){t=t||{},"string"===typeof t&&(t={message:t,color:e,icon:n,typeClass:r});let o="message_"+v++;return d=new f({data:t}),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,m.push(d),d.vm};p.success=function(t){p(t,"green","mdi-check-circle","message--success")},p.error=function(t){p(t,"red","mdi-alert-circle","message--error")},p.close=function(t){for(let e=0,n=m.length;e=0;t--)m[t].close()};var h=p},89116:function(t,e,n){n.d(e,{A:function(){return G}});var r=n(85471),o=n(40173),i=function(){var t=this,e=t.$createElement,n=t._self._c||e;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",[t._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:t.loginForm.account,callback:function(e){t.$set(t.loginForm,"account",e)},expression:"loginForm.account"}}),n("v-text-field",{ref:"password",attrs:{readonly:t.readonly,"append-icon":t.showPassword?"mdi-eye-off":"mdi-eye",type:t.showPassword?"text":"password","prepend-icon":"mdi-lock",label:"Password",placeholder:"*********",counter:"",required:""},on:{focus:function(e){t.readonly=!1},keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleLogin.apply(null,arguments)},"click:append":function(e){t.showPassword=!t.showPassword}},model:{value:t.loginForm.password,callback:function(e){t.$set(t.loginForm,"password",e)},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:t.handleLogin}},[t._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((t=>{0===t.code&&(localStorage.setItem("token",t.data.token),localStorage.setItem("user",this.loginForm.account),localStorage.setItem("role",t.data.role),this.$message.success("登入成功"),this.$router.push("/"))}))}},props:{source:String}},l=c,u=n(81656),d=n(9963),f=n.n(d),m=n(375),v=n(47210),p=n(98834),h=n(51526),g=n(4739),y=n(1770),b=n(58230),w=n(18412),k=n(67410),A=n(83406),_=n(97043),C=n(71735),x=(0,u.A)(l,i,s,!1,null,"1244bed2",null),V=x.exports;f()(x,{VBtn:m.A,VCard:v.A,VCardActions:p.SL,VCardText:p.OQ,VCol:h.A,VContainer:g.A,VDivider:y.A,VForm:b.A,VRow:w.A,VSpacer:k.A,VTextField:A.A,VToolbar:_.A,VToolbarTitle:C.sw});var L=function(){var t=this,e=t.$createElement,n=t._self._c||e;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",[t._v("mdi-account")])],1),n("v-list-item-title",{staticClass:"text-h6"},[t._v(" "+t._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(e){return t.route("/process")}}},[n("v-list-item-icon",[n("v-icon",[t._v(" mdi-application-brackets-outline")])],1),n("v-list-item-title",[t._v(" 进程管理 ")])],1),t.checkPer(0)?n("v-list-item",{attrs:{link:""},on:{click:function(e){return t.route("/task")}}},[n("v-list-item-icon",[n("v-icon",[t._v(" mdi-calendar-check")])],1),n("v-list-item-title",[t._v(" 任务管理 ")])],1):t._e(),t.checkPer(0)?n("v-list-item",{attrs:{link:""},on:{click:function(e){return t.route("/user")}}},[n("v-list-item-icon",[n("v-icon",[t._v("mdi-account-multiple")])],1),n("v-list-item-title",[t._v("用户管理")])],1):t._e(),n("v-list-item",{attrs:{link:""},on:{click:function(e){return t.route("/log")}}},[n("v-list-item-icon",[n("v-icon",[t._v("mdi-information-slab-circle")])],1),n("v-list-item-title",[t._v("日志中心")])],1),t.checkPer(1)?n("v-list-item",{attrs:{link:""},on:{click:function(e){return t.route("/push")}}},[n("v-list-item-icon",[n("v-icon",[t._v("mdi-message-fast")])],1),n("v-list-item-title",[t._v("推送配置")])],1):t._e(),n("v-list-item",{attrs:{link:""},on:{click:function(e){return t.route("/config")}}},[n("v-list-item-icon",[n("v-icon",[t._v("mdi-cog")])],1),n("v-list-item-title",[t._v("系统设置")])],1)],1),n("v-btn",{staticClass:"mx-2",staticStyle:{position:"fixed",bottom:"1%"},attrs:{fab:"",small:""},on:{click:t.logout}},[n("v-icon",{attrs:{dark:""}},[t._v(" mdi-logout ")])],1)],1),n("v-main",{staticStyle:{width:"0px"}},[n("router-view")],1)],1)],1)},S=[],T={data(){return{user:""}},created(){const t=localStorage.getItem("user");console.log(t),this.user=t},methods:{route(t){this.$router.push(t)},logout(){localStorage.removeItem("token"),localStorage.removeItem("user"),this.$router.push("/login")},print(){}}},E=T,P=n(69456),$=n(23224),O=n(72987),I=n(81075),j=n(62100),F=n(60024),N=n(17537),M=n(17954),D=n(95464),H=(0,u.A)(E,L,S,!1,null,null,null),B=H.exports;f()(H,{VBtn:m.A,VCard:v.A,VDivider:y.A,VIcon:P.A,VLayout:$.A,VList:O.A,VListItem:I.A,VListItemAvatar:j.A,VListItemIcon:F.A,VListItemTitle:N.UZ,VMain:M.A,VNavigationDrawer:D.A}),r["default"].use(o.A);const U=[{path:"/login",name:"Login",component:V},{path:"/",name:"Index",component:B,redirect:"/process",children:[{path:"/process",name:"Process",component:()=>n.e(594).then(n.bind(n,5872))},{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,61919))},{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,79992))}]}],q=new o.A({mode:"history",base:"/",routes:U});var G=q},35720:function(t,e,n){var r=n(91250),o=n(65293),i=n(89116);const s=r.A.create({headers:{"Content-Type":"application/json"},timeout:3e4});async function a(t,e,n,r){let o;e="/api"+e;let i={code:-1,message:"http访问失败!"};switch(t){case"GET":try{o=await s.get(e,{params:r})}catch(a){return i}break;case"POST":try{o=await s.post(e,n,{params:r})}catch(a){return i}break;case"PUT":try{o=await s.put(e,n,{params:r})}catch(a){return i}break;case"DELETE":try{o=await s.delete(e,{params:r})}catch(a){return i}break;default:return i}return o.data}s.interceptors.request.use((t=>(localStorage.getItem("token")&&(t.headers={token:localStorage.getItem("token"),...t.headers}),t)),(t=>Promise.reject(t))),s.interceptors.response.use((t=>t),(async function(t){console.dir(t),401===t.response.status&&(o.A.error("身份失效"),i.A.push("/login")),500===t.response.status&&o.A.error(t.response.data.msg)})),e.A=a}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r].call(i.exports,i,i.exports,n),i.exports}n.m=t,function(){var t=[];n.O=function(e,r,o,i){if(!r){var s=1/0;for(u=0;u=i)&&Object.keys(n.O).every((function(t){return n.O[t](r[c])}))?r.splice(c--,1):(a=!1,i0&&t[u-1][2]>i;u--)t[u]=t[u-1];t[u]=[r,o,i]}}(),function(){n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,{a:e}),e}}(),function(){n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})}}(),function(){n.f={},n.e=function(t){return Promise.all(Object.keys(n.f).reduce((function(e,r){return n.f[r](t,e),e}),[]))}}(),function(){n.u=function(t){return"js/about.3c27d5af.js"}}(),function(){n.miniCssF=function(t){return"css/about.a5a8d1dd.css"}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){var t={},e="login:";n.l=function(r,o,i,s){if(t[r])t[r].push(o);else{var a,c;if(void 0!==i)for(var l=document.getElementsByTagName("script"),u=0;u