chunk-2c5ed5fc.b37ce480.js 19 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2c5ed5fc"],{1175:function(t,e,n){},2241:function(t,e,n){"use strict";var a,i=n("1988"),o=n("8bbf"),r=n.n(o),s=n("2638"),c=n.n(s),l=n("d282"),u=n("ea8e"),d=n("b1d2"),f=n("6605"),p=n("b650"),h=n("9884"),m=Object(l["a"])("goods-action"),g=m[0],b=m[1],v=g({mixins:[Object(h["b"])("vanGoodsAction")],props:{safeAreaInsetBottom:{type:Boolean,default:!0}},render:function(){var t=arguments[0];return t("div",{class:b({unfit:!this.safeAreaInsetBottom})},[this.slots()])}}),O=n("48f4"),C=Object(l["a"])("goods-action-button"),A=C[0],j=C[1],B=A({mixins:[Object(h["a"])("vanGoodsAction")],props:Object(i["a"])({},O["c"],{type:String,text:String,icon:String,color:String,loading:Boolean,disabled:Boolean}),computed:{isFirst:function(){var t=this.parent&&this.parent.children[this.index-1];return!t||t.$options.name!==this.$options.name},isLast:function(){var t=this.parent&&this.parent.children[this.index+1];return!t||t.$options.name!==this.$options.name}},methods:{onClick:function(t){this.$emit("click",t),Object(O["b"])(this.$router,this)}},render:function(){var t=arguments[0];return t(p["a"],{class:j([{first:this.isFirst,last:this.isLast},this.type]),attrs:{size:"large",type:this.type,icon:this.icon,color:this.color,loading:this.loading,disabled:this.disabled},on:{click:this.onClick}},[this.slots()||this.text])}}),x=Object(l["a"])("dialog"),y=x[0],w=x[1],_=x[2],I=y({mixins:[Object(f["a"])()],props:{title:String,theme:String,width:[Number,String],message:String,className:null,callback:Function,beforeClose:Function,messageAlign:String,cancelButtonText:String,cancelButtonColor:String,confirmButtonText:String,confirmButtonColor:String,showCancelButton:Boolean,overlay:{type:Boolean,default:!0},allowHtml:{type:Boolean,default:!0},transition:{type:String,default:"van-dialog-bounce"},showConfirmButton:{type:Boolean,default:!0},closeOnPopstate:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!1}},data:function(){return{loading:{confirm:!1,cancel:!1}}},methods:{onClickOverlay:function(){this.handleAction("overlay")},handleAction:function(t){var e=this;this.$emit(t),this.value&&(this.beforeClose?(this.loading[t]=!0,this.beforeClose(t,(function(n){!1!==n&&e.loading[t]&&e.onClose(t),e.loading.confirm=!1,e.loading.cancel=!1}))):this.onClose(t))},onClose:function(t){this.close(),this.callback&&this.callback(t)},onOpened:function(){this.$emit("opened")},onClosed:function(){this.$emit("closed")},genRoundButtons:function(){var t=this,e=this.$createElement;return e(v,{class:w("footer")},[this.showCancelButton&&e(B,{attrs:{size:"large",type:"warning",text:this.cancelButtonText||_("cancel"),color:this.cancelButtonColor,loading:this.loading.cancel},class:w("cancel"),on:{click:function(){t.handleAction("cancel")}}}),this.showConfirmButton&&e(B,{attrs:{size:"large",type:"danger",text:this.confirmButtonText||_("confirm"),color:this.confirmButtonColor,loading:this.loading.confirm},class:w("confirm"),on:{click:function(){t.handleAction("confirm")}}})])},genButtons:function(){var t,e=this,n=this.$createElement,a=this.showCancelButton&&this.showConfirmButton;return n("div",{class:[d["e"],w("footer")]},[this.showCancelButton&&n(p["a"],{attrs:{size:"large",loading:this.loading.cancel,text:this.cancelButtonText||_("cancel")},class:w("cancel"),style:{color:this.cancelButtonColor},on:{click:function(){e.handleAction("cancel")}}}),this.showConfirmButton&&n(p["a"],{attrs:{size:"large",loading:this.loading.confirm,text:this.confirmButtonText||_("confirm")},class:[w("confirm"),(t={},t[d["c"]]=a,t)],style:{color:this.confirmButtonColor},on:{click:function(){e.handleAction("confirm")}}})])},genContent:function(t,e){var n=this.$createElement;if(e)return n("div",{class:w("content")},[e]);var a=this.message,i=this.messageAlign;if(a){var o,r,s={class:w("message",(o={"has-title":t},o[i]=i,o)),domProps:(r={},r[this.allowHtml?"innerHTML":"textContent"]=a,r)};return n("div",{class:w("content",{isolated:!t})},[n("div",c()([{},s]))])}}},render:function(){var t=arguments[0];if(this.shouldRender){var e=this.message,n=this.slots(),a=this.slots("title")||this.title,i=a&&t("div",{class:w("header",{isolated:!e&&!n})},[a]);return t("transition",{attrs:{name:this.transition},on:{afterEnter:this.onOpened,afterLeave:this.onClosed}},[t("div",{directives:[{name:"show",value:this.value}],attrs:{role:"dialog","aria-labelledby":this.title||e},class:[w([this.theme]),this.className],style:{width:Object(u["a"])(this.width)}},[i,this.genContent(a,n),"round-button"===this.theme?this.genRoundButtons():this.genButtons()])])}}}),k=n("a142");function S(t){return document.body.contains(t)}function R(){a&&a.$destroy(),a=new(r.a.extend(I))({el:document.createElement("div"),propsData:{lazyRender:!1}}),a.$on("input",(function(t){a.value=t}))}function T(t){return k["g"]?Promise.resolve():new Promise((function(e,n){a&&S(a.$el)||R(),Object(i["a"])(a,T.currentOptions,t,{resolve:e,reject:n})}))}T.defaultOptions={value:!0,title:"",width:"",theme:null,message:"",overlay:!0,className:"",allowHtml:!0,lockScroll:!0,transition:"van-dialog-bounce",beforeClose:null,overlayClass:"",overlayStyle:null,messageAlign:"",getContainer:"body",cancelButtonText:"",cancelButtonColor:null,confirmButtonText:"",confirmButtonColor:null,showConfirmButton:!0,showCancelButton:!1,closeOnPopstate:!0,closeOnClickOverlay:!1,callback:function(t){a["confirm"===t?"resolve":"reject"](t)}},T.alert=T,T.confirm=function(t){return T(Object(i["a"])({showCancelButton:!0},t))},T.close=function(){a&&(a.value=!1)},T.setDefaultOptions=function(t){Object(i["a"])(T.currentOptions,t)},T.resetDefaultOptions=function(){T.currentOptions=Object(i["a"])({},T.defaultOptions)},T.resetDefaultOptions(),T.install=function(){r.a.use(I)},T.Component=I,r.a.prototype.$dialog=T;e["a"]=T},"2fcb":function(t,e,n){},"493a":function(t,e,n){},"4cf9":function(t,e,n){},5246:function(t,e,n){"use strict";n("68ef"),n("9d70"),n("3743"),n("8a0b")},5448:function(t,e,n){"use strict";n("493a")},"66b9":function(t,e,n){"use strict";n("68ef"),n("9d70"),n("3743"),n("e3b3"),n("bc1b")},"6b41":function(t,e,n){"use strict";var a=n("d282"),i=n("b1d2"),o=n("ad06"),r=Object(a["a"])("nav-bar"),s=r[0],c=r[1];e["a"]=s({props:{title:String,fixed:Boolean,zIndex:[Number,String],leftText:String,rightText:String,leftArrow:Boolean,placeholder:Boolean,safeAreaInsetTop:Boolean,border:{type:Boolean,default:!0}},data:function(){return{height:null}},mounted:function(){this.placeholder&&this.fixed&&(this.height=this.$refs.navBar.getBoundingClientRect().height)},methods:{genLeft:function(){var t=this.$createElement,e=this.slots("left");return e||[this.leftArrow&&t(o["a"],{class:c("arrow"),attrs:{name:"arrow-left"}}),this.leftText&&t("span",{class:c("text")},[this.leftText])]},genRight:function(){var t=this.$createElement,e=this.slots("right");return e||(this.rightText?t("span",{class:c("text")},[this.rightText]):void 0)},genNavBar:function(){var t,e=this.$createElement;return e("div",{ref:"navBar",style:{zIndex:this.zIndex},class:[c({fixed:this.fixed,"safe-area-inset-top":this.safeAreaInsetTop}),(t={},t[i["b"]]=this.border,t)]},[e("div",{class:c("content")},[this.hasLeft()&&e("div",{class:c("left"),on:{click:this.onClickLeft}},[this.genLeft()]),e("div",{class:[c("title"),"van-ellipsis"]},[this.slots("title")||this.title]),this.hasRight()&&e("div",{class:c("right"),on:{click:this.onClickRight}},[this.genRight()])])])},hasLeft:function(){return this.leftArrow||this.leftText||this.slots("left")},hasRight:function(){return this.rightText||this.slots("right")},onClickLeft:function(t){this.$emit("click-left",t)},onClickRight:function(t){this.$emit("click-right",t)}},render:function(){var t=arguments[0];return this.placeholder&&this.fixed?t("div",{class:c("placeholder"),style:{height:this.height+"px"}},[this.genNavBar()]):this.genNavBar()}})},"766b":function(t,e,n){"use strict";n.r(e);var a,i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"page"},[a("div",{staticClass:"flex-center"},[t._v(t._s(t.paperInfo.name))]),a("div",{staticClass:"padding-xs"},[a("div",{staticClass:"msg-item"},[a("span",[t._v("考试时长:")]),a("span",[t._v(t._s(t.paperInfo.duringtime?t.paperInfo.duringtime:0)+"分钟")])]),a("div",{staticClass:"msg-item"},[a("span",[t._v("题数:")]),a("span",[t._v(t._s(t.paperInfo.questions?t.paperInfo.questions.length:0)+"题")])]),a("div",{staticClass:"msg-item"},[a("span",[t._v("满分:")]),a("span",[t._v(t._s(t.paperInfo.total_score?t.paperInfo.total_score:0)+"分")])]),a("div",{staticClass:"msg-item"},[a("span",[t._v("及格分:")]),a("span",[t._v(t._s(t.paperInfo.base_score?t.paperInfo.base_score:0)+"分")])]),a("div",{staticClass:"msg-item"},[a("span",{staticClass:"employeebox"},[t._v("参考人员:")]),a("span",{on:{click:t.opentap}},[t._v(" "+t._s(t.paperInfo.personstr1?t.paperInfo.personflag?t.paperInfo.employee.join(","):t.paperInfo.personstr1:"")+" "),a("img",{directives:[{name:"show",rawName:"v-show",value:t.paperInfo.personstr1,expression:"paperInfo.personstr1"}],staticStyle:{position:"relative",top:"2px"},style:{transform:t.paperInfo.personflag?"rotateZ(180deg)":""},attrs:{src:n("e9de"),width:"14px;"}})])]),t.from?t._e():a("div",{staticClass:"msg-item"},[a("span",[t._v("开始时间:")]),a("span",[t._v(t._s(t.paperInfo.starttime))])]),t.from?t._e():a("div",{staticClass:"msg-item"},[a("span",[t._v("结束时间:")]),a("span",[t._v(t._s(t.paperInfo.endtime))])])]),a("div",{staticClass:"box-center"},[0==t.paperInfo.done?a("van-button",{staticClass:"colorfff font34",attrs:{type:"info"},on:{click:t.startAssess}},[t._v("开始考试 ")]):t._e(),2==t.paperInfo.done?a("van-button",{staticClass:"colorfff font34",attrs:{type:"info"},on:{click:t.startAssess}},[t._v("继续考试 ")]):t._e(),1==t.paperInfo.done?a("van-button",{staticClass:"colorfff font34",staticStyle:{background:"#acdbff"},attrs:{type:"info"}},[t._v("开始考试 ")]):t._e(),1==t.paperInfo.done?a("div",{staticClass:"btn-footer"},[a("span",{staticClass:"leftspan",on:{click:t.toViewGrades}},[t._v("查看成绩")]),a("span",{on:{click:t.toRanking}},[t._v("查看排行")])]):t._e()],1),a("wzhload",{directives:[{name:"show",rawName:"v-show",value:t.loadFlag,expression:"loadFlag"}]})],1)},o=[],r=n("fc11"),s=(n("e17f"),n("2241")),c=(n("5246"),n("6b41")),l=(n("66b9"),n("b650")),u=(n("b0c0"),n("ac1f"),n("5319"),n("a15b"),n("9df2")),d={components:(a={},Object(r["a"])(a,l["a"].name,l["a"]),Object(r["a"])(a,c["a"].name,c["a"]),Object(r["a"])(a,s["a"].name,s["a"]),a),data:function(){return{loadFlag:!0,pid:"",from:"",paperInfo:{}}},created:function(){this.pid=this.$route.query.pid,this.from=this.$route.query.from||"0"},methods:{startAssess:function(){var t=this,e=this;s["a"].confirm({title:"提示",message:"请确认该时段可参与考试,考试时间"+e.paperInfo.duringtime+"分钟",confirmButtonColor:"#28A1FF"}).then((function(){0==t.paperInfo.done?t.requestSigleAnswer():t.$router.replace({name:"content",params:{pid:t.pid,from:t.from}})})).catch((function(){}))},requestSigleAnswer:function(){var t=this;Object(u["y"])({paper_id:this.pid,question:"0",answer:""}).then((function(e){0==e.data.code?t.$router.replace({name:"content",params:{pid:t.pid,from:t.from}}):t.$toast(e.data.msg)}))},toViewGrades:function(){if(2!=this.paperInfo.approve_status)return this.$toast("试卷还没有批改完成,暂时没有排名!"),!1;this.$router.push({name:"viewGrades",query:{pid:this.pid}})},toRanking:function(){if(2!=this.paperInfo.approve_status)return this.$toast("试卷还没有批改完成,暂时没有排名!"),!1;this.$router.push({name:"ranking",params:{pid:this.pid}})},testdetail:function(){var t=this,e=this,n={employee_id:e.$store.state.empid,paperid:e.pid,from:this.from||"0"};Object(u["w"])(n).then((function(n){if(0==n.data.code){t.paperInfo=n.data.paperInfo;var a=t.paperInfo.employee.join(",");a.length>21?(t.paperInfo.personstr1=a.substring(0,18)+"...",t.paperInfo.personflag=!1):t.paperInfo.personflag=!0,document.title=n.data.paperInfo.name}e.loadFlag=!1}))},opentap:function(){var t=this.paperInfo.employee.join(",");t.length>21&&!this.paperInfo.personflag?(this.paperInfo.personflag=!0,this.$forceUpdate()):t.length>21&&this.paperInfo.personflag&&(this.paperInfo.personflag=!1,this.$forceUpdate())}},watch:{"$store.state.empid":{deep:!0,immediate:!0,handler:function(t,e){var n=this;if(t)var a=setInterval((function(){n.pid&&(clearInterval(a),n.testdetail())}),500)}}},mounted:function(){},beforeRouteEnter:function(t,e,n){"staffAssess"==e.name||"trainCamp"==e.name||"null"==e.name?t.meta.isBack=!0:t.meta.isBack=!1,n()},activated:function(){var t=this;this.$route.meta.isBack?(t.loadFlag=!0,this.pid=this.$route.query.pid,this.testdetail()):(this.pid=this.$route.query.pid,this.from=this.$route.query.from||"0")}},f=d,p=(n("5448"),n("2877")),h=Object(p["a"])(f,i,o,!1,null,"215cba8e",null);e["default"]=h.exports},"8a0b":function(t,e,n){},"9df2":function(t,e,n){"use strict";n.d(e,"v",(function(){return i})),n.d(e,"G",(function(){return o})),n.d(e,"c",(function(){return r})),n.d(e,"H",(function(){return s})),n.d(e,"M",(function(){return c})),n.d(e,"A",(function(){return l})),n.d(e,"e",(function(){return u})),n.d(e,"u",(function(){return d})),n.d(e,"t",(function(){return f})),n.d(e,"n",(function(){return p})),n.d(e,"j",(function(){return h})),n.d(e,"m",(function(){return m})),n.d(e,"i",(function(){return g})),n.d(e,"w",(function(){return b})),n.d(e,"x",(function(){return v})),n.d(e,"K",(function(){return O})),n.d(e,"s",(function(){return C})),n.d(e,"f",(function(){return A})),n.d(e,"a",(function(){return j})),n.d(e,"g",(function(){return B})),n.d(e,"J",(function(){return x})),n.d(e,"I",(function(){return y})),n.d(e,"E",(function(){return w})),n.d(e,"D",(function(){return _})),n.d(e,"C",(function(){return I})),n.d(e,"B",(function(){return k})),n.d(e,"l",(function(){return S})),n.d(e,"z",(function(){return R})),n.d(e,"L",(function(){return T})),n.d(e,"b",(function(){return $})),n.d(e,"h",(function(){return E})),n.d(e,"o",(function(){return N})),n.d(e,"p",(function(){return z})),n.d(e,"d",(function(){return F})),n.d(e,"y",(function(){return J})),n.d(e,"F",(function(){return L})),n.d(e,"q",(function(){return V})),n.d(e,"r",(function(){return q})),n.d(e,"k",(function(){return D}));var a=n("b775");function i(t){return Object(a["a"])({url:"/api/train/new",method:"post",data:t})}function o(t){return Object(a["a"])({url:"/api/train/trainClassList",method:"post",data:t})}function r(t){return Object(a["a"])({url:"/api/train/classDetail",method:"post",data:t})}function s(t){return Object(a["a"])({url:"/api/train/trainCourseList",method:"post",data:t})}function c(t){return Object(a["a"])({url:"/api/train/watch_feel",method:"post",data:t})}function l(t){return Object(a["a"])({url:"/api/train/thumbing",method:"post",data:t})}function u(t){return Object(a["a"])({url:"/api/train/commentAdd",method:"post",data:t})}function d(t){return Object(a["a"])({url:"/api/exam/submitPaper",method:"post",data:t})}function f(t){return Object(a["a"])({url:"/api/exam/get_questions",method:"post",data:t})}function p(t){return Object(a["a"])({url:"/api/exam/ranking",method:"post",data:t})}function h(t){return Object(a["a"])({url:"/api/train/courseDetail",method:"post",data:t})}function m(t){return Object(a["a"])({url:"/api/train/doneLogging",method:"post",data:t})}function g(t){return Object(a["a"])({url:"/client/train/courseDetail",method:"post",data:t})}function b(t){return Object(a["a"])({url:"/api/exam/paperdetail",method:"post",data:t})}function v(t){return Object(a["a"])({url:"/api/exam/paperlist",method:"post",data:t})}function O(t){return Object(a["a"])({url:"/api/exam/treat_correct_paper",method:"post",data:t})}function C(t){return Object(a["a"])({url:"/api/exam/get_papers",method:"post",data:t})}function A(t){return Object(a["a"])({url:"/api/exam/correct_papers_log",method:"post",data:t})}function j(t){return Object(a["a"])({url:"/api/exam/all_correct_papers",method:"post",data:t})}function B(t){return Object(a["a"])({url:"/api/exam/correct_papers_question_list",method:"post",data:t})}function x(t){return Object(a["a"])({url:"/api/train/all_complete",method:"post",data:t})}function y(t){return Object(a["a"])({url:"/api/train/all_org",method:"post",data:t})}function w(t){return Object(a["a"])({url:"/api/camp/read",method:"post",data:t})}function _(t){return Object(a["a"])({url:"/api/camp/plan",method:"post",data:t})}function I(t){return Object(a["a"])({url:"/api/camp/list",method:"post",data:t})}function k(t){return Object(a["a"])({url:"/api/camp/approve",method:"post",data:t})}function S(t){return Object(a["a"])({url:"/api/day_study/study",method:"post",data:t})}function R(t){return Object(a["a"])({url:"/api/day_study/setting",method:"post",data:t})}function T(t){return Object(a["a"])({url:"/api/day_study/update_study",method:"post",data:t})}function $(t){return Object(a["a"])({url:"/api/day_study/change_study_long",method:"post",data:t})}function E(t){return Object(a["a"])({url:"/api/train/coureseView",method:"post",data:t})}function N(t){return Object(a["a"])({url:"/api/train/get_train_class_cate",method:"post",data:t})}function z(t){return Object(a["a"])({url:"/api/train/get_train_class_label",method:"post",data:t})}function F(t){return Object(a["a"])({url:"/api/train/classView",method:"post",data:t})}function J(t){return Object(a["a"])({url:"/api/exam/answer",method:"post",data:t})}function L(t){return Object(a["a"])({url:"/client/train/trainClassList",method:"post",data:t})}function V(t){return Object(a["a"])({url:"/client/train/get_train_class_cate",method:"post",data:t})}function q(t){return Object(a["a"])({url:"/client/train/get_train_class_label",method:"post",data:t})}function D(t){return Object(a["a"])({url:"/client/index/signUp",method:"post",data:t})}},a15b:function(t,e,n){"use strict";var a=n("23e7"),i=n("e330"),o=n("44ad"),r=n("fc6a"),s=n("a640"),c=i([].join),l=o!=Object,u=s("join",",");a({target:"Array",proto:!0,forced:l||!u},{join:function(t){return c(r(this),void 0===t?",":t)}})},e17f:function(t,e,n){"use strict";n("68ef"),n("a71a"),n("9d70"),n("3743"),n("4d75"),n("e3b3"),n("bc1b"),n("1175"),n("4cf9"),n("2fcb")},e9de:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAA0VJREFUWEfFlttrE1EQxr85K1TxQRCKiIKCD0JFoaBQsCgIFgQfCl3b+OajNBuEmqRNt4VCbm26VdpN8y80vSCiiCKKiKLgDRQv6IMiqCiIggUVYc/I2fQS2yS76cXmMZyZ7/fNzpk5hDX+0RrrwwU43ZXeuWF9zY/zfR3f/gdQKDZSi5pfNXZf5wcXwDAHGaAXJNFqp8MvVxPC6D23F9LJA6jLJiM0A5A5AdDEakOEeofqIeUYA7sBbs0mo5NzPWCYqwthmAP7AaGc75oVV5X+pwlXCyJkDjQA2hiDdxaLLwIo9MPKVsKIZQ6CKA/C9oXiJQFWEiJoWocIrMq+tZR4WYCVgDB6Bo+AlTjVlhOvCLAciGC3dZTIdb65krgnwFIgjG7rGIjHAGzyEvcFUA1EsGfoOLFUzjf6EfcN4AfCiA00QwjlfL1f8TmA9u7MKQHxJZsKX600hstdUcPMtACknK/zI17IA8xNwqBpvSNgB0nodjp8wS8E2JkiaNNMGASY/IvTBAifsonINncStscsXQjkAWaQaMkmzl7yhoAN0JbCOf4CIKQcece5O8eREoFcOjw1vwt6rGYwjwOQxNDtVORKpWRnugf3OUSNxPK3AD0aTkWe+RPHHxC1ZRPhi4uacKaLFQRLh/Vcf/TaSqzm+d7BTwICdjJyeTbvoheRusdMPE6qEgTdTkRuLAdiVpyBaWJqW9joJZ9k7T2ZJsFuV7NkqedSnbeWAlHk/DsRB+xE9PrCPGXfhGqWM2OcSFWCdTsevVMNRJHzr2AZGE113iwVX/FRGoplDrNGeTBYwtFzya57fiDmnBM+E2kBO95xu1yc56u43exvJGh5YjCR1mInOx747PaPEhTIJcN3K533BFDBIXOogSHzDGJNQB+Jhx+XSlr0zd+zxMnRdOS+V8V8AbjDqss6QELmiYhJiBY7fvZpcfJ5cX6rCREYjocfeolXtYzcSvQO1bOUeTVz1bAaSUWeq/+LdsQbZnlyNBV94ke8agAVUJiAamy7rTlZ2AVsAXilMQJeE9H3NazkINjbv0dI7RwDTTMurkvhdIzGu174dV52ElaTIBSz6oTmOMOJztfVxBWf9d2ESxXwiltzgL+KQ7QwRXytGQAAAABJRU5ErkJggg=="}}]);