|
@@ -82,13 +82,13 @@
|
|
|
<!-- Main Content -->
|
|
|
<div class="content-wrapper" style="min-height: 691px;">
|
|
|
<section class="content-header">
|
|
|
- <h1>全部应用</h1>
|
|
|
+ <h1>主页</h1>
|
|
|
|
|
|
<ol class="breadcrumb">
|
|
|
<li class="active">
|
|
|
<a href="/home">
|
|
|
<i class="fa fa-dashboard"></i>
|
|
|
- 全部应用
|
|
|
+ 主页
|
|
|
</a>
|
|
|
</li>
|
|
|
</ol>
|
|
@@ -96,66 +96,76 @@
|
|
|
|
|
|
<!-- Main Content -->
|
|
|
<section class="content container-fluid">
|
|
|
- <!-- <div id="task-list-search" class="input-group col-md-6">
|
|
|
- <input type="text" class="form-control" placeholder="Search for application">
|
|
|
- <span class="input-group-btn">
|
|
|
- <button class="btn btn-default" type="button" id="task-search-btn">Search</button>
|
|
|
- </span>
|
|
|
- </div> -->
|
|
|
-
|
|
|
- <table id="task-list" class="table table-striped text-center" style="margin-top: 10px">
|
|
|
- <thead><tr>
|
|
|
- <!--<th></th>-->
|
|
|
- <th>测试序号(考试号)</th>
|
|
|
- <th>任务序号(题号)</th>
|
|
|
- <th>应用名</th>
|
|
|
- <!--<th>版本</th>-->
|
|
|
- <th>审核状态</th>
|
|
|
- <!--<th>开始时间</th>-->
|
|
|
- <!--<th>结束时间</th>-->
|
|
|
- <th>审核进度</th>
|
|
|
- <th>未审核数</th>
|
|
|
- </tr></thead>
|
|
|
- <tbody>
|
|
|
- <th:block th:each="task : ${tasks}">
|
|
|
-
|
|
|
- <tr>
|
|
|
- <!--<td><img th:src="${task.icon}" style="width: 25px; height: 25px;" /></td>-->
|
|
|
- <td><span class="label label-info" th:text="${task.examId}"></span></td>
|
|
|
- <td><span class="label label-info" th:text="${task.caseId}">题号</span></td>
|
|
|
- <td><b><a th:href="'/task_detail?examId=' + ${task.examId} + '&caseId=' + ${task.caseId}" id="task-name" th:text="${task.name}">{{ task.name }}</a></b></td>
|
|
|
- <!--<td th:text="${task.version}"></td>-->
|
|
|
- <td th:if="${task.numOfUndeal > 0}"><span class="label label-info">审核中</span></td>
|
|
|
- <td th:if="${task.numOfUndeal == 0}"><span class="label label-success">审核结束</span></td>
|
|
|
- <!--<td th:text="${task.startTime}">{{ task.print_start_time }}</td>-->
|
|
|
- <!--<td th:text="${task.endTime}">{{ task.print_end_time }}</td>-->
|
|
|
- <td style="width: 200px;">
|
|
|
- <a th:href="'/task_detail?examId=' + ${task.examId} + '&caseId=' + ${task.caseId}">
|
|
|
- <div class="progress">
|
|
|
- <div class="progress-bar progress-bar-success progress-bar-striped" role="progressbar"
|
|
|
- th:if="${task.numOfTotalBug!=0}"
|
|
|
- th:style="'width: ' + ${(1 - task.numOfUndeal*1.0/task.numOfTotalBug) * 100}+'%'"
|
|
|
- data-placement="bottom" data-toggle="tooltip" th:title="|${task.numOfTotalBug - task.numOfUndeal}份报告已经被审核|">
|
|
|
- </div>
|
|
|
- <div class="progress-bar progress-bar-danger progress-bar-striped" role="progressbar"
|
|
|
- th:if="${task.numOfTotalBug!=0}"
|
|
|
- th:style="'width: ' + ${(task.numOfUndeal*1.0/task.numOfTotalBug) * 100}+'%'"
|
|
|
- data-placement="bottom" data-toggle="tooltip" th:title="|${task.numOfUndeal}份报告还未被审核|">
|
|
|
- </div>
|
|
|
- <div class="progress-bar progress-bar-danger progress-bar-striped" role="progressbar"
|
|
|
- th:if="${task.numOfTotalBug==0}"
|
|
|
- style="width: 100%"
|
|
|
- data-placement="bottom" data-toggle="tooltip" th:title="|该任务没有报告|">
|
|
|
- </div>
|
|
|
-
|
|
|
- </div>
|
|
|
- </a>
|
|
|
- </td>
|
|
|
- <td><span class="badge"><a th:href="'/task_detail?examId=' + ${task.examId} + '&caseId=' + ${task.caseId}" style="color: #fff;" th:text="${task.numOfUndeal}"></a></span></td>
|
|
|
- </tr>
|
|
|
- </th:block>
|
|
|
- </tbody>
|
|
|
- </table><!-- table -->
|
|
|
+
|
|
|
+ <div class="row">
|
|
|
+ <div class="col-md-6">
|
|
|
+
|
|
|
+ <div class="box">
|
|
|
+ <div class="box-header">
|
|
|
+ <h3 class="box-title">最近的众测任务</h3>
|
|
|
+ </div>
|
|
|
+ <!-- /.box-header -->
|
|
|
+ <div class="box-body no-padding">
|
|
|
+ <table class="table table-striped" style="text-align: center;">
|
|
|
+ <tr>
|
|
|
+ <th style="text-align: center;">测试序号(考试号)</th>
|
|
|
+ <th style="text-align: center;">任务序号(题号)</th>
|
|
|
+ <th style="text-align: center;">应用名</th>
|
|
|
+ </tr>
|
|
|
+ <th:block th:each="task : ${tasks}">
|
|
|
+
|
|
|
+ <tr>
|
|
|
+ <!--<td><img th:src="${task.icon}" style="width: 25px; height: 25px;" /></td>-->
|
|
|
+ <td><span class="label label-info" th:text="${task.examId}"></span></td>
|
|
|
+ <td><span class="label label-info" th:text="${task.caseId}">题号</span></td>
|
|
|
+ <td><b><a th:href="'/task_detail?examId=' + ${task.examId} + '&caseId=' + ${task.caseId}" id="task-name-name" th:text="${task.name}">{{ task.name }}</a></b></td>
|
|
|
+ <!--<td th:text="${task.version}"></td>-->
|
|
|
+
|
|
|
+ </tr>
|
|
|
+ </th:block>
|
|
|
+
|
|
|
+ </table>
|
|
|
+
|
|
|
+
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="col-md-6">
|
|
|
+
|
|
|
+ <div class="box">
|
|
|
+ <div class="box-header">
|
|
|
+ <h3 class="box-title">最近的众审任务</h3>
|
|
|
+ </div>
|
|
|
+ <!-- /.box-header -->
|
|
|
+ <div class="box-body no-padding">
|
|
|
+ <table class="table table-striped" style="text-align: center;">
|
|
|
+ <tr>
|
|
|
+ <th style="text-align: center;">测试序号(考试号)</th>
|
|
|
+ <th style="text-align: center;">任务序号(题号)</th>
|
|
|
+ <th style="text-align: center;">应用名</th>
|
|
|
+ </tr>
|
|
|
+ <th:block th:each="task : ${jobs}">
|
|
|
+ <tr>
|
|
|
+ <td><b><a th:href="'/review/jobDetail?id='+${task.get('id')}" th:text="${task.get('name')}"></a></b></td>
|
|
|
+ <!--<td><img th:src="${task.icon}" style="width: 25px; height: 25px;" /></td>-->
|
|
|
+ <td>
|
|
|
+ <span th:if="${task.get('group').equals('') and task.get('exam_id').equals('')}" class="label label-warning" >暂无</span>
|
|
|
+ <span th:if="${task.get('group').equals('') and !task.get('exam_id').equals('')}" class="label label-info" >企业版</span>
|
|
|
+ <span th:if="${task.get('exam_id').equals('') and !task.get('group').equals('') }" class="label label-success" >教育版</span>
|
|
|
+ </td>
|
|
|
+ <!-- <td><span class="label label-info" th:text="${task.caseId}">题号</span></td>-->
|
|
|
+
|
|
|
+ <td><span class=" " th:if="${task.get('create_time')!=null}" th:text="${#dates.format(task.get('create_time'),'yyyy-MM-dd HH:mm:ss')} " ></span></td>
|
|
|
+ </tr>
|
|
|
+ </th:block>
|
|
|
+ </table>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+
|
|
|
</section>
|
|
|
</div>
|
|
|
</div>
|