Browse Source

边坡监测事件

develop
lau572 4 weeks ago
parent
commit
1b2a1347dd
  1. 6
      ruoyi-ui/src/views/JiHeExpressway/components/RoadStateCard/index.vue
  2. BIN
      ruoyi-ui/src/views/JiHeExpressway/images/device/边坡.png
  3. 4
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/FormEvent/PresetFormItems.js
  4. 8
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/data.js
  5. 4
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/statistics/data.js
  6. 6
      ruoyi-ui/src/views/JiHeExpressway/utils/enum.js
  7. 8
      ruoyi-ui/src/views/JiHeExpressway/utils/enum_event/PresetFormItems.js

6
ruoyi-ui/src/views/JiHeExpressway/components/RoadStateCard/index.vue

@ -2,14 +2,14 @@
<BorderRadiusImage class="RoadStateCard" borderRadius="2px" <BorderRadiusImage class="RoadStateCard" borderRadius="2px"
borderColor="linear-gradient(360deg, rgba(55, 231, 255, 0.3), rgba(55, 231, 255, 0))" borderWidth="2px"> borderColor="linear-gradient(360deg, rgba(55, 231, 255, 0.3), rgba(55, 231, 255, 0))" borderWidth="2px">
<div class="left" v-if="isShowLeft"> <div class="left" v-if="isShowLeft">
<ElImage style="width: 212px; height: 159px" v-if="cardData.pictures && cardData.pictures.length>0" class="imgPicture" <ElImage style="width: 212px; height: 159px" v-if="cardData.pictures && cardData.pictures.length>0" class="imgPicture"
:src="cardData.pictures[0]" :src="cardData.pictures[0]"
:preview-src-list="cardData.pictures || []"> :preview-src-list="cardData.pictures || []">
<div slot="error"> <div slot="error">
<i class="el-icon-picture-outline icon"></i> <i class="el-icon-picture-outline icon"></i>
</div> </div>
</ElImage> </ElImage>
<div style="width: 212px; height: 159px;" v-else class="imgPicture" <div style="width: 212px; height: 159px;" v-else class="imgPicture"
:preview-src-list="cardData.pictures || []"> :preview-src-list="cardData.pictures || []">
<img :src=getDeviceSource(cardData) style="width: auto; height: 80px"> <img :src=getDeviceSource(cardData) style="width: auto; height: 80px">
</div> </div>
@ -124,6 +124,8 @@ export default {
return require(`@screen/images/device/扫码报警B.png`) return require(`@screen/images/device/扫码报警B.png`)
} else if(warningSource ===7){ } else if(warningSource ===7){
return require(`@screen/images/device/气象监测器B.png`) return require(`@screen/images/device/气象监测器B.png`)
} else if(warningSource ===8){
return require(`@screen/images/device/边坡.png`)
} else { } else {
return require(`@screen/images/device/view.png`) return require(`@screen/images/device/view.png`)
} }

BIN
ruoyi-ui/src/views/JiHeExpressway/images/device/边坡.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

4
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/FormEvent/PresetFormItems.js

@ -319,6 +319,10 @@ export const eventSources = {
key: "13", key: "13",
label: "气象检测器", label: "气象检测器",
}, },
{
key: "14",
label: "边坡监测",
},
], ],
}, },
}; };

8
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/data.js

@ -93,6 +93,10 @@ export const gjSearchFormList = [
key: "7", key: "7",
label: "气象检测器", label: "气象检测器",
}, },
{
key: "8",
label: "边坡监测",
},
], ],
}, },
}, },
@ -268,6 +272,10 @@ export const gzSearchFormList = [
key: "13", key: "13",
label: "气象检测器", label: "气象检测器",
}, },
{
key: "14",
label: "边坡监测",
},
], ],
}, },
}, },

4
ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/statistics/data.js

@ -139,6 +139,10 @@ export const searchFormList = [
key: "7", key: "7",
label: "气象检测器", label: "气象检测器",
}, },
{
key: "8",
label: "边坡监测",
},
], ],
}, },
}, },

6
ruoyi-ui/src/views/JiHeExpressway/utils/enum.js

@ -905,6 +905,9 @@ export const InfoWarningSource = {
7: { 7: {
text: "气象检测器", text: "气象检测器",
}, },
8: {
text: "边坡监测",
},
}; };
export const warningSourceMapping = { export const warningSourceMapping = {
@ -914,7 +917,8 @@ export const warningSourceMapping = {
4: "护栏碰撞", 4: "护栏碰撞",
5: "扫码报警", 5: "扫码报警",
6: "非机预警", 6: "非机预警",
7: '气象检测器' 7: '气象检测器',
8: '边坡监测',
}; };
export const warningStateMapping = { export const warningStateMapping = {

8
ruoyi-ui/src/views/JiHeExpressway/utils/enum_event/PresetFormItems.js

@ -13,7 +13,7 @@ const stake_start = {
message: "请输入正确桩号", message: "请输入正确桩号",
callback(value, data) { callback(value, data) {
if (!value || if (!value ||
value==='' || value==='' ||
(parseInt(value) >= 54 && parseInt(value) <= 208) (parseInt(value) >= 54 && parseInt(value) <= 208)
){ ){
return true; return true;
@ -84,6 +84,10 @@ export const source = {
key: 13, key: 13,
label: "气象检测器", label: "气象检测器",
}, },
{
key: 14,
label: "边坡监测",
},
], ],
}, },
}; };
@ -1416,4 +1420,4 @@ export const locationSelect = [
value: 11, value: 11,
label: "出口内广场", label: "出口内广场",
}, },
]; ];

Loading…
Cancel
Save