| | |
| | | <u-checkbox v-for="option in employees" |
| | | :key="option.id" |
| | | :name="option.id" |
| | | :label="`${option.staffName} (${option.postJob})`" |
| | | :label="`${option.staffName} (${option.postName})`" |
| | | class="checkbox-item"></u-checkbox> |
| | | </view> |
| | | </u-checkbox-group> |
| | |
| | | saveMeetingApplication, |
| | | getRoomEnum, |
| | | } from "@/api/managementMeetings/meeting"; |
| | | import { getStaffOnJob } from "@/api/personnelManagement/onboarding"; |
| | | import { staffOnJobListPage } from "@/api/personnelManagement/onboarding"; |
| | | import dayjs from "dayjs"; |
| | | |
| | | const userStore = useUserStore(); |
| | |
| | | initPageData(); |
| | | initTimeOptions(); |
| | | getMeetingRooms(); |
| | | getStaffOnJob().then(res => { |
| | | employees.value = res.data.sort((a, b) => |
| | | a.postJob.localeCompare(b.postJob) |
| | | staffOnJobListPage().then(res => { |
| | | console.log(res.data.records, "res.data.records"); |
| | | employees.value = res.data.records.sort((a, b) => |
| | | a.postName.localeCompare(b.postName) |
| | | ); |
| | | console.log(employees.value, "employees.value"); |
| | | }); |
| | | }); |
| | | |