diff --git a/src/router/index.js b/src/router/index.js index 76d57f1..6da0ad3 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -1,4 +1,4 @@ -import { createWebHistory, createRouter } from 'vue-router' +import { createWebHistory, createRouter,createWebHashHistory } from 'vue-router' /* Layout */ import Layout from '@/layout' import ScaleScreen from '@/layout/scaleScreen' @@ -83,6 +83,12 @@ export const constantRoutes = [ component: () => import("../views/screen/R_D_Environment/index.vue"), hidden: true }, + { + path: "/screen/R_D_Environment1", + name: "R_D_Environment1", + component: () => import("../views/screen/R_D_Environment1/index.vue"), + hidden: true + }, ] }, { @@ -176,7 +182,7 @@ export const dynamicRoutes = [ ] const router = createRouter({ - history: createWebHistory(), + history: createWebHashHistory(), routes: constantRoutes, scrollBehavior(to, from, savedPosition) { if (savedPosition) { diff --git a/src/views/screen/R_D_Environment/component/proge.vue b/src/views/screen/R_D_Environment/component/proge.vue index 3cf3110..e2bd78d 100644 --- a/src/views/screen/R_D_Environment/component/proge.vue +++ b/src/views/screen/R_D_Environment/component/proge.vue @@ -83,9 +83,16 @@ const options = computed(() => { color: '#33FFFF' }, data: seriesData.map((item) => { - return { + let dataobj = { value: item - }; + } + if (item > 100) { + dataobj.itemStyle = { + color: '#FF0000' + } + + } + return dataobj }), z: 10 }, diff --git a/src/views/screen/R_D_Environment/index.vue b/src/views/screen/R_D_Environment/index.vue index 548e2f0..a129739 100644 --- a/src/views/screen/R_D_Environment/index.vue +++ b/src/views/screen/R_D_Environment/index.vue @@ -1,6 +1,6 @@