<!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-treeview.css">
    <link rel="stylesheet" href="../css/symrjk.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="symrcxjk">
                <div class="div-left">
                    <div class="div-xzml">
                        <input type="text" class="form-control input-pub" placeholder="请输入点位 回车搜索" v-model="searchText"
                               @keyup.enter="fastSearch" style="width: 260px;margin-left: 10px;margin-bottom: 9px;">
                        <div class="div-xzml-div" style="float:left;">
                            <img src="../img/sjcx/xzml.png">
                            <span>部门目录</span>
                        </div>
                        <div id="tree-monitor" style="height: calc(100% - 90px);float:left;width: 100%"></div>
                    </div>
                    <div class="div-right">
                        <div class="div-right-top">
                            <!--<span class="pub-span">监控名称：</span>-->
                            <!--<input type="text" class="form-control input-pub">-->
                            <!--<button type="button" class="btn btn-sm pub-btn">查询</button>-->
                            <button type="button" class="btn btn-sm pub-btn" @click="add_monitor()">新增默认监控</button>
                        </div>
                        <div style="height:calc(100% - 60px);margin-top: 20px;text-align: center" class="tables">
                            <table class="table table-td">
                                <thead>
                                <tr style="background-color: rgb(228, 228, 228);">
                                    <td>所属部门</td>
                                    <td>监控名称</td>
                                    <td>操作</td>
                                </tr>
                                </thead>
                                <tbody class="div-pub-gt">
                                <tr v-for="(item,index) in data_table_monitor">
                                    <td v-text="item.deptname"></td>
                                    <td v-text="item.videoname"></td>
                                    <td>
                                        <button type="button" class="btn btn-sm btn-danger"
                                                style="margin-left: 5px;margin-top: 0px;padding: 2px 7px;" @click="del(item)">删除
                                        </button>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="modal fade" id="myModal2" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <form onsubmit="return false;" class="form-horizontal" role="form" onkeydown="if(event.keyCode==13){return false;}">
        <div class="modal-dialog" role="document" style="width: 510px;">
            <div class="modal-content" style="color: #e6eaef;width: 510px;">
                <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" style="height:360px;">
                    <div style="width: 100%;float:left;">
                        <input type="text" class="form-control input-pub" placeholder="" disabled
                               style="width: 100%;margin-top: 0px;margin-bottom: 10px;" v-model="bmmc">
                        <input type="text" class="form-control input-pub" placeholder="请输入点位 回车搜索" v-model="searchText"
                               @keyup.enter="fastSearch" style="width: 100%;margin-top: 0px;">
                    </div>
                    <div class="div-xzml-div">
                        <img src="../img/sjcx/xzml.png">
                        <span>监控目录</span>
                    </div>
                    <div id="tree-xzxq"></div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-sm" data-dismiss="modal" style="color: #2f2f2f;">关闭</button>
                    <button type="button submit" class="btn btn-sm btn-info" style="background-color: #368ff3" @click="define">确定
                    </button>
                </div>
            </div>
        </div>
    </form>
</div>
</body>
<script src="../js/jquery-3.1.1.min.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="../js/vue.js"></script>
<script src="../js/util/http_util.js"></script>
<script src="../js/xtgl/symrjk.js"></script>
</html>