Commit 872267ad authored by co_dengxiongwen's avatar co_dengxiongwen

tj

parent a6e685a9
......@@ -41,8 +41,8 @@ el-container(style="padding:0px;height:77.6vh;")
span.unit PPM
table-list(:tableColums='tableHeader' :tableData='dataList' :isShowOp="true" :opNum='4')
template(#operation='data')
el-button(type='text' size='small' @click="showParams(scope.row, 1)") 历史数据
el-button(type='text' size='small' @click="showParams(scope.row, 2)") 统计图表
el-button(type='text' size='small' @click="showParams(data.scope, 1)") 历史数据
el-button(type='text' size='small' @click="showParams(data.scope, 2)") 统计图表
//- el-table(
//- size="mini",
//- :data="dataList",
......@@ -153,7 +153,7 @@ export default {
components: {
tablePagination,
history,
tableList,
tableList
},
data() {
return {
......@@ -173,7 +173,7 @@ export default {
{ label: '温度(℃)', prop: 'temperature', format: true },
{ label: '湿度(%RH)', prop: 'humidity', format: true },
{ label: 'CO₂(PPM)', prop: 'carbon_dioxide', format: true },
{ label: '设备状态', prop: 'statusName', format: true },
{ label: '设备状态', prop: 'statusName', format: true }
]
}
},
......
......@@ -64,10 +64,19 @@
</el-form>
</div>
<table-list :tableColums='tableColums' :tableData='tableData' :showOpr='true' :opNum='2'>
<table-list
:tableColums="tableColums"
:tableData="tableData"
:showOpr="true"
:opNum="2"
>
<template #operation="data">
<el-button type="text" @click="openHistoryHandle(data.scope.row)">历史数据</el-button>
<el-button type="text" @click="openPicTHandle(data.scope.row)">统计图表</el-button>
<el-button type="text" @click="openHistoryHandle(data.scope)"
>历史数据</el-button
>
<el-button type="text" @click="openPicTHandle(data.scope)"
>统计图表</el-button
>
</template>
</table-list>
<!-- <enTable
......@@ -87,8 +96,13 @@
</div>
</cardList>
<el-footer class="box_footer">
<tablePagination :pageSize="pageSize" :totalSize="totalSize" @parentMethod="getDataList">
</tablePagination></el-footer>
<tablePagination
:pageSize="pageSize"
:totalSize="totalSize"
@parentMethod="getDataList"
>
</tablePagination
></el-footer>
<history-data-modal
:historyDataModalVisible="historyDataModalVisible"
......@@ -119,7 +133,7 @@ export default {
historyDataModal,
statisticPicTableModal,
tablePagination,
tableList,
tableList
},
data() {
return {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment