This commit is contained in:
xielue 2023-07-07 17:00:21 +08:00
parent bcd894e924
commit 2b93646863
1 changed files with 88 additions and 92 deletions

View File

@ -1,12 +1,8 @@
<template> <template>
<basic-page-list :desc="desc" :options="pageOptions"> <basic-page-list :desc="desc" :options="pageOptions">
<template v-slot:column1="{row}"> <template v-slot:column1="{ row }">
<img v-if="row && row.avatar" :src="row.avatar" style="width: 100px;" />
<img v-if="row && row.avatar" :src="row.avatar" style="width: 100px;"/>
</template> </template>
</basic-page-list> </basic-page-list>
</template> </template>
@ -144,7 +140,7 @@ export default {
// =============================== Start =============================== // =============================== Start ===============================
{ slots: { default: 'column1' },title: '员工头像', width: 250 }, { slots: { default: 'column1' }, title: '员工头像', width: 250 },
@ -162,8 +158,8 @@ export default {
//{ field: 'department_id', sortable: true, title: 'ID', width: 250 }, // ID //{ field: 'department_id', sortable: true, title: 'ID', width: 250 }, // ID
//{ field: 'process_id', sortable: true, title: 'ID', width: 250 }, // ID //{ field: 'process_id', sortable: true, title: 'ID', width: 250 }, // ID
//{ field: 'process_scheme_id', sortable: true, title: 'ID', width: 250 }, // ID //{ field: 'process_scheme_id', sortable: true, title: 'ID', width: 250 }, // ID
{ field: 'entry_date', sortable: true, title: '入职日期',formatter: 'formatDate', width: 250 }, // { field: 'entry_date', sortable: true, title: '入职日期', formatter: 'formatDate', width: 250 }, //
{ field: 'departure_date', sortable: true, title: '离职日期', formatter: 'formatDate',width: 250 }, // { field: 'departure_date', sortable: true, title: '离职日期', formatter: 'formatDate', width: 250 }, //
//{ field: 'is_piecework', sortable: true, title: '', width: 250 }, // //{ field: 'is_piecework', sortable: true, title: '', width: 250 }, //
{ field: 'remark', sortable: true, title: '备注', width: 250 }, // { field: 'remark', sortable: true, title: '备注', width: 250 }, //
{ field: 'status', slots: { default: 'status' }, width: 80, sortable: true, title: '状态', showHeaderOverflow: true }, // { field: 'status', slots: { default: 'status' }, width: 80, sortable: true, title: '状态', showHeaderOverflow: true }, //