fix(用户管理): 修复用户列表页面加载失败问题
Some checks failed
CI / rust-check (push) Has been cancelled
CI / rust-test (push) Has been cancelled
CI / frontend-build (push) Has been cancelled
CI / security-audit (push) Has been cancelled

修复用户列表页面加载失败导致测试超时的问题,确保页面元素正确渲染
This commit is contained in:
iven
2026-04-19 08:46:28 +08:00
parent 0ee9d22634
commit 841766b168
174 changed files with 26366 additions and 675 deletions

34
.logs/backend.err Normal file
View File

@@ -0,0 +1,34 @@
Compiling erp-plugin v0.1.0 (G:\erp\crates\erp-plugin)
Compiling erp-server-migration v0.1.0 (G:\erp\crates\erp-server\migration)
warning: field `chk` is never read
--> crates\erp-plugin\src\data_service.rs:376:39
|
376 | struct RefCheck { chk: Option<i32> }
| -------- ^^^
| |
| field in this struct
|
= note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
warning: field `chk` is never read
--> crates\erp-plugin\src\data_service.rs:477:51
|
477 | ... struct RefCheck { chk: Option<i32> }
| -------- ^^^
| |
| field in this struct
warning: field `check_result` is never read
--> crates\erp-plugin\src\data_service.rs:1122:30
|
1122 | struct ExistsCheck { check_result: Option<i32> }
| ----------- ^^^^^^^^^^^^
| |
| field in this struct
warning: `erp-plugin` (lib) generated 3 warnings
Compiling erp-server v0.1.0 (G:\erp\crates\erp-server)
Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 45s
Running `target\debug\erp-server.exe`
Error: configuration file "config/default" not found
error: process didn't exit successfully: `target\debug\erp-server.exe` (exit code: 1)

0
.logs/backend.log Normal file
View File

187
.logs/frontend.err Normal file
View File

@@ -0,0 +1,187 @@
08:34:12 [vite] (client) [console.error] Warning: [antd: Modal] `destroyOnClose` is deprecated. Please use `destroyOnHidden` instead.
08:34:38 [vite] (client) [console.error] Warning: Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?
08:38:05 [vite] http proxy error: /api/v1/messages/unread-count
AggregateError [ECONNREFUSED]:
at internalConnectMultiple (node:net:1142:49)
at afterConnectMultiple (node:net:1723:7)
08:38:05 [vite] http proxy error: /api/v1/messages?page=1&page_size=5
AggregateError [ECONNREFUSED]:
at internalConnectMultiple (node:net:1142:49)
at afterConnectMultiple (node:net:1723:7)
08:39:35 [vite] (client) [console.error] Warning: [antd: Modal] `destroyOnClose` is deprecated. Please use `destroyOnHidden` instead.
08:39:54 [vite] (client) [console.error] Warning: Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?
08:43:34 [vite] http proxy error: /api/v1/messages/unread-count
AggregateError [ECONNREFUSED]:
at internalConnectMultiple (node:net:1142:49)
at afterConnectMultiple (node:net:1723:7)
08:43:35 [vite] http proxy error: /api/v1/messages?page=1&page_size=5
AggregateError [ECONNREFUSED]:
at internalConnectMultiple (node:net:1142:49)
at afterConnectMultiple (node:net:1723:7)
08:44:34 [vite] http proxy error: /api/v1/messages/unread-count
AggregateError [ECONNREFUSED]:
at internalConnectMultiple (node:net:1142:49)
at afterConnectMultiple (node:net:1723:7)
08:44:34 [vite] http proxy error: /api/v1/messages?page=1&page_size=5
AggregateError [ECONNREFUSED]:
at internalConnectMultiple (node:net:1142:49)
at afterConnectMultiple (node:net:1723:7)
08:45:33 [vite] http proxy error: /api/v1/admin/plugins/019da31e-17ae-7801-a1e8-640b5248f352/schema
AggregateError [ECONNREFUSED]:
at internalConnectMultiple (node:net:1142:49)
at afterConnectMultiple (node:net:1723:7)
08:45:33 [vite] http proxy error: /api/v1/plugins/019da31e-17ae-7801-a1e8-640b5248f352/product?page=1&page_size=20
AggregateError [ECONNREFUSED]:
at internalConnectMultiple (node:net:1142:49)
at afterConnectMultiple (node:net:1723:7)
08:45:33 [vite] http proxy error: /api/v1/plugins/019da31e-17ae-7801-a1e8-640b5248f352/product/resolve-labels
AggregateError [ECONNREFUSED]:
at internalConnectMultiple (node:net:1142:49)
at afterConnectMultiple (node:net:1723:7)
08:45:33 [vite] (client) [console.error] Warning: [antd: message] Static function can not consume context like dynamic theme. Please use 'App' component instead.
08:45:34 [vite] http proxy error: /api/v1/messages/unread-count
AggregateError [ECONNREFUSED]:
at internalConnectMultiple (node:net:1142:49)
at afterConnectMultiple (node:net:1723:7)
08:45:34 [vite] http proxy error: /api/v1/messages?page=1&page_size=5
AggregateError [ECONNREFUSED]:
at internalConnectMultiple (node:net:1142:49)
at afterConnectMultiple (node:net:1723:7)
08:45:35 [vite] http proxy error: /api/v1/admin/plugins/019da31e-17ae-7801-a1e8-640b5248f352/schema
AggregateError [ECONNREFUSED]:
at internalConnectMultiple (node:net:1142:49)
at afterConnectMultiple (node:net:1723:7)
08:45:35 [vite] http proxy error: /api/v1/plugins/019da31e-17ae-7801-a1e8-640b5248f352/warehouse?page=1&page_size=20
AggregateError [ECONNREFUSED]:
at internalConnectMultiple (node:net:1142:49)
at afterConnectMultiple (node:net:1723:7)
08:45:35 [vite] http proxy error: /api/v1/plugins/019da31e-17ae-7801-a1e8-640b5248f352/warehouse/resolve-labels
AggregateError [ECONNREFUSED]:
at internalConnectMultiple (node:net:1142:49)
at afterConnectMultiple (node:net:1723:7)
08:45:35 [vite] http proxy error: /api/v1/admin/plugins/019da31e-17ae-7801-a1e8-640b5248f352/schema
AggregateError [ECONNREFUSED]:
at internalConnectMultiple (node:net:1142:49)
at afterConnectMultiple (node:net:1723:7)
08:45:35 [vite] http proxy error: /api/v1/plugins/019da31e-17ae-7801-a1e8-640b5248f352/stock?page=1&page_size=20
AggregateError [ECONNREFUSED]:
at internalConnectMultiple (node:net:1142:49)
at afterConnectMultiple (node:net:1723:7)
08:45:35 [vite] http proxy error: /api/v1/plugins/019da31e-17ae-7801-a1e8-640b5248f352/stock/resolve-labels
AggregateError [ECONNREFUSED]:
at internalConnectMultiple (node:net:1142:49)
at afterConnectMultiple (node:net:1723:7)
08:45:35 [vite] http proxy error: /api/v1/plugins/019da31e-17ae-7801-a1e8-640b5248f352/supplier?page=1&page_size=20
AggregateError [ECONNREFUSED]:
at internalConnectMultiple (node:net:1142:49)
at afterConnectMultiple (node:net:1723:7)
08:45:35 [vite] http proxy error: /api/v1/admin/plugins/019da31e-17ae-7801-a1e8-640b5248f352/schema
AggregateError [ECONNREFUSED]:
at internalConnectMultiple (node:net:1142:49)
at afterConnectMultiple (node:net:1723:7)
08:45:35 [vite] http proxy error: /api/v1/plugins/019da31e-17ae-7801-a1e8-640b5248f352/supplier/resolve-labels
AggregateError [ECONNREFUSED]:
at internalConnectMultiple (node:net:1142:49)
at afterConnectMultiple (node:net:1723:7)
08:45:37 [vite] http proxy error: /api/v1/messages?page=1&page_size=20
AggregateError [ECONNREFUSED]:
at internalConnectMultiple (node:net:1142:49)
at afterConnectMultiple (node:net:1723:7)
08:45:38 [vite] http proxy error: /api/v1/workflow/definitions?page=1&page_size=20
AggregateError [ECONNREFUSED]:
at internalConnectMultiple (node:net:1142:49)
at afterConnectMultiple (node:net:1723:7)
08:45:38 [vite] http proxy error: /api/v1/workflow/definitions?page=1&page_size=20
AggregateError [ECONNREFUSED]:
at internalConnectMultiple (node:net:1142:49)
at afterConnectMultiple (node:net:1723:7)
08:45:38 [vite] (client) [Unhandled rejection] AxiosError: Request failed with status code 502
 > settle node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/core/settle.js:20:6
> XMLHttpRequest.onloadend node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/adapters/xhr.js:62:8
> Axios$1.request node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/core/Axios.js:46:40
> listProcessDefinitions src/api/workflowDefinitions.ts:54:19
52 |
53 | export async function listProcessDefinitions(page = 1, pageSize = 20) {
54 | const { data } = await client.get<{ success: boolean; data: PaginatedResponse<ProcessDefinitionInfo> }>(
| ^
55 | '/workflow/definitions',
56 | { params: { page, page_size: pageSize } },
> src/pages/workflow/ProcessDefinitions.tsx:34:18
08:45:38 [vite] (client) [Unhandled rejection] AxiosError: Request failed with status code 502
 > settle node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/core/settle.js:20:6
> XMLHttpRequest.onloadend node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/adapters/xhr.js:62:8
> Axios$1.request node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/core/Axios.js:46:40
> listProcessDefinitions src/api/workflowDefinitions.ts:54:19
52 |
53 | export async function listProcessDefinitions(page = 1, pageSize = 20) {
54 | const { data } = await client.get<{ success: boolean; data: PaginatedResponse<ProcessDefinitionInfo> }>(
| ^
55 | '/workflow/definitions',
56 | { params: { page, page_size: pageSize } },
> src/pages/workflow/ProcessDefinitions.tsx:34:18
08:45:39 [vite] http proxy error: /api/v1/organizations
AggregateError [ECONNREFUSED]:
at internalConnectMultiple (node:net:1142:49)
at afterConnectMultiple (node:net:1723:7)
08:45:39 [vite] http proxy error: /api/v1/organizations
AggregateError [ECONNREFUSED]:
at internalConnectMultiple (node:net:1142:49)
at afterConnectMultiple (node:net:1723:7)
08:45:39 [vite] http proxy error: /api/v1/roles?page=1&page_size=20
AggregateError [ECONNREFUSED]:
at internalConnectMultiple (node:net:1142:49)
at afterConnectMultiple (node:net:1723:7)
08:45:39 [vite] http proxy error: /api/v1/permissions
AggregateError [ECONNREFUSED]:
at internalConnectMultiple (node:net:1142:49)
at afterConnectMultiple (node:net:1723:7)
08:45:39 [vite] http proxy error: /api/v1/roles?page=1&page_size=20
AggregateError [ECONNREFUSED]:
at internalConnectMultiple (node:net:1142:49)
at afterConnectMultiple (node:net:1723:7)
08:45:39 [vite] http proxy error: /api/v1/permissions
AggregateError [ECONNREFUSED]:
at internalConnectMultiple (node:net:1142:49)
at afterConnectMultiple (node:net:1723:7)
08:45:41 [vite] http proxy error: /api/v1/users?page=1&page_size=20
AggregateError [ECONNREFUSED]:
at internalConnectMultiple (node:net:1142:49)
at afterConnectMultiple (node:net:1723:7)
08:45:41 [vite] http proxy error: /api/v1/roles?page=1&page_size=20
AggregateError [ECONNREFUSED]:
at internalConnectMultiple (node:net:1142:49)
at afterConnectMultiple (node:net:1723:7)
08:45:41 [vite] http proxy error: /api/v1/users?page=1&page_size=20
AggregateError [ECONNREFUSED]:
at internalConnectMultiple (node:net:1142:49)
at afterConnectMultiple (node:net:1723:7)
08:45:41 [vite] http proxy error: /api/v1/roles?page=1&page_size=20
AggregateError [ECONNREFUSED]:
at internalConnectMultiple (node:net:1142:49)
at afterConnectMultiple (node:net:1723:7)
08:45:42 [vite] http proxy error: /api/v1/admin/plugins/019da31e-17ae-7801-a1e8-640b5248f352/schema
AggregateError [ECONNREFUSED]:
at internalConnectMultiple (node:net:1142:49)
at afterConnectMultiple (node:net:1723:7)
08:45:42 [vite] http proxy error: /api/v1/plugins/019da31e-17ae-7801-a1e8-640b5248f352/purchase_order?page=1&page_size=20
AggregateError [ECONNREFUSED]:
at internalConnectMultiple (node:net:1142:49)
at afterConnectMultiple (node:net:1723:7)
08:45:42 [vite] http proxy error: /api/v1/admin/plugins/019da31e-17ae-7801-a1e8-640b5248f352/schema
AggregateError [ECONNREFUSED]:
at internalConnectMultiple (node:net:1142:49)
at afterConnectMultiple (node:net:1723:7)
08:45:42 [vite] http proxy error: /api/v1/plugins/019da31e-17ae-7801-a1e8-640b5248f352/purchase_order?page=1&page_size=20
AggregateError [ECONNREFUSED]:
at internalConnectMultiple (node:net:1142:49)
at afterConnectMultiple (node:net:1723:7)
08:45:43 [vite] http proxy error: /api/v1/admin/plugins/019da31e-17ae-7801-a1e8-640b5248f352/schema
AggregateError [ECONNREFUSED]:
at internalConnectMultiple (node:net:1142:49)
at afterConnectMultiple (node:net:1723:7)
08:45:43 [vite] http proxy error: /api/v1/plugins/019da31e-17ae-7801-a1e8-640b5248f352/sales_order?page=1&page_size=20
AggregateError [ECONNREFUSED]:
at internalConnectMultiple (node:net:1142:49)
at afterConnectMultiple (node:net:1723:7)

11
.logs/frontend.log Normal file
View File

@@ -0,0 +1,11 @@
> web@0.0.0 dev G:\erp\apps\web
> vite "--" "--strictPort"
VITE v8.0.8 ready in 372 ms
➜ Local: http://localhost:5174/
 ➜ Network: use --host to expose
08:36:42 [vite] (client) hmr update /src/index.css, /src/pages/PluginCRUDPage.tsx, /src/components/EntitySelect.tsx
08:37:13 [vite] (client) hmr update /src/index.css, /src/components/EntitySelect.tsx

1
.logs/frontend.pid Normal file
View File

@@ -0,0 +1 @@
45128