This commit is contained in:
zhaofang
2022-06-14 14:25:57 +08:00
parent 564a16d2e2
commit 0e03f453be

View File

@@ -5,7 +5,6 @@
<div style="padding:10px 0px 12px 2px">
<el-row>
<el-col :span="24">
<el-input clearable placeholder="搜索名称" v-model="keyword"></el-input>
<el-button type="primary" icon="el-icon-search" @click="getData()">搜索</el-button>
<el-button type="primary" icon="el-icon-refresh-right" @click="reset">重置</el-button>
@@ -29,21 +28,24 @@
</el-col>
</el-row>
<div v-if="testList.length > 0 " style="height:150px; text-align: center; margin-top: 10px; " >
<el-pagination
background
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:page-sizes="[9, 18, 27, 36]"
:current-page="page"
:page-size="size"
layout="total, sizes, prev, pager, next, jumper"
:total="total"
>
</el-pagination>
</div>
<div v-if="testList.length > 0 " style="height:150px; text-align: center; margin-top: 10px; " >
<el-pagination
background
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:page-sizes="[9, 18, 27, 36]"
:current-page="page"
:page-size="size"
layout="total, sizes, prev, pager, next, jumper"
:total="total">
</el-pagination>
</div>
<div v-else>
<div v-if="testList.length == 0">
<div v-if="isSearh" class="zan-wu">没有查询到相关内容</div>
<div v-else class="zan-wu">暂无数据</div>
</div>
</div>
</div>
</template>
@@ -54,6 +56,7 @@
export default {
data(){
return {
isSearh:false,
keyword:'',
testList:'',
total:0,
@@ -83,6 +86,7 @@
window.open(`${this.webBaseUrl}/course/boeframe?id=${item.id}&type=quizsummary`)
},
getData() {
this.isSearh = true;
this.page=1;
this.findList();
},