| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { getListestaff } from "@/api/securityCompany/securityCompany"; |
| | | export default { |
| | | props: ["form"], |
| | | data() { |
| | | return { |
| | | staffOption: { |
| | |
| | | |
| | | align: "center", |
| | | height: "auto", |
| | | calcHeight: 250, |
| | | calcHeight: 270, |
| | | tip: false, |
| | | searchShow: false, |
| | | searchMenuSpan: 4, |
| | |
| | | methods: { |
| | | staffOnLoad(page, params = {}) { |
| | | this.staffLoading = true; |
| | | // getstaffList( |
| | | // page.currentPage, |
| | | // page.pageSize, |
| | | // Object.assign(params, this.staffQuery), |
| | | // this.form.creditcode |
| | | // ).then((res) => { |
| | | // const data = res.data.data; |
| | | getListestaff( |
| | | page.currentPage, |
| | | page.pageSize, |
| | | Object.assign(params, this.staffQuery), |
| | | this.form.departmentid |
| | | ).then((res) => { |
| | | const data = res.data.data; |
| | | |
| | | // this.staffPage.total = data.total; |
| | | // this.staffData = data.records; |
| | | this.staffLoading = false; |
| | | // this.$refs.staffCrud.refreshTable(); |
| | | // this.$refs.staffCrud.doLayout(); |
| | | // this.staffSelectionClear(); |
| | | // }); |
| | | this.staffPage.total = data.total; |
| | | this.staffData = data.records; |
| | | console.log(this.staffData, "staffData"); |
| | | this.staffLoading = false; |
| | | this.$refs.staffCrud.refreshTable(); |
| | | this.$refs.staffCrud.doLayout(); |
| | | this.staffSelectionClear(); |
| | | }); |
| | | }, |
| | | staffSelectionClear() { |
| | | this.staffSelectionList = []; |