Fix: 仓库管理页显示网站名称 #9

Merged
longbot merged 1 commits from longbot/WEB:Feature-add-shipment into main 2025-08-13 10:09:59 +00:00
1 changed files with 9 additions and 0 deletions
Showing only changes of commit 2cc36e065b - Show all commits

View File

@ -15,6 +15,7 @@ import {
} from '@ant-design/pro-components';
import { App, Button, Divider, Popconfirm } from 'antd';
import { useRef, useState } from 'react';
import { sitecontrollerAll } from '@/servers/api/site';
const ListPage: React.FC = () => {
const actionRef = useRef<ActionType>();
@ -44,7 +45,15 @@ const ListPage: React.FC = () => {
{
title: '网站',
dataIndex: 'siteId',
valueType: 'select',
hideInSearch: true,
request: async () => {
const { data = [] } = await sitecontrollerAll();
return data.map((item) => ({
label: item.siteName,
value: item.id,
}));
},
},
{
title: '订单号',