统计分析
This commit is contained in:
parent
4cca0a4cc2
commit
e74bcd7e5b
@ -50,7 +50,7 @@
|
||||
row-key="id"
|
||||
>
|
||||
<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
|
||||
:data="tableDataRight"
|
||||
@ -59,7 +59,7 @@
|
||||
row-key="id"
|
||||
>
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
@ -200,7 +200,7 @@ onMounted(() => {
|
||||
})
|
||||
const tableDataLeft = ref([])
|
||||
const tableDataRight = ref([])
|
||||
|
||||
const iotModelId = ref('')
|
||||
const selectedLeft = ref([])
|
||||
const selectedRight = ref([])
|
||||
|
||||
@ -213,10 +213,13 @@ const queryWindTurbines = () => {
|
||||
queryWindTurbinesPages().then((res) => {
|
||||
if (res.code == 200) {
|
||||
const resData = res.data
|
||||
if (resData.length) {
|
||||
iotModelId.value = resData[0]['modelId']
|
||||
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 requestData: any = {
|
||||
iotModelId: '',
|
||||
iotModelId: iotModelId.value,
|
||||
pageNum: pageSetting.current,
|
||||
pageSize: pageSetting.pageSize,
|
||||
attributeType: radioActiveName.value,
|
||||
|
Loading…
Reference in New Issue
Block a user