app.fdd28037.js 15 KB

1
  1. (function(e){function t(t){for(var r,o,p=t[0],i=t[1],s=t[2],d=0,c=[];d<p.length;d++)o=p[d],Object.prototype.hasOwnProperty.call(a,o)&&a[o]&&c.push(a[o][0]),a[o]=0;for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r]);l&&l(t);while(c.length)c.shift()();return u.push.apply(u,s||[]),n()}function n(){for(var e,t=0;t<u.length;t++){for(var n=u[t],r=!0,o=1;o<n.length;o++){var p=n[o];0!==a[p]&&(r=!1)}r&&(u.splice(t--,1),e=i(i.s=n[0]))}return e}var r={},o={app:0},a={app:0},u=[];function p(e){return i.p+"js/"+({"group-app":"group-app","group-controlApp~group-doTest":"group-controlApp~group-doTest","group-controlApp":"group-controlApp","group-doTest":"group-doTest","group-mainPage":"group-mainPage"}[e]||e)+"."+{"group-app":"5e7f8c6c","group-controlApp~group-doTest":"f4f6c1e6","group-controlApp":"85e4b33d","group-doTest":"7966765b","group-mainPage":"0c0574a3"}[e]+".js"}function i(t){if(r[t])return r[t].exports;var n=r[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={"group-app":1,"group-controlApp~group-doTest":1,"group-controlApp":1,"group-doTest":1,"group-mainPage":1};o[e]?t.push(o[e]):0!==o[e]&&n[e]&&t.push(o[e]=new Promise((function(t,n){for(var r="css/"+({"group-app":"group-app","group-controlApp~group-doTest":"group-controlApp~group-doTest","group-controlApp":"group-controlApp","group-doTest":"group-doTest","group-mainPage":"group-mainPage"}[e]||e)+"."+{"group-app":"b23098f2","group-controlApp~group-doTest":"40e89122","group-controlApp":"761497ef","group-doTest":"cc07b5d8","group-mainPage":"257b0794"}[e]+".css",a=i.p+r,u=document.getElementsByTagName("link"),p=0;p<u.length;p++){var s=u[p],d=s.getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(d===r||d===a))return t()}var c=document.getElementsByTagName("style");for(p=0;p<c.length;p++){s=c[p],d=s.getAttribute("data-href");if(d===r||d===a)return t()}var l=document.createElement("link");l.rel="stylesheet",l.type="text/css",l.onload=t,l.onerror=function(t){var r=t&&t.target&&t.target.src||a,u=new Error("Loading CSS chunk "+e+" failed.\n("+r+")");u.code="CSS_CHUNK_LOAD_FAILED",u.request=r,delete o[e],l.parentNode.removeChild(l),n(u)},l.href=a;var f=document.getElementsByTagName("head")[0];f.appendChild(l)})).then((function(){o[e]=0})));var r=a[e];if(0!==r)if(r)t.push(r[2]);else{var u=new Promise((function(t,n){r=a[e]=[t,n]}));t.push(r[2]=u);var s,d=document.createElement("script");d.charset="utf-8",d.timeout=120,i.nc&&d.setAttribute("nonce",i.nc),d.src=p(e);var c=new Error;s=function(t){d.onerror=d.onload=null,clearTimeout(l);var n=a[e];if(0!==n){if(n){var r=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;c.message="Loading chunk "+e+" failed.\n("+r+": "+o+")",c.name="ChunkLoadError",c.type=r,c.request=o,n[1](c)}a[e]=void 0}};var l=setTimeout((function(){s({type:"timeout",target:d})}),12e4);d.onerror=d.onload=s,document.head.appendChild(d)}return Promise.all(t)},i.m=e,i.c=r,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 r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));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="/",i.oe=function(e){throw console.error(e),e};var s=window["webpackJsonp"]=window["webpackJsonp"]||[],d=s.push.bind(s);s.push=t,s=s.slice();for(var c=0;c<s.length;c++)t(s[c]);var l=d;u.push([0,"chunk-vendors"]),n()})({0:function(e,t,n){e.exports=n("56d7")},"0ebc":function(e,t,n){"use strict";var r=n("9d90"),o=n.n(r);o.a},"1aa9":function(e,t,n){"use strict";n.d(t,"e",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return p}));var r=!1,o=[{value:"6X",label:"六年级上"},{value:"6Y",label:"六年级下"},{value:"7X",label:"初一上"},{value:"7Y",label:"初一下"},{value:"8X",label:"初二上"},{value:"8Y",label:"初二下"},{value:"9X",label:"初三上"},{value:"9Y",label:"初三下"}],a={"6X":"六年级上","6Y":"六年级下","7X":"初一上","7Y":"初一下","8X":"初二上","8Y":"初二下","9X":"初三上","9Y":"初三下"},u=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],p={"6X2":[{start:0,end:9},{start:10,end:18},{start:19,end:-1}],"6Y2":[{start:0,end:9},{start:10,end:18},{start:19,end:-1}],"6X3":[{start:0,end:9},{start:10,end:18},{start:19,end:-1}],"6Y3":[{start:0,end:9},{start:10,end:18},{start:19,end:-1}],"6X4":[{start:0,end:9},{start:10,end:18},{start:19,end:-1}],"6Y4":[{start:0,end:9},{start:10,end:18},{start:19,end:-1}],"7X2":[{start:0,end:9},{start:10,end:18},{start:19,end:-1}],"7Y2":[{start:0,end:9},{start:10,end:18},{start:19,end:-1}],"7X3":[{start:0,end:9},{start:10,end:18},{start:19,end:-1}],"7Y3":[{start:0,end:9},{start:10,end:18},{start:19,end:-1}],"7X4":[{start:0,end:9},{start:10,end:18},{start:19,end:-1}],"7Y4":[{start:0,end:9},{start:10,end:18},{start:19,end:-1}],"8X2":[{start:0,end:9},{start:10,end:18},{start:19,end:-1}],"8Y2":[{start:0,end:9},{start:10,end:18},{start:19,end:-1}],"8X3":[{start:0,end:9},{start:10,end:18},{start:19,end:-1}],"8Y3":[{start:0,end:9},{start:10,end:18},{start:19,end:-1}],"8X4":[{start:0,end:9},{start:10,end:18},{start:19,end:-1}],"8Y4":[{start:0,end:9},{start:10,end:18},{start:19,end:-1}],"9X2":[{start:0,end:8},{start:9,end:17},{start:18,end:-1}],"9Y2":[{start:0,end:8},{start:9,end:17},{start:18,end:-1}],"9X3":[{start:0,end:12},{start:13,end:25},{start:26,end:-1}],"9Y3":[{start:0,end:12},{start:13,end:25},{start:26,end:-1}],"9X4":[{start:0,end:5},{start:6,end:13},{start:14,end:-1}],"9Y4":[{start:0,end:5},{start:6,end:13},{start:14,end:-1}]}},"3dfd":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app"}},[n("router-view")],1)},o=[],a={name:"App",components:{}},u=a,p=(n("e810"),n("0ebc"),n("2877")),i=Object(p["a"])(u,r,o,!1,null,"729da647",null);t["default"]=i.exports},"478b":function(e,t,n){},"56d7":function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"setLoginUser",(function(){return d}));n("04ff"),n("c5f6"),n("ee1d"),n("a481"),n("cadf"),n("551c"),n("f751"),n("097d");var o=n("a026"),a=n("3dfd"),u=n("bc3a"),p=n.n(u),i=n("2f62"),s=n("94d5"),d=function(e,t){var n=e.commit;n("setLoginUser",t)},c={setLoginUser:function(e,t){e.loginUser=t}};o["default"].use(i["a"]);var l={loginUser:{}},f=new i["a"].Store({modules:{},state:l,getters:s,actions:r,mutations:c}),g=n("8c4f"),m=n("7ded"),h=function(){return n.e("group-app").then(n.bind(null,"3dfd"))},b=function(){return n.e("group-app").then(n.bind(null,"6c08"))},v=function(){return n.e("group-app").then(n.bind(null,"fb03"))},P=function(){return n.e("group-mainPage").then(n.bind(null,"67f4"))},A=function(){return n.e("group-mainPage").then(n.bind(null,"d824"))},y=function(){return n.e("group-mainPage").then(n.bind(null,"9b10"))},T=function(){return n.e("group-mainPage").then(n.bind(null,"c291"))},w=function(){return n.e("group-mainPage").then(n.bind(null,"737e"))},O=function(){return n.e("group-mainPage").then(n.bind(null,"a182"))},L=function(){return n.e("group-mainPage").then(n.bind(null,"ece1"))},j=function(){return n.e("group-mainPage").then(n.bind(null,"2d53"))},E=function(){return Promise.all([n.e("group-controlApp~group-doTest"),n.e("group-doTest")]).then(n.bind(null,"fd8a"))},S=function(){return Promise.all([n.e("group-controlApp~group-doTest"),n.e("group-doTest")]).then(n.bind(null,"7201"))},X=function(){return Promise.all([n.e("group-controlApp~group-doTest"),n.e("group-doTest")]).then(n.bind(null,"dd6a"))},Y=function(){return Promise.all([n.e("group-controlApp~group-doTest"),n.e("group-doTest")]).then(n.bind(null,"93c0"))},N=function(){return Promise.all([n.e("group-controlApp~group-doTest"),n.e("group-controlApp")]).then(n.bind(null,"e4ec"))},U=function(){return Promise.all([n.e("group-controlApp~group-doTest"),n.e("group-controlApp")]).then(n.bind(null,"7ad4"))},x=function(){return Promise.all([n.e("group-controlApp~group-doTest"),n.e("group-controlApp")]).then(n.bind(null,"a8e7"))},C=function(){return Promise.all([n.e("group-controlApp~group-doTest"),n.e("group-controlApp")]).then(n.bind(null,"a0e1"))},I=function(){return Promise.all([n.e("group-controlApp~group-doTest"),n.e("group-controlApp")]).then(n.bind(null,"cc13"))},D=function(){return Promise.all([n.e("group-controlApp~group-doTest"),n.e("group-controlApp")]).then(n.bind(null,"4d3b"))},R=function(){return Promise.all([n.e("group-controlApp~group-doTest"),n.e("group-controlApp")]).then(n.bind(null,"d408"))},_=function(){return Promise.all([n.e("group-controlApp~group-doTest"),n.e("group-controlApp")]).then(n.bind(null,"634a"))},k=function(){return Promise.all([n.e("group-controlApp~group-doTest"),n.e("group-controlApp")]).then(n.bind(null,"9943"))},M=function(){return Promise.all([n.e("group-controlApp~group-doTest"),n.e("group-controlApp")]).then(n.bind(null,"94d3d"))},z=function(){return Promise.all([n.e("group-controlApp~group-doTest"),n.e("group-controlApp")]).then(n.bind(null,"7d36"))};o["default"].use(g["a"]);var J=new g["a"]({routes:[{path:"/",redirect:{name:"App"}},{path:"/app",name:"App",component:h,beforeEnter:function(e,t,n){Object(m["b"])().then((function(e){f.dispatch("setLoginUser",e),n()})).catch((function(){n({name:"Index"})}))},redirect:{name:"MainPage"},children:[{path:"mainPage",name:"MainPage",component:P,redirect:{name:"AbilityTest"},children:[{path:"home",name:"Home",component:A},{path:"abilityTest",name:"AbilityTest",component:y},{path:"news",name:"News",component:T},{path:"aboutUs",name:"AboutUs",component:w},{path:"contactUs",name:"ContactUs",component:O},{path:"examTable",name:"ExamTable",component:L},{path:"userPage",name:"UserPage",component:j}]},{path:"guidePage/:examId",name:"GuidePage",component:Y},{path:"doTest/:examId",name:"DoTest",component:E},{path:"restPage/:examId",name:"RestPage",component:S},{path:"testResult/:pid/:uid",name:"TestResult",component:X}]},{path:"/index",name:"Index",component:b},{path:"*",name:"NotFound",component:v},{path:"/ctrlApp",name:"ControlApp",component:N,beforeEnter:function(e,t,n){Object(m["b"])().then((function(e){f.dispatch("setLoginUser",e),n()})).catch((function(){n({name:"ControlLogin"})}))},redirect:{name:"ControlMainPage"},children:[{path:"ctrlMainPage",name:"ControlMainPage",component:U,redirect:{name:"PaperListSimple"},children:[{path:"paperList",name:"PaperList",component:x},{path:"paperListSimple",name:"PaperListSimple",component:C},{path:"userList",name:"UserList",component:R},{path:"docList",name:"DocList",component:I},{path:"questionList/:pid",name:"QuestionList",component:D}]},{path:"firstEdition/:pid/:uid",name:"FirstEdition",component:_},{path:"pdfTest",name:"PDFTest",component:k},{path:"simpleReport/:pid/:uid",name:"SimpleReport",component:M}]},{path:"/ctrlLogin",name:"ControlLogin",component:z}]}),F=n("5c96"),q=n.n(F),B=(n("0fae"),n("8e6e"),n("ac6a"),n("456d"),n("bd86")),G=n("1fba"),H=n("313e"),K=n.n(H);function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function W(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(n),!0).forEach((function(t){Object(B["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}o["default"].directive("echartsRender",{inserted:function(e,t){var n=K.a.init(e);e.chartoption=JSON.stringify(t.value.options),n.setOption(t.value.options),window.addEventListener("resize",n.resize)},update:function(e,t){if(JSON.stringify(t.value.options)!=e.chartoption){var n=K.a.getInstanceByDom(e);n&&(window.removeEventListener("resize",n.resize),n.dispose());var r=K.a.init(e);r.setOption(t.value.options),e.chartoption=JSON.stringify(t.value.options),window.addEventListener("resize",r.resize)}},unbind:function(e){var t=K.a.getInstanceByDom(e);t&&(window.removeEventListener("resize",t.resize),t.dispose())}}),o["default"].directive("betterScroll",{inserted:function(e,t){var n=W({scrollbar:{fade:!1,interactive:!0},mouseWheel:!0},t.value&&t.value.options),r=t.value&&t.value.events||{},o=new G["a"](e,n);for(var a in r)r.hasOwnProperty(a)&&o.on(a,r[a]);t.value&&t.value.init&&t.value.init(o),e.style.position="relative",e.style.overflow="hidden"}});var $=n("c0e9"),V=n.n($),Z=n("e511"),ee=n.n(Z),te={install:function(e,t){e.prototype.getPdf=function(){var e=this.htmlTitle;V()(document.querySelector("#pdfDom"),{allowTaint:!0}).then((function(t){var n=t.width,r=t.height,o=n/592.28*841.89,a=r,u=0,p=595.28,i=592.28/n*r,s=t.toDataURL("image/jpeg",1),d=new ee.a("","pt","a4");if(a<o)d.addImage(s,"JPEG",0,0,p,i);else while(a>0)d.addImage(s,"JPEG",0,u,p,i),a-=o,u-=841.89,a>0&&d.addPage();d.save(e+".pdf")}))}}},ne=n("1aa9");o["default"].use(q.a),o["default"].use(te),p.a.defaults.withCredentials=!0,o["default"].prototype.$http=p.a,p.a.interceptors.request.use((function(e){return ne["e"]||(e.url="/rest/diagnosis"+e.url),e})),p.a.interceptors.response.use((function(e){return e}),(function(e){return"401"!=e.response.status&&"403"!=e.response.status||J.replace({path:"/index"}),Promise.reject(e)})),J.onError((function(e){console.log(e)})),o["default"].filter("removeIndex",(function(e){var t="";return Number.isNaN(Number.parseInt(e[0]))||(t=e.replace(e[0],"")),Number.isNaN(Number.parseInt(t[0]))||(t=t.replace(e[0],"")),t})),new o["default"]({el:"#app",router:J,store:f,render:function(e){return e(a["default"])}})},"7ded":function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return u})),n.d(t,"e",(function(){return p})),n.d(t,"b",(function(){return i})),n.d(t,"d",(function(){return s}));var r=n("bc3a"),o=n.n(r);function a(e){var t=e.username,n=e.password,r=e.loginFrom;return o()({method:"post",url:"/login",data:{username:t,password:n,loginFrom:r},transformRequest:[function(e){var t="";for(var n in e)t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n])+"&";return t}],headers:{}}).then((function(e){return e.data}))}function u(e){return o.a.get("/open/user/checkUsername?username="+e).then((function(e){return e.data}))}function p(e){return o()({method:"post",url:"/open/user/register",data:e}).then((function(e){return e.data}))}function i(){return o.a.get("/self/info").then((function(e){return e.data}))}function s(){return o.a.get("/logout").then((function(e){return e.data}))}},"94d5":function(e,t){},"9d90":function(e,t,n){},e810:function(e,t,n){"use strict";var r=n("478b"),o=n.n(r);o.a}});