\r\n \r\n \r\n\t\t\t\r\n\t\t\r\n
\r\n\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!../node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!../node_modules/_babel-loader@8.2.2@babel-loader/lib/index.js!../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!../node_modules/_vue-loader@15.9.7@vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!../node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!../node_modules/_babel-loader@8.2.2@babel-loader/lib/index.js!../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!../node_modules/_vue-loader@15.9.7@vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./App.vue?vue&type=template&id=268684aa&\"\nimport script from \"./App.vue?vue&type=script&lang=js&\"\nexport * from \"./App.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../node_modules/_vue-loader@15.9.7@vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import Vue from 'vue'\r\nimport Router from 'vue-router'\r\n\r\nVue.use(Router)\r\nexport default new Router({\r\n routes: [{\r\n path: '/',\r\n name: 'login',\r\n component: () => import('./views/Login.vue'),\r\n show: 0,\r\n },\r\n {\r\n path: '/data',\r\n name: '参赛数据',\r\n icon: 'el-icon-pie-chart',\r\n component: () => import('./views/Home.vue'),\r\n show: 1,\r\n isLeaf: 0,\r\n children: [{\r\n path: '/data',\r\n component: () => import('./views/data/index.vue'),\r\n name: '数据统计'\r\n }, ]\r\n },\r\n {\r\n path: '/match',\r\n name: '赛事管理',\r\n icon: 'el-icon-trophy-1',\r\n component: () => import('./views/Home.vue'),\r\n show: 1,\r\n isLeaf: 0,\r\n children: [{\r\n path: '/match',\r\n component: () => import('./views/match/index.vue'),\r\n name: '赛事管理'\r\n },{\r\n path: '/group',\r\n component: () => import('./views/match/group.vue'),\r\n name: '赛事分组'\r\n }, ]\r\n },\r\n {\r\n path: '/player',\r\n name: '选手管理',\r\n icon: 'el-icon-trophy-1',\r\n component: () => import('./views/Home.vue'),\r\n show: 1,\r\n isLeaf: 0,\r\n children: [{\r\n path: '/player',\r\n component: () => import('./views/player/index.vue'),\r\n name: '参赛选手'\r\n } ]\r\n },\r\n {\r\n path: '/user',\r\n name: '用户管理',\r\n icon: 'el-icon-s-tools',\r\n component: () => import('./views/Home.vue'),\r\n show: 1,\r\n isLeaf: 1,\r\n children: [{\r\n path: '/user',\r\n component: () => import('./views/user/index.vue'),\r\n name: '用户管理'\r\n }, ]\r\n },\r\n ]\r\n})","import Vue from 'vue'\r\nimport Vuex from \"vuex\"\r\nvar baseURL = '';\r\nimport axios from 'axios';\r\nVue.use(Vuex)\r\n// let store = {\r\n// area:[],\r\n// categorys:[],\r\n// enterprise_id:'',\r\n// getDefault:function(){\r\n// axios.get(`${baseURL}/api/admin/getdefault`).then(res=>{\r\n// this.area=res.data.data.areas;\r\n// this.categorys=res.data.data.categorys;\r\n// })\r\n// },\r\n// mutations:{\r\n// setId(state,id){\r\n// state.enterprise_id = id;\r\n// }\r\n// },\r\n// getters:{\r\n// getId(state){\r\n// return state.enterprise_id\r\n// }\r\n// }\r\n// }\r\n// store.getDefault();\r\nconst store = {\r\n state: {\r\n inDate: ''\r\n },\r\n mutations:{\r\n setInDate(state,inDate){\r\n state.inDate = inDate;\r\n }\r\n },\r\n getters:{\r\n\r\n }\r\n}\r\nexport default new Vuex.Store(store); \r\n","import axios from 'axios';\r\n// var baseURL='https://www.scxjc.club'\r\nvar baseURL = ''\r\naxios.interceptors.request.use(\r\n\tconfig => {\r\n\t\tconst token = localStorage.getItem('token');\r\n\t\t// if (config.url.indexOf('downloadzip') >= 0) {\r\n\t\t// if (token) { // 判断是否存在token,如果存在的话,则每个http header都加上token \r\n\t\t// \tconfig.headers.Authorization = `${token}`; \r\n\t\t// } else {\r\n\t\t// \t//未登录\r\n\t\t// \twindow.location.hash = \"/login\";\r\n\t\t// }\r\n\t\t// } \r\n\t\treturn config;\r\n\t},\r\n\terr => {\r\n\t\treturn Promise.reject(err);\r\n\t});\r\naxios.interceptors.response.use(function (response) {\r\n\t// console.log(response.headers)\r\n\t// IE 8-9 \r\n\tif (response.data == null && response.config.responseType === 'json' && response.request.responseText != null) {\r\n\t\ttry {\r\n\t\t\t// eslint-disable-next-line no-param-reassign\r\n\t\t\tresponse.data = JSON.parse(response.request.responseText);\r\n\t\t} catch (e) {\r\n\t\t\t// ignored\r\n\t\t}\r\n\t}\r\n\t// 对响应数据做点什么\r\n\tif (response.data.code == 401) {\r\n\t\t// window.location.hash = \"/login\";\r\n\t\t// window.location.hash = \"/\";\r\n\t}\r\n\tif (response.data.code == 305) {\r\n\t\t// window.location.hash = \"/\";\r\n\t}\r\n\treturn response;\r\n}, function (error) {\r\n\t// 对响应错误做点什么\r\n\tif (error.request.status == 403) {\r\n\t\t// window.location.hash = \"/login\";\r\n\t\twindow.location.hash = \"/\";\r\n\t}\r\n\t// console.log(Object.getOwnPropertyNames(error))\r\n\t// console.log(error.request,error.message)\r\n\treturn Promise.reject(error);\r\n});\r\nexport default {\r\n\t//登录\r\n\tlogin: params => {\r\n\t\treturn axios.post(`${baseURL}/api/account/login`, params);\r\n\t},\r\n\tlogout: params => {\r\n\t\treturn axios.post(`${baseURL}/api/account/logout`, params);\r\n\t},\r\n\treset: params => {\r\n\t\treturn axios.put(`${baseURL}/api/account/pwd/reset`, params);\r\n\t},\r\n\t// 全局账号信息\r\n\tgetAccountInfo: params => {\r\n\t\treturn axios.get(`${baseURL}/api/account/info`)\r\n\t},\r\n\t// 验证码\r\n\tgetCode: params => {\r\n\t\treturn axios.get(`${baseURL}/api/account/imgcode`)\r\n\t},\r\n\t// 账号\r\n\tgetUserList: params => {\r\n\t\treturn axios.get(`${baseURL}/api/admin/user/list`, { params: params })\r\n\t},\r\n\tgetAllSysUserList: params => {\r\n\t\treturn axios.get(`${baseURL}/api/admin/user/all`, { params: params })\r\n\t},\r\n\tgetUserinfoList: params => {\r\n\t\treturn axios.get(`${baseURL}/api/admin/userinfo/list`, { params: params })\r\n\t},\r\n\t// 获取用户待选期刊列表\r\n\tgetUserJournals: () => {\r\n\t\treturn axios.get(`${baseURL}/api/admin/user/journals`)\r\n\t},\r\n\t// 获取用户待选角色列表\r\n\tgetUserRoles: () => {\r\n\t\treturn axios.get(`${baseURL}/api/admin/user/roles`)\r\n\t},\r\n\r\n\t//新增管理员\r\n\taddUser: params => {\r\n\t\treturn axios.post(`${baseURL}/api/admin/user`, params);\r\n\t},\r\n\t// 修改管理员\r\n\teditUser: params => {\r\n\t\treturn axios.put(`${baseURL}/api/admin/user`, params);\r\n\t},\r\n\t// 删除管理员\r\n\tdelUser: params => {\r\n\t\treturn axios.delete(`${baseURL}/api/admin/user`, { params: params });\r\n\t},\r\n\t// 删除管理员\r\n\tgetUserInfo: params => {\r\n\t\treturn axios.get(`${baseURL}/api/admin/user`, { params: params });\r\n\t},\r\n\t// 获取数据\r\n\tgetPlayerRecord: params => {\r\n\t\treturn axios.get(`${baseURL}/api/admin/player/record/list`, { params: params });\r\n\t},\r\n\taddRecord: params => {\r\n\t\treturn axios.post(`${baseURL}/api/admin/player/record`, params);\r\n\t},\r\n\tgetRecordInfo: params => {\r\n\t\treturn axios.get(`${baseURL}/api/admin/player/record`, { params: params });\r\n\t},\r\n\teditRecord: params => {\r\n\t\treturn axios.put(`${baseURL}/api/admin/player/record`, params);\r\n\t},\r\n\tdelRecord: params => {\r\n\t\treturn axios.delete(`${baseURL}/api/admin/player/record`, { params: params });\r\n\t},\r\n\tdownloadRecords: params => {\r\n\t\treturn axios.get(`${baseURL}/api/admin/player/record/download`, {params: params, responseType: \"blob\"})\r\n\t},\r\n\t// 比赛搜索列表\r\n\tgetMatchList: params => {\r\n\t\treturn axios.get(`${baseURL}/api/admin/match/search`, { params: params })\r\n\t},\r\n\t// 选手列表\r\n\tgetPlayerList: params => {\r\n\t\treturn axios.get(`${baseURL}/api/admin/player/search`, { params: params })\r\n\t},\r\n\t// 分组列表\r\n\tgetGroupList: params => {\r\n\t\treturn axios.get(`${baseURL}/api/admin/match/group/search`, { params: params })\r\n\t},\r\n\t// 股票列表\r\n\tgetStockList: params => {\r\n\t\treturn axios.get(`${baseURL}/api/admin/stock/search`, { params: params })\r\n\t},\r\n\t//获取所有模板列表\r\n\tgetAllTemplateList: params => {\r\n\t\treturn axios.get(`${baseURL}/api/admin/message/template/all`, { params: params })\r\n\t},\r\n\t// 新增角色\r\n\taddRole: params => {\r\n\t\treturn axios.post(`${baseURL}/api/admin/role`, params);\r\n\t},\r\n\t// 修改角色\r\n\teditRole: params => {\r\n\t\treturn axios.put(`${baseURL}/api/admin/role`, params);\r\n\t},\r\n\tdelRole: params => {\r\n\t\treturn axios.delete(`${baseURL}/api/admin/role`, { params: params });\r\n\t},\r\n\t// 获取角色列表\r\n\tgetRoleList: params => {\r\n\t\treturn axios.get(`${baseURL}/api/admin/role/list`, { params: params });\r\n\t},\r\n\t// 获取角色详情\r\n\tgetRoleInfo: params => {\r\n\t\treturn axios.get(`${baseURL}/api/admin/role`, { params: params });\r\n\t},\r\n\t// 选手列表\r\n\tgetPlayers: params => {\r\n\t\treturn axios.get(`${baseURL}/api/admin/player/list`, { params: params })\r\n\t},\r\n\t// 新增选手\r\n\taddPlayer: params => {\r\n\t\treturn axios.post(`${baseURL}/api/admin/player`, params)\r\n\t},\r\n\t// 编辑选手\r\n\tupdatePlayer: params => {\r\n\t\treturn axios.put(`${baseURL}/api/admin/player`, params)\r\n\t},\r\n\t// 删除选手\r\n\tdelPlayer: params => {\r\n\t\treturn axios.delete(`${baseURL}/api/admin/player`, { params: params })\r\n\t},\r\n\t// 选手详情\r\n\tgetPlayerInfo: params => {\r\n\t\treturn axios.get(`${baseURL}/api/admin/player`, { params: params })\r\n\t},\r\n\t// 用户搜索\r\n\tgetUserSearch: params => {\r\n\t\treturn axios.get(`${baseURL}/api/admin/user/search`, { params: params })\r\n\t},\r\n\t// 赛事列表\r\n\tgetMatchs: params => {\r\n\t\treturn axios.get(`${baseURL}/api/admin/match/list`, { params: params })\r\n\t},\r\n\t// 分组管理\r\n\tgetGroups: params => {\r\n\t\treturn axios.get(`${baseURL}/api/admin/match/group/list`, { params: params })\r\n\t},\r\n\t// 新增赛事\r\n\taddMatch: params => {\r\n\t\treturn axios.post(`${baseURL}/api/admin/match`, params);\r\n\t},\r\n\t// 修改赛事\r\n\tupdateMatch: params => {\r\n\t\treturn axios.put(`${baseURL}/api/admin/match`, params);\r\n\t},\r\n\tdelMatch: params => {\r\n\t\treturn axios.delete(`${baseURL}/api/admin/match`, { params: params })\r\n\t},\r\n\t// 新增分组\r\n\taddGroup: params => {\r\n\t\treturn axios.post(`${baseURL}/api/admin/match/group`, params);\r\n\t},\r\n\t// 修改分组\r\n\tupdateGroup: params => {\r\n\t\treturn axios.put(`${baseURL}/api/admin/match/group`, params);\r\n\t},\r\n\tdelGroup: params => {\r\n\t\treturn axios.delete(`${baseURL}/api/admin/match/group`, { params: params });\r\n\t},\r\n\t// 快速新增选手\r\n\tfastSavePlayer: params => {\r\n\t\treturn axios.post(`${baseURL}/api/admin/player/fast`, params);\r\n\t},\r\n\r\n\r\n}","import Vue from 'vue'\r\nimport App from './App.vue'\r\nimport router from './router'\r\nimport store from './store'\r\nimport ElementUI from 'element-ui';\r\nimport 'element-ui/lib/theme-chalk/index.css';\r\nimport 'font-awesome/css/font-awesome.css'\r\nimport './iconfont/iconfont.css';\r\nimport api from './api';\r\nimport echarts from 'echarts';\r\nimport 'echarts/theme/dark.js'\r\n// import BaiduMap from 'vue-baidu-map'\r\n// Vue.use(BaiduMap, {\r\n// ak: '1hqg34NFaCw9jcv0xG82cI7uINFaXGGM'\r\n// })\r\n\r\nVue.use(ElementUI);\r\nVue.prototype.$echarts = echarts\r\nVue.prototype.$api = api;\r\nVue.config.productionTip = false\r\nVue.prototype.msgSuccess = function (msg) {\r\n this.$message({ showClose: true, message: msg, type: \"success\" });\r\n}\r\n\r\nVue.prototype.msgError = function (msg) {\r\n this.$message({ showClose: true, message: msg, type: \"error\" });\r\n}\r\n\r\nVue.prototype.msgInfo = function (msg) {\r\n this.$message.info(msg);\r\n}\r\nnew Vue({\r\n router,\r\n store,\r\n render: h => h(App)\r\n}).$mount('#app')\r\n\r\n\r\n"],"sourceRoot":""}