(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6c1eb128"],{"0ef3":function(t,e,a){"use strict";var n=a("52d4"),i=a.n(n);i.a},1107:function(t,e,a){"use strict";a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){return r})),a.d(e,"b",(function(){return s}));var n=a("b775");function i(t){return Object(n["a"])({url:"/app/train/queryTrainPlanPage",method:"get",params:t})}function r(t){return Object(n["a"])({url:"/app/train/queryCourseByTrainingPlanId",method:"get",params:t})}function s(t){return Object(n["a"])({url:"/app/train/queryQuestionBankByTrainingPlanId",method:"get",params:t})}},"52d4":function(t,e,a){},"77e3":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"container"},[a("Header",{attrs:{title:"培训列表"}}),a("van-pull-refresh",{staticStyle:{height:"calc(100% - 50px)"},on:{refresh:t.onRefresh},model:{value:t.isLoading,callback:function(e){t.isLoading=e},expression:"isLoading"}},[a("van-tabs",{attrs:{color:"white",background:"#1c4990","title-active-color":"white","title-inactive-color":"#ccc",swipeable:"",animated:""},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("van-tab",{attrs:{title:"课程",name:"1"}},[a("div",{staticClass:"main"},[a("ul",t._l(t.list,(function(e,n){return a("van-swipe-cell",{key:n},[a("li",{class:[10===e.dangerStatus?"itemLi":"itemLi1"],on:{click:function(a){return t.seeItem(e.id)}}},[a("div",{staticClass:"itemTop"},[a("h4",[t._v(t._s(e.dangerName))])]),a("div",{staticClass:"cont"},[e.coverPhoto?a("img",{staticClass:"img",attrs:{src:e.coverPhoto,alt:""}}):a("div",{staticClass:"none_box img"},[t._v(" 暂无封面 ")]),a("div",{staticClass:"text"},[a("p",[t._v(" 名称:"),a("span",[t._v(t._s(e.trainingPlanName))])]),a("p",[t._v(" 学习开始时间:"),a("span",[t._v(t._s(e.learningStartTime))])]),a("p",[t._v(" 学习结束时间:"),a("span",[t._v(t._s(e.learningEndTime))])])])]),a("div",{staticClass:"cont",staticStyle:{"justify-content":"flex-end"}},[a("van-button",{staticStyle:{width:"1rem"},attrs:{type:"primary",size:"mini"},on:{click:function(a){return a.stopPropagation(),t.goExamination(e.id)}}},[t._v("去考试")])],1)])])})),1)])]),a("van-tab",{attrs:{title:"考试记录",name:"2"}},[a("div",{staticClass:"main"})])],1)],1)],1)},i=[],r=(a("9a83"),a("f564")),s=(a("96cf"),a("1da1")),c=a("5530"),o=a("2f62"),u=a("1107"),l={name:"TrainList",data:function(){return{isLoading:!1,activeName:"1",queryParams:{pageNo:1,pageSize:10},list:[]}},computed:Object(c["a"])({},Object(o["b"])("baseUrl",["baseUrl"])),mounted:function(){this.initList()},methods:{initList:function(){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function e(){var a,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(u["c"])(t.queryParams);case 2:if(a=e.sent,n=a.data,200===n.code){e.next=6;break}return e.abrupt("return",Object(r["a"])({type:"danger",message:n.msg}));case 6:console.log(n.data.list),t.list=n.data.list;case 8:case"end":return e.stop()}}),e)})))()},onRefresh:function(){this.initList(),this.isLoading=!1},seeItem:function(t){this.$router.push({path:"/course",query:{id:t}})},goExamination:function(t){this.$router.push({path:"/examination",query:{id:t}})}}},d=l,m=(a("0ef3"),a("2877")),p=Object(m["a"])(d,n,i,!1,null,"72998fa4",null);e["default"]=p.exports}}]);