From bf1e938e3111404d63e046df3a2403bbd7001931 Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期一, 06 十一月 2023 14:51:12 +0800 Subject: [PATCH] 主数据分页完善 --- Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue b/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue index 2a5807d..bdcca1e 100644 --- a/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue +++ b/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue @@ -693,25 +693,24 @@ }); const endTime = performance.now(); this.elapsedTime = Math.floor(endTime - startTime) * 1; - console.log(this.elapsedTime) this.page.total = res.data.total; this.data = res.data.data; this.tableData = res.data.data; }, async handleSizeChange(val) { - this.isLoading = true; - await this.CrudRend(); this.page.pageSize = val; this.$emit("pageSize", val); + this.isLoading = true; + await this.CrudRend(); this.isLoading = false; }, async handleCurrentChange(val) { - this.isLoading = true; - await this.CrudRend(); this.page.currentPage = val; this.$emit("currentPage", val); + this.isLoading = true; + await this.CrudRend(); this.isLoading = false; }, // 鐩戝惉鍗曞厓鏍肩偣鍑讳簨浠跺苟瀛樺偍姝e湪缂栬緫鐨勮 -- Gitblit v1.9.3