|
@@ -142,7 +142,7 @@ watch(
|
|
|
description: "查看经营分析、经营指标与执行情况。",
|
|
description: "查看经营分析、经营指标与执行情况。",
|
|
|
url: "https://report.deepoil.cc/webroot/decision/v10/entry/access/9fb42908-894a-4373-a6be-ce046a42851d?preview=true&page_number=1",
|
|
url: "https://report.deepoil.cc/webroot/decision/v10/entry/access/9fb42908-894a-4373-a6be-ce046a42851d?preview=true&page_number=1",
|
|
|
mobileUrl:
|
|
mobileUrl:
|
|
|
- "https://report.deepoil.cc:/webroot/decision/view/duchamp?viewlet=%25E7%25BB%258F%25E8%2590%25A5%25E9%25A9%25BE%25E9%25A9%25B6%25E8%2588%25B1%25EF%25BC%2588%25E7%25A7%25BB%25E5%258A%25A8%25E7%25AB%25AF%25EF%25BC%2589.fvs",
|
|
|
|
|
|
|
+ "https://report.deepoil.cc/webroot/decision/v10/entry/access/b15238fe-9a61-4beb-8220-da0114d1c4a1?preview=true&page_number=1",
|
|
|
bgColor: "#3876e0",
|
|
bgColor: "#3876e0",
|
|
|
pcBg: drivePc1_white,
|
|
pcBg: drivePc1_white,
|
|
|
mobileBg: driveMobile1_white,
|
|
mobileBg: driveMobile1_white,
|
|
@@ -153,7 +153,7 @@ watch(
|
|
|
description: "查看生产运营态势、核心指标与执行情况。",
|
|
description: "查看生产运营态势、核心指标与执行情况。",
|
|
|
url: "https://report.deepoil.cc/webroot/decision/v10/entry/access/dbc9cf73-81ce-43f1-9923-45cdfa5d5d3a?preview=true&page_number=1",
|
|
url: "https://report.deepoil.cc/webroot/decision/v10/entry/access/dbc9cf73-81ce-43f1-9923-45cdfa5d5d3a?preview=true&page_number=1",
|
|
|
mobileUrl:
|
|
mobileUrl:
|
|
|
- "https://report.deepoil.cc:/webroot/decision/view/duchamp?viewlet=%25E7%2594%259F%25E4%25BA%25A7%25E6%2580%25BB%25E8%25A7%2588%25E9%25A9%25BE%25E9%25A9%25B6%25E8%2588%25B1%25EF%25BC%2588%25E7%25A7%25BB%25E5%258A%25A8%25E7%25AB%25AF%25EF%25BC%2589.fvs",
|
|
|
|
|
|
|
+ "https://report.deepoil.cc/webroot/decision/v10/entry/access/1c87e03c-cd5c-42bb-aa7d-8b8034e5a453?preview=true&page_number=1",
|
|
|
bgColor: "#0f766e",
|
|
bgColor: "#0f766e",
|
|
|
pcBg: drivePc2_white,
|
|
pcBg: drivePc2_white,
|
|
|
mobileBg: driveMobile2_white,
|
|
mobileBg: driveMobile2_white,
|
|
@@ -163,7 +163,8 @@ watch(
|
|
|
title: "财务驾驶舱",
|
|
title: "财务驾驶舱",
|
|
|
description: "查看财务分析、预算执行与经营数据表现。",
|
|
description: "查看财务分析、预算执行与经营数据表现。",
|
|
|
url: "https://report.deepoil.cc/webroot/decision/v10/entry/access/e836fb5b-092c-4d64-a324-3beeb4fac0cc?preview=true&page_number=1",
|
|
url: "https://report.deepoil.cc/webroot/decision/v10/entry/access/e836fb5b-092c-4d64-a324-3beeb4fac0cc?preview=true&page_number=1",
|
|
|
- mobileUrl: "",
|
|
|
|
|
|
|
+ mobileUrl:
|
|
|
|
|
+ "https://report.deepoil.cc/webroot/decision/v10/entry/access/e836fb5b-092c-4d64-a324-3beeb4fac0cc?preview=true&page_number=1",
|
|
|
bgColor: "#ca8a04",
|
|
bgColor: "#ca8a04",
|
|
|
pcBg: drivePc3_white,
|
|
pcBg: drivePc3_white,
|
|
|
mobileBg: driveMobile3_white,
|
|
mobileBg: driveMobile3_white,
|
|
@@ -193,7 +194,7 @@ watch(
|
|
|
title: "QHSE驾驶舱",
|
|
title: "QHSE驾驶舱",
|
|
|
description: "查看安全、健康、环境与质量数据。",
|
|
description: "查看安全、健康、环境与质量数据。",
|
|
|
url: `${import.meta.env.VITE_PMS_URL}/portalLogin?username=${userStore.getUser.username}&source=qhse`,
|
|
url: `${import.meta.env.VITE_PMS_URL}/portalLogin?username=${userStore.getUser.username}&source=qhse`,
|
|
|
- mobileUrl: "",
|
|
|
|
|
|
|
+ mobileUrl: `${import.meta.env.VITE_PMS_URL}/portalLogin?username=${userStore.getUser.username}&source=qhse`,
|
|
|
bgColor: "#dc2626",
|
|
bgColor: "#dc2626",
|
|
|
pcBg: drivePc6_white,
|
|
pcBg: drivePc6_white,
|
|
|
mobileBg: driveMobile6_white,
|
|
mobileBg: driveMobile6_white,
|
|
@@ -207,7 +208,7 @@ watch(
|
|
|
description: "查看经营分析、经营指标与执行情况。",
|
|
description: "查看经营分析、经营指标与执行情况。",
|
|
|
url: "https://report.deepoil.cc/webroot/decision/v10/entry/access/9fb42908-894a-4373-a6be-ce046a42851d?preview=true&page_number=1",
|
|
url: "https://report.deepoil.cc/webroot/decision/v10/entry/access/9fb42908-894a-4373-a6be-ce046a42851d?preview=true&page_number=1",
|
|
|
mobileUrl:
|
|
mobileUrl:
|
|
|
- "https://report.deepoil.cc:/webroot/decision/view/duchamp?viewlet=%25E7%25BB%258F%25E8%2590%25A5%25E9%25A9%25BE%25E9%25A9%25B6%25E8%2588%25B1%25EF%25BC%2588%25E7%25A7%25BB%25E5%258A%25A8%25E7%25AB%25AF%25EF%25BC%2589.fvs",
|
|
|
|
|
|
|
+ "https://report.deepoil.cc/webroot/decision/v10/entry/access/b15238fe-9a61-4beb-8220-da0114d1c4a1?preview=true&page_number=1",
|
|
|
bgColor: "#3876e0",
|
|
bgColor: "#3876e0",
|
|
|
pcBg: drivePc1,
|
|
pcBg: drivePc1,
|
|
|
mobileBg: driveMobile1,
|
|
mobileBg: driveMobile1,
|
|
@@ -218,7 +219,7 @@ watch(
|
|
|
description: "查看生产运营态势、核心指标与执行情况。",
|
|
description: "查看生产运营态势、核心指标与执行情况。",
|
|
|
url: "https://report.deepoil.cc/webroot/decision/v10/entry/access/dbc9cf73-81ce-43f1-9923-45cdfa5d5d3a?preview=true&page_number=1",
|
|
url: "https://report.deepoil.cc/webroot/decision/v10/entry/access/dbc9cf73-81ce-43f1-9923-45cdfa5d5d3a?preview=true&page_number=1",
|
|
|
mobileUrl:
|
|
mobileUrl:
|
|
|
- "https://report.deepoil.cc:/webroot/decision/view/duchamp?viewlet=%25E7%2594%259F%25E4%25BA%25A7%25E6%2580%25BB%25E8%25A7%2588%25E9%25A9%25BE%25E9%25A9%25B6%25E8%2588%25B1%25EF%25BC%2588%25E7%25A7%25BB%25E5%258A%25A8%25E7%25AB%25AF%25EF%25BC%2589.fvs",
|
|
|
|
|
|
|
+ "https://report.deepoil.cc/webroot/decision/v10/entry/access/1c87e03c-cd5c-42bb-aa7d-8b8034e5a453?preview=true&page_number=1",
|
|
|
bgColor: "#0f766e",
|
|
bgColor: "#0f766e",
|
|
|
pcBg: drivePc2,
|
|
pcBg: drivePc2,
|
|
|
mobileBg: driveMobile2,
|
|
mobileBg: driveMobile2,
|
|
@@ -228,7 +229,8 @@ watch(
|
|
|
title: "财务驾驶舱",
|
|
title: "财务驾驶舱",
|
|
|
description: "查看财务分析、预算执行与经营数据表现。",
|
|
description: "查看财务分析、预算执行与经营数据表现。",
|
|
|
url: "https://report.deepoil.cc/webroot/decision/v10/entry/access/e836fb5b-092c-4d64-a324-3beeb4fac0cc?preview=true&page_number=1",
|
|
url: "https://report.deepoil.cc/webroot/decision/v10/entry/access/e836fb5b-092c-4d64-a324-3beeb4fac0cc?preview=true&page_number=1",
|
|
|
- mobileUrl: "",
|
|
|
|
|
|
|
+ mobileUrl:
|
|
|
|
|
+ "https://report.deepoil.cc/webroot/decision/v10/entry/access/e836fb5b-092c-4d64-a324-3beeb4fac0cc?preview=true&page_number=1",
|
|
|
bgColor: "#ca8a04",
|
|
bgColor: "#ca8a04",
|
|
|
pcBg: drivePc3,
|
|
pcBg: drivePc3,
|
|
|
mobileBg: driveMobile3,
|
|
mobileBg: driveMobile3,
|
|
@@ -258,7 +260,7 @@ watch(
|
|
|
title: "QHSE驾驶舱",
|
|
title: "QHSE驾驶舱",
|
|
|
description: "查看安全、健康、环境与质量数据。",
|
|
description: "查看安全、健康、环境与质量数据。",
|
|
|
url: `${import.meta.env.VITE_PMS_URL}/portalLogin?username=${userStore.getUser.username}&source=qhse`,
|
|
url: `${import.meta.env.VITE_PMS_URL}/portalLogin?username=${userStore.getUser.username}&source=qhse`,
|
|
|
- mobileUrl: "",
|
|
|
|
|
|
|
+ mobileUrl: `${import.meta.env.VITE_PMS_URL}/portalLogin?username=${userStore.getUser.username}&source=qhse`,
|
|
|
bgColor: "#dc2626",
|
|
bgColor: "#dc2626",
|
|
|
pcBg: drivePc6,
|
|
pcBg: drivePc6,
|
|
|
mobileBg: driveMobile6,
|
|
mobileBg: driveMobile6,
|
|
@@ -275,7 +277,7 @@ const driveCards = ref([
|
|
|
description: "查看经营分析、经营指标与执行情况。",
|
|
description: "查看经营分析、经营指标与执行情况。",
|
|
|
url: "https://report.deepoil.cc/webroot/decision/v10/entry/access/9fb42908-894a-4373-a6be-ce046a42851d?preview=true&page_number=1",
|
|
url: "https://report.deepoil.cc/webroot/decision/v10/entry/access/9fb42908-894a-4373-a6be-ce046a42851d?preview=true&page_number=1",
|
|
|
mobileUrl:
|
|
mobileUrl:
|
|
|
- "https://report.deepoil.cc:/webroot/decision/view/duchamp?viewlet=%25E7%25BB%258F%25E8%2590%25A5%25E9%25A9%25BE%25E9%25A9%25B6%25E8%2588%25B1%25EF%25BC%2588%25E7%25A7%25BB%25E5%258A%25A8%25E7%25AB%25AF%25EF%25BC%2589.fvs",
|
|
|
|
|
|
|
+ "https://report.deepoil.cc/webroot/decision/v10/entry/access/b15238fe-9a61-4beb-8220-da0114d1c4a1?preview=true&page_number=1",
|
|
|
bgColor: "#3876e0",
|
|
bgColor: "#3876e0",
|
|
|
pcBg: themeStore.theme === "light" ? drivePc1_white : drivePc1,
|
|
pcBg: themeStore.theme === "light" ? drivePc1_white : drivePc1,
|
|
|
mobileBg: themeStore.theme === "light" ? driveMobile1_white : driveMobile1,
|
|
mobileBg: themeStore.theme === "light" ? driveMobile1_white : driveMobile1,
|
|
@@ -286,7 +288,7 @@ const driveCards = ref([
|
|
|
description: "查看生产运营态势、核心指标与执行情况。",
|
|
description: "查看生产运营态势、核心指标与执行情况。",
|
|
|
url: "https://report.deepoil.cc/webroot/decision/v10/entry/access/dbc9cf73-81ce-43f1-9923-45cdfa5d5d3a?preview=true&page_number=1",
|
|
url: "https://report.deepoil.cc/webroot/decision/v10/entry/access/dbc9cf73-81ce-43f1-9923-45cdfa5d5d3a?preview=true&page_number=1",
|
|
|
mobileUrl:
|
|
mobileUrl:
|
|
|
- "https://report.deepoil.cc:/webroot/decision/view/duchamp?viewlet=%25E7%2594%259F%25E4%25BA%25A7%25E6%2580%25BB%25E8%25A7%2588%25E9%25A9%25BE%25E9%25A9%25B6%25E8%2588%25B1%25EF%25BC%2588%25E7%25A7%25BB%25E5%258A%25A8%25E7%25AB%25AF%25EF%25BC%2589.fvs",
|
|
|
|
|
|
|
+ "https://report.deepoil.cc/webroot/decision/v10/entry/access/1c87e03c-cd5c-42bb-aa7d-8b8034e5a453?preview=true&page_number=1",
|
|
|
bgColor: "#0f766e",
|
|
bgColor: "#0f766e",
|
|
|
pcBg: themeStore.theme === "light" ? drivePc2_white : drivePc2,
|
|
pcBg: themeStore.theme === "light" ? drivePc2_white : drivePc2,
|
|
|
mobileBg: themeStore.theme === "light" ? driveMobile2_white : driveMobile2,
|
|
mobileBg: themeStore.theme === "light" ? driveMobile2_white : driveMobile2,
|
|
@@ -296,7 +298,8 @@ const driveCards = ref([
|
|
|
title: "财务驾驶舱",
|
|
title: "财务驾驶舱",
|
|
|
description: "查看财务分析、预算执行与经营数据表现。",
|
|
description: "查看财务分析、预算执行与经营数据表现。",
|
|
|
url: "https://report.deepoil.cc/webroot/decision/v10/entry/access/e836fb5b-092c-4d64-a324-3beeb4fac0cc?preview=true&page_number=1",
|
|
url: "https://report.deepoil.cc/webroot/decision/v10/entry/access/e836fb5b-092c-4d64-a324-3beeb4fac0cc?preview=true&page_number=1",
|
|
|
- mobileUrl: "",
|
|
|
|
|
|
|
+ mobileUrl:
|
|
|
|
|
+ "https://report.deepoil.cc/webroot/decision/v10/entry/access/e836fb5b-092c-4d64-a324-3beeb4fac0cc?preview=true&page_number=1",
|
|
|
bgColor: "#ca8a04",
|
|
bgColor: "#ca8a04",
|
|
|
pcBg: themeStore.theme === "light" ? drivePc3_white : drivePc3,
|
|
pcBg: themeStore.theme === "light" ? drivePc3_white : drivePc3,
|
|
|
mobileBg: themeStore.theme === "light" ? driveMobile3_white : driveMobile3,
|
|
mobileBg: themeStore.theme === "light" ? driveMobile3_white : driveMobile3,
|
|
@@ -326,7 +329,7 @@ const driveCards = ref([
|
|
|
title: "QHSE驾驶舱",
|
|
title: "QHSE驾驶舱",
|
|
|
description: "查看安全、健康、环境与质量数据。",
|
|
description: "查看安全、健康、环境与质量数据。",
|
|
|
url: `${import.meta.env.VITE_PMS_URL}/portalLogin?username=${userStore.getUser.username}&source=qhse`,
|
|
url: `${import.meta.env.VITE_PMS_URL}/portalLogin?username=${userStore.getUser.username}&source=qhse`,
|
|
|
- mobileUrl: "",
|
|
|
|
|
|
|
+ mobileUrl: `${import.meta.env.VITE_PMS_URL}/portalLogin?username=${userStore.getUser.username}&source=qhse`,
|
|
|
bgColor: "#dc2626",
|
|
bgColor: "#dc2626",
|
|
|
pcBg: themeStore.theme === "light" ? drivePc6_white : drivePc6,
|
|
pcBg: themeStore.theme === "light" ? drivePc6_white : drivePc6,
|
|
|
mobileBg: themeStore.theme === "light" ? driveMobile6_white : driveMobile6,
|
|
mobileBg: themeStore.theme === "light" ? driveMobile6_white : driveMobile6,
|
|
@@ -342,29 +345,45 @@ const filteredCards = computed(() => {
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
const openDrive = async (option: DriveCard) => {
|
|
const openDrive = async (option: DriveCard) => {
|
|
|
|
|
+ const ua = window.navigator.userAgent;
|
|
|
|
|
+ const isDesktop =
|
|
|
|
|
+ ua.includes("DingTalk") &&
|
|
|
|
|
+ (ua.includes("Windows") || ua.includes("Macintosh"));
|
|
|
|
|
+
|
|
|
let ua2 = navigator.userAgent.toLowerCase();
|
|
let ua2 = navigator.userAgent.toLowerCase();
|
|
|
let isMobile = ua2.indexOf("dingtalk") > -1;
|
|
let isMobile = ua2.indexOf("dingtalk") > -1;
|
|
|
- if (userStore.getUser.username && getAccessToken()) {
|
|
|
|
|
- const res = await getMCSsoToken();
|
|
|
|
|
- if (res) {
|
|
|
|
|
- if (isMobile) {
|
|
|
|
|
- if (option.title === "经营驾驶舱" || option.title === "生产驾驶舱") {
|
|
|
|
|
- dd.biz.util.openLink({
|
|
|
|
|
- url: `${option.mobileUrl}&ssoToken=${res}`,
|
|
|
|
|
- onSuccess: () => {},
|
|
|
|
|
- });
|
|
|
|
|
- } else {
|
|
|
|
|
- dd.biz.util.openLink({
|
|
|
|
|
- url: `${option.url}&ssoToken=${res}`,
|
|
|
|
|
- onSuccess: () => {},
|
|
|
|
|
- });
|
|
|
|
|
- // window.open(`${option.url}&ssoToken=${res}`, "_blank");
|
|
|
|
|
- }
|
|
|
|
|
- } else {
|
|
|
|
|
- window.open(`${option.url}&ssoToken=${res}`, "_blank");
|
|
|
|
|
- }
|
|
|
|
|
|
|
+
|
|
|
|
|
+ const res = await getMCSsoToken();
|
|
|
|
|
+
|
|
|
|
|
+ if (ua2.includes("dingtalk") || ua2.includes("dingtalkwork")) {
|
|
|
|
|
+ if (isMobile && !isDesktop && option.mobileUrl) {
|
|
|
|
|
+ dd.biz.util.openLink({
|
|
|
|
|
+ url: `${option.mobileUrl}&ssoToken=${res}`,
|
|
|
|
|
+ onSuccess: () => {},
|
|
|
|
|
+ });
|
|
|
|
|
+ } else if (isDesktop) {
|
|
|
|
|
+ window.open(`${option.url}&ssoToken=${res}`, "_blank");
|
|
|
}
|
|
}
|
|
|
|
|
+ } else {
|
|
|
|
|
+ // 浏览器环境
|
|
|
|
|
+ window.open(`${option.url}&ssoToken=${res}`, "_blank");
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ // if (isMobile && !isDesktop) {
|
|
|
|
|
+ // if (option.title === "经营驾驶舱" || option.title === "生产驾驶舱") {
|
|
|
|
|
+ // dd.biz.util.openLink({
|
|
|
|
|
+ // url: `${option.mobileUrl}&ssoToken=${res}`,
|
|
|
|
|
+ // onSuccess: () => {},
|
|
|
|
|
+ // });
|
|
|
|
|
+ // } else {
|
|
|
|
|
+ // dd.biz.util.openLink({
|
|
|
|
|
+ // url: `${option.url}&ssoToken=${res}`,
|
|
|
|
|
+ // onSuccess: () => {},
|
|
|
|
|
+ // });
|
|
|
|
|
+ // }
|
|
|
|
|
+ // } else {
|
|
|
|
|
+ // window.open(`${option.url}&ssoToken=${res}`, "_blank");
|
|
|
|
|
+ // }
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|