Commit 11a84781 authored by 皮倩雯's avatar 皮倩雯

fix: '数据库初始化'

parent 604823d4
Pipeline #57521 waiting for manual action with stages
......@@ -267,22 +267,26 @@ const DatabaseInitialization = props => {
};
const handlelook = () => {
// setinitVisibledetail(true);
setInitVisible(false);
setinitVisibledetail(true);
doInitLogdetali();
};
// 关闭弹窗
const handleClickdetail = () => {
setinitVisibledetail(false);
setInitContent('');
setInitContentdetail('');
setFinish(false);
deleteInitDBLogNew();
setShowDetali(false);
};
// 关闭弹窗
const handleClick = () => {
setInitVisible(false);
setInitContent('');
setInitContentdetail('');
// setInitContent('');
// setInitContentdetail('');
setFinish(false);
deleteInitDBLogNew();
setShowDetali(false);
......@@ -675,9 +679,9 @@ const DatabaseInitialization = props => {
console.log(value);
} else {
setbeforeColor('red');
setResult('当前数据库已存在不可初始化');
setResult('当前数据库已存在');
setCheckboxFlag(1);
setMsg('当前数据库已存在不可初始化');
setMsg('当前数据库已存在');
}
} else {
setbeforeColor('red');
......@@ -698,11 +702,11 @@ const DatabaseInitialization = props => {
if (res.data === true) {
setbeforeColor('red');
setPassword(false);
setResult('当前数据库已存在不可初始化 ');
setResult('当前数据库已存在 ');
GetDbChange();
deleteInitDBLogNew();
setCheckboxFlag(1);
setMsg('当前数据库已存在不可初始化');
setMsg('当前数据库已存在');
} else {
setPassword(true);
setbeforeColor('green');
......@@ -944,7 +948,7 @@ const DatabaseInitialization = props => {
style={{ color: '#eda625', marginLeft: '10px' }}
/>
<span style={{ color: 'rgb(24 144 255)', marginLeft: '10px' }}>
检测到License已被使用,无法初始化数据库
检测到License已被使用
</span>
</>
);
......@@ -953,7 +957,7 @@ const DatabaseInitialization = props => {
<>
<CloseCircleOutlined style={{ color: 'red', marginLeft: '10px' }} />
<span style={{ color: 'rgb(24 144 255)', marginLeft: '5px' }}>
未检测到License,无法初始化数据库
未检测到License
</span>
</>
);
......@@ -1214,7 +1218,7 @@ const DatabaseInitialization = props => {
handlelook();
}}
>
显示详细信息
查看详细信息
</Button>,
<Button
onClick={() => {
......@@ -1246,8 +1250,8 @@ const DatabaseInitialization = props => {
/>
</div>
</div>
<br />
{showDetali ? <span>{initContentdetail}</span> : <></>}
{/* <br />
{showDetali ? <span>{initContentdetail}</span> : <></>} */}
</div>
</Modal>
<Modal
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment