|
|
|
@ -67,10 +67,10 @@ const InstallExe: FC<PageProps> = ({ }) => {
|
|
|
|
|
onClick={() => {
|
|
|
|
|
|
|
|
|
|
const notRequireds = [
|
|
|
|
|
'MySQLServer 5.1',
|
|
|
|
|
'MyODBC 3.51',
|
|
|
|
|
'MySQLServer 5.1',
|
|
|
|
|
'MyODBC 3.51',
|
|
|
|
|
'密钥格式管理安装程序',
|
|
|
|
|
'认证服务器Install',
|
|
|
|
|
'认证服务器Install',
|
|
|
|
|
'用户登录组件'
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
@ -85,17 +85,6 @@ const InstallExe: FC<PageProps> = ({ }) => {
|
|
|
|
|
// 如果(选中) 或者 (不需要安装的) 就返回
|
|
|
|
|
if (data.select || notRequireds.includes(item.name)) return data;
|
|
|
|
|
|
|
|
|
|
// 暂时先gbase升级程序(没找到安装流程图片)通过点击就安装成功
|
|
|
|
|
if (data.name == 'GBase升级程序') {
|
|
|
|
|
|
|
|
|
|
message.success('GBase升级成功!')
|
|
|
|
|
let installExe: any = localStorage.getItem('installExe')
|
|
|
|
|
let obj = JSON.parse(installExe);
|
|
|
|
|
obj[1].select = true;
|
|
|
|
|
localStorage.setItem('installExe', JSON.stringify(data));
|
|
|
|
|
return { ...data, select: !data.select };
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 依赖程序必安装的完成后才能点就右侧2块的内容(专用核心密码管理分系统、一体化密码机、JJP903C密码钥匙)
|
|
|
|
|
if (key > 8 && needArr) {
|
|
|
|
|
message.info('请将需要的依赖程序安装完成!');
|
|
|
|
@ -119,6 +108,13 @@ const InstallExe: FC<PageProps> = ({ }) => {
|
|
|
|
|
case 'GBase':
|
|
|
|
|
setOpen1(true)
|
|
|
|
|
break;
|
|
|
|
|
case 'GBase升级程序':
|
|
|
|
|
let installExe: any = localStorage.getItem('installExe')
|
|
|
|
|
let info = JSON.parse(installExe);
|
|
|
|
|
info[1].select = true;
|
|
|
|
|
localStorage.setItem('installExe', JSON.stringify(info));
|
|
|
|
|
message.success('GBase升级成功!')
|
|
|
|
|
break;
|
|
|
|
|
case 'HGoogleEarth':
|
|
|
|
|
setOpen2(true)
|
|
|
|
|
break;
|
|
|
|
|