// 清空
getReset(){
console.log("xxx")
// 小技巧,直接给表单数据对象赋值为空
this.pagination.name="";
this.pagination.description="";
this.pagination.type="";
},
<div class="filter-container">
<!-- 加入 v-model="pagination.type"-->
<el-input placeholder="图书类别" v-model="pagination.type" style="width: 200px;" class="filter-item"></el-input>
<el-input placeholder="图书名称" v-model="pagination.name" style="width: 200px;" class="filter-item"></el-input>
<el-input placeholder="图书描述" v-model="pagination.description" style="width: 200px;" class="filter-item"></el-input>
<el-button @click="getAll()" class="dalfBut">查询</el-button>
<el-button @click="getReset()" class="dalfBut">重置</el-button>
<el-button type="primary" class="butT" @click="handleCreate()">新建</el-button>
</div>
小技巧:直接给表单数据对象赋值为空