| | |
| | | <div class="app-container"> |
| | | <!-- 页面标题和操作按钮 --> |
| | | <div class="page-header"> |
| | | <div class="title">打卡规则配置</div> |
| | | <div class="title">班次配置</div> |
| | | <div class="actions"> |
| | | <el-button type="primary" |
| | | @click="openForm('add')"> |
| | | <el-icon> |
| | | <Plus /> |
| | | </el-icon> |
| | | 新增规则 |
| | | 新增班次 |
| | | </el-button> |
| | | </div> |
| | | </div> |
| | |
| | | </el-button> |
| | | </el-form-item> |
| | | </el-form> --> |
| | | <!-- 规则列表 --> |
| | | <!-- 班次列表 --> |
| | | <el-card shadow="never" |
| | | class="mb16"> |
| | | <el-table :data="tableData" |
| | |
| | | @pagination="paginationChange" |
| | | class="mt10" /> |
| | | </el-card> |
| | | <!-- 新增/编辑规则弹窗 --> |
| | | <!-- 新增/编辑班次弹窗 --> |
| | | <rule-form ref="ruleFormRef" |
| | | v-model="dialogVisible" |
| | | :operation-type="operationType" |
| | |
| | | return ""; |
| | | }; |
| | | |
| | | // 查询规则列表 |
| | | // 查询班次列表 |
| | | const fetchData = () => { |
| | | tableLoading.value = true; |
| | | getAttendanceRules({ ...page, ...searchForm }) |
| | |
| | | dialogVisible.value = true; |
| | | }; |
| | | |
| | | // 删除规则 |
| | | // 删除班次 |
| | | const handleDelete = id => { |
| | | ElMessageBox.confirm("确定要删除这条规则吗?", "删除确认", { |
| | | ElMessageBox.confirm("确定要删除这条班次吗?", "删除确认", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |