(function(e){function t(t){for(var a,r,s=t[0],u=t[1],l=t[2],c=0,d=[];c=0){var a=new RegExp("(^|&)redirect=([^&]*)(&|$)","i"),r=n.substring(n.indexOf("?")+1).match(a);null!=r&&(t=unescape(r[2]))}t=t||encodeURIComponent(window.location.href),s["default"].$router.push({path:"/user/login",query:{redirect:t}})}else 402==e.data.errCode?s["default"].$router.push("/common/noAuth"):200!==e.data.errCode&&s["default"].$message.error(e.data.errMsg||"未知错误")}return Promise.reject("请求错误")}),(function(e){return console.log("err"+e),s["default"].$message.info("请求错误:"+e.message),Promise.reject(e)}));var c=u;t["a"]={systemUpgradeInfo:function(e){return c({url:"/system/info/upgrade",method:"post",data:r.a.stringify(e)})},userLogin:function(e){return c({url:"/login",method:"post",data:r.a.stringify(e)})},userLogout:function(e){return c({url:"/logout",method:"post",data:r.a.stringify(e)})},getSelfUserInfo:function(e){return c({url:"/user/info/selfInfo",method:"post",data:r.a.stringify(e)})},getUserInfoList:function(e){return c({url:"/user/info/list",method:"post",data:r.a.stringify(e)})},updateUserInfo:function(e){return c({url:"/user/info/update",method:"post",data:r.a.stringify(e)})},deleteUserInfo:function(e){return c({url:"/user/info/delete",method:"post",data:r.a.stringify(e)})},userAuthList:function(e){return c({url:"/user/info/auth/list",method:"post",data:r.a.stringify(e)})},updateUserAuth:function(e){return c({url:"/user/info/auth/update",method:"post",data:r.a.stringify(e)})},resetPassword:function(e){return c({url:"/user/info/resetPassword",method:"post",data:r.a.stringify(e)})}}},"56d7":function(e,t,n){"use strict";n.r(t);n("e260"),n("e6cf"),n("cca6"),n("a79d");var a=n("2b0e"),r=n("5c96"),o=n.n(r),i=(n("0fae"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app"}},[e.fullscreen?[n("router-view")]:n("el-container",[n("el-aside",[n("div",{staticStyle:{padding:"10px",height:"100%","box-sizing":"border-box",background:"#fafafa"}},[n("el-menu",{staticClass:"el-menu-vertical",attrs:{"default-active":"1-4-1",router:!0,collapse:e.isCollapse},on:{open:e.handleOpen,close:e.handleClose}},[n("el-menu-item",{attrs:{index:"/"}},[n("i",{staticClass:"el-icon-s-home"}),e._v("控制台")]),n("el-submenu",{attrs:{index:"1"}},[n("template",{slot:"title"},[n("i",{staticClass:"el-icon-s-platform"}),n("span",{attrs:{slot:"title"},slot:"title"},[e._v("系统管理")])]),n("el-menu-item",{attrs:{index:"/console/userList"}},[n("i",{staticClass:"el-icon-user-solid"}),e._v("用户管理")])],2)],1)],1)]),n("el-container",[n("el-header",[n("span",{staticClass:"header-right-user-name"},[e._v(e._s(e.userSelfInfo.userName))]),n("el-dropdown",{attrs:{trigger:"click"},on:{command:e.userSettingDropdown}},[n("i",{staticClass:"el-icon-setting",staticStyle:{"margin-right":"15px","font-size":"16px",cursor:"pointer",color:"#fff"}}),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("el-dropdown-item",{attrs:{command:"console"}},[e._v("控制台")]),n("el-dropdown-item",{attrs:{command:"aboutDoc",divided:""}},[e._v("关于")]),n("el-dropdown-item",{attrs:{command:"myInfo"}},[e._v("我的资料")]),n("el-dropdown-item",{attrs:{command:"userSignOut"}},[e._v("退出登录")])],1)],1)],1),n("el-main",{staticStyle:{padding:"0"}},[n("router-view")],1)],1)],1),n("el-dialog",{attrs:{title:"关于zyplayer-doc",visible:e.aboutDialogVisible,width:"600px"},on:{"update:visible":function(t){e.aboutDialogVisible=t}}},[n("el-form",[n("el-form-item",{attrs:{label:"项目地址:"}},[n("a",{attrs:{target:"_blank",href:"https://gitee.com/zyplayer/zyplayer-doc"}},[e._v("zyplayer-doc")])]),n("el-form-item",{attrs:{label:"开发人员:"}},[n("a",{attrs:{target:"_blank",href:"http://zyplayer.com"}},[e._v("暮光:城中城")])]),e.upgradeInfo.lastVersion?[n("el-form-item",{attrs:{label:"当前版本:"}},[e._v(e._s(e.upgradeInfo.nowVersion))]),n("el-form-item",{attrs:{label:"最新版本:"}},[e._v(e._s(e.upgradeInfo.lastVersion))]),n("el-form-item",{attrs:{label:"升级地址:"}},[n("a",{attrs:{target:"_blank",href:e.upgradeInfo.upgradeUrl}},[e._v(e._s(e.upgradeInfo.upgradeUrl))])]),n("el-form-item",{attrs:{label:"升级内容:"}},[e._v(e._s(e.upgradeInfo.upgradeContent))])]:e._e(),n("el-form-item",{attrs:{label:""}},[e._v(" 欢迎加群讨论,QQ群号:466363173,欢迎提交需求,欢迎使用和加入开发! ")])],2)],1)],2)}),s=[],u=n("3099"),l={data:function(){return{isCollapse:!1,aboutDialogVisible:!1,userSelfInfo:{},upgradeInfo:{}}},computed:{fullscreen:function(){return this.$store.state.global.fullscreen}},mounted:function(){this.getSelfUserInfo(),this.checkSystemUpgrade()},methods:{handleOpen:function(e,t){console.log(e,t)},handleClose:function(e,t){console.log(e,t)},userSettingDropdown:function(e){console.log("command:"+e),"userSignOut"==e?this.userSignOut():"aboutDoc"==e?this.aboutDialogVisible=!0:"myInfo"==e?this.$router.push({path:"/user/myInfo"}):"console"==e?window.location="./":this.$message.warn("功能暂未开放")},userSignOut:function(){u["a"].userLogout().then((function(){location.reload()})).catch((function(e){console.log("退出登录失败",e)}))},getSelfUserInfo:function(){var e=this;u["a"].getSelfUserInfo().then((function(t){e.userSelfInfo=t.data})).catch((function(e){console.log("获取用户信息失败",e)}))},checkSystemUpgrade:function(){var e=this;u["a"].systemUpgradeInfo({}).then((function(t){t.data&&(e.upgradeInfo=t.data,console.log("zyplayer-doc发现新版本:\n升级地址:"+t.data.upgradeUrl+"\n当前版本:"+t.data.nowVersion+"\n最新版本:"+t.data.lastVersion+"\n升级内容:"+t.data.upgradeContent))}))}}},c=l,d=(n("034f"),n("2877")),f=Object(d["a"])(c,i,s,!1,null,null,null),p=f.exports,h=n("8c4f"),m=(n("d3b7"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-tabs",{staticStyle:{padding:"5px 10px 0"},attrs:{type:"card",closable:""},on:{"tab-click":e.changePage,"tab-remove":e.removePageTab},model:{value:e.activePage,callback:function(t){e.activePage=t},expression:"activePage"}},e._l(e.pageList,(function(t){return n("el-tab-pane",{attrs:{label:e.pageTabNameMap[t.fullPath]||t.name,name:t.fullPath}})})),1),n("keep-alive",[n("router-view",{key:e.$route.fullPath,on:{initLoadDataList:e.initLoadDataList,loadDatasourceList:e.loadDatasourceList}})],1)],1)}),g=[],b=(n("4de4"),n("c975"),n("b0c0"),{name:"PageTableView",components:{},data:function(){return{pageList:[],linkList:[],activePage:"",multiPage:!0}},computed:{pageTabNameMap:function(){return this.$store.state.global.pageTabNameMap}},created:function(){this.pageList.push(this.$route),this.linkList.push(this.$route.fullPath),this.activePage=this.$route.fullPath},watch:{$route:function(e,t){this.activePage=e.fullPath,this.linkList.indexOf(e.fullPath)<0&&(this.linkList.push(e.fullPath),this.pageList.push(e))},activePage:function(e){this.$router.push(e)}},methods:{initLoadDataList:function(e){this.$emit("initLoadDataList",e)},loadDatasourceList:function(){this.$emit("loadDatasourceList")},changePage:function(e){this.activePage=e.name},editPage:function(e,t){this[t](e)},removePageTab:function(e){if(1!==this.pageList.length){this.pageList=this.pageList.filter((function(t){return t.fullPath!==e}));var t=this.linkList.indexOf(e);this.linkList=this.linkList.filter((function(t){return t!==e})),t=t>=this.linkList.length?this.linkList.length-1:t,this.activePage=this.linkList[t]}else this.$message.warning("这是最后一页,不能再关闭了啦")}}}),v=b,y=Object(d["a"])(v,m,g,!1,null,"a596d90e",null),k=y.exports,w=[{path:"/",redirect:"/home"},{path:"/user/login",name:"系统登录",component:function(){return n.e("chunk-6455e6ee").then(n.bind(null,"ac2a"))},meta:{fullscreen:!0}},{path:"/",name:"页面管理",component:k,children:[{path:"/home",name:"控制台",component:function(){return n.e("chunk-7349f4ef").then(n.bind(null,"b3d7"))}}]},{path:"/user",name:"用户管理",component:k,children:[{path:"myInfo",name:"我的信息",component:function(){return n.e("chunk-32cc5643").then(n.bind(null,"408e"))}}]},{path:"/console",name:"系统管理",component:k,children:[{path:"userList",name:"用户管理",component:function(){return n.e("chunk-35c34f90").then(n.bind(null,"b9bf"))}},{path:"roleList",name:"权限管理",component:function(){return n.e("chunk-30126bdc").then(n.bind(null,"0b39"))}},{path:"authList",name:"角色列表",component:function(){return n.e("chunk-4582ecc6").then(n.bind(null,"97ae"))}}]},{path:"/common",name:"",component:k,children:[{path:"noAuth",name:"没有权限",component:function(){return n.e("chunk-2d207ece").then(n.bind(null,"a339"))}}]}],L=w,P=n("2f62"),_={namespaced:!0,state:{pageTabNameMap:{},fullscreen:!1},getters:{getPageTabNameMap:function(e){return e.pageTabNameMap}},mutations:{addTableName:function(e,t){var n=Object.assign({},e.pageTabNameMap);n[t.key]=t.val,e.pageTabNameMap=n},setFullscreen:function(e,t){e.fullscreen=t}}};a["default"].use(P["a"]);var x=new P["a"].Store({modules:{global:_}}),S=n("bc3a"),I=n.n(S),C=n("a7fe"),O=n.n(C),$=n("2315"),T=n.n($);n("f1e9");a["default"].use(o.a),a["default"].use(h["a"]),a["default"].use(O.a,I.a),a["default"].use(T.a),a["default"].prototype.$store=x;var D=new h["a"]({routes:L});D.beforeEach((function(e,t,n){e.meta.title&&(document.title=e.meta.title),x.commit("global/setFullscreen",!!e.meta.fullscreen),n()}));var U=new a["default"]({el:"#app",router:D,render:function(e){return e(p)}});t["default"]=U},"85ec":function(e,t,n){}});