1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-8ea53ac4"],{"37f9":function(e,t,n){"use strict";n.r(t);var s=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 s=t.row;return[n("span",[e._v(e._s(s.nickname))])]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"身份证","min-width":"180"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[n("span",[e._v(e._s(s.cardId))])]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"课程名字","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[n("span",[e._v(e._s(s.name))])]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"安全知识","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[n("span",{style:"color:"+(s.gxs1>=s.xs1?"green":"red")},[e._v(e._s(e.scoreFmt(s.gxs1,s.xs1)))])]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"基础知识","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[n("span",{style:"color:"+(s.gxs2>=s.xs2?"green":"red")},[e._v(e._s(e.scoreFmt(s.gxs2,s.xs2)))])]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"操作实践","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[n("span",{style:"color:"+(s.gxs3>=s.xs3?"green":"red")},[e._v(e._s(e.scoreFmt(s.gxs3,s.xs3)))])]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"完成情况","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isFinish(s)?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)},a=[],i=(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(i["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.map((function(e){return e.gxs1=+e.gxs1,e.gxs2=+e.gxs2,e.gxs3=+e.gxs3,e.xs1=+e.xs1,e.xs2=+e.xs2,e.xs3=+e.xs3,e})),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("f5b5"),n("2877")),g=Object(d["a"])(u,s,a,!1,null,"0d9f64d9",null);t["default"]=g.exports},"3a66":function(e,t,n){},f5b5:function(e,t,n){"use strict";var s=n("3a66"),a=n.n(s);a.a}}]);
|