This commit is contained in:
parent
3e8ba86305
commit
b2d902a2e0
@ -66,6 +66,15 @@ export const columns: VxeGridProps['columns'] = [
|
||||
];
|
||||
|
||||
export const modalSchema: FormSchemaGetter = () => [
|
||||
{
|
||||
label: '主键',
|
||||
fieldName: 'id',
|
||||
component: 'Input',
|
||||
dependencies: {
|
||||
show: () => false,
|
||||
triggerFields: [''],
|
||||
},
|
||||
},
|
||||
{
|
||||
label: '设备名称',
|
||||
fieldName: 'eqpName',
|
||||
|
@ -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');
|
||||
},
|
||||
|
@ -7,7 +7,7 @@ import type { PersonLibForm } from '#/api/sis/personLib/model';
|
||||
import { Page, useVbenModal } from '@vben/common-ui';
|
||||
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 {
|
||||
@ -176,6 +176,11 @@ function handleDownloadExcel() {
|
||||
</Popconfirm>
|
||||
</Space>
|
||||
</template>
|
||||
|
||||
<template #libType="{ row }">
|
||||
<Tag v-if="row.libType == 1" color="#108ee9">人脸库</Tag>
|
||||
<Tag v-else color="#2db7f5">工服库</Tag>
|
||||
</template>
|
||||
</BasicTable>
|
||||
<PersonLibModal @reload="tableApi.query()" />
|
||||
</Page>
|
||||
|
@ -27,11 +27,10 @@ export const querySchema: FormSchemaGetter = () => [
|
||||
// export const columns: () => VxeGridProps['columns'] = () => [
|
||||
export const columns: VxeGridProps['columns'] = [
|
||||
{ type: 'checkbox', width: 60 },
|
||||
|
||||
{
|
||||
/* {
|
||||
title: '人员库编码',
|
||||
field: 'libCode',
|
||||
},
|
||||
},*/
|
||||
{
|
||||
title: '人像名称',
|
||||
field: 'imgName',
|
||||
|
@ -28,8 +28,8 @@ export default defineConfig(async () => {
|
||||
rewrite: (path) => path.replace(/^\/api/, ''),
|
||||
// mock代理目标地址
|
||||
// target: 'http://by.missmoc.top:3010/',
|
||||
// target: 'http://127.0.0.1:8080/',
|
||||
target: 'http://47.109.37.87:3010',
|
||||
target: 'http://127.0.0.1:8080/',
|
||||
// target: 'http://47.109.37.87:3010',
|
||||
ws: true,
|
||||
},
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user