<div class="row rt-margin-bottom-before-box">
    <div col-sm-8>
        <button class="btn btn-link" ng-click="vm.actions.refresh()">
                    <i class="fa fa-refresh"></i> 刷新
                </button>
    </div>
    <div class="col-sm-4">

    </div>
</div>
<div class="box box-primary">
    <div class="box-header with-border">
        <h3 class="box-title">筛选</h3>
        <div class="box-tools pull-right">
            <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
                </button>
        </div>
    </div>
    <form class="form-horizontal">
        <div class="box-body">
            <div class="form-group">
                <rt-input rt-type="text" rt-title="参数" rt-label-col="1" rt-col="2" ng-model="vm.paramList"></rt-input>
            </div>
        </div>
    </form>
</div>

<div class="nav-tabs-custom">
    <div class="tab-content">
        <table class="table table-hover table-responsive">
            <thead>
                <tr>
                    <th>作业</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>
                <tr ng-repeat="row in vm.data">
                    <td>
                        <!--调度：{{row.SCHED_NAME}}-->
                        名称：{{row.JOB_GROUP}} / {{row.JOB_NAME}} <br /> 描述：{{row.DESCRIPTION}} <br /> 动作：{{row.JOB_CLASS_NAME}}
                        <br /> 规则：{{row.TRIG}} <br /> 开始：{{row.START_TIME}} <br /> 上次：{{row.PREV_FIRE_TIME}} <span ng-if="row.run_result">- {{row.run_result}}</span>                        <br /> 下次：{{row.NEXT_FIRE_TIME}} <br /> 状态：
                        <span ng-if="row.TRIGGER_STATE == 'WAITING'">等待</span>
                        <span ng-if="row.TRIGGER_STATE == 'PAUSED'">暂停</span>
                        <span ng-if="row.TRIGGER_STATE == 'ACQUIRED'">正常执行</span>
                        <span ng-if="row.TRIGGER_STATE == 'BLOCKED'">阻塞</span>
                        <span ng-if="row.TRIGGER_STATE == 'ERROR'">错误</span>
                        <span ng-if="row.TRIGGER_STATE == 'COMPLETE'">完成</span>
                        <span ng-if="row.TRIGGER_STATE != 'WAITING' && row.TRIGGER_STATE != 'PAUSED' && row.TRIGGER_STATE != 'ACQUIRED' && row.TRIGGER_STATE != 'BLOCKED' && row.TRIGGER_STATE != 'ERROR' && row.TRIGGER_STATE != 'COMPLETE'">{{row.TRIGGER_STATE}}</span>
                    </td>
                    <td>
                        <button type="button" class="btn btn-default" ng-click="vm.actions.log(row)">日志</button>
                        <button type="button" class="btn btn-default" ng-click="vm.actions.pause(row)" ng-if="row.TRIGGER_STATE != 'PAUSED' && row.TRIGGER_STATE != 'PAUSED_BLOCKED'">暂停</button>
                        <button type="button" class="btn btn-default" ng-click="vm.actions.resume(row)" ng-if="row.TRIGGER_STATE == 'PAUSED' || row.TRIGGER_STATE == 'PAUSED_BLOCKED'">继续</button>
                        <!--<button type="button" class="btn btn-default" ng-click="vm.actions.reschedule(row)">重新调度</button>-->
                        <button type="button" class="btn btn-default" ng-click="vm.actions.runonce(row)">运行一次</button>
                        <button type="button" class="btn btn-danger" ng-click="vm.actions.deletejob(row)" ng-if="row.TRIGGER_STATE == 'ERROR'">移除</button>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
</div>