提交 6dc2d031 authored 作者: chengye's avatar chengye

功耗虚拟数据

上级 20c84627
...@@ -73,6 +73,14 @@ class Index extends Base ...@@ -73,6 +73,14 @@ class Index extends Base
$devs = \app\jz\model\Index::getDevs($id); $devs = \app\jz\model\Index::getDevs($id);
$this->assign('devs',$devs); $this->assign('devs',$devs);
$this->assign('data',$data); $this->assign('data',$data);
$ue = [
'last_date' => '2020-1-31',
'current_date' => '2020-3-31',
'repo_numb' => 18766,
'power' => round(18766/60,2)
];
$this->assign('useage',$ue);
return $this->fetch(); return $this->fetch();
} }
......
...@@ -203,6 +203,35 @@ ...@@ -203,6 +203,35 @@
</table> </table>
</div> </div>
</div> </div>
<div class="layui-col-md10 layui-col-xs12">
<div class="layui-form-item">
<label class="layui-form-label">
抄表记录:
</label>
</div>
<div class="devs_table">
<table class="layui-table">
<thead>
<tr>
<th>开始时间</th>
<th>结束时间</th>
<th>用电数</th>
<th>日功耗(千瓦时)</th>
</thead>
<tbody>
{volist name="useage" id="item" key="k"}
<tr>
<td>{$item.last_date}</td>
<td>{$item.current_date}</td>
<td>{$item.repo_numb}</td>
<td>{$item.power}</td>
</tr>
{/volist}
</tbody>
</table>
</div>
</div>
</div> </div>
</div> </div>
</div> </div>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论