更改题库列表报错
This commit is contained in:
parent
6ed7aadbf7
commit
26ba23320c
|
@ -1,28 +1,16 @@
|
|||
<template>
|
||||
<a-card :bordered="false" title="课程列表">
|
||||
<div class="table-page-search-wrapper">
|
||||
<SearchCom
|
||||
:form="queryParam"
|
||||
:list="queryOptions"
|
||||
@search="handleRefresh"
|
||||
@reset="
|
||||
<SearchCom :form="queryParam" :list="queryOptions" @search="handleRefresh" @reset="
|
||||
() => {
|
||||
;(queryParam = {}), handleRefresh()
|
||||
}
|
||||
"
|
||||
></SearchCom>
|
||||
"></SearchCom>
|
||||
<div style="width: 100%; height: 32px; margin-bottom: 8px">
|
||||
<a-button type="primary" @click="courseAdd">新建课程</a-button>
|
||||
</div>
|
||||
</div>
|
||||
<s-table
|
||||
ref="table"
|
||||
size="default"
|
||||
rowKey="id"
|
||||
:columns="columns"
|
||||
:data="loadData"
|
||||
:pageNum="Number(this.$route.query.PageNum) || 1"
|
||||
>
|
||||
<s-table ref="table" size="default" rowKey="id" :columns="columns" :data="loadData" :pageNum="Number(this.$route.query.PageNum) || 1">
|
||||
<template slot="action" slot-scope="text, record">
|
||||
<a href="javascript:;" @click="detail(record)">详情</a>
|
||||
<a-divider type="vertical" />
|
||||
|
@ -108,6 +96,18 @@ export default {
|
|||
})
|
||||
},
|
||||
|
||||
//题库
|
||||
courseQuestion(record) {
|
||||
this.$router.push({
|
||||
path: '/course/question/QuestionList',
|
||||
query: {
|
||||
id: record.id,
|
||||
courseName: this.queryParam.courseName,
|
||||
pageNum: this.$refs.table.localPagination.current,
|
||||
},
|
||||
})
|
||||
},
|
||||
|
||||
//課程新增
|
||||
courseAdd() {
|
||||
this.$router.push({
|
||||
|
@ -118,17 +118,5 @@ export default {
|
|||
})
|
||||
},
|
||||
},
|
||||
|
||||
//题库
|
||||
courseQuestion(record) {
|
||||
this.$router.push({
|
||||
path: '/course/question/QuestionList',
|
||||
query: {
|
||||
id: record.id,
|
||||
courseName: this.queryParam.courseName,
|
||||
pageNum: this.$refs.table.localPagination.current,
|
||||
},
|
||||
})
|
||||
},
|
||||
}
|
||||
</script>
|
Loading…
Reference in New Issue