fix(测试跟踪): 首页空数据样式展示问题
This commit is contained in:
parent
a80224d119
commit
8d943d4245
|
@ -25,15 +25,20 @@ import io.metersphere.service.BaseCheckPermissionService;
|
|||
import io.metersphere.service.IssuesService;
|
||||
import io.metersphere.service.PlatformPluginService;
|
||||
import io.metersphere.service.issue.domain.zentao.ZentaoBuild;
|
||||
import io.metersphere.xpack.track.dto.*;
|
||||
import io.metersphere.xpack.track.dto.IssueTemplateDao;
|
||||
import io.metersphere.xpack.track.dto.IssuesDao;
|
||||
import io.metersphere.xpack.track.dto.PlatformStatusDTO;
|
||||
import io.metersphere.xpack.track.dto.PlatformUser;
|
||||
import io.metersphere.xpack.track.dto.request.IssuesRequest;
|
||||
import io.metersphere.xpack.track.dto.request.IssuesUpdateRequest;
|
||||
import org.apache.commons.collections.CollectionUtils;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
@RequestMapping("issues")
|
||||
|
@ -51,9 +56,14 @@ public class IssuesController {
|
|||
@RequiresPermissions(PermissionConstants.PROJECT_TRACK_ISSUE_READ)
|
||||
public Pager<List<IssuesDao>> list(@PathVariable int goPage, @PathVariable int pageSize, @RequestBody IssuesRequest request) {
|
||||
issuesService.setFilterIds(request);
|
||||
if (request.getThisWeekUnClosedTestPlanIssue() && CollectionUtils.isEmpty(request.getFilterIds())) {
|
||||
Page<List<Issues>> page = PageHelper.startPage(goPage, pageSize, true);
|
||||
return PageUtils.setPageInfo(page, Collections.EMPTY_LIST);
|
||||
} else {
|
||||
Page<List<Issues>> page = PageHelper.startPage(goPage, pageSize, true);
|
||||
return PageUtils.setPageInfo(page, issuesService.list(request));
|
||||
}
|
||||
}
|
||||
|
||||
@PostMapping("/dashboard/list/{goPage}/{pageSize}")
|
||||
@RequiresPermissions(PermissionConstants.PROJECT_TRACK_ISSUE_READ)
|
||||
|
|
|
@ -86,7 +86,9 @@ export default {
|
|||
},
|
||||
axisTick: {
|
||||
show: false
|
||||
}
|
||||
},
|
||||
min: 0,
|
||||
max: data.length === 0 ? 40 : null
|
||||
},
|
||||
grid: {
|
||||
left: 0,
|
||||
|
|
|
@ -57,7 +57,7 @@
|
|||
min-width="100px"/>
|
||||
<template #empty>
|
||||
<div
|
||||
style="width: 100%;height: 144px;display: flex;flex-direction: column;justify-content: center;align-items: center">
|
||||
style="width: 100%;height: 200px;display: flex;flex-direction: column;justify-content: center;align-items: center">
|
||||
<img style="height: 100px;width: 100px;margin-bottom: 8px"
|
||||
src="/assets/figma/icon_none.svg"/>
|
||||
<span class="addition-info-title">{{ $t("home.dashboard.public.no_data") }}</span>
|
||||
|
|
|
@ -60,7 +60,7 @@
|
|||
</el-table-column>
|
||||
<template #empty>
|
||||
<div
|
||||
style="width: 100%;height: 144px;display: flex;flex-direction: column;justify-content: center;align-items: center">
|
||||
style="width: 100%;height: 200px;display: flex;flex-direction: column;justify-content: center;align-items: center">
|
||||
<img style="height: 100px;width: 100px;margin-bottom: 8px"
|
||||
src="/assets/figma/icon_none.svg"/>
|
||||
<span class="addition-info-title">{{ $t("home.dashboard.public.no_data") }}</span>
|
||||
|
|
|
@ -75,7 +75,7 @@
|
|||
</el-table-column>
|
||||
<template #empty>
|
||||
<div
|
||||
style="width: 100%;height: 144px;display: flex;flex-direction: column;justify-content: center;align-items: center">
|
||||
style="width: 100%;height: 200px;display: flex;flex-direction: column;justify-content: center;align-items: center">
|
||||
<img style="height: 100px;width: 100px;margin-bottom: 8px"
|
||||
src="/assets/figma/icon_none.svg"/>
|
||||
<span class="addition-info-title">{{ $t("home.dashboard.public.no_data") }}</span>
|
||||
|
|
Loading…
Reference in New Issue