|
@@ -1,14 +1,17 @@
|
|
|
<template>
|
|
|
- <div class="registration-query flex flex-col h-full">
|
|
|
+ <div class="flex flex-col h-full">
|
|
|
+ <div class="page-action">
|
|
|
+ <t-button theme="primary" @click="handleAdd">
|
|
|
+ <template #icon><svg-icon name="add-circle" color="#fff" /></template
|
|
|
+ >新增考勤配置
|
|
|
+ </t-button>
|
|
|
+ </div>
|
|
|
<SearchForm :fields="fields" :params="params">
|
|
|
<template #service="{ item, params }">
|
|
|
<select-service-unit v-model="params[item.prop]"></select-service-unit>
|
|
|
</template>
|
|
|
</SearchForm>
|
|
|
<div class="flex-1 page-wrap">
|
|
|
- <div class="btn-group">
|
|
|
- <t-button theme="success" @click="handleAdd">新增</t-button>
|
|
|
- </div>
|
|
|
<t-table
|
|
|
size="small"
|
|
|
row-key="id"
|
|
@@ -56,7 +59,7 @@
|
|
|
<t-link theme="primary" hover="color" @click="handleEdit(row)">
|
|
|
修改
|
|
|
</t-link>
|
|
|
- <t-link theme="danger" hover="color" @click="handleDelete(row)">
|
|
|
+ <t-link theme="primary" hover="color" @click="handleDelete(row)">
|
|
|
删除
|
|
|
</t-link>
|
|
|
</div>
|
|
@@ -114,25 +117,28 @@ const params = reactive({
|
|
|
});
|
|
|
|
|
|
const columns = [
|
|
|
- { colKey: 'service', title: '服务单元' },
|
|
|
+ { colKey: 'service', title: '服务单元', minWidth: 120 },
|
|
|
{ colKey: 'status', title: '发布状态', cell: 'status', width: 100 },
|
|
|
- { colKey: 'name', title: '考勤组名称' },
|
|
|
- { colKey: 'dingObjs', title: '适用考勤对象', cell: 'ding-objs' },
|
|
|
- { colKey: 'supplier', title: '适用供应商' },
|
|
|
- { colKey: 'signInTime', title: '签到时段' },
|
|
|
- { colKey: 'signOutTime', title: '签退时段' },
|
|
|
- { colKey: 'auditRoles', title: '审核角色', cell: 'approve-objs' },
|
|
|
- { colKey: 'faceOpen', title: '是否开启人脸', cell: 'face-open' },
|
|
|
- { colKey: 'reissueCardCount', title: '允许补卡次数', width: 110 },
|
|
|
- { colKey: 'createName', title: '创建人' },
|
|
|
- { colKey: 'createTime', title: '创建时间', cell: 'create-time', width: 170 },
|
|
|
+ { colKey: 'name', title: '考勤组名称', minWidth: 140 },
|
|
|
+ {
|
|
|
+ colKey: 'dingObjs',
|
|
|
+ title: '适用考勤对象',
|
|
|
+ cell: 'ding-objs',
|
|
|
+ minWidth: 200,
|
|
|
+ },
|
|
|
+ { colKey: 'supplier', title: '适用供应商', minWidth: 140 },
|
|
|
+ { colKey: 'signInTime', title: '签到时段', width: 160 },
|
|
|
+ { colKey: 'signOutTime', title: '签退时段', width: 160 },
|
|
|
+ { colKey: 'auditRoles', title: '审核角色', cell: 'approve-objs', width: 120 },
|
|
|
+ { colKey: 'faceOpen', title: '是否开启人脸', cell: 'face-open', width: 120 },
|
|
|
+ { colKey: 'reissueCardCount', title: '允许补卡次数', width: 120 },
|
|
|
+ { colKey: 'createName', title: '创建人', with: 120 },
|
|
|
+ { colKey: 'createTime', title: '创建时间', cell: 'create-time', width: 180 },
|
|
|
{
|
|
|
title: '管理',
|
|
|
colKey: 'operate',
|
|
|
- cell: 'operate',
|
|
|
fixed: 'right',
|
|
|
width: 120,
|
|
|
- align: 'center',
|
|
|
},
|
|
|
];
|
|
|
const {
|
|
@@ -158,6 +164,7 @@ const handleDelete = (row) => {
|
|
|
body: `确定要删除当前记录吗`,
|
|
|
confirmBtn: '确定',
|
|
|
cancelBtn: '取消',
|
|
|
+ theme: 'warning',
|
|
|
onConfirm: async () => {
|
|
|
confirmDia.hide();
|
|
|
const res = await checkinDeleteApi(row.id).catch(() => {});
|