首页
This commit is contained in:
parent
9777863084
commit
d0d16b98dd
@ -577,6 +577,9 @@ $labelHeight: 30px;
|
||||
p{
|
||||
padding-right: 30px;
|
||||
display: inline-block;
|
||||
span{
|
||||
padding-right: 10px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -169,8 +169,8 @@ const tableItem1: any = [
|
||||
title: '发电机转速'
|
||||
},
|
||||
{
|
||||
label: '有功功率 (MW)',
|
||||
unit:' (MW)',
|
||||
label: '有功功率 (kW)',
|
||||
unit:' (kW)',
|
||||
prop: 'igenpower',
|
||||
align: 'center',
|
||||
custom: 'header',
|
||||
@ -408,6 +408,7 @@ const selectTable = (selected: TableType[] | null) => {
|
||||
console.error('Selected is null or undefined')
|
||||
return
|
||||
}
|
||||
debugger
|
||||
selected.forEach((item, index) => {
|
||||
if (!multipleSelection.value.some(item1 => item1.attributeCode === item.attributeCode)) {
|
||||
multipleSelection.value.push(item);
|
||||
@ -561,15 +562,31 @@ const getTableData = () => {
|
||||
});
|
||||
tableColumn.value = [...tableItem0, ...tableColumnEnds.value];
|
||||
}
|
||||
tableData.value = []
|
||||
const deviceNameList=deviceList.value.map((item) => {
|
||||
return {
|
||||
id:item.id,
|
||||
name: item.name ?? '-',
|
||||
}
|
||||
});
|
||||
|
||||
deviceId.forEach((item,index) => {
|
||||
objparms.deviceId=item
|
||||
objparms.attributes=multipleSelection.value.map((item) => item.attributeCode)
|
||||
snapshotParms.push({...objparms})
|
||||
})
|
||||
deviceNameList.forEach((item1,index) => {
|
||||
const NameItem={
|
||||
id:item1.id,
|
||||
name: item1.name,
|
||||
}
|
||||
tableData.value.push({...NameItem})
|
||||
})
|
||||
getsnapshotData(snapshotParms).then((res) => {
|
||||
if (res.code == 200) {
|
||||
const tsnapshotVoObject: any = res.data;
|
||||
multipleSelection.value.map((item1: any) => {
|
||||
//tableData.value = [];
|
||||
tableData.value.forEach((item: any, i: number, arr: any) => {
|
||||
for (const itemKey in tsnapshotVoObject) {
|
||||
if (item.id === itemKey) {
|
||||
|
Loading…
Reference in New Issue
Block a user