提交 4e4b5b62 authored 作者: 王鹏飞's avatar 王鹏飞

chore: update

上级 468e4f08
...@@ -43,11 +43,41 @@ function getOperationUrl(type: number) { ...@@ -43,11 +43,41 @@ function getOperationUrl(type: number) {
if (type === 1) { if (type === 1) {
// 实验报告 // 实验报告
return `/student/lab/report/view/${experiment.id}` return `/student/lab/report/view/${experiment.id}`
} else if (type === 6) {
// 用户标签
return `${appConfig.dmlURL || import.meta.env.VITE_DML_URL}/label?experiment_id=${experiment.id}&student_id=${
experiment.student.id
}`
} else if (type === 7) {
// 用户群组
return `${appConfig.dmlURL || import.meta.env.VITE_DML_URL}/group?experiment_id=${experiment.id}&student_id=${
experiment.student.id
}`
} else if (type === 8) { } else if (type === 8) {
// 用户旅程 // 用户旅程
return `${appConfig.dmlURL || import.meta.env.VITE_DML_URL}/trip/my/score?experiment_id=${ return `${appConfig.dmlURL || import.meta.env.VITE_DML_URL}/trip/my/score?experiment_id=${
experiment.id experiment.id
}&student_id=${experiment.student.id}` }&student_id=${experiment.student.id}`
} else if (type === 9) {
// 营销资料
return `${appConfig.dmlURL || import.meta.env.VITE_DML_URL}/material?experiment_id=${experiment.id}&student_id=${
experiment.student.id
}`
} else if (type === 11) {
// 用户数据
return `${appConfig.dmlURL || import.meta.env.VITE_DML_URL}/user?experiment_id=${experiment.id}&student_id=${
experiment.student.id
}`
} else if (type === 12) {
// 事件数据
return `${appConfig.dmlURL || import.meta.env.VITE_DML_URL}/user?experiment_id=${experiment.id}&student_id=${
experiment.student.id
}`
} else {
// 去首页
return `${appConfig.dmlURL || import.meta.env.VITE_DML_URL}/?experiment_id=${experiment.id}&student_id=${
experiment.student.id
}`
} }
} }
const autoVisible = ref(false) const autoVisible = ref(false)
...@@ -126,7 +156,9 @@ function handleViewAuto(row: any) { ...@@ -126,7 +156,9 @@ function handleViewAuto(row: any) {
</el-table-column> </el-table-column>
<el-table-column label="我的答案" align="center" width="80"> <el-table-column label="我的答案" align="center" width="80">
<template #default="{ row }"> <template #default="{ row }">
<el-button type="primary" @click="handleViewAuto(row)" link>查看</el-button> <el-button link type="primary">
<a :href="getOperationUrl(row.type)" target="_blank">查看</a>
</el-button>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="评语" align="center" width="80" v-if="false"> <el-table-column label="评语" align="center" width="80" v-if="false">
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论