Browse Source

优化项目详情任务列表分页

qinzhipeng_v 5 years ago
parent
commit
d1c2baa825

+ 1 - 1
src/apiConfig/api.js

@@ -7,7 +7,7 @@ export const mockUrl = 'http://10.179.24.176:8980' // 线下
 export const qualityUrl = 'http://10.179.181.103:8898' // 质量度量
 
 // export const HMvehicleUrl = 'http://10.96.113.197:9999' // 电单车 线下
-export const HMvehicleUrl = 'http://10.179.91.236:9999' // 电单车 线上
+export const HMvehicleUrl = 'http:// 10.179.181.103:9999' // 电单车 线上
 
 // -----------------------------------------2.0-----------------------------------------------
 

+ 1 - 1
src/apiConfig/virtualDevices.js

@@ -1,3 +1,3 @@
 /*eslint-disable*/ //规避eslint的检查,如没有eslint可不写
-export const mockUrl = 'http://10.179.91.236:9999/virtual-devices' // 线上
+export const mockUrl = 'http:// 10.179.181.103:9999/virtual-devices' // 线上
 // export const mockUrl = 'http://10.96.113.197:9999/virtual-devices' // 线下

+ 5 - 3
src/views/projectManage/projectList/projectViewDetails.vue

@@ -324,7 +324,7 @@
               <el-pagination
                 background
                 :page-sizes="[15, 20, 25, 30]"
-                :page-size="100"
+                :page-size="15"
                 layout="total, prev, pager, next, jumper"
                 :total="total"
                 @size-change="handleSizeChange"
@@ -773,8 +773,8 @@ export default {
       this.projectId = url.split('?id=')
       projectList({
         id: Number(this.projectId[1]),
-        curIndex: 1,
-        pageSize: 15
+        curIndex: this.curIndex,
+        pageSize: this.pageSize
       }).then(res => {
         this.form_query = res.data[0]
         this.project_from = res.data[0]
@@ -1086,9 +1086,11 @@ export default {
     },
     handleSizeChange(size) { //  分页
       this.pageSize = size
+      this.get_list()
     },
     handleCurrentChange(curIndex) { //  分页
       this.curIndex = curIndex
+      this.get_list()
     }
   }
 }