| | |
| | | </template> |
| | | |
| | | <script> |
| | | import {getList, getDetail, add, update, remove} from "@/api/applicationCarChange/applicationCarChange"; |
| | | import {getPage, getDetail, add, update, remove} from "@/api/applicationCarChange/applicationCarChange"; |
| | | import option from "@/const/applicationCarChange/applicationCarChange"; |
| | | import {mapGetters} from "vuex"; |
| | | |
| | |
| | | }, |
| | | onLoad(page, params = {}) { |
| | | this.loading = true; |
| | | getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => { |
| | | getPage(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => { |
| | | const data = res.data.data; |
| | | this.page.total = data.total; |
| | | this.data = data.records; |
| | | //转换数据类型 |
| | | this.data.forEach(e=>{ |
| | | e.status = e.status.toString() |
| | | }) |
| | | this.loading = false; |
| | | this.selectionClear(); |
| | | }); |