diff --git a/src/views/mes/ganttChart/index.vue b/src/views/mes/ganttChart/index.vue
index 5215c8d6..8c39ac95 100644
--- a/src/views/mes/ganttChart/index.vue
+++ b/src/views/mes/ganttChart/index.vue
@@ -12,6 +12,11 @@
class="!w-360px"
/>
+
+
+
+
+
查询
重置
@@ -21,7 +26,7 @@
-
+
@@ -68,7 +73,20 @@ const buildDefaultRange = () => {
const queryRange = ref(buildDefaultRange())
const queryParams = reactive({
startTime: queryRange.value[0],
- endTime: queryRange.value[1]
+ endTime: queryRange.value[1],
+ deviceIds: [] as (string | number)[]
+})
+
+const deviceOptions = computed(() =>
+ scheduleList.value.map((device) => ({
+ label: device.deviceName,
+ value: device.deviceId
+ }))
+)
+
+const filteredList = computed(() => {
+ if (!queryParams.deviceIds.length) return scheduleList.value
+ return scheduleList.value.filter((device) => queryParams.deviceIds.includes(device.deviceId))
})
const getList = async () => {