|
@@ -68,16 +68,19 @@ import {
|
|
|
Swcolumns,
|
|
|
Hjtcolumns,
|
|
|
Bdcolumns,
|
|
|
+ Bltcolumns,
|
|
|
dataColumns,
|
|
|
dataDltColumns,
|
|
|
dataSwColumns,
|
|
|
dataHjtColumns,
|
|
|
dataBdColumns,
|
|
|
+ dataBltColumns,
|
|
|
AllDataColumns,
|
|
|
AllDataDltColumns,
|
|
|
AllDataSwColumns,
|
|
|
AllDataHjtColumns,
|
|
|
AllDataBdColumns,
|
|
|
+ AllDataBltColumns,
|
|
|
} from './dust-table.data';
|
|
|
import { getDustInfoList, getAllFileList, getAllFileListById } from './dsut-table.api';
|
|
|
import customHeader from '/@/components/vent/customHeader.vue';
|
|
@@ -120,6 +123,8 @@ const computedColumns = computed(() => {
|
|
|
return Hjtcolumns; // 活鸡兔对应的列配置
|
|
|
case 'sdmtjtBdmk':
|
|
|
return Bdcolumns; // 保德对应的列配置
|
|
|
+ case 'sdmtjtbltmk':
|
|
|
+ return Bltcolumns; // 补连塔对应的列配置
|
|
|
default:
|
|
|
return columns; // 默认情况下返回的列配置
|
|
|
}
|
|
@@ -136,6 +141,8 @@ const AllDataComputedColumns = computed(() => {
|
|
|
return AllDataHjtColumns; // 活鸡兔对应的列配置
|
|
|
case 'sdmtjtBdmk':
|
|
|
return AllDataBdColumns; // 保德对应的列配置
|
|
|
+ case 'sdmtjtbltmk':
|
|
|
+ return AllDataBltColumns; // 补连塔对应的列配置
|
|
|
default:
|
|
|
return AllDataColumns; // 默认情况下返回的列配置
|
|
|
}
|
|
@@ -152,6 +159,8 @@ const DataComputedColumns = computed(() => {
|
|
|
return dataHjtColumns; // 活鸡兔对应的列配置
|
|
|
case 'sdmtjtBdmk':
|
|
|
return dataBdColumns; // 保德对应的列配置
|
|
|
+ case 'sdmtjtbltmk':
|
|
|
+ return dataBltColumns; // 补连塔对应的列配置
|
|
|
default:
|
|
|
return dataColumns; // 默认情况下返回的列配置
|
|
|
}
|
|
@@ -185,6 +194,9 @@ async function getTableListById(params: any) {
|
|
|
function processTableData(data: any) {
|
|
|
// 根据 gzcs 字段进行分组
|
|
|
const groupedData = data.reduce((acc: any, item: any) => {
|
|
|
+ if (sysOrgCode === 'sdmtjtbltmk') {
|
|
|
+ item.gzcs = item.gzm;
|
|
|
+ }
|
|
|
const workplace = item.gzcs;
|
|
|
if (!acc[workplace]) {
|
|
|
acc[workplace] = [];
|
|
@@ -232,6 +244,10 @@ function processTableData(data: any) {
|
|
|
{ key: 'qc', value: -Infinity, gz: '', jcdd: '', fczl: '', gzcs: workplace },
|
|
|
{ key: 'hc', value: -Infinity, gz: '', jcdd: '', fczl: '', gzcs: workplace },
|
|
|
];
|
|
|
+ const BltMaxValues = [
|
|
|
+ { key: 'sc_zcds', value: -Infinity, gz: '', jcdd: '', scgy: '', gzcs: workplace },
|
|
|
+ { key: 'sc_hcds', value: -Infinity, gz: '', jcdd: '', scgy: '', gzcs: workplace },
|
|
|
+ ];
|
|
|
items.forEach((item: any) => {
|
|
|
maxValues.forEach((maxValue) => {
|
|
|
if (item[maxValue.key] > maxValue.value) {
|
|
@@ -277,6 +293,15 @@ function processTableData(data: any) {
|
|
|
maxValue.gzcs = item.gzcs;
|
|
|
}
|
|
|
});
|
|
|
+ BltMaxValues.forEach((maxValue) => {
|
|
|
+ if (item[maxValue.key] > maxValue.value) {
|
|
|
+ maxValue.value = item[maxValue.key];
|
|
|
+ maxValue.gz = item.gz;
|
|
|
+ maxValue.jcdd = item.jcdd;
|
|
|
+ maxValue.scgy = item.scgy;
|
|
|
+ maxValue.gzcs = item.gzcs;
|
|
|
+ }
|
|
|
+ });
|
|
|
});
|
|
|
switch (sysOrgCode) {
|
|
|
case 'sdmtjtbetmk':
|
|
@@ -289,6 +314,8 @@ function processTableData(data: any) {
|
|
|
return HjtMaxValues; // 活鸡兔对应的列配置
|
|
|
case 'sdmtjtBdmk':
|
|
|
return BdMaxValues; // 保德对应的列配置
|
|
|
+ case 'sdmtjtbltmk':
|
|
|
+ return BltMaxValues; // 补连塔对应的列配置
|
|
|
default:
|
|
|
return maxValues; // 默认情况下返回的列配置
|
|
|
}
|
|
@@ -336,6 +363,10 @@ function processTableData(data: any) {
|
|
|
{ key: 'zcjqpj', value: -Infinity, gz: '', jcdd: '', fczl: '', gzcs: '' },
|
|
|
{ key: 'hcjqpj', value: -Infinity, gz: '', jcdd: '', fczl: '', gzcs: '' },
|
|
|
];
|
|
|
+ const overallBltMaxValues = [
|
|
|
+ { key: 'sc_zcds', value: -Infinity, gz: '', jcdd: '', scgy: '', gzcs: '' },
|
|
|
+ { key: 'sc_hcds', value: -Infinity, gz: '', jcdd: '', scgy: '', gzcs: '' },
|
|
|
+ ];
|
|
|
data.forEach((item: any) => {
|
|
|
overallMaxValues.forEach((maxValue) => {
|
|
|
if (item[maxValue.key] > maxValue.value) {
|
|
@@ -382,6 +413,15 @@ function processTableData(data: any) {
|
|
|
maxValue.gzcs = item.gzcs;
|
|
|
}
|
|
|
});
|
|
|
+ overallBltMaxValues.forEach((maxValue) => {
|
|
|
+ if (item[maxValue.key] > maxValue.value) {
|
|
|
+ maxValue.value = item[maxValue.key];
|
|
|
+ maxValue.gz = item.gz;
|
|
|
+ maxValue.jcdd = item.jcdd;
|
|
|
+ maxValue.scgy = item.scgy;
|
|
|
+ maxValue.gzcs = item.gzcs;
|
|
|
+ }
|
|
|
+ });
|
|
|
});
|
|
|
AllMaxValues = computed(() => {
|
|
|
switch (sysOrgCode) {
|
|
@@ -395,6 +435,8 @@ function processTableData(data: any) {
|
|
|
return overallHjtMaxValues; // 活鸡兔对应的列配置
|
|
|
case 'sdmtjtBdmk':
|
|
|
return overallBdMaxValues; // 保德对应的列配置
|
|
|
+ case 'sdmtjtbltmk':
|
|
|
+ return overallBltMaxValues; // 补连塔对应的列配置
|
|
|
default:
|
|
|
return overallMaxValues; // 默认情况下返回的列配置
|
|
|
}
|