Commit 2e91b9ac by zhaochengxiang

资产管理列表调整

parent 326e8985
import React, { useEffect, useState } from "react"; 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 MetadataInfo from './MetadataInfo';
import { highlightSearchContentByTerms } from '../../../../util'; import { highlightSearchContentByTerms } from '../../../../util';
......
...@@ -179,26 +179,35 @@ const AssetTable = (props) => { ...@@ -179,26 +179,35 @@ const AssetTable = (props) => {
title: name, title: name,
dataIndex: `element${index}`, dataIndex: `element${index}`,
ellipsis: true, ellipsis: true,
width: 150 width: 120,
render: (text, record) => {
return (
<Tooltip title={text||''}>
{text||''}
</Tooltip>
);
}
}; };
if (name === '编号') { if (name === '编号') {
params.width = 80; params.width = 60;
params.fixed = 'left'; params.fixed = 'left';
} else if (name === '中文名称') { } else if (name === '中文名称') {
params.fixed = 'left'; params.fixed = 'left';
} else if (name === '英文名称') { } else if (name === '英文名称') {
params.width = isSzseEnv?250:150; params.width = isSzseEnv?250:120;
params.fixed = 'left'; params.fixed = 'left';
params.render = (text, record) => { params.render = (text, record) => {
return ( return (
<Tooltip title={text||''}>
<a onClick={()=>{detailAsset(record);}}> <a onClick={()=>{detailAsset(record);}}>
{text||''} {text||''}
</a> </a>
</Tooltip>
); );
} }
} else if (name === '资产项') { } else if (name === '资产项') {
params.width = isSzseEnv?250:150;; params.width = isSzseEnv?250:120;
params.fixed = 'right'; params.fixed = 'right';
params.render = (text, _) => { params.render = (text, _) => {
return ( return (
...@@ -525,7 +534,7 @@ const AssetTable = (props) => { ...@@ -525,7 +534,7 @@ const AssetTable = (props) => {
dataSource={assets} dataSource={assets}
pagination={false} pagination={false}
size='default' 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 <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