This commit is contained in:
@@ -4,8 +4,8 @@ import type { VxeGridProps } from '#/adapter/vxe-table';
|
||||
import { DictEnum } from '@vben/constants';
|
||||
import { getPopupContainer } from '@vben/utils';
|
||||
|
||||
import { getDictOptions } from '#/utils/dict';
|
||||
import { queryListByFactoryNo } from '#/api/sis/accessControlDevice';
|
||||
import { getDictOptions } from '#/utils/dict';
|
||||
|
||||
export const querySchema: FormSchemaGetter = () => [
|
||||
{
|
||||
@@ -45,6 +45,7 @@ export const columns: VxeGridProps['columns'] = [
|
||||
{
|
||||
title: '库类型',
|
||||
field: 'libType',
|
||||
slots: { default: 'libType' },
|
||||
},
|
||||
/* {
|
||||
title: '业务类型',
|
||||
@@ -60,6 +61,15 @@ export const columns: VxeGridProps['columns'] = [
|
||||
];
|
||||
|
||||
export const modalSchema: FormSchemaGetter = () => [
|
||||
{
|
||||
label: '主键',
|
||||
fieldName: 'id',
|
||||
component: 'Input',
|
||||
dependencies: {
|
||||
show: () => false,
|
||||
triggerFields: [''],
|
||||
},
|
||||
},
|
||||
{
|
||||
label: '人员库名称',
|
||||
fieldName: 'libName',
|
||||
@@ -89,7 +99,7 @@ export const modalSchema: FormSchemaGetter = () => [
|
||||
mode: 'multiple', // 关键属性,启用多选模式
|
||||
resultField: 'list', // 根据API返回结构调整
|
||||
labelField: 'eqpName',
|
||||
valueField: 'eqpNo',
|
||||
valueField: 'id',
|
||||
api: async () => {
|
||||
return await queryListByFactoryNo('2');
|
||||
},
|
||||
|
Reference in New Issue
Block a user