<!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="css/main.css">
    <title>中科视元交通事件视频报警平台</title>
</head>
<body>
<div class="container-index">
    <div class="top-nav">
        <img src="img/index/gh.png" class="gh-img">
        <span class="title">中科视元交通事件视频报警平台</span>
        <ul class="nav navbar-nav navbar-right admin">
            <li class="dropdown">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true"
                   aria-expanded="false"><span v-text="name"></span><span class="caret"></span></a>
                <ul class="dropdown-menu" style="min-width: 100px;">
                    <!--<li @click="xgmm"><a href="#">修改密码</a></li>-->
                    <li @click="logout"><a href="#">退出登录</a></li>
                </ul>
            </li>
        </ul>
    </div>
    <div class="bottom-nav">
        <ul class="nav nav-pills nav1" role="tablist">
            <li role="presentation" :class="['tab-pane',(index==num)?'active':'']"
                v-for="(item,index) in data_module" @click="change(index,$event,this,item)">
                <a :aria-controls=item.classname role="tab" data-toggle="tab"
                   style="color:#C4C4C4;">
                    <img :src="(index==0)?'img/title/1-1.png':imgsrc(index)" alt="">
                    <span v-text=item.name></span>
                </a>
            </li>
        </ul>
        <div class="tab-content kj">
            <iframe :src="src" frameborder="0" style="width: 100%;height: 100%;" id="iframes"></iframe>
            <!--<div role="tabpanel" :class="['tab-pane',(index==num)?'active':'']" :id=item.classname-->
            <!--v-for="(item,index) in data_module_new">-->
            <!--<iframe :src=item.html frameborder="0"></iframe>-->
            <!--</div>-->
        </div>
    </div>
</div>
<div class="modal fade" id="myModal_xgmm" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <form onsubmit="return false;" class="form-horizontal" role="form">
        <div class="modal-dialog" role="document" style="width: 410px;">
            <div class="modal-content" style="color: #e6eaef;width: 410px;">
                <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:135px;">
                    <table class="table table-td">
                        <tbody>
                        <tr>
                            <td>原密码:</td>
                            <td><input type="text" name="name" style="width:280px;" class="form-control"
                                       v-model="data_s.password_old"
                                       autocomplete="off" required></td>
                        </tr>
                        <tr>
                            <td>新密码:</td>
                            <td><input type="text" name="name" style="width:280px;" class="form-control"
                                       v-model="data_s.password_new"
                                       autocomplete="off" required  placeholder="6~20位" pattern="^[a-zA-Z0-9]\w{5,19}$" oninvalid="this.setCustomValidity('6~20字母数字或下划线');"oninput="setCustomValidity('')"></td>
                        </tr>
                        </tbody>
                    </table>
                </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="js/vue.js"></script>
<script src="js/util/http_util.js"></script>
<script src="js/main/main.js"></script>
</html>