Skip to content

Commit

Permalink
💄 实例详情展开样式优化
Browse files Browse the repository at this point in the history
  • Loading branch information
chaos-zhu committed Aug 18, 2024
1 parent 14cb60a commit 45b1393
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion server/app/controller/host.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ async function addHost({
const clearSSHKey = await AESDecryptSync(record[authType], clearTempKey)
console.log(`${ authType }原密文: `, clearSSHKey)
record[authType] = await AESEncryptSync(clearSSHKey)
console.log(`${ authType }__commonKey加密存储: `, record[authType])
// console.log(`${ authType }__commonKey加密存储: `, record[authType])
}
hostList.push(record)
await writeHostList(hostList)
Expand Down
4 changes: 2 additions & 2 deletions server/app/controller/ssh.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const addSSH = async ({ res, request }) => {
const clearSSHKey = await AESDecryptSync(record[authType], clearTempKey)
// console.log(`${ authType }原密文: `, clearSSHKey)
record[authType] = await AESEncryptSync(clearSSHKey)
console.log(`${ authType }__commonKey加密存储: `, record[authType])
// console.log(`${ authType }__commonKey加密存储: `, record[authType])

sshRecord.push({ ...record, date: Date.now() })
await writeSSHRecord(sshRecord)
Expand All @@ -51,7 +51,7 @@ const updateSSH = async ({ res, request }) => {
const clearSSHKey = await AESDecryptSync(record[authType], clearTempKey)
// console.log(`${ authType }原密文: `, clearSSHKey)
record[authType] = await AESEncryptSync(clearSSHKey)
console.log(`${ authType }__commonKey加密存储: `, record[authType])
// console.log(`${ authType }__commonKey加密存储: `, record[authType])
}
record._id = sshRecord[idx]._id
sshRecord.splice(idx, 1, record)
Expand Down
6 changes: 5 additions & 1 deletion web/src/views/server/components/host-table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@
<!-- { monitorData: { connect, cpuInfo, memInfo, driveInfo, ipInfo, netstatInfo } } -->
<el-descriptions
v-if="row.monitorData?.connect"
title="实例信息"
title=""
:column="5"
direction="vertical"
class="host_info"
>
<el-descriptions-item label="CPU" width="35%">
{{ `${row.monitorData?.cpuInfo?.cpuModel}-${row.monitorData?.cpuInfo?.cpuCount}-(${row.monitorData?.cpuInfo?.cpuUsage}%)` }}
Expand Down Expand Up @@ -203,5 +204,8 @@ const handleRemoveHost = async ({ host }) => {
text-align: center;
color: var(--el-color-warning);;
}
.host_info {
padding: 0 20px;
}
}
</style>

0 comments on commit 45b1393

Please sign in to comment.