From 865698a9be03f8e4b1b5278e2fc505c8920ef9c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98937886381=E2=80=99?= <‘937886381@qq.com’> Date: Fri, 5 Jul 2024 16:33:14 +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 | 28 ++++++ src/layout/components/Navbar.vue | 21 ++++- src/layout/components/TagsView/index.vue | 59 +++++++----- src/layout/index.vue | 23 ++--- src/views/produce/workOrder/add-or-updata.vue | 90 ++++++++++--------- 5 files changed, 141 insertions(+), 80 deletions(-) diff --git a/src/components/Breadcrumb/index.vue b/src/components/Breadcrumb/index.vue index 978c630..38eed5f 100644 --- a/src/components/Breadcrumb/index.vue +++ b/src/components/Breadcrumb/index.vue @@ -18,7 +18,35 @@ export default { levelList: null } }, + computed: { + changeColor() { + if (this.$route.path == '/copilot/efficiency-container' || this.$route.path == '/copilot/main') { + return true + } else { + return false + } + }, + }, watch: { + // changeColor(val) { + // if (val == true) { + // var tag = document.getElementsByClassName("breadcrumb-container") + // console.log('tag', tag) + // // for (let i in tag) { + // tag[i].style.color = 'rgba(255, 255, 255, 0.45)' + // // tag[i].classList.remove("default") + // // } + // // console.log('this.$refs.scrollContainer', this.$refs.tag); + // } else { + // var tag = document.getElementsByClassName("breadcrumb-container") + // console.log('tag', tag) + // for (let i in tag) { + // tag[i].style.color = '' + // // tag[i].classList.remove("default") + // } + // // this.$refs.mainContainer.style.backgroundColor = '' + // } + // }, $route(route) { // if you go to the redirect page, do not update the breadcrumbs if (route.path.startsWith('/redirect/')) { diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index 08d2a83..7b9f536 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -1,5 +1,5 @@