feat(sis): 添加门禁设备同步功能

This commit is contained in:
2025-07-11 17:59:19 +08:00
parent 9279f2246a
commit bce19bf9f8
2 changed files with 26 additions and 11 deletions

View File

@@ -14,6 +14,7 @@ import {
accessControlExport,
accessControlList,
accessControlRemove,
accessControlSync
} from '#/api/sis/accessControl';
import type { AccessControlForm } from '#/api/sis/accessControl/model';
import { commonDownloadExcel } from '#/utils/file/download';
@@ -98,6 +99,11 @@ async function handleDelete(row: Required<AccessControlForm>) {
await tableApi.query();
}
async function handleSyncE8() {
await accessControlSync();
await tableApi.query();
}
function handleMultiDelete() {
const rows = tableApi.grid.getCheckboxRecords();
const ids = rows.map((row: Required<AccessControlForm>) => row.id);
@@ -129,6 +135,7 @@ function handleDownloadExcel() {
<BasicTable table-title="门禁设备列表">
<template #toolbar-tools>
<Space>
<a-button @click="handleSyncE8">同步</a-button>
<a-button
v-access:code="['property:accessControl:export']"
@click="handleDownloadExcel"