This commit is contained in:
@@ -1,13 +1,12 @@
|
||||
import type { FormSchemaGetter } from '#/adapter/form';
|
||||
import type { VxeGridProps } from '#/adapter/vxe-table';
|
||||
|
||||
|
||||
import { deviceManageList } from '#/api/sis/deviceManage';
|
||||
export const querySchema: FormSchemaGetter = () => [
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'area',
|
||||
label: '区域',
|
||||
}
|
||||
},
|
||||
];
|
||||
|
||||
// 需要使用i18n注意这里要改成getter形式 否则切换语言不会刷新
|
||||
@@ -54,10 +53,22 @@ export const modalSchema: FormSchemaGetter = () => [
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: '摄像机id',
|
||||
label: '摄像机',
|
||||
fieldName: 'deviceManageId',
|
||||
component: 'Select',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: async () => {
|
||||
const res = await deviceManageList({
|
||||
pageNum: 1,
|
||||
pageSize: 10000,
|
||||
deviceType: 1,
|
||||
});
|
||||
return res;
|
||||
},
|
||||
resultField: 'rows',
|
||||
labelField: 'deviceName',
|
||||
valueField: 'id',
|
||||
mode: 'multiple',
|
||||
},
|
||||
},
|
||||
{
|
||||
|
Reference in New Issue
Block a user