This commit is contained in:
chenlin
2025-12-08 15:48:54 +08:00
parent 0c3a841936
commit fc2c0d341f
4 changed files with 23 additions and 18 deletions

View File

@@ -26,13 +26,11 @@ export const useTagsViewStore = defineStore('tagsView', {
actions: { actions: {
// 新增缓存和tag // 新增缓存和tag
addView(view: RouteLocationNormalizedLoaded): void { addView(view: RouteLocationNormalizedLoaded): void {
debugger
this.addVisitedView(view) this.addVisitedView(view)
this.addCachedView() this.addCachedView()
}, },
// 新增tag // 新增tag
addVisitedView(view: RouteLocationNormalizedLoaded) { addVisitedView(view: RouteLocationNormalizedLoaded) {
debugger
if (this.visitedViews.some((v) => v.path === view.path)) return if (this.visitedViews.some((v) => v.path === view.path)) return
if (view.meta?.noTagsView) return if (view.meta?.noTagsView) return
this.visitedViews.push( this.visitedViews.push(
@@ -43,7 +41,6 @@ export const useTagsViewStore = defineStore('tagsView', {
}, },
// 新增缓存 // 新增缓存
addCachedView() { addCachedView() {
debugger
const cacheMap: Set<string> = new Set() const cacheMap: Set<string> = new Set()
for (const v of this.visitedViews) { for (const v of this.visitedViews) {
const item = getRawRoute(v) const item = getRawRoute(v)

View File

@@ -569,7 +569,7 @@ const hiddenDangerChartOption = computed<EChartsOption>(() => {
}, },
legend: { legend: {
data: ['一般隐患', '重大隐患'], data: ['一般隐患', '重大隐患'],
top: 10, top: 0,
textStyle: { textStyle: {
fontSize: 12 fontSize: 12
} }
@@ -578,7 +578,7 @@ const hiddenDangerChartOption = computed<EChartsOption>(() => {
left: '3%', left: '3%',
right: '4%', right: '4%',
bottom: '3%', bottom: '3%',
top: '25%', top: '12%',
containLabel: true containLabel: true
}, },
xAxis: { xAxis: {
@@ -1614,8 +1614,8 @@ onMounted(async () => {
.donut-chart-wrapper, .donut-chart-wrapper,
.donut-chart-wrapper-small { .donut-chart-wrapper-small {
height: 280px; height: 200px;
min-height: 280px; min-height: 200px;
} }
.line-chart-wrapper, .line-chart-wrapper,
@@ -1627,9 +1627,13 @@ onMounted(async () => {
box-sizing: border-box; box-sizing: border-box;
} }
.bar-chart-wrapper {
height: 215px;
}
.progress-chart-wrapper { .progress-chart-wrapper {
height: 280px; height: 200px;
min-height: 280px; min-height: 200px;
} }
.high-risk-top { .high-risk-top {
@@ -1714,7 +1718,7 @@ onMounted(async () => {
.operation-distribution, .operation-distribution,
.park-operation-distribution, .park-operation-distribution,
.regional-progress { .regional-progress {
margin-top: 10px; margin-top: 8px;
.distribution-title { .distribution-title {
font-size: 14px; font-size: 14px;

View File

@@ -1500,8 +1500,8 @@ onMounted(() => {
.donut-chart-wrapper, .donut-chart-wrapper,
.donut-chart-wrapper-small { .donut-chart-wrapper-small {
height: 280px; height: 200px;
min-height: 280px; min-height: 200px;
} }
.line-chart-wrapper, .line-chart-wrapper,
@@ -1513,9 +1513,13 @@ onMounted(() => {
box-sizing: border-box; box-sizing: border-box;
} }
.bar-chart-wrapper {
margin-bottom: 15px;
}
.progress-chart-wrapper { .progress-chart-wrapper {
height: 280px; height: 200px;
min-height: 280px; min-height: 200px;
} }
.region-distribution, .region-distribution,

View File

@@ -1406,8 +1406,8 @@ onMounted(() => {
.donut-chart-wrapper, .donut-chart-wrapper,
.donut-chart-wrapper-small { .donut-chart-wrapper-small {
height: 280px; height: 200px;
min-height: 280px; min-height: 200px;
} }
.line-chart-wrapper, .line-chart-wrapper,
@@ -1420,8 +1420,8 @@ onMounted(() => {
} }
.progress-chart-wrapper { .progress-chart-wrapper {
height: 280px; height: 200px;
min-height: 280px; min-height: 200px;
} }
.region-distribution, .region-distribution,