新增MES模块,包含供应商、客户、车辆和地磅数据记录管理功能,支持免密接口和数据同步。更新相关控制器、实体、服务和数据库配置,优化权限管理和数据字典支持,确保系统的灵活性和可扩展性。

This commit is contained in:
geht
2026-04-30 15:28:20 +08:00
parent 142a0bdaba
commit b03cbeff9b
121 changed files with 10540 additions and 424 deletions

View File

@@ -0,0 +1,7 @@
import { defHttp } from '/@/utils/http/axios';
enum Api {
list = '/xslmes/mesXslClientConnection/list',
}
export const list = (params) => defHttp.get({ url: Api.list, params });

View File

@@ -0,0 +1,31 @@
import { BasicColumn, FormSchema } from '/@/components/Table';
export const columns: BasicColumn[] = [
{ title: '来源', align: 'center', dataIndex: 'source', width: 80 },
{ title: '平台', align: 'center', dataIndex: 'platform', width: 80 },
{ title: '登录名', align: 'center', dataIndex: 'userName', width: 120, ellipsis: true },
{ title: '姓名', align: 'center', dataIndex: 'realName', width: 100, ellipsis: true },
{ title: '主机名', align: 'center', dataIndex: 'hostName', width: 160, ellipsis: true },
{ title: '设备ID', align: 'center', dataIndex: 'deviceId', width: 200, ellipsis: true },
{ title: 'IP', align: 'center', dataIndex: 'ip', width: 140 },
{ title: '会话ID', align: 'center', dataIndex: 'sessionId', width: 200, ellipsis: true },
{ title: '连接时间', align: 'center', dataIndex: 'connectTime', width: 170 },
{ title: '最后活跃', align: 'center', dataIndex: 'lastSeen', width: 170 },
];
export const searchFormSchema: FormSchema[] = [
{
label: '类型',
field: 'type',
component: 'Select',
defaultValue: 'all',
componentProps: {
options: [
{ label: '全部', value: 'all' },
{ label: 'STOMP', value: 'stomp' },
{ label: 'HTTP', value: 'http' },
],
},
colProps: { span: 6 },
},
];

View File

@@ -0,0 +1,34 @@
<template>
<div>
<BasicTable @register="registerTable">
<template #tableTitle>
<a-button type="primary" preIcon="ant-design:reload-outlined" @click="reload">刷新</a-button>
</template>
</BasicTable>
</div>
</template>
<script lang="ts" name="xslmes-mesXslClientConnection" setup>
import { BasicTable } from '/@/components/Table';
import { useListPage } from '/@/hooks/system/useListPage';
import { columns, searchFormSchema } from './MesXslClientConnection.data';
import { list } from './MesXslClientConnection.api';
const { tableContext } = useListPage({
tableProps: {
title: '客户端连接列表',
api: list,
columns,
canResize: true,
showIndexColumn: true,
formConfig: {
schemas: searchFormSchema,
autoSubmitOnEnter: true,
showAdvancedButton: false,
},
actionColumn: undefined,
},
});
const [registerTable, { reload }] = tableContext;
</script>