Commit 2e91b9ac by zhaochengxiang

资产管理列表调整

parent 326e8985
import React, { useEffect, useState } from "react";
import { Modal, Typography, Spin, Tabs, Descriptions } from "antd";
import { Spin, Tabs, Descriptions } from "antd";
import MetadataInfo from './MetadataInfo';
import { highlightSearchContentByTerms } from '../../../../util';
......
......@@ -179,26 +179,35 @@ const AssetTable = (props) => {
title: name,
dataIndex: `element${index}`,
ellipsis: true,
width: 150
width: 120,
render: (text, record) => {
return (
<Tooltip title={text||''}>
{text||''}
</Tooltip>
);
}
};
if (name === '编号') {
params.width = 80;
params.width = 60;
params.fixed = 'left';
} else if (name === '中文名称') {
params.fixed = 'left';
} else if (name === '英文名称') {
params.width = isSzseEnv?250:150;
params.width = isSzseEnv?250:120;
params.fixed = 'left';
params.render = (text, record) => {
return (
<a onClick={()=>{detailAsset(record);}}>
{text||''}
</a>
<Tooltip title={text||''}>
<a onClick={()=>{detailAsset(record);}}>
{text||''}
</a>
</Tooltip>
);
}
} else if (name === '资产项') {
params.width = isSzseEnv?250:150;;
params.width = isSzseEnv?250:120;
params.fixed = 'right';
params.render = (text, _) => {
return (
......@@ -525,7 +534,7 @@ const AssetTable = (props) => {
dataSource={assets}
pagination={false}
size='default'
scroll={{ x: 1500, y: 'calc(100vh - 64px - 30px - 57px - 39px - 10px - 42px)' }}
scroll={{ x: 1000, y: 'calc(100vh - 64px - 30px - 57px - 39px - 10px - 42px)' }}
/>
<Pagination
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment