|
|
|
@ -21,10 +21,14 @@ |
|
|
|
|
|
|
|
|
|
<el-table v-loading="loading" :data="tableList" border stripe> |
|
|
|
|
<el-table-column type="index" width="50" /> |
|
|
|
|
<el-table-column label="员工姓名" prop="nickname" /> |
|
|
|
|
<el-table-column label="部门" key="deptName" prop="deptName" /> |
|
|
|
|
<el-table-column label="手机号码" prop="mobile" width="120" /> |
|
|
|
|
<el-table-column label="在职状态" prop="status" /> |
|
|
|
|
<el-table-column label="员工姓名" prop="name" /> |
|
|
|
|
<el-table-column label="职位" prop="post" /> |
|
|
|
|
<el-table-column label="手机号码" prop="mobile" /> |
|
|
|
|
<el-table-column label="在职状态"> |
|
|
|
|
<template #default="{ row }"> |
|
|
|
|
{{ ['在职', '离职'][row.status] }} |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="操作"> |
|
|
|
|
<template #default="scope"> |
|
|
|
|
<el-button |
|
|
|
@ -50,7 +54,8 @@ |
|
|
|
|
|
|
|
|
|
<script name="EmployeeList" setup> |
|
|
|
|
import DialogSalary from './Comp/DialogSalary.vue' |
|
|
|
|
import * as SalaryApi from '@/api/finance/salary' |
|
|
|
|
// import * as SalaryApi from '@/api/finance/salary' |
|
|
|
|
import { getEmployeePage } from '@/api/pers/employee' |
|
|
|
|
import { removeNullField } from '@/utils' |
|
|
|
|
|
|
|
|
|
const searchForm = ref({ |
|
|
|
@ -77,7 +82,7 @@ const total = ref(0) |
|
|
|
|
const getList = async () => { |
|
|
|
|
loading.value = true |
|
|
|
|
try { |
|
|
|
|
const data = await SalaryApi.getSalaryPage(removeNullField(searchForm.value)) |
|
|
|
|
const data = await getEmployeePage(removeNullField(searchForm.value)) |
|
|
|
|
tableList.value = data.list |
|
|
|
|
total.value = data.total |
|
|
|
|
} finally { |
|
|
|
|