zouooh 1 year ago
parent
commit
b2ee687c51

+ 4 - 3
src/pages/index/components/data_docking.vue

@@ -110,7 +110,7 @@ export default {
110
   },
110
   },
111
   methods: {
111
   methods: {
112
     handlePageChange() {
112
     handlePageChange() {
113
-      this.getTableData()
113
+      this.dashDataDockingPage()
114
     },
114
     },
115
     handleEdit(row) {
115
     handleEdit(row) {
116
       this.title = '修改配置'
116
       this.title = '修改配置'
@@ -140,9 +140,10 @@ export default {
140
       })
140
       })
141
     },
141
     },
142
     dashDataDockingPage() {
142
     dashDataDockingPage() {
143
-     api.dashDataDockingPage().then(res => {
143
+      const {pageNum, pageSize} = this
144
+     api.dashDataDockingPage({current: pageNum, size: pageSize}).then(res => {
144
         this.tableData = res.data.records
145
         this.tableData = res.data.records
145
-       console.log(res.data.records)
146
+        this.total = res.data.total
146
       })
147
       })
147
     },
148
     },
148
   }
149
   }

+ 1 - 1
src/pages/index/components/service_publish.vue

@@ -110,7 +110,7 @@ export default {
110
     },
110
     },
111
     getTableData() {
111
     getTableData() {
112
       const {pageNum, pageSize, searchWords} = this
112
       const {pageNum, pageSize, searchWords} = this
113
-      api.serviceListByPage({pageNum, pageSize, resourceName: searchWords}).then(res => {
113
+      api.serviceListByPage({current: pageNum, size: pageSize, resourceName: searchWords}).then(res => {
114
         this.tableData = res.data.records || []
114
         this.tableData = res.data.records || []
115
         this.total = res.data.total
115
         this.total = res.data.total
116
       })
116
       })