| | |
| | | }); |
| | | 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; |
| | | }, |
| | | // 监听单元格点击事件并存储正在编辑的行 |