job.html 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. {template 'common/header'}
  2. <!-- <ul class="we7-page-tab">
  3. <li><a href="{php echo url('utility/job/display');}">任务列表</a></li>
  4. </ul> -->
  5. <div class="clearfix" ng-controller="we7job-base-controller" id="we7job">
  6. <div class="pull-right we7-margin-bottom" >
  7. <a class="btn btn-primary" href="{php echo url('system/job/clear')}">清除已完成任务</a>
  8. </div>
  9. <table class="table we7-table table-hover">
  10. <tr>
  11. <th>任务ID</th>
  12. <th>任务名称</th>
  13. <th>任务进度</th>
  14. <th>操作</th>
  15. </tr>
  16. <tr ng-repeat="$item in list">
  17. <td>{{$item.id}}</td>
  18. <td>{{$item.title}}</td>
  19. <td>
  20. <div class="progress">
  21. <div class="progress-bar" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: {{$item.progress}}%;">
  22. {{$item.progress}}%
  23. </div>
  24. </div>
  25. </td>
  26. <td>
  27. <a type="button" class="button btn-primary" ng-click="start($item)">
  28. <span ng-if="$item.status == 0">{{!$item.start ? '开始' : '暂停'}}</span>
  29. <span ng-if="$item.status == 1">完成</span>
  30. </a>
  31. </td>
  32. </tr>
  33. </table>
  34. <div class="text-right">
  35. {$pager}
  36. </div>
  37. </div>
  38. <script type="text/javascript">
  39. angular.module('we7job').value('config',{
  40. "list": {php echo json_encode($list)},
  41. "jobid" : '{$jobid}',
  42. });
  43. angular.bootstrap('#we7job', ['we7job']);
  44. </script>
  45. {template 'common/footer'}