diff --git a/src/api/ibp.js b/src/api/ibp.js index a3b1bea69..151a92d13 100644 --- a/src/api/ibp.js +++ b/src/api/ibp.js @@ -83,3 +83,11 @@ export function copyIbpData(data) { data: data }); } + +// 删除ibp数据绘图数据(发布的) +export function deletePublishIbp(id) { + return request({ + url: `/api/ibp/${id}`, + method: 'delete' + }); +} diff --git a/src/components/QueryListPage/QueryListPage.vue b/src/components/QueryListPage/QueryListPage.vue index 4554a1097..3352b8582 100644 --- a/src/components/QueryListPage/QueryListPage.vue +++ b/src/components/QueryListPage/QueryListPage.vue @@ -463,10 +463,14 @@ export default { if (this.queryList.afterQuery && this.queryList.afterQuery instanceof Function) { this.queryList.afterQuery(response.data); } - const resultData = response.data; this.$set(this.queryList, 'data', resultData.list); this.$set(this.queryList, 'total', resultData.total); + if (resultData.pageNum) { + this.pageIndex = resultData.pageNum; + this.queryData[this.currentpagerConfig.pageIndex] = resultData.pageNum; + } + }).catch(() => { self.enableQuery(); }); diff --git a/src/views/publish/publishIBP/index.vue b/src/views/publish/publishIBP/index.vue index 60731ef89..2c8cea038 100644 --- a/src/views/publish/publishIBP/index.vue +++ b/src/views/publish/publishIBP/index.vue @@ -4,7 +4,8 @@