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

fix: '数据库初始化'

parent 604823d4
Pipeline #57521 waiting for manual action with stages
...@@ -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
......
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