| | |
| | | <div class="xiangqin-label">硬盘个数</div> |
| | | <div class="xiangqing-info">{{sysinfo.diskCount}}</div> |
| | | </el-col> |
| | | <el-col :span="12" class="flex-box"> |
| | | <div class="xiangqin-label">硬盘信息</div> |
| | | <div class="xiangqing-info">{{sysinfo.disks}}</div> |
| | | </el-col> |
| | | <el-col :span="12" class="flex-box"> |
| | | <div class="xiangqin-label">CPU</div> |
| | | <div class="xiangqing-info">{{sysinfo.cpuInfo}}</div> |
| | | </el-col> |
| | | <el-col :span="12" class="flex-box"> |
| | | <div class="xiangqin-label">内存</div> |
| | | <div class="xiangqing-info">{{sysinfo.mem}}</div> |
| | | </el-col> |
| | | <el-col :span="12" class="flex-box"> |
| | | <div class="xiangqin-label">运行时间</div> |
| | | <div class="xiangqing-info">{{sysinfo.uptime}}</div> |
| | | </el-col> |
| | | </el-row> |
| | | </el-menu-item-group> |
| | | </el-submenu> |
| | |
| | | </el-menu-item-group> |
| | | </el-submenu> |
| | | <!-- 对外服务IP 改名为外部网络(新tab)--> |
| | | |
| | | </el-menu> |
| | | </el-tab-pane> |
| | | |
| | |
| | | placeholder="选择日期时间" |
| | | size="small" |
| | | value-format="yyyy-MM-dd HH:mm:ss" |
| | | |
| | | :disabled="syncType === '1'" |
| | | ></el-date-picker> |
| | | <el-checkbox |
| | |
| | | </el-form> |
| | | </el-menu-item-group> |
| | | </el-submenu> |
| | | |
| | | </el-menu> |
| | | </el-tab-pane> --> |
| | | <el-tab-pane label="权限管理" name="user"> |
| | |
| | | this.alarmConf.min_video_len = rsp.data.min_video_len; |
| | | this.alarmConf.max_video_len = rsp.data.max_video_len; |
| | | |
| | | if (this.sysinfo.deviceInfo) { |
| | | let devInfo = this.sysinfo.deviceInfo; |
| | | |
| | | this.sysinfo.cpuInfo = devInfo.cpu[0].modelName; |
| | | this.sysinfo.disks = devInfo.disk; |
| | | this.sysinfo.mem = (devInfo.mem.total / 1024 / 1024 / 1024).toFixed(2) + "KB"; |
| | | // this.sysinfo.arch = devInfo.host.kernelArch; |
| | | this.sysinfo.uptime = this.secondsFormat(devInfo.host.uptime); |
| | | } |
| | | |
| | | if (!this.sysinfo.server_port) { |
| | | this.sysinfo.server_port = 7003; |
| | | } |
| | |
| | | this.loading = false; |
| | | }); |
| | | }, |
| | | secondsFormat(s) { |
| | | var day = Math.floor(s / (24 * 3600)); // Math.floor()向下取整 |
| | | var hour = Math.floor((s - day * 24 * 3600) / 3600); |
| | | var minute = Math.floor((s - day * 24 * 3600 - hour * 3600) / 60); |
| | | var second = s - day * 24 * 3600 - hour * 3600 - minute * 60; |
| | | return day + "天" + hour + "时" + minute + "分" + second + "秒"; |
| | | }, |
| | | initClockConf() { |
| | | getClockInfo().then(rsp => { |
| | | if (rsp && rsp.success) { |