zhangwencui
6 天以前 b973bcee308e99b5fd8a69640f11069e810346f4
src/pages/managementMeetings/meetSummary/index.vue
@@ -102,7 +102,7 @@
    getMeetingPublish,
    getRoomEnum,
  } from "@/api/managementMeetings/meetExamine";
  import { getStaffOnJob } from "@/api/personnelManagement/onboarding";
  import { staffOnJobListPage } from "@/api/personnelManagement/onboarding";
  import { onShow } from "@dcloudio/uni-app";
  import useUserStore from "@/store/modules/user";
  import dayjs from "dayjs";
@@ -138,10 +138,10 @@
  const staffList = ref([]);
  // 员工列表查询
  const getStaffOnJobList = () => {
    return getStaffOnJob()
    return staffOnJobListPage()
      .then(res => {
        console.log(res.data, "res.data");
        staffList.value = res.data;
        staffList.value = res.data.records;
      })
      .catch(() => {
        closeToast();
@@ -169,12 +169,13 @@
          it.meetingTime = `${it.meetingDate} ${dayjs(it.startTime).format(
            "HH:mm:ss"
          )} ~ ${dayjs(it.endTime).format("HH:mm:ss")}`;
          console.log(staffList.value, "staffList.value");
          it.participants = staffList.value
            .filter(staff => staffs.some(id => id == staff.id))
            .map(staff => {
              return {
                id: staff.id,
                name: `${staff.staffName}(${staff.postJob})`,
                name: `${staff.staffName}(${staff.postName})`,
              };
            });
          console.log(it, "it2");