fix:精选描述

This commit is contained in:
yy
2025-04-24 18:37:17 +08:00
parent e420f518b5
commit 6ce4e857ab
3 changed files with 399 additions and 374 deletions

View File

@@ -7,7 +7,7 @@ import {
ProFormSelect,
ProFormText,
} from '@ant-design/pro-components';
import { Form } from 'antd';
import { Form,Input } from 'antd';
import { DictValueEnumObj } from '@/components/DictTag';
export type ListFormProps = {
@@ -121,6 +121,18 @@ const listEdit: React.FC<ListFormProps> = (props) => {
width="md"
/>
</ProForm.Group>
<ProForm.Item
name="description"
label="精选描述"
>
<Input.TextArea
placeholder="请输入卡片精选描述最多200字"
maxLength={200}
showCount
rows={4}
style={{ resize: 'none' }}
/>
</ProForm.Item>
</ModalForm>
);
};

View File

@@ -1,6 +1,6 @@
import React, { Fragment, useEffect, useRef, useState } from 'react';
import { useAccess } from '@umijs/max';
import { Button, FormInstance, message, Modal, Switch } from 'antd';
import { Button, FormInstance, message, Modal, Switch, Tooltip } from 'antd';
import { ActionType, ProColumns, ProTable } from '@ant-design/pro-components';
import { DeleteOutlined, FormOutlined, PieChartFilled, PlusOutlined } from '@ant-design/icons';
import EditCompanyListRow from './edit';
@@ -99,6 +99,17 @@ function ManagementList() {
<Switch checked={record.status === 1} onChange={changeStatus.bind(null, record)} />
),
},
{
title: '精选描述',
dataIndex: 'description',
ellipsis: true,
render: (text) => (
<Tooltip title={text} placement="topLeft">
<span>{text || '-'}</span>
</Tooltip>
),
hideInSearch: true,
},
{
title: '操作',
hideInSearch: true,
@@ -147,6 +158,7 @@ function ManagementList() {
</Button>,
],
},
];
return (
<Fragment>

View File

@@ -8,8 +8,9 @@ declare namespace API.ApplicationProducts {
export interface Product {
createTime: string;
companyCardId: number;
companyCardId?: number;
name: string;
description?:string;
companyNature: string;
backgroudColor: string;
status: number;