wangxinyuan^2
Qin Dong Ming 2024-08-23 20:52:57 +08:00
parent 30fdb2543a
commit 3f5e8297db
1 changed files with 51 additions and 0 deletions

View File

@ -151,6 +151,47 @@
</el-table> </el-table>
<!-- 分页-->
<el-pagination
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page="engineReq.pageNum"
:page-sizes="[1, 2, 3, 4, 5]"
:page-size="engineReq.pageSize"
layout="total, sizes, prev, pager, next, jumper"
:total="total">
</el-pagination>
</div> </div>
</template> </template>
@ -185,6 +226,16 @@ export default {
watch: {}, watch: {},
//", //",
methods: { methods: {
handleSizeChange(val) {
console.log(`每页 ${val}`);
this.engineReq.pageSize = val;
this.findSelectSourceList();
},
handleCurrentChange(val) {
console.log(`当前页: ${val}`);
this.engineReq.pageNum = val;
this.findSelectSourceList();
},
insert(){ insert(){
this.dialogFormVisible = true this.dialogFormVisible = true
insert(this.engine).then(res =>{ insert(this.engine).then(res =>{