forked from github/dataease
Merge pull request #11551 from dataease/pr@dev-v2@perf_threshold_batch_reci
perf(X-Pack): 阈值告警批量设置接收人
This commit is contained in:
commit
cf7755e739
@ -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>
|
||||
|
@ -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,
|
||||
|
@ -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);
|
||||
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user