Merge branch 'y-code'
This commit is contained in:
@@ -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>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -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>
|
||||
|
||||
3
src/types/application/preproducts.d.ts
vendored
3
src/types/application/preproducts.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user