This commit is contained in:
zpc 2026-03-17 10:45:51 +08:00
parent 47f02cccf6
commit d80b3323bc
2 changed files with 29 additions and 1 deletions

View File

@ -124,6 +124,16 @@
<el-icon><Document /></el-icon>
报告
</el-button>
<el-button
v-if="row.status === 4"
type="primary"
link
size="small"
@click="handleViewWebReport(row)"
>
<el-icon><Monitor /></el-icon>
网页报告
</el-button>
<el-button
v-if="row.status === 3 || row.status === 5"
type="warning"
@ -335,7 +345,7 @@
* @description 查看用户测评记录答案详情和测评报告支持搜索导出
*/
import { reactive, ref, computed, onMounted } from 'vue'
import { Search, Refresh, View, Download, Document, RefreshRight, Delete, Edit } from '@element-plus/icons-vue'
import { Search, Refresh, View, Download, Document, RefreshRight, Delete, Edit, Monitor } from '@element-plus/icons-vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import {
getRecordList,
@ -633,6 +643,12 @@ function handleViewReport(row: AssessmentRecordItem) {
loadRecordReport(row.id)
}
/** 在新标签页打开网页版报告 */
function handleViewWebReport(row: AssessmentRecordItem) {
const url = `/report/full?recordId=${row.id}`
window.open(url, '_blank')
}
/** 表格选择变化 */
function handleSelectionChange(rows: AssessmentRecordItem[]) {
state.selectedRows = rows

View File

@ -25,6 +25,18 @@ export default defineConfig({
'/api': {
target: 'http://localhost:61551',
changeOrigin: true
},
'/report': {
target: 'http://localhost:5238',
changeOrigin: true
},
'/css': {
target: 'http://localhost:5238',
changeOrigin: true
},
'/images': {
target: 'http://localhost:5238',
changeOrigin: true
}
}
},