From 53b66a08ea1819617ac25b0531312c0b52ff08a2 Mon Sep 17 00:00:00 2001 From: betaqi <3188864257@qq.com> Date: Tue, 4 Nov 2025 11:42:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AF=BC=E5=85=A5=E5=AF=BC=E5=87=BA?= =?UTF-8?q?=E5=90=8D=E7=A7=B0=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Edfs-wrap.vue | 1 + .../topology/components/detailDrawer.vue | 13 ++++++++++--- .../transfer/components/deviceDrawer.vue | 8 +++++++- 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/src/components/Edfs-wrap.vue b/src/components/Edfs-wrap.vue index e2f6a48..bcb39e7 100644 --- a/src/components/Edfs-wrap.vue +++ b/src/components/Edfs-wrap.vue @@ -104,6 +104,7 @@ function onCollapse() { padding: 0 16px; box-sizing: border-box; background-color: var(--warp-bg); + white-space: nowrap; .title-left { height: 100%; diff --git a/src/views/stationData/topology/components/detailDrawer.vue b/src/views/stationData/topology/components/detailDrawer.vue index 1adea95..65f2629 100644 --- a/src/views/stationData/topology/components/detailDrawer.vue +++ b/src/views/stationData/topology/components/detailDrawer.vue @@ -96,7 +96,13 @@ import PointCheckbox from "@/views/stationData/component/pointCheckbox.vue"; const env = import.meta.env const isShowDrawer = defineModel() -const title = computed(() => (curDevice.value?.isonLine ? '数据详情' : `已导出数据详情`)) +const title = computed(() => + ( + curDevice.value?.isonLine ? + '数据详情' : env.VITE_APP_ENV === 'local' + ? `已导出数据详情` : '已导入数据详情' + ) +) const message = useMessage() const PointCheckboxRef = ref>() @@ -223,7 +229,7 @@ async function loadChardData() { columns: columParams.value, isLocal: !curDevice.value?.isonLine, host: curDevice.value?.isonLine ? (curDevice.value as IOnlineDevice).clientIp : '', - name: currentGroup.value?.customNode ? selectValue.value : currentGroup.value?.name as string, + name: currentGroup.value?.customNode ? selectValue.value : currentGroup.value?.name as string, startTime: time.value[0], endTime: time.value[1], } @@ -392,7 +398,8 @@ const disabledDate = (time: any) => { } const getBeforeMonth = dayjs().startOf('month').subtract(1, 'month').startOf('month').toDate() const collapsed = ref(false) -function onCollapse(value?:boolean) { + +function onCollapse(value?: boolean) { collapsed.value = value ?? !collapsed.value } diff --git a/src/views/stationData/transfer/components/deviceDrawer.vue b/src/views/stationData/transfer/components/deviceDrawer.vue index a1dd4f2..1ae86e4 100644 --- a/src/views/stationData/transfer/components/deviceDrawer.vue +++ b/src/views/stationData/transfer/components/deviceDrawer.vue @@ -85,7 +85,13 @@ const env = import.meta.env const isShowDrawer = defineModel() -const title = computed(() => (props.isTransfer ? '数据详情' : `已导出数据详情`)) +const title = computed(() => + ( + props.isTransfer ? + '数据详情' : env.VITE_APP_ENV === 'local' + ? `已导出数据详情` : '已导入数据详情' + ) +) const message = useMessage() const pointGroupTreeRef = ref>()