| | |
| | | import WorkerCallingCard from "@/components/worker-calling-card/index.vue"; |
| | | import HomeApi from "@/api/home"; |
| | | import { useUserStore } from "@/store/modules/user"; |
| | | import { setTeamId, setPrepareId } from "@/utils/cache"; |
| | | |
| | | const visitStatsData = ref<VisitStatsVO>({ |
| | | todayUvCount: 0, |
| | |
| | | url: "/pages/routingInspection/index", |
| | | show: false, |
| | | }, |
| | | { |
| | | icon: "/static/icons/log.png", |
| | | title: "出库", |
| | | url: "/pages/outbound/index", |
| | | show: true, |
| | | }, |
| | | ]); |
| | | |
| | | // 加载访问统计数据 |
| | |
| | | checkVersion(); |
| | | const { data } = await HomeApi.getIndex(); |
| | | |
| | | // 存储班组ID和生产准备ID |
| | | if (data) { |
| | | if (data.id) { |
| | | setTeamId(data.id); |
| | | } |
| | | if (data.prepareId) { |
| | | setPrepareId(data.prepareId); |
| | | } |
| | | } |
| | | |
| | | // 判断是否为巡检员角色 |
| | | if (data.deviceGroupName == "时效组") { |
| | | navList[1].show = true; |