标签管理查询条件 缺少重置按钮

This commit is contained in:
王卓煜
2025-09-28 11:12:06 +08:00
parent 5536fc06e1
commit b18500bad7

View File

@@ -19,6 +19,8 @@
<el-form-item>
<el-button @click="getsearch" icon="el-icon-search" type="primary">查询</el-button>
<!-- 添加重置按钮 -->
<el-button @click="resetSearch" icon="el-icon-refresh">重置</el-button>
</el-form-item>
</el-form>
</div>
@@ -168,6 +170,15 @@ export default {
},
methods: {
//重置搜索条件
resetSearch() {
this.pageData.id = '';
this.pageData.tagName = '';
this.pageData.isHot = '';
this.pageData.pageIndex = 1;
this.getCourseTagList(); // 重置后重新加载列表
},
//初始化:课程标签列表
getsearch(){
this.pageData.pageIndex = 1;