spring
8 天以前 646135b9c54d6ccf5d47af30bf208bdfe5005017
src/pages/index/index.vue
@@ -93,6 +93,7 @@
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,
@@ -200,6 +201,12 @@
    url: "/pages/routingInspection/index",
    show: false,
  },
  {
    icon: "/static/icons/log.png",
    title: "出库",
    url: "/pages/outbound/index",
    show: true,
  },
]);
// 加载访问统计数据
@@ -249,6 +256,16 @@
  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;