From e62abb79449efcb0d548a793561ec31fce934c52 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=8E=E5=8A=B2=E9=BE=99?= <2860996570@qq.com>
Date: Thu, 21 Nov 2024 16:01:59 +0800
Subject: [PATCH] =?UTF-8?q?genggai=E5=B7=A5=E4=BD=9C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/Breadcrumb/index.vue | 17 ++++++++----
src/views/unitPages/myTask/audit.vue | 41 +++++++++++++++++++++++-----
src/views/unitPages/myTask/index.vue | 7 +++++
src/views/unitPages/myTask/info.vue | 5 +++-
4 files changed, 56 insertions(+), 14 deletions(-)
diff --git a/src/components/Breadcrumb/index.vue b/src/components/Breadcrumb/index.vue
index 0a71a8c..17937c0 100644
--- a/src/components/Breadcrumb/index.vue
+++ b/src/components/Breadcrumb/index.vue
@@ -40,7 +40,12 @@ export default {
// 当前全部侧边栏
let sidebarRouters = this.sidebarRouters
let matched = this.$route.matched.filter(item => item.meta && item.meta.title)
+ let matchedquery = this.$route.query
+ matched[0].query = matchedquery
+
const first = matched[0]
+
+
// sidebarRouters.forEach(element => {
// if (element.children && element.children.length != 0) {
// // 提取带childen的侧边栏
@@ -53,7 +58,7 @@ export default {
if (!this.isDashboard(first)) {
// matched = [{ path: '/index', meta: { title: '首页' }}].concat(matched)
}
- // console.log(sidebarRouters);
+ console.log(matched[0]);
if(matched[0].path == "/assetsAuth" ) {
// 管理端--资产管理--新增资产
const activeRoute = sidebarRouters.filter(item => item.path == '/' && item.children[0].path == 'assets')
@@ -72,10 +77,8 @@ export default {
this.levelList = [activeRoute[0].children[0],matched[0]]
} else if(matched[0].path == "/taskAuditInfo") {
// 管理端--任务管理--任务审核--资产审核
- const activeRoute = sidebarRouters.filter(item => item.path == '/' && item.children[0].path == 'task')
- const route = sidebarRouters.filter(item => item.path == '')
- const twoActiveRoute = route[0].children.filter(item => item.path == "taskAudit")
- this.levelList = [activeRoute[0].children[0],twoActiveRoute[0],matched[0]]
+ const activeRoute = sidebarRouters.filter(item => item.path == '/' && item.children[0].path == 'myTask')
+ this.levelList = [activeRoute[0].children[0],matched[0]]
} else if(matched[0].path == "/mytaskAuditInfo") {
// 单位端--我的任务--资产核查--资产审核详情
const activeRoute = sidebarRouters.filter(item => item.path == '/' && item.children[0].path == 'myTask')
@@ -98,12 +101,14 @@ export default {
return name.trim() === 'Index'
},
handleLink(item) {
+ console.log(item);
+
const { redirect, path } = item
if (redirect) {
this.$router.push(redirect)
return
}
- this.$router.push(path)
+ // this.$router.push(path)
}
}
}
diff --git a/src/views/unitPages/myTask/audit.vue b/src/views/unitPages/myTask/audit.vue
index c44a088..421cea0 100644
--- a/src/views/unitPages/myTask/audit.vue
+++ b/src/views/unitPages/myTask/audit.vue
@@ -5,8 +5,8 @@