app.8dd9d4f5.js 10 KB

12
  1. (function(e){function n(n){for(var a,r,u=n[0],i=n[1],s=n[2],p=0,l=[];p<u.length;p++)r=u[p],Object.prototype.hasOwnProperty.call(o,r)&&o[r]&&l.push(o[r][0]),o[r]=0;for(a in i)Object.prototype.hasOwnProperty.call(i,a)&&(e[a]=i[a]);d&&d(n);while(l.length)l.shift()();return c.push.apply(c,s||[]),t()}function t(){for(var e,n=0;n<c.length;n++){for(var t=c[n],a=!0,r=1;r<t.length;r++){var u=t[r];0!==o[u]&&(a=!1)}a&&(c.splice(n--,1),e=i(i.s=t[0]))}return e}var a={},r={app:0},o={app:0},c=[];function u(e){return i.p+"js/"+({}[e]||e)+"."+{"chunk-0ed0110f":"14f8fed6","chunk-2032f0f4":"a4feea6a","chunk-2d914966":"d9966fb6","chunk-4515ebc5":"d41df7f3","chunk-5a241b3e":"6bebf663","chunk-7b04c026":"e4295a14","chunk-c5e15b0a":"c65385b8"}[e]+".js"}function i(n){if(a[n])return a[n].exports;var t=a[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.e=function(e){var n=[],t={"chunk-0ed0110f":1,"chunk-2032f0f4":1,"chunk-2d914966":1,"chunk-4515ebc5":1,"chunk-5a241b3e":1,"chunk-7b04c026":1,"chunk-c5e15b0a":1};r[e]?n.push(r[e]):0!==r[e]&&t[e]&&n.push(r[e]=new Promise((function(n,t){for(var a="css/"+({}[e]||e)+"."+{"chunk-0ed0110f":"f2e59cbf","chunk-2032f0f4":"2d6a4f00","chunk-2d914966":"f2e59cbf","chunk-4515ebc5":"39e831cc","chunk-5a241b3e":"f2e59cbf","chunk-7b04c026":"f2e59cbf","chunk-c5e15b0a":"3cf20b6d"}[e]+".css",o=i.p+a,c=document.getElementsByTagName("link"),u=0;u<c.length;u++){var s=c[u],p=s.getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(p===a||p===o))return n()}var l=document.getElementsByTagName("style");for(u=0;u<l.length;u++){s=l[u],p=s.getAttribute("data-href");if(p===a||p===o)return n()}var d=document.createElement("link");d.rel="stylesheet",d.type="text/css",d.onload=n,d.onerror=function(n){var a=n&&n.target&&n.target.src||o,c=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");c.code="CSS_CHUNK_LOAD_FAILED",c.request=a,delete r[e],d.parentNode.removeChild(d),t(c)},d.href=o;var f=document.getElementsByTagName("head")[0];f.appendChild(d)})).then((function(){r[e]=0})));var a=o[e];if(0!==a)if(a)n.push(a[2]);else{var c=new Promise((function(n,t){a=o[e]=[n,t]}));n.push(a[2]=c);var s,p=document.createElement("script");p.charset="utf-8",p.timeout=120,i.nc&&p.setAttribute("nonce",i.nc),p.src=u(e);var l=new Error;s=function(n){p.onerror=p.onload=null,clearTimeout(d);var t=o[e];if(0!==t){if(t){var a=n&&("load"===n.type?"missing":n.type),r=n&&n.target&&n.target.src;l.message="Loading chunk "+e+" failed.\n("+a+": "+r+")",l.name="ChunkLoadError",l.type=a,l.request=r,t[1](l)}o[e]=void 0}};var d=setTimeout((function(){s({type:"timeout",target:p})}),12e4);p.onerror=p.onload=s,document.head.appendChild(p)}return Promise.all(n)},i.m=e,i.c=a,i.d=function(e,n,t){i.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,n){if(1&n&&(e=i(e)),8&n)return e;if(4&n&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var a in e)i.d(t,a,function(n){return e[n]}.bind(null,a));return t},i.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(n,"a",n),n},i.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},i.p="/",i.oe=function(e){throw console.error(e),e};var s=window["webpackJsonp"]=window["webpackJsonp"]||[],p=s.push.bind(s);s.push=n,s=s.slice();for(var l=0;l<s.length;l++)n(s[l]);var d=p;c.push([0,"chunk-vendors"]),t()})({0:function(e,n,t){e.exports=t("56d7")},"0f59":function(e,n,t){},"56d7":function(e,n,t){"use strict";t.r(n);t("25ba"),t("5f1c"),t("6ba0"),t("b47f");var a=t("430a"),r=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{attrs:{id:"app"}},[t("transition",{attrs:{name:"fade",mode:"out-in"}},[t("router-view")],1)],1)},o=[],c={},u=c,i=t("4ac2"),s=Object(i["a"])(u,r,o,!1,null,null,null),p=s.exports,l=t("a5e4");a["default"].use(l["a"]);var d=new l["a"]({routes:[{path:"/",name:"login",component:function(){return t.e("chunk-2032f0f4").then(t.bind(null,"a55b"))},show:0},{path:"/data",name:"参赛数据",icon:"el-icon-pie-chart",component:function(){return t.e("chunk-4515ebc5").then(t.bind(null,"bb51"))},show:1,isLeaf:0,children:[{path:"/data",component:function(){return t.e("chunk-c5e15b0a").then(t.bind(null,"856d"))},name:"数据统计"}]},{path:"/match",name:"赛事管理",icon:"el-icon-trophy-1",component:function(){return t.e("chunk-4515ebc5").then(t.bind(null,"bb51"))},show:1,isLeaf:0,children:[{path:"/match",component:function(){return t.e("chunk-2d914966").then(t.bind(null,"9f50"))},name:"赛事管理"},{path:"/group",component:function(){return t.e("chunk-0ed0110f").then(t.bind(null,"a14c"))},name:"赛事分组"}]},{path:"/player",name:"选手管理",icon:"el-icon-trophy-1",component:function(){return t.e("chunk-4515ebc5").then(t.bind(null,"bb51"))},show:1,isLeaf:0,children:[{path:"/player",component:function(){return t.e("chunk-5a241b3e").then(t.bind(null,"62b6"))},name:"参赛选手"}]},{path:"/user",name:"用户管理",icon:"el-icon-s-tools",component:function(){return t.e("chunk-4515ebc5").then(t.bind(null,"bb51"))},show:1,isLeaf:1,children:[{path:"/user",component:function(){return t.e("chunk-7b04c026").then(t.bind(null,"e382"))},name:"用户管理"}]}]}),f=t("7736"),m=t("f753"),h=t.n(m);a["default"].use(f["a"]);var g={state:{inDate:""},mutations:{setInDate:function(e,n){e.inDate=n}},getters:{}},b=new f["a"].Store(g),y=t("51c0"),k=t.n(y),v=(t("52d1"),t("02ac"),t("0f59"),"");h.a.interceptors.request.use((function(e){localStorage.getItem("token");return e}),(function(e){return Promise.reject(e)})),h.a.interceptors.response.use((function(e){if(null==e.data&&"json"===e.config.responseType&&null!=e.request.responseText)try{e.data=JSON.parse(e.request.responseText)}catch(n){}return e.data.code,e.data.code,e}),(function(e){return 403==e.request.status&&(window.location.hash="/"),Promise.reject(e)}));var w={login:function(e){return h.a.post("".concat(v,"/api/account/login"),e)},logout:function(e){return h.a.post("".concat(v,"/api/account/logout"),e)},reset:function(e){return h.a.put("".concat(v,"/api/account/pwd/reset"),e)},getAccountInfo:function(e){return h.a.get("".concat(v,"/api/account/info"))},getCode:function(e){return h.a.get("".concat(v,"/api/account/imgcode"))},getUserList:function(e){return h.a.get("".concat(v,"/api/admin/user/list"),{params:e})},getAllSysUserList:function(e){return h.a.get("".concat(v,"/api/admin/user/all"),{params:e})},getUserinfoList:function(e){return h.a.get("".concat(v,"/api/admin/userinfo/list"),{params:e})},getUserJournals:function(){return h.a.get("".concat(v,"/api/admin/user/journals"))},getUserRoles:function(){return h.a.get("".concat(v,"/api/admin/user/roles"))},addUser:function(e){return h.a.post("".concat(v,"/api/admin/user"),e)},editUser:function(e){return h.a.put("".concat(v,"/api/admin/user"),e)},delUser:function(e){return h.a.delete("".concat(v,"/api/admin/user"),{params:e})},getUserInfo:function(e){return h.a.get("".concat(v,"/api/admin/user"),{params:e})},getPlayerRecord:function(e){return h.a.get("".concat(v,"/api/admin/player/record/list"),{params:e})},addRecord:function(e){return h.a.post("".concat(v,"/api/admin/player/record"),e)},getRecordInfo:function(e){return h.a.get("".concat(v,"/api/admin/player/record"),{params:e})},editRecord:function(e){return h.a.put("".concat(v,"/api/admin/player/record"),e)},delRecord:function(e){return h.a.delete("".concat(v,"/api/admin/player/record"),{params:e})},downloadRecords:function(e){return h.a.get("".concat(v,"/api/admin/player/record/download"),{params:e,responseType:"blob"})},getMatchList:function(e){return h.a.get("".concat(v,"/api/admin/match/search"),{params:e})},getPlayerList:function(e){return h.a.get("".concat(v,"/api/admin/player/search"),{params:e})},getGroupList:function(e){return h.a.get("".concat(v,"/api/admin/match/group/search"),{params:e})},getStockList:function(e){return h.a.get("".concat(v,"/api/admin/stock/search"),{params:e})},getAllTemplateList:function(e){return h.a.get("".concat(v,"/api/admin/message/template/all"),{params:e})},addRole:function(e){return h.a.post("".concat(v,"/api/admin/role"),e)},editRole:function(e){return h.a.put("".concat(v,"/api/admin/role"),e)},delRole:function(e){return h.a.delete("".concat(v,"/api/admin/role"),{params:e})},getRoleList:function(e){return h.a.get("".concat(v,"/api/admin/role/list"),{params:e})},getRoleInfo:function(e){return h.a.get("".concat(v,"/api/admin/role"),{params:e})},getPlayers:function(e){return h.a.get("".concat(v,"/api/admin/player/list"),{params:e})},addPlayer:function(e){return h.a.post("".concat(v,"/api/admin/player"),e)},updatePlayer:function(e){return h.a.put("".concat(v,"/api/admin/player"),e)},delPlayer:function(e){return h.a.delete("".concat(v,"/api/admin/player"),{params:e})},getPlayerInfo:function(e){return h.a.get("".concat(v,"/api/admin/player"),{params:e})},getUserSearch:function(e){return h.a.get("".concat(v,"/api/admin/user/search"),{params:e})},getMatchs:function(e){return h.a.get("".concat(v,"/api/admin/match/list"),{params:e})},getGroups:function(e){return h.a.get("".concat(v,"/api/admin/match/group/list"),{params:e})},addMatch:function(e){return h.a.post("".concat(v,"/api/admin/match"),e)},updateMatch:function(e){return h.a.put("".concat(v,"/api/admin/match"),e)},delMatch:function(e){return h.a.delete("".concat(v,"/api/admin/match"),{params:e})},addGroup:function(e){return h.a.post("".concat(v,"/api/admin/match/group"),e)},updateGroup:function(e){return h.a.put("".concat(v,"/api/admin/match/group"),e)},delGroup:function(e){return h.a.delete("".concat(v,"/api/admin/match/group"),{params:e})},fastSavePlayer:function(e){return h.a.post("".concat(v,"/api/admin/player/fast"),e)}},P=t("4d28"),L=t.n(P);t("8d33");a["default"].use(k.a),a["default"].prototype.$echarts=L.a,a["default"].prototype.$api=w,a["default"].config.productionTip=!1,a["default"].prototype.msgSuccess=function(e){this.$message({showClose:!0,message:e,type:"success"})},a["default"].prototype.msgError=function(e){this.$message({showClose:!0,message:e,type:"error"})},a["default"].prototype.msgInfo=function(e){this.$message.info(e)},new a["default"]({router:d,store:b,render:function(e){return e(p)}}).$mount("#app")}});
  2. //# sourceMappingURL=app.8dd9d4f5.js.map