|
@@ -67,14 +67,17 @@ import {
|
|
|
Dltcolumns,
|
|
|
Swcolumns,
|
|
|
Hjtcolumns,
|
|
|
+ Bdcolumns,
|
|
|
dataColumns,
|
|
|
dataDltColumns,
|
|
|
dataSwColumns,
|
|
|
dataHjtColumns,
|
|
|
+ dataBdColumns,
|
|
|
AllDataColumns,
|
|
|
AllDataDltColumns,
|
|
|
AllDataSwColumns,
|
|
|
AllDataHjtColumns,
|
|
|
+ AllDataBdColumns,
|
|
|
} from './dust-table.data';
|
|
|
import { getDustInfoList, getAllFileList, getAllFileListById } from './dsut-table.api';
|
|
|
import customHeader from '/@/components/vent/customHeader.vue';
|
|
@@ -115,6 +118,8 @@ const computedColumns = computed(() => {
|
|
|
return Swcolumns; // 上湾对应的列配置
|
|
|
case 'sdmtjtdltmkhjtj':
|
|
|
return Hjtcolumns; // 活鸡兔对应的列配置
|
|
|
+ case 'sdmtjtBdmk':
|
|
|
+ return Bdcolumns; // 保德对应的列配置
|
|
|
default:
|
|
|
return columns; // 默认情况下返回的列配置
|
|
|
}
|
|
@@ -129,6 +134,8 @@ const AllDataComputedColumns = computed(() => {
|
|
|
return AllDataSwColumns; // 上湾对应的列配置
|
|
|
case 'sdmtjtdltmkhjtj':
|
|
|
return AllDataHjtColumns; // 活鸡兔对应的列配置
|
|
|
+ case 'sdmtjtBdmk':
|
|
|
+ return AllDataBdColumns; // 保德对应的列配置
|
|
|
default:
|
|
|
return AllDataColumns; // 默认情况下返回的列配置
|
|
|
}
|
|
@@ -143,6 +150,8 @@ const DataComputedColumns = computed(() => {
|
|
|
return dataSwColumns; // 上湾对应的列配置
|
|
|
case 'sdmtjtdltmkhjtj':
|
|
|
return dataHjtColumns; // 活鸡兔对应的列配置
|
|
|
+ case 'sdmtjtBdmk':
|
|
|
+ return dataBdColumns; // 保德对应的列配置
|
|
|
default:
|
|
|
return dataColumns; // 默认情况下返回的列配置
|
|
|
}
|
|
@@ -219,6 +228,10 @@ function processTableData(data: any) {
|
|
|
{ key: 'zcjqpj', value: -Infinity, gz: '', jcdd: '', fczl: '', gzcs: workplace },
|
|
|
{ key: 'hcjqpj', value: -Infinity, gz: '', jcdd: '', fczl: '', gzcs: workplace },
|
|
|
];
|
|
|
+ const BdMaxValues = [
|
|
|
+ { key: 'qc', value: -Infinity, gz: '', jcdd: '', fczl: '', gzcs: workplace },
|
|
|
+ { key: 'hc', value: -Infinity, gz: '', jcdd: '', fczl: '', gzcs: workplace },
|
|
|
+ ];
|
|
|
items.forEach((item: any) => {
|
|
|
maxValues.forEach((maxValue) => {
|
|
|
if (item[maxValue.key] > maxValue.value) {
|
|
@@ -255,6 +268,15 @@ function processTableData(data: any) {
|
|
|
maxValue.gzcs = item.gzcs;
|
|
|
}
|
|
|
});
|
|
|
+ BdMaxValues.forEach((maxValue) => {
|
|
|
+ if (item[maxValue.key] > maxValue.value) {
|
|
|
+ maxValue.value = item[maxValue.key];
|
|
|
+ maxValue.gz = item.gz;
|
|
|
+ maxValue.jcdd = item.jcdd;
|
|
|
+ maxValue.fczl = item.fczl;
|
|
|
+ maxValue.gzcs = item.gzcs;
|
|
|
+ }
|
|
|
+ });
|
|
|
});
|
|
|
switch (sysOrgCode) {
|
|
|
case 'sdmtjtbetmk':
|
|
@@ -265,6 +287,8 @@ function processTableData(data: any) {
|
|
|
return SwMaxValues; // 上湾对应的列配置
|
|
|
case 'sdmtjtdltmkhjtj':
|
|
|
return HjtMaxValues; // 活鸡兔对应的列配置
|
|
|
+ case 'sdmtjtBdmk':
|
|
|
+ return BdMaxValues; // 保德对应的列配置
|
|
|
default:
|
|
|
return maxValues; // 默认情况下返回的列配置
|
|
|
}
|
|
@@ -308,6 +332,10 @@ function processTableData(data: any) {
|
|
|
{ key: 'zcjqpj', value: -Infinity, gz: '', jcdd: '', fczl: '', gzcs: '' },
|
|
|
{ key: 'hcjqpj', value: -Infinity, gz: '', jcdd: '', fczl: '', gzcs: '' },
|
|
|
];
|
|
|
+ const overallBdMaxValues = [
|
|
|
+ { key: 'zcjqpj', value: -Infinity, gz: '', jcdd: '', fczl: '', gzcs: '' },
|
|
|
+ { key: 'hcjqpj', value: -Infinity, gz: '', jcdd: '', fczl: '', gzcs: '' },
|
|
|
+ ];
|
|
|
data.forEach((item: any) => {
|
|
|
overallMaxValues.forEach((maxValue) => {
|
|
|
if (item[maxValue.key] > maxValue.value) {
|
|
@@ -345,6 +373,15 @@ function processTableData(data: any) {
|
|
|
maxValue.gzcs = item.gzcs;
|
|
|
}
|
|
|
});
|
|
|
+ overallBdMaxValues.forEach((maxValue) => {
|
|
|
+ if (item[maxValue.key] > maxValue.value) {
|
|
|
+ maxValue.value = item[maxValue.key];
|
|
|
+ maxValue.gz = item.gz;
|
|
|
+ maxValue.jcdd = item.jcdd;
|
|
|
+ maxValue.fczl = item.fczl;
|
|
|
+ maxValue.gzcs = item.gzcs;
|
|
|
+ }
|
|
|
+ });
|
|
|
});
|
|
|
AllMaxValues = computed(() => {
|
|
|
switch (sysOrgCode) {
|
|
@@ -356,6 +393,8 @@ function processTableData(data: any) {
|
|
|
return overallSwMaxValues; // 上湾对应的列配置
|
|
|
case 'sdmtjtdltmkhjtj':
|
|
|
return overallHjtMaxValues; // 活鸡兔对应的列配置
|
|
|
+ case 'sdmtjtBdmk':
|
|
|
+ return overallBdMaxValues; // 保德对应的列配置
|
|
|
default:
|
|
|
return overallMaxValues; // 默认情况下返回的列配置
|
|
|
}
|