微调
This commit is contained in:
@@ -40,3 +40,7 @@ export const resumeTest = (params) => {
|
||||
export const contrastTest = (params: any) => {
|
||||
return http.post(`/prepare/startContrastTest`,params)
|
||||
}
|
||||
|
||||
export const exportAlignData= () => {
|
||||
return http.download(`/prepare/exportAlignData`)
|
||||
}
|
||||
|
||||
@@ -212,6 +212,7 @@ const handleSubmitAgain = async () => {
|
||||
standardDevIds: standardDevIds.value,
|
||||
pairs:pairs.value,
|
||||
testItemList:[checkStore.selectTestItems.preTest,false,checkStore.selectTestItems.test],
|
||||
userId: userStore.userInfo.id,
|
||||
})
|
||||
|
||||
preTestStatus.value = 'start'
|
||||
@@ -235,6 +236,7 @@ const handleSubmitFast = async () => {
|
||||
standardDevIds: standardDevIds.value,
|
||||
pairs:pairs.value,
|
||||
testItemList:[checkStore.selectTestItems.preTest,false,checkStore.selectTestItems.test],
|
||||
userId: userStore.userInfo.id,
|
||||
})
|
||||
preTestStatus.value = 'start'
|
||||
}
|
||||
@@ -251,6 +253,7 @@ const handleSubmitFast = async () => {
|
||||
standardDevIds: standardDevIds.value,
|
||||
pairs:pairs.value,
|
||||
testItemList:[checkStore.selectTestItems.preTest,false,checkStore.selectTestItems.test],
|
||||
userId: userStore.userInfo.id,
|
||||
})
|
||||
}
|
||||
TestStatus.value = 'start'
|
||||
|
||||
@@ -66,6 +66,8 @@ import { dialogBig } from "@/utils/elementBind";
|
||||
import { PropType, ref, nextTick } from "vue";
|
||||
import { ElMessage } from "element-plus";
|
||||
import { CircleCheck, CircleClose } from '@element-plus/icons-vue';
|
||||
import {exportAlignData} from "@/api/socket/socket";
|
||||
import {useDownload} from "@/hooks/useDownload";
|
||||
|
||||
const dialogVisible = ref(false);
|
||||
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('数据导出成功');
|
||||
// 这里可以添加实际的数据导出逻辑
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user