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