Database Monitor 列表修改取值字段,添加超出隐藏显示

添加悬浮提示框,及样式调整
This commit is contained in:
任珮宇 2024-03-12 11:52:11 +08:00
parent 628689fb45
commit 89a06fab30

View File

@ -10,13 +10,15 @@
:loading="loading"
:pagination="false"
:canSelect="false"
:scroll="{ y: 655 }"
>
<template slot="info" slot-scope="{ record }">
<div class="info-alarm">{{ record.alarmValue }}{{ JSON.parse(record.operator).units }}</div>
<div>
{{ JSON.parse(record.operator).name }} {{ JSON.parse(record.operator).operator }}
{{ JSON.parse(record.operator).threshold }}{{ JSON.parse(record.operator).units }}
</div>
<a-popover>
<template slot="content">
{{ JSON.parse(record.alarmInfo) }}{{ JSON.parse(record.operator).units }}
</template>
{{ JSON.parse(record.alarmInfo) }}{{ JSON.parse(record.operator).units }}
</a-popover>
</template>
</TableList>
<a-pagination
@ -60,6 +62,7 @@ const columns = [
{
title: 'ALARM INFO',
align: 'left',
ellipsis: true,
dataIndex: 'alarmInfo',
scopedSlots: {
customRender: 'info',
@ -162,7 +165,7 @@ export default {
<style lang="less" scoped>
.server-main {
width: 100%;
// width: 100%;
height: calc(100% - 50px);
overflow: hidden;
padding-top: 15px;
@ -177,7 +180,7 @@ export default {
}
.info-alarm {
font-family: ArialMT;
font-size: 18px;
color: #f62424;
font-size: 16px;
// color: #f62424;
}
</style>