chunk-295de268.f3d27a10.js 17 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-295de268"],{"09fe":function(t,a,n){},"0afc":function(t,a,n){t.exports=n.p+"img/noneData.919a3c84.png"},"348d":function(t,a,n){},4056:function(t,a,n){"use strict";n("68ef"),n("9d70"),n("3743"),n("09fe")},"44bf":function(t,a,n){"use strict";var e=n("2638"),i=n.n(e),r=n("d282"),s=n("a142"),o=n("ea8e"),c=n("ad06"),l=Object(r["a"])("image"),u=l[0],d=l[1];a["a"]=u({props:{src:String,fit:String,alt:String,round:Boolean,width:[Number,String],height:[Number,String],radius:[Number,String],lazyLoad:Boolean,iconPrefix:String,showError:{type:Boolean,default:!0},showLoading:{type:Boolean,default:!0},errorIcon:{type:String,default:"photo-fail"},loadingIcon:{type:String,default:"photo"}},data:function(){return{loading:!0,error:!1}},watch:{src:function(){this.loading=!0,this.error=!1}},computed:{style:function(){var t={};return Object(s["c"])(this.width)&&(t.width=Object(o["a"])(this.width)),Object(s["c"])(this.height)&&(t.height=Object(o["a"])(this.height)),Object(s["c"])(this.radius)&&(t.overflow="hidden",t.borderRadius=Object(o["a"])(this.radius)),t}},created:function(){var t=this.$Lazyload;t&&s["b"]&&(t.$on("loaded",this.onLazyLoaded),t.$on("error",this.onLazyLoadError))},beforeDestroy:function(){var t=this.$Lazyload;t&&(t.$off("loaded",this.onLazyLoaded),t.$off("error",this.onLazyLoadError))},methods:{onLoad:function(t){this.loading=!1,this.$emit("load",t)},onLazyLoaded:function(t){var a=t.el;a===this.$refs.image&&this.loading&&this.onLoad()},onLazyLoadError:function(t){var a=t.el;a!==this.$refs.image||this.error||this.onError()},onError:function(t){this.error=!0,this.loading=!1,this.$emit("error",t)},onClick:function(t){this.$emit("click",t)},genPlaceholder:function(){var t=this.$createElement;return this.loading&&this.showLoading?t("div",{class:d("loading")},[this.slots("loading")||t(c["a"],{attrs:{name:this.loadingIcon,classPrefix:this.iconPrefix},class:d("loading-icon")})]):this.error&&this.showError?t("div",{class:d("error")},[this.slots("error")||t(c["a"],{attrs:{name:this.errorIcon,classPrefix:this.iconPrefix},class:d("error-icon")})]):void 0},genImage:function(){var t=this.$createElement,a={class:d("img"),attrs:{alt:this.alt},style:{objectFit:this.fit}};if(!this.error)return this.lazyLoad?t("img",i()([{ref:"image",directives:[{name:"lazy",value:this.src}]},a])):t("img",i()([{attrs:{src:this.src},on:{load:this.onLoad,error:this.onError}},a]))}},render:function(){var t=arguments[0];return t("div",{class:d({round:this.round}),style:this.style,on:{click:this.onClick}},[this.genImage(),this.genPlaceholder(),this.slots()])}})},"66b9":function(t,a,n){"use strict";n("68ef"),n("9d70"),n("3743"),n("e3b3"),n("bc1b")},"9df2":function(t,a,n){"use strict";n.d(a,"v",(function(){return i})),n.d(a,"G",(function(){return r})),n.d(a,"c",(function(){return s})),n.d(a,"H",(function(){return o})),n.d(a,"M",(function(){return c})),n.d(a,"A",(function(){return l})),n.d(a,"e",(function(){return u})),n.d(a,"u",(function(){return d})),n.d(a,"t",(function(){return f})),n.d(a,"n",(function(){return h})),n.d(a,"j",(function(){return p})),n.d(a,"m",(function(){return g})),n.d(a,"i",(function(){return m})),n.d(a,"w",(function(){return v})),n.d(a,"x",(function(){return C})),n.d(a,"K",(function(){return b})),n.d(a,"s",(function(){return _})),n.d(a,"f",(function(){return x})),n.d(a,"a",(function(){return w})),n.d(a,"g",(function(){return j})),n.d(a,"J",(function(){return y})),n.d(a,"I",(function(){return O})),n.d(a,"E",(function(){return P})),n.d(a,"D",(function(){return I})),n.d(a,"C",(function(){return L})),n.d(a,"B",(function(){return A})),n.d(a,"l",(function(){return k})),n.d(a,"z",(function(){return S})),n.d(a,"L",(function(){return E})),n.d(a,"b",(function(){return B})),n.d(a,"h",(function(){return T})),n.d(a,"o",(function(){return J})),n.d(a,"p",(function(){return $})),n.d(a,"d",(function(){return Q})),n.d(a,"y",(function(){return U})),n.d(a,"F",(function(){return D})),n.d(a,"q",(function(){return F})),n.d(a,"r",(function(){return z})),n.d(a,"k",(function(){return N}));var e=n("b775");function i(t){return Object(e["a"])({url:"/api/train/new",method:"post",data:t})}function r(t){return Object(e["a"])({url:"/api/train/trainClassList",method:"post",data:t})}function s(t){return Object(e["a"])({url:"/api/train/classDetail",method:"post",data:t})}function o(t){return Object(e["a"])({url:"/api/train/trainCourseList",method:"post",data:t})}function c(t){return Object(e["a"])({url:"/api/train/watch_feel",method:"post",data:t})}function l(t){return Object(e["a"])({url:"/api/train/thumbing",method:"post",data:t})}function u(t){return Object(e["a"])({url:"/api/train/commentAdd",method:"post",data:t})}function d(t){return Object(e["a"])({url:"/api/exam/submitPaper",method:"post",data:t})}function f(t){return Object(e["a"])({url:"/api/exam/get_questions",method:"post",data:t})}function h(t){return Object(e["a"])({url:"/api/exam/ranking",method:"post",data:t})}function p(t){return Object(e["a"])({url:"/api/train/courseDetail",method:"post",data:t})}function g(t){return Object(e["a"])({url:"/api/train/doneLogging",method:"post",data:t})}function m(t){return Object(e["a"])({url:"/client/train/courseDetail",method:"post",data:t})}function v(t){return Object(e["a"])({url:"/api/exam/paperdetail",method:"post",data:t})}function C(t){return Object(e["a"])({url:"/api/exam/paperlist",method:"post",data:t})}function b(t){return Object(e["a"])({url:"/api/exam/treat_correct_paper",method:"post",data:t})}function _(t){return Object(e["a"])({url:"/api/exam/get_papers",method:"post",data:t})}function x(t){return Object(e["a"])({url:"/api/exam/correct_papers_log",method:"post",data:t})}function w(t){return Object(e["a"])({url:"/api/exam/all_correct_papers",method:"post",data:t})}function j(t){return Object(e["a"])({url:"/api/exam/correct_papers_question_list",method:"post",data:t})}function y(t){return Object(e["a"])({url:"/api/train/all_complete",method:"post",data:t})}function O(t){return Object(e["a"])({url:"/api/train/all_org",method:"post",data:t})}function P(t){return Object(e["a"])({url:"/api/camp/read",method:"post",data:t})}function I(t){return Object(e["a"])({url:"/api/camp/plan",method:"post",data:t})}function L(t){return Object(e["a"])({url:"/api/camp/list",method:"post",data:t})}function A(t){return Object(e["a"])({url:"/api/camp/approve",method:"post",data:t})}function k(t){return Object(e["a"])({url:"/api/day_study/study",method:"post",data:t})}function S(t){return Object(e["a"])({url:"/api/day_study/setting",method:"post",data:t})}function E(t){return Object(e["a"])({url:"/api/day_study/update_study",method:"post",data:t})}function B(t){return Object(e["a"])({url:"/api/day_study/change_study_long",method:"post",data:t})}function T(t){return Object(e["a"])({url:"/api/train/coureseView",method:"post",data:t})}function J(t){return Object(e["a"])({url:"/api/train/get_train_class_cate",method:"post",data:t})}function $(t){return Object(e["a"])({url:"/api/train/get_train_class_label",method:"post",data:t})}function Q(t){return Object(e["a"])({url:"/api/train/classView",method:"post",data:t})}function U(t){return Object(e["a"])({url:"/api/exam/answer",method:"post",data:t})}function D(t){return Object(e["a"])({url:"/client/train/trainClassList",method:"post",data:t})}function F(t){return Object(e["a"])({url:"/client/train/get_train_class_cate",method:"post",data:t})}function z(t){return Object(e["a"])({url:"/client/train/get_train_class_label",method:"post",data:t})}function N(t){return Object(e["a"])({url:"/client/index/signUp",method:"post",data:t})}},a15b:function(t,a,n){"use strict";var e=n("23e7"),i=n("e330"),r=n("44ad"),s=n("fc6a"),o=n("a640"),c=i([].join),l=r!=Object,u=o("join",",");e({target:"Array",proto:!0,forced:l||!u},{join:function(t){return c(s(this),void 0===t?",":t)}})},a92e:function(t,a,n){"use strict";var e=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"nonedata",staticStyle:{margin:"auto"}},[e("div",{directives:[{name:"show",rawName:"v-show",value:"0"==t.len&&t.datashow,expression:"len == '0' && datashow"}],staticClass:"noneDataBox"},[e("img",{attrs:{src:n("0afc")}}),e("div",[t._v(t._s(t.text))])])])},i=[],r=(n("a9e3"),{name:"nonedata",props:{len:{type:Number,default:0},datashow:{type:Boolean,default:!1},text:{type:String,default:"暂无数据展示"}},data:function(){return{}},created:function(){},methods:{},mounted:function(){}}),s=r,o=(n("bf10"),n("2877")),c=Object(o["a"])(s,e,i,!1,null,"e6e9b0c4",null);a["a"]=c.exports},abbe:function(t,a,n){"use strict";n("348d")},afd5:function(t,a,n){"use strict";n.r(a);var e,i=function(){var t=this,a=t.$createElement,n=t._self._c||a;return n("div",{staticClass:"page"},[n("div",{staticClass:"trainingProgress"},[n("span",{staticClass:"mb20"},[t._v("训练进度")]),n("span",{staticClass:"font42 mb40 fontWeight"},[t._v(t._s(t.trainProgress.speed))]),n("div",{staticClass:"trainingProgress-record"},[n("div",{staticClass:"flex-sub flex-column align-center justify-center"},[n("span",{staticClass:"mb20 font24"},[t._v("总计")]),n("span",{staticClass:"font24"},[t._v(t._s(t.trainProgress.count)+"节")])]),n("div",{staticClass:"flex-sub flex-column align-center justify-center"},[n("span",{staticClass:"mb20 font24"},[t._v("已完成")]),n("span",{staticClass:"font24"},[t._v(t._s(t.trainProgress.passed_count)+"节")])]),n("div",{staticClass:"flex-sub flex-column align-center justify-center"},[n("span",{staticClass:"mb20 font24"},[t._v("待训练")]),n("span",{staticClass:"font24"},[t._v(t._s(t.trainProgress.no_passed_count)+"节")])])]),n("span",{staticClass:"mt40 colorC4CDFF"},[t._v("通过训练营标准:学习进度完成100%,考试全部及格")])]),n("div",{staticClass:"progress mt40 flex-row"},[t._l(t.trainPlan,(function(a,e){return[a.checked?n("div",{key:a.id,staticClass:"flex-none flex-row align-center"},[n("div",{staticClass:"circle-1 flex-row justify-center align-center"},[n("div",{staticClass:"circle-2 flex-row justify-center align-center"},[n("span",[t._v(t._s(e+1))])])]),t._m(0,!0)]):n("div",{key:a.id,staticClass:"flex-none flex-row align-center"},[t._m(1,!0),t._m(2,!0)])]})),t.trainPlan.length?n("div",{staticClass:"flex-none flex-row align-center"},[t._m(3)]):t._e()],2),t.trainPlan.length?n("div",{staticClass:"trainPlanTitle"},[n("div",{staticClass:"line-1"}),n("div",{staticClass:"line-2 mlr20"}),n("span",{staticClass:"color485CCC font32 fontWeight"},[t._v(t._s(t.planTitle))]),n("div",{staticClass:"line-2 mlr20"}),n("div",{staticClass:"line-1"})]):t._e(),n("div",{staticClass:"classProgress"},[t._l(t.trainPlanList,(function(a,e){return[0==a.type?n("div",{key:e,staticClass:"classProgress-item",on:{click:function(n){return t.toJumpPage(a)}}},[n("div",{staticClass:"flex-column"},[n("div",{staticClass:"flex-row justify-between align-center"},[n("span",{staticClass:"font28"},[t._v("课程:"+t._s(a.title))])]),n("div",{staticClass:"mt20 flex-row align-center"},[n("span",{staticClass:"color666"},[t._v("训练人数:"+t._s(a.count))]),n("span",{staticClass:"color666 ml20"},[t._v(t._s(a.source)+"张课程")])])]),n("div",{staticClass:"flex-row"},[n("div",{staticClass:"flex-sub flex-column"},[n("span",{staticClass:"color999"},[t._v("进度:"+t._s(a.speed)+"%")]),n("div",{staticClass:"width90"},[n("div",{staticClass:"progressVal",style:{width:a.speed+"%"}})])]),n("div",{staticClass:"flex-sub flex-row justify-end align-end"},[t._e(),n("span",{staticClass:"color666"},[t._v(t._s(a.passed_count)+"人已训练完成")])])])]):n("div",{key:e,staticClass:"classProgress-item",on:{click:function(n){return t.toJumpPage(a)}}},[n("div",{staticClass:"flex-column"},[n("div",{staticClass:"flex-row justify-between align-center"},[n("span",{staticClass:"font28"},[t._v("试卷:"+t._s(a.title))]),n("span",{staticClass:"color485CCC"},[t._v(t._s(a.speed))])])]),n("div",{staticClass:"flex-row"},[n("div",{staticClass:"flex-sub flex-row align-end"},[n("span",{staticClass:"color666"},[t._v("训练人数:"+t._s(a.count))]),n("span",{staticClass:"color666 ml20"})]),n("div",{staticClass:"flex-sub flex-row justify-end align-end"},[t._e(),n("span",{staticClass:"color666"},[t._v(t._s(a.passed_count)+"人已训练完成")])])])])]})),n("nonedata",{attrs:{len:t.trainPlanList.length,datashow:t.datashow}})],2),t.trainPlan.length?n("div",{staticClass:"footer-btn flex-row justify-center"},[t.isShowPre?n("van-button",{staticClass:"pre-btn",attrs:{type:"info",loading:t.ploading},on:{click:t.preTask}},[t._v("上一任务 ")]):t._e(),t.isShowNext?n("van-button",{staticClass:"next-btn ml20",attrs:{type:"info",loading:t.nloading},on:{click:t.nextTask}},[t._v("下一任务 ")]):n("van-button",{staticClass:"approval-btn ml20",class:"100%"==t.trainProgress.speed?"bg5567F8":"no-approval-btn",attrs:{type:"info",loading:t.aloading},on:{click:t.approval}},[t._v("申请转正 ")])],1):t._e(),n("nonedata",{attrs:{len:t.trainPlan.length,datashow:t.trainPlanShow}})],1)},r=[function(){var t=this,a=t.$createElement,n=t._self._c||a;return n("div",{staticClass:"circle-box"},[n("div",{staticClass:"circle-item"}),n("div",{staticClass:"circle-item"}),n("div",{staticClass:"circle-item"}),n("div",{staticClass:"circle-item"}),n("div",{staticClass:"circle-item"})])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"circle-gray1 flex-row justify-center align-center relative"},[e("div",{staticClass:"circle-gray2 flex-row justify-center align-center"},[e("img",{attrs:{src:n("f82a"),alt:"",width:"15px",height:"15px"}})]),e("div",{staticClass:"tips"})])},function(){var t=this,a=t.$createElement,n=t._self._c||a;return n("div",{staticClass:"circle-box"},[n("div",{staticClass:"circle-item"}),n("div",{staticClass:"circle-item"}),n("div",{staticClass:"circle-item"}),n("div",{staticClass:"circle-item"}),n("div",{staticClass:"circle-item"})])},function(){var t=this,a=t.$createElement,n=t._self._c||a;return n("div",{staticClass:"circle-gray1 flex-row justify-center align-center relative"},[n("div",{staticClass:"circle-gray2 flex-row justify-center align-center"},[n("span",[t._v("结束")])])])}],s=(n("e7e5"),n("d399")),o=n("fc11"),c=(n("66b9"),n("b650")),l=(n("4056"),n("44bf")),u=(n("b0c0"),n("4de4"),n("d3b7"),n("a15b"),n("ac1f"),n("1276"),n("a92e")),d=n("9df2"),f={components:(e={},Object(o["a"])(e,l["a"].name,l["a"]),Object(o["a"])(e,c["a"].name,c["a"]),Object(o["a"])(e,"nonedata",u["a"]),e),data:function(){return{trainProgress:{},trainPlan:[],trainPlanList:[],curIndex:sessionStorage.getItem("curIndex")?sessionStorage.getItem("curIndex"):null,datashow:!1,ploading:!1,nloading:!1,aloading:!1,trainPlanShow:!1}},computed:{isShowPre:function(){return this.curIndex>0},isShowNext:function(){return this.curIndex!=this.trainPlan.length-1},planTitle:function(){return(this.curIndex||0==this.curIndex)&&this.trainPlan.length&&this.trainPlan[this.curIndex].title?this.trainPlan[this.curIndex].title:"计划名称"}},mounted:function(){this.getTrainCampRead()},methods:{getTrainCampRead:function(){var t=this;d["E"]({}).then((function(a){t.trainProgress=a.data.data,t.getTrainCampPlan()}))},getTrainCampPlan:function(){var t=this;this.trainPlanShow=!1,d["D"]({camp_id:this.trainProgress.camp_id}).then((function(a){if(t.trainPlanShow=!0,t.trainPlan=a.data.data,t.curIndex||"0"==t.curIndex)t.getTrainCampList(t.trainPlan[t.curIndex].id);else{var n=t.trainPlan.filter((function(t,a){if(t.checked)return t["index"]=a,t}));n.length&&(t.curIndex=n[n.length-1].index,sessionStorage.setItem("curIndex",t.curIndex),t.getTrainCampList(n[n.length-1].id))}})).catch((function(a){t.trainPlanShow=!0}))},getTrainCampList:function(t){var a=this;s["a"].loading({message:"加载中...",forbidClick:!0}),this.datashow=!1,d["C"]({plan_id:t}).then((function(t){s["a"].clear(),a.ploading=!1,a.datashow=!0,a.trainPlanList=t.data.data}))},preTask:function(){this.ploading=!0,this.curIndex--,this.getTrainCampList(this.trainPlan[this.curIndex].id),sessionStorage.setItem("curIndex",this.curIndex)},nextTask:function(){var t=this;this.nloading=!0,d["D"]({camp_id:this.trainProgress.camp_id}).then((function(a){t.nloading=!1,t.trainPlan=a.data.data,t.curIndex++,t.trainPlan[t.curIndex].checked?(t.getTrainCampList(t.trainPlan[t.curIndex].id),sessionStorage.setItem("curIndex",t.curIndex)):(Object(s["a"])({message:"未到解锁时间"}),t.curIndex--)}))},approval:function(){var t=this;"100%"==this.trainProgress.speed?(this.aloading=!0,d["B"]({}).then((function(a){t.aloading=!1,"0"==a.data.code&&Object(s["a"])({message:"申请成功"})}))):Object(s["a"])({message:"请先完成训练计划"})},toJumpPage:function(t){var a=this.trainProgress.start_date.split("-").join("/"),n=this.utils.nowdayDiff(a);if(n<0)return Object(s["a"])({message:"训练营暂未开始!"}),!1;"0"==t.type?this.$router.push({name:"trainmsg",query:{from:"1",tid:t.con_id}}):this.$router.push({name:"assessMsg",query:{from:"1",pid:t.con_id}})}}},h=f,p=(n("abbe"),n("2877")),g=Object(p["a"])(h,i,r,!1,null,"0c42a38c",null);a["default"]=g.exports},bf10:function(t,a,n){"use strict";n("c93c")},c93c:function(t,a,n){},f82a:function(t,a){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAelJREFUWEftl7FOVUEQhr//BUyQUkAptIDCggKNJmqw1U5M7FA6EhIqeQTpjImdGBoTA522GiXRqIWFCaEgJCBoiYUv8JNNzjXHw7l35+CJqHHKO7P/fGd2Z3avOGLTEefn7wOwPQ2cB84CY0UFPwKfgHeSHjWpaqMK2H4BTGQSvJR0NQoRBrC9BowGhTclnY7EhgBs3wKeVATvAhvFb2eAhYp/TtL9HEQWwHYfkPZ4uCQ2LGm7LG77FLBVSXggrgoUAbgJPC0tvCjpbd2X2b4AvCn5piQt9apCBCCd6juFyI6kk70EbX8GhoqYJUlTvwrwCrhciLyWdCUD0Cg+UoFGgrYbxf/ZALZHgIflLQBWM611qRI/I2m925quFbC9CNzO9XHQ/1hS5yD/tKQWwPYNYDkoHg2blLQSmgO2y60XTZCLW5SULrJQBconuZvwV+BB4ZwFTmQIalu42xZEAH5MxJoJWMfSKsAHSecqd8F7YLxHFVoF+CapvwKwBxz/XQApT7qQOq2VWjZdRL2s1Qp0EnXuhXRmcvZvAswUn53Gdc4aVeAZcC2n2ND/XNL16CC6B6Q3X5u2IGk+CjAA7LaZHRiU9CUEkIJsp9GaRm164x87JMx3IP2XmJWURvcByz5IDpk4vOw/wD6bDL8h/ZkYrgAAAABJRU5ErkJggg=="}}]);