diff --git a/frontend/src/components/business/ms-filter-panel/query-form-item.vue b/frontend/src/components/business/ms-filter-panel/query-form-item.vue
index 540b80b76a..bdcf6cc543 100644
--- a/frontend/src/components/business/ms-filter-panel/query-form-item.vue
+++ b/frontend/src/components/business/ms-filter-panel/query-form-item.vue
@@ -36,9 +36,16 @@
+
-
+
{{
@@ -58,13 +65,6 @@
-
@@ -76,16 +76,16 @@
import { cloneDeep } from 'lodash-es';
import { useI18n } from '@/hooks/useI18n';
import { TEST_PLAN_TEST_CASE } from './caseUtils';
- import TimerSelect from './component/ms-date-picker.vue';
+ import TimerSelect from './time-select.vue';
import { SelectOptionData } from '@arco-design/web-vue';
const { t } = useI18n();
const props = defineProps<{
- formItem: Record;
- index: number;
- formList: Record[];
- selectGroupList: SelectOptionData[];
+ formItem: Record; // 当前筛选项
+ index: number; // 当前操作的项索引
+ formList: Record[]; // 全部项列表筛选项列表
+ selectGroupList: SelectOptionData[]; // 条件字段筛选下拉列表
}>();
const emits = defineEmits(['dataUpdated']);
@@ -132,6 +132,17 @@
form.value.queryContent.value = time;
emits('dataUpdated', form.value, props.index);
};
+
+ // 判断当前情况
+ const getQueryContentType = (type: string) => {
+ switch (type) {
+ // 时间选择面板
+ case 'time-select':
+ return true;
+ default:
+ return false;
+ }
+ };
diff --git a/frontend/src/components/business/ms-filter-panel/searchForm.vue b/frontend/src/components/business/ms-filter-panel/searchForm.vue
index b3c7cb0524..891038ec19 100644
--- a/frontend/src/components/business/ms-filter-panel/searchForm.vue
+++ b/frontend/src/components/business/ms-filter-panel/searchForm.vue
@@ -23,20 +23,7 @@
>
@@ -228,4 +215,12 @@
color: var(--color-text-2);
}
}
+ .remove-button {
+ color: var(--color-text-4);
+ @apply flex cursor-pointer items-center justify-center rounded;
+ &:hover {
+ color: rgb(var(--primary-5));
+ background: rgb(var(--primary-9));
+ }
+ }
diff --git a/frontend/src/components/business/ms-filter-panel/component/ms-date-picker.vue b/frontend/src/components/business/ms-filter-panel/time-select.vue
similarity index 100%
rename from frontend/src/components/business/ms-filter-panel/component/ms-date-picker.vue
rename to frontend/src/components/business/ms-filter-panel/time-select.vue