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