Browse Source

fix: 导入导出名称修正

main
betaqi 20 hours ago
parent
commit
53b66a08ea
  1. 1
      src/components/Edfs-wrap.vue
  2. 13
      src/views/stationData/topology/components/detailDrawer.vue
  3. 8
      src/views/stationData/transfer/components/deviceDrawer.vue

1
src/components/Edfs-wrap.vue

@ -104,6 +104,7 @@ function onCollapse() {
padding: 0 16px; padding: 0 16px;
box-sizing: border-box; box-sizing: border-box;
background-color: var(--warp-bg); background-color: var(--warp-bg);
white-space: nowrap;
.title-left { .title-left {
height: 100%; height: 100%;

13
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 env = import.meta.env
const isShowDrawer = defineModel<boolean>() const isShowDrawer = defineModel<boolean>()
const title = computed(() => (curDevice.value?.isonLine ? '数据详情' : `已导出数据详情`)) const title = computed(() =>
(
curDevice.value?.isonLine ?
'数据详情' : env.VITE_APP_ENV === 'local'
? `已导出数据详情` : '已导入数据详情'
)
)
const message = useMessage() const message = useMessage()
const PointCheckboxRef = ref<InstanceType<typeof PointCheckbox>>() const PointCheckboxRef = ref<InstanceType<typeof PointCheckbox>>()
@ -223,7 +229,7 @@ async function loadChardData() {
columns: columParams.value, columns: columParams.value,
isLocal: !curDevice.value?.isonLine, isLocal: !curDevice.value?.isonLine,
host: curDevice.value?.isonLine ? (curDevice.value as IOnlineDevice).clientIp : '', 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], startTime: time.value[0],
endTime: time.value[1], endTime: time.value[1],
} }
@ -392,7 +398,8 @@ const disabledDate = (time: any) => {
} }
const getBeforeMonth = dayjs().startOf('month').subtract(1, 'month').startOf('month').toDate() const getBeforeMonth = dayjs().startOf('month').subtract(1, 'month').startOf('month').toDate()
const collapsed = ref(false) const collapsed = ref(false)
function onCollapse(value?:boolean) {
function onCollapse(value?: boolean) {
collapsed.value = value ?? !collapsed.value collapsed.value = value ?? !collapsed.value
} }

8
src/views/stationData/transfer/components/deviceDrawer.vue

@ -85,7 +85,13 @@ const env = import.meta.env
const isShowDrawer = defineModel<boolean>() const isShowDrawer = defineModel<boolean>()
const title = computed(() => (props.isTransfer ? '数据详情' : `已导出数据详情`)) const title = computed(() =>
(
props.isTransfer ?
'数据详情' : env.VITE_APP_ENV === 'local'
? `已导出数据详情` : '已导入数据详情'
)
)
const message = useMessage() const message = useMessage()
const pointGroupTreeRef = ref<InstanceType<typeof PointGroupTree>>() const pointGroupTreeRef = ref<InstanceType<typeof PointGroupTree>>()

Loading…
Cancel
Save