修改样式
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
.evaluate-template-table {
|
||||
margin-top: 16px;
|
||||
// margin-top: 16px;
|
||||
|
||||
.action-buttons {
|
||||
display: flex;
|
||||
|
@ -611,8 +611,16 @@ const EvaluateTemplateTable: React.FC<EvaluateTemplateTableProps> = ({
|
||||
|
||||
const filterColumns = (col: any) => {
|
||||
if (isDetail) {
|
||||
// 如果是详情,过滤掉操作列
|
||||
if (col.key === 'level1Action') {
|
||||
// 如果是详情,过滤掉操作列 过滤掉是否可编辑列
|
||||
if (
|
||||
[
|
||||
'level1Action',
|
||||
'indicatorStEditST',
|
||||
'baseIndicatorEditST',
|
||||
'descIndicatorEditST',
|
||||
'scoreEditST',
|
||||
].includes(col.key)
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@ -685,7 +693,6 @@ const EvaluateTemplateTable: React.FC<EvaluateTemplateTableProps> = ({
|
||||
dataIndex: 'index',
|
||||
align: 'center',
|
||||
key: 'index',
|
||||
width: 50,
|
||||
render: (_: any, record: TableRowItem, index: number) => {
|
||||
return <>{index + 1}</>;
|
||||
},
|
||||
@ -695,7 +702,7 @@ const EvaluateTemplateTable: React.FC<EvaluateTemplateTableProps> = ({
|
||||
dataIndex: 'indicatorType',
|
||||
align: 'center',
|
||||
key: 'indicatorType',
|
||||
width: 120,
|
||||
ellipsis: true, // 自动加省略号
|
||||
render: (text: string, record: TableRowItem) => {
|
||||
return renderWithRowSpan(text, record, (cellContent) => {
|
||||
if (isDetail) {
|
||||
@ -733,6 +740,7 @@ const EvaluateTemplateTable: React.FC<EvaluateTemplateTableProps> = ({
|
||||
align: 'center',
|
||||
dataIndex: 'baseIndicator',
|
||||
key: 'baseIndicator',
|
||||
ellipsis: true, // 自动加省略号
|
||||
width: 150,
|
||||
render: (text: string, record: TableRowItem) => {
|
||||
return renderWithRowSpan(text, record, (cellContent) => {
|
||||
@ -756,6 +764,7 @@ const EvaluateTemplateTable: React.FC<EvaluateTemplateTableProps> = ({
|
||||
// (0.是、1.否 int类型)
|
||||
title: '是否可编辑',
|
||||
align: 'center',
|
||||
ellipsis: true, // 自动加省略号
|
||||
dataIndex: 'baseIndicatorEditST',
|
||||
key: 'baseIndicatorEditST',
|
||||
width: 50,
|
||||
@ -780,7 +789,7 @@ const EvaluateTemplateTable: React.FC<EvaluateTemplateTableProps> = ({
|
||||
align: 'center',
|
||||
dataIndex: 'descIndicator',
|
||||
key: 'descIndicator',
|
||||
width: 200,
|
||||
width: 100,
|
||||
render: (text: string, record: TableRowItem) => {
|
||||
return renderWithRowSpan(text, record, (cellContent) => {
|
||||
if (isDetail) {
|
||||
@ -803,6 +812,7 @@ const EvaluateTemplateTable: React.FC<EvaluateTemplateTableProps> = ({
|
||||
// (0.是、1.否 int类型)
|
||||
title: '是否可编辑',
|
||||
align: 'center',
|
||||
ellipsis: true, // 自动加省略号
|
||||
dataIndex: 'descIndicatorEditST',
|
||||
key: 'descIndicatorEditST',
|
||||
width: 50,
|
||||
@ -829,7 +839,8 @@ const EvaluateTemplateTable: React.FC<EvaluateTemplateTableProps> = ({
|
||||
align: 'center',
|
||||
dataIndex: 'stScore',
|
||||
key: 'stScore',
|
||||
width: 80,
|
||||
width: 100,
|
||||
ellipsis: true, // 自动加省略号
|
||||
render: (text: string, record: TableRowItem) => {
|
||||
return renderWithRowSpan(text, record, (cellContent) => {
|
||||
if (isDetail) {
|
||||
@ -852,6 +863,7 @@ const EvaluateTemplateTable: React.FC<EvaluateTemplateTableProps> = ({
|
||||
// (0.是、1.否 int类型)
|
||||
title: '是否可编辑',
|
||||
align: 'center',
|
||||
ellipsis: true, // 自动加省略号
|
||||
dataIndex: 'scoreEditST',
|
||||
key: 'scoreEditST',
|
||||
width: 50,
|
||||
@ -928,6 +940,7 @@ const EvaluateTemplateTable: React.FC<EvaluateTemplateTableProps> = ({
|
||||
align: 'center',
|
||||
dataIndex: 'indicatorStEditST',
|
||||
key: 'indicatorStEditST',
|
||||
ellipsis: true, // 自动加省略号
|
||||
width: 50,
|
||||
render: (text: string, record: TableRowItem) => {
|
||||
return renderWithRowSpan(text, record, (cellContent) => {
|
||||
@ -956,7 +969,8 @@ const EvaluateTemplateTable: React.FC<EvaluateTemplateTableProps> = ({
|
||||
dataIndex: 'subIndicator',
|
||||
key: 'subIndicator',
|
||||
align: 'center',
|
||||
width: 200,
|
||||
ellipsis: true, // 自动加省略号
|
||||
width: 150,
|
||||
render: (text: string, record: TableRowItem) => {
|
||||
if (isDetail) {
|
||||
return text || '-';
|
||||
@ -977,8 +991,9 @@ const EvaluateTemplateTable: React.FC<EvaluateTemplateTableProps> = ({
|
||||
title: intl.formatMessage({ id: 'supplierTemplateManage.evaluateTable.score' }),
|
||||
dataIndex: 'ndScore',
|
||||
key: 'ndScore',
|
||||
width: 80,
|
||||
ellipsis: true, // 自动加省略号
|
||||
align: 'center',
|
||||
width: 100,
|
||||
render: (text: string, record: TableRowItem) => {
|
||||
if (isDetail) {
|
||||
return text || '-';
|
||||
@ -1025,6 +1040,8 @@ const EvaluateTemplateTable: React.FC<EvaluateTemplateTableProps> = ({
|
||||
dataIndex: 'descScore',
|
||||
align: 'center',
|
||||
key: 'descScore',
|
||||
ellipsis: true, // 自动加省略号
|
||||
width: 150,
|
||||
render: (text: string, record: TableRowItem) => {
|
||||
if (isDetail) {
|
||||
return text || '-';
|
||||
|
Reference in New Issue
Block a user