批改移动到后台
This commit is contained in:
30611
source/vue/xzs-admin/package-lock.json
generated
30611
source/vue/xzs-admin/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -27,6 +27,12 @@
|
||||
</el-table-column>
|
||||
<el-table-column prop="doTime" label="耗时" width="100px"/>
|
||||
<el-table-column prop="createTime" label="提交时间" width="160px"/>
|
||||
<el-table-column label="操作" width="160px">
|
||||
<template slot-scope="scope" >
|
||||
<el-button v-show="scope.row.status == 1" type="primary" round @click="toedit(scope.row.id,1)">批改</el-button>
|
||||
<el-button v-show="scope.row.status == 2" type="primary" round @click="toedit(scope.row.id,0)">查看试卷</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<pagination v-show="total>0" :total="total" :page.sync="queryParam.pageIndex" :limit.sync="queryParam.pageSize"
|
||||
@pagination="search"/>
|
||||
@@ -72,6 +78,13 @@ export default {
|
||||
this.queryParam.pageIndex = 1
|
||||
this.search()
|
||||
},
|
||||
toedit(id,type){
|
||||
if(type == 1){
|
||||
window.open("/student/index.html#/edit?id=" + id)
|
||||
}else{
|
||||
window.open("/student/index.html#/read?id=" + id)
|
||||
}
|
||||
},
|
||||
...mapActions('exam', { initSubject: 'initSubject' })
|
||||
},
|
||||
computed: {
|
||||
|
||||
9520
source/vue/xzs-admin/yarn.lock
Normal file
9520
source/vue/xzs-admin/yarn.lock
Normal file
File diff suppressed because it is too large
Load Diff
@@ -95,7 +95,7 @@ export default {
|
||||
_this.$alert('试卷得分:' + re.response + '分', '考试结果', {
|
||||
confirmButtonText: '返回考试记录',
|
||||
callback: action => {
|
||||
_this.$router.push('/record/index')
|
||||
window.close()
|
||||
}
|
||||
})
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user