Bläddra i källkod

fix 项目迁移

scorpio 3 år sedan
förälder
incheckning
1b5cf43e17
1 ändrade filer med 3 tillägg och 4 borttagningar
  1. 3 4
      src/views/home/component/dash.vue

+ 3 - 4
src/views/home/component/dash.vue

@@ -159,7 +159,6 @@ export default {
       data: [],
       form: {},
       option: {
-        calcHeight: 230,
         refreshBtn: false,
         tip: false,
         columnBtn: false,
@@ -283,8 +282,9 @@ export default {
     },
     onLoad (query = {}) {
       this.loading = true
-      const data = { ...query, ...this.page }
-      this.$api.project.projectList(this.page.current, this.page.size, data).then(res => {
+      const data = { ...query }
+      console.log(data)
+      this.$api.project.projectList(this.page.currentPage, this.page.pageSize, data).then(res => {
         this.loading = false
         if (res.code === 200) {
           this.data = res.data.content
@@ -313,7 +313,6 @@ export default {
     },
     currentChange (currentPage) {
       this.page.current = currentPage
-      console.log(this.page)
     },
     sizeChange (pageSize) {
       this.page.size = pageSize