|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | getList(buildingId) { | 
|---|
|  |  |  | getList(page) { | 
|---|
|  |  |  | const { pagination, id } = this | 
|---|
|  |  |  | // this.buildingId = | 
|---|
|  |  |  | let capacity = pagination.pageSize | 
|---|
|  |  |  | let page = pagination.page | 
|---|
|  |  |  | fetchList({ capacity, page, model: { buildingId: id } }).then(res => { | 
|---|
|  |  |  | let paget = page ||  pagination.page | 
|---|
|  |  |  | fetchList({ capacity, page: paget, model: { buildingId: id } }).then(res => { | 
|---|
|  |  |  | this.list = res.records | 
|---|
|  |  |  | this.pagination.total = res.total | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | editClick(row) { | 
|---|
|  |  |  | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | handleSizeChange(capacity) { | 
|---|
|  |  |  | this.pagination.pageSize = capacity | 
|---|
|  |  |  | this.getList() | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|