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

This commit is contained in:
zhaohy
2024-08-16 10:03:53 +08:00
parent fddba152fc
commit d15f8e8ed5
5 changed files with 13 additions and 6 deletions

View File

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

View File

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

View File

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

View File

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

View File

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