12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-15fe3368"],{"0b42":function(t,n,e){var r=e("861d"),o=e("e8b5"),c=e("b622"),i=c("species");t.exports=function(t){var n;return o(t)&&(n=t.constructor,"function"!=typeof n||n!==Array&&!o(n.prototype)?r(n)&&(n=n[i],null===n&&(n=void 0)):n=void 0),void 0===n?Array:n}},"0c6d":function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"a",(function(){return a}));e("d3b7");var r=e("2b0e"),o=function(t){return new Promise((function(n,e){axios(t).then((function(t){return n(t)})).catch((function(t){return e(t)}))}))},c=function(t){return new Promise((function(n,e){var r=t.data.code;return 0==r?(n(JSON.parse(JSON.stringify(t.data))),!1):(e(t.data.msg),!1)}))},i=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e={url:t,method:"POST",headers:{Authorization:sessionStorage.getItem("token")},data:JSON.parse(JSON.stringify(n))};return new Promise((function(t,n){o(e).then((function(t){return c(t)})).then((function(n){return t(n)})).catch((function(t){return r["default"].prototype.$message.error("温馨提示:".concat(t))}))}))},a=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e={url:t,method:"GET",headers:{Authorization:sessionStorage.getItem("token")},params:JSON.parse(JSON.stringify(n))};return new Promise((function(t,n){o(e).then((function(t){return c(t)})).then((function(n){return t(n)})).catch((function(t){return r["default"].prototype.$message.error("温馨提示:".concat(t))}))}))}},"1dde":function(t,n,e){var r=e("d039"),o=e("b622"),c=e("2d00"),i=o("species");t.exports=function(t){return c>=51||!r((function(){var n=[],e=n.constructor={};return e[i]=function(){return{foo:1}},1!==n[t](Boolean).foo}))}},"2a14":function(t,n,e){"use strict";e.r(n);var r=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"index"},[t._l(t.alerts,(function(n,r){return e("div",{key:r,on:{click:function(e){return t.AlertClick(n)}}},[e("el-alert",{attrs:{type:n.type,"show-icon":"",effect:"dark",closable:!1}},[e("div",{staticClass:"title",attrs:{slot:"title"},domProps:{innerHTML:t._s(n.title)},slot:"title"})])],1)})),e("div",{staticClass:"types"},t._l(t.types,(function(n,r){return e("div",{key:r,staticClass:"item",attrs:{href:"javascript:;"},on:{click:function(e){return t.TypeFunc(n.success)}}},[e("i",{class:[n.icon]}),e("p",[t._v(t._s(n.title))])])})),0)],2)},o=[],c=(e("ac1f"),e("5319"),e("d81d"),e("b0c0"),e("3191")),i={data:function(){return{timer:null,alerts:[],types:[{title:"知识库",icon:"iconfont icon-shuben",success:function(t){t.$router.replace("/knowledgebase")}},{title:"习题练习",icon:"iconfont icon-xiti",success:function(t){t.$router.replace("/practice")}},{title:"模拟考试",icon:"iconfont icon-monikaoshi",success:function(t){t.$router.replace("/mockexamination")}},{title:"正式考试",icon:"iconfont icon-zhengshikaoshi",success:function(t){t.$router.replace("/formalexamination")}},{title:"考试记录",icon:"iconfont icon-kaoshijilu",success:function(t){t.$router.replace("/examinationrecord")}},{title:"错题集",icon:"iconfont icon-cuotiji",success:function(t){t.$router.replace("/wrongquestion")}}]}},created:function(){this.Request()},mounted:function(){},methods:{Request:function(){var t=this;c["a"].index().then((function(n){try{var e=n.data;e=e.map((function(t){var n={title:"<a style='color:#fff; text-decoration: none;' href='javascript:;'>".concat(t.name,"</a>"),type:""==t.id?"success":"warning",end_time:t.exam_end_time,id:t.id};return n})),t.alerts=e}catch(r){console.error("数据处理错误:".concat(r))}}))},AlertClick:function(t){return""==t.id||(sessionStorage.setItem("formal",JSON.stringify({practise:t.id,end_time:t.end_time})),this.$router.push({path:"/formalexam"})),!1},TypeFunc:function(t){var n=this;t(n)}}},a=i,u=(e("33c7"),e("2877")),s=Object(u["a"])(a,r,o,!1,null,"251f0c6f",null);n["default"]=s.exports},3191:function(t,n,e){"use strict";e("99af");var r=e("0c6d");n["a"]={index:function(){return Object(r["a"])("/staff/exam/exam_log/get_home_exam/")},mock_examination_a:function(){return Object(r["a"])("/staff/practise/dict/")},mock_examination_b:function(t){return Object(r["a"])("/staff/practise/",t)},exam:function(t){return Object(r["b"])("/staff/practise/",t)},mock_examination_type:function(){return Object(r["a"])("/staff/mock/dict/")},mock_examination_list:function(t){return Object(r["a"])("/staff/mock/exam_paper/",t)},mock_examination_exam:function(t){return Object(r["b"])("/staff/mock/exam_log/",t)},wrongquestion_sort:function(t){return Object(r["a"])("/staff/errorbook/",t)},wrongquestion_type:function(){return Object(r["a"])("/staff/errorbook/dict/")},examinationrecord_a:function(t){return Object(r["a"])("/staff/exam/exam_log/",t)},examinationrecord_b:function(t){return Object(r["a"])("/staff/mock/exam_log/",t)},mock_examination_report:function(t){return Object(r["a"])("/staff/".concat(t.type,"/exam_log/").concat(t.id,"/"))},knowledgebase_data:function(t){return Object(r["a"])("/staff/knowledge/",t)},knowledgebase_tree:function(){return Object(r["a"])("/staff/practise/dict/")},knowledgebase_error:function(t){return Object(r["b"])("/staff/knowledge/feedback/",t)},formal_examination:function(){return Object(r["a"])("/staff/exam/exam_log/get_exam/")}}},"33c7":function(t,n,e){"use strict";e("fba1")},"65f0":function(t,n,e){var r=e("0b42");t.exports=function(t,n){return new(r(t))(0===n?0:n)}},8418:function(t,n,e){"use strict";var r=e("a04b"),o=e("9bf2"),c=e("5c6c");t.exports=function(t,n,e){var i=r(n);i in t?o.f(t,i,c(0,e)):t[i]=e}},"99af":function(t,n,e){"use strict";var r=e("23e7"),o=e("d039"),c=e("e8b5"),i=e("861d"),a=e("7b0b"),u=e("50c4"),s=e("8418"),f=e("65f0"),l=e("1dde"),d=e("b622"),m=e("2d00"),p=d("isConcatSpreadable"),b=9007199254740991,h="Maximum allowed index exceeded",v=m>=51||!o((function(){var t=[];return t[p]=!1,t.concat()[0]!==t})),x=l("concat"),g=function(t){if(!i(t))return!1;var n=t[p];return void 0!==n?!!n:c(t)},_=!v||!x;r({target:"Array",proto:!0,forced:_},{concat:function(t){var n,e,r,o,c,i=a(this),l=f(i,0),d=0;for(n=-1,r=arguments.length;n<r;n++)if(c=-1===n?i:arguments[n],g(c)){if(o=u(c.length),d+o>b)throw TypeError(h);for(e=0;e<o;e++,d++)e in c&&s(l,d,c[e])}else{if(d>=b)throw TypeError(h);s(l,d++,c)}return l.length=d,l}})},b0c0:function(t,n,e){var r=e("83ab"),o=e("9bf2").f,c=Function.prototype,i=c.toString,a=/^\s*function ([^ (]*)/,u="name";r&&!(u in c)&&o(c,u,{configurable:!0,get:function(){try{return i.call(this).match(a)[1]}catch(t){return""}}})},b727:function(t,n,e){var r=e("0366"),o=e("44ad"),c=e("7b0b"),i=e("50c4"),a=e("65f0"),u=[].push,s=function(t){var n=1==t,e=2==t,s=3==t,f=4==t,l=6==t,d=7==t,m=5==t||l;return function(p,b,h,v){for(var x,g,_=c(p),k=o(_),y=r(b,h,3),w=i(k.length),O=0,j=v||a,S=n?j(p,w):e||d?j(p,0):void 0;w>O;O++)if((m||O in k)&&(x=k[O],g=y(x,O,_),t))if(n)S[O]=g;else if(g)switch(t){case 3:return!0;case 5:return x;case 6:return O;case 2:u.call(S,x)}else switch(t){case 4:return!1;case 7:u.call(S,x)}return l?-1:s||f?f:S}};t.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6),filterReject:s(7)}},d81d:function(t,n,e){"use strict";var r=e("23e7"),o=e("b727").map,c=e("1dde"),i=c("map");r({target:"Array",proto:!0,forced:!i},{map:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},e8b5:function(t,n,e){var r=e("c6b6");t.exports=Array.isArray||function(t){return"Array"==r(t)}},fba1:function(t,n,e){}}]);
- //# sourceMappingURL=chunk-15fe3368.2a92da13.js.map
|