Browse Source

fix: 导入导出名称修正

main
betaqi 2 days ago
parent
commit
1917360c65
  1. 2
      src/router/index.ts
  2. 4
      src/views/stationData/index.vue
  3. 2
      src/views/stationData/topology/components/detailDrawer.vue
  4. 2
      src/views/stationData/transfer/components/deviceDrawer.vue
  5. 2
      src/views/stationData/transfer/components/onLineTransferDlg.vue
  6. 12
      src/views/stationData/transfer/index.vue
  7. 2
      src/views/taskList/index.vue

2
src/router/index.ts

@ -27,7 +27,7 @@ export const defaultRouter = [ @@ -27,7 +27,7 @@ export const defaultRouter = [
name: 'data-transfer',
component: () => import('@/views/stationData/transfer/index.vue'),
meta: {
title: '数据迁移',
title: '数据导出',
isShow: false,
icon: '',
},

4
src/views/stationData/index.vue

@ -47,7 +47,7 @@ @@ -47,7 +47,7 @@
</EdfsWrap>
</template>
<EdfsWrap :title="`${env.VITE_APP_ENV == 'local' ? '数据迁移历史' : '数据导入历史'}`"
<EdfsWrap :title="`${env.VITE_APP_ENV == 'local' ? '数据导出历史' : '数据导入历史'}`"
shape="circle" shapeColor="#F1BF63"
class="flex-1" useScrollBar>
<el-scrollbar>
@ -76,7 +76,7 @@ @@ -76,7 +76,7 @@
</div>
<div class="footer">
<div class="item">
<div class="label">迁移时间:</div>
<div class="label">导出时间:</div>
<div class="value">
{{ item.create_time }}
</div>

2
src/views/stationData/topology/components/detailDrawer.vue

@ -95,7 +95,7 @@ import PointCheckbox from "@/views/stationData/component/pointCheckbox.vue"; @@ -95,7 +95,7 @@ import PointCheckbox from "@/views/stationData/component/pointCheckbox.vue";
const env = import.meta.env
const isShowDrawer = defineModel<boolean>()
const title = computed(() => (curDevice.value?.isonLine ? '数据详情' : `迁移数据详情`))
const title = computed(() => (curDevice.value?.isonLine ? '数据详情' : `导出数据详情`))
const message = useMessage()
const PointCheckboxRef = ref<InstanceType<typeof PointCheckbox>>()

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

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

2
src/views/stationData/transfer/components/onLineTransferDlg.vue

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
<template>
<EdfsDialog :title="isBatchTransfer ? '批量迁移' : '数据迁移'" :is-show="visible" width="580px"
<EdfsDialog :title="isBatchTransfer ? '批量导出' : '数据导出'" :is-show="visible" width="580px"
@on-close="close"
:btnLoading="btnLoading"
@on-save="onSave">

12
src/views/stationData/transfer/index.vue

@ -28,7 +28,7 @@ @@ -28,7 +28,7 @@
<template v-else>
<el-button type="primary" @click="onBatchTransfer">
<i class="i-mdi:database-arrow-right-outline mr-1"/>
{{ isonLineTransfer ? '数据迁移' : '数据导出' }}
{{ localTransferBtnText }}
</el-button>
<el-button v-if="isonLineTransfer" type="primary" @click="onBatchUpgrade">
<i class="i-codicon:chip mr-1"/>批量升级
@ -60,7 +60,7 @@ @@ -60,7 +60,7 @@
>
<template v-if="env.VITE_APP_ENV == 'local'">
<el-tooltip
:content="isonLineTransfer ? '数据迁移' : '数据导出'"
:content="isonLineTransfer ? '数据导出' : '数据导入'"
v-if="isonLineTransfer ? item.status === '在线' : true"
>
<i
@ -167,6 +167,7 @@ import DeviceDrawer from './components/deviceDrawer.vue' @@ -167,6 +167,7 @@ import DeviceDrawer from './components/deviceDrawer.vue'
import { getFirmwarePath } from '@/api/module/firmware'
import { createTask, type TaskCreateParams } from '@/api/module/taks'
import EdfsWrap from "@/components/Edfs-wrap.vue";
import { computed } from "vue";
const env = import.meta.env
const onLineTransferDlgRef = ref<typeof OnLineTransferDlg>()
@ -180,6 +181,9 @@ const type = ref<'export' | 'details'>(route.query.type as 'export' | 'details') @@ -180,6 +181,9 @@ const type = ref<'export' | 'details'>(route.query.type as 'export' | 'details')
const isonLineTransfer = computed(() => type.value === 'export')
const message = useMessage()
const localTransferBtnText = computed(()=> isonLineTransfer.value ? '数据导出' : '数据导入')
const transferDataStore = useTransferDataStore()
const { devicesMap } = storeToRefs(transferDataStore)
@ -277,7 +281,7 @@ function onBatchUpgrade() { @@ -277,7 +281,7 @@ function onBatchUpgrade() {
}
const batchText = computed(() => {
return isBatchTransfer.value ? isonLineTransfer.value ? '迁移' : '导出' : '升级'
return isBatchTransfer.value ? isonLineTransfer.value ? '导出' : '导入' : '升级'
})
const isSelectAllCheckbox = computed(() => checkDeviceList.value.length === devices.value.length)
@ -339,7 +343,7 @@ window.onbeforeunload = function () { @@ -339,7 +343,7 @@ window.onbeforeunload = function () {
onBeforeRouteLeave(async (to, from, next) => {
if (transferStatus.value === 'progress') {
try {
await message.confirm('当前迁移尚未完成,是否确认离开?')
await message.confirm('当前导出尚未完成,是否确认离开?')
window.location.href = to.fullPath
} catch (error) {
next(false)

2
src/views/taskList/index.vue

@ -78,7 +78,7 @@ const taskStatus = [{ @@ -78,7 +78,7 @@ const taskStatus = [{
const taskMode = [{
value: 'export',
label: '迁移'
label: '导出'
}, {
value: 'import',
label: '导入'

Loading…
Cancel
Save