Browse Source

地图页面修改

lihongxiao 2 years ago
parent
commit
74b38c33f5
2 changed files with 4 additions and 2 deletions
  1. 2 1
      src/views/PeopleManage/PcLoginRecord.vue
  2. 2 1
      src/views/PeopleManage/UserMap.vue

+ 2 - 1
src/views/PeopleManage/PcLoginRecord.vue

@@ -1000,6 +1000,7 @@ export default {
     },
     markerClick(e,) {
       let _this = this
+      _this.personnelPageNum=1
       this.position = e.target._position
       // _this.morelFun()
       let data = {
@@ -1011,7 +1012,7 @@ export default {
         queryId: this.deptPeopleId,
         type: this.deptPeopleType,
         lng: e.target._position[0], lat: e.target._position[1], source: this.source, pageSize: 3,
-        pageNum: this.personnelPageNum, ...data
+        pageNum: 1, ...data
       })
         .then(res => {
           if (res.code == 200) {

+ 2 - 1
src/views/PeopleManage/UserMap.vue

@@ -922,6 +922,7 @@ export default {
     },
     markerClick(e) {
       let _this = this
+      // personnelPageNum.personnelPageNum=1
       this.position = e.target._position
       let data = {
         startTime: this.historyData.length > 0 && this.positionType == 2 ? this.historyData[0] : '',
@@ -932,7 +933,7 @@ export default {
         queryId: this.deptPeopleId,
         type: this.deptPeopleType,
         lng: e.target._position[0], lat: e.target._position[1], pageSize: 3,
-        pageNum: this.personnelPageNum, ...data
+        pageNum: 1, ...data
       })
         .then(res => {
           if (res.code == 200) {