更改题库列表报错

This commit is contained in:
18571350067 2021-11-26 16:25:46 +08:00
parent 6ed7aadbf7
commit 26ba23320c
1 changed files with 15 additions and 27 deletions

View File

@ -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,17 +96,6 @@ export default {
})
},
//
courseAdd() {
this.$router.push({
path: '/course/CourseAdd',
query: {
courseName: this.queryParam.courseName,
},
})
},
},
//
courseQuestion(record) {
this.$router.push({
@ -130,5 +107,16 @@ export default {
},
})
},
//
courseAdd() {
this.$router.push({
path: '/course/CourseAdd',
query: {
courseName: this.queryParam.courseName,
},
})
},
},
}
</script>