<template>
  <div >
    <section class="mainbox">
        <div id="map1"></div>
        <header>
            <div class="header-logo">
                <div class="weather">多云 8℃ 东南风3-4级
                </div>
                <div class="showTime "></div>
            </div>
        </header>


        <div class="data-statistic">
            <div class="panel">
                <h2>数据统计</h2>
                <ul class="statisticDataBox">
                    <li>
                        <div class="digit-num color-green " id="siteNumber">
                            1256
                        </div>
                        <div class="digit-des">
                            站点总数
                        </div>
                    </li>
                    <li>
                        <div class="digit-num color-purple" id="alarmNumber">
                            555
                        </div>
                        <div class="digit-des">
                            告警总数
                        </div>
                    </li>
                    <li>
                        <div class="digit-num color-blue" id="processedAlarmNumber">
                            230
                        </div>
                        <div class="digit-des">
                            已处理告警数
                        </div>
                    </li>
                    <li>
                        <div class="digit-num color-red" id="unprocessedAlarmNumber">
                            325
                        </div>
                        <div class="digit-des">
                            未处理告警数
                        </div>
                    </li>
                    <li>
                        <div class="digit-num color-default" id="powerLossAlarmNumber">
                            130
                        </div>
                        <div class="digit-des">
                            失电告警
                        </div>
                    </li>
                    <li>
                        <div class="digit-num color-yellow" id="lowPressureAlarmNumber">
                            425
                        </div>
                        <div class="digit-des">
                            低压告警
                        </div>
                    </li>
                </ul>
                <div class="chart"></div>
            </div>
        </div>
        <div class="data-table-box ">
            <div class="column">
                <div class="panel">
                    <h2>
                        设备信息
                        <div class="choose-box">
                            <span>状态</span>
                            <select name="" id="deviceStatus">
                                <option value="">所有</option>
                                <option value="在线">在线</option>
                                <option value="离线">离线</option>
                            </select>
                            <a class="button" id="deviceButtonClick">搜索</a>
                        </div>
                    </h2>
                    <table class="pure-table device-table">
                        <thead>
                            <tr>
                                <th>设备名称</th>
                                <th>状态</th>
                                <th>地点</th>
                            </tr>
                        </thead>
                    </table>
                    <div class="scroll">
                        <table class="pure-table device-table">
                            <tbody id="deviceListBox">
                                <tr>
                                    <td>设备名</td>
                                    <td class="online">在线</td>
                                    <td>嘉定区中佳路333号3楼301室</td>
                                </tr>
                                <tr>
                                    <td>设备名</td>
                                    <td class="offline">离线</td>
                                    <td>嘉定区中佳路333</td>
                                </tr>
                                <tr>
                                    <td>设备名</td>
                                    <td class="offline">离线</td>
                                    <td>嘉定区中佳路333</td>
                                </tr>
                                <tr>
                                    <td>设备名</td>
                                    <td class="online"> 在线</td>
                                    <td>嘉定区中佳路333</td>
                                </tr>
                                <tr>
                                    <td>设备名</td>
                                    <td class="online">在线</td>
                                    <td>嘉定区中佳路333</td>
                                </tr>
                                <tr>
                                    <td>设备名</td>
                                    <td class="online">在线</td>
                                    <td>嘉定区中佳路333</td>
                                </tr>
                                <tr>
                                    <td>设备名</td>
                                    <td class="online">在线</td>
                                    <td>嘉定区中佳路333</td>
                                </tr>
                                <tr>
                                    <td>设备名</td>
                                    <td class="online">在线</td>
                                    <td>嘉定区中佳路333</td>
                                </tr>
                                <tr>
                                    <td>设备名</td>
                                    <td class="online">在线</td>
                                    <td>嘉定区中佳路333</td>
                                </tr>
                                <tr>
                                    <td>设备名</td>
                                    <td class="online">在线</td>
                                    <td>嘉定区中佳路333</td>
                                </tr>
                                <tr>
                                    <td>设备名</td>
                                    <td class="online">在线</td>
                                    <td>嘉定区中佳路333</td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
            <div class="column">
                <div class=" panel">
                    <h2>
                        告警信息
                        <div class="choose-box">
                            <span>告警状态</span>
                            <select name="" id="digitalValue">
                                <option value="">所有</option>
                                <option value="动作">动作</option>
                                <option value="复归">复归</option>
                            </select>
                            <span>时间</span>
                            <div class="layui-inline">
                                <input type="text" id="startTime" class="layui-input test-item" placeholder="所有">
                            </div>
                            <span>~</span>
                            <div class="layui-inline">
                                <input type="text" id="endTime" class="layui-input test-item" placeholder="所有">
                            </div>
                            <a class="button" id="alarmButtonClick">搜索</a>
                        </div>
                    </h2>
                    <table class="pure-table alarm-table">
                        <thead>
                            <tr>
                                <th>项目</th>
                                <th>地点</th>
                                <th>告警状态</th>
                                <th>告警详情</th>
                                <th>采集时间</th>
                                <th>耗时</th>
                                <th>状态</th>
                            </tr>
                        </thead>
                    </table>
                    <div class="scroll">
                        <table class="pure-table alarm-table">
                            <tbody id="alarmListBox">
                                <tr>
                                    <td>中冶祥腾城市广场</td>
                                    <td>嘉定区中佳路333号 </td>
                                    <td class="color-red">失电</td>
                                    <td>总路，掉电告警 </td>
                                    <td>2020-12-17 15:12:00 </td>
                                    <td> 2.8小时 </td>
                                    <td class="unprocess"> 未处理</td>
                                </tr>
                                <tr>
                                    <td>中冶祥腾城市广场</td>
                                    <td>嘉定区中佳路333号 </td>
                                    <td class="color-red">失电</td>
                                    <td>总路，掉电告警 </td>
                                    <td>2020-12-17 15:12:00 </td>
                                    <td> 2.8小时 </td>
                                    <td class="unprocess"> 未处理</td>
                                </tr>
                                <tr>
                                    <td>中冶祥腾城市广场</td>
                                    <td>嘉定区中佳路333号 </td>
                                    <td class="color-orange">低压</td>
                                    <td>总路，掉电告警 </td>
                                    <td>2020-12-17 15:12:00 </td>
                                    <td> 2.8小时 </td>
                                    <td class="unprocess"> 未处理</td>
                                </tr>
                                <tr>
                                    <td>中冶祥腾城市广场</td>
                                    <td>嘉定区中佳路333号 </td>
                                    <td class="color-orange">低压</td>
                                    <td>总路，掉电告警 </td>
                                    <td>2020-12-17 15:12:00 </td>
                                    <td> 2.8小时 </td>
                                    <td class="unprocess"> 未处理</td>
                                </tr>
                                <tr>
                                    <td>中冶祥腾城市广场</td>
                                    <td>嘉定区中佳路333号 </td>
                                    <td class="color-red">失电</td>
                                    <td>总路，掉电告警 </td>
                                    <td>2020-12-17 15:12:00 </td>
                                    <td> 2.8小时 </td>
                                    <td class="unprocess"> 未处理</td>
                                </tr>
                                <tr>
                                    <td>中冶祥腾城市广场</td>
                                    <td>嘉定区中佳路333号 </td>
                                    <td class="color-orange">低压</td>
                                    <td>总路，掉电告警 </td>
                                    <td>2020-12-17 15:12:00 </td>
                                    <td> 2.8小时 </td>
                                    <td class="unprocess"> 未处理</td>
                                </tr>
                                <tr>
                                    <td>中冶祥腾城市广场</td>
                                    <td>嘉定区中佳路333号 </td>
                                    <td class="color-orange">低压</td>
                                    <td>总路，掉电告警 </td>
                                    <td>2020-12-17 15:12:00 </td>
                                    <td> 2.8小时 </td>
                                    <td class="processed"> 已处理</td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </section>
    <div class="deviceDetailOut">
        <div class="masker"></div>
        <div class=" dataOut">
            <div class="ttBox">
                <a class="clsBtn"><img src="images/close.svg" alt=""></a>
                <span class="tt">设备详情</span>
            </div>
            <div class="timeTitle">
                采集时间：2020-12-24 12:00:00
            </div>
            <div class="txt-box" id="txt-box">
                <ul class="leftUl">
                    <li></li>
                    <li></li>
                    <li style="margin-bottom:50px"></li>
                    <li></li>
                </ul>
                <ul class="rightUl">
                    <li></li>
                    <li></li>
                    <li style="margin-bottom:50px"></li>
                    <li></li>
                    <li></li>
                    <li></li>
                </ul>
            </div>
        </div>
    </div>
    <div class="alarmHanleOut ">
        <div class="masker"></div>
        <div class="dataOut">
            <div class="ttBox">
                <a class="clsBtn"><img src="images/close.svg" alt=""></a>
                <span class="tt">告警处置</span>
            </div>
            <form action="" id="alarmHandleForm">
                <div class="txtBox">
                    <div>
                        <span>项目:</span>
                        <input type="text" name="companyName">
                    </div>
                    <div>
                        <span>地点:</span>
                        <input type="text" name="companyAdress">
                    </div>
                    <div>
                        <span>设备号:</span>
                        <input type="text" name="deviceCode">
                    </div>
                    <div>
                        <span>故障内容:</span>
                        <input type="text" name="measDesc">
                    </div>
                    <div class="error-radio layui-form">
                        <span>误报:</span>
                        <!-- <div>
                            <input type="radio" name="handleMisinformation" value="1" title="是" checked>
                            <input type="radio" name="handleMisinformation" value="0" title="否">

                        </div> -->
                        <div class="layui-form-item ">
                            <div class="layui-input-block">
                                <input id="yes" type="radio" name="handleMisinformation" value="1" title="是" checked>
                                <input id="no" type="radio" name="handleMisinformation" value="0" title="否">
                            </div>
                        </div>
                    </div>
                    <div>
                        <span>处理结果及建议:</span>
                        <input type="text" name="handleContent">
                    </div>
                    <div>
                        <span>设备图片:</span>
                        <div id="drop_area"></div>
                    </div>
                    <div style="opacity:0">
                        <span>数据id:</span>
                        <input type="text" name="alarmId">
                    </div>
                </div>
                <div class="btnArea">
                    <div class="btnGroup">
                        <a class="sgBtn ok" id="dataUpdate"> 保存</a>
                        <a class="sgBtn cancel">取消</a>
                    </div>
                </div>
            </form>
        </div>
    </div>
    
  </div>
</template>

<script>
import  '../../assets/homeStatic/js/flexible.js';
import  '../../assets/homeStatic/js/jquery.js';
// import  '../../assets/homeStatic/layui/layui.js';
// import  '../../assets/homeStatic/js/upload.js';
// import  '../../assets/homeStatic/js/echarts.min.js';

// import  'https://webapi.amap.com/maps?v=1.4.13&key=246349bf278f6225fa80156828d0f061&plugin=AMap.Geocoder,Map3D';
// import  '../../assets/homeStatic/js/util.js';
// import  '../../assets/homeStatic/api/request.js';
// import  '../../assets/homeStatic/js/valid.js';
// import  '../../assets/homeStatic/js/index.js';






// (function() {
//         //时间筛选
//         layui.use(['form', 'layedit', 'laydate'], function() {
//             var
//                 layer = layui.layer,
//                 layedit = layui.layedit,
//                 laydate = layui.laydate;
//         });
//         layui.use('laydate', function() {
//             var laydate = layui.laydate;

//             //开始日期
//             var insStart = laydate.render({
//                 elem: '#startTime',
//                 trigger: 'click',
//                 done: function(value, date) {
//                     //更新结束日期的最小日期
//                     insEnd.config.min = lay.extend({}, date, {
//                         month: date.month - 1
//                     });
//                     //自动弹出结束日期的选择器
//                     insEnd.config.elem[0].focus();
//                 }
//             });

//             //结束日期
//             var insEnd = laydate.render({
//                 elem: '#endTime',
//                 trigger: 'click',
//                 done: function(value, date) {
//                     //更新开始日期的最大日期
//                     insStart.config.max = lay.extend({}, date, {
//                         month: date.month - 1
//                     });
//                 }
//             });




//         });


//         // 单选框选项卡
//         $(document).on('click', '.scroll tbody  tr', function() {
//             $(this).addClass("selected").siblings().removeClass("selected");
//             // $(this).find(".status").addClass('checked').parent().siblings().find(".status").removeClass('checked');

//         })

//         //form 表单
//         layui.use(['form', 'layedit', 'laydate'], function() {
//             var form = layui.form,
//                 layer = layui.layer,
//                 layedit = layui.layedit,
//                 laydate = layui.laydate;
//         });

//         //图片上传
//         var dragImgUpload = new DragImgUpload("#drop_area", {
//             callback: function(files) {
//                 //回调函数，可以传递给后台等等
//                 var file = files[0];
//                 console.log(file.name);
//             }
//         })

//     })()


export default {



 
}
</script>

<style lang="scss" scoped>
// @import "../../assets/homeStatic/css/myImages.css";
@import "../../assets/homeStatic/layui/css/layui.css";
@import "../../assets/homeStatic/css/common.css";
@import "../../assets/homeStatic/css/index.css";

.dashboard {
  &-container {
    margin: 30px;
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}
</style>
