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