2026-03-27 17:47:09 +08:00
|
|
|
|
<template>
|
|
|
|
|
|
<div class="filter-header">
|
|
|
|
|
|
<div class="filter-container">
|
|
|
|
|
|
<span class="filter-item active">本轮</span>
|
|
|
|
|
|
<div class="date-range-wrapper">
|
|
|
|
|
|
<el-date-picker
|
|
|
|
|
|
v-model="dateRange"
|
|
|
|
|
|
type="daterange"
|
|
|
|
|
|
range-separator="-"
|
|
|
|
|
|
start-placeholder="开始时间"
|
|
|
|
|
|
end-placeholder="结束时间"
|
|
|
|
|
|
size="small"
|
|
|
|
|
|
popper-class="dark-date-picker"
|
|
|
|
|
|
:prefix-icon="Calendar"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2026-03-31 18:10:34 +08:00
|
|
|
|
<!-- <img class="filter-icon-ai" src="../../assets/RiskWarning_img/AI1@2x.png" alt="" @click="handleAIClick" /> -->
|
2026-03-27 17:47:09 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script setup>
|
|
|
|
|
|
import { ref } from "vue";
|
|
|
|
|
|
import { Calendar } from "@element-plus/icons-vue";
|
|
|
|
|
|
|
2026-03-30 10:57:32 +08:00
|
|
|
|
const emit = defineEmits(["openAIResult"]);
|
|
|
|
|
|
|
2026-03-27 17:47:09 +08:00
|
|
|
|
const dateRange = ref([]);
|
2026-03-30 10:57:32 +08:00
|
|
|
|
|
|
|
|
|
|
const handleAIClick = () => {
|
|
|
|
|
|
emit("openAIResult");
|
|
|
|
|
|
};
|
2026-03-27 17:47:09 +08:00
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
2026-03-30 10:57:32 +08:00
|
|
|
|
// 视频屏幕自适应 - 基于视口宽度动态调整
|
|
|
|
|
|
// 基准宽度 1920px,使用 vw 单位实现自适应
|
|
|
|
|
|
@function vw($px) {
|
|
|
|
|
|
@return calc($px / 1920 * 100vw);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-03-27 17:47:09 +08:00
|
|
|
|
.filter-header {
|
2026-03-30 10:57:32 +08:00
|
|
|
|
padding: vw(10);
|
2026-03-27 17:47:09 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
// align-items: center;
|
2026-03-30 10:57:32 +08:00
|
|
|
|
|
|
|
|
|
|
// 小屏幕适配
|
|
|
|
|
|
@media (max-width: 1366px) {
|
|
|
|
|
|
padding: 8px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@media (max-width: 1024px) {
|
|
|
|
|
|
padding: 6px;
|
|
|
|
|
|
}
|
2026-03-27 17:47:09 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.filter-container {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
2026-03-30 10:57:32 +08:00
|
|
|
|
height: vw(20);
|
|
|
|
|
|
min-height: 18px;
|
|
|
|
|
|
gap: vw(8);
|
|
|
|
|
|
font-size: vw(13);
|
2026-03-27 17:47:09 +08:00
|
|
|
|
|
|
|
|
|
|
.filter-item {
|
|
|
|
|
|
color: rgba(255, 255, 255, 0.6);
|
2026-03-30 10:57:32 +08:00
|
|
|
|
padding: 0 vw(12);
|
|
|
|
|
|
height: vw(24);
|
|
|
|
|
|
min-height: 20px;
|
2026-03-27 17:47:09 +08:00
|
|
|
|
border: 1px solid rgba(64, 169, 255, 0.3);
|
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
transition: all 0.3s ease;
|
|
|
|
|
|
|
|
|
|
|
|
background: #183c67;
|
|
|
|
|
|
box-shadow: inset 0px 0px 8px 0px #4fecff;
|
|
|
|
|
|
|
|
|
|
|
|
// &:hover {
|
|
|
|
|
|
// border-color: rgba(64, 169, 255, 0.5);
|
|
|
|
|
|
// color: rgba(255, 255, 255, 0.8);
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
// &.active {
|
|
|
|
|
|
// background: rgba(64, 169, 255, 0.2);
|
|
|
|
|
|
// color: #40a9ff;
|
|
|
|
|
|
// border-color: rgba(64, 169, 255, 0.5);
|
|
|
|
|
|
// }
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.date-range-wrapper {
|
|
|
|
|
|
:deep(.el-date-editor) {
|
2026-03-30 10:57:32 +08:00
|
|
|
|
width: vw(200);
|
|
|
|
|
|
min-width: 140px;
|
2026-03-27 17:47:09 +08:00
|
|
|
|
background: transparent;
|
|
|
|
|
|
border: 1px solid rgba(64, 169, 255, 0.3);
|
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
|
background: #183c67;
|
|
|
|
|
|
box-shadow: inset 0px 0px 8px 0px #4fecff;
|
|
|
|
|
|
|
|
|
|
|
|
.el-range-input {
|
|
|
|
|
|
background: transparent;
|
|
|
|
|
|
color: rgba(255, 255, 255, 0.8);
|
|
|
|
|
|
|
|
|
|
|
|
&::placeholder {
|
|
|
|
|
|
color: rgba(255, 255, 255, 0.5);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.el-range-separator {
|
|
|
|
|
|
color: rgba(255, 255, 255, 0.4);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.el-icon {
|
|
|
|
|
|
color: rgba(255, 255, 255, 0.5);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// &:hover {
|
|
|
|
|
|
// border-color: rgba(64, 169, 255, 0.5);
|
|
|
|
|
|
// }
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
.filter-icon-ai {
|
2026-03-30 10:57:32 +08:00
|
|
|
|
width: vw(67);
|
|
|
|
|
|
height: vw(67);
|
|
|
|
|
|
min-width: 48px;
|
|
|
|
|
|
min-height: 48px;
|
2026-03-27 17:47:09 +08:00
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
}
|
|
|
|
|
|
// 日期选择器下拉面板样式
|
|
|
|
|
|
.dark-date-picker {
|
|
|
|
|
|
background: rgba(21, 41, 59, 0.95) !important;
|
|
|
|
|
|
border: 1px solid rgba(64, 169, 255, 0.3) !important;
|
|
|
|
|
|
|
|
|
|
|
|
.el-picker-panel__content {
|
|
|
|
|
|
background: transparent;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.el-date-table {
|
|
|
|
|
|
th {
|
|
|
|
|
|
color: rgba(255, 255, 255, 0.7);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
td {
|
|
|
|
|
|
color: rgba(255, 255, 255, 0.9);
|
|
|
|
|
|
|
|
|
|
|
|
&.prev-month,
|
|
|
|
|
|
&.next-month {
|
|
|
|
|
|
color: rgba(255, 255, 255, 0.4);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
|
color: #40a9ff;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
&.current:not(.disabled) {
|
|
|
|
|
|
span {
|
|
|
|
|
|
background: #40a9ff;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
&.start-date,
|
|
|
|
|
|
&.end-date {
|
|
|
|
|
|
span {
|
|
|
|
|
|
background: #40a9ff;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
&.in-range {
|
|
|
|
|
|
background: rgba(64, 169, 255, 0.2);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.el-picker-panel__icon-btn {
|
|
|
|
|
|
color: rgba(255, 255, 255, 0.7);
|
|
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
|
color: #40a9ff;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.el-date-picker__header-label {
|
|
|
|
|
|
color: rgba(255, 255, 255, 0.9);
|
|
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
|
color: #40a9ff;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
</style>
|