From b16924b9d159dc352ccb210c476b0d3f2682c671 Mon Sep 17 00:00:00 2001 From: fuguobin Date: Tue, 5 Sep 2023 13:58:51 +0800 Subject: [PATCH] =?UTF-8?q?=E9=83=A8=E5=88=86=E9=97=AE=E9=A2=98=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/settings.ts | 2 +- src/types/auto-imports.d.ts | 2 + src/views/dashboard/index.vue | 10 +-- .../devicemanage/components/main.vue | 8 +-- .../devicemanage/components/menu.vue | 61 ++++++++++++------- vite.config.ts | 4 +- 6 files changed, 52 insertions(+), 35 deletions(-) diff --git a/src/settings.ts b/src/settings.ts index 8aac99f..7accad9 100644 --- a/src/settings.ts +++ b/src/settings.ts @@ -50,7 +50,7 @@ interface DefaultSettings { } const defaultSettings: DefaultSettings = { - title: 'vue-vite-project-admin', + title: '联美运营驾驶舱管理系统', showSettings: true, tagsView: true, fixedHeader: false, diff --git a/src/types/auto-imports.d.ts b/src/types/auto-imports.d.ts index 89da715..e21443a 100644 --- a/src/types/auto-imports.d.ts +++ b/src/types/auto-imports.d.ts @@ -2,6 +2,7 @@ export {} declare global { const EffectScope: typeof import('vue')['EffectScope'] + const ElForm: typeof import('element-plus/es')['ElForm'] const ElMessage: typeof import('element-plus/es')['ElMessage'] const ElMessageBox: typeof import('element-plus/es')['ElMessageBox'] const NEllipsis: typeof import('naive-ui')['NEllipsis'] @@ -271,6 +272,7 @@ import { UnwrapRef } from 'vue' declare module 'vue' { interface ComponentCustomProperties { readonly EffectScope: UnwrapRef + readonly ElForm: UnwrapRef readonly ElMessage: UnwrapRef readonly ElMessageBox: UnwrapRef readonly NEllipsis: UnwrapRef diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue index 4188936..698979f 100644 --- a/src/views/dashboard/index.vue +++ b/src/views/dashboard/index.vue @@ -18,10 +18,10 @@ - + + @@ -117,7 +117,7 @@ const cardData: CardData[] = [ }, { id: '3', - title: '下载数', + title: '订单数', value: 2000, time: 5000, colors: ['#56cdf3', '#719de3'], diff --git a/src/views/monitoring/devicemanage/components/main.vue b/src/views/monitoring/devicemanage/components/main.vue index 863fb2d..b07f8a1 100644 --- a/src/views/monitoring/devicemanage/components/main.vue +++ b/src/views/monitoring/devicemanage/components/main.vue @@ -232,7 +232,7 @@ import mitt from '@/plugins/bus'; const value = ref(0) // const active = ref(true) -const menuKey = ref(); +const deviceMenuKey = ref(); const infoData = ref([ { header_main: [] } ]); @@ -246,15 +246,15 @@ defineProps({ default: 0, }, }); -mitt.on('menuKey', (res: any) => { +mitt.on('deviceMenuKey', (res: any) => { //监听部门点击 - menuKey.value = res; + deviceMenuKey.value = res; gitDevice(); }); function gitDevice() { //获取组态信息 - const params = menuKey.value; + const params = deviceMenuKey.value; getViewInfo(params).then((res: any) => { if (res.code === 200) { if (isCurrentRoute) { diff --git a/src/views/monitoring/devicemanage/components/menu.vue b/src/views/monitoring/devicemanage/components/menu.vue index 38544eb..8ea3669 100644 --- a/src/views/monitoring/devicemanage/components/menu.vue +++ b/src/views/monitoring/devicemanage/components/menu.vue @@ -1,15 +1,16 @@