|
|
|
@ -27,6 +27,14 @@ const CoreArea: FC<PageProps> = ({
|
|
|
|
|
|
|
|
|
|
const urlParams = useParams();
|
|
|
|
|
|
|
|
|
|
useEffect(() => {
|
|
|
|
|
if (open) {
|
|
|
|
|
setActive(1)
|
|
|
|
|
setPassword('')
|
|
|
|
|
setServerIp('127.0.0.1')
|
|
|
|
|
}
|
|
|
|
|
}, [open])
|
|
|
|
|
|
|
|
|
|
// 监听是否到安装进度条步骤
|
|
|
|
|
useEffect(() => {
|
|
|
|
|
if (active == 4) {
|
|
|
|
@ -86,11 +94,15 @@ const CoreArea: FC<PageProps> = ({
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (false) {
|
|
|
|
|
message.error('用户名或密码错误!');
|
|
|
|
|
let sysName = localStorage.getItem(`${urlParams?.fileType}`);
|
|
|
|
|
if (sysName) {
|
|
|
|
|
let info = JSON.parse(sysName)
|
|
|
|
|
if (password !== info.GBasePassword) {
|
|
|
|
|
message.error('密码错误!');
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return <>
|
|
|
|
|
{
|
|
|
|
@ -111,7 +123,7 @@ const CoreArea: FC<PageProps> = ({
|
|
|
|
|
<div className={styles.pic1} style={{ left: 10 }}>填写GBase账号信息</div>
|
|
|
|
|
<div className={styles.pic1} style={{ fontSize: 12, top: 130, left: 16 }}>用户名</div>
|
|
|
|
|
<div className={styles.pic1} style={{ fontSize: 12, top: 180, left: 27 }}>密码</div>
|
|
|
|
|
<Input value={userName} onChange={(e) => { setUserName(e.target.value) }} className={styles.input1} style={{top: 121, left: 59, width: 325}}/>
|
|
|
|
|
<Input disabled value={userName} onChange={(e) => { setUserName(e.target.value) }} className={styles.input1} style={{ top: 121, left: 59, width: 325 }} />
|
|
|
|
|
<Input value={password} onChange={(e) => { setPassword(e.target.value) }} className={styles.input2} style={{ top: 171, left: 59, width: 325 }} />
|
|
|
|
|
</>}
|
|
|
|
|
{active == 3 && <div className={styles.pic1} style={{ top: 166, left: 85 }}>核心区客户端</div>}
|
|
|
|
|