(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d7938896"],{"0b42":function(t,e,n){var o=n("861d"),r=n("e8b5"),a=n("b622"),i=a("species");t.exports=function(t){var e;return r(t)&&(e=t.constructor,"function"!=typeof e||e!==Array&&!r(e.prototype)?o(e)&&(e=e[i],null===e&&(e=void 0)):e=void 0),void 0===e?Array:e}},"0c6d":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return c}));n("d3b7");var o=n("2b0e"),r=function(t){return new Promise((function(e,n){axios(t).then((function(t){return e(t)})).catch((function(t){return n(t)}))}))},a=function(t){return new Promise((function(e,n){var o=t.data.code;return 0==o?(e(JSON.parse(JSON.stringify(t.data))),!1):(n(t.data.msg),!1)}))},i=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={url:t,method:"POST",headers:{Authorization:sessionStorage.getItem("token")},data:JSON.parse(JSON.stringify(e))};return new Promise((function(t,e){r(n).then((function(t){return a(t)})).then((function(e){return t(e)})).catch((function(t){return o["default"].prototype.$message.error("温馨提示:".concat(t))}))}))},c=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={url:t,method:"GET",headers:{Authorization:sessionStorage.getItem("token")},params:JSON.parse(JSON.stringify(e))};return new Promise((function(t,e){r(n).then((function(t){return a(t)})).then((function(e){return t(e)})).catch((function(t){return o["default"].prototype.$message.error("温馨提示:".concat(t))}))}))}},"1dde":function(t,e,n){var o=n("d039"),r=n("b622"),a=n("2d00"),i=r("species");t.exports=function(t){return a>=51||!o((function(){var e=[],n=e.constructor={};return n[i]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},3191:function(t,e,n){"use strict";n("99af");var o=n("0c6d");e["a"]={index:function(){return Object(o["a"])("/staff/exam/exam_log/get_home_exam/")},mock_examination_a:function(){return Object(o["a"])("/staff/practise/dict/")},mock_examination_b:function(t){return Object(o["a"])("/staff/practise/",t)},exam:function(t){return Object(o["b"])("/staff/practise/",t)},mock_examination_type:function(){return Object(o["a"])("/staff/mock/dict/")},mock_examination_list:function(t){return Object(o["a"])("/staff/mock/exam_paper/",t)},mock_examination_exam:function(t){return Object(o["b"])("/staff/mock/exam_log/",t)},wrongquestion_sort:function(t){return Object(o["a"])("/staff/errorbook/",t)},wrongquestion_type:function(){return Object(o["a"])("/staff/errorbook/dict/")},examinationrecord_a:function(t){return Object(o["a"])("/staff/exam/exam_log/",t)},examinationrecord_b:function(t){return Object(o["a"])("/staff/mock/exam_log/",t)},mock_examination_report:function(t){return Object(o["a"])("/staff/".concat(t.type,"/exam_log/").concat(t.id,"/"))},knowledgebase_data:function(t){return Object(o["a"])("/staff/knowledge/",t)},knowledgebase_tree:function(){return Object(o["a"])("/staff/practise/dict/")},knowledgebase_error:function(t){return Object(o["b"])("/staff/knowledge/feedback/",t)},formal_examination:function(){return Object(o["a"])("/staff/exam/exam_log/get_exam/")}}},"4ee7":function(t,e,n){"use strict";n("54c6")},"54c6":function(t,e,n){},"65f0":function(t,e,n){var o=n("0b42");t.exports=function(t,e){return new(o(t))(0===e?0:e)}},"67bd":function(t,e,n){"use strict";n.r(e);var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"formal_examination"},[t.show?n("div",{staticClass:"alert"},[n("div",{staticClass:"label"},[t._v("当前无考试")]),n("div",{staticClass:"refresh",on:{click:t.refresh}},[t._v("刷新")])]):t._e(),[n("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,border:""}},[t._l(t.table_cols,(function(e,o){return n("el-table-column",{key:o,attrs:{prop:e.prop,label:e.label,width:e.width},scopedSlots:t._u([{key:"default",fn:function(o){return n("div",{},["yes"==e.prop?n("span",{staticClass:"yes"},[t._v(t._s(o.row[[e.prop]]))]):"no"==e.prop?n("span",{staticClass:"no"},[t._v(t._s(o.row[[e.prop]]))]):n("span",[t._v(t._s(o.row[[e.prop]]))])])}}],null,!0)})})),n("el-table-column",{attrs:{width:"139"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"center"},[n("el-button",{attrs:{type:"text",size:"small",icon:"el-icon-edit"},on:{click:function(n){return t.handleClick(e.row)}}},[t._v("进入答题")])],1)]}}])},[n("template",{slot:"header"},[n("div",{staticClass:"center"},[t._v("操作")])])],2)],2)],n("el-dialog",{attrs:{title:"提示",visible:t.dialogVisible,width:"30%"},on:{"update:visible":function(e){t.dialogVisible=e}}},[n("span",[t._v(t._s(t.dialog.msg))]),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(e){t.dialogVisible=!1}}},[t._v("取 消")]),n("el-button",{attrs:{disabled:t.dialog.btn,type:"primary"},on:{click:t.Enter}},[t._v("确 定")])],1)])],2)},r=[],a=(n("d3b7"),n("3ca3"),n("ddb0"),n("99af"),n("3191")),i=function(){return n.e("chunk-babe08ce").then(n.bind(null,"f4f7"))},c={components:{Table:i},data:function(){return{dialogVisible:!1,dialog:{id:"",msg:"",btn:!0},show:!1,table_cols:[{label:"名称",prop:"name",width:"340"},{label:"科目",prop:"subject",width:"150"},{label:"开始时间",prop:"exam_time",width:"190"},{label:"结束时间",prop:"exam_end_time",width:"190"},{label:"时长(分钟)",prop:"duration",width:"150"}],tableData:[]}},created:function(){this.Request()},methods:{Enter:function(){sessionStorage.setItem("formal",JSON.stringify({practise:this.dialog.id,end_time:this.dialog.end_time})),this.$router.push({path:"/formalexam"})},handleClick:function(t){var e=(new Date(t.exam_time)-new Date)/1e3;this.dialog={id:t.id,end_time:t.exam_end_time,msg:e>0?"距离考试时间还有".concat(Math.floor(e/60/60),"时").concat(Math.floor((e-60*Math.floor(e/60/60)*60)/60),"分").concat(Math.floor(e%60),"秒"):t.submit_time?"你已经交卷了!":"是否进入考试?",btn:!!(e>0||t.submit_time)},this.dialogVisible=!0},Request:function(){var t=this;a["a"].formal_examination().then((function(e){try{var n=e.data;if(0==n.length)return t.show=!0,!1;t.show=!1,t.tableData=n}catch(o){console.error("数据处理错误:".concat(o))}}))},refresh:function(){this.Request()}}},s=c,u=(n("4ee7"),n("2877")),f=Object(u["a"])(s,o,r,!1,null,"ea97c5ca",null);e["default"]=f.exports},8418:function(t,e,n){"use strict";var o=n("a04b"),r=n("9bf2"),a=n("5c6c");t.exports=function(t,e,n){var i=o(e);i in t?r.f(t,i,a(0,n)):t[i]=n}},"99af":function(t,e,n){"use strict";var o=n("23e7"),r=n("d039"),a=n("e8b5"),i=n("861d"),c=n("7b0b"),s=n("50c4"),u=n("8418"),f=n("65f0"),l=n("1dde"),d=n("b622"),b=n("2d00"),m=d("isConcatSpreadable"),p=9007199254740991,h="Maximum allowed index exceeded",_=b>=51||!r((function(){var t=[];return t[m]=!1,t.concat()[0]!==t})),g=l("concat"),v=function(t){if(!i(t))return!1;var e=t[m];return void 0!==e?!!e:a(t)},x=!_||!g;o({target:"Array",proto:!0,forced:x},{concat:function(t){var e,n,o,r,a,i=c(this),l=f(i,0),d=0;for(e=-1,o=arguments.length;ep)throw TypeError(h);for(n=0;n=p)throw TypeError(h);u(l,d++,a)}return l.length=d,l}})},e8b5:function(t,e,n){var o=n("c6b6");t.exports=Array.isArray||function(t){return"Array"==o(t)}}}]); //# sourceMappingURL=chunk-d7938896.f4d2510c.js.map