<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="../bootstrap/css/bootstrap.css">
    <link rel="stylesheet" href="../bootstrap/css/bootstrap-datetimepicker.css">
    <link rel="stylesheet" href="../bootstrap/css/bootstrap-select.css">
    <link rel="stylesheet" href="../bootstrap/css/bootstrap-treeview.css">
    <link rel="stylesheet" href="../bootstrap/css/bootstrap-switch.min.css">
    <link rel="stylesheet" href="../css/gcjl.css">
    <link rel="stylesheet" href="../css/photoviewer.css">
    <!--<link rel="stylesheet" href="../css/viewer.min.css">-->
    <title>工程记录</title>
</head>
<body>
<div id="page-sy">
    <div class="right-nav">
        <div class="tab-content content-sjfx">
            <div role="tabpanel" class="tab-pane active" id="sjcx">
                <div class="div-left">
                    <div class="div-xzml">
                        <!--<span class="xzxq">行政辖区</span>-->
                        <input type="text" class="form-control input-pub" placeholder="请输入点位 回车搜索" v-model="searchText"
                               style="width: calc(100% - 20px);margin-left: 10px;margin-bottom: 10px;" @keyup.enter="fastSearch">
                        <div class="div-xzml-div">
                            <img src="../img/sjcx/xzml.png">
                            <span>监控目录</span>
                        </div>
                        <div id="tree-xzxq1" style="height: calc(100% - 80px);overflow-x: auto;float: left;width: 100%;"></div>
                    </div>
                    <div id="sjcx_s" class="div-right">
                        <div class="div-right-top">
                            <span class="pub-span">告警时间：</span>
                            <input type="text" class="form-control input-pub" id="kssj" style="width: 300px;" placeholder="请选择开始时间至结束时间">
                            <span class="pub-span">车辆类型</span>
                            <select class="form-control selectpicker" multiple v-model="cllx_select" id="cllxs">
                                <option v-for="(item,index) in arr_cllx" :value="item.id"
                                        v-text="item.value"></option>
                            </select>
                            <span class="pub-span" style="margin-left: 10px;">处理状态</span>
                            <select class="form-control selectpicker" multiple v-model="clzt_select">
                                <option value="0">未处理</option>
                                <option value="1">正检</option>
                                <option value="2">误检</option>
                                <option value="2">重复事件</option>
                            </select>
                            <span class="pub-span" style="margin-left: 10px;">是否纠偏</span>
                            <select class="form-control selectpicker" v-model="clzt_select1">
                                <option value="2">全部</option>
                                <option value="1">是</option>
                                <option value="0">否</option>
                            </select>
                            <span class="pub-span" style="margin-left: 10px;">自动刷新</span>
                            <input type="checkbox" id="push" @click="zdsx" style="width: 17px;height: 17px;margin-top: 16px;float: left;"/>
                            <span class="glyphicon glyphicon-th-list table-class"
                                  :style="{'color':!show?'#368ff3 !important':''}" @click="qh_tab(1)"></span>
                            <span class="glyphicon glyphicon-th table-class"
                                  :style="{'color':show?'#368ff3 !important':''}" @click="qh_tab(2)"></span>
                        </div>
                        <div>
                            <span style="float:left;line-height: 52px;margin-right: 10px;">事件类型：</span>
                            <ul class="nav nav-pills " role="tablist">
                                <li role="presentation" :class="['tab-pane',(index==num)?'active':'']"
                                    v-for="(item,index) in data_sjlxs" @click="change(item,index)">
                                    {{item.name}}
                                </li>
                            </ul>
                            <button type="button" class="btn btn-sm pub-btn" style="margin-left: 20px;float: left;" @click="getChange()">查询</button>
                        </div>
                        <div style="height:calc(100% - 164px);margin-top: 20px;" class="tables">
                            <ul class="div-ul div-pub-gt" v-if="show">
                                <li v-for="(item,index) in data_table_wfpz">
                                    <div style="position: absolute;right: 12px;top: 7px;border: 1px solid #e0e0e0;width: 18px;height: 18px;">
                                        <input type="checkbox" name="loginName" class="loginName" :value="item.recordid+'|'+item.channelid+'|'+item.fdid+'|'+item.recordtime+'|'+item.recordtype" @click="cli_input" style="width: 17px;height: 17px;margin-top: 0px;">
                                    </div>
                                    <div class="show-icon" :style="{'background':(item.processstatus==0||item.processstatus==null)?'#ff9c2b':(item.processstatus==2)?'#fc3939':(item.processstatus==1)?'#2fba08':'#cccccc'}" v-text="item.processstatus==0||item.processstatus==null?'未处理':item.processstatus==1?'正检':item.processstatus==2?'误检':'重复事件'"></div>
                                    <div class="li-top">
                                        <img :src="'/TrafficStatistics/fielagent?ftpPath='+item.img1path">
                                    </div>
                                    <div class="li-center">
                                        <div>
                                            <span class="lx-span" v-text="item.recordname"></span>
                                        </div>
                                        <div>
                                            <span>告警时间：</span>
                                            <span v-text="item.recordtime"></span>
                                        </div>
                                        <div>
                                            <span>通道名称：</span>
                                            <span v-text="item.tdmc"></span>
                                        </div>
                                        <div>
                                            <span>辖区名称：</span>
                                            <span v-text="item.xzmc"></span>
                                        </div>
                                        <div v-show="item.objlablename==''||item.objlablename==null?false:true">
                                            <span>车辆类型：</span>
                                            <span v-text="item.objlablename"></span>
                                        </div>
                                        <div v-show="item.rectificationtype=='1'?true:false">
                                            <span>是否纠偏：</span>
                                            <span v-text="item.rectificationtype=='1'?'是':'否'"></span>
                                        </div>
                                    </div>
                                    <div class="li-bottom">
                                        <img src="../img/sjcx/lssp.png" v-show="item.videopath==null?false:true">
                                        <span @click="xq(item)">详情</span>
                                    </div>
                                </li>
                            </ul>
                            <table v-if="!show" class="table table-td">
                                <thead>
                                <tr style="background-color: rgb(228, 228, 228);">
                                    <td>告警类型</td>
                                    <td>告警时间</td>
                                    <td>通道名称</td>
                                    <td>辖区名称</td>
                                    <td>操作</td>
                                </tr>
                                </thead>
                                <tbody class="div-pub-gt">
                                <tr v-for="(item,index) in data_table_wfpz">
                                    <td v-text="item.recordname"></td>
                                    <td v-text="item.recordtime"></td>
                                    <td v-text="item.tdmc"></td>
                                    <td v-text="item.xzmc"></td>
                                    <td>
                                        <img src="../img/sjcx/lssp.png" style="width: 20px;" v-show="item.videopath==null?false:true">
                                        <button type="button" class="btn btn-sm pub-btn"
                                                style="margin-left: 5px;margin-top: 0px;padding: 2px 7px;">详情
                                        </button>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="div-right-buttom">
                            <div style="line-height: 64px;float: left;font-weight: 900;">
                                <span>共</span><span style="color: red;" v-text="count"></span><span>条</span>
                            </div>
                            <ul id="fy4" style="float: right;"></ul>
                            <div style="float: right;margin-top: 21px;margin-right: 30px;width: 111px;line-height: 36px;font-weight: 900;">
                                <span style="float: left;width: 34px;">每页</span>
                                <select class="form-control selectpicker" v-model="fy_select" style="width: 50px;padding: 0px 3px;float: left;"v-on:change="getChange()">
                                    <option>10</option>
                                    <option>20</option>
                                    <option>30</option>
                                    <option>40</option>
                                    <option>50</option>
                                </select>
                                <span style="float: left;margin-left: 8px;">条</span>
                            </div>
                        </div>
                        <div class="state_div" v-show="show_nums">
                            <button type="button" class="btn btn-sm btn1" id="all">全选</button>
                            <button type="button" class="btn btn-sm btn1" id="unall">取消</button>
                            <span v-text="'已选择'+state_arr.length+'项'"></span>
                            <button type="button" class="btn btn-sm btn2" @click="state_cli(3)">重复事件</button>
                            <button type="button" class="btn btn-sm btn3" @click="state_cli(2)">误检</button>
                            <button type="button" class="btn btn-sm btn4" @click="state_cli(1)">正检</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<!--事件实时提醒弹出框-->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document" style="width: 650px;">
        <div class="modal-content" style="color: #e6eaef;width: 650px;">
            <div class="modal-header" style="background-color: rgb(48, 53, 72);">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                        aria-hidden="true" style="color: white;">&times;</span></button>
                <h6 class="modal-title">事件详细信息
                </h6>
            </div>
            <div class="modal-body">
                <div>
                    <div class="top-video">
                        <video id="my_video_1" class="video-js" controls preload="auto" width="480" height="280"
                               ref='video' v-show="show_s" style="object-fit: fill;width: 100%;height: 100%;" :src="video_src">
                        </video >
                        <img :src="img_src_s" v-show="!show_s" style="width: 100%;height: 100%;cursor: zoom-in;" data-gallery="manual">
                    </div>
                    <div class="pub-div" v-show="!show_s">
                        <div class="div-img" style="width: 100%;">
                            <img v-for="(item,index) in data_wfsp" :src="item.src" @click="click_img_bf(item.src)">
                        </div>
                    </div>
                    <div class="pub-div">
                        <button type="button" class="btn btn-sm" v-bind:class=class_s @click="sp_qh(1)">事件图片
                        </button>
                        <button type="button" class="btn btn-sm" v-bind:class=class_s1 @click="sp_qh(2)" v-show="data_sj.videopath==null?false:true">事件视频</button>
                    </div>
                    <div style="color: #5d5d5d;" class="pub-div">
                        <div class="gjlx">
                            <span v-text="data_sj.recordname"></span>
                        </div>
                        <div class="pub-div-span">
                            <span>报警时间：</span>
                            <span v-text="data_sj.recordtime"></span>
                        </div>
                        <div class="pub-div-span">
                            <span>辖区编号：</span>
                            <span v-text="data_sj.areaid"></span>
                        </div>
                        <div class="pub-div-span">
                            <span>辖区名称：</span>
                            <span v-text="data_sj.xzmc"></span>
                        </div>
                        <div class="pub-div-span">
                            <span>通道编号：</span>
                            <span v-text="data_sj.fdid+'_'+data_sj.channelid"></span>
                        </div>
                        <div class="pub-div-span">
                            <span>通道名称：</span>
                            <span v-text="data_sj.tdmc"></span>
                        </div>
                    </div>
                </div>
            </div>
            <div class="modal-footer" style="border-top:none;">
                <button type="button" class="btn btn-sm" data-dismiss="modal" style="color: #2f2f2f;">关闭</button>
            </div>
        </div>
    </div>
</div>

</body>
<script src="../js/jquery-3.1.1.min.js"></script>
<!--<script src="../js/viewer.min.js"></script>-->
<script src="../js/util/photoviewer.js"></script>
<script src="../bootstrap/js/bootstrap.js"></script>
<script src="../bootstrap/js/bootstrap-paginator.js"></script>
<script src="../bootstrap/js/bootstrap-treeview.js"></script>
<script src="../bootstrap/js/bootstrap-select.js"></script>
<script src="../bootstrap/js/bootstrap-switch.min.js"></script>
<script src="../bootstrap/js/bootstrap-datetimepicker.js"></script>
<script src="../bootstrap/js/bootstrap-datetimepicker.zh-CN.js"></script>
<script src="../js/laydate/laydate.js"></script>
<script src="../js/vue.js"></script>
<script src="../js/util/http_util.js"></script>
<script src="../js/sjcx/gcjl.js"></script>
</html>