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
a347dc0d
Commit
a347dc0d
authored
Sep 02, 2021
by
邓超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 数据库初始化日志可以动态渲染html,初始化调用清除日志接口
parent
54b1ec53
Pipeline
#33875
skipped with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
34 deletions
+10
-34
InitDataBase.jsx
src/pages/database/InitDataBase.jsx
+10
-34
No files found.
src/pages/database/InitDataBase.jsx
View file @
a347dc0d
...
...
@@ -145,9 +145,10 @@ const InitDataBase = props => {
setInitLoading
(
false
);
let
arr
=
[];
arr
.
push
(
res
.
data
.
content
.
split
(
/
(\r\n)
|
(\n)
/
)
.
map
((
item
,
index
)
=>
<
p
key=
{
index
}
>
{
item
}
</
p
>),
res
.
data
.
content
.
split
(
/
(\r\n)
|
(\n)
/
).
map
((
item
,
index
)
=>
(
// eslint-disable-next-line react/no-danger
<
p
key=
{
index
}
dangerouslySetInnerHTML=
{
{
__html
:
item
}
}
/>
)),
);
console
.
log
(
arr
);
setInitContent
(
arr
);
...
...
@@ -735,40 +736,15 @@ const InitDataBase = props => {
</
Button
>
</
Space
>
<
Space
>
{
/* <Popconfirm
title="是否执行数据库初始化"
okText="确认"
cancelText="取消"
onConfirm={() => {
initClick();
<
Button
type=
"primary"
onClick=
{
()
=>
{
getInitList
();
deleteInitDBLogNew
();
}
}
> */
}
<
Button
type=
"primary"
onClick=
{
()
=>
getInitList
()
}
>
>
数据库初始化
</
Button
>
{
/* </Popconfirm> */
}
{
/* {defaultSqlDir && (
<Select
placeholder="请选择解决方案"
style={{ width: '200px' }}
defaultValue={defaultSqlDir}
onChange={e => {
handleSelect(e);
}}
>
{allSqlDir &&
allSqlDir.map((item, index) => {
if (item === '产品方案 (GCK平台)') {
return null;
}
return (
<Option value={item} key={index}>
{item}
</Option>
);
})}
</Select>
)} */
}
</
Space
>
</
Space
>
</
div
>
...
...
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