From a35128d235473409a23dc3f2f8746812a1cc3f8c Mon Sep 17 00:00:00 2001
From: sunshine <1467939124@qq.com>
Date: Mon, 5 Aug 2024 17:11:09 +0800
Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95=E9=A1=B5=E8=83=8C=E6=99=AF?=
=?UTF-8?q?=E5=9B=BE=E4=BF=AE=E6=94=B9=EF=BC=8C=E5=BF=AB=E6=8D=B7=E5=85=A5?=
=?UTF-8?q?=E5=8F=A3=E8=B7=AF=E7=94=B1=E8=B7=B3=E8=BD=AC?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/assets/svgs/login-box-bg.svg | 2 +-
src/locales/en.ts | 4 ++--
src/locales/zh-CN.ts | 4 ++--
src/views/Home/Index.vue | 28 +++++++++++++++++-----------
src/views/Login/Login.vue | 8 +++-----
5 files changed, 25 insertions(+), 21 deletions(-)
diff --git a/src/assets/svgs/login-box-bg.svg b/src/assets/svgs/login-box-bg.svg
index ab100403..50b6748a 100644
--- a/src/assets/svgs/login-box-bg.svg
+++ b/src/assets/svgs/login-box-bg.svg
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/src/locales/en.ts b/src/locales/en.ts
index 6562c9b7..4f866843 100644
--- a/src/locales/en.ts
+++ b/src/locales/en.ts
@@ -113,8 +113,8 @@ export default {
small: 'Small'
},
login: {
- welcome: 'Welcome to the system',
- message: 'Backstage management system',
+ "welcome": "Pulp Molding Intelligent Manufacturing Production Operation Management System",
+ "message": "Integrates information and resources in the production process to achieve an integrated system of production management, process control, quality management, and data analysis.",
tenantname: 'TenantName',
username: 'Username',
password: 'Password',
diff --git a/src/locales/zh-CN.ts b/src/locales/zh-CN.ts
index 22177264..a2f0e1ef 100644
--- a/src/locales/zh-CN.ts
+++ b/src/locales/zh-CN.ts
@@ -113,8 +113,8 @@ export default {
small: '小'
},
login: {
- welcome: '欢迎使用本系统',
- message: '开箱即用的中后台管理系统',
+ welcome: '纸浆模塑智能制造生产运营管理系统',
+ message: '通过整合生产过程中的信息和资源,实现了生产管理、过程控制、质量管理和数据分析的一体化系统',
tenantname: '租户名称',
username: '用户名',
password: '密码',
diff --git a/src/views/Home/Index.vue b/src/views/Home/Index.vue
index f96eed94..dcae9d84 100644
--- a/src/views/Home/Index.vue
+++ b/src/views/Home/Index.vue
@@ -121,7 +121,7 @@
-
+
{{ item.name }}
@@ -166,13 +166,12 @@
import { set } from 'lodash-es'
import { EChartsOption } from 'echarts'
import { formatTime } from '@/utils'
-
import { useUserStore } from '@/store/modules/user'
import { useWatermark } from '@/hooks/web/useWatermark'
import type { WorkplaceTotal, Project, Notice, Shortcut } from './types'
import { pieOptions, barOptions } from './echarts-data'
import {HomeApi} from "@/api/home/info";
-import {WeatherVO} from "@/api/home/info";
+import { WeatherVO } from "@/api/home/info";
defineOptions({ name: 'Home' })
@@ -192,7 +191,7 @@ let totalSate = reactive({
const weatherList = ref([])
const weatherEnable = ref(false)
-let todayWeather = null
+const todayWeather = ref({} as WeatherVO)
let weatherCity = ""
/** 初始化 **/
onMounted(async () => {
@@ -201,7 +200,7 @@ onMounted(async () => {
weatherEnable.value = data.isEnable
if(data.isEnable && weatherList){
weatherList.value = data.casts
- todayWeather = weatherList.value[0]
+ todayWeather.value = weatherList.value[0]
weatherCity = data.city
}
@@ -306,37 +305,44 @@ const getShortcut = async () => {
{
name: '生产任务',
icon: 'akar-icons:github-fill',
- url: 'github.io'
+ url: '/mes/plan'
},
{
name: '用户管理',
icon: 'logos:vue',
- url: 'vuejs.org'
+ url: '/system/user'
},
{
name: '采购订单',
icon: 'vscode-icons:file-type-vite',
- url: 'https://vitejs.dev/'
+ url: '/erp/purchase/order'
},
{
name: '报表看板',
icon: 'logos:angular-icon',
- url: 'github.io'
+ url: '/erp/home'
},
{
name: '物联数据',
icon: 'logos:react',
- url: 'github.io'
+ url: '/iot/kanban'
},
{
name: '仓库管理',
icon: 'logos:webpack',
- url: 'github.io'
+ url: '/erp/stock/warehouse'
}
]
shortcut = Object.assign(shortcut, data)
}
+// 跳转路由
+
+const router = useRouter()
+const navigateToRoute = (url: string)=> {
+ router.push(url)
+}
+
// 用户来源
const getUserAccessSource = async () => {
const data = [
diff --git a/src/views/Login/Login.vue b/src/views/Login/Login.vue
index bdc33179..842c0f94 100644
--- a/src/views/Login/Login.vue
+++ b/src/views/Login/Login.vue
@@ -9,7 +9,7 @@
>
-

+
{{ underlineToHump(appStore.getTitle) }}
@@ -19,8 +19,8 @@
enter-active-class="animate__animated animate__bounceInLeft"
tag="div"
>
-
- {{ t('login.welcome') }}
+
+ {{ t('login.welcome') }}
{{ t('login.message') }}
@@ -64,12 +64,10 @@