{% extends "../theme.html" %}
{% block content %}
<link href="{{static_url('pc/css/logs.css')}}" rel="stylesheet">
{%include 'inc/menu.html'%}
<div class="left w-half">
    <div class="pannel">
		<h2 class="nm">设备日志({{data['page']['totalNum']}})</h2>
		{% if data['logs'] %}
        <ul class="logs">
        	{% for v in data['logs'] %}
            <li><h3>{{v['type']}}</h3><p>{{v['content']}}</p><p class="time">{{v['cdates']}}</p></li>
            {% end %}
        </ul>
        {% else %}
        暂无日志
        {% end %}
    </div>
    {%set url = data['url']['log'] %}
    {%include '../inc/page.html'%}
</div>
<div class="right w-half">
    <div class="pannel">
        <h2 class="nm">设备清单</h2>
        <ul class="grid">
            <li class="th"><span>设备名称</span><span class="t-c">数量</span><span class="t-r">日期</span></li>
            {% for v in data['list'] %}
            <li><span>{{v['name']}}</span><span class="t-c">{{v['num']}}</span><span class="t-r">{{v['cdate']}}</span></li>
            {% end %}
        </ul>
    </div>
    {% if 'pic' in data['info'] and data['info']['pic'] %}
    <div class="pannel">
        <h2>设备分布图纸</h2>
        <a href="{{data['info']['pic']}}" target="_blank"><img src="{{data['info']['pic']}}" width="100%" alt="点击查看大图"></a>
    </div>
    {% end %}
</div>
{% end %}