|
|
@@ -65,18 +65,20 @@
|
|
|
</div>
|
|
|
<div class="data_container">
|
|
|
<baseEcharts v-if="change_type === 'echarts'" />
|
|
|
- <div v-if="change_type === 'table'" class="data_table_box">
|
|
|
- <el-table :data="tableData" height="100%" style="width: 100%">
|
|
|
- <el-table-column prop="key1" label="检测时间" />
|
|
|
- <el-table-column prop="key2" label="传感器名称" />
|
|
|
- <el-table-column prop="key3" label="原始值" />
|
|
|
- <el-table-column prop="key4" label="检测值" />
|
|
|
- <el-table-column prop="key5" label="报警信息" />
|
|
|
- </el-table>
|
|
|
- </div>
|
|
|
- <div class="data_page_box">
|
|
|
- <el-pagination background layout="total, prev, pager, next" :total="1000" :page-size="30" />
|
|
|
- </div>
|
|
|
+ <template v-if="change_type === 'table'">
|
|
|
+ <div class="data_table_box">
|
|
|
+ <el-table :data="tableData" height="100%" style="width: 100%">
|
|
|
+ <el-table-column prop="key1" label="检测时间" />
|
|
|
+ <el-table-column prop="key2" label="传感器名称" />
|
|
|
+ <el-table-column prop="key3" label="原始值" />
|
|
|
+ <el-table-column prop="key4" label="检测值" />
|
|
|
+ <el-table-column prop="key5" label="报警信息" />
|
|
|
+ </el-table>
|
|
|
+ </div>
|
|
|
+ <div class="data_page_box">
|
|
|
+ <el-pagination background layout="total, prev, pager, next" :total="1000" :page-size="30" />
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
</div>
|
|
|
</template>
|
|
|
|