Files
SMANAGE/backup/Manage/T4/TDINFO.html
T

917 lines
52 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/css/font.css">
<link rel="stylesheet" href="/css/xadmin.css">
<link rel="stylesheet" href="/css/win10ui.css">
<link rel="stylesheet" href="/css/theme.css">
<link rel="stylesheet" href="/lib/layui/css/layui.css">
<script type="text/javascript" src="/lib/layui/layui.js" charset="utf-8"></script>
<script type="text/javascript" src="/js/xadmin.js"></script>
<script type="text/javascript" src="/assets/js/core/jquery.min.js"></script>
<script src="/assets/js/socket/Socket.IO.js"></script>
<script src="/js/address.bar.js"></script>
<script>window.breadcrumbs = [{ name: "首页", url: "" }, { name: "Termination4", url: "" }, { name: "基本信息" }];</script>
<style>
/* 定义容器样式 */
.card-container {
display: flex;
gap: 20px;
margin-bottom: 10px;
padding: 10px;
height: 100%;
}
/* 定义左侧和右侧卡片列样式 */
.card-column {
display: flex;
flex-direction: column;
width: 100%;
gap: 20px;
/* 设置固定高度 */
height: 100%;
}
/* 移除固定高度设置 */
/* .layui-card {
height: 150px;
} */
/* 移除中间卡片固定高度设置 */
/* .middle-card .layui-card {
height: auto;
} */
/* 面板样式增强 */
.layui-card {
border: 1px solid #e6e6e6;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
border-radius: 4px;
}
.layui-card-header {
background-color: #f2f2f2;
border-bottom: 1px solid #e6e6e6;
font-weight: bold;
}
.layui-card-body {
padding: 15px;
}
.layui-collapse {
margin-bottom: 10px;
}
</style>
</head>
<body>
<div class="card-container">
<div class="card-column">
<div class="layui-card">
<div class="layui-card-header">Socket IO 连接状态</div>
<div class="layui-card-body">
<table class="layui-table">
<tr>
<td>设备构建 ID</td>
<td id="SocketIO_PCMachineGUID">加载中...</td>
</tr>
<tr>
<td>设备SocketIO链接 ID</td>
<td id="SocketIO_SID">加载中...</td>
</tr>
</table>
</div>
</div>
<div class="layui-card">
<div class="layui-card-header">PCI 基本信息</div>
<div class="layui-card-body">
<table class="layui-table">
<tr>
<td>注册T程序用户</td>
<td id="PCI_PCreateUserName">加载中...</td>
</tr>
<tr>
<td>注册T程序电脑名称</td>
<td id="PCI_PCName">加载中...</td>
</tr>
<tr>
<td>注册T程序版本</td>
<td id="PCI_PCVersion">加载中...</td>
</tr>
<tr>
<td>注册T程序时间</td>
<td id="PCI_PCreateTime">加载中...</td>
</tr>
</table>
</div>
</div>
<div class="layui-card">
<div class="layui-card-header">sys 基本信息</div>
<div class="layui-card-body">
<table class="layui-table">
<tr>
<td width="150px">操作系统平台</td>
<td id="SYS_platform">加载中...</td>
</tr>
<tr>
<td>Python 解释器版本</td>
<td id="SYS_version">加载中...</td>
</tr>
<tr>
<td>Python 解释器路径</td>
<td id="SYS_executable">加载中...</td>
</tr>
<tr>
<td>Python 模块搜索路径</td>
<td id="SYS_path">加载中...</td>
</tr>
<tr>
<td>Python 版权信息</td>
<td id="SYS_copyright">加载中...</td>
</tr>
<tr>
<td>Python 版本十六进制</td>
<td id="SYS_hexversion">加载中...</td>
</tr>
<tr>
<td>命令行参数</td>
<td id="SYS_argv">加载中...</td>
</tr>
<tr>
<td>最大整数值</td>
<td id="SYS_maxsize">加载中...</td>
</tr>
<tr>
<td>最大 Unicode 值</td>
<td id="SYS_maxunicode">加载中...</td>
</tr>
</table>
</div>
</div>
<div class="layui-card">
<div class="layui-card-header">os 基本信息</div>
<div class="layui-card-body">
<table class="layui-table">
<tr>
<td width="150px">操作系统名称</td>
<td id="OS_name">加载中...</td>
</tr>
<tr>
<td>环境变量</td>
<td id="OS_environ">加载中...</td>
</tr>
<tr>
<td>当前登录用户</td>
<td id="OS_login">加载中...</td>
</tr>
<tr>
<td>环境变量用户名</td>
<td id="OS_envlogin">加载中...</td>
</tr>
<tr>
<td>当前工作目录</td>
<td id="OS_cwd">加载中...</td>
</tr>
<tr>
<td>CPU 核心数</td>
<td id="OS_cpu_count">加载中...</td>
</tr>
<tr>
<td>当前进程 ID</td>
<td id="OS_pid">加载中...</td>
</tr>
<tr>
<td>父进程 ID</td>
<td id="OS_ppid">加载中...</td>
</tr>
<tr>
<td>路径分隔符</td>
<td id="OS_sep">加载中...</td>
</tr>
<tr>
<td>路径列表分隔符</td>
<td id="OS_pathsep">加载中...</td>
</tr>
<tr>
<td>行分隔符</td>
<td id="OS_linesep">加载中...</td>
</tr>
<tr>
<td>SystemDrive根目录下文件</td>
<td id="OS_devices">加载中...</td>
</tr>
</table>
</div>
</div>
<div class="layui-card">
<div class="layui-card-header">platform 基本信息</div>
<div class="layui-card-body">
<table class="layui-table">
<tr>
<td width="150px">操作系统名称</td>
<td id="PLATFORM_system">加载中...</td>
</tr>
<tr>
<td>网络名称(主机名)</td>
<td id="PLATFORM_node">加载中...</td>
</tr>
<tr>
<td>操作系统版本</td>
<td id="PLATFORM_release">加载中...</td>
</tr>
<tr>
<td>操作系统详细版本</td>
<td id="PLATFORM_version">加载中...</td>
</tr>
<tr>
<td>机器类型</td>
<td id="PLATFORM_machine">加载中...</td>
</tr>
<tr>
<td>处理器</td>
<td id="PLATFORM_processor">加载中...</td>
</tr>
<tr>
<td>Windows 版本</td>
<td id="PLATFORM_win32_ver">加载中...</td>
</tr>
<tr>
<td>Python 构建</td>
<td id="PLATFORM_python_build">加载中...</td>
</tr>
<tr>
<td>Python 编译器</td>
<td id="PLATFORM_python_compiler">加载中...</td>
</tr>
<tr>
<td>Python 分支</td>
<td id="PLATFORM_python_branch">加载中...</td>
</tr>
<tr>
<td>Python 实现</td>
<td id="PLATFORM_python_implementation">加载中...</td>
</tr>
<tr>
<td>Python 修订版本号</td>
<td id="PLATFORM_python_revision">加载中...</td>
</tr>
<tr>
<td>Python 版本号</td>
<td id="PLATFORM_python_version">加载中...</td>
</tr>
<tr>
<td>Python 版本号元组</td>
<td id="PLATFORM_python_version_tuple">加载中...</td>
</tr>
</table>
</div>
</div>
<div class="layui-card">
<div class="layui-card-header">ctypes 基本信息</div>
<div class="layui-card-body">
<table class="layui-table">
<tr>
<td width="400px">当前进程 ID</td>
<td id="CTYPES_GetCurrentProcessId">加载中...</td>
</tr>
<tr>
<td>当前线程 ID</td>
<td id="CTYPES_GetCurrentThreadId">加载中...</td>
<tr>
<td>处理器架构类型</td>
<td id="CTYPES_GetSystemInfo_ProcessorArchitecture">加载中...</td>
</tr>
<tr>
<td>页面大小</td>
<td id="CTYPES_GetSystemInfo_PageSize">加载中...</td>
</tr>
<tr>
<td>处理器数量</td>
<td id="CTYPES_GetSystemInfo_NumberOfProcessors">加载中...</td>
</tr>
<tr>
<td>处理器类型</td>
<td id="CTYPES_GetSystemInfo_ProcessorType">加载中...</td>
</tr>
<tr>
<td>处理器级别</td>
<td id="CTYPES_GetSystemInfo_ProcessorLevel">加载中...</td>
</tr>
<tr>
<td>处理器修订版本号</td>
<td id="CTYPES_GetSystemInfo_ProcessorRevision">加载中...</td>
</tr>
<tr>
<td>Windows 操作系统版本号</td>
<td id="CTYPES_GetVersion">加载中...</td>
</tr>
<tr>
<td>系统启动时长 毫秒数(32 位)</td>
<td id="CTYPES_GetTickCount">加载中...</td>
</tr>
<tr>
<td>系统启动时长 毫秒数(64 位)</td>
<td id="CTYPES_GetTickCount64">加载中...</td>
</tr>
<tr>
<td>计算机名称</td>
<td id="CTYPES_GetComputerName">加载中...</td>
</tr>
<tr>
<td>当前登录用户用户名</td>
<td id="CTYPES_GetUserName">加载中...</td>
</tr>
<tr>
<td>系统目录路径</td>
<td id="CTYPES_GetSystemDirectory">加载中...</td>
</tr>
<tr>
<td>Windows 目录路径</td>
<td id="CTYPES_GetWindowsDirectory">加载中...</td>
</tr>
<tr>
<td>内存使用率</td>
<td id="CTYPES_GlobalMemoryStatusEx_MemoryLoad">加载中...</td>
</tr>
<tr>
<td>总物理内存量</td>
<td id="CTYPES_GlobalMemoryStatusEx_TotalPhys">加载中...</td>
</tr>
<tr>
<td>可用物理内存量</td>
<td id="CTYPES_GlobalMemoryStatusEx_AvailPhys">加载中...</td>
</tr>
<tr>
<td>总页面文件大小</td>
<td id="CTYPES_GlobalMemoryStatusEx_TotalPageFile">加载中...</td>
</tr>
<tr>
<td>可用页面文件大小</td>
<td id="CTYPES_GlobalMemoryStatusEx_AvailPageFile">加载中...</td>
</tr>
<tr>
<td>总虚拟内存大小</td>
<td id="CTYPES_GlobalMemoryStatusEx_TotalVirtual">加载中...</td>
</tr>
<tr>
<td>可用虚拟内存大小</td>
<td id="CTYPES_GlobalMemoryStatusEx_AvailVirtual">加载中...</td>
</tr>
<tr>
<td>屏幕宽度(像素)</td>
<td id="CTYPES_GetSystemMetrics_ScreenWidth">加载中...</td>
</tr>
<tr>
<td>屏幕高度(像素)</td>
<td id="CTYPES_GetSystemMetrics_ScreenHeight">加载中...</td>
</tr>
<tr>
<td>活动窗口标题栏颜色</td>
<td id="CTYPES_GetSysColor_ActiveCaption">加载中...</td>
</tr>
<tr>
<td>桌面文件夹路径</td>
<td id="CTYPES_SHGetFolderPath_Desktop">加载中...</td>
</tr>
<tr>
<td>网络适配器名称</td>
<td id="CTYPES_GetIfEntry_AdapterName">加载中...</td>
</tr>
<tr>
<td>网络适配器索引</td>
<td id="CTYPES_GetIfEntry_AdapterIndex">加载中...</td>
</tr>
<tr>
<td>网络适配器类型</td>
<td id="CTYPES_GetIfEntry_AdapterType">加载中...</td>
</tr>
<tr>
<td>网络适配器速度</td>
<td id="CTYPES_GetIfEntry_AdapterSpeed">加载中...</td>
</tr>
<tr>
<td>网络适配器 MAC 地址</td>
<td id="CTYPES_GetIfEntry_AdapterMAC">加载中...</td>
</tr>
<tr>
<td>显示设备信息</td>
<td id="CTYPES_EnumDisplayDevices">加载中...</td>
</tr>
<tr>
<td>用户配置文件目录路径</td>
<td id="CTYPES_GetUserProfileDirectory_ProfilePath">加载中...</td>
</tr>
</table>
</div>
</div>
<div class="layui-card">
<div class="layui-card-header">socket 基本信息</div>
<div class="layui-card-body">
<table class="layui-table">
<tr>
<td width="150px">主机名</td>
<td id="SocketIO_hostname">加载中...</td>
</tr>
<tr>
<td>IP 地址</td>
<td id="SocketIO_ip_address">加载中...</td>
</tr>
<tr>
<td>完全限定域名</td>
<td id="SocketIO_fqdn">加载中...</td>
</tr>
</table>
</div>
</div>
<div class="layui-card">
<div class="layui-card-header">psutil 基本信息</div>
<div class="layui-card-body">
<table class="layui-table">
<tr>
<td>CPU 逻辑核心数</td>
<td id="PSUTIL_cpu_count">加载中...</td>
</tr>
<tr>
<td>虚拟内存信息</td>
<td id="PSUTIL_virtual_memory">
<table class="layui-table">
<tr>
<td>总虚拟内存</td>
<td id="PSUTIL_virtual_memory_total">加载中...</td>
</tr>
<tr>
<td>可用虚拟内存</td>
<td id="PSUTIL_virtual_memory_available">加载中...</td>
</tr>
<tr>
<td>虚拟内存使用率</td>
<td id="PSUTIL_virtual_memory_percent">加载中...</td>
</tr>
<tr>
<td>已使用虚拟内存</td>
<td id="PSUTIL_virtual_memory_used">加载中...</td>
</tr>
<tr>
<td>空闲虚拟内存</td>
<td id="PSUTIL_virtual_memory_free">加载中...</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>交换内存信息</td>
<td id="PSUTIL_swap_memory">
<table class="layui-table">
<tr>
<td>总交换内存</td>
<td id="PSUTIL_swap_memory_total">加载中...</td>
</tr>
<tr>
<td>已使用交换内存</td>
<td id="PSUTIL_swap_memory_used">加载中...</td>
</tr>
<tr>
<td>空闲交换内存</td>
<td id="PSUTIL_swap_memory_free">加载中...</td>
</tr>
<tr>
<td>交换内存使用率</td>
<td id="PSUTIL_swap_memory_percent">加载中...</td>
</tr>
<tr>
<td>交换内存进字节数</td>
<td id="PSUTIL_swap_memory_sin">加载中...</td>
</tr>
<tr>
<td>交换内存出字节数</td>
<td id="PSUTIL_swap_memory_sout">加载中...</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>磁盘使用情况</td>
<td id="PSUTIL_disk_usage">
<table class="layui-table">
<tr>
<td>总磁盘容量</td>
<td id="PSUTIL_disk_usage_total">加载中...</td>
</tr>
<tr>
<td>已使用磁盘容量</td>
<td id="PSUTIL_disk_usage_used">加载中...</td>
</tr>
<tr>
<td>空闲磁盘容量</td>
<td id="PSUTIL_disk_usage_free">加载中...</td>
</tr>
<tr>
<td>磁盘使用率</td>
<td id="PSUTIL_disk_usage_percent">加载中...</td>
</tr>
<tr>
<td>磁盘读操作次数</td>
<td id="PSUTIL_disk_io_counters_read_count">加载中...</td>
</tr>
<tr>
<td>磁盘写操作次数</td>
<td id="PSUTIL_disk_io_counters_write_count">加载中...</td>
</tr>
<tr>
<td>磁盘读取字节数</td>
<td id="PSUTIL_disk_io_counters_read_bytes">加载中...</td>
</tr>
<tr>
<td>磁盘写入字节数</td>
<td id="PSUTIL_disk_io_counters_write_bytes">加载中...</td>
</tr>
<tr>
<td>磁盘读操作花费时间</td>
<td id="PSUTIL_disk_io_counters_read_time">加载中...</td>
</tr>
<tr>
<td>磁盘写操作花费时间</td>
<td id="PSUTIL_disk_io_counters_write_time">加载中...</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>网络 I/O 统计</td>
<td id="PSUTIL_net_io_counters">
<table class="layui-table">
<tr>
<td>已发送网络字节数</td>
<td id="PSUTIL_net_io_counters_bytes_sent">加载中...</td>
</tr>
<tr>
<td>已接收网络字节数</td>
<td id="PSUTIL_net_io_counters_bytes_recv">加载中...</td>
</tr>
<tr>
<td>已发送网络数据包数</td>
<td id="PSUTIL_net_io_counters_packets_sent">加载中...</td>
</tr>
<tr>
<td>已接收网络数据包数</td>
<td id="PSUTIL_net_io_counters_packets_recv">加载中...</td>
</tr>
<tr>
<td>接收网络数据包错误数</td>
<td id="PSUTIL_net_io_counters_errin">加载中...</td>
</tr>
<tr>
<td>发送网络数据包错误数</td>
<td id="PSUTIL_net_io_counters_errout">加载中...</td>
</tr>
<tr>
<td>接收网络数据包丢失数</td>
<td id="PSUTIL_net_io_counters_dropin">加载中...</td>
</tr>
<tr>
<td>发送网络数据包丢失数</td>
<td id="PSUTIL_net_io_counters_dropout">加载中...</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>系统启动时间</td>
<td id="PSUTIL_boot_time">加载中...</td>
</tr>
<tr>
<td>当前登录用户</td>
<td id="PSUTIL_users">加载中...</td>
</tr>
</table>
</div>
</div>
<div class="layui-card">
<div class="layui-card-header">ipinfo 信息</div>
<div class="layui-card-body">
<table class="layui-table">
<tr>
<td width="300px">公网 ip 地址</td>
<td id="ipinfo_ip">加载中...</td>
</tr>
<tr>
<td>IP 关联城市</td>
<td id="ipinfo_city">加载中...</td>
</tr>
<tr>
<td>IP 关联省级行政区</td>
<td id="ipinfo_region">加载中...</td>
</tr>
<tr>
<td>IP 所属国家</td>
<td id="ipinfo_country">加载中...</td>
</tr>
<tr>
<td>IP 经纬度坐标(误差大,仅参考)</td>
<td id="ipinfo_loc">加载中...</td>
</tr>
<tr>
<td>IP 所属自治系统(AS)及运营商</td>
<td id="ipinfo_org">加载中...</td>
</tr>
<tr>
<td>IP 相关邮政编码</td>
<td id="ipinfo_postal">加载中...</td>
</tr>
<tr>
<td>IP 所在时区</td>
<td id="ipinfo_timezone">加载中...</td>
</tr>
</table>
</div>
</div>
<div class="layui-card">
<div class="layui-card-header">ipapicom 信息</div>
<div class="layui-card-body">
<table class="layui-table">
<tr>
<td width="300px">爬取状态</td>
<td id="ipapicom_status">加载中...</td>
</tr>
<tr>
<td>IP 所属国家全称</td>
<td id="ipapicom_country">加载中...</td>
</tr>
<tr>
<td>IP 所属国家代码</td>
<td id="ipapicom_countryCode">加载中...</td>
</tr>
<tr>
<td>IP 所属行政区全称</td>
<td id="ipapicom_regionName">加载中...</td>
</tr>
<tr>
<td>IP 所属行政区代码</td>
<td id="ipapicom_region">加载中...</td>
</tr>
<tr>
<td>IP 所属城市</td>
<td id="ipapicom_city">加载中...</td>
</tr>
<tr>
<td>IP 邮政编码</td>
<td id="ipapicom_zip">加载中...</td>
</tr>
<tr>
<td>IP 纬度</td>
<td id="ipapicom_lat">加载中...</td>
</tr>
<tr>
<td>IP 经度</td>
<td id="ipapicom_lon">加载中...</td>
</tr>
<tr>
<td>IP 时区</td>
<td id="ipapicom_timezone">加载中...</td>
</tr>
<tr>
<td>IP 运营商</td>
<td id="ipapicom_isp">加载中...</td>
</tr>
<tr>
<td>IP 组织简称</td>
<td id="ipapicom_org">加载中...</td>
</tr>
<tr>
<td>IP 所属自治系统(AS)</td>
<td id="ipapicom_as">加载中...</td>
</tr>
<tr>
<td>IP 公网地址</td>
<td id="ipapicom_query">加载中...</td>
</tr>
</table>
</div>
</div>
<br><br><br><br><br>
</div>
</div>
<script>
socket = io("/Termination4SocketIOSpace");
window.onload = function () {
$('.collapse-btn').on('click', function () {
var tr = $(this).closest('tr');
if (!tr.data('original-height')) {
// 保存原始行高
tr.data('original-height', tr.height());
}
if (tr.hasClass('collapsed')) {
// 展开行
tr.css('height', tr.data('original-height'));
tr.removeClass('collapsed');
$(this).text('折叠');
} else {
// 折叠行
tr.css('height', 0);
tr.addClass('collapsed');
$(this).text('展开');
}
});
fetch("https://www.gvsds.com/T4/API/CMD/GetT4PLT.api?PCMachineGUID=" + PCMachineGUID, {credentials: 'include'})
.then(response => {
if (!response.ok) {
throw new Error(`HTTP error! status: ${response.status}`);
}
return response.json();
})
.then(data => {
console.log('Response Data:', data);
document.getElementById('SocketIO_PCMachineGUID').textContent = data.PCMachineGUID;
document.getElementById('SocketIO_SID').textContent = data.PCSID;
})
.catch(error => {
console.error('Fetch error:', error);
});
fetch("https://www.gvsds.com/T4/API/CMD/GetT4ComputerSystemINFO.api?PCMachineGUID=" + PCMachineGUID, {credentials: 'include'})
.then(response => {
if (!response.ok) {
throw new Error(`HTTP error! status: ${response.status}`);
}
return response.json();
})
.then(data => {
console.log('Response Data:', data);
document.getElementById('PCI_PCreateUserName').textContent = data.PCI.PCreateUserName;
document.getElementById('PCI_PCName').textContent = data.PCI.PCName;
document.getElementById('PCI_PCVersion').textContent = data.PCI.PCVersion;
document.getElementById('PCI_PCreateTime').textContent = data.PCI.PCreateTime;
document.getElementById('SYS_platform').textContent = data.sys.platform;
document.getElementById('SYS_version').textContent = data.sys.version;
document.getElementById('SYS_executable').innerHTML = '<p class="layui-n-p">' + data.sys.executable + '</p>';
document.getElementById('SYS_path').innerHTML = '';
for (let i of data.sys.path) {
document.getElementById('SYS_path').innerHTML += '<p class="layui-n-p">' + i + '</p>';
}
document.getElementById('SYS_copyright').textContent = data.sys.copyright;
document.getElementById('SYS_hexversion').textContent = data.sys.hexversion;
document.getElementById('SYS_argv').textContent = data.sys.argv;
document.getElementById('SYS_maxsize').textContent = data.sys.maxsize;
document.getElementById('SYS_maxunicode').textContent = data.sys.maxunicode;
document.getElementById('OS_name').textContent = data.os.name;
document.getElementById('OS_environ').innerHTML = '';
for (let i in data.os.environ) {
document.getElementById('OS_environ').innerHTML += '<p class="layui-n-p">' + i + ':' + data.os.environ[i] + '</p>';
}
document.getElementById('OS_login').textContent = data.os.login;
document.getElementById('OS_envlogin').textContent = data.os.envlogin;
document.getElementById('OS_cwd').textContent = data.os.cwd;
document.getElementById('OS_cpu_count').textContent = data.os.cpu_count;
document.getElementById('OS_pid').textContent = data.os.pid;
document.getElementById('OS_ppid').textContent = data.os.ppid;
document.getElementById('OS_sep').textContent = data.os.sep;
document.getElementById('OS_pathsep').textContent = data.os.pathsep;
document.getElementById('OS_linesep').textContent = data.os.linesep;
document.getElementById('OS_devices').innerHTML = '';
for (let i of data.os.devices) {
document.getElementById('OS_devices').innerHTML += '<p class="layui-n-p">' + i + '</p>';
}
document.getElementById('PLATFORM_system').textContent = data.platform.system;
document.getElementById('PLATFORM_node').textContent = data.platform.node;
document.getElementById('PLATFORM_release').textContent = data.platform.release;
document.getElementById('PLATFORM_version').textContent = data.platform.version;
document.getElementById('PLATFORM_machine').textContent = data.platform.machine;
document.getElementById('PLATFORM_processor').textContent = data.platform.processor;
document.getElementById('PLATFORM_win32_ver').textContent = data.platform.win32_ver;
document.getElementById('PLATFORM_python_build').textContent = data.platform.python_build;
document.getElementById('PLATFORM_python_compiler').textContent = data.platform.python_compiler;
document.getElementById('PLATFORM_python_branch').textContent = data.platform.python_branch;
document.getElementById('PLATFORM_python_implementation').textContent = data.platform.python_implementation;
document.getElementById('PLATFORM_python_revision').textContent = data.platform.python_revision;
document.getElementById('PLATFORM_python_version').textContent = data.platform.python_version;
document.getElementById('PLATFORM_python_version_tuple').textContent = data.platform.python_version_tuple;
document.getElementById('CTYPES_GetCurrentProcessId').textContent = data.ctypes.GetCurrentProcessId;
document.getElementById('CTYPES_GetCurrentThreadId').textContent = data.ctypes.GetCurrentThreadId;
document.getElementById('CTYPES_GetSystemInfo_ProcessorArchitecture').textContent = data.ctypes.GetSystemInfo.ProcessorArchitecture;
document.getElementById('CTYPES_GetSystemInfo_PageSize').textContent = data.ctypes.GetSystemInfo.PageSize;
document.getElementById('CTYPES_GetSystemInfo_NumberOfProcessors').textContent = data.ctypes.GetSystemInfo.NumberOfProcessors;
document.getElementById('CTYPES_GetSystemInfo_ProcessorType').textContent = data.ctypes.GetSystemInfo.ProcessorType;
document.getElementById('CTYPES_GetSystemInfo_ProcessorLevel').textContent = data.ctypes.GetSystemInfo.ProcessorLevel;
document.getElementById('CTYPES_GetSystemInfo_ProcessorRevision').textContent = data.ctypes.GetSystemInfo.ProcessorRevision;
document.getElementById('CTYPES_GetVersion').textContent = data.ctypes.GetVersion;
document.getElementById('CTYPES_GetTickCount').textContent = data.ctypes.GetTickCount;
document.getElementById('CTYPES_GetTickCount64').textContent = data.ctypes.GetTickCount64;
document.getElementById('CTYPES_GetComputerName').textContent = data.ctypes.GetComputerName;
document.getElementById('CTYPES_GetUserName').textContent = data.ctypes.GetUserName;
document.getElementById('CTYPES_GetSystemDirectory').textContent = data.ctypes.GetSystemDirectory;
document.getElementById('CTYPES_GetWindowsDirectory').textContent = data.ctypes.GetWindowsDirectory;
document.getElementById('CTYPES_GlobalMemoryStatusEx_MemoryLoad').textContent = data.ctypes.GlobalMemoryStatusEx.MemoryLoad;
document.getElementById('CTYPES_GlobalMemoryStatusEx_TotalPhys').textContent = `${(data.ctypes.GlobalMemoryStatusEx.TotalPhys / GB_SIZE).toFixed(2)} GB`;
document.getElementById('CTYPES_GlobalMemoryStatusEx_AvailPhys').textContent = `${(data.ctypes.GlobalMemoryStatusEx.AvailPhys / GB_SIZE).toFixed(2)} GB`;
document.getElementById('CTYPES_GlobalMemoryStatusEx_TotalPageFile').textContent = `${(data.ctypes.GlobalMemoryStatusEx.TotalPageFile / GB_SIZE).toFixed(2)} GB`;
document.getElementById('CTYPES_GlobalMemoryStatusEx_AvailPageFile').textContent = `${(data.ctypes.GlobalMemoryStatusEx.AvailPageFile / GB_SIZE).toFixed(2)} GB`;
document.getElementById('CTYPES_GlobalMemoryStatusEx_TotalVirtual').textContent = `${(data.ctypes.GlobalMemoryStatusEx.TotalVirtual / GB_SIZE).toFixed(2)} GB`;
document.getElementById('CTYPES_GlobalMemoryStatusEx_AvailVirtual').textContent = `${(data.ctypes.GlobalMemoryStatusEx.AvailVirtual / GB_SIZE).toFixed(2)} GB`;
document.getElementById('CTYPES_GetSystemMetrics_ScreenWidth').textContent = data.ctypes.GetSystemMetrics.ScreenWidth;
document.getElementById('CTYPES_GetSystemMetrics_ScreenHeight').textContent = data.ctypes.GetSystemMetrics.ScreenHeight;
document.getElementById('CTYPES_GetSysColor_ActiveCaption').textContent = data.ctypes.GetSysColor.ActiveCaption;
document.getElementById('CTYPES_SHGetFolderPath_Desktop').textContent = data.ctypes.SHGetFolderPath.Desktop;
document.getElementById('CTYPES_GetIfEntry_AdapterName').textContent = data.ctypes.GetIfEntry.AdapterName;
document.getElementById('CTYPES_GetIfEntry_AdapterIndex').textContent = data.ctypes.GetIfEntry.AdapterIndex;
document.getElementById('CTYPES_GetIfEntry_AdapterType').textContent = data.ctypes.GetIfEntry.AdapterType;
document.getElementById('CTYPES_GetIfEntry_AdapterSpeed').textContent = data.ctypes.GetIfEntry.AdapterSpeed;
document.getElementById('CTYPES_GetIfEntry_AdapterMAC').textContent = data.ctypes.GetIfEntry.AdapterMAC;
document.getElementById('CTYPES_EnumDisplayDevices').innerHTML = '';
for (let i of data.ctypes.EnumDisplayDevices) {
document.getElementById('CTYPES_EnumDisplayDevices').innerHTML += '<p class="layui-n-p">' + i + '</p>';
}
document.getElementById('CTYPES_GetUserProfileDirectory_ProfilePath').textContent = data.ctypes.GetUserProfileDirectory.ProfilePath;
document.getElementById('SocketIO_hostname').textContent = data.socket.hostname;
document.getElementById('SocketIO_ip_address').textContent = data.socket.ip_address;
document.getElementById('SocketIO_fqdn').textContent = data.socket.fqdn;
//"virtual_memory":{"total": 16952647680, "available": 535646208, "percent": 96.8, "used": 16417001472, "free": 535646208}, "swap_memory": {"total": 36858421248, "used": 15115333632, "free": 21743087616, "percent": 41.0, "sin": 0, "sout": 0}, "disk_usage": {"total": 214853218304, "used": 202930159616, "free": 11923058688, "percent": 94.5}, "disk_io_counters": {"read_count": 62482353, "write_count": 27709052, "read_bytes": 1643030334976, "write_bytes": 1064407630336, "read_time": 21011, "write_time": 5509}, "net_io_counters": {"bytes_sent": 546355419, "bytes_recv": 413103380, "packets_sent": 626565, "packets_recv": 694107, "errin": 0, "errout": 0, "dropin": 0, "dropout": 0
document.getElementById('PSUTIL_cpu_count').textContent = data.psutil.cpu_count;
document.getElementById('PSUTIL_virtual_memory_total').textContent = data.psutil.virtual_memory.total;
document.getElementById('PSUTIL_virtual_memory_available').textContent = data.psutil.virtual_memory.available;
document.getElementById('PSUTIL_virtual_memory_percent').textContent = data.psutil.virtual_memory.percent;
document.getElementById('PSUTIL_virtual_memory_used').textContent = data.psutil.virtual_memory.used;
document.getElementById('PSUTIL_virtual_memory_free').textContent = data.psutil.virtual_memory.free;
document.getElementById('PSUTIL_swap_memory_total').textContent = data.psutil.swap_memory.total;
document.getElementById('PSUTIL_swap_memory_used').textContent = data.psutil.swap_memory.used;
document.getElementById('PSUTIL_swap_memory_free').textContent = data.psutil.swap_memory.free;
document.getElementById('PSUTIL_swap_memory_percent').textContent = data.psutil.swap_memory.percent;
document.getElementById('PSUTIL_swap_memory_sin').textContent = data.psutil.swap_memory.sin;
document.getElementById('PSUTIL_swap_memory_sout').textContent = data.psutil.swap_memory.sout;
document.getElementById('PSUTIL_disk_usage_total').textContent = data.psutil.disk_usage.total;
document.getElementById('PSUTIL_disk_usage_used').textContent = data.psutil.disk_usage.used;
document.getElementById('PSUTIL_disk_usage_free').textContent = data.psutil.disk_usage.free;
document.getElementById('PSUTIL_disk_usage_percent').textContent = data.psutil.disk_usage.percent;
document.getElementById('PSUTIL_disk_io_counters_read_count').textContent = data.psutil.disk_io_counters.read_count;
document.getElementById('PSUTIL_disk_io_counters_write_count').textContent = data.psutil.disk_io_counters.write_count;
document.getElementById('PSUTIL_disk_io_counters_read_bytes').textContent = data.psutil.disk_io_counters.read_bytes;
document.getElementById('PSUTIL_disk_io_counters_write_bytes').textContent = data.psutil.disk_io_counters.write_bytes;
document.getElementById('PSUTIL_disk_io_counters_read_time').textContent = data.psutil.disk_io_counters.read_time;
document.getElementById('PSUTIL_disk_io_counters_write_time').textContent = data.psutil.disk_io_counters.write_time;
document.getElementById('PSUTIL_net_io_counters_bytes_sent').textContent = data.psutil.net_io_counters.bytes_sent;
document.getElementById('PSUTIL_net_io_counters_bytes_recv').textContent = data.psutil.net_io_counters.bytes_recv;
document.getElementById('PSUTIL_net_io_counters_packets_sent').textContent = data.psutil.net_io_counters.packets_sent;
document.getElementById('PSUTIL_net_io_counters_packets_recv').textContent = data.psutil.net_io_counters.packets_recv;
document.getElementById('PSUTIL_net_io_counters_errin').textContent = data.psutil.net_io_counters.errin;
document.getElementById('PSUTIL_net_io_counters_errout').textContent = data.psutil.net_io_counters.errout;
document.getElementById('PSUTIL_net_io_counters_dropin').textContent = data.psutil.net_io_counters.dropin;
document.getElementById('PSUTIL_net_io_counters_dropout').textContent = data.psutil.net_io_counters.dropout;
document.getElementById('PSUTIL_boot_time').textContent = data.psutil.boot_time;
document.getElementById('PSUTIL_users').innerHTML = '';
for (let i of data.psutil.users) {
document.getElementById('PSUTIL_users').innerHTML += '<table class="layui-table"><tr><td>名称</td><td>' + i.name + '</td></tr><tr><td>终端</td><td>' + i.terminal + '</td></tr><tr><td>开始</td><td>' + i.started + '</td></tr><tr><td>PID</td><td>' + i.pid + '</td></tr></table>';
}
if (data.ipinfo) {
document.getElementById('ipinfo_ip').textContent = data.ipinfo.ip;
document.getElementById('ipinfo_city').textContent = data.ipinfo.city;
document.getElementById('ipinfo_region').textContent = data.ipinfo.region;
document.getElementById('ipinfo_country').textContent = data.ipinfo.country;
document.getElementById('ipinfo_loc').textContent = data.ipinfo.loc;
document.getElementById('ipinfo_org').textContent = data.ipinfo.org;
document.getElementById('ipinfo_postal').textContent = data.ipinfo.postal;
document.getElementById('ipinfo_timezone').textContent = data.ipinfo.timezone;
}
if (data.ipapicom) {
document.getElementById('ipapicom_status').textContent = data.ipapicom.status;
document.getElementById('ipapicom_country').textContent = data.ipapicom.country;
document.getElementById('ipapicom_countryCode').textContent = data.ipapicom.countryCode;
document.getElementById('ipapicom_regionName').textContent = data.ipapicom.regionName;
document.getElementById('ipapicom_region').textContent = data.ipapicom.region;
document.getElementById('ipapicom_city').textContent = data.ipapicom.city;
document.getElementById('ipapicom_zip').textContent = data.ipapicom.zip;
document.getElementById('ipapicom_lat').textContent = data.ipapicom.lat;
document.getElementById('ipapicom_lon').textContent = data.ipapicom.lon;
document.getElementById('ipapicom_timezone').textContent = data.ipapicom.timezone;
document.getElementById('ipapicom_isp').textContent = data.ipapicom.isp;
document.getElementById('ipapicom_org').textContent = data.ipapicom.org;
document.getElementById('ipapicom_as').textContent = data.ipapicom.as;
document.getElementById('ipapicom_query').textContent = data.ipapicom.query;
}
})
.catch(error => {
console.error('Fetch error:', error);
});
};
layui.use(['util', 'form', 'layer'], function () {
var form = layui.form;
var util = layui.util;
var layer = layui.layer;
var $ = layui.$;
});
</script>
</body>
</html>