This commit is contained in:
@@ -3,8 +3,6 @@ import type { VxeGridProps } from '#/adapter/vxe-table';
|
||||
import { getPopupContainer } from '@vben/utils';
|
||||
import { getDictOptions } from '#/utils/dict';
|
||||
import { DictEnum } from '@vben/constants';
|
||||
import { accessControlList } from '#/api/sis/accessControl';
|
||||
import type { AccessControlQuery } from '#/api/sis/accessControl/model';
|
||||
|
||||
export const querySchema: FormSchemaGetter = () => [
|
||||
{
|
||||
@@ -65,10 +63,10 @@ export const columns: VxeGridProps['columns'] = [
|
||||
title: '录像机端口',
|
||||
field: 'vcrPort',
|
||||
},
|
||||
{
|
||||
/*{
|
||||
title: '门禁id',
|
||||
field: 'accessControlId',
|
||||
},
|
||||
},*/
|
||||
{
|
||||
field: 'action',
|
||||
fixed: 'right',
|
||||
@@ -148,7 +146,7 @@ export const modalSchema: FormSchemaGetter = () => [
|
||||
fieldName: 'vcrPwd',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
/*{
|
||||
label: '绑定门禁',
|
||||
fieldName: 'accessControlId',
|
||||
component: 'ApiSelect',
|
||||
@@ -166,5 +164,5 @@ export const modalSchema: FormSchemaGetter = () => [
|
||||
return res.rows;
|
||||
},
|
||||
},
|
||||
},
|
||||
},*/
|
||||
];
|
||||
|
@@ -1,18 +1,13 @@
|
||||
<script setup lang="ts">
|
||||
import type { Recordable } from '@vben/types';
|
||||
|
||||
import { ref } from 'vue';
|
||||
|
||||
import { Page, useVbenModal, type VbenFormProps } from '@vben/common-ui';
|
||||
import { getVxePopupContainer } from '@vben/utils';
|
||||
|
||||
import { Modal, Popconfirm, Space } from 'ant-design-vue';
|
||||
import dayjs from 'dayjs';
|
||||
|
||||
import {
|
||||
import {
|
||||
useVbenVxeGrid,
|
||||
vxeCheckboxChecked,
|
||||
type VxeGridProps
|
||||
type VxeGridProps,
|
||||
} from '#/adapter/vxe-table';
|
||||
|
||||
import {
|
||||
@@ -76,7 +71,7 @@ const gridOptions: VxeGridProps = {
|
||||
keyField: 'id',
|
||||
},
|
||||
// 表格全局唯一表示 保存列配置需要用到
|
||||
id: 'sis-deviceManage-index'
|
||||
id: 'sis-deviceManage-index',
|
||||
};
|
||||
|
||||
const [BasicTable, tableApi] = useVbenVxeGrid({
|
||||
@@ -118,9 +113,14 @@ function handleMultiDelete() {
|
||||
}
|
||||
|
||||
function handleDownloadExcel() {
|
||||
commonDownloadExcel(deviceManageExport, '设备管理数据', tableApi.formApi.form.values, {
|
||||
fieldMappingTime: formOptions.fieldMappingTime,
|
||||
});
|
||||
commonDownloadExcel(
|
||||
deviceManageExport,
|
||||
'设备管理数据',
|
||||
tableApi.formApi.form.values,
|
||||
{
|
||||
fieldMappingTime: formOptions.fieldMappingTime,
|
||||
},
|
||||
);
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -138,9 +138,10 @@ function handleDownloadExcel() {
|
||||
<a-button
|
||||
:disabled="!vxeCheckboxChecked(tableApi)"
|
||||
danger
|
||||
type="primary"
|
||||
v-access:code="['sis:deviceManage:remove']"
|
||||
@click="handleMultiDelete">
|
||||
type="primary"
|
||||
v-access:code="['sis:deviceManage:remove']"
|
||||
@click="handleMultiDelete"
|
||||
>
|
||||
{{ $t('pages.common.delete') }}
|
||||
</a-button>
|
||||
<a-button
|
||||
|
Reference in New Issue
Block a user