💄 实例详情展开样式优化
This commit is contained in:
parent
14cb60a403
commit
45b1393039
@ -42,7 +42,7 @@ async function addHost({
|
|||||||
const clearSSHKey = await AESDecryptSync(record[authType], clearTempKey)
|
const clearSSHKey = await AESDecryptSync(record[authType], clearTempKey)
|
||||||
console.log(`${ authType }原密文: `, clearSSHKey)
|
console.log(`${ authType }原密文: `, clearSSHKey)
|
||||||
record[authType] = await AESEncryptSync(clearSSHKey)
|
record[authType] = await AESEncryptSync(clearSSHKey)
|
||||||
console.log(`${ authType }__commonKey加密存储: `, record[authType])
|
// console.log(`${ authType }__commonKey加密存储: `, record[authType])
|
||||||
}
|
}
|
||||||
hostList.push(record)
|
hostList.push(record)
|
||||||
await writeHostList(hostList)
|
await writeHostList(hostList)
|
||||||
|
@ -24,7 +24,7 @@ const addSSH = async ({ res, request }) => {
|
|||||||
const clearSSHKey = await AESDecryptSync(record[authType], clearTempKey)
|
const clearSSHKey = await AESDecryptSync(record[authType], clearTempKey)
|
||||||
// console.log(`${ authType }原密文: `, clearSSHKey)
|
// console.log(`${ authType }原密文: `, clearSSHKey)
|
||||||
record[authType] = await AESEncryptSync(clearSSHKey)
|
record[authType] = await AESEncryptSync(clearSSHKey)
|
||||||
console.log(`${ authType }__commonKey加密存储: `, record[authType])
|
// console.log(`${ authType }__commonKey加密存储: `, record[authType])
|
||||||
|
|
||||||
sshRecord.push({ ...record, date: Date.now() })
|
sshRecord.push({ ...record, date: Date.now() })
|
||||||
await writeSSHRecord(sshRecord)
|
await writeSSHRecord(sshRecord)
|
||||||
@ -51,7 +51,7 @@ const updateSSH = async ({ res, request }) => {
|
|||||||
const clearSSHKey = await AESDecryptSync(record[authType], clearTempKey)
|
const clearSSHKey = await AESDecryptSync(record[authType], clearTempKey)
|
||||||
// console.log(`${ authType }原密文: `, clearSSHKey)
|
// console.log(`${ authType }原密文: `, clearSSHKey)
|
||||||
record[authType] = await AESEncryptSync(clearSSHKey)
|
record[authType] = await AESEncryptSync(clearSSHKey)
|
||||||
console.log(`${ authType }__commonKey加密存储: `, record[authType])
|
// console.log(`${ authType }__commonKey加密存储: `, record[authType])
|
||||||
}
|
}
|
||||||
record._id = sshRecord[idx]._id
|
record._id = sshRecord[idx]._id
|
||||||
sshRecord.splice(idx, 1, record)
|
sshRecord.splice(idx, 1, record)
|
||||||
|
@ -13,9 +13,10 @@
|
|||||||
<!-- { monitorData: { connect, cpuInfo, memInfo, driveInfo, ipInfo, netstatInfo } } -->
|
<!-- { monitorData: { connect, cpuInfo, memInfo, driveInfo, ipInfo, netstatInfo } } -->
|
||||||
<el-descriptions
|
<el-descriptions
|
||||||
v-if="row.monitorData?.connect"
|
v-if="row.monitorData?.connect"
|
||||||
title="实例信息"
|
title=""
|
||||||
:column="5"
|
:column="5"
|
||||||
direction="vertical"
|
direction="vertical"
|
||||||
|
class="host_info"
|
||||||
>
|
>
|
||||||
<el-descriptions-item label="CPU" width="35%">
|
<el-descriptions-item label="CPU" width="35%">
|
||||||
{{ `${row.monitorData?.cpuInfo?.cpuModel}-${row.monitorData?.cpuInfo?.cpuCount}-(${row.monitorData?.cpuInfo?.cpuUsage}%)` }}
|
{{ `${row.monitorData?.cpuInfo?.cpuModel}-${row.monitorData?.cpuInfo?.cpuCount}-(${row.monitorData?.cpuInfo?.cpuUsage}%)` }}
|
||||||
@ -203,5 +204,8 @@ const handleRemoveHost = async ({ host }) => {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
color: var(--el-color-warning);;
|
color: var(--el-color-warning);;
|
||||||
}
|
}
|
||||||
|
.host_info {
|
||||||
|
padding: 0 20px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user