fix:修改设备告警逻辑 修改冲突样式
This commit is contained in:
@@ -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,
|
||||
|
@@ -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 + ' ) ',
|
||||
});
|
||||
});
|
||||
}
|
||||
|
@@ -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;
|
||||
|
@@ -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;
|
||||
|
@@ -343,4 +343,7 @@
|
||||
:deep(.ant-tabs) {
|
||||
overflow-y: auto !important;
|
||||
}
|
||||
:deep(.ant-empty-description) {
|
||||
color: white !important;
|
||||
}
|
||||
</style>
|
||||
|
Reference in New Issue
Block a user