统计分析
This commit is contained in:
parent
4cca0a4cc2
commit
e74bcd7e5b
@ -50,7 +50,7 @@
|
|||||||
row-key="id"
|
row-key="id"
|
||||||
>
|
>
|
||||||
<el-table-column type="selection" width="55" />
|
<el-table-column type="selection" width="55" />
|
||||||
<el-table-column prop="name" label="测点名称" width="120" />
|
<el-table-column prop="name" label="风机名称" width="120" />
|
||||||
</el-table>
|
</el-table>
|
||||||
<el-table
|
<el-table
|
||||||
:data="tableDataRight"
|
:data="tableDataRight"
|
||||||
@ -59,7 +59,7 @@
|
|||||||
row-key="id"
|
row-key="id"
|
||||||
>
|
>
|
||||||
<el-table-column type="selection" width="55" />
|
<el-table-column type="selection" width="55" />
|
||||||
<el-table-column prop="name" label="测点名称" width="120" />
|
<el-table-column prop="name" label="风机名称" width="120" />
|
||||||
</el-table>
|
</el-table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -200,7 +200,7 @@ onMounted(() => {
|
|||||||
})
|
})
|
||||||
const tableDataLeft = ref([])
|
const tableDataLeft = ref([])
|
||||||
const tableDataRight = ref([])
|
const tableDataRight = ref([])
|
||||||
|
const iotModelId = ref('')
|
||||||
const selectedLeft = ref([])
|
const selectedLeft = ref([])
|
||||||
const selectedRight = ref([])
|
const selectedRight = ref([])
|
||||||
|
|
||||||
@ -213,9 +213,12 @@ const queryWindTurbines = () => {
|
|||||||
queryWindTurbinesPages().then((res) => {
|
queryWindTurbinesPages().then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
const resData = res.data
|
const resData = res.data
|
||||||
const middleIndex = Math.ceil(resData.length / 2)
|
if (resData.length) {
|
||||||
tableDataLeft.value = resData.slice(0, middleIndex)
|
iotModelId.value = resData[0]['modelId']
|
||||||
tableDataRight.value = resData.slice(middleIndex)
|
const middleIndex = Math.ceil(resData.length / 2)
|
||||||
|
tableDataLeft.value = resData.slice(0, middleIndex)
|
||||||
|
tableDataRight.value = resData.slice(middleIndex)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -233,7 +236,7 @@ const getcurrentPage = () => {
|
|||||||
|
|
||||||
const getCompleteData = () => {
|
const getCompleteData = () => {
|
||||||
const requestData: any = {
|
const requestData: any = {
|
||||||
iotModelId: '',
|
iotModelId: iotModelId.value,
|
||||||
pageNum: pageSetting.current,
|
pageNum: pageSetting.current,
|
||||||
pageSize: pageSetting.pageSize,
|
pageSize: pageSetting.pageSize,
|
||||||
attributeType: radioActiveName.value,
|
attributeType: radioActiveName.value,
|
||||||
|
Loading…
Reference in New Issue
Block a user