diff --git a/frontend/src/performance/components/project/MsProject.vue b/frontend/src/performance/components/project/MsProject.vue
index d96d48226c..d511b059c5 100644
--- a/frontend/src/performance/components/project/MsProject.vue
+++ b/frontend/src/performance/components/project/MsProject.vue
@@ -24,6 +24,23 @@
+
@@ -58,6 +75,9 @@
condition: "",
items: [],
form: {},
+ currentPage: 1,
+ pageSize: 5,
+ total: 0,
rules: {
name: [
{required: true, message: '请输入项目名称', trigger: 'blur'},
@@ -115,10 +135,17 @@
});
},
list() {
- this.$post("/project/list/1/10", {}, (response) => {
+ let url = "/project/list/" + this.currentPage + '/' + this.pageSize;
+ this.$post(url, {}, (response) => {
this.items = response.data;
})
- }
+ },
+ handleSizeChange(size) {
+ this.pageSize = size;
+ },
+ handleCurrentChange(current) {
+ this.currentPage = current;
+ },
}
}