Skip to content

Commit 9900d42

Browse files
committed
面包屑和词云chart和结构优化
1 parent be91db0 commit 9900d42

File tree

12 files changed

+384
-218
lines changed

12 files changed

+384
-218
lines changed

package-lock.json

Lines changed: 50 additions & 58 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"babel-plugin-import": "^1.13.0",
1616
"core-js": "^3.6.4",
1717
"echarts": "^4.7.0",
18+
"echarts-wordcloud": "^1.1.3",
1819
"js-cookie": "^2.2.1",
1920
"less": "^2.7.3",
2021
"less-loader": "^5.0.0",

src/assets/style/global.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,9 @@
3939

4040
.form-item-btn {
4141
margin-right: 0 !important;
42+
}
43+
44+
.chart-icon{
45+
font-size: 18px;
46+
margin-right: 6px;
4247
}

src/components/BreadCrumb.vue

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,12 @@
3737
this.getBreadcrumb()
3838
}
3939
getBreadcrumb() {
40-
let matched:any = this.$route.matched.filter(item => item.name)
41-
const first = matched[0]
42-
if (first && first.name !== 'dashboard') {
43-
matched = [{ path: '/dashboard', meta: { title: 'home' }}].concat(matched)
44-
}
40+
const matched:any = this.$route.matched.filter(item => item.name)
41+
// const first = matched[0]
42+
// if (first && first.name !== 'dashboard') {
43+
// matched = [{ path: '/dashboard', meta: { title: 'home' }}].concat(matched)
44+
// }
45+
4546
this.levelList = matched.filter((item:any) => item.meta && item.meta.title && item.meta.breadcrumb !== false)
4647
}
4748
pathCompile(path:string) {
@@ -56,8 +57,6 @@
5657
this.$router.push(redirect)
5758
return
5859
}
59-
// console.log(this.pathCompile(path))
60-
// this.$router.push(this.pathCompile(path))
6160
this.$router.push(path)
6261
}
6362
}

0 commit comments

Comments
 (0)