| | |
| | | <div class="title"> |
| | | <span style="font-weight: bold">年度计划</span> |
| | | </div> |
| | | <div style="display: flex;justify-content: space-between;"> |
| | | <el-form :model="trainingPagination" ref="trainingPagination" size="small" :inline="true"> |
| | | <el-form-item label="姓名"> |
| | | <el-input v-model="trainingPagination.userName" class="search" clearable placeholder="请输入" size="small"></el-input> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <div style="display: flex;justify-content: space-between"> |
| | | <div style="display: flex;"> |
| | | <div style="margin-bottom: 18px;margin-right: 10px;display: flex;align-items: center;line-height: 32px;"> |
| | | <span style="width: 48px;font-size: 14px;font-weight: 700;color: #606266;">姓名</span> |
| | | <el-input v-model="trainingPagination.userName" class="search" |
| | | @keyup.enter.native="getPersonnelTraining(departId)" |
| | | clearable placeholder="请输入" size="small"></el-input> |
| | | </div> |
| | | <div style="line-height: 30px;"> |
| | | <el-button size="small" type="primary" @click="getPersonnelTraining(departId)">查询</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <lims-table :tableData="trainingTableData" :column="trainingColumn" |
| | | ref="trainingTableData" |
| | |
| | | clearable |
| | | format="yyyy" |
| | | placeholder="选择年" |
| | | @change="queryPersonnelDetailsPage(currentChangeRow.userId)" |
| | | size="small" |
| | | type="year" |
| | | value-format="yyyy"> |
| | |
| | | label: '培训内容', |
| | | prop: 'trainingContent' |
| | | }, { |
| | | label: '培训课时', |
| | | prop: 'educationBackground' |
| | | }, { |
| | | label: '课时', |
| | | prop: 'classHour' |
| | | }, { |
| | |
| | | this.getPersonnelTraining(this.departId); |
| | | }, |
| | | methods: { |
| | | // exportExcel() { |
| | | // this.outLoading = true; |
| | | // const name = this.isDepartment ? 'departmentId' : 'userId'; |
| | | // this.$axios.get(this.$api.personal.personTrackRecordExport + `&${name}=` + this.departId, { responseType: 'blob' }).then(res => { |
| | | // this.outLoading = false; |
| | | // this.$message.success('导出成功'); |
| | | // const blob = new Blob([res], { type: 'application/octet-stream' }); |
| | | // const url = URL.createObjectURL(blob); |
| | | // const link = document.createElement('a'); |
| | | // link.href = url; |
| | | // link.download = '培训记录.xlsx'; |
| | | // link.click(); |
| | | // }).catch(err => { |
| | | // this.outLoading = false; |
| | | // }) |
| | | // }, |
| | | // 查询 |
| | | refreshTable() { |
| | | this.getPersonnelTraining(this.departId); |