From f591429e3bd45c3b83730314eea37c32881d0ce2 Mon Sep 17 00:00:00 2001 From: betaqi <3188864257@qq.com> Date: Thu, 9 Oct 2025 14:01:48 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BA=91=E7=AB=AF=E5=AF=BC=E5=85=A5?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=AF=BC=E5=85=A5=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 ++ src/api/module/taks/index.ts | 1 + .../transfer/components/offTransferDlg.vue | 17 +++++++++++++++-- 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index a6d4ce4..8ee407c 100644 --- a/.gitignore +++ b/.gitignore @@ -22,6 +22,8 @@ yarn-debug.log* yarn-error.log* /dist +/dist-local +/dist-cloud /docker_output/ /node_modules/ /*.tar \ No newline at end of file diff --git a/src/api/module/taks/index.ts b/src/api/module/taks/index.ts index c689ae2..35b8410 100644 --- a/src/api/module/taks/index.ts +++ b/src/api/module/taks/index.ts @@ -33,6 +33,7 @@ export interface TaskCreateParams { startTime?: string endTime?: string firmware?: string + isFull?: boolean } export const createTask = (params: TaskCreateParams) => globalServer({ diff --git a/src/views/stationData/transfer/components/offTransferDlg.vue b/src/views/stationData/transfer/components/offTransferDlg.vue index b7aa1c7..eeb0ea3 100644 --- a/src/views/stationData/transfer/components/offTransferDlg.vue +++ b/src/views/stationData/transfer/components/offTransferDlg.vue @@ -10,6 +10,16 @@ + +
+ * + 导入方式: +
+ + 全量导入 + 增量导入 + +
@@ -37,13 +47,14 @@ const props = defineProps<{ const visible = ref(false) const fromData = { clientIp: '', + sampleType: 'full' } const form = ref(cloneDeep(fromData)) const paramsData = ref() -function open(parmas: TaskCreateParams) { - paramsData.value = parmas +function open(params: TaskCreateParams) { + paramsData.value = params visible.value = true } @@ -56,6 +67,8 @@ async function onSave() { return } + paramsData.value.isFull = form.value.sampleType === 'full' + paramsData.value.devices.forEach((r) => { r.host = form.value.clientIp })