This commit is contained in:
parent
3e8ba86305
commit
b2d902a2e0
@ -66,6 +66,15 @@ export const columns: VxeGridProps['columns'] = [
|
|||||||
];
|
];
|
||||||
|
|
||||||
export const modalSchema: FormSchemaGetter = () => [
|
export const modalSchema: FormSchemaGetter = () => [
|
||||||
|
{
|
||||||
|
label: '主键',
|
||||||
|
fieldName: 'id',
|
||||||
|
component: 'Input',
|
||||||
|
dependencies: {
|
||||||
|
show: () => false,
|
||||||
|
triggerFields: [''],
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: '设备名称',
|
label: '设备名称',
|
||||||
fieldName: 'eqpName',
|
fieldName: 'eqpName',
|
||||||
|
@ -4,8 +4,8 @@ import type { VxeGridProps } from '#/adapter/vxe-table';
|
|||||||
import { DictEnum } from '@vben/constants';
|
import { DictEnum } from '@vben/constants';
|
||||||
import { getPopupContainer } from '@vben/utils';
|
import { getPopupContainer } from '@vben/utils';
|
||||||
|
|
||||||
import { getDictOptions } from '#/utils/dict';
|
|
||||||
import { queryListByFactoryNo } from '#/api/sis/accessControlDevice';
|
import { queryListByFactoryNo } from '#/api/sis/accessControlDevice';
|
||||||
|
import { getDictOptions } from '#/utils/dict';
|
||||||
|
|
||||||
export const querySchema: FormSchemaGetter = () => [
|
export const querySchema: FormSchemaGetter = () => [
|
||||||
{
|
{
|
||||||
@ -45,6 +45,7 @@ export const columns: VxeGridProps['columns'] = [
|
|||||||
{
|
{
|
||||||
title: '库类型',
|
title: '库类型',
|
||||||
field: 'libType',
|
field: 'libType',
|
||||||
|
slots: { default: 'libType' },
|
||||||
},
|
},
|
||||||
/* {
|
/* {
|
||||||
title: '业务类型',
|
title: '业务类型',
|
||||||
@ -60,6 +61,15 @@ export const columns: VxeGridProps['columns'] = [
|
|||||||
];
|
];
|
||||||
|
|
||||||
export const modalSchema: FormSchemaGetter = () => [
|
export const modalSchema: FormSchemaGetter = () => [
|
||||||
|
{
|
||||||
|
label: '主键',
|
||||||
|
fieldName: 'id',
|
||||||
|
component: 'Input',
|
||||||
|
dependencies: {
|
||||||
|
show: () => false,
|
||||||
|
triggerFields: [''],
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: '人员库名称',
|
label: '人员库名称',
|
||||||
fieldName: 'libName',
|
fieldName: 'libName',
|
||||||
@ -89,7 +99,7 @@ export const modalSchema: FormSchemaGetter = () => [
|
|||||||
mode: 'multiple', // 关键属性,启用多选模式
|
mode: 'multiple', // 关键属性,启用多选模式
|
||||||
resultField: 'list', // 根据API返回结构调整
|
resultField: 'list', // 根据API返回结构调整
|
||||||
labelField: 'eqpName',
|
labelField: 'eqpName',
|
||||||
valueField: 'eqpNo',
|
valueField: 'id',
|
||||||
api: async () => {
|
api: async () => {
|
||||||
return await queryListByFactoryNo('2');
|
return await queryListByFactoryNo('2');
|
||||||
},
|
},
|
||||||
|
@ -7,7 +7,7 @@ import type { PersonLibForm } from '#/api/sis/personLib/model';
|
|||||||
import { Page, useVbenModal } from '@vben/common-ui';
|
import { Page, useVbenModal } from '@vben/common-ui';
|
||||||
import { getVxePopupContainer } from '@vben/utils';
|
import { getVxePopupContainer } from '@vben/utils';
|
||||||
|
|
||||||
import { Modal, Popconfirm, Space } from 'ant-design-vue';
|
import { Modal, Popconfirm, Space, Tag } from 'ant-design-vue';
|
||||||
|
|
||||||
import { useVbenVxeGrid, vxeCheckboxChecked } from '#/adapter/vxe-table';
|
import { useVbenVxeGrid, vxeCheckboxChecked } from '#/adapter/vxe-table';
|
||||||
import {
|
import {
|
||||||
@ -176,6 +176,11 @@ function handleDownloadExcel() {
|
|||||||
</Popconfirm>
|
</Popconfirm>
|
||||||
</Space>
|
</Space>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
<template #libType="{ row }">
|
||||||
|
<Tag v-if="row.libType == 1" color="#108ee9">人脸库</Tag>
|
||||||
|
<Tag v-else color="#2db7f5">工服库</Tag>
|
||||||
|
</template>
|
||||||
</BasicTable>
|
</BasicTable>
|
||||||
<PersonLibModal @reload="tableApi.query()" />
|
<PersonLibModal @reload="tableApi.query()" />
|
||||||
</Page>
|
</Page>
|
||||||
|
@ -27,11 +27,10 @@ export const querySchema: FormSchemaGetter = () => [
|
|||||||
// export const columns: () => VxeGridProps['columns'] = () => [
|
// export const columns: () => VxeGridProps['columns'] = () => [
|
||||||
export const columns: VxeGridProps['columns'] = [
|
export const columns: VxeGridProps['columns'] = [
|
||||||
{ type: 'checkbox', width: 60 },
|
{ type: 'checkbox', width: 60 },
|
||||||
|
/* {
|
||||||
{
|
|
||||||
title: '人员库编码',
|
title: '人员库编码',
|
||||||
field: 'libCode',
|
field: 'libCode',
|
||||||
},
|
},*/
|
||||||
{
|
{
|
||||||
title: '人像名称',
|
title: '人像名称',
|
||||||
field: 'imgName',
|
field: 'imgName',
|
||||||
|
@ -28,8 +28,8 @@ export default defineConfig(async () => {
|
|||||||
rewrite: (path) => path.replace(/^\/api/, ''),
|
rewrite: (path) => path.replace(/^\/api/, ''),
|
||||||
// mock代理目标地址
|
// mock代理目标地址
|
||||||
// target: 'http://by.missmoc.top:3010/',
|
// target: 'http://by.missmoc.top:3010/',
|
||||||
// target: 'http://127.0.0.1:8080/',
|
target: 'http://127.0.0.1:8080/',
|
||||||
target: 'http://47.109.37.87:3010',
|
// target: 'http://47.109.37.87:3010',
|
||||||
ws: true,
|
ws: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user