Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivManage
Project
Project
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
ReactWeb5
CivManage
Commits
c8627e28
Commit
c8627e28
authored
Jul 09, 2021
by
shaoan123
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决表字段配置没有key的问题
parent
6d52b027
Pipeline
#31321
passed with stages
in 51 minutes 11 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
index.jsx
src/pages/platformCenter/bsmanager/tablemanager/index.jsx
+8
-7
No files found.
src/pages/platformCenter/bsmanager/tablemanager/index.jsx
View file @
c8627e28
...
...
@@ -94,7 +94,8 @@ const TableManager = () => {
setVisible
(
true
);
}
//字段配置
const
fieldsConfig
=
(
record
)
=>
{
const
fieldsConfig
=
(
record
,
e
)
=>
{
e
.
stopPropagation
()
setFormObj
(
record
);
history
.
push
(
`/platformCenter/bsmanger/filedConfig/
${
record
.
tableName
}
`
)
// setType('config');
...
...
@@ -174,24 +175,24 @@ const TableManager = () => {
}
}
}
for
(
let
key
in
tempObj
)
{
for
(
let
key
s
in
tempObj
)
{
let
arr
=
[]
tempObj
[
key
].
map
(
item
=>
{
tempObj
[
key
]
=
arr
;
tempObj
[
keys
].
map
((
item
,
index
)
=>
{
tempObj
[
keys
]
=
arr
;
item
.
key
=
index
arr
.
push
(
item
)
})
}
return
tempObj
}
const
expandedRowRender
=
(
item
)
=>
{
console
.
log
(
'item'
,
item
);
const
columns1
=
[
{
title
:
'名称'
,
dataIndex
:
'tableName'
,
key
:
'tableName'
,
width
:
300
,
render
:
text
=>
<
a
>
{
text
}
</
a
>,
render
:
(
text
,
record
)
=>
<
a
onClick=
{
e
=>
fieldsConfig
(
record
,
e
)
}
>
{
text
}
</
a
>,
},
{
...
...
@@ -256,7 +257,7 @@ const TableManager = () => {
</
Tooltip
>
<
Tooltip
title=
"字段配置"
>
<
FontColorsOutlined
onClick=
{
()
=>
fieldsConfig
(
record
)
}
onClick=
{
e
=>
fieldsConfig
(
record
,
e
)
}
style=
{
{
fontSize
:
'16px'
,
color
:
'#1890FF'
}
}
/>
</
Tooltip
>
...
...
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