app.70dee820.js 9.4 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]);f&&f(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":"124934a9","chunk-2032f0f4":"a4feea6a","chunk-2d914966":"4f22185e","chunk-3913f55c":"590ca500","chunk-4515ebc5":"34f4c1d0","chunk-5a241b3e":"a36ba672","chunk-7b04c026":"b97d33bc"}[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-3913f55c":1,"chunk-4515ebc5":1,"chunk-5a241b3e":1,"chunk-7b04c026":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-3913f55c":"3cf20b6d","chunk-4515ebc5":"39e831cc","chunk-5a241b3e":"f2e59cbf","chunk-7b04c026":"f2e59cbf"}[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 f=document.createElement("link");f.rel="stylesheet",f.type="text/css",f.onload=n,f.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],f.parentNode.removeChild(f),t(c)},f.href=o;var d=document.getElementsByTagName("head")[0];d.appendChild(f)})).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(f);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 f=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 f=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 f=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-3913f55c").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:"用户管理"}]}]}),d=t("7736"),h=t("f753"),m=t.n(h);a["default"].use(d["a"]);var g={state:{inDate:""},mutations:{setInDate:function(e,n){e.inDate=n}},getters:{}},b=new d["a"].Store(g),y=t("51c0"),k=t.n(y),v=(t("52d1"),t("02ac"),t("0f59"),"");m.a.interceptors.request.use((function(e){localStorage.getItem("token");return e}),(function(e){return Promise.reject(e)})),m.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 m.a.post("".concat(v,"/api/account/login"),e)},logout:function(e){return m.a.post("".concat(v,"/api/account/logout"),e)},getAccountInfo:function(e){return m.a.get("".concat(v,"/api/account/info"))},getCode:function(e){return m.a.get("".concat(v,"/api/account/imgcode"))},getUserList:function(e){return m.a.get("".concat(v,"/api/admin/user/list"),{params:e})},getAllSysUserList:function(e){return m.a.get("".concat(v,"/api/admin/user/all"),{params:e})},getUserinfoList:function(e){return m.a.get("".concat(v,"/api/admin/userinfo/list"),{params:e})},getUserJournals:function(){return m.a.get("".concat(v,"/api/admin/user/journals"))},getUserRoles:function(){return m.a.get("".concat(v,"/api/admin/user/roles"))},addUser:function(e){return m.a.post("".concat(v,"/api/admin/user"),e)},editUser:function(e){return m.a.put("".concat(v,"/api/admin/user"),e)},delUser:function(e){return m.a.delete("".concat(v,"/api/admin/user"),{params:e})},getPlayerRecord:function(e){return m.a.get("".concat(v,"/api/admin/player/record/list"),{params:e})},addRecord:function(e){return m.a.post("".concat(v,"/api/admin/player/record"),e)},editRecord:function(e){return m.a.put("".concat(v,"/api/admin/player/record"),e)},getMatchList:function(e){return m.a.get("".concat(v,"/api/admin/match/search"),{params:e})},getPlayerList:function(e){return m.a.get("".concat(v,"/api/admin/player/search"),{params:e})},getGroupList:function(e){return m.a.get("".concat(v,"/api/admin/match/group/search"),{params:e})},getStockList:function(e){return m.a.get("".concat(v,"/api/admin/stock/search"),{params:e})},getAllTemplateList:function(e){return m.a.get("".concat(v,"/api/admin/message/template/all"),{params:e})},addRole:function(e){return m.a.post("".concat(v,"/api/admin/role"),e)},editRole:function(e){return m.a.put("".concat(v,"/api/admin/role"),e)},delRole:function(e){return m.a.delete("".concat(v,"/api/admin/role"),{params:e})},getRoleList:function(e){return m.a.get("".concat(v,"/api/admin/role/list"),{params:e})},getRoleInfo:function(e){return m.a.get("".concat(v,"/api/admin/role"),{params:e})},getPlayers:function(e){return m.a.get("".concat(v,"/api/admin/player/list"),{params:e})},addPlayer:function(e){return m.a.post("".concat(v,"/api/admin/player"),e)},updatePlayer:function(e){return m.a.put("".concat(v,"/api/admin/player"),e)},getUserSearch:function(e){return m.a.get("".concat(v,"/api/admin/user/search"),{params:e})},getMatchs:function(e){return m.a.get("".concat(v,"/api/admin/match/list"),{params:e})},getGroups:function(e){return m.a.get("".concat(v,"/api/admin/match/group/list"),{params:e})},addMatch:function(e){return m.a.post("".concat(v,"/api/admin/match"),e)},updateMatch:function(e){return m.a.put("".concat(v,"/api/admin/match"),e)},addGroup:function(e){return m.a.post("".concat(v,"/api/admin/match/group"),e)},updateGroup:function(e){return m.a.put("".concat(v,"/api/admin/match/group"),e)}},L=t("4d28"),P=t.n(L);t("8d33");a["default"].use(k.a),a["default"].prototype.$echarts=P.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:f,store:b,render:function(e){return e(p)}}).$mount("#app")}});
  2. //# sourceMappingURL=app.70dee820.js.map