From 11387724deeb7274da716da492bec459c68978b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98937886381=E2=80=99?= <‘937886381@qq.com’> Date: Thu, 11 Jul 2024 14:34:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9ui?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Breadcrumb/index.vue | 23 ++++++++------- src/components/Hamburger/index.vue | 29 +++++++++++++------ src/layout/components/Navbar.vue | 28 ++++++++++-------- .../factoryData/components/ProdMonitor.vue | 3 -- .../components/produceLineBarYearTarget.vue | 3 +- 5 files changed, 50 insertions(+), 36 deletions(-) diff --git a/src/components/Breadcrumb/index.vue b/src/components/Breadcrumb/index.vue index 2a1c286..736fc0a 100644 --- a/src/components/Breadcrumb/index.vue +++ b/src/components/Breadcrumb/index.vue @@ -34,17 +34,13 @@ export default { changeColor(val) { if (val == true) { let item = document.getElementsByClassName('el-breadcrumb__separator') - // for (let i in item) { - // console.log('item[i]',item, item[i]) - // if (item[i].style) { - item[0].style.color = 'rgba(255, 255, 255, 0.45)' - item[1].style.color = 'rgba(255, 255, 255, 0.45)' - // } - // } + // let item =document.getElementsByClassName('') + item[0].classList.add("changeColor") + item[1].classList.add("changeColor") } else { let item = document.getElementsByClassName('el-breadcrumb__separator') - item[0].style.color = '' - item[1].style.color = '' + item[0].classList.remove("changeColor") + item[1].classList.remove("changeColor") } }, $route(route) { @@ -102,9 +98,16 @@ export default { cursor: text; } } - .app-breadcrumb .el-breadcrumb__inner a, .el-breadcrumb__inner.is-link { color:rgba(0, 0, 0, 0.65) } + diff --git a/src/components/Hamburger/index.vue b/src/components/Hamburger/index.vue index 368b002..eca510f 100644 --- a/src/components/Hamburger/index.vue +++ b/src/components/Hamburger/index.vue @@ -1,14 +1,16 @@ + @@ -22,6 +24,15 @@ export default { default: false } }, + computed: { + changeColor() { + if (this.$route.path == '/copilot/efficiency-container' || this.$route.path == '/copilot/main' || this.$route.path == '/factoryData/hdIndex' || this.$route.path === '/factoryData/factory-data') { + return true + } else { + return false + } + }, + }, methods: { toggleClick() { this.$emit('toggleClick') diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index fbc2323..e53c730 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -1,7 +1,7 @@