人人商城

job.html 1.4KB

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