模糊搜索  接口版_List

渲染出列表后使用

后端传来参数直接使用参数就行:questionName

模糊搜索  接口版_List_02

 

 

 使用参数

getList (questionName) {
      topicList({ page: this.page - 1, size: this.size, questionName: questionName }).then(res => {
        this.homeList = res.content
        this.totalElements = res.totalElements
      }),
    }

元素中的使用

queryInput是随便起的名字接近意思就行
getList()是调用下面方法的名字
<el-input type="text"
                  placeholder="查找你需要的试题名称"
                  v-model="queryInput"
                  @input="getList(queryInput)"></el-input>

 

 

 

模糊搜索  接口版_List_03