21
This commit is contained in:
parent
47f02cccf6
commit
d80b3323bc
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user