修改供应商弹框样式
This commit is contained in:
@ -251,7 +251,7 @@ const SupplierSelector: React.FC<SupplierSelectorProps> = ({
|
||||
ellipsis: true,
|
||||
render: (supplierName: string, record: SupplierItem) => (
|
||||
<Tooltip placement="topLeft" title={supplierName}>
|
||||
<Button type="link" onClick={() => supplierDetailModal?.(record.id)}>{supplierName}</Button>
|
||||
<a onClick={() => supplierDetailModal?.(record.id)}>{supplierName}</a>
|
||||
</Tooltip>
|
||||
),
|
||||
},
|
||||
|
@ -117,7 +117,7 @@ const SupplierAnnualStatistics: React.FC = () => {
|
||||
},
|
||||
render: (text: string, record: DataStatistics.AnnualReviewStatisticsRecord) => (
|
||||
<Tooltip placement="topLeft" title={text}>
|
||||
<Button type="link" onClick={() => supplierDetailModal?.(record.supplierId)}>{text}</Button>
|
||||
<a onClick={() => supplierDetailModal?.(record.supplierId)}>{text}</a>
|
||||
</Tooltip>
|
||||
),
|
||||
},
|
||||
|
@ -129,7 +129,7 @@ const SupplierAnnualStatistics: React.FC = () => {
|
||||
},
|
||||
render: (text: string, record: DataStatistics.AnnualReviewStatisticsRecord) => (
|
||||
<Tooltip placement="topLeft" title={text}>
|
||||
<Button type="link" onClick={() => supplierDetailModal?.(record.supplierId)}>{text}</Button>
|
||||
<a onClick={() => supplierDetailModal?.(record.supplierId)}>{text}</a>
|
||||
</Tooltip>
|
||||
),
|
||||
},
|
||||
|
@ -149,7 +149,7 @@ const SupplierEvaluateStatistics: React.FC = () => {
|
||||
},
|
||||
render: (text: string, record: DataStatistics.EvaluateStatisticsRecord) => (
|
||||
<Tooltip placement="topLeft" title={text}>
|
||||
<Button type="link" onClick={() => supplierDetailModal?.(record.id)}>{text}</Button>
|
||||
<a onClick={() => supplierDetailModal?.(record.id)}>{text}</a>
|
||||
</Tooltip>
|
||||
),
|
||||
},
|
||||
|
@ -121,7 +121,7 @@ const SupplierExitStatistics: React.FC = () => {
|
||||
},
|
||||
render: (text: string, record: DataStatistics.ExitStatisticsRecord) => (
|
||||
<Tooltip placement="topLeft" title={text}>
|
||||
<Button type="link" onClick={() => supplierDetailModal?.(record.supplierId)}>{text}</Button>
|
||||
<a onClick={() => supplierDetailModal?.(record.supplierId)}>{text}</a>
|
||||
</Tooltip>
|
||||
),
|
||||
},
|
||||
|
@ -149,7 +149,7 @@ const SupplierQualificationWarningStatistics: React.FC = () => {
|
||||
},
|
||||
render: (text: string, record: DataStatistics.QualificationExpireRecord) => (
|
||||
<Tooltip placement="topLeft" title={text}>
|
||||
<Button type="link" onClick={() => supplierDetailModal?.(record.supplierId)}>{text}</Button>
|
||||
<a onClick={() => supplierDetailModal?.(record.supplierId)}>{text}</a>
|
||||
</Tooltip>
|
||||
),
|
||||
},
|
||||
|
@ -135,7 +135,7 @@ const SupplierAnnualResultDetail: React.FC = () => {
|
||||
<Card title={intl.formatMessage({ id: 'supplierAnnualResult.detail.basicInfo' })} bordered={false} className={styles['detail-card']}>
|
||||
<Descriptions column={2} bordered>
|
||||
<Descriptions.Item label={intl.formatMessage({ id: 'supplierAnnualResult.detail.supplierName' })}>
|
||||
<Button type="link" onClick={() => supplierDetailModal?.(reviewDetail.supplierId)}>{supplierName || reviewDetail.name}</Button>
|
||||
<a onClick={() => supplierDetailModal?.(reviewDetail.supplierId)}>{supplierName || reviewDetail.name}</a>
|
||||
</Descriptions.Item>
|
||||
<Descriptions.Item label={intl.formatMessage({ id: 'supplierAnnualResult.detail.annualTheme' })}>
|
||||
{annualTheme}
|
||||
|
@ -11,6 +11,7 @@ import {
|
||||
Select,
|
||||
Typography,
|
||||
DatePicker,
|
||||
Tooltip,
|
||||
} from 'antd';
|
||||
import { ArrowLeftOutlined, SearchOutlined, DeleteOutlined } from '@ant-design/icons';
|
||||
import { getAnnualResultSupplierList } from '@/servers/api/supplierAnnual';
|
||||
@ -165,7 +166,9 @@ const SupplierAnnualResultQuery: React.FC = () => {
|
||||
dataIndex: 'name',
|
||||
key: 'name',
|
||||
render: (text: string, record: supplierAnnualResult.SupplierRecord) => (
|
||||
<Button type="link" onClick={() => supplierDetailModal?.(record.supplierId)}>{text}</Button>
|
||||
<Tooltip placement="topLeft" title={text}>
|
||||
<a onClick={() => supplierDetailModal?.(record.supplierId)}>{text}</a>
|
||||
</Tooltip>
|
||||
),
|
||||
},
|
||||
{
|
||||
|
@ -11,7 +11,8 @@ import {
|
||||
Select,
|
||||
Typography,
|
||||
Tag,
|
||||
DatePicker
|
||||
DatePicker,
|
||||
Tooltip,
|
||||
} from 'antd';
|
||||
import { ArrowLeftOutlined, SearchOutlined, DeleteOutlined } from '@ant-design/icons';
|
||||
import { getAnnualResultReviewList } from '@/servers/api/supplierAnnual';
|
||||
@ -187,7 +188,9 @@ const SupplierAnnualResultQuery2: React.FC = () => {
|
||||
dataIndex: 'name',
|
||||
key: 'name',
|
||||
render: (text: string, record: supplierAnnualResult.ReviewRecord) => (
|
||||
<Button type="link" onClick={() => supplierDetailModal?.(record.supplierId)}>{text}</Button>
|
||||
<Tooltip placement="topLeft" title={text}>
|
||||
<a onClick={() => supplierDetailModal?.(record.supplierId)}>{text}</a>
|
||||
</Tooltip>
|
||||
),
|
||||
},
|
||||
{
|
||||
|
@ -185,7 +185,7 @@ const SupplierAnnualReview: React.FC = () => {
|
||||
},
|
||||
render: (text: string, record: supplierAnnualReview.ReviewRecord) => (
|
||||
<Tooltip placement="topLeft" title={text}>
|
||||
<Button type="link" onClick={() => supplierDetailModal?.(record.supplierId)}>{text}</Button>
|
||||
<a onClick={() => supplierDetailModal?.(record.supplierId)}>{text}</a>
|
||||
</Tooltip>
|
||||
),
|
||||
},
|
||||
|
@ -189,7 +189,7 @@ const SupplierAnnualReviewScore: React.FC = () => {
|
||||
{reviewDetail.annualreviewTheme}
|
||||
</Descriptions.Item>
|
||||
<Descriptions.Item label={intl.formatMessage({ id: 'supplierAnnualReview.list.supplierName' })}>
|
||||
<Button type="link" onClick={() => supplierDetailModal?.(reviewDetail.supplierId)}>{reviewDetail.name}</Button>
|
||||
<a onClick={() => supplierDetailModal?.(reviewDetail.supplierId)}>{reviewDetail.name}</a>
|
||||
</Descriptions.Item>
|
||||
<Descriptions.Item label={intl.formatMessage({ id: 'supplierAnnualReview.list.department' })}>
|
||||
{reviewDetail.deptName || '-'}
|
||||
|
@ -153,7 +153,7 @@ const SupplierAnnualReviewDetail: React.FC = () => {
|
||||
{reviewDetail.annualreviewTheme}
|
||||
</Descriptions.Item>
|
||||
<Descriptions.Item label={intl.formatMessage({ id: 'supplierAnnualReview.list.supplierName' })}>
|
||||
<Button type="link" onClick={() => supplierDetailModal?.(reviewDetail.supplierId)}>{reviewDetail.name}</Button>
|
||||
<a onClick={() => supplierDetailModal?.(reviewDetail.supplierId)}>{reviewDetail.name}</a>
|
||||
</Descriptions.Item>
|
||||
<Descriptions.Item label={intl.formatMessage({ id: 'supplierAnnualReview.list.department' })}>
|
||||
{reviewDetail.deptName || '-'}
|
||||
|
@ -1,5 +1,5 @@
|
||||
import React from 'react';
|
||||
import { Card, Table, Button, message } from 'antd';
|
||||
import { Card, Table, Button, message, Tooltip } from 'antd';
|
||||
import { useIntl, FormattedMessage } from 'umi';
|
||||
import styles from '../../supplierAnnualTaskManageDetail.less';
|
||||
import { useSupplierDetailModal } from '@/components/SupplierDetailModalContext/SupplierDetailModalContext';
|
||||
@ -37,7 +37,9 @@ const SupplierInfo: React.FC<SupplierInfoProps> = ({ taskData, onViewEvaluators
|
||||
dataIndex: 'supplierName',
|
||||
key: 'supplierName',
|
||||
render: (text: string, record: any) => (
|
||||
<Button type="link" onClick={() => supplierDetailModal?.(record.supplierId)}>{text}</Button>
|
||||
<Tooltip placement="topLeft" title={text}>
|
||||
<a onClick={() => supplierDetailModal?.(record.supplierId)}>{text}</a>
|
||||
</Tooltip>
|
||||
),
|
||||
},
|
||||
{
|
||||
|
@ -205,7 +205,7 @@ const SupplierEvaluateResultInfo: React.FC = () => {
|
||||
},
|
||||
render: (supplierName: string, record: SupplierEvaluateResult.EvaluateSupplierItem) => (
|
||||
<Tooltip placement="topLeft" title={supplierName}>
|
||||
<Button type="link" onClick={() => supplierDetailModal?.(record.supplierId)}>{supplierName}</Button>
|
||||
<a onClick={() => supplierDetailModal?.(record.supplierId)}>{supplierName}</a>
|
||||
</Tooltip>
|
||||
),
|
||||
},
|
||||
|
@ -210,9 +210,9 @@ const SupplierEvaluateResultScoreByList: React.FC = () => {
|
||||
},
|
||||
render: (supplierName: string, rowData: SupplierEvaluateResult.ScoreDataItem) => (
|
||||
<Tooltip placement="topLeft" title={supplierName}>
|
||||
<Button type="link" onClick={() => supplierDetailModal?.(rowData.supplierId)}>
|
||||
<a onClick={() => supplierDetailModal?.(rowData.supplierId)}>
|
||||
{supplierName}
|
||||
</Button>
|
||||
</a>
|
||||
</Tooltip>
|
||||
),
|
||||
},
|
||||
|
@ -11,6 +11,7 @@ import {
|
||||
DatePicker,
|
||||
Select,
|
||||
Table,
|
||||
Tooltip,
|
||||
} from 'antd';
|
||||
import { SearchOutlined, DeleteOutlined } from '@ant-design/icons';
|
||||
import { history, useIntl } from 'umi';
|
||||
@ -268,7 +269,9 @@ status:状态
|
||||
dataIndex: 'name',
|
||||
key: 'name',
|
||||
render: (text: string, record: any) => (
|
||||
<Button type="link" onClick={() => supplierDetailModal?.(record.supplierId)}>{text}</Button>
|
||||
<Tooltip placement="topLeft" title={text}>
|
||||
<a onClick={() => supplierDetailModal?.(record.supplierId)}>{text}</a>
|
||||
</Tooltip>
|
||||
),
|
||||
},
|
||||
{
|
||||
|
@ -1,5 +1,5 @@
|
||||
import React from 'react';
|
||||
import { Card, Table, Button, message } from 'antd';
|
||||
import { Card, Table, Button, message, Tooltip } from 'antd';
|
||||
import styles from '../../supplierTaskManageDetail.less';
|
||||
import { useIntl } from 'umi';
|
||||
import { useSupplierDetailModal } from '@/components/SupplierDetailModalContext/SupplierDetailModalContext';
|
||||
@ -54,7 +54,9 @@ const SupplierInfo: React.FC<SupplierInfoProps> = ({ taskData, onViewEvaluators
|
||||
dataIndex: 'supplierName',
|
||||
key: 'supplierName',
|
||||
render: (text: string, record: any) => (
|
||||
<Button type="link" onClick={() => supplierDetailModal?.(record.supplierId)}>{text}</Button>
|
||||
<Tooltip placement="topLeft" title={text}>
|
||||
<a onClick={() => supplierDetailModal?.(record.supplierId)}>{text}</a>
|
||||
</Tooltip>
|
||||
),
|
||||
},
|
||||
{
|
||||
|
Reference in New Issue
Block a user