|
@@ -5,7 +5,6 @@
|
|
|
:columns="columns"
|
|
|
:data="loadData"
|
|
|
:row-key="(record) => record.id"
|
|
|
- bordered
|
|
|
@resizeColumn="handleResizeColumn"
|
|
|
>
|
|
|
<template #operator>
|
|
@@ -51,6 +50,7 @@
|
|
|
</div> -->
|
|
|
</div>
|
|
|
</template>
|
|
|
+
|
|
|
<template #bodyCell="{ column, record, index }">
|
|
|
<!-- 序号 -->
|
|
|
<template v-if="column.dataIndex === 'index'">{{ index + 1 }} </template>
|
|
@@ -72,73 +72,72 @@
|
|
|
<a-button type="link" size="small" @click="leaveFor('/biz/monitor/point', record)">监测点配置</a-button>
|
|
|
</template>
|
|
|
</template>
|
|
|
- <!-- <template #expandedRowRender="{ record }">
|
|
|
- <a-tabs v-model:activeKey="record.activeKey" size="small" type="card">
|
|
|
- <a-tab-pane key="1" tab="基本信息">
|
|
|
- <div class="list">
|
|
|
- <a-descriptions bordered size="small">
|
|
|
- <a-descriptions-item label="对象名称" :span="2">{{ record.name }}</a-descriptions-item>
|
|
|
- <a-descriptions-item label="对象编号" :span="2">{{ record.dxcode }}</a-descriptions-item>
|
|
|
- <a-descriptions-item label="品牌">{{ record.pp }}</a-descriptions-item>
|
|
|
- <a-descriptions-item label="型号">{{ record.xh }}</a-descriptions-item>
|
|
|
- <a-descriptions-item label="类型">{{ record.type }}</a-descriptions-item>
|
|
|
- <a-descriptions-item label="使用状态">{{ record.syzt }}</a-descriptions-item>
|
|
|
- <a-descriptions-item label="报警状态">{{ record.bjzt }}</a-descriptions-item>
|
|
|
- <a-descriptions-item label="位置">{{ record.wz }}</a-descriptions-item>
|
|
|
- </a-descriptions>
|
|
|
- </div>
|
|
|
- </a-tab-pane>
|
|
|
- <a-tab-pane key="2" tab="冷链设备">
|
|
|
- <div class="list">
|
|
|
- <a-descriptions bordered size="small">
|
|
|
- <a-descriptions-item label="冷链编号" :span="2">{{ record.llcode }}</a-descriptions-item>
|
|
|
- <a-descriptions-item label="对应路数" :span="2">{{ record.dyls }}</a-descriptions-item>
|
|
|
- <a-descriptions-item label="所属中继" :span="2">{{ record.sszj }}</a-descriptions-item>
|
|
|
- </a-descriptions>
|
|
|
- </div>
|
|
|
- </a-tab-pane>
|
|
|
- <a-tab-pane key="3" tab="温湿度设定">
|
|
|
- <div class="list">
|
|
|
- <a-descriptions title="报警上下限" bordered size="small">
|
|
|
- <a-descriptions-item label="温度上限(℃)" :span="2">{{ record.wdsx }}</a-descriptions-item>
|
|
|
- <a-descriptions-item label="温度下限(℃)" :span="2">{{ record.wdxx }}</a-descriptions-item>
|
|
|
- <a-descriptions-item label="湿度上限(%)" :span="2">{{ record.sdsx }}</a-descriptions-item>
|
|
|
- <a-descriptions-item label="湿度下限(%)" :span="2">{{ record.sdxx }}</a-descriptions-item>
|
|
|
- </a-descriptions>
|
|
|
|
|
|
- <a-descriptions title="温湿度修正" bordered size="small">
|
|
|
- <a-descriptions-item label="温度(-10~10)(℃)" :span="2">{{ record.wdxz }}</a-descriptions-item>
|
|
|
- <a-descriptions-item label="湿度(-20~20)(%)" :span="2">{{ record.sdxz }}</a-descriptions-item>
|
|
|
- </a-descriptions>
|
|
|
- </div>
|
|
|
- </a-tab-pane>
|
|
|
- <a-tab-pane key="4" tab="报警信息">
|
|
|
- <div class="list">
|
|
|
- <a-descriptions title="对象信息" bordered size="small">
|
|
|
- <a-descriptions-item label="对象名称" :span="2">{{ record.name }}</a-descriptions-item>
|
|
|
- <a-descriptions-item label="监控点名称" :span="2">{{ record.jkd }}</a-descriptions-item>
|
|
|
- <a-descriptions-item label="报警级别" :span="2">{{ '1' }}</a-descriptions-item>
|
|
|
- <a-descriptions-item label="延时时间" :span="2">{{ '0' }}</a-descriptions-item>
|
|
|
- <a-descriptions-item label="报警频率" :span="2">{{ '1' }}</a-descriptions-item>
|
|
|
-
|
|
|
- <a-descriptions-item label="执行间隔" :span="2">{{ '10' }}</a-descriptions-item>
|
|
|
- <a-descriptions-item label="是否逐级报警" :span="2">{{ '否' }}</a-descriptions-item>
|
|
|
- <a-descriptions-item label="逐级报警时间间隔" :span="2">{{ '0' }}</a-descriptions-item>
|
|
|
- <a-descriptions-item label="允许报警开始时间" :span="2"></a-descriptions-item>
|
|
|
- <a-descriptions-item label="允许报警结束时间" :span="2"></a-descriptions-item>
|
|
|
- </a-descriptions>
|
|
|
-
|
|
|
- <a-descriptions title="短信报警" bordered size="small">
|
|
|
- <a-descriptions-item label="提醒人姓名" :span="2">{{ '欧阳天添' }}</a-descriptions-item>
|
|
|
- <a-descriptions-item label="接收电话" :span="2">{{ '13476548750' }}</a-descriptions-item>
|
|
|
+ <template #expandColumnTitle>
|
|
|
+ <span>更多</span>
|
|
|
+ </template>
|
|
|
+ <template #expandedRowRender="{ record }">
|
|
|
+ <a-tabs
|
|
|
+ v-model:activeKey="record.activeKey"
|
|
|
+ size="small"
|
|
|
+ type="card"
|
|
|
+ v-if="record.monitorTargetRegionList.length"
|
|
|
+ >
|
|
|
+ <a-tab-pane key="1" tab="监测设备">
|
|
|
+ <div class="list" v-for="(item, index) in record.monitorTargetRegionList" :key="index">
|
|
|
+ <a-descriptions bordered size="small">
|
|
|
+ <a-descriptions-item label="点位名称" :span="2">{{ item.name }}</a-descriptions-item>
|
|
|
+ <a-descriptions-item label="传感器类型" :span="2">{{
|
|
|
+ $TOOL.dictTypeData('SENSORTYPE', item.sensorType)
|
|
|
+ }}</a-descriptions-item>
|
|
|
+ <a-descriptions-item label="监控设备" :span="2">{{ item.deviceName }}</a-descriptions-item>
|
|
|
+ <a-descriptions-item label="传感器编号" :span="2">{{ item.sensorCode }}</a-descriptions-item>
|
|
|
+ <a-descriptions-item label="传感器路数" :span="2">{{ item.sensorRoute + '路' }}</a-descriptions-item>
|
|
|
+ <a-descriptions-item label="报警接收人">
|
|
|
+ <span v-for="(e, i) in item.alarmUsers" :key="i">{{ e.userName + ',' }} </span>
|
|
|
+ </a-descriptions-item>
|
|
|
+ <a-descriptions-item
|
|
|
+ v-if="item.sensorType == 'W' || item.sensorType == 'WS' || item.sensorType == 'WSC'"
|
|
|
+ label="温度上限"
|
|
|
+ :span="2"
|
|
|
+ >{{ item.temperatureUp }}</a-descriptions-item
|
|
|
+ >
|
|
|
+ <a-descriptions-item
|
|
|
+ v-if="item.sensorType == 'W' || item.sensorType == 'WS' || item.sensorType == 'WSC'"
|
|
|
+ label="温度下限"
|
|
|
+ :span="2"
|
|
|
+ >{{ item.temperatureDown }}</a-descriptions-item
|
|
|
+ >
|
|
|
+ <a-descriptions-item
|
|
|
+ v-if="item.sensorType == 'WS' || item.sensorType == 'WSC'"
|
|
|
+ label="湿度上限"
|
|
|
+ :span="2"
|
|
|
+ >{{ item.humidityUp }}</a-descriptions-item
|
|
|
+ >
|
|
|
+ <a-descriptions-item
|
|
|
+ v-if="item.sensorType == 'WS' || item.sensorType == 'WSC'"
|
|
|
+ label="湿度下限"
|
|
|
+ :span="2"
|
|
|
+ >{{ item.humidityDown }}</a-descriptions-item
|
|
|
+ >
|
|
|
+ <a-descriptions-item v-if="item.sensorType == 'WSC'" label="CO2上限" :span="2">{{
|
|
|
+ item.co2Up
|
|
|
+ }}</a-descriptions-item>
|
|
|
+ <a-descriptions-item v-if="item.sensorType == 'WSC'" label="CO2下限" :span="2">{{
|
|
|
+ item.co2Down
|
|
|
+ }}</a-descriptions-item>
|
|
|
</a-descriptions>
|
|
|
</div>
|
|
|
</a-tab-pane>
|
|
|
- <a-tab-pane key="5" tab="温度记录">
|
|
|
- <div class="list">温度记录</div>
|
|
|
- </a-tab-pane>
|
|
|
</a-tabs>
|
|
|
- </template> -->
|
|
|
+ <div v-else>
|
|
|
+ <a-empty>
|
|
|
+ <template #description>
|
|
|
+ <span> 暂无监测设备,快去添加吧 </span>
|
|
|
+ </template>
|
|
|
+ </a-empty>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
</s-table>
|
|
|
<Form ref="formRef" @successful="tableRef.refresh(true)" />
|
|
|
</div>
|
|
@@ -181,6 +180,20 @@
|
|
|
ellipsis: true,
|
|
|
resizable: true
|
|
|
},
|
|
|
+ {
|
|
|
+ title: '创建人',
|
|
|
+ dataIndex: 'createUserName',
|
|
|
+ align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
+ resizable: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '创建时间',
|
|
|
+ dataIndex: 'createTime',
|
|
|
+ align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
+ resizable: true
|
|
|
+ },
|
|
|
{
|
|
|
title: '操作',
|
|
|
dataIndex: 'action',
|
|
@@ -230,25 +243,28 @@
|
|
|
<style lang="less" scoped>
|
|
|
.table_item {
|
|
|
padding: 15px 20px;
|
|
|
-
|
|
|
+ background-color: #ffffff;
|
|
|
:deep(.ant-table-pagination-right) {
|
|
|
justify-content: center !important;
|
|
|
}
|
|
|
}
|
|
|
.list {
|
|
|
width: 60%;
|
|
|
- padding: 10px 20px;
|
|
|
+ padding: 20px 20px;
|
|
|
border-radius: 10px;
|
|
|
- background-color: #ffffff;
|
|
|
|
|
|
:deep(.ant-descriptions) {
|
|
|
- margin-bottom: 10px;
|
|
|
- }
|
|
|
- :deep(.ant-descriptions-header) {
|
|
|
- margin: 0;
|
|
|
- padding: 10px;
|
|
|
- border: 1px solid #f0f0f0;
|
|
|
- border-bottom: none;
|
|
|
+ width: 100%;
|
|
|
+ .ant-descriptions-row {
|
|
|
+ width: 100%;
|
|
|
+ }
|
|
|
+
|
|
|
+ .ant-descriptions-item-label {
|
|
|
+ width: 120px;
|
|
|
+ }
|
|
|
+ .ant-descriptions-item-content {
|
|
|
+ width: calc(100% - 120px);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</style>
|