|
|
@ -27,6 +27,14 @@ const CoreArea: FC<PageProps> = ({
|
|
|
|
|
|
|
|
|
|
|
|
const urlParams = useParams();
|
|
|
|
const urlParams = useParams();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
useEffect(() => {
|
|
|
|
|
|
|
|
if (open) {
|
|
|
|
|
|
|
|
setActive(1)
|
|
|
|
|
|
|
|
setPassword('')
|
|
|
|
|
|
|
|
setServerIp('127.0.0.1')
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}, [open])
|
|
|
|
|
|
|
|
|
|
|
|
// 监听是否到安装进度条步骤
|
|
|
|
// 监听是否到安装进度条步骤
|
|
|
|
useEffect(() => {
|
|
|
|
useEffect(() => {
|
|
|
|
if (active == 4) {
|
|
|
|
if (active == 4) {
|
|
|
@ -86,9 +94,13 @@ const CoreArea: FC<PageProps> = ({
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (false) {
|
|
|
|
let sysName = localStorage.getItem(`${urlParams?.fileType}`);
|
|
|
|
message.error('用户名或密码错误!');
|
|
|
|
if (sysName) {
|
|
|
|
return true;
|
|
|
|
let info = JSON.parse(sysName)
|
|
|
|
|
|
|
|
if (password !== info.GBasePassword) {
|
|
|
|
|
|
|
|
message.error('密码错误!');
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -99,35 +111,35 @@ const CoreArea: FC<PageProps> = ({
|
|
|
|
<div className={styles.modal} style={{ width: 500, height: 460 }}>
|
|
|
|
<div className={styles.modal} style={{ width: 500, height: 460 }}>
|
|
|
|
<img src={require(`../../../assets/images/coreArea/${active}.png`)} width={500} height={460} />
|
|
|
|
<img src={require(`../../../assets/images/coreArea/${active}.png`)} width={500} height={460} />
|
|
|
|
|
|
|
|
|
|
|
|
<div className={styles.close} onClick={()=>{
|
|
|
|
<div className={styles.close} onClick={() => {
|
|
|
|
onCancel('核心区安装程序')
|
|
|
|
onCancel('核心区安装程序')
|
|
|
|
}}></div>
|
|
|
|
}}></div>
|
|
|
|
|
|
|
|
|
|
|
|
{[1, 2, 3].includes(active) && <div className={styles.title}>核心区客户端 安装程序</div>}
|
|
|
|
{[1, 2, 3].includes(active) && <div className={styles.title}>核心区客户端 安装程序</div>}
|
|
|
|
{![1, 2, 3].includes(active) && <div className={styles.title1}>核心区客户端 安装程序</div>}
|
|
|
|
{![1, 2, 3].includes(active) && <div className={styles.title1}>核心区客户端 安装程序</div>}
|
|
|
|
|
|
|
|
|
|
|
|
{active == 1 && <div className={styles.pic1}>核心区客户端安装程序</div>}
|
|
|
|
{active == 1 && <div className={styles.pic1}>核心区客户端安装程序</div>}
|
|
|
|
{active == 2 && <>
|
|
|
|
{active == 2 && <>
|
|
|
|
<div className={styles.pic1} style={{left: 10}}>填写GBase账号信息</div>
|
|
|
|
<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: 130, left: 16 }}>用户名</div>
|
|
|
|
<div className={styles.pic1} style={{fontSize: 12, top: 180, left: 27}}>密码</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}}/>
|
|
|
|
<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>}
|
|
|
|
{active == 3 && <div className={styles.pic1} style={{ top: 166, left: 85 }}>核心区客户端</div>}
|
|
|
|
{active == 5 && <div className={styles.pic1} style={{ top: 123, left: 85 }}>核心区客户端</div>}
|
|
|
|
{active == 5 && <div className={styles.pic1} style={{ top: 123, left: 85 }}>核心区客户端</div>}
|
|
|
|
|
|
|
|
|
|
|
|
{active == 6 && <>
|
|
|
|
{active == 6 && <>
|
|
|
|
<div className={styles.pic1} style={{left: 15, top: 45}}>填写GBase账号信息</div>
|
|
|
|
<div className={styles.pic1} style={{ left: 15, top: 45 }}>填写GBase账号信息</div>
|
|
|
|
<div className={styles.pic1} style={{fontSize: 12, top: 130, left: 16}}>服务器的ip地址</div>
|
|
|
|
<div className={styles.pic1} style={{ fontSize: 12, top: 130, left: 16 }}>服务器的ip地址</div>
|
|
|
|
<div className={styles.pic1} style={{fontSize: 12, top: 180, left: 39}}>服务器端口</div>
|
|
|
|
<div className={styles.pic1} style={{ fontSize: 12, top: 180, left: 39 }}>服务器端口</div>
|
|
|
|
<div className={styles.pic1} style={{fontSize: 12, top: 230, left: 50}}>本地端口</div>
|
|
|
|
<div className={styles.pic1} style={{ fontSize: 12, top: 230, left: 50 }}>本地端口</div>
|
|
|
|
<Input value={serverIp} onChange={(e) => { setServerIp(e.target.value) }} className={styles.input1} style={{top: 121, left: 109, width: 325}}/>
|
|
|
|
<Input value={serverIp} onChange={(e) => { setServerIp(e.target.value) }} className={styles.input1} style={{ top: 121, left: 109, width: 325 }} />
|
|
|
|
<Input disabled value={serverPort} onChange={(e) => { setServerPort(e.target.value) }} className={styles.input2} style={{top: 171, left: 109, width: 325}}/>
|
|
|
|
<Input disabled value={serverPort} onChange={(e) => { setServerPort(e.target.value) }} className={styles.input2} style={{ top: 171, left: 109, width: 325 }} />
|
|
|
|
<Input disabled value={localPort} onChange={(e) => { setLocalPort(e.target.value) }} className={styles.input2} style={{top: 221, left: 109, width: 325}}/>
|
|
|
|
<Input disabled value={localPort} onChange={(e) => { setLocalPort(e.target.value) }} className={styles.input2} style={{ top: 221, left: 109, width: 325 }} />
|
|
|
|
<div className={styles.pic1} style={{fontSize: 12, top: 427, left: 265}}>确定</div>
|
|
|
|
<div className={styles.pic1} style={{ fontSize: 12, top: 427, left: 265 }}>确定</div>
|
|
|
|
<div className={styles.pic1} style={{fontSize: 12, top: 427, left: 343}}>取消</div>
|
|
|
|
<div className={styles.pic1} style={{ fontSize: 12, top: 427, left: 343 }}>取消</div>
|
|
|
|
<div className={styles.pic1} style={{fontSize: 12, top: 427, left: 420}}>应用</div>
|
|
|
|
<div className={styles.pic1} style={{ fontSize: 12, top: 427, left: 420 }}>应用</div>
|
|
|
|
</>}
|
|
|
|
</>}
|
|
|
|
|
|
|
|
|
|
|
|
{[1, 2, 3].includes(active) && <div
|
|
|
|
{[1, 2, 3].includes(active) && <div
|
|
|
@ -144,7 +156,7 @@ const CoreArea: FC<PageProps> = ({
|
|
|
|
|
|
|
|
|
|
|
|
{[5, 6].includes(active) && <div
|
|
|
|
{[5, 6].includes(active) && <div
|
|
|
|
className={styles.net}
|
|
|
|
className={styles.net}
|
|
|
|
style={{ bottom: 17, right: active == 5 ? 27 : 187}}
|
|
|
|
style={{ bottom: 17, right: active == 5 ? 27 : 187 }}
|
|
|
|
onClick={() => {
|
|
|
|
onClick={() => {
|
|
|
|
active == 5 ? setValue() : installSuccess()
|
|
|
|
active == 5 ? setValue() : installSuccess()
|
|
|
|
}}>
|
|
|
|
}}>
|
|
|
|