|
@@ -25,6 +25,7 @@
|
|
|
|
|
|
<el-table-column prop="operation" label="操作" fixed="right" width="300">
|
|
|
<template slot-scope="{ row }">
|
|
|
+ <span class="link" @click="showExercise(row.id)">查看</span>
|
|
|
<span class="link" @click="$router.push({ path: '/exercise', query: { id: row.id } })">编辑</span>
|
|
|
<span class="link" @click="share(row.id)">分享</span>
|
|
|
<span class="link" @click="copyExerciseToPublicStore(row.id)">公开</span>
|
|
@@ -121,6 +122,17 @@ export default {
|
|
|
this.exercise_list = exercise_list;
|
|
|
});
|
|
|
},
|
|
|
+ showExercise(exercise_id) {
|
|
|
+ this.$router.push({
|
|
|
+ path: '/answer',
|
|
|
+ query: {
|
|
|
+ exercise_id,
|
|
|
+ type: 'show',
|
|
|
+ question_index: 0,
|
|
|
+ back_url: encodeURIComponent(window.location.href),
|
|
|
+ },
|
|
|
+ });
|
|
|
+ },
|
|
|
deleteExercise(exercise_id) {
|
|
|
this.$confirm('是否删除当前练习题', '提示', {
|
|
|
confirmButtonText: '确定',
|