fix: fix the id value in the download data
Only the project_id column need to deal with the project id info, the other columns(such as: id) use the origin value Closes-Bug: #1988967 Change-Id: I550c74c52efacc5219f2ff23d7d4b1f4d3fb04a7
This commit is contained in:
parent
a2dbe5ab8f
commit
1a3f4deed6
@ -559,17 +559,19 @@ export class BaseTable extends React.Component {
|
|||||||
sName = `${fTitle.split('ID')[0]}${sTitle}`;
|
sName = `${fTitle.split('ID')[0]}${sTitle}`;
|
||||||
}
|
}
|
||||||
let fIndex = it.idKey || rowKey;
|
let fIndex = it.idKey || rowKey;
|
||||||
|
let render = null;
|
||||||
if (
|
if (
|
||||||
it.title.includes(t('Project')) &&
|
it.title.includes(t('Project')) &&
|
||||||
it.dataIndex === 'project_name'
|
it.dataIndex === 'project_name'
|
||||||
) {
|
) {
|
||||||
fIndex = 'project_id';
|
fIndex = 'project_id';
|
||||||
|
render = (_, record) => this.getProjectId(record);
|
||||||
}
|
}
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
title: fTitle,
|
title: fTitle,
|
||||||
dataIndex: fIndex,
|
dataIndex: fIndex,
|
||||||
render: (_, record) => this.getProjectId(record),
|
render,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
...it,
|
...it,
|
||||||
|
Loading…
Reference in New Issue
Block a user