From f7f25f593a731ea71e307257f5cec3ba562dacda Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期四, 04 十二月 2025 11:10:39 +0800
Subject: [PATCH] fix: 杆领用,型号选择下拉框
---
src/pages/index/index.vue | 26 ++++++++++++++++++++++----
1 files changed, 22 insertions(+), 4 deletions(-)
diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue
index 4e045ba..111981c 100644
--- a/src/pages/index/index.vue
+++ b/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,15 +256,26 @@
checkVersion();
const { data } = await HomeApi.getIndex();
+ // 瀛樺偍鐝粍ID鍜岀敓浜у噯澶嘔D
+ if (data) {
+ if (data.id) {
+ setTeamId(data.id);
+ }
+ if (data.prepareId) {
+ setPrepareId(data.prepareId);
+ }
+ }
+
// 鍒ゆ柇鏄惁涓哄贰妫�鍛樿鑹�
- if (isInspector.value) {
- // 濡傛灉鏄贰妫�鍛橈紝鏄剧ず宸℃鑿滃崟
- navList[2].show = true;
- } else if (data.deviceGroupName == "鏃舵晥缁�") {
+ if (data.deviceGroupName == "鏃舵晥缁�") {
navList[1].show = true;
} else {
navList[0].show = true;
}
+ if (isInspector.value) {
+ // 濡傛灉鏄贰妫�鍛橈紝鏄剧ず宸℃鑿滃崟
+ navList[2].show = true;
+ }
};
/**
--
Gitblit v1.9.3