Skip to content

Commit

Permalink
feat(equipmentCloud): 修復設備列表查询条件更新后pagination组件不更新
Browse files Browse the repository at this point in the history
  • Loading branch information
h7ml committed Jun 29, 2022
1 parent 552cf56 commit 131ecfd
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.EN.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## [4.5.4](https://github.com/dgiot/dgiot-dashboard/compare/v4.5.5...v4.5.4) (2022-06-27)
## [4.5.4](https://github.com/dgiot/dgiot-dashboard/compare/v4.5.5...v4.5.4) (2022-06-28)


### Bug Fixes
Expand All @@ -14,6 +14,7 @@

### Features

* **统计功能:** 添加友盟统计 ([b0cd74d](https://github.com/dgiot/dgiot-dashboard/commit/b0cd74d8ea9454da3dec28447c46a2287a8b08c9))
* **cloudPressure:** 压测报告生成添加等待时间 优化loading ([2969b9b](https://github.com/dgiot/dgiot-dashboard/commit/2969b9b605b24507300bfcbb48515ec6fc4a1a80))
* **components:** 百度地图 ([2028435](https://github.com/dgiot/dgiot-dashboard/commit/2028435e76e2a7de221266fa54b40d793c9495cb))
* **components:** 设备管理 ([0a9756c](https://github.com/dgiot/dgiot-dashboard/commit/0a9756cadaa45a0796f345fa064c1f1f239af7ee))
Expand Down
3 changes: 2 additions & 1 deletion CHANGELOG.ZH.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## [4.5.4](https://github.com/dgiot/dgiot-dashboard/compare/v4.5.5...v4.5.4) (2022-06-27)
## [4.5.4](https://github.com/dgiot/dgiot-dashboard/compare/v4.5.5...v4.5.4) (2022-06-28)


### Bug Fixes
Expand All @@ -14,6 +14,7 @@

### Features

* **统计功能:** 添加友盟统计 ([b0cd74d](https://github.com/dgiot/dgiot-dashboard/commit/b0cd74d8ea9454da3dec28447c46a2287a8b08c9))
* **cloudPressure:** 压测报告生成添加等待时间 优化loading ([2969b9b](https://github.com/dgiot/dgiot-dashboard/commit/2969b9b605b24507300bfcbb48515ec6fc4a1a80))
* **components:** 百度地图 ([2028435](https://github.com/dgiot/dgiot-dashboard/commit/2028435e76e2a7de221266fa54b40d793c9495cb))
* **components:** 设备管理 ([0a9756c](https://github.com/dgiot/dgiot-dashboard/commit/0a9756cadaa45a0796f345fa064c1f1f239af7ee))
Expand Down
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## [4.5.4](https://github.com/dgiot/dgiot-dashboard/compare/v4.5.5...v4.5.4) (2022-06-27)
## [4.5.4](https://github.com/dgiot/dgiot-dashboard/compare/v4.5.5...v4.5.4) (2022-06-28)


### Bug Fixes
Expand All @@ -14,6 +14,7 @@

### Features

* **统计功能:** 添加友盟统计 ([b0cd74d](https://github.com/dgiot/dgiot-dashboard/commit/b0cd74d8ea9454da3dec28447c46a2287a8b08c9))
* **cloudPressure:** 压测报告生成添加等待时间 优化loading ([2969b9b](https://github.com/dgiot/dgiot-dashboard/commit/2969b9b605b24507300bfcbb48515ec6fc4a1a80))
* **components:** 百度地图 ([2028435](https://github.com/dgiot/dgiot-dashboard/commit/2028435e76e2a7de221266fa54b40d793c9495cb))
* **components:** 设备管理 ([0a9756c](https://github.com/dgiot/dgiot-dashboard/commit/0a9756cadaa45a0796f345fa064c1f1f239af7ee))
Expand Down
11 changes: 6 additions & 5 deletions src/views/DeviceCloud/manage/home_index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -563,11 +563,9 @@
</el-button>
</template>
</el-table-column>
<template #empty>
<el-image class="dgiot-data-empty" />
</template>
</el-table>
<el-pagination
:key="paginationKey"
background
:current-page="queryForm.size"
:layout="layout"
Expand Down Expand Up @@ -639,6 +637,7 @@
},
data() {
return {
paginationKey: moment(new Date()).valueOf() + '',
upkey: moment(new Date()).valueOf() + '',
dialog_device: false,
mapLabel: {
Expand Down Expand Up @@ -1168,9 +1167,11 @@
this.queryForm.skip = Number(val - 1) * Number(this.queryForm.limit)
this.fetchData()
},
handleQuery() {
async handleQuery() {
this.queryForm.limit = 20
this.fetchData()
this.queryForm.skip = 0
this.paginationKey = moment(new Date()).valueOf() + ''
await this.fetchData()
},
async fetchData() {
console.log(this.queryForm)
Expand Down

0 comments on commit 131ecfd

Please sign in to comment.