提交 8de40970 编写于 作者: chengxiang.li's avatar chengxiang.li

学分管理列表新增重置

上级 e19458bb
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
<div style="width: 25%; float: right;"> <div style="width: 25%; float: right;">
<el-form-item class="btn-list"> <el-form-item class="btn-list">
<el-button @click="goToSearch" size="small">搜索</el-button> <el-button @click="goToSearch" size="small">搜索</el-button>
<el-button @click="goToReset" size="small">重置</el-button>
<el-button @click="showNewAddForm" type="primary" size="small">新增学分</el-button> <el-button @click="showNewAddForm" type="primary" size="small">新增学分</el-button>
</el-form-item> </el-form-item>
</div> </div>
...@@ -250,6 +251,15 @@ ...@@ -250,6 +251,15 @@
// this.searchForm.pageSize = 15; // this.searchForm.pageSize = 15;
this.getCreditList(); this.getCreditList();
}, },
goToReset() {
this.searchForm = {
name: '',
grade: '',
status: '',
pageNo: 1,
pageSize: 15,
};
},
// 获取 学分table列表 // 获取 学分table列表
getCreditList() { getCreditList() {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册