perf(X-Pack): 优化定时报告

This commit is contained in:
fit2cloud-chenyw 2024-05-11 18:30:01 +08:00
parent 526bf6c5cb
commit a39b32a6fe
10 changed files with 23 additions and 4 deletions

View File

@ -53,6 +53,7 @@ defineExpose({
<style lang="less" scope>
.filter {
display: flex;
align-items: center;
min-height: 46px;
> :nth-child(1) {
@ -84,7 +85,7 @@ defineExpose({
border-radius: 2px;
cursor: pointer;
display: inline-block;
margin-bottom: 12px;
// margin-bottom: 12px;
}
.active,

View File

@ -70,6 +70,7 @@ defineExpose({
<style lang="less" scope>
.filter {
display: flex;
align-items: center;
min-height: 46px;
> :nth-child(1) {

View File

@ -84,6 +84,7 @@ defineExpose({
<style lang="less" scope>
.filter {
display: flex;
align-items: center;
min-height: 32px;
> :nth-child(1) {
@ -94,7 +95,7 @@ defineExpose({
line-height: 24px;
white-space: nowrap;
width: 116px;
margin-top: 5px;
// margin-top: 5px;
}
.filter-item {

View File

@ -99,6 +99,7 @@ defineExpose({
<style lang="less" scope>
.filter {
display: flex;
align-items: center;
min-height: 46px;
> :nth-child(1) {

@ -1 +1 @@
Subproject commit b61bcfc7325c5d9a1f30564d27dab3f098ac228c
Subproject commit 1873d99322c5d78bd08b3b13588c32f92407df3f

View File

@ -46,6 +46,10 @@ public interface ReportApi {
@PostMapping("/stop/{taskId}")
void stopNow(@PathVariable("taskId") Long taskId);
@Operation(summary = "启用")
@PostMapping("/start/{taskId}")
void start(@PathVariable("taskId") Long taskId);
@Operation(summary = "删除")
@PostMapping("/delete")
void delete(@RequestBody List<Long> taskIdList);
@ -68,6 +72,6 @@ public interface ReportApi {
@PostMapping("/deleteLog")
void deleteInstance(@RequestBody ReportInstanceDelRequest request);
@GetMapping("/logMsg")
@PostMapping("/logMsg")
String logMsg(@RequestBody ReportInstanceMsgRequest request);
}

View File

@ -13,4 +13,6 @@ public class ReportInstanceDelRequest implements Serializable {
private Long instanceId;
private Integer timeFlag;
private Long taskId;
}

View File

@ -18,4 +18,6 @@ public class ReportInstanceRequest implements Serializable {
private List<Long> timeList;
private String keyword;
private Boolean timeDesc;
}

View File

@ -1,5 +1,7 @@
package io.dataease.api.report.vo;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import java.io.Serial;
@ -10,6 +12,7 @@ public class ReportInstanceVO implements Serializable {
@Serial
private static final long serialVersionUID = -7845204306008848053L;
@JsonSerialize(using= ToStringSerializer.class)
private Long id;
private String name;

View File

@ -181,4 +181,8 @@ public interface UserApi {
@Hidden
@GetMapping("/getRecipient")
List<Map<String, Object>> getRecipient(@RequestBody UserReciRequest request);
@Hidden
@GetMapping("/orgAdmin")
boolean orgAdmin();
}