Merge pull request #11551 from dataease/pr@dev-v2@perf_threshold_batch_reci

perf(X-Pack): 阈值告警批量设置接收人
This commit is contained in:
fit2cloud-chenyw 2024-08-14 15:08:29 +08:00 committed by GitHub
commit cf7755e739
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 25 additions and 6 deletions

View File

@ -35,6 +35,9 @@ const handleListeners = () => {
const toggleRowSelection = row => {
table.value.toggleRowSelection(row, true)
}
const toggleAllSelection = () => {
table.value.toggleAllSelection()
}
const clearSelection = () => {
table.value.clearSelection()
}
@ -111,6 +114,7 @@ watch(
defineExpose({
toggleRowSelection,
clearSelection,
toggleAllSelection,
multipleSelectionAll
})
</script>

View File

@ -223,6 +223,7 @@ import emailTask from '@/assets/svg/email-task.svg'
import embedded from '@/assets/svg/embedded.svg'
import association from '@/assets/svg/association.svg'
import threshold from '@/assets/svg/threshold.svg'
import threshold_full from '@/assets/svg/threshold_full.svg'
import example from '@/assets/svg/example.svg'
import exclamationmark from '@/assets/svg/exclamationmark.svg'
import exclamationmark2 from '@/assets/svg/exclamationmark2.svg'
@ -893,6 +894,7 @@ const iconMap = {
embedded: embedded,
association: association,
threshold: threshold,
threshold_full,
example: example,
exclamationmark: exclamationmark,
exclamationmark2: exclamationmark2,

View File

@ -2,13 +2,9 @@ package io.dataease.api.threshold;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.github.xiaoymin.knife4j.annotations.ApiSupport;
import io.dataease.api.threshold.dto.ThresholdBatchReciRequest;
import io.dataease.api.threshold.dto.ThresholdCreator;
import io.dataease.api.threshold.dto.ThresholdGridRequest;
import io.dataease.api.threshold.dto.ThresholdSwitchRequest;
import io.dataease.api.threshold.dto.*;
import io.dataease.api.threshold.vo.ThresholdGridVO;
import io.dataease.api.threshold.vo.ThresholdInstanceVO;
import io.dataease.model.KeywordRequest;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
@ -65,6 +61,6 @@ public interface ThresholdApi {
@Parameter(name = "request", description = "过滤条件", required = true)
})
@PostMapping("/instancePager/{goPage}/{pageSize}")
IPage<ThresholdInstanceVO> instancePager(@PathVariable("goPage") int goPage, @PathVariable("pageSize") int pageSize, @RequestBody KeywordRequest request);
IPage<ThresholdInstanceVO> instancePager(@PathVariable("goPage") int goPage, @PathVariable("pageSize") int pageSize, @RequestBody ThresholdInstanceRequest request);
}

View File

@ -0,0 +1,17 @@
package io.dataease.api.threshold.dto;
import io.dataease.model.KeywordRequest;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serial;
import java.io.Serializable;
@EqualsAndHashCode(callSuper = true)
@Data
public class ThresholdInstanceRequest extends KeywordRequest implements Serializable {
@Serial
private static final long serialVersionUID = 7146083160815300271L;
private Long thresholdId;
}