提交 3cbcfab3 作者: ZhangLingKun

功能:招标快讯问题修复

上级 e3b0efac
...@@ -161,12 +161,14 @@ const MaterielManageDetail = () => { ...@@ -161,12 +161,14 @@ const MaterielManageDetail = () => {
// 如果是当前页的第一条数据 // 如果是当前页的第一条数据
if (tableIndex === 0 && from === 'up') { if (tableIndex === 0 && from === 'up') {
paginationChange(pagination.current - 1, pagination.pageSize); paginationChange(pagination.current - 1, pagination.pageSize);
await getAllData();
await setSortBtnDisabled(false); await setSortBtnDisabled(false);
return; return;
} }
// 如果是当前页的最后一条数据 // 如果是当前页的最后一条数据
if (tableIndex === tableData.length - 1 && from === 'down') { if (tableIndex === tableData.length - 1 && from === 'down') {
paginationChange(pagination.current + 1, pagination.pageSize); paginationChange(pagination.current + 1, pagination.pageSize);
await getAllData();
await setSortBtnDisabled(false); await setSortBtnDisabled(false);
return; return;
} }
......
import { useEffect, useState } from 'react'; import { useEffect, useState } from 'react';
import { useLocation, useNavigate } from 'react-router-dom'; import { useLocation, useNavigate } from 'react-router-dom';
import SearchBox from '~/components/search-box'; import SearchBox from '~/components/search-box';
import { Button, Table } from 'antd'; import { Button, Table, Tooltip } from 'antd';
import { ArrowLeftOutlined } from '@ant-design/icons'; import { ArrowLeftOutlined } from '@ant-design/icons';
import qs from 'query-string'; import qs from 'query-string';
import { InterListType } from '~/api/interface'; import { InterListType } from '~/api/interface';
...@@ -85,6 +85,21 @@ const TenderManageDetail = () => { ...@@ -85,6 +85,21 @@ const TenderManageDetail = () => {
align: 'center', align: 'center',
width: '300px', width: '300px',
ellipsis: true, ellipsis: true,
render: (text) =>
text && (
<Tooltip placement='top' title={<div dangerouslySetInnerHTML={{ __html: text }} />}>
<div
style={{
height: '20px',
overflow: 'hidden',
textOverflow: 'ellipsis',
whiteSpace: 'nowrap',
wordBreak: 'break-all',
}}
dangerouslySetInnerHTML={{ __html: text }}
/>
</Tooltip>
),
}, },
{ {
title: '价格(万元)', title: '价格(万元)',
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论