diff --git a/src/http/guojian/index.ts b/src/http/guojian/index.ts new file mode 100644 index 0000000..f3e611c --- /dev/null +++ b/src/http/guojian/index.ts @@ -0,0 +1,6 @@ +import {get,post} from "@/utils/http" + +//国检24小时趋势 +export function getGuoJian24Trend(){ + return get('/guoJian/getGuoJian24Trend') +} \ No newline at end of file diff --git a/src/views/Hazardous/components/Border.vue b/src/views/Hazardous/components/Border.vue index 7fb8f51..e1e0cbb 100644 --- a/src/views/Hazardous/components/Border.vue +++ b/src/views/Hazardous/components/Border.vue @@ -5,7 +5,7 @@
{{ prop.title }}
-
+
@@ -25,6 +25,10 @@ const prop = defineProps({ width: 100%; height: 100%; position: relative; + display: flex; + flex-direction: column; + justify-content: space-between; + align-items: center; } .border-w { @@ -46,13 +50,11 @@ const prop = defineProps({ .top { - width: 55%; + width: 100%; height: 10%; font-size: 20px; font-weight: 700; - position: absolute; - top: 0; - left: 22.5%; + position: relative; display: flex; justify-content: center; align-items: center; @@ -62,9 +64,9 @@ const prop = defineProps({ content: ''; border-width: 0px; position: absolute; - left: 22.5%; + left: 37.5%; bottom: -3px; - width: 55%; + width: 25%; height: 6px; background: -webkit-linear-gradient(0deg, rgba(25, 126, 207, 1) 0%, rgba(25, 126, 207, 1) 0%, rgba(50, 214, 249, 1) 100%, rgba(50, 214, 249, 1) 100%); background: -moz-linear-gradient(90deg, rgba(25, 126, 207, 1) 0%, rgba(25, 126, 207, 1) 0%, rgba(50, 214, 249, 1) 100%, rgba(50, 214, 249, 1) 100%); @@ -75,4 +77,11 @@ const prop = defineProps({ -webkit-box-shadow: 0px -2px 20px rgba(45, 196, 240, 1); box-shadow: 0px -2px 20px rgba(45, 196, 240, 1); } + +.border-content { + width: 100%; + height: 90%; + box-sizing: border-box; + padding: 5px; +} diff --git a/src/views/Hazardous/components/Card.vue b/src/views/Hazardous/components/Card.vue index 7d22857..d040a78 100644 --- a/src/views/Hazardous/components/Card.vue +++ b/src/views/Hazardous/components/Card.vue @@ -9,7 +9,7 @@
- 20%RH + {{ prop.config.value }}{{ prop.config.unit }}
@@ -17,13 +17,14 @@
-
-
开启
+
+
{{ prop.config.value == 0?'关闭':'开启' }}
- + +
@@ -142,6 +143,13 @@ const porptitle = computed(() => { width: 24px; height: 24px; border-radius: 50%; +} + +.text2-l.grey { + background-color: #A7A6BD; +} + +.text2-l.green { background-color: #53FFC3; } .text2-r { diff --git a/src/views/Hazardous/components/LineChart.vue b/src/views/Hazardous/components/LineChart.vue new file mode 100644 index 0000000..68648d4 --- /dev/null +++ b/src/views/Hazardous/components/LineChart.vue @@ -0,0 +1,133 @@ + + + + + diff --git a/src/views/Hazardous/components/scrollBoard.vue b/src/views/Hazardous/components/scrollBoard.vue new file mode 100644 index 0000000..8cb1d68 --- /dev/null +++ b/src/views/Hazardous/components/scrollBoard.vue @@ -0,0 +1,118 @@ + + + + + + + \ No newline at end of file diff --git a/src/views/Hazardous/image/kongtiao1.svg b/src/views/Hazardous/image/kongtiao1.svg new file mode 100644 index 0000000..8d5ecc1 --- /dev/null +++ b/src/views/Hazardous/image/kongtiao1.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/views/Hazardous/image/paifeng1.svg b/src/views/Hazardous/image/paifeng1.svg new file mode 100644 index 0000000..b25dd20 --- /dev/null +++ b/src/views/Hazardous/image/paifeng1.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/views/Hazardous/image/ranqi1.svg b/src/views/Hazardous/image/ranqi1.svg new file mode 100644 index 0000000..d10536f --- /dev/null +++ b/src/views/Hazardous/image/ranqi1.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/views/Hazardous/image/shidu1.svg b/src/views/Hazardous/image/shidu1.svg new file mode 100644 index 0000000..6234653 --- /dev/null +++ b/src/views/Hazardous/image/shidu1.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/views/Hazardous/image/u21.svg b/src/views/Hazardous/image/wendu.svg similarity index 100% rename from src/views/Hazardous/image/u21.svg rename to src/views/Hazardous/image/wendu.svg diff --git a/src/views/Hazardous/image/wendu1.svg b/src/views/Hazardous/image/wendu1.svg new file mode 100644 index 0000000..a7f767b --- /dev/null +++ b/src/views/Hazardous/image/wendu1.svg @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/views/Hazardous/image/xielou1.svg b/src/views/Hazardous/image/xielou1.svg new file mode 100644 index 0000000..9de9e15 --- /dev/null +++ b/src/views/Hazardous/image/xielou1.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/views/Hazardous/image/yanwu1.svg b/src/views/Hazardous/image/yanwu1.svg new file mode 100644 index 0000000..7ef526a --- /dev/null +++ b/src/views/Hazardous/image/yanwu1.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/views/Hazardous/index.vue b/src/views/Hazardous/index.vue index c880b9c..c8f9288 100644 --- a/src/views/Hazardous/index.vue +++ b/src/views/Hazardous/index.vue @@ -2,7 +2,7 @@
-
@@ -33,62 +33,169 @@
- + +
- +
-