1 |
- (function(e){function t(t){for(var r,o,p=t[0],i=t[1],s=t[2],c=0,l=[];c<p.length;c++)o=p[c],Object.prototype.hasOwnProperty.call(a,o)&&a[o]&&l.push(a[o][0]),a[o]=0;for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r]);d&&d(t);while(l.length)l.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":"94dfc3d3","group-controlApp~group-doTest":"b0c159a8","group-controlApp":"082de928","group-doTest":"da4cfd66","group-mainPage":"9c108c85"}[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":"be5f5bcd","group-controlApp~group-doTest":"40e89122","group-controlApp":"47a2992d","group-doTest":"e7aa7ee8","group-mainPage":"c54885d3"}[e]+".css",a=i.p+r,u=document.getElementsByTagName("link"),p=0;p<u.length;p++){var s=u[p],c=s.getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(c===r||c===a))return t()}var l=document.getElementsByTagName("style");for(p=0;p<l.length;p++){s=l[p],c=s.getAttribute("data-href");if(c===r||c===a)return t()}var d=document.createElement("link");d.rel="stylesheet",d.type="text/css",d.onload=t,d.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],d.parentNode.removeChild(d),n(u)},d.href=a;var g=document.getElementsByTagName("head")[0];g.appendChild(d)})).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,c=document.createElement("script");c.charset="utf-8",c.timeout=120,i.nc&&c.setAttribute("nonce",i.nc),c.src=p(e);var l=new Error;s=function(t){c.onerror=c.onload=null,clearTimeout(d);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;l.message="Loading chunk "+e+" failed.\n("+r+": "+o+")",l.name="ChunkLoadError",l.type=r,l.request=o,n[1](l)}a[e]=void 0}};var d=setTimeout((function(){s({type:"timeout",target:c})}),12e4);c.onerror=c.onload=s,document.head.appendChild(c)}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"]||[],c=s.push.bind(s);s.push=t,s=s.slice();for(var l=0;l<s.length;l++)t(s[l]);var d=c;u.push([0,"chunk-vendors"]),n()})({0:function(e,t,n){e.exports=n("56d7")},"0ebc":function(e,t,n){"use strict";n("9d90")},"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},4360:function(e,t,n){"use strict";var r={};n.r(r),n.d(r,"setLoginUser",(function(){return p}));var o=n("a026"),a=n("2f62"),u=n("94d5"),p=function(e,t){var n=e.commit;n("setLoginUser",t)},i={setLoginUser:function(e,t){e.loginUser=t}};o["default"].use(a["a"]);var s={loginUser:{}};t["a"]=new a["a"].Store({modules:{},state:s,getters:u,actions:r,mutations:i})},"478b":function(e,t,n){},"56d7":function(e,t,n){"use strict";n.r(t),function(e){n("04ff"),n("c5f6"),n("ee1d"),n("a481"),n("cadf"),n("551c"),n("f751"),n("097d");var t=n("a026"),r=n("3dfd"),o=n("bc3a"),a=n.n(o),u=n("4360"),p=n("a18c"),i=n("5c96"),s=n.n(i),c=(n("0fae"),n("cda1"),n("fd45")),l=n("1aa9");t["default"].use(s.a),t["default"].use(c["a"]),a.a.defaults.withCredentials=!0,t["default"].prototype.$http=a.a;var d=n("df7c"),g=d.resolve(e,"/img/so"),f=d.resolve(e,"./img/so"),m=d.resolve("ee","foo/bar","./baz"),h=d.resolve("/foo/bar","/tmp/file/");console.log(e),console.log(g),console.log(f),console.log(m),console.log(h),a.a.interceptors.request.use((function(e){return l["e"]||(e.url="/rest/diagnosis"+e.url),e})),a.a.interceptors.response.use((function(e){return e}),(function(e){return"401"!=e.response.status&&"403"!=e.response.status||p["a"].replace({path:"/index"}),Promise.reject(e)})),p["a"].onError((function(e){console.log(e)})),t["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 t["default"]({el:"#app",router:p["a"],store:u["a"],render:function(e){return e(r["default"])}})}.call(this,"/")},"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){},a18c:function(e,t,n){"use strict";var r=n("a026"),o=n("8c4f"),a=n("4360"),u=n("7ded"),p=function(){return n.e("group-app").then(n.bind(null,"3dfd"))},i=function(){return n.e("group-app").then(n.bind(null,"6c08"))},s=function(){return n.e("group-app").then(n.bind(null,"fb03"))},c=function(){return n.e("group-mainPage").then(n.bind(null,"67f4"))},l=function(){return n.e("group-mainPage").then(n.bind(null,"d824"))},d=function(){return n.e("group-mainPage").then(n.bind(null,"9b10"))},g=function(){return n.e("group-mainPage").then(n.bind(null,"c291"))},f=function(){return n.e("group-mainPage").then(n.bind(null,"737e"))},m=function(){return n.e("group-mainPage").then(n.bind(null,"a182"))},h=function(){return n.e("group-mainPage").then(n.bind(null,"ece1"))},b=function(){return n.e("group-mainPage").then(n.bind(null,"80c6"))},v=function(){return Promise.all([n.e("group-controlApp~group-doTest"),n.e("group-doTest")]).then(n.bind(null,"4cf9"))},P=function(){return Promise.all([n.e("group-controlApp~group-doTest"),n.e("group-doTest")]).then(n.bind(null,"3704"))},A=function(){return Promise.all([n.e("group-controlApp~group-doTest"),n.e("group-doTest")]).then(n.bind(null,"722d"))},T=function(){return Promise.all([n.e("group-controlApp~group-doTest"),n.e("group-doTest")]).then(n.bind(null,"f693"))},y=function(){return Promise.all([n.e("group-controlApp~group-doTest"),n.e("group-controlApp")]).then(n.bind(null,"e4ec"))},w=function(){return Promise.all([n.e("group-controlApp~group-doTest"),n.e("group-controlApp")]).then(n.bind(null,"7ad4"))},O=function(){return Promise.all([n.e("group-controlApp~group-doTest"),n.e("group-controlApp")]).then(n.bind(null,"a8e7"))},L=function(){return Promise.all([n.e("group-controlApp~group-doTest"),n.e("group-controlApp")]).then(n.bind(null,"a0e1"))},j=function(){return Promise.all([n.e("group-controlApp~group-doTest"),n.e("group-controlApp")]).then(n.bind(null,"cc13"))},E=function(){return Promise.all([n.e("group-controlApp~group-doTest"),n.e("group-controlApp")]).then(n.bind(null,"4d3b"))},S=function(){return Promise.all([n.e("group-controlApp~group-doTest"),n.e("group-controlApp")]).then(n.bind(null,"2706"))},x=function(){return Promise.all([n.e("group-controlApp~group-doTest"),n.e("group-controlApp")]).then(n.bind(null,"8ea0"))},X=function(){return Promise.all([n.e("group-controlApp~group-doTest"),n.e("group-controlApp")]).then(n.bind(null,"d408"))},Y=function(){return Promise.all([n.e("group-controlApp~group-doTest"),n.e("group-controlApp")]).then(n.bind(null,"634a"))},U=function(){return Promise.all([n.e("group-controlApp~group-doTest"),n.e("group-controlApp")]).then(n.bind(null,"9943"))},N=function(){return Promise.all([n.e("group-controlApp~group-doTest"),n.e("group-controlApp")]).then(n.bind(null,"94d3"))},I=function(){return Promise.all([n.e("group-controlApp~group-doTest"),n.e("group-controlApp")]).then(n.bind(null,"7d36"))},C=function(){return Promise.all([n.e("group-controlApp~group-doTest"),n.e("group-controlApp")]).then(n.bind(null,"5836"))},D=function(){return Promise.all([n.e("group-controlApp~group-doTest"),n.e("group-controlApp")]).then(n.bind(null,"f078"))},R=function(){return Promise.all([n.e("group-controlApp~group-doTest"),n.e("group-controlApp")]).then(n.bind(null,"4a85"))};r["default"].use(o["a"]),t["a"]=new o["a"]({routes:[{path:"/",redirect:{name:"App"}},{path:"/app",name:"App",component:p,beforeEnter:function(e,t,n){Object(u["b"])().then((function(e){a["a"].dispatch("setLoginUser",e),n()})).catch((function(){n({name:"Index"})}))},redirect:{name:"MainPage"},children:[{path:"mainPage",name:"MainPage",component:c,redirect:{name:"AbilityTest"},children:[{path:"home",name:"Home",component:l},{path:"abilityTest",name:"AbilityTest",component:d},{path:"news",name:"News",component:g},{path:"aboutUs",name:"AboutUs",component:f},{path:"contactUs",name:"ContactUs",component:m},{path:"examTable",name:"ExamTable",component:h}]},{path:"userPage",name:"UserPage",component:b},{path:"guidePage/:examId",name:"GuidePage",component:T},{path:"doTest/:examId",name:"DoTest",component:v},{path:"restPage/:examId",name:"RestPage",component:P},{path:"testResult/:pid/:uid",name:"TestResult",component:A}]},{path:"/index",name:"Index",component:i},{path:"*",name:"NotFound",component:s},{path:"/ctrlApp",name:"ControlApp",component:y,beforeEnter:function(e,t,n){Object(u["b"])().then((function(e){a["a"].dispatch("setLoginUser",e),n()})).catch((function(){n({name:"ControlLogin"})}))},redirect:{name:"ControlMainPage"},children:[{path:"ctrlMainPage",name:"ControlMainPage",component:w,redirect:{name:"PaperListSimple"},children:[{path:"paperList",name:"PaperList",component:O},{path:"paperListSimple",name:"PaperListSimple",component:L},{path:"userList",name:"UserList",component:X},{path:"docList",name:"DocList",component:j},{path:"issuePaperList",name:"IssuePaperList",component:S},{path:"questionList/:pid",name:"QuestionList",component:E},{path:"issueQuestions/:pid",name:"IssueQuestions",component:x}]},{path:"firstEdition/:pid/:uid",name:"FirstEdition",component:Y},{path:"pdfTest",name:"PDFTest",component:U},{path:"simpleReport/:pid/:uid",name:"SimpleReport",component:N}]},{path:"/ctrlLogin",name:"ControlLogin",component:I},{path:"/voice",name:"VoiceTest",component:C},{path:"/xxx",name:"UserTest",component:D},{path:"/report",name:"Report",component:R}]})},cda1:function(e,t,n){"use strict";n("8e6e"),n("ac6a"),n("456d");var r=n("ade3"),o=n("a026"),a=n("1fba"),u=n("313e"),p=n.n(u);function i(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 s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){Object(r["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(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=p.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=p.a.getInstanceByDom(e);n&&(window.removeEventListener("resize",n.resize),n.dispose());var r=p.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=p.a.getInstanceByDom(e);t&&(window.removeEventListener("resize",t.resize),t.dispose())}}),o["default"].directive("betterScroll",{inserted:function(e,t){var n=s({scrollbar:{fade:!1,interactive:!0},mouseWheel:!0},t.value&&t.value.options),r=t.value&&t.value.events||{},o=new a["a"](e,n);for(var u in r)r.hasOwnProperty(u)&&o.on(u,r[u]);t.value&&t.value.init&&t.value.init(o),e.style.position="relative",e.style.overflow="hidden"}})},e810:function(e,t,n){"use strict";n("478b")},fd45:function(e,t,n){"use strict";var r=n("c0e9"),o=n.n(r),a=n("e511"),u=n.n(a);t["a"]={install:function(e,t){e.prototype.getPdf=function(){var e=this.htmlTitle;o()(document.querySelector("#pdfDom"),{allowTaint:!0}).then((function(t){var n=t.width,r=t.height,o=n/592.28*841.89,a=r,p=0,i=595.28,s=592.28/n*r,c=t.toDataURL("image/jpeg",1),l=new u.a("","pt","a4");if(a<o)l.addImage(c,"JPEG",0,0,i,s);else while(a>0)l.addImage(c,"JPEG",0,p,i,s),a-=o,p-=841.89,a>0&&l.addPage();l.save(e+".pdf")}))}}}}});
|