💥 feat(模块): 添加了个很棒的功能

This commit is contained in:
cclu 2025-05-07 14:34:06 +08:00
parent 030e621129
commit 9e41ad77de

View File

@ -109,6 +109,17 @@ const examineModal: React.FC<{ currentUser: any }> = (props) => {
// } // }
// }, // },
{
title: <div style={{ textAlign: 'center' }}></div>,
dataIndex: "status",
hideInTable: true,
valueType: 'select',
valueEnum: {
"0": "无效",
"1": "有效"
},
initialValue: "1",
},
{ {
title: <div style={{ textAlign: 'center' }}></div>, title: <div style={{ textAlign: 'center' }}></div>,
dataIndex: "serverPartName", dataIndex: "serverPartName",
@ -368,7 +379,7 @@ const examineModal: React.FC<{ currentUser: any }> = (props) => {
scroll={{ x: "100%", y: 'calc(100vh - 400px)' }} scroll={{ x: "100%", y: 'calc(100vh - 400px)' }}
headerTitle={<span style={{ color: "#1890ff", fontSize: 14, fontWeight: 600 }}></span>} headerTitle={<span style={{ color: "#1890ff", fontSize: 14, fontWeight: 600 }}></span>}
search={{ span: 6 }} search={{ span: 6 }}
request={async () => { request={async (params) => {
console.log('selectedId', selectedId); console.log('selectedId', selectedId);
if (!(selectedId && selectedId.length > 0)) { if (!(selectedId && selectedId.length > 0)) {
@ -378,6 +389,7 @@ const examineModal: React.FC<{ currentUser: any }> = (props) => {
const req: any = { const req: any = {
serverPartIds: selectedId && selectedId.length > 0 ? selectedId : [], serverPartIds: selectedId && selectedId.length > 0 ? selectedId : [],
status: params?.status === '1' ? true : params?.status === '0' ? false : null
} }
const data = await handleSearchModalTree(req) const data = await handleSearchModalTree(req)
if (data && data.length > 0) { if (data && data.length > 0) {