feat: 课程列表添加搜索条件

This commit is contained in:
cgd_mac 2022-02-24 17:57:36 +08:00
parent a0b23df39d
commit c37fd41bc6
2 changed files with 14 additions and 3 deletions

View File

@ -24,8 +24,8 @@
</a-form-item>
</a-col>
<!-- <a-col :md="6" :sm="24"> -->
<a-col>
<a-col :md="6" :sm="24">
<!-- <a-col> -->
<a-button type="primary" @click="handleQuery">查询</a-button>
<a-button @click="resetQuery">重置</a-button>
</a-col>

View File

@ -82,7 +82,18 @@ export default {
},
queryOptions: [
{ type: 'input', placeholder: '课程名称', key: 'name' },
{ type: 'select-dic-tree', placeholder: '课程类别', key: 'trainWay', options: [] }
{ type: 'select-dic-tree', placeholder: '课程类别', key: 'trainWay', options: [] },
{
type: 'select',
placeholder: '课程状态',
key: 'status',
options: [
{ name: '未开始', value: 1, id: 1 },
{ name: '进行中', value: 2, id: 2 },
{ name: '已完成', value: 3, id: 3 },
{ name: '已结束', value: 4, id: 4 }
]
}
],
//
columns: [