chunk-47a29fc9.d1c96cce.js 2.9 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-47a29fc9"],{"3eea":function(t,e,n){"use strict";var a=n("cfed"),r=n.n(a);r.a},"8a6a":function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"app-container"},[n("div",{staticClass:"filter-container"},[n("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-back"},on:{click:function(e){return t.back()}}},[t._v("\n 后退\n ")])],1),t._v(" "),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.list,border:"",fit:"","highlight-current-row":""}},[n("el-table-column",{attrs:{align:"center",label:"Id",width:"80"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[n("span",[t._v(t._s(a.id))])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"课程名字","min-width":"180"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[n("span",[t._v(t._s(a.name))])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"课程分类","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[n("span",[t._v(t._s(a.cname+"-"+a.level))])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"学习内容","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[n("span",[t._v(t._s(a.tname))])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"完成进度","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[n("span",{style:"color:"+a.color},[t._v(t._s(a.percent))])]}}])}),t._v(" "),n("el-table-column",{attrs:{"min-width":"150px",label:"最后学习时间"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[n("span",[t._v(t._s(a.prevTick))])]}}])})],1)],1)},r=[],i=(n("96cf"),n("3b8d")),l=(n("8237"),n("c24f")),s=n("ed08"),c={name:"InlineEditTable",data:function(){return{list:[],id:parseInt(this.$route.query.id),listLoading:!0}},created:function(){this.getList()},methods:{getList:function(){var t=Object(i["a"])(regeneratorRuntime.mark((function t(){var e,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.listLoading=!0,e=this.id,t.next=4,Object(l["c"])({id:e});case 4:n=t.sent,n||(this.listLoading=!1),this.list=n.map((function(t){var e=parseInt(t.useTime/t.xs/36)||0;return e>=100?(t.color="green",t.percent="已经完成"):(t.percent="完成"+e+"%",t.color="red"),t.prevTick=t.prevTick&&Object(s["h"])(t.prevTick)||"还未开始学习",t})),this.listLoading=!1;case 8:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),back:function(){this.$router.go(-1)}}},o=c,u=(n("3eea"),n("2877")),d=Object(u["a"])(o,a,r,!1,null,"7ad78d1c",null);e["default"]=d.exports},cfed:function(t,e,n){}}]);