chunk-022028b0.22b6452b.js 3.2 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-022028b0"],{"3a01":function(e,t,n){},"667d":function(e,t,n){"use strict";n("3a01")},e6c5: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",[n("el-table",{ref:"table",attrs:{data:e.data.slice((e.page-1)*e.size,e.page*e.size),"highlight-current-row":!0,height:"650px",border:""}},[n("el-table-column",{attrs:{align:"center",width:"50"},scopedSlots:e._u([{key:"header",fn:function(t){return[n("el-checkbox",{staticClass:"returnCheck",attrs:{indeterminate:e.tableIsIndeterminate,scope:t},on:{change:e.handleChange},model:{value:e.checkAll,callback:function(t){e.checkAll=t},expression:"checkAll"}})]}},{key:"default",fn:function(t){var a=t.row;return[n("el-checkbox",{on:{change:function(t){return e.tableCheckboxChange(a)}},model:{value:a._selected,callback:function(t){e.$set(a,"_selected",t)},expression:"row._selected"}})]}}])}),n("el-table-column",{attrs:{label:"姓名",prop:"nickname",width:"75"}}),n("el-table-column",{attrs:{label:"身份证",prop:"cardId",width:"165"}}),n("el-table-column",{attrs:{label:"岗位",prop:"courseName",width:"120"}}),n("el-table-column",{attrs:{label:"工作单位",prop:"company","min-width":"140"}}),n("el-table-column",{attrs:{label:"座位号",prop:"seat",width:"85",align:"center"}}),n("el-table-column",{attrs:{label:"准考证",prop:"seat",width:"90"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[""==a.certificateUrl?n("el-button",{attrs:{type:"text"}},[e._v("生成中")]):n("el-button",{attrs:{type:"text"},on:{click:function(t){return e.download(a)}}},[e._v("下载")])]}}])})],1),n("el-pagination",{style:{float:"right",padding:"20px"},attrs:{"current-page":e.page,"page-size":e.size,"page-sizes":[10,20,30,50,100,1e3],total:e.data.length,layout:"total, prev, pager, next, jumper"},on:{"current-change":e.handleCurrentChange,"size-change":e.handleSizeChange}})],1)},l=[],i=(n("d3b7"),{name:"Api",data:function(){return{page:1,keyword:"",size:10,listKey:"userList",tableIsIndeterminate:!1,checkAll:!1}},props:["data","checkboxId"],watch:{checkboxId:function(){var e=this.data.every((function(e){return!!e._selected})),t=this.data.every((function(e){return!e._selected}));e?(this.tableIsIndeterminate=!1,this.checkAll=!0):t?(this.tableIsIndeterminate=!1,this.checkAll=!1):(this.checkAll=!1,this.tableIsIndeterminate=!0)}},methods:{handleChange:function(e){e?(this.$emit("handleSelectAll",this.listKey),this.tableIsIndeterminate=!1):(this.$emit("handleSelectNull",this.listKey),this.tableIsIndeterminate=!1),this.$forceUpdate()},tableCheckboxChange:function(e){var t=this,n=t.data.every((function(e){return!!e._selected})),a=t.data.every((function(e){return!e._selected}));n?(this.tableIsIndeterminate=!1,this.checkAll=!0):a?(this.tableIsIndeterminate=!1,this.checkAll=!1):(this.checkAll=!1,this.tableIsIndeterminate=!0),this.$forceUpdate()},dropUser:function(e,t){e.index=t,this.$emit("drop",e)},download:function(e){window.open(e.certificateUrl,"_blank")},handleSizeChange:function(e){this.size=e},handleCurrentChange:function(e){this.page=e}}}),c=i,r=(n("667d"),n("2877")),s=Object(r["a"])(c,a,l,!1,null,"7a8a2689",null);t["default"]=s.exports}}]);