<template><PageNationTable :handleChangePage="handleChangePage":data="pageData"><!-- normal element table here --><el-table :data="tableData" style="width: 100%;" height="100%"><el-table-column prop="id" label="id" width="120"/><el-table-column prop="roleName" label="角色名" width="120"/><el-table-column prop="roleDescription" label="描述" width="120"/><el-table-column prop="createTime" label="创建时间" width="200"/><el-table-column prop="updateTime" label="更新时间" width="200"/></el-table></PageNationTable></template><script setup>import PageNationTable from'../components/PageNationTable.vue';import{ reactive, ref }from'vue'import http from'../../http'// fetch data -> get data and page info -> ref([])// -> show in table // -> pass to this compoment to show paginationconst tableData =ref([])// 定义分页参数const pageData =reactive({page:1,size:2,total:0});// 页码点击事件functionhandleChangePage(e){pageData.page = efetchRoles()}// 页面数据查询接口fetchRoles()asyncfunctionfetchRoles(){const res =await http.get('/api/role/list?'+newURLSearchParams({pageNum: pageData.page, pageSize: pageData.size}))const{ list, page, total }= res.data;pageData.page = pagepageData.total = totaltableData.value = list
}</script><style></style>
记录时使用的PyCharm版本: PyCharm 2024.3 (Professional Edition) Build #PY-243.21565.199, built on November 13, 2024 问题描述
当在PyCharm里使用pickle保存文件, 比如以下代码这样: with open(meta_save_path, wb) as f:pickle.dump(meta, f)会发现PyCharm对此发出类型…
一、Spring MVC 架构概述 Spring MVC 是一个基于 Java 的轻量级 Web 应用框架,它遵循了经典的 MVC(Model-View-Controller)设计模式,将请求、响应和业务逻辑分离,从而构建出灵活可维护的 Web 应用程序。
在 Spring MV…