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