Zimo 2 месяцев назад
Родитель
Сommit
6a6e5d6ee2
1 измененных файлов с 17 добавлено и 23 удалено
  1. 17 23
      src/components/home/CardItem.vue

+ 17 - 23
src/components/home/CardItem.vue

@@ -130,27 +130,27 @@ const props = defineProps<{
 
 // 创建图标映射表
 const iconMap: Record<string, string> = {
-  OA办公系统: oaimage,
-  经营驾驶舱: driveimage,
-  战略解码与执行: zhanlueimage,
+  "OA办公系统": oaimage,
+  "经营驾驶舱": driveimage,
+  "战略解码与执行": zhanlueimage,
   "财务管理(收入、成本、应收账款)": erpimage,
-  技术研发管理: jishuimage,
+  "技术研发管理": jishuimage,
   "客户管理(CRM)": crmimage,
   "人力资源(EHR)": ehrimage,
   "供应链管理(SCM)": scmimage,
-  组织资产管理: zuzhiimage,
+  "组织资产管理": zuzhiimage,
   "风控、合规管理": safeimage,
-  中航北斗智慧管理系统: zhonghangimage,
-  智能钻井系统: zuanjingimage,
-  智能压裂系统: yalieimage,
-  智能注气系统: zhuqiimage,
-  智能连油系统: lianyouimage,
+  "中航北斗智慧管理系统": zhonghangimage,
+  "智能钻井系统": zuanjingimage,
+  "智能压裂系统": yalieimage,
+  "智能注气系统": zhuqiimage,
+  "智能连油系统": lianyouimage,
   "QHSE (安全监控、应急指挥)": qhseimage,
   "设备管理系统 (PMS)": pmsimage,
   "项目管理 (PM)": pmimage,
   "全局数据治理 (数据中台)": dataimage,
-  智能决策: thinkimage,
-  行业AI大模型: aiimage,
+  "智能决策": thinkimage,
+  "行业AI大模型": aiimage,
   "AI智能体 (智能交互)": agentimage,
 };
 const isSpecialSystem = (label: string) => {
@@ -193,7 +193,7 @@ const handleView = async (item: Item) => {
       if (res) {
         window.open(
           "https://yfoa.keruioil.com/wui/index.html?ssoToken=" + res + "#/main",
-          "_blank",
+          "_blank"
         );
       }
     } else {
@@ -213,7 +213,7 @@ const handleView = async (item: Item) => {
         import.meta.env.VITE_PMS_URL +
           "/portalLogin?username=" +
           userStore.getUser.username,
-        "_blank",
+        "_blank"
       );
     } else {
       console.log("未登录");
@@ -232,23 +232,17 @@ const handleView = async (item: Item) => {
   if (item.label === "智能连油系统") {
     const extraParam = "source=zhly";
     if (userStore.getUser.username && getAccessToken()) {
-      // window.open(
-      //   "https://iot.deepoil.cc/portalLogin?username=" +
-      //     userStore.getUser.username +
-      //     "&" +
-      //     extraParam,
-      //   "_blank",
-      // );
       window.open(
         import.meta.env.VITE_PMS_URL +
           "/portalLogin?username=" +
           userStore.getUser.username +
           "&" +
           extraParam,
-        "_blank",
+        "_blank"
       );
     } else {
-      window.open(import.meta.env.VITE_PMS_URL + "?" + extraParam, "_blank");
+      router.push({ path: "/login" });
+      // window.open(import.meta.env.VITE_PMS_URL + "?" + extraParam, "_blank");
     }
   }
 };