master_basic
鲁誉程 1 year ago
parent 820b341846
commit 03df604229

@ -29,7 +29,7 @@ const PowerOnAuth: FC<PageProps> = ({ }) => {
college_table_query({}).then((res) => {
if (res?.result == "success" && res?.data.length > 0) {
let layoutInfo: any = localStorage.getItem('powerOn');
if (!JSON.parse(layoutInfo).powerOn) {
if (!JSON.parse(layoutInfo)) {
setVisibility(true);
localStorage.setItem('powerOn', JSON.stringify({ powerOn: true }));
}

@ -12,12 +12,12 @@ const InstallExe: FC<PageProps> = ({ }) => {
{ name: 'GBase', select: false },
{ name: 'GBase升级程序', select: false },
{ name: 'FlashPlayer9', select: false },
{ name: 'xxxx1', select: false },
{ name: 'xxxx2', select: false },
{ name: 'xxxx3', select: false },
{ name: 'xxxx4', select: false },
{ name: 'xxxx5', select: false },
{ name: 'xxxx6', select: false },
{ name: 'MSXML4', select: false },
{ name: '.NET 2.0', select: false },
{ name: '.NET 2.0 SQL', select: false },
{ name: 'HGoogleEarth', select: false },
{ name: 'MySQLServer 5.1', select: false },
{ name: 'MyODBC 3.51', select: false },
// 专用核心密码管理分系统
{ name: '核心区安装程序', select: false },
{ name: '执勤区安装程序', select: false },

@ -1,9 +1,44 @@
import { useState } from 'react';
import styles from './index.less';
import { Input, Modal } from 'antd';
import ButtonComp from '@/components/ButtonComp';
export default function Page() {
const [unitName, setUnitName] = useState<any>('');
const [visibility, setVisibility] = useState<boolean>(false);
return (
<div>
<div onClick={() => setVisibility(true)}></div>
{/* 开机认证 */}
<Modal
title="位置信息"
open={visibility}
centered
width={500}
onCancel={() => setVisibility(false)}
footer={null}
maskClosable={false}
>
<div></div>
<div className='mb20 mt20'>
<div className='flex_aiC'>
<span style={{ marginRight: 4, color: 'red' }}>*</span>
<Input placeholder="请输入单位名称" style={{ width: 300, marginLeft: 14 }}
value={unitName}
onChange={(e) => setUnitName(e.target.value)}
/>
</div>
</div>
<div className='flex_jE mt20'>
<ButtonComp style={{marginRight: 20}} text={'定位'} onClick={() => setVisibility(false)} />
<ButtonComp style={{marginRight: 20}} text={'确定'} onClick={() => setVisibility(false)} />
<ButtonComp type='cancel' text={'取消'} onClick={() => setVisibility(false)} />
</div>
</Modal>
</div>
);
}

@ -46,7 +46,14 @@ export default function IndexPage() {
const onFinish = async (data: any) => {
setLoading(true)
await getPlugCordResult(data).then(res => {
if (res?.result == 'success' && JSON.parse(res?.data[0]).data) {
// if (res?.result == 'success' && JSON.parse(res?.data[0]).data) {
// setIsAuth(true)
// localStorage.setItem('is_auth', JSON.stringify(true));
// message.success("系统连接检测成功!")
// } else if (!JSON.parse(res?.data[0]).data) {
// message.error("系统连接检测失败!")
// }
if (res?.result == 'success') {
setIsAuth(true)
localStorage.setItem('is_auth', JSON.stringify(true));
message.success("系统连接检测成功!")

@ -1,6 +1,6 @@
export const DEV = {
// PROXY_SERVER: 'http://localhost:8088',
PROXY_SERVER: 'http://127.0.0.1:8088',
PROXY_SERVER: 'http://localhost:8088',
// PROXY_SERVER: 'http://127.0.0.1:8088',
};
export default DEV;

@ -1,7 +1,7 @@
import { DEV } from './env/dev'
// 是否写死请求地址
const hardCode = true;
const hardCode = false;
/**
* GET

Loading…
Cancel
Save