| | |
| | | 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"; |
| | |
| | | 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(); |
| | |
| | | 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"); |