Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
szse
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhaochengxiang
szse
Commits
186214cc
Commit
186214cc
authored
Jan 13, 2025
by
和金晶
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数据资产添加中英文排序
parent
79b2cb5e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
1 deletion
+25
-1
AssetTable.jsx
src/view/Manage/AssetManage/Component/AssetTable.jsx
+25
-1
No files found.
src/view/Manage/AssetManage/Component/AssetTable.jsx
View file @
186214cc
...
@@ -752,7 +752,6 @@ const AssetTable = (props) => {
...
@@ -752,7 +752,6 @@ const AssetTable = (props) => {
}
}
const
onReportAnalyseClick
=
(
val
)
=>
{
const
onReportAnalyseClick
=
(
val
)
=>
{
console
.
log
(
val
)
if
((
checkedKeys
||
[]).
length
===
0
)
{
if
((
checkedKeys
||
[]).
length
===
0
)
{
showMessage
(
'warn'
,
'请先选择一个资产'
);
showMessage
(
'warn'
,
'请先选择一个资产'
);
}
else
if
((
checkedKeys
||
[]).
length
>
1
)
{
}
else
if
((
checkedKeys
||
[]).
length
>
1
)
{
...
@@ -1059,13 +1058,38 @@ const AssetTable = (props) => {
...
@@ -1059,13 +1058,38 @@ const AssetTable = (props) => {
loading=
{
loading
}
loading=
{
loading
}
columns=
{
columns=
{
(
realColumns
||
[]).
map
((
column
,
index
)
=>
{
(
realColumns
||
[]).
map
((
column
,
index
)
=>
{
if
(
column
.
title
===
'中文名称'
)
{
return
{
return
{
...
column
,
...
column
,
onHeaderCell
:
column
=>
({
onHeaderCell
:
column
=>
({
width
:
column
.
width
,
width
:
column
.
width
,
onResize
:
handleResize
(
index
),
onResize
:
handleResize
(
index
),
}),
}),
sorter
:
(
a
,
b
)
=>
{
return
a
.
element2
.
localeCompare
(
b
.
element2
,
'zh-CN'
);
},
};
}
else
if
(
column
.
title
===
'英文名称'
)
{
return
{
...
column
,
onHeaderCell
:
column
=>
({
width
:
column
.
width
,
onResize
:
handleResize
(
index
),
}),
sorter
:
(
a
,
b
)
=>
{
return
a
.
element2
.
localeCompare
(
b
.
element2
);
},
};
};
}
else
{
return
{
...
column
,
onHeaderCell
:
column
=>
({
width
:
column
.
width
,
onResize
:
handleResize
(
index
),
}),
};
}
})
})
}
}
rowKey=
'id'
rowKey=
'id'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment