chunk-5220ca80.2b51ab65.js 4.4 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5220ca80"],{"37f9":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-container"},[n("div",{staticClass:"filter-container"},[n("el-button",{staticClass:"filter-item",attrs:{type:"primary"},on:{click:function(t){return e.printAll()}}},[e._v("\n 打印证明\n ")])],1),e._v(" "),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:e.list.slice((e.page-1)*e.pageSize,e.page*e.pageSize),border:"",fit:"","highlight-current-row":"","row-key":e.handleReserve},on:{"selection-change":e.handleSelectionChange}},[n("el-table-column",{attrs:{type:"selection","reserve-selection":!0,width:"55"}}),e._v(" "),n("el-table-column",{attrs:{label:"序号",type:"index",width:"40",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s((e.page-1)*e.pageSize+t.$index+1))])]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"姓名","min-width":"180"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[n("span",[e._v(e._s(a.nickname))])]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"身份证","min-width":"180"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[n("span",[e._v(e._s(a.cardId))])]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"课程名字","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[n("span",[e._v(e._s(a.name))])]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"安全知识","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[n("span",{style:"color:"+(a.gxs1>=a.xs1?"green":"red")},[e._v(e._s(e.scoreFmt(a.gxs1,a.xs1)))])]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"基础知识","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[n("span",{style:"color:"+(a.gxs2>=a.xs2?"green":"red")},[e._v(e._s(e.scoreFmt(a.gxs2,a.xs2)))])]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"操作实践","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[n("span",{style:"color:"+(a.gxs3>=a.xs3?"green":"red")},[e._v(e._s(e.scoreFmt(a.gxs3,a.xs3)))])]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"完成情况","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e.isFinish(a)?n("span",{staticStyle:{color:"green"}},[e._v("已经完成")]):n("span",{staticStyle:{color:"red"}},[e._v("还未完成")])]}}])})],1),e._v(" "),n("div",{staticClass:"page"},[n("el-pagination",{attrs:{"current-page":e.page,"page-sizes":[5,10,20,40],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.list.length},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)],1)},i=[],s=(n("96cf"),n("3b8d")),r=(n("8237"),n("b775"));function l(){return Object(r["a"])({url:"/SDataApi/admin/score_list",method:"post",params:JSON.stringify({})})}var o=n("ed08"),c={name:"InlineEditTable",data:function(){return{page:1,pageSize:10,list:[],selectedIDs:[],scoreFmt:o["g"],id:parseInt(this.$route.query.id),listLoading:!0}},created:function(){this.getList()},methods:{getList:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.listLoading=!0,this.id,e.next=4,l();case 4:t=e.sent,t||(this.listLoading=!1),this.list=t,this.listLoading=!1;case 8:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleSelectionChange:function(e){this.multipleSelection=e;var t=[];this.multipleSelection.map((function(e){t.push(e.id)})),this.selectedIDs=t,console.log("多选",this.selectedIDs)},handleReserve:function(e){return e.id},handleSizeChange:function(e){this.pageSize=e,console.log(this.pageSize)},handleCurrentChange:function(e){this.page=e,console.log(this.currentPage)},printAll:function(){alert("功能开发中")},isFinish:function(e){return e.gxs1>=e.xs1&&e.gxs2>=e.xs2&&e.gxs3>=e.xs3},back:function(){this.$router.go(-1)}}},u=c,d=(n("aefa"),n("2877")),g=Object(d["a"])(u,a,i,!1,null,"651a8394",null);t["default"]=g.exports},"93a4":function(e,t,n){},aefa:function(e,t,n){"use strict";var a=n("93a4"),i=n.n(a);i.a}}]);