This commit is contained in:
不做码农 2022-09-21 09:28:34 +08:00
parent 1ec0d42e33
commit 6d266c82df
3 changed files with 17 additions and 8 deletions

View File

@ -2,7 +2,7 @@
<div style="border: 1px solid #ccc">
<Toolbar style="border-bottom: 1px solid #ccc" :editor="editorRef" :defaultConfig="toolbarConfig" :mode="mode" />
<Editor
style="height: 500px; overflow-y: hidden"
style="height: 300px; overflow-y: hidden"
v-model="valueHtml"
:defaultConfig="editorConfig"
:mode="mode"

View File

@ -52,7 +52,7 @@
<dict-tag :value="scope.row.isStart" :options="isStartOptions"></dict-tag>
</template>
</el-table-column>
<el-table-column prop="lastRunTime" align="center" label="最后运行时间" :show-overflow-tooltip="true" />
<!-- <el-table-column prop="lastRunTime" align="center" label="最后运行时间" :show-overflow-tooltip="true" /> -->
<el-table-column prop="remark" align="center" label="备注" :show-overflow-tooltip="true" />
<el-table-column label="操作" align="center" width="250" class-name="small-padding fixed-width">
<template #default="scope">
@ -240,6 +240,11 @@
<el-input type="textarea" v-model="form.remark" />
</el-form-item>
</el-col>
<el-col :lg="24">
<el-form-item label="最后运行时间" prop="lastRunTime">
{{ form.lastRunTime }}
</el-form-item>
</el-col>
</el-row>
</el-form>
<template #footer v-if="btnVisible">

View File

@ -7,15 +7,15 @@
<span>状态</span>
</template>
<el-col :xs="24" :sm="24" :md="8" :lg="8" :xl="8" class="mr20">
<div class="col-item">
<div class="title">CPU使用率</div>
<div class="content">
<el-progress type="dashboard" :percentage="parseFloat(server.cpu.cpuRate)" />
</div>
<div class="footer" v-if="server.sys">{{ server.sys.cpuNum }} 核心</div>
</el-col>
</div>
<el-col :xs="24" :sm="24" :md="8" :lg="8" :xl="8">
<div class="col-item">
<div class="title">内存使用率</div>
<el-tooltip placement="top-end">
<template #content>
@ -31,7 +31,7 @@
</div>
</el-tooltip>
<div class="footer">{{ server.cpu.usedRam }} / {{ server.cpu.totalRAM }}</div>
</el-col>
</div>
</el-card>
</el-col>
@ -40,7 +40,7 @@
<template #header>
<span>磁盘状态</span>
</template>
<el-col :xs="24" :sm="24" :md="6" :lg="6" :xl="6" v-for="sysFile in server.disk" :key="sysFile.diskName">
<div class="col-item" v-for="sysFile in server.disk" :key="sysFile.diskName">
<div class="title">{{ sysFile.diskName }}盘使用率</div>
<div class="content">
<el-tooltip placement="top-end">
@ -57,7 +57,7 @@
</el-tooltip>
</div>
<div class="footer">{{ sysFile.availableFreeSpace }}GB可用{{ sysFile.totalSize }}GB</div>
</el-col>
</div>
</el-card>
</el-col>
@ -265,4 +265,8 @@ table tr {
margin-top: 5px;
margin-bottom: 5px;
}
.col-item {
width: 200px;
display: inline-block;
}
</style>