提交 c35a5520 authored 作者: matian's avatar matian

fix:bug修复

上级 d664b55d
...@@ -17,6 +17,16 @@ ...@@ -17,6 +17,16 @@
<div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div> <div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div>
</el-upload> </el-upload>
<div style="text-align: center"> <div style="text-align: center">
<a
href="https://webapp-pub.ezijing.com/qbs/%E8%AF%95%E9%A2%98%E6%A8%A1%E6%9D%BF.xlsx"
download="试题模板.xlsx"
style="color: #c01c40"
>
<i class="el-icon-download"></i>试题模板.xlsx</a
>
<!-- <a href="https://webapp-pub.oss-cn-beijing.aliyuncs.com/qbs/question.xlsx" :download="试题模版"></a> -->
</div>
<div style="text-align: center; margin-top: 15px">
<el-button size="mini" @click="cancel">取消</el-button> <el-button size="mini" @click="cancel">取消</el-button>
<el-button type="primary" size="mini" @click="submitUpload" style="margin-right: 5px"> 确认提交</el-button> <el-button type="primary" size="mini" @click="submitUpload" style="margin-right: 5px"> 确认提交</el-button>
</div> </div>
......
...@@ -24,6 +24,16 @@ const routes = [ ...@@ -24,6 +24,16 @@ const routes = [
path: 'classify', path: 'classify',
component: () => import('./views/Classify.vue'), component: () => import('./views/Classify.vue'),
meta: { title: '题库分类' } meta: { title: '题库分类' }
},
{
path: 'questionDetail',
component: () => import('./views/Create.vue'),
meta: { title: '试题详情' }
},
{
path: 'editQuestion',
component: () => import('./views/Create.vue'),
meta: { title: '编辑试题' }
} }
] ]
} }
......
...@@ -188,11 +188,11 @@ export default { ...@@ -188,11 +188,11 @@ export default {
}, },
// 查看 // 查看
handleView(row) { handleView(row) {
this.$router.push({ path: '/question/create', query: { id: row.id, type: 'view' } }) this.$router.push({ path: '/question/questionDetail', query: { id: row.id, type: 'view' } })
}, },
// 编辑 // 编辑
handleSettings(row) { handleSettings(row) {
this.$router.push({ path: '/question/create', query: { id: row.id, type: 'edit' } }) this.$router.push({ path: '/question/editQuestion', query: { id: row.id, type: 'edit' } })
}, },
radioChange() { radioChange() {
this.$refs.list.refetch() this.$refs.list.refetch()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论