Browse Source

fix:修改设备告警逻辑 修改冲突样式

temp
zhaohy 3 months ago
parent
commit
d15f8e8ed5
  1. 5
      hx-ai-intelligent/src/view/alarmManagement/alarmSettings/equipmentAlarm/configureDeviceAlarms.vue
  2. 3
      hx-ai-intelligent/src/view/alarmManagement/alarmSettings/equipmentAlarm/editConfigureDeviceAlarm.vue
  3. 4
      hx-ai-intelligent/src/view/alarmManagement/gatewayAlarm/look.vue
  4. 4
      hx-ai-intelligent/src/view/equipmentControl/components/doubleSingleModel.vue
  5. 3
      hx-ai-intelligent/src/view/equipmentControl/electricDoor/index.vue

5
hx-ai-intelligent/src/view/alarmManagement/alarmSettings/equipmentAlarm/configureDeviceAlarms.vue

@ -242,12 +242,15 @@
dynamicParams: { dynamicParams: {
deviceCode: 'deviceInfoCode', // deviceCode: 'deviceInfoCode', //
}, },
defaultParams: {
type: 0,
},
componentProps: { componentProps: {
api: device.queryDevicePoint, api: device.queryDevicePoint,
allowClear: true, allowClear: true,
resultField: 'data', resultField: 'data',
placeholder: '请选择设备点位', placeholder: '请选择设备点位',
labelField: 'code', labelField: 'name',
valueField: 'id', valueField: 'id',
dependency: 'deviceInfoCode', dependency: 'deviceInfoCode',
showSearch: true, showSearch: true,

3
hx-ai-intelligent/src/view/alarmManagement/alarmSettings/equipmentAlarm/editConfigureDeviceAlarm.vue

@ -217,13 +217,14 @@
// //
const getDevicePoint = (value: any) => { const getDevicePoint = (value: any) => {
devicePointData.value = []; devicePointData.value = [];
value.type = 0;
http.post(device.queryDevicePoint, value).then((res) => { http.post(device.queryDevicePoint, value).then((res) => {
if (res.msg === 'success') { if (res.msg === 'success') {
res.data.forEach((item: any) => { res.data.forEach((item: any) => {
// //
devicePointData.value.push({ devicePointData.value.push({
value: item.id, value: item.id,
label: item.code + ' ( ' + item.unit + ' ) ', label: item.name + ' ( ' + item.unit + ' ) ',
}); });
}); });
} }

4
hx-ai-intelligent/src/view/alarmManagement/gatewayAlarm/look.vue

@ -10,7 +10,7 @@
@close="handleClose"> @close="handleClose">
<div style="width: 100%; height: 100%; overflow-y: auto; overflow-x: hidden"> <div style="width: 100%; height: 100%; overflow-y: auto; overflow-x: hidden">
<!-- top --> <!-- top -->
<div class="box"> <div class="boxstyle">
<div class="card"></div> <div class="card"></div>
<div style="left: 25px; position: absolute; height: 35px; line-height: 35px"> <div style="left: 25px; position: absolute; height: 35px; line-height: 35px">
告警编号{{ infoObject.alarmCode }} 告警编号{{ infoObject.alarmCode }}
@ -271,7 +271,7 @@
}); });
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
.box { .boxstyle {
width: 100%; width: 100%;
height: 35px; height: 35px;
display: flex; display: flex;

4
hx-ai-intelligent/src/view/equipmentControl/components/doubleSingleModel.vue

@ -1,6 +1,6 @@
<!-- 双图 --> <!-- 双图 -->
<template> <template>
<div class="box"> <div class="boxs">
<div class="box-title title"> <div class="box-title title">
{{ dataSource.title }} {{ dataSource.title }}
</div> </div>
@ -88,7 +88,7 @@
}; };
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.box { .boxs {
width: 192px; width: 192px;
height: 125px; height: 125px;
background: inherit; background: inherit;

3
hx-ai-intelligent/src/view/equipmentControl/electricDoor/index.vue

@ -343,4 +343,7 @@
:deep(.ant-tabs) { :deep(.ant-tabs) {
overflow-y: auto !important; overflow-y: auto !important;
} }
:deep(.ant-empty-description) {
color: white !important;
}
</style> </style>

Loading…
Cancel
Save