|
@@ -68,7 +68,7 @@
|
|
|
@click="router.push('/flow')"
|
|
@click="router.push('/flow')"
|
|
|
>
|
|
>
|
|
|
<img src="../assets//images/flow.png" alt="" class="w-10 h-10" />
|
|
<img src="../assets//images/flow.png" alt="" class="w-10 h-10" />
|
|
|
- 流程门户
|
|
|
|
|
|
|
+ {{ $t("portal.flow") }}
|
|
|
</button>
|
|
</button>
|
|
|
<button
|
|
<button
|
|
|
v-hasPermi="['portal:dashboard:view']"
|
|
v-hasPermi="['portal:dashboard:view']"
|
|
@@ -77,14 +77,14 @@
|
|
|
@click="router.push('/drive')"
|
|
@click="router.push('/drive')"
|
|
|
>
|
|
>
|
|
|
<img src="../assets//images/driveicon.png" alt="" class="w-10 h-10" />
|
|
<img src="../assets//images/driveicon.png" alt="" class="w-10 h-10" />
|
|
|
- 驾驶舱门户
|
|
|
|
|
|
|
+ {{ $t("portal.drive") }}
|
|
|
</button>
|
|
</button>
|
|
|
<button
|
|
<button
|
|
|
type="button"
|
|
type="button"
|
|
|
class="portal-mobile-shortcut flex flex-col items-center justify-center cursor-pointer"
|
|
class="portal-mobile-shortcut flex flex-col items-center justify-center cursor-pointer"
|
|
|
>
|
|
>
|
|
|
<img src="../assets//images/report.png" alt="" class="w-10 h-10" />
|
|
<img src="../assets//images/report.png" alt="" class="w-10 h-10" />
|
|
|
- 报表门户
|
|
|
|
|
|
|
+ {{ $t("portal.report") }}
|
|
|
</button>
|
|
</button>
|
|
|
</section>
|
|
</section>
|
|
|
|
|
|
|
@@ -100,7 +100,7 @@
|
|
|
<input
|
|
<input
|
|
|
v-model="searchKeyword"
|
|
v-model="searchKeyword"
|
|
|
type="text"
|
|
type="text"
|
|
|
- placeholder="搜索应用、流程、数据..."
|
|
|
|
|
|
|
+ :placeholder="$t('flow.palceholder')"
|
|
|
class="search-input"
|
|
class="search-input"
|
|
|
@keyup.enter="handleSearch"
|
|
@keyup.enter="handleSearch"
|
|
|
/>
|
|
/>
|
|
@@ -116,7 +116,9 @@
|
|
|
>
|
|
>
|
|
|
<button type="button" class="quick-btn quick-btn--dropdown">
|
|
<button type="button" class="quick-btn quick-btn--dropdown">
|
|
|
<img src="../assets//images//td.png" class="w-5 h-5" alt="" />
|
|
<img src="../assets//images//td.png" class="w-5 h-5" alt="" />
|
|
|
- <span class="btn-label quick-btn__meta">我的待办</span>
|
|
|
|
|
|
|
+ <span class="btn-label quick-btn__meta">{{
|
|
|
|
|
+ $t("flow.todo")
|
|
|
|
|
+ }}</span>
|
|
|
<span class="quick-btn__count quick-btn__count--todo">{{
|
|
<span class="quick-btn__count quick-btn__count--todo">{{
|
|
|
todo
|
|
todo
|
|
|
}}</span>
|
|
}}</span>
|
|
@@ -159,7 +161,9 @@
|
|
|
>
|
|
>
|
|
|
<button type="button" class="quick-btn quick-btn--dropdown">
|
|
<button type="button" class="quick-btn quick-btn--dropdown">
|
|
|
<Icon icon="mdi:check" class="btn-icon" />
|
|
<Icon icon="mdi:check" class="btn-icon" />
|
|
|
- <span class="btn-label quick-btn__meta">我的已办</span>
|
|
|
|
|
|
|
+ <span class="btn-label quick-btn__meta">{{
|
|
|
|
|
+ $t("flow.done")
|
|
|
|
|
+ }}</span>
|
|
|
<span
|
|
<span
|
|
|
class="p-2 inline-block quick-btn__count quick-btn__count--done"
|
|
class="p-2 inline-block quick-btn__count quick-btn__count--done"
|
|
|
>{{ done }}</span
|
|
>{{ done }}</span
|
|
@@ -285,7 +289,7 @@
|
|
|
class="side-card__more"
|
|
class="side-card__more"
|
|
|
@click="handleNoticeMoreClick"
|
|
@click="handleNoticeMoreClick"
|
|
|
>
|
|
>
|
|
|
- 更多
|
|
|
|
|
|
|
+ {{ $t("common.more") }}
|
|
|
<Icon icon="mingcute:right-line" class="text-[18px]" />
|
|
<Icon icon="mingcute:right-line" class="text-[18px]" />
|
|
|
</button>
|
|
</button>
|
|
|
</div>
|
|
</div>
|
|
@@ -330,7 +334,7 @@
|
|
|
class="side-card__more"
|
|
class="side-card__more"
|
|
|
@click="router.push('/todo-list')"
|
|
@click="router.push('/todo-list')"
|
|
|
>
|
|
>
|
|
|
- 全部任务
|
|
|
|
|
|
|
+ {{ $t("common.all") }}
|
|
|
<Icon icon="mingcute:right-line" class="text-[18px]" />
|
|
<Icon icon="mingcute:right-line" class="text-[18px]" />
|
|
|
</button>
|
|
</button>
|
|
|
</div>
|
|
</div>
|
|
@@ -489,7 +493,7 @@
|
|
|
<div class="side-card__header w-[90%] ml-[15px]">
|
|
<div class="side-card__header w-[90%] ml-[15px]">
|
|
|
<div class="news notice-badge pb-2">{{ newsPanelTitle }}</div>
|
|
<div class="news notice-badge pb-2">{{ newsPanelTitle }}</div>
|
|
|
<button type="button" class="side-card__more" @click="goNews">
|
|
<button type="button" class="side-card__more" @click="goNews">
|
|
|
- 更多
|
|
|
|
|
|
|
+ {{ $t("common.more") }}
|
|
|
<Icon icon="mingcute:right-line" class="text-[18px]" />
|
|
<Icon icon="mingcute:right-line" class="text-[18px]" />
|
|
|
</button>
|
|
</button>
|
|
|
</div>
|
|
</div>
|
|
@@ -534,12 +538,12 @@
|
|
|
>
|
|
>
|
|
|
<div class="placeholder-panel flex flex-col text-left">
|
|
<div class="placeholder-panel flex flex-col text-left">
|
|
|
<!-- <div class="text-sm">需要帮助?</div> -->
|
|
<!-- <div class="text-sm">需要帮助?</div> -->
|
|
|
- <div class="text-[10px]">遇到系统操作问题,需要帮助</div>
|
|
|
|
|
|
|
+ <div class="text-[10px]">{{ t("home.consultTip") }}</div>
|
|
|
<div
|
|
<div
|
|
|
class="bg-[#79ebfa] text-sm text-center text-[#004098] py-1 px-2 rounded-full mt-2 w-[30%] cursor-pointer"
|
|
class="bg-[#79ebfa] text-sm text-center text-[#004098] py-1 px-2 rounded-full mt-2 w-[30%] cursor-pointer"
|
|
|
@click="openConsult"
|
|
@click="openConsult"
|
|
|
>
|
|
>
|
|
|
- 立即咨询
|
|
|
|
|
|
|
+ {{ t("home.consult") }}
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</section>
|
|
</section>
|
|
@@ -584,7 +588,8 @@ import Footer from "@components/home/Footer.vue";
|
|
|
import { useRouter } from "vue-router";
|
|
import { useRouter } from "vue-router";
|
|
|
import axios from "axios";
|
|
import axios from "axios";
|
|
|
import { Icon } from "@iconify/vue";
|
|
import { Icon } from "@iconify/vue";
|
|
|
-import { ElLoading } from "element-plus";
|
|
|
|
|
|
|
+import { useI18n } from "@/i18n";
|
|
|
|
|
+const { t } = useI18n();
|
|
|
import {
|
|
import {
|
|
|
getMCSsoToken,
|
|
getMCSsoToken,
|
|
|
ssoLogin,
|
|
ssoLogin,
|
|
@@ -676,12 +681,12 @@ const showDingTalkLoginMask = ref(
|
|
|
isDingTalkClient() && !userStore.getUser.username && !getAccessToken(),
|
|
isDingTalkClient() && !userStore.getUser.username && !getAccessToken(),
|
|
|
);
|
|
);
|
|
|
|
|
|
|
|
-const todoPanelTitle = "待办中心";
|
|
|
|
|
-const newsPanelTitle = "新闻中心";
|
|
|
|
|
-const noticeTabs = [
|
|
|
|
|
- { key: "redHead", label: "红头文件" },
|
|
|
|
|
- { key: "notice", label: "通知公告" },
|
|
|
|
|
-] as const;
|
|
|
|
|
|
|
+const todoPanelTitle = t("home.todoCenter");
|
|
|
|
|
+const newsPanelTitle = t("home.news");
|
|
|
|
|
+const noticeTabs = ref([
|
|
|
|
|
+ { key: "redHead", label: t("home.red") },
|
|
|
|
|
+ { key: "notice", label: t("home.notice") },
|
|
|
|
|
+]);
|
|
|
|
|
|
|
|
type NoticeTabKey = (typeof noticeTabs)[number]["key"];
|
|
type NoticeTabKey = (typeof noticeTabs)[number]["key"];
|
|
|
|
|
|
|
@@ -871,32 +876,32 @@ watch(
|
|
|
slides.value = [
|
|
slides.value = [
|
|
|
{
|
|
{
|
|
|
image: banner2_white,
|
|
image: banner2_white,
|
|
|
- text: "数字化转型,驱动未来增长",
|
|
|
|
|
|
|
+ text: t("banner.banner1"),
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
image: banner1_white,
|
|
image: banner1_white,
|
|
|
- text: "保持热爱,奔赴目标!",
|
|
|
|
|
|
|
+ text: t("banner.banner2"),
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
{
|
|
{
|
|
|
image: banner1_white,
|
|
image: banner1_white,
|
|
|
- text: "智慧平台,赋能高效协同",
|
|
|
|
|
|
|
+ text: t("banner.banner3"),
|
|
|
},
|
|
},
|
|
|
];
|
|
];
|
|
|
} else {
|
|
} else {
|
|
|
slides.value = [
|
|
slides.value = [
|
|
|
{
|
|
{
|
|
|
image: banner2,
|
|
image: banner2,
|
|
|
- text: "数字化转型,驱动未来增长",
|
|
|
|
|
|
|
+ text: t("banner.banner1"),
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
image: banner1,
|
|
image: banner1,
|
|
|
- text: "保持热爱,奔赴目标!",
|
|
|
|
|
|
|
+ text: t("banner.banner2"),
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
{
|
|
{
|
|
|
image: banner1,
|
|
image: banner1,
|
|
|
- text: "智慧平台,赋能高效协同",
|
|
|
|
|
|
|
+ text: t("banner.banner3"),
|
|
|
},
|
|
},
|
|
|
];
|
|
];
|
|
|
}
|
|
}
|
|
@@ -907,16 +912,16 @@ watch(
|
|
|
const slides = ref([
|
|
const slides = ref([
|
|
|
{
|
|
{
|
|
|
image: themeStore.theme === "light" ? banner2_white : banner2,
|
|
image: themeStore.theme === "light" ? banner2_white : banner2,
|
|
|
- text: "数字化转型,驱动未来增长",
|
|
|
|
|
|
|
+ text: t("banner.banner1"),
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
image: themeStore.theme === "light" ? banner1_white : banner1,
|
|
image: themeStore.theme === "light" ? banner1_white : banner1,
|
|
|
- text: "保持热爱,奔赴目标!",
|
|
|
|
|
|
|
+ text: t("banner.banner2"),
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
{
|
|
{
|
|
|
image: themeStore.theme === "light" ? banner1_white : banner1,
|
|
image: themeStore.theme === "light" ? banner1_white : banner1,
|
|
|
- text: "智慧平台,赋能高效协同",
|
|
|
|
|
|
|
+ text: t("banner.banner3"),
|
|
|
},
|
|
},
|
|
|
]);
|
|
]);
|
|
|
|
|
|