app.e509215a.js 7.2 KB

12
  1. (function(e){function t(t){for(var o,r,u=t[0],i=t[1],s=t[2],f=0,d=[];f<u.length;f++)r=u[f],Object.prototype.hasOwnProperty.call(a,r)&&a[r]&&d.push(a[r][0]),a[r]=0;for(o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o]);l&&l(t);while(d.length)d.shift()();return c.push.apply(c,s||[]),n()}function n(){for(var e,t=0;t<c.length;t++){for(var n=c[t],o=!0,r=1;r<n.length;r++){var u=n[r];0!==a[u]&&(o=!1)}o&&(c.splice(t--,1),e=i(i.s=n[0]))}return e}var o={},r={app:0},a={app:0},c=[];function u(e){return i.p+"js/"+({}[e]||e)+"."+{"chunk-0ee9d540":"898e44fa","chunk-2d7011f0":"a46c8ec2","chunk-71c401c6":"8e612e4a","chunk-9966f012":"da24fdca"}[e]+".js"}function i(t){if(o[t])return o[t].exports;var n=o[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.e=function(e){var t=[],n={"chunk-0ee9d540":1,"chunk-2d7011f0":1,"chunk-71c401c6":1,"chunk-9966f012":1};r[e]?t.push(r[e]):0!==r[e]&&n[e]&&t.push(r[e]=new Promise((function(t,n){for(var o="css/"+({}[e]||e)+"."+{"chunk-0ee9d540":"8e8cc296","chunk-2d7011f0":"e8e69354","chunk-71c401c6":"e8e69354","chunk-9966f012":"f882a544"}[e]+".css",a=i.p+o,c=document.getElementsByTagName("link"),u=0;u<c.length;u++){var s=c[u],f=s.getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(f===o||f===a))return t()}var d=document.getElementsByTagName("style");for(u=0;u<d.length;u++){s=d[u],f=s.getAttribute("data-href");if(f===o||f===a)return t()}var l=document.createElement("link");l.rel="stylesheet",l.type="text/css",l.onload=t,l.onerror=function(t){var o=t&&t.target&&t.target.src||a,c=new Error("Loading CSS chunk "+e+" failed.\n("+o+")");c.code="CSS_CHUNK_LOAD_FAILED",c.request=o,delete r[e],l.parentNode.removeChild(l),n(c)},l.href=a;var p=document.getElementsByTagName("head")[0];p.appendChild(l)})).then((function(){r[e]=0})));var o=a[e];if(0!==o)if(o)t.push(o[2]);else{var c=new Promise((function(t,n){o=a[e]=[t,n]}));t.push(o[2]=c);var s,f=document.createElement("script");f.charset="utf-8",f.timeout=120,i.nc&&f.setAttribute("nonce",i.nc),f.src=u(e);var d=new Error;s=function(t){f.onerror=f.onload=null,clearTimeout(l);var n=a[e];if(0!==n){if(n){var o=t&&("load"===t.type?"missing":t.type),r=t&&t.target&&t.target.src;d.message="Loading chunk "+e+" failed.\n("+o+": "+r+")",d.name="ChunkLoadError",d.type=o,d.request=r,n[1](d)}a[e]=void 0}};var l=setTimeout((function(){s({type:"timeout",target:f})}),12e4);f.onerror=f.onload=s,document.head.appendChild(f)}return Promise.all(t)},i.m=e,i.c=o,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},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,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)i.d(n,o,function(t){return e[t]}.bind(null,o));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/admin/",i.oe=function(e){throw console.error(e),e};var s=window["webpackJsonp"]=window["webpackJsonp"]||[],f=s.push.bind(s);s.push=t,s=s.slice();for(var d=0;d<s.length;d++)t(s[d]);var l=f;c.push([0,"chunk-vendors"]),n()})({0:function(e,t,n){e.exports=n("56d7")},"0f59":function(e,t,n){},"56d7":function(e,t,n){"use strict";n.r(t);n("cadf"),n("551c"),n("f751"),n("097d");var o=n("2b0e"),r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app"}},[n("transition",{attrs:{name:"fade",mode:"out-in"}},[n("router-view")],1)],1)},a=[],c={},u=c,i=n("2877"),s=Object(i["a"])(u,r,a,!1,null,null,null),f=s.exports,d=n("8c4f");o["default"].use(d["a"]);var l=new d["a"]({routes:[{path:"/",name:"login",component:function(){return n.e("chunk-0ee9d540").then(n.bind(null,"a55b"))},show:0},{path:"/doctor",name:"医生管理",icon:"el-icon-tickets",component:function(){return n.e("chunk-9966f012").then(n.bind(null,"bb51"))},show:1,isLeaf:0,children:[{path:"/doctor/list",component:function(){return n.e("chunk-71c401c6").then(n.bind(null,"c8af4"))},name:"医生列表"}]},{path:"/patient",name:"患者管理",icon:"el-icon-tickets",component:function(){return n.e("chunk-9966f012").then(n.bind(null,"bb51"))},show:1,isLeaf:0,children:[{path:"/patient/list",component:function(){return n.e("chunk-2d7011f0").then(n.bind(null,"bac7"))},name:"病例列表"}]}]}),p=n("2f62"),h=n("bc3a"),m=n.n(h);o["default"].use(p["a"]);var g={state:{inDate:""},mutations:{setInDate:function(e,t){e.inDate=t}},getters:{}},v=new p["a"].Store(g),b=n("5c96"),y=n.n(b),k=(n("0fae"),n("7f10"),n("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(t){}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(k,"/api/account/admin/login"),e)},logout:function(e){return m.a.post("".concat(k,"/api/account/logout"),e)},reset:function(e){return m.a.put("".concat(k,"/api/account/pwd/reset"),e)},getAccountInfo:function(e){return m.a.get("".concat(k,"/api/account/admin/info"))},getImgCode:function(e){return m.a.get("".concat(k,"/api/account/admin/imgcode"))},getDoctorsList:function(e){return m.a.get("".concat(k,"/api/admin/doctor/list"),{params:e})},getDoctorsSearchList:function(e){return m.a.get("".concat(k,"/api/admin/doctor/search/list"),{params:e})},getDoctorInfo:function(e){return m.a.get("".concat(k,"/api/admin/doctor"),{params:e})},addDoctorInfo:function(e){return m.a.post("".concat(k,"/api/admin/doctor"),e)},editDoctorInfo:function(e){return m.a.post("".concat(k,"/api/admin/doctor"),e)},delDoctorInfo:function(e){return m.a.delete("".concat(k,"/api/admin/doctor"),{params:e})},getPatientCaseList:function(e){return m.a.get("".concat(k,"/api/admin/doctor/patient/case/list"),{params:e})},getPatientCaseInfo:function(e){return m.a.get("".concat(k,"/api/admin/doctor/patient/case"),{params:e})},addPatientCaseInfo:function(e){return m.a.post("".concat(k,"/api/admin/doctor/patient/case"),e)},editPatientCaseInfo:function(e){return m.a.post("".concat(k,"/api/admin/doctor/patient/case"),e)},delPatientCaseInfo:function(e){return m.a.delete("".concat(k,"/api/admin/doctor/patient/case"),{params:e})}},P={doctorRoleList:[{label:"大医生",value:1},{label:"中医生",value:2},{label:"小医生",value:3}]};o["default"].use(y.a),o["default"].prototype.$api=w,o["default"].prototype.$const=P,o["default"].config.productionTip=!1,o["default"].prototype.msgSuccess=function(e){this.$message({showClose:!0,message:e,type:"success"})},o["default"].prototype.msgError=function(e){this.$message({showClose:!0,message:e,type:"error"})},o["default"].prototype.msgInfo=function(e){this.$message.info(e)},new o["default"]({router:l,store:v,render:function(e){return e(f)}}).$mount("#app")}});
  2. //# sourceMappingURL=app.e509215a.js.map