<!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-select.css">
    <link rel="stylesheet" href="../css/sjdj.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-right">
                        <div class="div-right-top">
                            <button type="button" class="btn btn-sm pub-btn" @click="add_sjlx()" style="margin-left: 0px">新增事件等级</button>
                            <select class="form-control selectpicker" v-model="clzt_select" id="sjlxsss" title="请选择">
                                <option value="">请选择</option>
                                <option value="1">一级</option>
                                <option value="2">二级</option>
                                <option value="3">三级</option>
                            </select>
                        </div>
                        <div style="height:calc(100% - 60px);margin-top: 10px;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>
                                    <td>操作</td>
                                </tr>
                                </thead>
                                <tbody class="div-pub-gt">
                                <tr v-for="(item,index) in data_sjdj">
                                    <td v-text="index+1"></td>
                                    <td v-text="item.name"></td>
                                    <td v-text="item.alarmlevel=='1'?'一级':item.alarmlevel=='2'?'二级':item.alarmlevel=='3'?'三级':''"></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 class="form-group">
                        <label class="col-sm-3 control-label">等级</label>
                        <div class="col-sm-9">
                            <select class="form-control selectpicker" v-model="clzt_select1" id="dj" required title="请选择">
                                <option value="1">一级</option>
                                <option value="2">二级</option>
                                <option value="3">三级</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">事件类型</label>
                        <div class="col-sm-9">
                            <select class="form-control selectpicker" multiple v-model="cllx_select" id="cllxs" required title="请选择">
                                <option v-for="(item,index) in arr_cllx" :value="item.id"
                                        v-text="item.value"></option>
                            </select>
                        </div>
                    </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="../bootstrap/js/bootstrap-select.js"></script>
<script src="../js/vue.js"></script>
<script src="../js/util/http_util.js"></script>
<script src="../js/xtgl/sjdj.js"></script>
</html>