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