6001_index.html 5.4 KB
<div class="box box-default">
    <div class="box-header with-border">
        <h3 class="box-title">急停按钮</h3>

        <div class="box-tools pull-right">
            <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
            <button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
        </div>
    </div>
    <!-- /.box-header -->
    <div class="box-body">
        <div class="row">

            <div class="col-md-12">
                <table class="table table-hover">
                    <tbody>
                        <tr>
                            <th>报警内容</th>
                            <th>报警区域</th>
                            <th>报警时间</th>
                        </tr>
                        {% if pressure is none %}
                            <tr>
                                <td colspan="3">当日暂无报警数据</td>
                            </tr>
                        {% else %}
                            {% for v in radar.items %}
                            <tr>
                                <td>{{ v.msg }}</td>
                                <td>{{ v.device.detectingpoint.no }}#{{ v.device.detectingpoint.name }}</td>
                                <td>{{ v.addtime }}</td>
                            </tr>
                            {% endfor %}
                        {% endif %}
                    </tbody>
                </table>
            </div>
            <!-- /.col -->
            <div class="col-md-12">
                <div class="box box-default">
                    <div class="box-header with-border">
                        <h3 class="box-title">设备列表</h3>

                        <div class="box-tools pull-right">
                            <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>

                        </div>
                    </div>
                    <div class="box-body">
                        <ul class="products-list product-list-in-box">
                            {% for d in device_data %}
                                {% if d.devicetype.type == 6001 %}
                                    {% for dd in d.devicetype.device %}
                                        <li class="item">
                                            <div class="product-img">
                                                <img src="{{ url_for('static',filename='admin/dist/img/default-50x50.gif') }}" alt="pimg">
                                            </div>
                                            <div class="product-info">
                                                <a href="javascript:void(0)" class="product-title">{{dd.title}}
                                                    <span class="label label-success pull-right" id="span-{{ d.devicetype.type }}-{{ dd.address }}">在线</span>
                                                </a>
                                                <span class="product-description">
                                                  检测区域:{{ dd.detectingpoint.no }}#{{ dd.detectingpoint.name }}
                                                </span>
                                            </div>
                                        </li>
                                    {% endfor %}

                                {% endif %}
                            {% endfor %}
                            <!--li class="item">
                                <div class="product-img">
                                    <img src="{{ url_for('static',filename='admin/dist/img/default-50x50.gif') }}" alt="pimg">
                                </div>
                                <div class="product-info">
                                    <a href="javascript:void(0)" class="product-title">压力传感器-P01
                                        <span class="label label-success pull-right">在线</span>
                                    </a>
                                    <span class="product-description">
                                      检测区域:1#管道;压力:0
                                    </span>
                                </div>
                            </li>
                            <li class="item">
                                <div class="product-img">
                                    <img src="{{ url_for('static',filename='admin/dist/img/default-50x50.gif') }}" alt="pimg">
                                </div>
                                <div class="product-info">
                                    <a href="javascript:void(0)" class="product-title">压力传感器-P02
                                        <span class="label label-success pull-right">在线</span>
                                    </a>
                                    <span class="product-description">
                                      检测区域:2#管道;压力:0
                                    </span>
                                </div>
                            </li-->
                        </ul>
                    </div>
                </div>
            </div>
        </div>
        <!-- /.row -->
    </div>
    <!-- /.box-body -->
    <div class="box-footer no-padding">

    </div>
<!-- /.footer -->
</div>