diff --git a/src/views/oneMap/SmartDrainage/PsLeftBox.vue b/src/views/oneMap/SmartDrainage/PsLeftBox.vue
index 959f1e3..c06a241 100644
--- a/src/views/oneMap/SmartDrainage/PsLeftBox.vue
+++ b/src/views/oneMap/SmartDrainage/PsLeftBox.vue
@@ -80,9 +80,8 @@
-
-
-
>{{ item.value }}
+
+ {{ i.value }}
@@ -117,6 +116,7 @@
{ name: '风险点', num: '9', Imgurl: fxd, dw: '处' },
{ name: '缺陷管网', num: '6.1', Imgurl: qxgw, dw: 'km' },
]);
+const showRainList = ref([]);
const Pointname = ref('');
const dataList = ref([
{ num: '1', yls: '永安路', wz: '百米大道永安路' },
@@ -148,18 +148,44 @@
// 时间点击事件
function yearclick(val, index) {
activedname.value = val.name;
+
+ showRainList.value = index == 0 ? ranLeng[0] : index == 1 ? ranLeng[1] : index == 2 ? ranLeng[2] : ranLeng[3];
+
console.log('index', index);
initRainImage([images[index]]);
}
const timeActive = ref(0);
const ranLeng = [
[
+ { value: '0-0.2', color: 'rgba(7, 213, 118, 0)' },
+ { value: '0.2-5', color: 'rgb(38, 129, 240,1)' },
+ { value: '5-16', color: 'rgba(222,230,0,1)' },
+ { value: '16-25', color: 'rgba(255,184,15,1)' },
+ { value: '>25', color: 'rgb(255, 26, 26,1)' },
+ ],
+ [
+ { value: '0-5', color: 'rgba(7, 213, 118, 0)' },
+ { value: '5-15', color: 'rgba(7, 213, 118, 1)' },
+ { value: '15-30', color: 'rgba(38, 129, 240,1)' },
+ { value: '30-70', color: 'rgba(247, 223, 56, 1)' },
+ { value: '70-140', color: 'rgba(230, 85, 41, 1)' },
+ { value: '>140', color: 'rgba(255, 26, 26, 1)' },
+ ],
+ [
+ { value: '0-5', color: 'rgba(7, 213, 118, 0)' },
+ { value: '5-15', color: 'rgba(7, 213, 118, 1)' },
+ { value: '15-30', color: 'rgba(38, 129, 240,1)' },
+ { value: '30-70', color: 'rgba(247, 223, 56, 1)' },
+ { value: '70-140', color: 'rgba(230, 85, 41, 1)' },
+ { value: '>140', color: 'rgba(255, 26, 26, 1)' },
+ ],
+ [
{ value: '0-10', color: 'rgba(7, 213, 118, 0)' },
{ value: '10-25', color: 'rgba(7, 213, 118, 1)' },
{ value: '25-50', color: 'rgba(38, 129, 240,1)' },
{ value: '50-100', color: 'rgba(247, 223, 56, 1)' },
{ value: '100-250', color: 'rgba(230, 85, 41, 1)' },
- { value: '250', color: 'rgba(255, 55, 168, 1)' },
+ { value: '>250', color: 'rgba(255, 26, 26, 1)' },
],
];
@@ -340,6 +366,7 @@
}
onMounted(() => {
+ showRainList.value = ranLeng[0];
getData();
initRainImage([images[0]]);
});
@@ -554,6 +581,7 @@
justify-content: space-evenly;
color: #fff;
z-index: 10;
+
.flex {
height: 24px;
}
@@ -567,6 +595,7 @@
height: 14px;
border-radius: 4px;
margin-right: 5px;
+ border: 1px solid #fff;
}
.sBorder {
border: 1px solid #39f7ff;
diff --git a/src/views/oneMap/SmartDrainage/PsLeftBox.vue b/src/views/oneMap/SmartDrainage/PsLeftBox.vue
index 959f1e3..c06a241 100644
--- a/src/views/oneMap/SmartDrainage/PsLeftBox.vue
+++ b/src/views/oneMap/SmartDrainage/PsLeftBox.vue
@@ -80,9 +80,8 @@
-
-
-
>{{ item.value }}
+
+ {{ i.value }}
@@ -117,6 +116,7 @@
{ name: '风险点', num: '9', Imgurl: fxd, dw: '处' },
{ name: '缺陷管网', num: '6.1', Imgurl: qxgw, dw: 'km' },
]);
+const showRainList = ref([]);
const Pointname = ref('');
const dataList = ref([
{ num: '1', yls: '永安路', wz: '百米大道永安路' },
@@ -148,18 +148,44 @@
// 时间点击事件
function yearclick(val, index) {
activedname.value = val.name;
+
+ showRainList.value = index == 0 ? ranLeng[0] : index == 1 ? ranLeng[1] : index == 2 ? ranLeng[2] : ranLeng[3];
+
console.log('index', index);
initRainImage([images[index]]);
}
const timeActive = ref(0);
const ranLeng = [
[
+ { value: '0-0.2', color: 'rgba(7, 213, 118, 0)' },
+ { value: '0.2-5', color: 'rgb(38, 129, 240,1)' },
+ { value: '5-16', color: 'rgba(222,230,0,1)' },
+ { value: '16-25', color: 'rgba(255,184,15,1)' },
+ { value: '>25', color: 'rgb(255, 26, 26,1)' },
+ ],
+ [
+ { value: '0-5', color: 'rgba(7, 213, 118, 0)' },
+ { value: '5-15', color: 'rgba(7, 213, 118, 1)' },
+ { value: '15-30', color: 'rgba(38, 129, 240,1)' },
+ { value: '30-70', color: 'rgba(247, 223, 56, 1)' },
+ { value: '70-140', color: 'rgba(230, 85, 41, 1)' },
+ { value: '>140', color: 'rgba(255, 26, 26, 1)' },
+ ],
+ [
+ { value: '0-5', color: 'rgba(7, 213, 118, 0)' },
+ { value: '5-15', color: 'rgba(7, 213, 118, 1)' },
+ { value: '15-30', color: 'rgba(38, 129, 240,1)' },
+ { value: '30-70', color: 'rgba(247, 223, 56, 1)' },
+ { value: '70-140', color: 'rgba(230, 85, 41, 1)' },
+ { value: '>140', color: 'rgba(255, 26, 26, 1)' },
+ ],
+ [
{ value: '0-10', color: 'rgba(7, 213, 118, 0)' },
{ value: '10-25', color: 'rgba(7, 213, 118, 1)' },
{ value: '25-50', color: 'rgba(38, 129, 240,1)' },
{ value: '50-100', color: 'rgba(247, 223, 56, 1)' },
{ value: '100-250', color: 'rgba(230, 85, 41, 1)' },
- { value: '250', color: 'rgba(255, 55, 168, 1)' },
+ { value: '>250', color: 'rgba(255, 26, 26, 1)' },
],
];
@@ -340,6 +366,7 @@
}
onMounted(() => {
+ showRainList.value = ranLeng[0];
getData();
initRainImage([images[0]]);
});
@@ -554,6 +581,7 @@
justify-content: space-evenly;
color: #fff;
z-index: 10;
+
.flex {
height: 24px;
}
@@ -567,6 +595,7 @@
height: 14px;
border-radius: 4px;
margin-right: 5px;
+ border: 1px solid #fff;
}
.sBorder {
border: 1px solid #39f7ff;
diff --git a/src/views/oneMap/floodPrevention/FholRightBox.vue b/src/views/oneMap/floodPrevention/FholRightBox.vue
index c2b55f6..c7d5a2c 100644
--- a/src/views/oneMap/floodPrevention/FholRightBox.vue
+++ b/src/views/oneMap/floodPrevention/FholRightBox.vue
@@ -76,20 +76,6 @@
70%
-
-
-
-
累计抽排量
-
108.9
-
万m³
-
-
-
-
-
-