1、新增excel支持

2、修改动态表格bug
liujun-2024-09-04-九公司人员定位
liujun 2024-07-30 14:48:41 +08:00
parent f699d2c125
commit a8683a2125
1 changed files with 31 additions and 35 deletions

View File

@ -44,8 +44,7 @@
stripe stripe
highlight-current-row highlight-current-row
@selection-change="selectionChange" @selection-change="selectionChange"
@select-all="selectAll" @select-all="selectAll">
@row-click="rowClick">
<!-- 固定列 --> <!-- 固定列 -->
<el-table-column :selectable="handleSelectWithDifferentStatus" type="selection" width="55" fixed align="center" /> <el-table-column :selectable="handleSelectWithDifferentStatus" type="selection" width="55" fixed align="center" />
@ -99,42 +98,42 @@
<el-table-column v-if="false" prop="workExprien" label="在港工作经历(年)" align="center" width="120"/> <el-table-column v-if="false" prop="workExprien" label="在港工作经历(年)" align="center" width="120"/>
<el-table-column prop="personEdcaton" label="人员学历" align="center"> <el-table-column v-if="showColumn('personEducation')" prop="personEducation" label="人员学历" align="center">
<el-table-column prop="BELOW_HIGH_SCHOOL" label="高中以下" align="center" width="120"/> <el-table-column v-if="showColumn('BELOW_HIGH_SCHOOL')" prop="BELOW_HIGH_SCHOOL" label="高中以下" align="center" width="120"/>
<el-table-column prop="HIGH_SCHOOL" label="高中" align="center" width="120"/> <el-table-column v-if="showColumn('HIGH_SCHOOL')" prop="HIGH_SCHOOL" label="高中" align="center" width="120"/>
<el-table-column prop="TECHNICAL_SCHOOL" label="技工" align="center" width="120"/> <el-table-column v-if="showColumn('TECHNICAL_SCHOOL')" prop="TECHNICAL_SCHOOL" label="技工" align="center" width="120"/>
<el-table-column prop="TECHNICAL_SECONDARY_SCHOOL" label="中专或中等技术学校" align="center" width="130"/> <el-table-column v-if="showColumn('TECHNICAL_SECONDARY_SCHOOL')" prop="TECHNICAL_SECONDARY_SCHOOL" label="中专或中等技术学校" align="center" width="130"/>
<el-table-column prop="JUNIOR_COLLEGE" label="大学专科或专科院校" align="center" width="130"/> <el-table-column v-if="showColumn('JUNIOR_COLLEGE')" prop="JUNIOR_COLLEGE" label="大学专科或专科院校" align="center" width="130"/>
<el-table-column prop="UNDERGRADUATE" label="大学本科" align="center" width="120"/> <el-table-column v-if="showColumn('UNDERGRADUATE')" prop="UNDERGRADUATE" label="大学本科" align="center" width="120"/>
<el-table-column prop="ABOVE_UNDERGRADUATE" label="大学本科以上" align="center" width="120"/> <el-table-column v-if="showColumn('ABOVE_UNDERGRADUATE')" prop="ABOVE_UNDERGRADUATE" label="大学本科以上" align="center" width="120"/>
</el-table-column> </el-table-column>
<el-table-column prop="man" label="男职工" align="center"> <el-table-column v-if="showColumn('man')" prop="man" label="男职工" align="center">
<el-table-column prop="MAN_COUNT" label="人数" align="center" width="120"/> <el-table-column v-if="showColumn('MAN_COUNT')" prop="MAN_COUNT" label="人数" align="center" width="120"/>
<el-table-column prop="MAN_PERCENT" label="占比" align="center" width="120"/> <el-table-column v-if="showColumn('MAN_PERCENT')" prop="MAN_PERCENT" label="占比" align="center" width="120"/>
</el-table-column> </el-table-column>
<el-table-column prop="woman" label="女职工" align="center"> <el-table-column v-if="showColumn('woman')" prop="woman" label="女职工" align="center">
<el-table-column prop="WOMAN_COUNT" label="人数" align="center" width="120"/> <el-table-column v-if="showColumn('WOMAN_COUNT')" prop="WOMAN_COUNT" label="人数" align="center" width="120"/>
<el-table-column prop="WOMAN_PERCENT" label="占比" align="center" width="120"/> <el-table-column v-if="showColumn('WOMAN_PERCENT')" prop="WOMAN_PERCENT" label="占比" align="center" width="120"/>
</el-table-column> </el-table-column>
<el-table-column prop="insurance" label="保险相关" align="center"> <el-table-column v-if="showColumn('insurance')" prop="insurance" label="保险相关" align="center">
<el-table-column prop="SOCIAL" label="有社保人数" align="center" width="120"/> <el-table-column v-if="showColumn('SOCIAL')" prop="SOCIAL" label="有社保人数" align="center" width="120"/>
<el-table-column prop="OCCUPATIONAL_INJURY" label="有工伤保险人数" align="center" width="120"/> <el-table-column v-if="showColumn('OCCUPATIONAL_INJURY')" prop="OCCUPATIONAL_INJURY" label="有工伤保险人数" align="center" width="120"/>
<el-table-column prop="COMMERCIAL_INSURANCE" label="有商业保险人数" align="center" width="120"/> <el-table-column v-if="showColumn('COMMERCIAL_INSURANCE')" prop="COMMERCIAL_INSURANCE" label="有商业保险人数" align="center" width="120"/>
<el-table-column prop="OTHER_INSURANCE" label="其他保险人数" align="center" width="120"/> <el-table-column v-if="showColumn('OTHER_INSURANCE')" prop="OTHER_INSURANCE" label="其他保险人数" align="center" width="120"/>
<el-table-column prop="NO_INSURANCE" label="无保险人数" align="center" width="120"/> <el-table-column v-if="showColumn('NO_INSURANCE')" prop="NO_INSURANCE" label="无保险人数" align="center" width="120"/>
</el-table-column> </el-table-column>
<el-table-column prop="numOfSpecialOperation" label="取得特种作业证书人数" align="center"> <el-table-column v-if="showColumn('numOfSpecialOperation')" prop="numOfSpecialOperation" label="取得特种作业证书人数" align="center">
<el-table-column prop="SPECIAL_TOTAL" label="总人数" align="center" width="120"/> <el-table-column v-if="showColumn('SPECIAL_TOTAL')" prop="SPECIAL_TOTAL" label="总人数" align="center" width="120"/>
<el-table-column prop="ELECTRICIAN" label="电工作业" align="center" width="120"/> <el-table-column v-if="showColumn('ELECTRICIAN')" prop="ELECTRICIAN" label="电工作业" align="center" width="120"/>
<el-table-column prop="WELDING" label="焊接与热切割作业" align="center" width="120"/> <el-table-column v-if="showColumn('WELDING')" prop="WELDING" label="焊接与热切割作业" align="center" width="120"/>
<el-table-column prop="HIGH_WORK" label="高处作业" align="center" width="120"/> <el-table-column v-if="showColumn('HIGH_WORK')" prop="HIGH_WORK" label="高处作业" align="center" width="120"/>
<el-table-column prop="CRANE_OPERATION" label="起重机械作业" align="center" width="120"/> <el-table-column v-if="showColumn('CRANE_OPERATION')" prop="CRANE_OPERATION" label="起重机械作业" align="center" width="120"/>
<el-table-column prop="MOTOR_VEHICLE" label="企业内机动车辆作业" align="center" width="130"/> <el-table-column v-if="showColumn('MOTOR_VEHICLE')" prop="MOTOR_VEHICLE" label="企业内机动车辆作业" align="center" width="130"/>
<el-table-column prop="OTHER_SPECIAL" label="其他特种作业" align="center" width="120"/> <el-table-column v-if="showColumn('OTHER_SPECIAL')" prop="OTHER_SPECIAL" label="其他特种作业" align="center" width="120"/>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -152,8 +151,8 @@
import Pagination from '@/components/Pagination' import Pagination from '@/components/Pagination'
import { requestFN } from '@/utils/request' import { requestFN } from '@/utils/request'
import waves from '@/directive/waves' import waves from '@/directive/waves'
import axios from 'axios' // import axios from 'axios'
import moment from 'moment' // import moment from 'moment'
export default { export default {
components: { Pagination }, components: { Pagination },
@ -592,9 +591,6 @@ export default {
selectAll(selection) { selectAll(selection) {
this.selectionSelected = selection this.selectionSelected = selection
}, },
rowClick(row, column, event) {
console.log('row :>> ', row)
},
handleExportBtn() { handleExportBtn() {
const ids = this.selectionSelected const ids = this.selectionSelected
.map(item => { .map(item => {