From 120800d6a23c311e918b890621bcd8d754c98b1f Mon Sep 17 00:00:00 2001 From: wangxk Date: Mon, 7 Apr 2025 17:15:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E9=A1=B5=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../testdata/fileSynchronization/index.vue | 47 +------------------ 1 file changed, 1 insertion(+), 46 deletions(-) diff --git a/web/src/views/testdata/fileSynchronization/index.vue b/web/src/views/testdata/fileSynchronization/index.vue index a365151..5a72be8 100644 --- a/web/src/views/testdata/fileSynchronization/index.vue +++ b/web/src/views/testdata/fileSynchronization/index.vue @@ -70,9 +70,8 @@ function diffFile() { comparearr.value = comparearr.value.filter(item => { return seen.has(item.id) ? false : seen.add(item.id); }); - tabs.value = 3 + tabs.value = 1 differential.value = true - // getchayi() diffSure() diffChange() diffMiss() @@ -108,29 +107,6 @@ const minioOnlyFiles: any = ref([]) const loading1 = ref(false) const loading2 = ref(false) const loading3 = ref(false) -// function getchayi() { -// loading.value = true -// const ids = [] -// const params: any = {} -// if (comparearr.value.length > 0) { -// comparearr.value.forEach((item: any) => { -// ids.push(item.id) -// }) -// params.id = ids.join(',') -// } else { -// params.nodeId = pathid.value -// params.taskId = projectId.value -// } - - -// compare(params).then((res: any) => { -// localOnlyFiles.value = res.data.localOnlyFiles -// md5MismatchedFiles.value = res.data.md5MismatchedFiles -// minioOnlyFiles.value = res.data.minioOnlyFiles -// loading.value = false -// diffColor() -// }) -// } //文件对比-新增内容 const sureSize = ref(100) const sureTotal = ref() @@ -156,7 +132,6 @@ function diffSure() { sureSize.value = res.data.size sureTotal.value = res.data.total sureCurrent.value = res.data.current - // diffColor() }) } //文件对比-变更内容 @@ -184,7 +159,6 @@ function diffChange() { ChangeSize.value = res.data.size ChangeTotal.value = res.data.total ChangeCurrent.value = res.data.current - // diffColor() }) } //文件对比-缺失内容 @@ -212,7 +186,6 @@ function diffMiss() { MisseSize.value = res.data.size MissTotal.value = res.data.total MissCurrent.value = res.data.current - // diffColor() }) } //差异染色 @@ -336,24 +309,6 @@ function getclickdata(data: any) { }); return data } -//工作空间树获取 -//获取工作空间数据 -// function getWorkData() { -// worktree.value = true -// listLocalAndBackup({ taskId: projectId.value, nodeId: pathid.value }).then((res: any) => { -// workdata.value = res.data.localTrees -// backupsdata.value = res.data.minioTrees -// if (workdata.value.length > 0) { -// assignment(workdata.value, 'local') -// } -// if (backupsdata.value.length > 0) { -// assignment(backupsdata.value, 'minio') -// } -// worktree.value = false -// diffColor() -// }) - -// } //获取本地树 function getlocaltree() { worktree.value = true