1.修改 监控中心 - 环境监测 - 配置监测点位 表格字段显示样式

2.新增 监控中心 - 环境监测 - 历史数据 导出功能
This commit is contained in:
fks-yangshouda
2024-08-28 08:45:34 +08:00
parent 440b43ba42
commit e07cfd4664
4 changed files with 301 additions and 3 deletions

View File

@@ -65,6 +65,13 @@
:unCheckedValue="0"
@change="(checked) => updateShowed(record)" />
</template>
<template
v-if="column.dataIndex === 'device1Area' || column.dataIndex === 'device2Area'">
<a-tooltip v-if="text.length > 15" :title="text">
{{ text.slice(0, 15) }}...
</a-tooltip>
<span v-else>{{ text }}</span>
</template>
</template>
<template #title>
<div
@@ -171,7 +178,7 @@
const typeList = ref();
const quyuvalue = ref<string[]>([]);
const useFlag = ref<Number>();
const useFlag = ref<Number | null>();
const useFlagList = ref();
useFlagList.value = [
{
@@ -218,6 +225,7 @@
// 重置
const resetting = () => {
quyuvalue.value = [];
useFlag.value = null;
areaName.value = '';
};
// 修改是否显示状态
@@ -296,6 +304,8 @@
// quyuvalue.value = [treeData2.value[0].childList[0].id];
// }
});
queryDeviceInfoListPage();
};
onMounted(async () => {
// 获取环境参数
@@ -360,6 +370,13 @@
{
title: '设备一级区域',
dataIndex: 'device1Area',
// width: 300,
// ellipsis: true,
// textNumber: 15,
// textEllipsis: true,
// ellipsis: {
// showTitle: false, // 设置为 false 在悬浮时显示 tooltip
// },
},
{
title: '设备二级区域',