提交 8795b368 authored 作者: lihuihui's avatar lihuihui

update

上级 66cbb47e
<template> <template>
<el-card> <el-card>
<el-input v-model="queryItem" style="margin-bottom: 10px; width: 200px" clearable></el-input> <el-input v-model="queryItem" style="margin-bottom: 10px; width: 200px" clearable></el-input>
<el-button type="primary" size="small" style="margin-left: 10px" @click="getExamParerList">搜索</el-button> <el-button type="primary" size="small" style="margin-left: 10px" @click="handleSearch">搜索</el-button>
<el-button type="plain" size="small" @click="restValue">重置</el-button> <el-button type="plain" size="small" @click="restValue">重置</el-button>
<el-transfer :data="ExamParerList" :titles="['备选栏', '已选栏']" style="margin-top: 10px"> </el-transfer> <el-transfer :data="ExamParerList" :titles="['备选栏', '已选栏']" style="margin-top: 10px"> </el-transfer>
<el-pagination <el-pagination
...@@ -54,6 +54,10 @@ export default { ...@@ -54,6 +54,10 @@ export default {
}, },
methods: { methods: {
handleSearch() {
this.page = 1
this.getExamParerList()
},
handleChange() {}, handleChange() {},
restValue() { restValue() {
this.queryItem = '' this.queryItem = ''
...@@ -65,7 +69,7 @@ export default { ...@@ -65,7 +69,7 @@ export default {
}, },
// 获取试卷列表 // 获取试卷列表
getExamParerList() { getExamParerList() {
const params = { q: this.queryItem, page: 1, 'per-page': this.limit } const params = { q: this.queryItem, page: this.page, 'per-page': this.limit }
this.ExamParerList = [] this.ExamParerList = []
getExamPaperList(params).then(res => { getExamPaperList(params).then(res => {
this.total = res.data.total this.total = res.data.total
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论