\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/dist/cjs.js??ref--12-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../node_modules/cache-loader/dist/cjs.js??ref--12-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/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/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: () =>\r\n import ('./views/Login.vue'),\r\n show: 0,\r\n },\r\n {\r\n path: '/doctor',\r\n name: '医生管理',\r\n icon: 'el-icon-tickets',\r\n component: () =>\r\n import ('./views/Home.vue'),\r\n show: 1,\r\n isLeaf: 0,\r\n children: [\r\n {\r\n path: '/doctor/list',\r\n component: () =>\r\n import ('./views/doctor/Index.vue'),\r\n name: '医生列表'\r\n },\r\n ]\r\n },\r\n {\r\n path: '/patient',\r\n name: '患者管理',\r\n icon: 'el-icon-tickets',\r\n component: () =>\r\n import ('./views/Home.vue'),\r\n show: 1,\r\n isLeaf: 0,\r\n children: [\r\n {\r\n path: '/patient/list',\r\n component: () =>\r\n import ('./views/patient/Index.vue'),\r\n name: '病例列表'\r\n }\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 config => {\r\n const token = localStorage.getItem('token');\r\n // if (config.url.indexOf('downloadzip') >= 0) {\r\n // if (token) { // 判断是否存在token,如果存在的话,则每个http header都加上token \r\n // \tconfig.headers.Authorization = `${token}`; \r\n // } else {\r\n // \t//未登录\r\n // \twindow.location.hash = \"/login\";\r\n // }\r\n // } \r\n return config;\r\n },\r\n err => {\r\n return Promise.reject(err);\r\n });\r\naxios.interceptors.response.use(function (response) {\r\n // IE 8-9 \r\n if (response.data == null && response.config.responseType === 'json' && response.request.responseText != null) {\r\n try {\r\n // eslint-disable-next-line no-param-reassign\r\n response.data = JSON.parse(response.request.responseText);\r\n } catch (e) {\r\n // ignored\r\n }\r\n }\r\n // 对响应数据做点什么\r\n if (response.data.code == 401) {\r\n // window.location.hash = \"/login\";\r\n // window.location.hash = \"/\";\r\n }\r\n if (response.data.code == 305) {\r\n // window.location.hash = \"/\";\r\n }\r\n return response;\r\n}, function (error) {\r\n // 对响应错误做点什么\r\n if (error.request.status == 403) {\r\n // window.location.hash = \"/login\";\r\n window.location.hash = \"/\";\r\n }\r\n return Promise.reject(error);\r\n});\r\nexport default {\r\n //登录\r\n login: params => {\r\n return axios.post(`${baseURL}/api/account/admin/login`, params);\r\n },\r\n //退出登录\r\n logout: params => {\r\n return axios.post(`${baseURL}/api/account/logout`, params);\r\n },\r\n //重置密码\r\n reset: params => {\r\n return axios.put(`${baseURL}/api/account/pwd/reset`, params);\r\n },\r\n // 全局账号信息\r\n getAccountInfo: params => {\r\n return axios.get(`${baseURL}/api/account/admin/info`)\r\n },\r\n // 验证码\r\n getImgCode: params => {\r\n return axios.get(`${baseURL}/api/account/admin/imgcode`)\r\n },\r\n // 医生相关\r\n getDoctorsList: params => {\r\n return axios.get(`${baseURL}/api/admin/doctor/list`, { params: params })\r\n },\r\n getDoctorsSearchList: params => {\r\n return axios.get(`${baseURL}/api/admin/doctor/search/list`, { params: params })\r\n },\r\n getDoctorInfo: params => {\r\n return axios.get(`${baseURL}/api/admin/doctor`, { params: params })\r\n },\r\n addDoctorInfo: params => {\r\n return axios.post(`${baseURL}/api/admin/doctor`, params)\r\n },\r\n editDoctorInfo: params => {\r\n return axios.post(`${baseURL}/api/admin/doctor`, params)\r\n },\r\n delDoctorInfo: params => {\r\n return axios.delete(`${baseURL}/api/admin/doctor`, { params: params })\r\n },\r\n // 病例\r\n getPatientCaseList: params => {\r\n return axios.get(`${baseURL}/api/admin/doctor/patient/case/list`, { params: params })\r\n },\r\n getPatientCaseInfo: params => {\r\n return axios.get(`${baseURL}/api/admin/doctor/patient/case`, { params: params })\r\n },\r\n addPatientCaseInfo: params => {\r\n return axios.post(`${baseURL}/api/admin/doctor/patient/case`, params)\r\n },\r\n editPatientCaseInfo: params => {\r\n return axios.post(`${baseURL}/api/admin/doctor/patient/case`, params)\r\n },\r\n delPatientCaseInfo: params => {\r\n return axios.delete(`${baseURL}/api/admin/doctor/patient/case`, { params: params })\r\n }\r\n}","export default{\r\n doctorRoleList:[\r\n {label:\"大医生\",value:1},\r\n {label:\"中医生\",value:2},\r\n {label:\"小医生\",value:3}\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 constant from './constant'\r\n\r\n// import echarts from 'echarts';\r\n// import 'echarts/theme/dark.js'\r\n// import FullCalendar from 'vue-fullcalendar'\r\n// import BaiduMap from 'vue-baidu-map'\r\n// Vue.use(BaiduMap, {\r\n// ak: '1hqg34NFaCw9jcv0xG82cI7uINFaXGGM'\r\n// })\r\n\r\n// import VueUeditorWrap from 'vue-ueditor-wrap' // ES6 Module\r\n// import '../public/static/UEditor/ueditor.config'\r\n// import '../public/static/UEditor/ueditor.all'\r\n// import '../public/static/UEditor/lang/zh-cn/zh-cn'\r\n// import '../public/static/UEditor/themes/default/css/ueditor.css';\r\n\r\n// Vue.component('vue-ueditor-wrap', VueUeditorWrap)\r\n// Vue.use(FullCalendar)\r\n// Vue.prototype.$echarts = echarts\r\n\r\nVue.use(ElementUI);\r\nVue.prototype.$api = api;\r\nVue.prototype.$const = constant;\r\n\r\nVue.config.productionTip = false\r\nVue.prototype.msgSuccess = function(msg) {\r\n this.$message({ showClose: true, message: msg, type: \"success\" });\r\n}\r\nVue.prototype.msgError = function(msg) {\r\n this.$message({ showClose: true, message: msg, type: \"error\" });\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')"],"sourceRoot":""}