@layout("/layout/_container.html",{js:["/assets/modular/system/timers/timers.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">定时管理</span>
</div>

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-sm12 layui-col-md12 layui-col-lg12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-form toolbar">
                        <div class="layui-form-item">
                            <div class="layui-inline" aria-placeholder="任务名称">
                                <input id="timerName" class="layui-input" type="text" placeholder="任务名称"/>
                            </div>
                            <div class="layui-inline" aria-placeholder="状态">
                                <select id="jobStatus" lay-filter="type">
                                    <option value="">请选择</option>
                                    <option value="1">运行</option>
                                    <option value="2">停止</option>
                                </select>
                            </div>
                            <div class="layui-inline">
                                <button id="btnSearch" class="layui-btn icon-btn"><i class="layui-icon">&#xe615;</i>搜索</button>
                                <button id="btnAdd" class="layui-btn icon-btn"><i class="layui-icon">&#xe654;</i>添加</button>
                            </div>
                        </div>
                    </div>
                    <table class="layui-table" id="timerTable" lay-filter="timerTable"></table>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/html" id="tableBar">
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="edit">修改</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete">删除</a>
</script>

<script type="text/html" id="statusTpl">
    <input type="checkbox" lay-filter="status" value="{{d.timerId}}" lay-skin="switch" lay-text="运行|停止" {{d.jobStatus=='1'?'checked':''}}/>
</script>
@}