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
3b8c25ca
Commit
3b8c25ca
authored
Oct 27, 2022
by
皮倩雯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: '数据库升级优化'
parent
4e1e7a5c
Pipeline
#62589
passed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
ManagementDataBase.jsx
src/pages/database/ManagementDataBase/ManagementDataBase.jsx
+6
-8
No files found.
src/pages/database/ManagementDataBase/ManagementDataBase.jsx
View file @
3b8c25ca
...
...
@@ -41,7 +41,6 @@ const ManagementDataBase = () => {
const
[
checkSql
,
setCheckSql
]
=
useState
(
''
);
const
[
sqlVisible
,
setSqlVisible
]
=
useState
(
false
);
const
[
repairTypeList
,
setRepairTypeList
]
=
useState
([]);
const
[
keepValue
,
setKeepValue
]
=
useState
([]);
const
[
list
,
setlist
]
=
useState
([
'表'
,
'字段'
,
'主外键'
,
'主键'
,
'索引'
,
'复合索引'
]);
const
[
selectedRowKeys
,
setSelectedRowKeys
]
=
useState
([]);
// 保存已选自动升级表键值
const
[
keepCheckList
,
setKeepChecklist
]
=
useState
([]);
// 保存已选自动升级表值
...
...
@@ -116,9 +115,6 @@ const ManagementDataBase = () => {
}
console
.
log
(
datalist
);
// 所有数据的key
setKeepData
(
data
);
setSelectedRowKeys
(
datalist
);
setKeepChecklist
(
arr
);
setKeepValue
(
res
.
RepairTypeList
);
console
.
log
(
data
);
// 分类数组
let
aa
=
[];
if
(
data
.
length
>
0
)
{
...
...
@@ -212,6 +208,8 @@ const ManagementDataBase = () => {
setCheckFlag
(
checkFlag
+
1
);
setUpFlag
(
upFlag
+
1
);
if
(
res
.
code
===
0
)
{
setKeepChecklist
([]);
setSelectedRowKeys
([]);
setFilteredValue
([]);
notification
.
success
({
message
:
'通知'
,
...
...
@@ -466,8 +464,8 @@ const ManagementDataBase = () => {
// 复选框
const
rowSelection
=
{
selectedRowKeys
,
columnTitle
:
' '
,
hideDefaultSelections
:
true
,
//
columnTitle: ' ',
//
hideDefaultSelections: true,
onChange
:
(
RowKeys
,
Rows
)
=>
{
// 找到勾选/取消勾选项的Type
let
aa
=
[];
...
...
@@ -625,7 +623,7 @@ const ManagementDataBase = () => {
<
div
className=
{
styles
.
tableTitle
}
>
<
div
style=
{
{
display
:
'inline-block'
}
}
>
<
span
style=
{
{
marginRight
:
'100px'
}
}
>
升级详情
</
span
>
{
repairTypeList
.
length
>
0
&&
(
{
/* {
repairTypeList.length > 0 && (
<>
<Checkbox
checked={allchecked}
...
...
@@ -646,7 +644,7 @@ const ManagementDataBase = () => {
))}
</div>
</>
)
}
)}
*/
}
</
div
>
<
div
style=
{
{
display
:
'inline-block'
}
}
>
<
strong
>
...
...
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