12 |
- (function(e){function t(t){for(var o,r,u=t[0],i=t[1],s=t[2],f=0,l=[];f<u.length;f++)r=u[f],Object.prototype.hasOwnProperty.call(a,r)&&a[r]&&l.push(a[r][0]),a[r]=0;for(o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o]);p&&p(t);while(l.length)l.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-078060b5":"8c5b2e96","chunk-0829ef99":"75d5c7d9","chunk-0d7378e3":"ccfdf316","chunk-a655242e":"37662a13"}[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-078060b5":1,"chunk-0829ef99":1,"chunk-0d7378e3":1,"chunk-a655242e":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-078060b5":"f882a544","chunk-0829ef99":"8e8cc296","chunk-0d7378e3":"e8e69354","chunk-a655242e":"e8e69354"}[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 l=document.getElementsByTagName("style");for(u=0;u<l.length;u++){s=l[u],f=s.getAttribute("data-href");if(f===o||f===a)return t()}var p=document.createElement("link");p.rel="stylesheet",p.type="text/css",p.onload=t,p.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],p.parentNode.removeChild(p),n(c)},p.href=a;var d=document.getElementsByTagName("head")[0];d.appendChild(p)})).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 l=new Error;s=function(t){f.onerror=f.onload=null,clearTimeout(p);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;l.message="Loading chunk "+e+" failed.\n("+o+": "+r+")",l.name="ChunkLoadError",l.type=o,l.request=r,n[1](l)}a[e]=void 0}};var p=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 l=0;l<s.length;l++)t(s[l]);var p=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("25ba"),n("5f1c"),n("6ba0"),n("b47f");var o=n("1f37"),r=function(){var e=this,t=e._self._c;return t("div",{attrs:{id:"app"}},[t("transition",{attrs:{name:"fade",mode:"out-in"}},[t("router-view")],1)],1)},a=[],c={},u=c,i=n("e607"),s=Object(i["a"])(u,r,a,!1,null,null,null),f=s.exports,l=n("f038");o["default"].use(l["a"]);var p=new l["a"]({routes:[{path:"/",name:"login",component:function(){return n.e("chunk-0829ef99").then(n.bind(null,"a55b"))},show:0},{path:"/doctor",name:"医生管理",icon:"el-icon-tickets",component:function(){return n.e("chunk-078060b5").then(n.bind(null,"bb51"))},show:1,isLeaf:0,children:[{path:"/doctor/list",component:function(){return n.e("chunk-a655242e").then(n.bind(null,"c8af"))},name:"医生列表"}]},{path:"/patient",name:"患者管理",icon:"el-icon-tickets",component:function(){return n.e("chunk-078060b5").then(n.bind(null,"bb51"))},show:1,isLeaf:0,children:[{path:"/patient/list",component:function(){return n.e("chunk-0d7378e3").then(n.bind(null,"bac7"))},name:"病例列表"}]}]}),d=n("7736"),h=n("f753"),m=n.n(h);o["default"].use(d["a"]);var g={state:{inDate:""},mutations:{setInDate:function(e,t){e.inDate=t}},getters:{}},b=new d["a"].Store(g),v=n("47df"),y=n.n(v),k=(n("55ee"),n("02ac"),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.put("".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.put("".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:p,store:b,render:function(e){return e(f)}}).$mount("#app")}});
- //# sourceMappingURL=app.f83dfa41.js.map
|