| | |
| | | </div> |
| | | </div> |
| | | <div class="table"> |
| | | <TableCard :showForm="false" :showTitle="false"> |
| | | <template v-slot:table> |
| | | <limsTable |
| | | :column="tableColumn" |
| | | :table-data="tableData" |
| | | :table-loading="tableLoading" |
| | | :page="page" |
| | | style="padding: 0 15px" |
| | | > |
| | | </limsTable> |
| | | </template> |
| | | </TableCard> |
| | | <limsTable |
| | | :column="tableColumn" |
| | | :table-data="tableData" |
| | | :table-loading="tableLoading" |
| | | :page="page" |
| | | style="padding: 0 15px" |
| | | :height="'calc(100vh - 290px)'" |
| | | @pagination="pagination" |
| | | > |
| | | </limsTable> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | |
| | | <script> |
| | | import { getYearAndMonthAndDays } from "@/utils/date"; |
| | | import TableCard from "@/components/TableCard/index.vue"; |
| | | import limsTable from "@/components/Table/lims-table.vue"; |
| | | import { selectAuxiliaryAllByMonth } from "@/api/performance/manHour"; |
| | | export default { |
| | | components: { |
| | | limsTable, |
| | | TableCard, |
| | | limsTable |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | selectAuxiliaryAllByMonth(this.queryParams) |
| | | .then((res) => { |
| | | this.tableLoading = false; |
| | | if (res.code === 201) return; |
| | | this.tableData = res.data; |
| | | }) |
| | | .catch(() => { |
| | |
| | | this.refreshTable(); |
| | | }, |
| | | // 分页 |
| | | handleCurrent(page) { |
| | | this.pagination.curent = page; |
| | | this.refreshTable(); |
| | | }, |
| | | handleSizeChange(size) { |
| | | this.pagination.pageSize = size; |
| | | pagination({ page, limit }) { |
| | | this.page.current = page; |
| | | this.page.size = limit; |
| | | this.refreshTable(); |
| | | }, |
| | | }, |