feat(sis): 添加门禁设备同步功能
This commit is contained in:
@@ -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"
|
||||
|
Reference in New Issue
Block a user