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
11a84781
Commit
11a84781
authored
Aug 11, 2022
by
皮倩雯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: '数据库初始化'
parent
604823d4
Pipeline
#57521
waiting for manual action with stages
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
12 deletions
+16
-12
DatabaseInitialization.jsx
...atabase/databaseInitialization/DatabaseInitialization.jsx
+16
-12
No files found.
src/pages/database/databaseInitialization/DatabaseInitialization.jsx
View file @
11a84781
...
@@ -267,22 +267,26 @@ const DatabaseInitialization = props => {
...
@@ -267,22 +267,26 @@ const DatabaseInitialization = props => {
};
};
const
handlelook
=
()
=>
{
const
handlelook
=
()
=>
{
// setinitVisibledetail(true);
setInitVisible
(
false
);
setinitVisibledetail
(
true
);
doInitLogdetali
();
doInitLogdetali
();
};
};
// 关闭弹窗
// 关闭弹窗
const
handleClickdetail
=
()
=>
{
const
handleClickdetail
=
()
=>
{
setinitVisibledetail
(
false
);
setinitVisibledetail
(
false
);
setInitContent
(
''
);
setInitContentdetail
(
''
);
setInitContentdetail
(
''
);
setFinish
(
false
);
setFinish
(
false
);
deleteInitDBLogNew
();
setShowDetali
(
false
);
};
};
// 关闭弹窗
// 关闭弹窗
const
handleClick
=
()
=>
{
const
handleClick
=
()
=>
{
setInitVisible
(
false
);
setInitVisible
(
false
);
setInitContent
(
''
);
//
setInitContent('');
setInitContentdetail
(
''
);
//
setInitContentdetail('');
setFinish
(
false
);
setFinish
(
false
);
deleteInitDBLogNew
();
deleteInitDBLogNew
();
setShowDetali
(
false
);
setShowDetali
(
false
);
...
@@ -675,9 +679,9 @@ const DatabaseInitialization = props => {
...
@@ -675,9 +679,9 @@ const DatabaseInitialization = props => {
console
.
log
(
value
);
console
.
log
(
value
);
}
else
{
}
else
{
setbeforeColor
(
'red'
);
setbeforeColor
(
'red'
);
setResult
(
'当前数据库已存在
不可初始化
'
);
setResult
(
'当前数据库已存在'
);
setCheckboxFlag
(
1
);
setCheckboxFlag
(
1
);
setMsg
(
'当前数据库已存在
不可初始化
'
);
setMsg
(
'当前数据库已存在'
);
}
}
}
else
{
}
else
{
setbeforeColor
(
'red'
);
setbeforeColor
(
'red'
);
...
@@ -698,11 +702,11 @@ const DatabaseInitialization = props => {
...
@@ -698,11 +702,11 @@ const DatabaseInitialization = props => {
if
(
res
.
data
===
true
)
{
if
(
res
.
data
===
true
)
{
setbeforeColor
(
'red'
);
setbeforeColor
(
'red'
);
setPassword
(
false
);
setPassword
(
false
);
setResult
(
'当前数据库已存在
不可初始化
'
);
setResult
(
'当前数据库已存在 '
);
GetDbChange
();
GetDbChange
();
deleteInitDBLogNew
();
deleteInitDBLogNew
();
setCheckboxFlag
(
1
);
setCheckboxFlag
(
1
);
setMsg
(
'当前数据库已存在
不可初始化
'
);
setMsg
(
'当前数据库已存在'
);
}
else
{
}
else
{
setPassword
(
true
);
setPassword
(
true
);
setbeforeColor
(
'green'
);
setbeforeColor
(
'green'
);
...
@@ -944,7 +948,7 @@ const DatabaseInitialization = props => {
...
@@ -944,7 +948,7 @@ const DatabaseInitialization = props => {
style=
{
{
color
:
'#eda625'
,
marginLeft
:
'10px'
}
}
style=
{
{
color
:
'#eda625'
,
marginLeft
:
'10px'
}
}
/>
/>
<
span
style=
{
{
color
:
'rgb(24 144 255)'
,
marginLeft
:
'10px'
}
}
>
<
span
style=
{
{
color
:
'rgb(24 144 255)'
,
marginLeft
:
'10px'
}
}
>
检测到License已被使用
,无法初始化数据库
检测到License已被使用
</
span
>
</
span
>
</>
</>
);
);
...
@@ -953,7 +957,7 @@ const DatabaseInitialization = props => {
...
@@ -953,7 +957,7 @@ const DatabaseInitialization = props => {
<>
<>
<
CloseCircleOutlined
style=
{
{
color
:
'red'
,
marginLeft
:
'10px'
}
}
/>
<
CloseCircleOutlined
style=
{
{
color
:
'red'
,
marginLeft
:
'10px'
}
}
/>
<
span
style=
{
{
color
:
'rgb(24 144 255)'
,
marginLeft
:
'5px'
}
}
>
<
span
style=
{
{
color
:
'rgb(24 144 255)'
,
marginLeft
:
'5px'
}
}
>
未检测到License
,无法初始化数据库
未检测到License
</
span
>
</
span
>
</>
</>
);
);
...
@@ -1214,7 +1218,7 @@ const DatabaseInitialization = props => {
...
@@ -1214,7 +1218,7 @@ const DatabaseInitialization = props => {
handlelook
();
handlelook
();
}
}
}
}
>
>
显示
详细信息
查看
详细信息
</
Button
>,
</
Button
>,
<
Button
<
Button
onClick=
{
()
=>
{
onClick=
{
()
=>
{
...
@@ -1246,8 +1250,8 @@ const DatabaseInitialization = props => {
...
@@ -1246,8 +1250,8 @@ const DatabaseInitialization = props => {
/>
/>
</
div
>
</
div
>
</
div
>
</
div
>
<
br
/>
{
/*
<br />
{
showDetali
?
<
span
>
{
initContentdetail
}
</
span
>
:
<></>
}
{showDetali ? <span>{initContentdetail}</span> : <></>}
*/
}
</
div
>
</
div
>
</
Modal
>
</
Modal
>
<
Modal
<
Modal
...
...
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