|
@@ -204,19 +204,19 @@
|
|
|
>
|
|
>
|
|
|
<div class="platform-block__header">
|
|
<div class="platform-block__header">
|
|
|
<img
|
|
<img
|
|
|
- v-if="section.title === '数字化运营平台'"
|
|
|
|
|
|
|
+ v-if="section.code === '数'"
|
|
|
src="../assets//images/icon.png"
|
|
src="../assets//images/icon.png"
|
|
|
alt=""
|
|
alt=""
|
|
|
class="w-20 h-20"
|
|
class="w-20 h-20"
|
|
|
/>
|
|
/>
|
|
|
<img
|
|
<img
|
|
|
- v-if="section.title === '智慧指挥平台'"
|
|
|
|
|
|
|
+ v-if="section.code === '智'"
|
|
|
src="../assets//images/icon2.png"
|
|
src="../assets//images/icon2.png"
|
|
|
alt=""
|
|
alt=""
|
|
|
class="w-20 h-20"
|
|
class="w-20 h-20"
|
|
|
/>
|
|
/>
|
|
|
<img
|
|
<img
|
|
|
- v-if="section.title === 'Chat BI平台'"
|
|
|
|
|
|
|
+ v-if="section.code === 'AI'"
|
|
|
src="../assets//images/icon3.png"
|
|
src="../assets//images/icon3.png"
|
|
|
alt=""
|
|
alt=""
|
|
|
class="w-20 h-20"
|
|
class="w-20 h-20"
|
|
@@ -299,14 +299,16 @@
|
|
|
v-if="!userStore.getUser.username"
|
|
v-if="!userStore.getUser.username"
|
|
|
class="flex h-full items-center justify-center"
|
|
class="flex h-full items-center justify-center"
|
|
|
>
|
|
>
|
|
|
- <div class="text-[#8a9ab0] pt-5">登录后查看</div>
|
|
|
|
|
|
|
+ <div class="text-[#8a9ab0] pt-5">
|
|
|
|
|
+ {{ $t("common.loginRequired") }}
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div
|
|
<div
|
|
|
v-if="!currentNoticeList.length && userStore.getUser.username"
|
|
v-if="!currentNoticeList.length && userStore.getUser.username"
|
|
|
class="flex h-[120px] items-center justify-center text-[#8a9ab0]"
|
|
class="flex h-[120px] items-center justify-center text-[#8a9ab0]"
|
|
|
>
|
|
>
|
|
|
- 暂无数据
|
|
|
|
|
|
|
+ {{ $t("common.noMsg") }}
|
|
|
</div>
|
|
</div>
|
|
|
<article
|
|
<article
|
|
|
v-if="userStore.getUser.username"
|
|
v-if="userStore.getUser.username"
|
|
@@ -343,14 +345,16 @@
|
|
|
v-if="!userStore.getUser.username"
|
|
v-if="!userStore.getUser.username"
|
|
|
class="flex h-full items-center justify-center"
|
|
class="flex h-full items-center justify-center"
|
|
|
>
|
|
>
|
|
|
- <div class="text-[#8a9ab0] pt-10">登录后查看</div>
|
|
|
|
|
|
|
+ <div class="text-[#8a9ab0] pt-10">
|
|
|
|
|
+ {{ $t("common.loginRequired") }}
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div
|
|
<div
|
|
|
v-if="!oaTasks.length && userStore.getUser.username"
|
|
v-if="!oaTasks.length && userStore.getUser.username"
|
|
|
class="flex h-full items-center justify-center"
|
|
class="flex h-full items-center justify-center"
|
|
|
>
|
|
>
|
|
|
- <div class="text-[#8a9ab0] pt-10">暂无待办</div>
|
|
|
|
|
|
|
+ <div class="text-[#8a9ab0] pt-10">{{ $t("common.noMsg") }}</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<article
|
|
<article
|
|
@@ -366,7 +370,8 @@
|
|
|
{{ task.requestName }}
|
|
{{ task.requestName }}
|
|
|
</div>
|
|
</div>
|
|
|
<div class="mt-1 text-[12px] text-[#8a9ab0]">
|
|
<div class="mt-1 text-[12px] text-[#8a9ab0]">
|
|
|
- 创建人:{{ task.creatorName }} · {{ task.createTime }}
|
|
|
|
|
|
|
+ {{ $t("flow.createPerson") }}:{{ task.creatorName }} ·
|
|
|
|
|
+ {{ task.createTime }}
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<span
|
|
<span
|
|
@@ -506,14 +511,18 @@
|
|
|
v-if="!userStore.getUser.username"
|
|
v-if="!userStore.getUser.username"
|
|
|
class="flex h-full items-center justify-center"
|
|
class="flex h-full items-center justify-center"
|
|
|
>
|
|
>
|
|
|
- <div class="text-[#8a9ab0] pt-10">登录后查看</div>
|
|
|
|
|
|
|
+ <div class="text-[#8a9ab0] pt-10">
|
|
|
|
|
+ {{ $t("common.loginRequired") }}
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div
|
|
<div
|
|
|
v-if="!newsList.length && userStore.getUser.username"
|
|
v-if="!newsList.length && userStore.getUser.username"
|
|
|
class="flex h-full items-center justify-center"
|
|
class="flex h-full items-center justify-center"
|
|
|
>
|
|
>
|
|
|
- <div class="text-[#8a9ab0] pt-10">暂无新闻</div>
|
|
|
|
|
|
|
+ <div class="text-[#8a9ab0] pt-10">
|
|
|
|
|
+ {{ $t("common.noNews") }}
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
<article
|
|
<article
|
|
|
v-for="news in newsList"
|
|
v-for="news in newsList"
|
|
@@ -651,6 +660,7 @@ import banner2_white from "@/assets/images/banner2_white.png";
|
|
|
import banner1_white from "@/assets/images/banner1_white.png";
|
|
import banner1_white from "@/assets/images/banner1_white.png";
|
|
|
|
|
|
|
|
type PortalApp = {
|
|
type PortalApp = {
|
|
|
|
|
+ key: string;
|
|
|
label: string;
|
|
label: string;
|
|
|
icon?: string;
|
|
icon?: string;
|
|
|
image?: string;
|
|
image?: string;
|
|
@@ -693,88 +703,119 @@ const noticeTabs = computed<{ key: NoticeTabKey; label: string }[]>(() => [
|
|
|
{ key: "notice", label: t("home.notice") },
|
|
{ key: "notice", label: t("home.notice") },
|
|
|
]);
|
|
]);
|
|
|
|
|
|
|
|
-const portalSections: PortalSection[] = [
|
|
|
|
|
|
|
+const portalSections = computed<PortalSection[]>(() => [
|
|
|
{
|
|
{
|
|
|
code: "数",
|
|
code: "数",
|
|
|
- title: "数字化运营平台",
|
|
|
|
|
- subtitle: "高效协同 · 战略洞察",
|
|
|
|
|
|
|
+ title: t("DigitalOperationPlatform.title"),
|
|
|
|
|
+ subtitle: t("DigitalOperationPlatform.subTitle"),
|
|
|
height: "220px",
|
|
height: "220px",
|
|
|
apps: [
|
|
apps: [
|
|
|
{
|
|
{
|
|
|
- label: "OA办公",
|
|
|
|
|
|
|
+ key: "oa",
|
|
|
|
|
+ label: t("DigitalOperationPlatform.oa"),
|
|
|
image: oaimage,
|
|
image: oaimage,
|
|
|
active: true,
|
|
active: true,
|
|
|
},
|
|
},
|
|
|
- { label: "客户管理(CRM)", image: crmimage },
|
|
|
|
|
- { label: "人力资源(EHR)", image: ehrimage },
|
|
|
|
|
- { label: "供应商管理(SRM)", image: scmimage },
|
|
|
|
|
- { label: "经营驾驶舱(MC)", image: driveimage },
|
|
|
|
|
- { label: "项目管理(PM)", image: pmimage },
|
|
|
|
|
- { label: "战略解码与执行", image: zhanlueimage },
|
|
|
|
|
- { label: "财务管理(FM)", image: erpimage },
|
|
|
|
|
-
|
|
|
|
|
- { label: "技术研发管理(R&D)", image: jishuimage2 },
|
|
|
|
|
-
|
|
|
|
|
- { label: "组织资产管理", image: zuzhiimage },
|
|
|
|
|
- { label: "风控合规管理", image: safeimage },
|
|
|
|
|
- { label: "开发需求管理", image: jishuimage2 },
|
|
|
|
|
- { label: "鸿盘", image: hongpan },
|
|
|
|
|
|
|
+ { key: "crm", label: t("DigitalOperationPlatform.crm"), image: crmimage },
|
|
|
|
|
+ { key: "ehr", label: t("DigitalOperationPlatform.ehr"), image: ehrimage },
|
|
|
|
|
+ { key: "srm", label: t("DigitalOperationPlatform.srm"), image: scmimage },
|
|
|
|
|
+ { key: "mc", label: t("DigitalOperationPlatform.mc"), image: driveimage },
|
|
|
|
|
+ { key: "pm", label: t("DigitalOperationPlatform.pm"), image: pmimage },
|
|
|
|
|
+ {
|
|
|
|
|
+ key: "zhanlue",
|
|
|
|
|
+ label: t("DigitalOperationPlatform.zhanlue"),
|
|
|
|
|
+ image: zhanlueimage,
|
|
|
|
|
+ },
|
|
|
|
|
+ { key: "fm", label: t("DigitalOperationPlatform.fm"), image: erpimage },
|
|
|
|
|
+ {
|
|
|
|
|
+ key: "rd",
|
|
|
|
|
+ label: t("DigitalOperationPlatform.rd"),
|
|
|
|
|
+ image: jishuimage2,
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ key: "zuzhi",
|
|
|
|
|
+ label: t("DigitalOperationPlatform.zuzhi"),
|
|
|
|
|
+ image: zuzhiimage,
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ key: "fengxian",
|
|
|
|
|
+ label: t("DigitalOperationPlatform.fengxian"),
|
|
|
|
|
+ image: safeimage,
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ key: "kaifa",
|
|
|
|
|
+ label: t("DigitalOperationPlatform.kaifa"),
|
|
|
|
|
+ image: jishuimage2,
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ key: "hongpan",
|
|
|
|
|
+ label: t("DigitalOperationPlatform.hongpan"),
|
|
|
|
|
+ image: hongpan,
|
|
|
|
|
+ },
|
|
|
],
|
|
],
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
code: "智",
|
|
code: "智",
|
|
|
- title: "智慧指挥平台",
|
|
|
|
|
- subtitle: "高效协同 · 战略洞察",
|
|
|
|
|
|
|
+ title: t("command.title"),
|
|
|
|
|
+ subtitle: t("command.subTitle"),
|
|
|
height: "210px",
|
|
height: "210px",
|
|
|
apps: [
|
|
apps: [
|
|
|
- { label: "设备管理(PMS)", image: pmsimage, active: true },
|
|
|
|
|
- { label: "质量安全管理(QHSE)", image: qhseimage },
|
|
|
|
|
- { label: "中航北斗", image: zhonghangimage },
|
|
|
|
|
-
|
|
|
|
|
- { label: "智慧连油", image: lianyouimage },
|
|
|
|
|
- { label: "智慧注气", image: zhuqiimage },
|
|
|
|
|
- { label: "视频中心(VCS)", image: videoimage },
|
|
|
|
|
- { label: "智能钻井", image: zuanjingimage },
|
|
|
|
|
- { label: "仓储管理(WMS)", image: wms },
|
|
|
|
|
- { label: "智慧压裂", image: yalieimage },
|
|
|
|
|
- { label: "数字油藏", image: youimage },
|
|
|
|
|
|
|
+ { key: "pms", label: t("command.pms"), image: pmsimage, active: true },
|
|
|
|
|
+ { key: "qhse", label: t("command.qhse"), image: qhseimage },
|
|
|
|
|
+ {
|
|
|
|
|
+ key: "zhonghang",
|
|
|
|
|
+ label: t("command.zhonghang"),
|
|
|
|
|
+ image: zhonghangimage,
|
|
|
|
|
+ },
|
|
|
|
|
+ { key: "lianyou", label: t("command.lianyou"), image: lianyouimage },
|
|
|
|
|
+ { key: "zhuqi", label: t("command.zhuqi"), image: zhuqiimage },
|
|
|
|
|
+ { key: "video", label: t("command.video"), image: videoimage },
|
|
|
|
|
+ { key: "zuanjing", label: t("command.zuanjing"), image: zuanjingimage },
|
|
|
|
|
+ { key: "wms", label: t("command.wms"), image: wms },
|
|
|
|
|
+ { key: "yalie", label: t("command.yalie"), image: yalieimage },
|
|
|
|
|
+ { key: "youcang", label: t("command.youcang"), image: youimage },
|
|
|
],
|
|
],
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
code: "AI",
|
|
code: "AI",
|
|
|
- title: "Chat BI平台",
|
|
|
|
|
- subtitle: "数据智能 · 决策驱动",
|
|
|
|
|
|
|
+ title: t("ai.title"),
|
|
|
|
|
+ subtitle: t("ai.subTitle"),
|
|
|
height: "160px",
|
|
height: "160px",
|
|
|
apps: [
|
|
apps: [
|
|
|
- { label: "全局数据治理(数据中台)", image: dataimage, active: true },
|
|
|
|
|
- { label: "智能决策", image: thinkimage },
|
|
|
|
|
- { label: "行业AI大模型", image: aiimage },
|
|
|
|
|
- { label: "AI智能体(智能交互)", image: agentimage },
|
|
|
|
|
- { label: "工艺文件智能体", image: fileagent },
|
|
|
|
|
- { label: "集团制度智能体", image: zhiduagent },
|
|
|
|
|
- { label: "智能问数", image: ask },
|
|
|
|
|
- { label: "瑞小智(数字人)", image: degitial },
|
|
|
|
|
|
|
+ {
|
|
|
|
|
+ key: "dataCenter",
|
|
|
|
|
+ label: t("ai.dataCenter"),
|
|
|
|
|
+ image: dataimage,
|
|
|
|
|
+ active: true,
|
|
|
|
|
+ },
|
|
|
|
|
+ { key: "juece", label: t("ai.juece"), image: thinkimage },
|
|
|
|
|
+ { key: "aimodel", label: t("ai.aimodel"), image: aiimage },
|
|
|
|
|
+ { key: "agent", label: t("ai.agent"), image: agentimage },
|
|
|
|
|
+ { key: "file", label: t("ai.file"), image: fileagent },
|
|
|
|
|
+ { key: "rule", label: t("ai.rule"), image: zhiduagent },
|
|
|
|
|
+ { key: "ask", label: t("ai.ask"), image: ask },
|
|
|
|
|
+ { key: "person", label: t("ai.person"), image: degitial },
|
|
|
],
|
|
],
|
|
|
},
|
|
},
|
|
|
-];
|
|
|
|
|
-
|
|
|
|
|
-let boldLabes = ref([
|
|
|
|
|
- "OA办公",
|
|
|
|
|
- "客户管理(CRM)",
|
|
|
|
|
- "设备管理(PMS)",
|
|
|
|
|
- "中航北斗",
|
|
|
|
|
- "智慧连油",
|
|
|
|
|
- "质量安全管理(QHSE)",
|
|
|
|
|
- "智慧注气",
|
|
|
|
|
- "视频中心(VCS)",
|
|
|
|
|
- "开发需求管理",
|
|
|
|
|
- "经营驾驶舱(MC)",
|
|
|
|
|
- "项目管理(PM)",
|
|
|
|
|
- "鸿盘",
|
|
|
|
|
- "智能钻井",
|
|
|
|
|
- "供应商管理(SRM)",
|
|
|
|
|
- "人力资源(EHR)",
|
|
|
|
|
- "战略解码与执行",
|
|
|
|
|
|
|
+]);
|
|
|
|
|
+
|
|
|
|
|
+const boldLabes = computed(() => [
|
|
|
|
|
+ t("DigitalOperationPlatform.oa"),
|
|
|
|
|
+ t("DigitalOperationPlatform.crm"),
|
|
|
|
|
+ t("command.pms"),
|
|
|
|
|
+ t("command.zhonghang"),
|
|
|
|
|
+ t("command.lianyou"),
|
|
|
|
|
+ t("command.qhse"),
|
|
|
|
|
+ t("command.zhuqi"),
|
|
|
|
|
+ t("command.video"),
|
|
|
|
|
+ t("DigitalOperationPlatform.kaifa"),
|
|
|
|
|
+ t("DigitalOperationPlatform.mc"),
|
|
|
|
|
+ t("DigitalOperationPlatform.pm"),
|
|
|
|
|
+ t("DigitalOperationPlatform.hongpan"),
|
|
|
|
|
+ t("command.zuanjing"),
|
|
|
|
|
+ t("DigitalOperationPlatform.srm"),
|
|
|
|
|
+ t("DigitalOperationPlatform.ehr"),
|
|
|
|
|
+ t("DigitalOperationPlatform.zhanlue"),
|
|
|
]);
|
|
]);
|
|
|
|
|
|
|
|
const searchKeyword = ref("");
|
|
const searchKeyword = ref("");
|
|
@@ -852,11 +893,11 @@ const filteredSections = computed(() => {
|
|
|
|
|
|
|
|
// 如果没有关键词,返回原始数据
|
|
// 如果没有关键词,返回原始数据
|
|
|
if (!keyword) {
|
|
if (!keyword) {
|
|
|
- return portalSections;
|
|
|
|
|
|
|
+ return portalSections.value;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 过滤逻辑:遍历每个板块,保留匹配的应用
|
|
// 过滤逻辑:遍历每个板块,保留匹配的应用
|
|
|
- return portalSections
|
|
|
|
|
|
|
+ return portalSections.value
|
|
|
.map((section) => {
|
|
.map((section) => {
|
|
|
if (!section.apps) return { ...section, apps: [] };
|
|
if (!section.apps) return { ...section, apps: [] };
|
|
|
|
|
|
|
@@ -1041,15 +1082,15 @@ let ua2 = navigator.userAgent.toLowerCase();
|
|
|
let isDing = ua2.includes("dingtalk") || ua2.includes("dingtalkwork");
|
|
let isDing = ua2.includes("dingtalk") || ua2.includes("dingtalkwork");
|
|
|
|
|
|
|
|
const handlePortalAppClick = async (app: PortalApp) => {
|
|
const handlePortalAppClick = async (app: PortalApp) => {
|
|
|
- if (!app.label) return;
|
|
|
|
|
|
|
+ if (!app.key) return;
|
|
|
|
|
|
|
|
- if (app.label === "项目管理(PM)") {
|
|
|
|
|
|
|
+ if (app.key === "pm") {
|
|
|
protectedOpen(
|
|
protectedOpen(
|
|
|
`${import.meta.env.VITE_PMS_URL}/portalLogin?username=${userStore.getUser.username}&source=yyhy`,
|
|
`${import.meta.env.VITE_PMS_URL}/portalLogin?username=${userStore.getUser.username}&source=yyhy`,
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (app.label === "OA办公") {
|
|
|
|
|
|
|
+ if (app.key === "oa") {
|
|
|
if (userStore.getUser.username && getAccessToken()) {
|
|
if (userStore.getUser.username && getAccessToken()) {
|
|
|
const ua = window.navigator.userAgent; // const ua = navigator.userAgent;
|
|
const ua = window.navigator.userAgent; // const ua = navigator.userAgent;
|
|
|
const isDesktop =
|
|
const isDesktop =
|
|
@@ -1088,7 +1129,7 @@ const handlePortalAppClick = async (app: PortalApp) => {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (app.label === "客户管理(CRM)") {
|
|
|
|
|
|
|
+ if (app.key === "crm") {
|
|
|
if (userStore.getUser.username && getAccessToken()) {
|
|
if (userStore.getUser.username && getAccessToken()) {
|
|
|
const ua = window.navigator.userAgent; // const ua = navigator.userAgent;
|
|
const ua = window.navigator.userAgent; // const ua = navigator.userAgent;
|
|
|
const isDesktop =
|
|
const isDesktop =
|
|
@@ -1128,41 +1169,41 @@ const handlePortalAppClick = async (app: PortalApp) => {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (app.label === "设备管理(PMS)") {
|
|
|
|
|
|
|
+ if (app.key === "pms") {
|
|
|
protectedOpen(
|
|
protectedOpen(
|
|
|
`${import.meta.env.VITE_PMS_URL}/portalLogin?username=${userStore.getUser.username}`,
|
|
`${import.meta.env.VITE_PMS_URL}/portalLogin?username=${userStore.getUser.username}`,
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (app.label === "中航北斗") {
|
|
|
|
|
|
|
+ if (app.key === "zhonghang") {
|
|
|
protectedOpen("https://zhbdgps.cn");
|
|
protectedOpen("https://zhbdgps.cn");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (app.label === "智慧连油") {
|
|
|
|
|
|
|
+ if (app.key === "lianyou") {
|
|
|
protectedOpen(
|
|
protectedOpen(
|
|
|
`${import.meta.env.VITE_PMS_URL}/portalLogin?username=${userStore.getUser.username}&source=zhly`,
|
|
`${import.meta.env.VITE_PMS_URL}/portalLogin?username=${userStore.getUser.username}&source=zhly`,
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (app.label === "智慧注气") {
|
|
|
|
|
|
|
+ if (app.key === "zhuqi") {
|
|
|
protectedOpen(
|
|
protectedOpen(
|
|
|
`${import.meta.env.VITE_PMS_URL}/portalLogin?username=${userStore.getUser.username}&source=zhzq`,
|
|
`${import.meta.env.VITE_PMS_URL}/portalLogin?username=${userStore.getUser.username}&source=zhzq`,
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (app.label === "视频中心(VCS)") {
|
|
|
|
|
|
|
+ if (app.key === "video") {
|
|
|
protectedOpen(
|
|
protectedOpen(
|
|
|
`${import.meta.env.VITE_PMS_URL}/portalLogin?username=${userStore.getUser.username}&source=spzx`,
|
|
`${import.meta.env.VITE_PMS_URL}/portalLogin?username=${userStore.getUser.username}&source=spzx`,
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (app.label === "质量安全管理(QHSE)") {
|
|
|
|
|
|
|
+ if (app.key === "qhse") {
|
|
|
protectedOpen(
|
|
protectedOpen(
|
|
|
`${import.meta.env.VITE_PMS_URL}/portalLogin?username=${userStore.getUser.username}&source=qhse_nav`,
|
|
`${import.meta.env.VITE_PMS_URL}/portalLogin?username=${userStore.getUser.username}&source=qhse_nav`,
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (app.label === "经营驾驶舱(MC)") {
|
|
|
|
|
|
|
+ if (app.key === "mc") {
|
|
|
if (userStore.getUser.username && getAccessToken()) {
|
|
if (userStore.getUser.username && getAccessToken()) {
|
|
|
const res = await getMCSsoToken();
|
|
const res = await getMCSsoToken();
|
|
|
if (res) {
|
|
if (res) {
|
|
@@ -1176,7 +1217,7 @@ const handlePortalAppClick = async (app: PortalApp) => {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (app.label === "开发需求管理") {
|
|
|
|
|
|
|
+ if (app.key === "kaifa") {
|
|
|
if (userStore.getUser.username && getAccessToken()) {
|
|
if (userStore.getUser.username && getAccessToken()) {
|
|
|
const res = await zentaoSsoLogin({
|
|
const res = await zentaoSsoLogin({
|
|
|
username: userStore.getUser.username,
|
|
username: userStore.getUser.username,
|
|
@@ -1192,7 +1233,7 @@ const handlePortalAppClick = async (app: PortalApp) => {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (app.label === "人力资源(EHR)") {
|
|
|
|
|
|
|
+ if (app.key === "ehr") {
|
|
|
if (userStore.getUser.username && getAccessToken()) {
|
|
if (userStore.getUser.username && getAccessToken()) {
|
|
|
const res = await ehrLogin({
|
|
const res = await ehrLogin({
|
|
|
username: userStore.getUser.username,
|
|
username: userStore.getUser.username,
|
|
@@ -1230,7 +1271,7 @@ const handlePortalAppClick = async (app: PortalApp) => {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (app.label === "供应商管理(SRM)") {
|
|
|
|
|
|
|
+ if (app.key === "srm") {
|
|
|
if (userStore.getUser.username && getAccessToken()) {
|
|
if (userStore.getUser.username && getAccessToken()) {
|
|
|
const ua = window.navigator.userAgent;
|
|
const ua = window.navigator.userAgent;
|
|
|
const isDesktop =
|
|
const isDesktop =
|
|
@@ -1275,7 +1316,7 @@ const handlePortalAppClick = async (app: PortalApp) => {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (app.label === "智能钻井") {
|
|
|
|
|
|
|
+ if (app.key === "zuanjing") {
|
|
|
if (userStore.getUser.username && getAccessToken()) {
|
|
if (userStore.getUser.username && getAccessToken()) {
|
|
|
window.open(`http://172.21.0.224:8001/#/login`, "_blank");
|
|
window.open(`http://172.21.0.224:8001/#/login`, "_blank");
|
|
|
} else {
|
|
} else {
|
|
@@ -1283,7 +1324,7 @@ const handlePortalAppClick = async (app: PortalApp) => {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (app.label === "鸿盘") {
|
|
|
|
|
|
|
+ if (app.key === "hongpan") {
|
|
|
if (userStore.getUser.username && getAccessToken()) {
|
|
if (userStore.getUser.username && getAccessToken()) {
|
|
|
window.open(`https://pan.keruioil.com:52180`, "_blank");
|
|
window.open(`https://pan.keruioil.com:52180`, "_blank");
|
|
|
} else {
|
|
} else {
|
|
@@ -1291,7 +1332,7 @@ const handlePortalAppClick = async (app: PortalApp) => {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (app.label === "战略解码与执行") {
|
|
|
|
|
|
|
+ if (app.key === "zhanlue") {
|
|
|
if (userStore.getUser.username && getAccessToken()) {
|
|
if (userStore.getUser.username && getAccessToken()) {
|
|
|
if (isDing) {
|
|
if (isDing) {
|
|
|
dd.biz.util.openLink({
|
|
dd.biz.util.openLink({
|
|
@@ -1385,12 +1426,12 @@ const getTagClass = (tag: string) => {
|
|
|
|
|
|
|
|
const getTagName = (tag: string) => {
|
|
const getTagName = (tag: string) => {
|
|
|
return tag === "0"
|
|
return tag === "0"
|
|
|
- ? "正常"
|
|
|
|
|
|
|
+ ? t("common.normal")
|
|
|
: tag === "1"
|
|
: tag === "1"
|
|
|
? "重要"
|
|
? "重要"
|
|
|
: tag === "2"
|
|
: tag === "2"
|
|
|
? "紧急"
|
|
? "紧急"
|
|
|
- : "正常";
|
|
|
|
|
|
|
+ : t("common.normal");
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
let oaTasks = ref([]);
|
|
let oaTasks = ref([]);
|