yanghao 2 luni în urmă
părinte
comite
0db27989cf
2 a modificat fișierele cu 38 adăugiri și 55 ștergeri
  1. 1 1
      .env.dev
  2. 37 54
      src/components/home/CardItem.vue

+ 1 - 1
.env.dev

@@ -1,2 +1,2 @@
-VITE_BASE_URL='https://iot.deepoil.cc'
+VITE_BASE_URL='http://iot.deepoil.cc:5172'
 VITE_PMS_URL='https://iot.deepoil.cc'

+ 37 - 54
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) => {
@@ -178,45 +178,12 @@ const goDetail = () => {
   }
 };
 
-// 根据标签获取系统描述
-const getDescriptionByLabel = (label: string): string => {
-  const descriptions: Record<string, string> = {
-    // 经营管理平台
-    "OA办公系统": "集成日常办公自动化功能,提高工作效率",
-    "经营驾驶舱": "实时展示企业运营数据,辅助管理层决策",
-    "战略解码与执行": "将企业战略转化为具体行动计划并跟踪执行",
-    "财务管理(收入、成本、应收账款)": "全面管理企业财务状况,控制成本和风险",
-    "技术研发管理": "管理企业研发项目和技术资产",
-    "客户管理(CRM)": "管理客户关系,提升销售业绩",
-    "人力资源(EHR)": "企业人力资源全生命周期管理",
-    "供应链管理(SCM)": "优化供应链运作,降低采购成本",
-    "组织资产管理": "管理企业组织架构和各类资产",
-    "风控、合规管理": "识别并控制企业运营风险,确保合规运营",
-
-    // 生产指挥平台
-    "中航北斗智慧管理系统": "利用北斗定位技术实现精准生产管理",
-    "智能钻井系统": "智能化钻井作业管理,提高钻井效率",
-    "智能压裂系统": "自动化压裂作业控制系统",
-    "智能注气系统": "智能化气体注入管理",
-    "智能连油系统": "连续油管作业智能管理",
-    "QHSE (安全监控、应急指挥)": "质量、健康、安全和环境综合管理",
-    "设备管理系统 (PMS)": "生产设备维护和管理",
-    "项目管理 (PM)": "工程项目全周期管理",
-
-    // Chat BI平台
-    "全局数据治理 (数据中台)": "建立统一的数据治理体系和数据中台",
-    "智能决策": "基于数据分析的智能决策支持",
-    "行业AI大模型": "针对石油行业的专业人工智能模型",
-    "AI智能体 (智能交互)": "智能对话和交互式数据分析工具",
-  };
-
-  return descriptions[label] || "该系统的详细功能描述";
-};
-
 // 处理查看按钮点击事件
 const handleView = async (item: Item) => {
   console.log("查看", item);
 
+  console.log("*************************", userStore.getUser.username);
+
   if (item.label === "OA办公系统") {
     if (userStore.getUser.username && getAccessToken()) {
       const res = await ssoLogin({
@@ -226,23 +193,31 @@ const handleView = async (item: Item) => {
       if (res) {
         window.open(
           "https://yfoa.keruioil.com/wui/index.html?ssoToken=" + res + "#/main",
-          "_blank"
+          "_blank",
         );
       }
     } else {
+      console.log("未登录》》》》》》》》》》》");
       window.open("https://yfoa.keruioil.com", "_blank");
     }
   }
 
   if (item.label === "设备管理系统 (PMS)") {
     if (userStore.getUser.username && getAccessToken()) {
+      // window.open(
+      //   "https://iot.deepoil.cc/portalLogin?username=" +
+      //     userStore.getUser.username,
+      //   "_blank"
+      // );
       window.open(
-        "http://localhost:8080/portalLogin?username=" +
+        import.meta.env.VITE_PMS_URL +
+          "/portalLogin?username=" +
           userStore.getUser.username,
-        "_blank"
+        "_blank",
       );
     } else {
-      window.open("http://localhost:8080", "_blank");
+      console.log("未登录");
+      window.open(import.meta.env.VITE_PMS_URL, "_blank");
     }
   }
 
@@ -257,15 +232,23 @@ 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(
-        "http://localhost:8080/portalLogin?username=" +
+        import.meta.env.VITE_PMS_URL +
+          "/portalLogin?username=" +
           userStore.getUser.username +
           "&" +
           extraParam,
-        "_blank"
+        "_blank",
       );
     } else {
-      window.open("http://localhost:8080?" + extraParam, "_blank");
+      window.open(import.meta.env.VITE_PMS_URL + "?" + extraParam, "_blank");
     }
   }
 };