|
@@ -72,22 +72,40 @@
|
|
}"
|
|
}"
|
|
table-layout="auto"
|
|
table-layout="auto"
|
|
>
|
|
>
|
|
- <el-table-column fixed type="index" />
|
|
|
|
|
|
+ <el-table-column fixed type="index" label="序号" width="80" />
|
|
<el-table-column fixed align="center" prop="nickname" label="员工姓名" width="120" />
|
|
<el-table-column fixed align="center" prop="nickname" label="员工姓名" width="120" />
|
|
<el-table-column
|
|
<el-table-column
|
|
align="center"
|
|
align="center"
|
|
prop="deptName"
|
|
prop="deptName"
|
|
- show-overflow-tooltip="true"
|
|
|
|
|
|
+ show-overflow-tooltip
|
|
label="所属部门"
|
|
label="所属部门"
|
|
width="120"
|
|
width="120"
|
|
/>
|
|
/>
|
|
- <el-table-column align="center" prop="state" label="状态" width="120" />
|
|
|
|
- <el-table-column align="center" prop="zzmm" label="政治面貌" width="120" />
|
|
|
|
- <el-table-column align="center" prop="hkxz" label="户口性质" width="120" />
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
+ align="center"
|
|
|
|
+ prop="state"
|
|
|
|
+ label="状态"
|
|
|
|
+ width="120"
|
|
|
|
+ :formatter="(row, column, cellValue) => staffNumFormatter(cellValue, 'state')"
|
|
|
|
+ />
|
|
|
|
+ <el-table-column
|
|
|
|
+ align="center"
|
|
|
|
+ prop="zzmm"
|
|
|
|
+ label="政治面貌"
|
|
|
|
+ width="120"
|
|
|
|
+ :formatter="(row, column, cellValue) => staffNumFormatter(cellValue, 'zzmm')"
|
|
|
|
+ />
|
|
|
|
+ <el-table-column
|
|
|
|
+ align="center"
|
|
|
|
+ prop="hkxz"
|
|
|
|
+ label="户口性质"
|
|
|
|
+ width="120"
|
|
|
|
+ :formatter="(row, column, cellValue) => staffNumFormatter(cellValue, 'hkxz')"
|
|
|
|
+ />
|
|
<el-table-column
|
|
<el-table-column
|
|
align="center"
|
|
align="center"
|
|
prop="byxx"
|
|
prop="byxx"
|
|
- show-overflow-tooltip="true"
|
|
|
|
|
|
+ show-overflow-tooltip
|
|
label="毕业院校"
|
|
label="毕业院校"
|
|
width="120"
|
|
width="120"
|
|
/>
|
|
/>
|
|
@@ -96,13 +114,19 @@
|
|
prop="bysj"
|
|
prop="bysj"
|
|
:formatter="dateFormatter2"
|
|
:formatter="dateFormatter2"
|
|
label="毕业时间"
|
|
label="毕业时间"
|
|
|
|
+ width="150"
|
|
|
|
+ />
|
|
|
|
+ <el-table-column
|
|
|
|
+ align="center"
|
|
|
|
+ prop="zgxl"
|
|
|
|
+ label="最高学历"
|
|
width="120"
|
|
width="120"
|
|
|
|
+ :formatter="(row, column, cellValue) => staffNumFormatter(cellValue, 'zgxl')"
|
|
/>
|
|
/>
|
|
- <el-table-column align="center" prop="zgxl" label="最高学历" width="120" />
|
|
|
|
<el-table-column
|
|
<el-table-column
|
|
align="center"
|
|
align="center"
|
|
prop="major"
|
|
prop="major"
|
|
- show-overflow-tooltip="true"
|
|
|
|
|
|
+ show-overflow-tooltip
|
|
label="专业"
|
|
label="专业"
|
|
width="120"
|
|
width="120"
|
|
/>
|
|
/>
|
|
@@ -111,14 +135,14 @@
|
|
prop="cjgzsj"
|
|
prop="cjgzsj"
|
|
:formatter="dateFormatter2"
|
|
:formatter="dateFormatter2"
|
|
label="参加工作时间"
|
|
label="参加工作时间"
|
|
- width="120"
|
|
|
|
|
|
+ width="150"
|
|
/>
|
|
/>
|
|
<el-table-column
|
|
<el-table-column
|
|
align="center"
|
|
align="center"
|
|
prop="rgssj"
|
|
prop="rgssj"
|
|
:formatter="dateFormatter2"
|
|
:formatter="dateFormatter2"
|
|
label="入公司时间"
|
|
label="入公司时间"
|
|
- width="120"
|
|
|
|
|
|
+ width="150"
|
|
/>
|
|
/>
|
|
<el-table-column
|
|
<el-table-column
|
|
align="center"
|
|
align="center"
|
|
@@ -132,10 +156,22 @@
|
|
prop="htdqs"
|
|
prop="htdqs"
|
|
:formatter="dateFormatter2"
|
|
:formatter="dateFormatter2"
|
|
label="合同到期时间"
|
|
label="合同到期时间"
|
|
|
|
+ width="150"
|
|
|
|
+ />
|
|
|
|
+ <el-table-column
|
|
|
|
+ align="center"
|
|
|
|
+ prop="pyxs"
|
|
|
|
+ label="聘用形式"
|
|
|
|
+ width="120"
|
|
|
|
+ :formatter="(row, column, cellValue) => staffNumFormatter(cellValue, 'pyxs')"
|
|
|
|
+ />
|
|
|
|
+ <el-table-column
|
|
|
|
+ align="center"
|
|
|
|
+ prop="sfytd"
|
|
|
|
+ label="是否已调档"
|
|
width="120"
|
|
width="120"
|
|
|
|
+ :formatter="(row, column, cellValue) => staffNumFormatter(cellValue, 'sfytd')"
|
|
/>
|
|
/>
|
|
- <el-table-column align="center" prop="pyxs" label="聘用形式" width="120" />
|
|
|
|
- <el-table-column align="center" prop="sfytd" label="是否已调档" width="120" />
|
|
|
|
<el-table-column align="center" label="操作" fixed="right" width="120">
|
|
<el-table-column align="center" label="操作" fixed="right" width="120">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
<div style="display: flex">
|
|
<div style="display: flex">
|
|
@@ -167,6 +203,7 @@
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
import * as StaffRecordsApi from '@/api/oa/staffRecords'
|
|
import * as StaffRecordsApi from '@/api/oa/staffRecords'
|
|
import { dateFormatter2 } from '@/utils/formatTime'
|
|
import { dateFormatter2 } from '@/utils/formatTime'
|
|
|
|
+import { staffNumFormatter } from '@/utils/formatter'
|
|
import ListLayout from '../../oaViews/layout/ListLayout.vue'
|
|
import ListLayout from '../../oaViews/layout/ListLayout.vue'
|
|
|
|
|
|
defineOptions({ name: 'Ygda' })
|
|
defineOptions({ name: 'Ygda' })
|
|
@@ -217,7 +254,7 @@ const handleCurrentChange = (pageNo: number) => {
|
|
|
|
|
|
const operateClick = (row: any, type: string) => {
|
|
const operateClick = (row: any, type: string) => {
|
|
router.push({
|
|
router.push({
|
|
- path: 'ygdaDetail',
|
|
|
|
|
|
+ path: '/staffDetail',
|
|
query: { id: row.userId, type }
|
|
query: { id: row.userId, type }
|
|
})
|
|
})
|
|
}
|
|
}
|