DepartmentIndex.html 2.22 KB
<%include '../../common/__ui/header'%>

<%include '../../common/__partail/ListHeader'%>

<div class="contentpanel">
    <div class="panel panel-default" style="margin-bottom:10px;">
        <div class="panel-body" style="padding-bottom: 0">
            <a id="add-btn" href="javascript:;" class="btn btn-success"><i class="fa fa-plus"></i> 创建</a>
        </div>
        <div class="panel-body">
            <div class="row">
                <div class="panel-col">
                    <input type="number" id="sel-departmentId" class="form-control" placeholder="请输入部门ID" style="height: 39px;"/>
                </div>
                <div class="panel-col" id="departments"></div>

                <div class="panel-col">
                    <a id="filter-btn" href="javascript:;" class="btn btn-info">筛选</a>
                    <a id="all-btn" href="" class="btn btn-info">全部</a>
                </div>
            </div>
            </div>
        </div>
    </div>
    <div class="panel panel-primary-head">
        <div id="basicTable_wrapper" class="dataTables_wrapper no-footer">
            <div class="dataTables_length" id="basicTable">
            </div>
            <nav>
                <ul id="pagination" class="pagination pagination-lg"></ul>
            </nav>
        </div>
    </div>
</div>

<script type="text/template" id="template">
    <input type="hidden" name="department" value="[[department]]" id="department" class="form-control observe" data-field="department">
    <div class="form-group">
        <label  class="col-sm-2 control-label">部门名称<span style="color: red;"> *</span></label>
        <div class="col-sm-10">
            <input type="text" id="departmentName" value="[[departmentName]]" class="form-control observe" placeholder="部门名称" required="required" data-field="departmentName" >
        </div>
    </div>

</script>
<script type="text/template" id="search-department">
    <select id="choose-department" title="" class=" select2-offscreen form-control">
        <option value="-1">申请部门</option>
        [[each data as item index]]
        <option value="[[item.department]]">[[item.departmentName]]</option>
        [[/each]]
    </select>
</script>
<%include '../../common/__ui/footer'%>