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