This commit is contained in:
caozehui
2025-08-19 19:16:20 +08:00
parent dc6a346fd4
commit d761c0449b
3 changed files with 11 additions and 1 deletions

View File

@@ -40,3 +40,7 @@ export const resumeTest = (params) => {
export const contrastTest = (params: any) => { export const contrastTest = (params: any) => {
return http.post(`/prepare/startContrastTest`,params) return http.post(`/prepare/startContrastTest`,params)
} }
export const exportAlignData= () => {
return http.download(`/prepare/exportAlignData`)
}

View File

@@ -212,6 +212,7 @@ const handleSubmitAgain = async () => {
standardDevIds: standardDevIds.value, standardDevIds: standardDevIds.value,
pairs:pairs.value, pairs:pairs.value,
testItemList:[checkStore.selectTestItems.preTest,false,checkStore.selectTestItems.test], testItemList:[checkStore.selectTestItems.preTest,false,checkStore.selectTestItems.test],
userId: userStore.userInfo.id,
}) })
preTestStatus.value = 'start' preTestStatus.value = 'start'
@@ -235,6 +236,7 @@ const handleSubmitFast = async () => {
standardDevIds: standardDevIds.value, standardDevIds: standardDevIds.value,
pairs:pairs.value, pairs:pairs.value,
testItemList:[checkStore.selectTestItems.preTest,false,checkStore.selectTestItems.test], testItemList:[checkStore.selectTestItems.preTest,false,checkStore.selectTestItems.test],
userId: userStore.userInfo.id,
}) })
preTestStatus.value = 'start' preTestStatus.value = 'start'
} }
@@ -251,6 +253,7 @@ const handleSubmitFast = async () => {
standardDevIds: standardDevIds.value, standardDevIds: standardDevIds.value,
pairs:pairs.value, pairs:pairs.value,
testItemList:[checkStore.selectTestItems.preTest,false,checkStore.selectTestItems.test], testItemList:[checkStore.selectTestItems.preTest,false,checkStore.selectTestItems.test],
userId: userStore.userInfo.id,
}) })
} }
TestStatus.value = 'start' TestStatus.value = 'start'

View File

@@ -66,6 +66,8 @@ import { dialogBig } from "@/utils/elementBind";
import { PropType, ref, nextTick } from "vue"; import { PropType, ref, nextTick } from "vue";
import { ElMessage } from "element-plus"; import { ElMessage } from "element-plus";
import { CircleCheck, CircleClose } from '@element-plus/icons-vue'; import { CircleCheck, CircleClose } from '@element-plus/icons-vue';
import {exportAlignData} from "@/api/socket/socket";
import {useDownload} from "@/hooks/useDownload";
const dialogVisible = ref(false); const dialogVisible = ref(false);
const activeTab = ref('channel1'); const activeTab = ref('channel1');
@@ -255,7 +257,8 @@ const open = async (mapping : Record<string, Record<string, string>>,data : any)
}; };
// 导出数据 // 导出数据
const exportData = () => { const exportData =async () => {
useDownload(exportAlignData, '原始数据', null, false, '.xlsx')
ElMessage.success('数据导出成功'); ElMessage.success('数据导出成功');
// 这里可以添加实际的数据导出逻辑 // 这里可以添加实际的数据导出逻辑
}; };