|
@@ -1,5 +1,5 @@
|
|
<template>
|
|
<template>
|
|
- <div class="topClass">
|
|
|
|
|
|
+ <div class="breadCrumbPanel">
|
|
<div class="contentClass">
|
|
<div class="contentClass">
|
|
<el-breadcrumb separator="/">
|
|
<el-breadcrumb separator="/">
|
|
<transition-group name="breadcrumb">
|
|
<transition-group name="breadcrumb">
|
|
@@ -35,7 +35,6 @@
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="avatarBox">
|
|
<div class="avatarBox">
|
|
- <!-- <i class="el-icon-switch-button"></i> -->
|
|
|
|
<img :src="imgSrc" width="100%" height="100%" />
|
|
<img :src="imgSrc" width="100%" height="100%" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -46,20 +45,21 @@ export default {
|
|
name: "breadCrumb",
|
|
name: "breadCrumb",
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ // 相关页面只为占位,页面是空白,无法展示
|
|
disabledRoutes: [
|
|
disabledRoutes: [
|
|
"modelLibrary",
|
|
"modelLibrary",
|
|
"algorithmsLibrary",
|
|
"algorithmsLibrary",
|
|
"sceneLibrary",
|
|
"sceneLibrary",
|
|
"systemManagement",
|
|
"systemManagement",
|
|
"workManagement",
|
|
"workManagement",
|
|
- ], // 相关页面只为占位,页面是空白,无法展示
|
|
|
|
|
|
+ ],
|
|
imgSrc: require("@/assets/common/image/photoF.png"),
|
|
imgSrc: require("@/assets/common/image/photoF.png"),
|
|
};
|
|
};
|
|
},
|
|
},
|
|
methods: {},
|
|
methods: {},
|
|
computed: {
|
|
computed: {
|
|
list() {
|
|
list() {
|
|
- // console.log(this.$route.matched);
|
|
|
|
|
|
+ // console.log(this.$route);
|
|
let isMainPage = false;
|
|
let isMainPage = false;
|
|
this.$route.matched.filter((item) => {
|
|
this.$route.matched.filter((item) => {
|
|
if (item.name === this.$route.name) {
|
|
if (item.name === this.$route.name) {
|
|
@@ -70,9 +70,11 @@ export default {
|
|
}
|
|
}
|
|
});
|
|
});
|
|
if (isMainPage) {
|
|
if (isMainPage) {
|
|
|
|
+ // 如果跳转首页,会有 / 需要去掉
|
|
return this.$route.matched.slice(0, 1);
|
|
return this.$route.matched.slice(0, 1);
|
|
} else {
|
|
} else {
|
|
- return this.$route.matched;
|
|
|
|
|
|
+ // 不要第一个显示首页的
|
|
|
|
+ return this.$route.matched.slice(1);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
},
|
|
},
|
|
@@ -80,11 +82,17 @@ export default {
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="less" scoped>
|
|
<style lang="less" scoped>
|
|
-.topClass {
|
|
|
|
- position: relative;
|
|
|
|
|
|
+.breadCrumbPanel {
|
|
|
|
+ position: fixed;
|
|
|
|
+ top: 0;
|
|
|
|
+ left: 150px;
|
|
|
|
+ right: 0;
|
|
|
|
+ bottom: 0;
|
|
|
|
+ z-index: 666;
|
|
height: 50px;
|
|
height: 50px;
|
|
line-height: 48px;
|
|
line-height: 48px;
|
|
border-bottom: 2px solid #f5f7fa;
|
|
border-bottom: 2px solid #f5f7fa;
|
|
|
|
+ background-color: #ffffff;
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
|
|
|
|
.contentClass {
|
|
.contentClass {
|
|
@@ -132,7 +140,7 @@ export default {
|
|
position: absolute;
|
|
position: absolute;
|
|
top: 4px;
|
|
top: 4px;
|
|
right: 20px;
|
|
right: 20px;
|
|
- z-index: 3;
|
|
|
|
|
|
+ z-index: 669;
|
|
width: 40px;
|
|
width: 40px;
|
|
height: 40px;
|
|
height: 40px;
|
|
cursor: pointer;
|
|
cursor: pointer;
|