src/views/securityCompany/computents/staff.vue
@@ -18,7 +18,9 @@
</template>
<script>
import { getListestaff } from "@/api/securityCompany/securityCompany";
export default {
  props: ["form"],
  data() {
    return {
      staffOption: {
@@ -32,7 +34,7 @@
        align: "center",
        height: "auto",
        calcHeight: 250,
        calcHeight: 270,
        tip: false,
        searchShow: false,
        searchMenuSpan: 4,
@@ -254,21 +256,22 @@
  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 = [];